latitudesh-typescript-sdk 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -1
- package/bin/mcp-server.js +2368 -347
- package/bin/mcp-server.js.map +69 -25
- 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/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/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/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/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/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/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/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/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/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.6.
|
|
53153
|
-
genVersion: "2.
|
|
53154
|
-
userAgent: "speakeasy-sdk/typescript 0.6.
|
|
53152
|
+
sdkVersion: "0.6.4",
|
|
53153
|
+
genVersion: "2.915.0",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.6.4 2.915.0 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
|
});
|
|
@@ -63402,6 +63907,27 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63402
63907
|
});
|
|
63403
63908
|
});
|
|
63404
63909
|
|
|
63910
|
+
// src/models/operations/listbackuprestores.ts
|
|
63911
|
+
var ListBackupRestoresRequest$inboundSchema, ListBackupRestoresRequest$outboundSchema;
|
|
63912
|
+
var init_listbackuprestores = __esm(() => {
|
|
63913
|
+
init_v3();
|
|
63914
|
+
init_primitives();
|
|
63915
|
+
ListBackupRestoresRequest$inboundSchema = objectType({
|
|
63916
|
+
backup_id: stringType()
|
|
63917
|
+
}).transform((v2) => {
|
|
63918
|
+
return remap(v2, {
|
|
63919
|
+
backup_id: "backupId"
|
|
63920
|
+
});
|
|
63921
|
+
});
|
|
63922
|
+
ListBackupRestoresRequest$outboundSchema = objectType({
|
|
63923
|
+
backupId: stringType()
|
|
63924
|
+
}).transform((v2) => {
|
|
63925
|
+
return remap(v2, {
|
|
63926
|
+
backupId: "backup_id"
|
|
63927
|
+
});
|
|
63928
|
+
});
|
|
63929
|
+
});
|
|
63930
|
+
|
|
63405
63931
|
// src/models/operations/listelasticips.ts
|
|
63406
63932
|
var FilterStatus, FilterStatus$inboundSchema, FilterStatus$outboundSchema, ListElasticIpsRequest$inboundSchema, ListElasticIpsRequest$outboundSchema, ListElasticIpsResponse$inboundSchema, ListElasticIpsResponse$outboundSchema;
|
|
63407
63933
|
var init_listelasticips = __esm(() => {
|
|
@@ -63549,6 +64075,52 @@ var init_listvirtualmachinenetworkattachments = __esm(() => {
|
|
|
63549
64075
|
});
|
|
63550
64076
|
});
|
|
63551
64077
|
|
|
64078
|
+
// src/models/operations/listvirtualmachinescopedbackups.ts
|
|
64079
|
+
var ListVirtualMachineScopedBackupsRequest$inboundSchema, ListVirtualMachineScopedBackupsRequest$outboundSchema;
|
|
64080
|
+
var init_listvirtualmachinescopedbackups = __esm(() => {
|
|
64081
|
+
init_v3();
|
|
64082
|
+
init_primitives();
|
|
64083
|
+
ListVirtualMachineScopedBackupsRequest$inboundSchema = objectType({
|
|
64084
|
+
virtual_machine_id: stringType()
|
|
64085
|
+
}).transform((v2) => {
|
|
64086
|
+
return remap(v2, {
|
|
64087
|
+
virtual_machine_id: "virtualMachineId"
|
|
64088
|
+
});
|
|
64089
|
+
});
|
|
64090
|
+
ListVirtualMachineScopedBackupsRequest$outboundSchema = objectType({
|
|
64091
|
+
virtualMachineId: stringType()
|
|
64092
|
+
}).transform((v2) => {
|
|
64093
|
+
return remap(v2, {
|
|
64094
|
+
virtualMachineId: "virtual_machine_id"
|
|
64095
|
+
});
|
|
64096
|
+
});
|
|
64097
|
+
});
|
|
64098
|
+
|
|
64099
|
+
// src/models/operations/listvirtualmachinescopedrestores.ts
|
|
64100
|
+
var ListVirtualMachineScopedRestoresRequest$inboundSchema, ListVirtualMachineScopedRestoresRequest$outboundSchema;
|
|
64101
|
+
var init_listvirtualmachinescopedrestores = __esm(() => {
|
|
64102
|
+
init_v3();
|
|
64103
|
+
init_primitives();
|
|
64104
|
+
ListVirtualMachineScopedRestoresRequest$inboundSchema = objectType({
|
|
64105
|
+
virtual_machine_id: stringType(),
|
|
64106
|
+
backup_id: stringType()
|
|
64107
|
+
}).transform((v2) => {
|
|
64108
|
+
return remap(v2, {
|
|
64109
|
+
virtual_machine_id: "virtualMachineId",
|
|
64110
|
+
backup_id: "backupId"
|
|
64111
|
+
});
|
|
64112
|
+
});
|
|
64113
|
+
ListVirtualMachineScopedRestoresRequest$outboundSchema = objectType({
|
|
64114
|
+
virtualMachineId: stringType(),
|
|
64115
|
+
backupId: stringType()
|
|
64116
|
+
}).transform((v2) => {
|
|
64117
|
+
return remap(v2, {
|
|
64118
|
+
virtualMachineId: "virtual_machine_id",
|
|
64119
|
+
backupId: "backup_id"
|
|
64120
|
+
});
|
|
64121
|
+
});
|
|
64122
|
+
});
|
|
64123
|
+
|
|
63552
64124
|
// src/models/operations/patchcurrentteam.ts
|
|
63553
64125
|
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
64126
|
var init_patchcurrentteam = __esm(() => {
|
|
@@ -64822,17 +65394,21 @@ var init_showvirtualmachine = __esm(() => {
|
|
|
64822
65394
|
init_v3();
|
|
64823
65395
|
init_primitives();
|
|
64824
65396
|
ShowVirtualMachineRequest$inboundSchema = objectType({
|
|
64825
|
-
virtual_machine_id: stringType()
|
|
65397
|
+
virtual_machine_id: stringType(),
|
|
65398
|
+
"extra_fields[virtual_machines]": stringType().optional()
|
|
64826
65399
|
}).transform((v2) => {
|
|
64827
65400
|
return remap(v2, {
|
|
64828
|
-
virtual_machine_id: "virtualMachineId"
|
|
65401
|
+
virtual_machine_id: "virtualMachineId",
|
|
65402
|
+
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
|
|
64829
65403
|
});
|
|
64830
65404
|
});
|
|
64831
65405
|
ShowVirtualMachineRequest$outboundSchema = objectType({
|
|
64832
|
-
virtualMachineId: stringType()
|
|
65406
|
+
virtualMachineId: stringType(),
|
|
65407
|
+
extraFieldsVirtualMachines: stringType().optional()
|
|
64833
65408
|
}).transform((v2) => {
|
|
64834
65409
|
return remap(v2, {
|
|
64835
|
-
virtualMachineId: "virtual_machine_id"
|
|
65410
|
+
virtualMachineId: "virtual_machine_id",
|
|
65411
|
+
extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
|
|
64836
65412
|
});
|
|
64837
65413
|
});
|
|
64838
65414
|
});
|
|
@@ -65540,7 +66116,9 @@ var init_operations = __esm(() => {
|
|
|
65540
66116
|
init_createserverreinstall();
|
|
65541
66117
|
init_createtag();
|
|
65542
66118
|
init_createvirtualmachineaction();
|
|
66119
|
+
init_createvirtualmachinebackup();
|
|
65543
66120
|
init_createvirtualmachinenetworkattachment();
|
|
66121
|
+
init_createvirtualmachinerestore();
|
|
65544
66122
|
init_createvirtualnetwork();
|
|
65545
66123
|
init_deleteapikey();
|
|
65546
66124
|
init_deleteelasticip();
|
|
@@ -65555,6 +66133,7 @@ var init_operations = __esm(() => {
|
|
|
65555
66133
|
init_deletestoragefilesystems();
|
|
65556
66134
|
init_deletestoragevolumes();
|
|
65557
66135
|
init_deleteuserdata();
|
|
66136
|
+
init_deletevirtualmachinebackup();
|
|
65558
66137
|
init_deletevirtualnetworksassignments();
|
|
65559
66138
|
init_deletevpnsession();
|
|
65560
66139
|
init_destroyserver();
|
|
@@ -65603,16 +66182,21 @@ var init_operations = __esm(() => {
|
|
|
65603
66182
|
init_getuserdata();
|
|
65604
66183
|
init_getuserprofile();
|
|
65605
66184
|
init_getusersdata();
|
|
66185
|
+
init_getvirtualmachinebackup();
|
|
66186
|
+
init_getvirtualmachinerestore();
|
|
65606
66187
|
init_getvirtualnetwork();
|
|
65607
66188
|
init_getvirtualnetworks();
|
|
65608
66189
|
init_getvirtualnetworksassignments();
|
|
65609
66190
|
init_getvmplans();
|
|
65610
66191
|
init_getvpnsessions();
|
|
65611
66192
|
init_indexvirtualmachine();
|
|
66193
|
+
init_listbackuprestores();
|
|
65612
66194
|
init_listelasticips();
|
|
65613
66195
|
init_listfirewalls();
|
|
65614
66196
|
init_listkubernetesclusters();
|
|
65615
66197
|
init_listvirtualmachinenetworkattachments();
|
|
66198
|
+
init_listvirtualmachinescopedbackups();
|
|
66199
|
+
init_listvirtualmachinescopedrestores();
|
|
65616
66200
|
init_patchcurrentteam();
|
|
65617
66201
|
init_patchstoragefilesystems();
|
|
65618
66202
|
init_patchuserdata();
|
|
@@ -71067,11 +71651,96 @@ Lists all bandwidth plans.`,
|
|
|
71067
71651
|
};
|
|
71068
71652
|
});
|
|
71069
71653
|
|
|
71654
|
+
// src/funcs/plansGetManagedDatabasePlans.ts
|
|
71655
|
+
function plansGetManagedDatabasePlans(client, options) {
|
|
71656
|
+
return new APIPromise($do47(client, options));
|
|
71657
|
+
}
|
|
71658
|
+
async function $do47(client, options) {
|
|
71659
|
+
const path = pathToFunc("/plans/managed_databases")();
|
|
71660
|
+
const headers = new Headers(compactMap({
|
|
71661
|
+
Accept: "application/vnd.api+json"
|
|
71662
|
+
}));
|
|
71663
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
71664
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
71665
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
71666
|
+
const context = {
|
|
71667
|
+
options: client._options,
|
|
71668
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71669
|
+
operationID: "get-managed-database-plans",
|
|
71670
|
+
oAuth2Scopes: null,
|
|
71671
|
+
resolvedSecurity: requestSecurity,
|
|
71672
|
+
securitySource: client._options.bearer,
|
|
71673
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
71674
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
71675
|
+
};
|
|
71676
|
+
const requestRes = client._createRequest(context, {
|
|
71677
|
+
security: requestSecurity,
|
|
71678
|
+
method: "GET",
|
|
71679
|
+
baseURL: options?.serverURL,
|
|
71680
|
+
path,
|
|
71681
|
+
headers,
|
|
71682
|
+
userAgent: client._options.userAgent,
|
|
71683
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
71684
|
+
}, options);
|
|
71685
|
+
if (!requestRes.ok) {
|
|
71686
|
+
return [requestRes, { status: "invalid" }];
|
|
71687
|
+
}
|
|
71688
|
+
const req = requestRes.value;
|
|
71689
|
+
const doResult = await client._do(req, {
|
|
71690
|
+
context,
|
|
71691
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
71692
|
+
retryConfig: context.retryConfig,
|
|
71693
|
+
retryCodes: context.retryCodes
|
|
71694
|
+
});
|
|
71695
|
+
if (!doResult.ok) {
|
|
71696
|
+
return [doResult, { status: "request-error", request: req }];
|
|
71697
|
+
}
|
|
71698
|
+
const response = doResult.value;
|
|
71699
|
+
const [result] = await match(json(200, ManagedDatabasePlans$inboundSchema, {
|
|
71700
|
+
ctype: "application/vnd.api+json"
|
|
71701
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
71702
|
+
if (!result.ok) {
|
|
71703
|
+
return [result, { status: "complete", request: req, response }];
|
|
71704
|
+
}
|
|
71705
|
+
return [result, { status: "complete", request: req, response }];
|
|
71706
|
+
}
|
|
71707
|
+
var init_plansGetManagedDatabasePlans = __esm(() => {
|
|
71708
|
+
init_http();
|
|
71709
|
+
init_matchers();
|
|
71710
|
+
init_primitives();
|
|
71711
|
+
init_security();
|
|
71712
|
+
init_url();
|
|
71713
|
+
init_models();
|
|
71714
|
+
init_async();
|
|
71715
|
+
});
|
|
71716
|
+
|
|
71717
|
+
// src/mcp-server/tools/plansGetManagedDatabasePlans.ts
|
|
71718
|
+
var tool$plansGetManagedDatabasePlans;
|
|
71719
|
+
var init_plansGetManagedDatabasePlans2 = __esm(() => {
|
|
71720
|
+
init_plansGetManagedDatabasePlans();
|
|
71721
|
+
init_tools();
|
|
71722
|
+
tool$plansGetManagedDatabasePlans = {
|
|
71723
|
+
name: "plans-get-managed-database-plans",
|
|
71724
|
+
description: `List managed database plans`,
|
|
71725
|
+
tool: async (client, ctx) => {
|
|
71726
|
+
const [result, apiCall] = await plansGetManagedDatabasePlans(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71727
|
+
if (!result.ok) {
|
|
71728
|
+
return {
|
|
71729
|
+
content: [{ type: "text", text: result.error.message }],
|
|
71730
|
+
isError: true
|
|
71731
|
+
};
|
|
71732
|
+
}
|
|
71733
|
+
const value = result.value;
|
|
71734
|
+
return formatResult(value, apiCall);
|
|
71735
|
+
}
|
|
71736
|
+
};
|
|
71737
|
+
});
|
|
71738
|
+
|
|
71070
71739
|
// src/funcs/plansList.ts
|
|
71071
71740
|
function plansList(client, request, options) {
|
|
71072
|
-
return new APIPromise($
|
|
71741
|
+
return new APIPromise($do48(client, request, options));
|
|
71073
71742
|
}
|
|
71074
|
-
async function $
|
|
71743
|
+
async function $do48(client, request, options) {
|
|
71075
71744
|
const parsed = safeParse4(request, (value) => GetPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71076
71745
|
if (!parsed.ok) {
|
|
71077
71746
|
return [parsed, { status: "invalid" }];
|
|
@@ -71182,9 +71851,9 @@ Lists all plans. Availability by region is included in \`attributes.regions.loca
|
|
|
71182
71851
|
|
|
71183
71852
|
// src/funcs/plansListStorage.ts
|
|
71184
71853
|
function plansListStorage(client, options) {
|
|
71185
|
-
return new APIPromise($
|
|
71854
|
+
return new APIPromise($do49(client, options));
|
|
71186
71855
|
}
|
|
71187
|
-
async function $
|
|
71856
|
+
async function $do49(client, options) {
|
|
71188
71857
|
const path = pathToFunc("/plans/storage")();
|
|
71189
71858
|
const headers = new Headers(compactMap({
|
|
71190
71859
|
Accept: "application/vnd.api+json"
|
|
@@ -71267,9 +71936,9 @@ var init_plansListStorage2 = __esm(() => {
|
|
|
71267
71936
|
|
|
71268
71937
|
// src/funcs/plansUpdateBandwidth.ts
|
|
71269
71938
|
function plansUpdateBandwidth(client, request, options) {
|
|
71270
|
-
return new APIPromise($
|
|
71939
|
+
return new APIPromise($do50(client, request, options));
|
|
71271
71940
|
}
|
|
71272
|
-
async function $
|
|
71941
|
+
async function $do50(client, request, options) {
|
|
71273
71942
|
const parsed = safeParse4(request, (value) => UpdatePlansBandwidthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71274
71943
|
if (!parsed.ok) {
|
|
71275
71944
|
return [parsed, { status: "invalid" }];
|
|
@@ -71371,9 +72040,9 @@ Allows to increase or decrease bandwidth packages. Only admins and owners can re
|
|
|
71371
72040
|
|
|
71372
72041
|
// src/funcs/plansVmList.ts
|
|
71373
72042
|
function plansVmList(client, request, options) {
|
|
71374
|
-
return new APIPromise($
|
|
72043
|
+
return new APIPromise($do51(client, request, options));
|
|
71375
72044
|
}
|
|
71376
|
-
async function $
|
|
72045
|
+
async function $do51(client, request, options) {
|
|
71377
72046
|
const parsed = safeParse4(request, (value) => GetVmPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71378
72047
|
if (!parsed.ok) {
|
|
71379
72048
|
return [parsed, { status: "invalid" }];
|
|
@@ -71475,9 +72144,9 @@ var init_plansVmList2 = __esm(() => {
|
|
|
71475
72144
|
|
|
71476
72145
|
// src/funcs/privateNetworksAssign.ts
|
|
71477
72146
|
function privateNetworksAssign(client, request, options) {
|
|
71478
|
-
return new APIPromise($
|
|
72147
|
+
return new APIPromise($do52(client, request, options));
|
|
71479
72148
|
}
|
|
71480
|
-
async function $
|
|
72149
|
+
async function $do52(client, request, options) {
|
|
71481
72150
|
const parsed = safeParse4(request, (value) => AssignServerVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71482
72151
|
if (!parsed.ok) {
|
|
71483
72152
|
return [parsed, { status: "invalid" }];
|
|
@@ -71576,9 +72245,9 @@ var init_privateNetworksAssign2 = __esm(() => {
|
|
|
71576
72245
|
|
|
71577
72246
|
// src/funcs/privateNetworksCreate.ts
|
|
71578
72247
|
function privateNetworksCreate(client, request, options) {
|
|
71579
|
-
return new APIPromise($
|
|
72248
|
+
return new APIPromise($do53(client, request, options));
|
|
71580
72249
|
}
|
|
71581
|
-
async function $
|
|
72250
|
+
async function $do53(client, request, options) {
|
|
71582
72251
|
const parsed = safeParse4(request, (value) => CreateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71583
72252
|
if (!parsed.ok) {
|
|
71584
72253
|
return [parsed, { status: "invalid" }];
|
|
@@ -71680,9 +72349,9 @@ Creates a new Virtual Network.
|
|
|
71680
72349
|
|
|
71681
72350
|
// src/funcs/privateNetworksDeleteAssignment.ts
|
|
71682
72351
|
function privateNetworksDeleteAssignment(client, request, options) {
|
|
71683
|
-
return new APIPromise($
|
|
72352
|
+
return new APIPromise($do54(client, request, options));
|
|
71684
72353
|
}
|
|
71685
|
-
async function $
|
|
72354
|
+
async function $do54(client, request, options) {
|
|
71686
72355
|
const parsed = safeParse4(request, (value) => DeleteVirtualNetworksAssignmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71687
72356
|
if (!parsed.ok) {
|
|
71688
72357
|
return [parsed, { status: "invalid" }];
|
|
@@ -71786,9 +72455,9 @@ Allow you to remove a Virtual Network assignment.
|
|
|
71786
72455
|
|
|
71787
72456
|
// src/funcs/privateNetworksGet.ts
|
|
71788
72457
|
function privateNetworksGet(client, request, options) {
|
|
71789
|
-
return new APIPromise($
|
|
72458
|
+
return new APIPromise($do55(client, request, options));
|
|
71790
72459
|
}
|
|
71791
|
-
async function $
|
|
72460
|
+
async function $do55(client, request, options) {
|
|
71792
72461
|
const parsed = safeParse4(request, (value) => GetVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71793
72462
|
if (!parsed.ok) {
|
|
71794
72463
|
return [parsed, { status: "invalid" }];
|
|
@@ -71895,9 +72564,9 @@ Retrieve a Virtual Network.
|
|
|
71895
72564
|
|
|
71896
72565
|
// src/funcs/privateNetworksList.ts
|
|
71897
72566
|
function privateNetworksList(client, request, options) {
|
|
71898
|
-
return new APIPromise($
|
|
72567
|
+
return new APIPromise($do56(client, request, options));
|
|
71899
72568
|
}
|
|
71900
|
-
async function $
|
|
72569
|
+
async function $do56(client, request, options) {
|
|
71901
72570
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71902
72571
|
if (!parsed.ok) {
|
|
71903
72572
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -71910,7 +72579,8 @@ async function $do55(client, request, options) {
|
|
|
71910
72579
|
"filter[project]": payload?.["filter[project]"],
|
|
71911
72580
|
"filter[tags]": payload?.["filter[tags]"],
|
|
71912
72581
|
"page[number]": payload?.["page[number]"],
|
|
71913
|
-
"page[size]": payload?.["page[size]"]
|
|
72582
|
+
"page[size]": payload?.["page[size]"],
|
|
72583
|
+
"stats[total]": payload?.["stats[total]"]
|
|
71914
72584
|
});
|
|
71915
72585
|
const headers = new Headers(compactMap({
|
|
71916
72586
|
Accept: "application/vnd.api+json"
|
|
@@ -72039,9 +72709,9 @@ Lists virtual networks assigned to a project
|
|
|
72039
72709
|
|
|
72040
72710
|
// src/funcs/privateNetworksListAssignments.ts
|
|
72041
72711
|
function privateNetworksListAssignments(client, request, options) {
|
|
72042
|
-
return new APIPromise($
|
|
72712
|
+
return new APIPromise($do57(client, request, options));
|
|
72043
72713
|
}
|
|
72044
|
-
async function $
|
|
72714
|
+
async function $do57(client, request, options) {
|
|
72045
72715
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksAssignmentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72046
72716
|
if (!parsed.ok) {
|
|
72047
72717
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72054,7 +72724,8 @@ async function $do56(client, request, options) {
|
|
|
72054
72724
|
"filter[vid]": payload?.["filter[vid]"],
|
|
72055
72725
|
"filter[virtual_network_id]": payload?.["filter[virtual_network_id]"],
|
|
72056
72726
|
"page[number]": payload?.["page[number]"],
|
|
72057
|
-
"page[size]": payload?.["page[size]"]
|
|
72727
|
+
"page[size]": payload?.["page[size]"],
|
|
72728
|
+
"stats[total]": payload?.["stats[total]"]
|
|
72058
72729
|
});
|
|
72059
72730
|
const headers = new Headers(compactMap({
|
|
72060
72731
|
Accept: "application/vnd.api+json"
|
|
@@ -72180,9 +72851,9 @@ Returns a list of all servers assigned to virtual networks.
|
|
|
72180
72851
|
|
|
72181
72852
|
// src/funcs/privateNetworksUpdate.ts
|
|
72182
72853
|
function privateNetworksUpdate(client, request, options) {
|
|
72183
|
-
return new APIPromise($
|
|
72854
|
+
return new APIPromise($do58(client, request, options));
|
|
72184
72855
|
}
|
|
72185
|
-
async function $
|
|
72856
|
+
async function $do58(client, request, options) {
|
|
72186
72857
|
const parsed = safeParse4(request, (value) => UpdateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72187
72858
|
if (!parsed.ok) {
|
|
72188
72859
|
return [parsed, { status: "invalid" }];
|
|
@@ -72290,9 +72961,9 @@ Update a Virtual Network.
|
|
|
72290
72961
|
|
|
72291
72962
|
// src/funcs/projectsCreate.ts
|
|
72292
72963
|
function projectsCreate(client, request, options) {
|
|
72293
|
-
return new APIPromise($
|
|
72964
|
+
return new APIPromise($do59(client, request, options));
|
|
72294
72965
|
}
|
|
72295
|
-
async function $
|
|
72966
|
+
async function $do59(client, request, options) {
|
|
72296
72967
|
const parsed = safeParse4(request, (value) => CreateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72297
72968
|
if (!parsed.ok) {
|
|
72298
72969
|
return [parsed, { status: "invalid" }];
|
|
@@ -72390,9 +73061,9 @@ var init_projectsCreate2 = __esm(() => {
|
|
|
72390
73061
|
|
|
72391
73062
|
// src/funcs/projectsDelete.ts
|
|
72392
73063
|
function projectsDelete(client, request, options) {
|
|
72393
|
-
return new APIPromise($
|
|
73064
|
+
return new APIPromise($do60(client, request, options));
|
|
72394
73065
|
}
|
|
72395
|
-
async function $
|
|
73066
|
+
async function $do60(client, request, options) {
|
|
72396
73067
|
const parsed = safeParse4(request, (value) => DeleteProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72397
73068
|
if (!parsed.ok) {
|
|
72398
73069
|
return [parsed, { status: "invalid" }];
|
|
@@ -72495,9 +73166,9 @@ Deletes a project and releases associated resources. Any Elastic IPs assigned to
|
|
|
72495
73166
|
|
|
72496
73167
|
// src/funcs/projectsList.ts
|
|
72497
73168
|
function projectsList(client, request, options) {
|
|
72498
|
-
return new APIPromise($
|
|
73169
|
+
return new APIPromise($do61(client, request, options));
|
|
72499
73170
|
}
|
|
72500
|
-
async function $
|
|
73171
|
+
async function $do61(client, request, options) {
|
|
72501
73172
|
const parsed = safeParse4(request, (value) => GetProjectsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72502
73173
|
if (!parsed.ok) {
|
|
72503
73174
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72643,9 +73314,9 @@ Returns a list of all projects for the current team
|
|
|
72643
73314
|
|
|
72644
73315
|
// src/funcs/projectsSshKeysPostProjectSshKey.ts
|
|
72645
73316
|
function projectsSshKeysPostProjectSshKey(client, request, options) {
|
|
72646
|
-
return new APIPromise($
|
|
73317
|
+
return new APIPromise($do62(client, request, options));
|
|
72647
73318
|
}
|
|
72648
|
-
async function $
|
|
73319
|
+
async function $do62(client, request, options) {
|
|
72649
73320
|
const parsed = safeParse4(request, (value) => PostProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72650
73321
|
if (!parsed.ok) {
|
|
72651
73322
|
return [parsed, { status: "invalid" }];
|
|
@@ -72752,9 +73423,9 @@ Allow you create SSH Keys in a project. These keys can be used to access servers
|
|
|
72752
73423
|
|
|
72753
73424
|
// src/funcs/projectsUpdate.ts
|
|
72754
73425
|
function projectsUpdate(client, request, options) {
|
|
72755
|
-
return new APIPromise($
|
|
73426
|
+
return new APIPromise($do63(client, request, options));
|
|
72756
73427
|
}
|
|
72757
|
-
async function $
|
|
73428
|
+
async function $do63(client, request, options) {
|
|
72758
73429
|
const parsed = safeParse4(request, (value) => UpdateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72759
73430
|
if (!parsed.ok) {
|
|
72760
73431
|
return [parsed, { status: "invalid" }];
|
|
@@ -72858,9 +73529,9 @@ var init_projectsUpdate2 = __esm(() => {
|
|
|
72858
73529
|
|
|
72859
73530
|
// src/funcs/regionsFetch.ts
|
|
72860
73531
|
function regionsFetch(client, request, options) {
|
|
72861
|
-
return new APIPromise($
|
|
73532
|
+
return new APIPromise($do64(client, request, options));
|
|
72862
73533
|
}
|
|
72863
|
-
async function $
|
|
73534
|
+
async function $do64(client, request, options) {
|
|
72864
73535
|
const parsed = safeParse4(request, (value) => GetRegionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72865
73536
|
if (!parsed.ok) {
|
|
72866
73537
|
return [parsed, { status: "invalid" }];
|
|
@@ -72964,9 +73635,9 @@ var init_regionsFetch2 = __esm(() => {
|
|
|
72964
73635
|
|
|
72965
73636
|
// src/funcs/regionsGet.ts
|
|
72966
73637
|
function regionsGet(client, request, options) {
|
|
72967
|
-
return new APIPromise($
|
|
73638
|
+
return new APIPromise($do65(client, request, options));
|
|
72968
73639
|
}
|
|
72969
|
-
async function $
|
|
73640
|
+
async function $do65(client, request, options) {
|
|
72970
73641
|
const parsed = safeParse4(request, (value) => GetRegionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72971
73642
|
if (!parsed.ok) {
|
|
72972
73643
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73106,9 +73777,9 @@ Lists all [available locations](https://latitude.sh/locations). For server avail
|
|
|
73106
73777
|
|
|
73107
73778
|
// src/funcs/rolesGet.ts
|
|
73108
73779
|
function rolesGet(client, request, options) {
|
|
73109
|
-
return new APIPromise($
|
|
73780
|
+
return new APIPromise($do66(client, request, options));
|
|
73110
73781
|
}
|
|
73111
|
-
async function $
|
|
73782
|
+
async function $do66(client, request, options) {
|
|
73112
73783
|
const parsed = safeParse4(request, (value) => GetRoleIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73113
73784
|
if (!parsed.ok) {
|
|
73114
73785
|
return [parsed, { status: "invalid" }];
|
|
@@ -73212,9 +73883,9 @@ var init_rolesGet2 = __esm(() => {
|
|
|
73212
73883
|
|
|
73213
73884
|
// src/funcs/rolesList.ts
|
|
73214
73885
|
function rolesList(client, request, options) {
|
|
73215
|
-
return new APIPromise($
|
|
73886
|
+
return new APIPromise($do67(client, request, options));
|
|
73216
73887
|
}
|
|
73217
|
-
async function $
|
|
73888
|
+
async function $do67(client, request, options) {
|
|
73218
73889
|
const parsed = safeParse4(request, (value) => GetRolesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
73219
73890
|
if (!parsed.ok) {
|
|
73220
73891
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73353,9 +74024,9 @@ Returns a list of all roles that can be assigned to users
|
|
|
73353
74024
|
|
|
73354
74025
|
// src/funcs/serversCreate.ts
|
|
73355
74026
|
function serversCreate(client, request, options) {
|
|
73356
|
-
return new APIPromise($
|
|
74027
|
+
return new APIPromise($do68(client, request, options));
|
|
73357
74028
|
}
|
|
73358
|
-
async function $
|
|
74029
|
+
async function $do68(client, request, options) {
|
|
73359
74030
|
const parsed = safeParse4(request, (value) => CreateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73360
74031
|
if (!parsed.ok) {
|
|
73361
74032
|
return [parsed, { status: "invalid" }];
|
|
@@ -73454,9 +74125,9 @@ var init_serversCreate2 = __esm(() => {
|
|
|
73454
74125
|
|
|
73455
74126
|
// src/funcs/serversCreateIpmiSession.ts
|
|
73456
74127
|
function serversCreateIpmiSession(client, request, options) {
|
|
73457
|
-
return new APIPromise($
|
|
74128
|
+
return new APIPromise($do69(client, request, options));
|
|
73458
74129
|
}
|
|
73459
|
-
async function $
|
|
74130
|
+
async function $do69(client, request, options) {
|
|
73460
74131
|
const parsed = safeParse4(request, (value) => CreateIpmiSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73461
74132
|
if (!parsed.ok) {
|
|
73462
74133
|
return [parsed, { status: "invalid" }];
|
|
@@ -73566,9 +74237,9 @@ Related guide: https://docs.latitude.sh/docs/ipmi
|
|
|
73566
74237
|
|
|
73567
74238
|
// src/funcs/serversDelete.ts
|
|
73568
74239
|
function serversDelete(client, request, options) {
|
|
73569
|
-
return new APIPromise($
|
|
74240
|
+
return new APIPromise($do70(client, request, options));
|
|
73570
74241
|
}
|
|
73571
|
-
async function $
|
|
74242
|
+
async function $do70(client, request, options) {
|
|
73572
74243
|
const parsed = safeParse4(request, (value) => DestroyServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73573
74244
|
if (!parsed.ok) {
|
|
73574
74245
|
return [parsed, { status: "invalid" }];
|
|
@@ -73673,9 +74344,9 @@ var init_serversDelete2 = __esm(() => {
|
|
|
73673
74344
|
|
|
73674
74345
|
// src/funcs/serversExitRescueMode.ts
|
|
73675
74346
|
function serversExitRescueMode(client, request, options) {
|
|
73676
|
-
return new APIPromise($
|
|
74347
|
+
return new APIPromise($do71(client, request, options));
|
|
73677
74348
|
}
|
|
73678
|
-
async function $
|
|
74349
|
+
async function $do71(client, request, options) {
|
|
73679
74350
|
const parsed = safeParse4(request, (value) => ServerExitRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73680
74351
|
if (!parsed.ok) {
|
|
73681
74352
|
return [parsed, { status: "invalid" }];
|
|
@@ -73781,9 +74452,9 @@ Exits rescue mode on a given server.`,
|
|
|
73781
74452
|
|
|
73782
74453
|
// src/funcs/serversGet.ts
|
|
73783
74454
|
function serversGet(client, request, options) {
|
|
73784
|
-
return new APIPromise($
|
|
74455
|
+
return new APIPromise($do72(client, request, options));
|
|
73785
74456
|
}
|
|
73786
|
-
async function $
|
|
74457
|
+
async function $do72(client, request, options) {
|
|
73787
74458
|
const parsed = safeParse4(request, (value) => GetServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73788
74459
|
if (!parsed.ok) {
|
|
73789
74460
|
return [parsed, { status: "invalid" }];
|
|
@@ -73894,9 +74565,9 @@ Returns a server that belongs to the team.
|
|
|
73894
74565
|
|
|
73895
74566
|
// src/funcs/serversGetDeployConfig.ts
|
|
73896
74567
|
function serversGetDeployConfig(client, request, options) {
|
|
73897
|
-
return new APIPromise($
|
|
74568
|
+
return new APIPromise($do73(client, request, options));
|
|
73898
74569
|
}
|
|
73899
|
-
async function $
|
|
74570
|
+
async function $do73(client, request, options) {
|
|
73900
74571
|
const parsed = safeParse4(request, (value) => GetServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73901
74572
|
if (!parsed.ok) {
|
|
73902
74573
|
return [parsed, { status: "invalid" }];
|
|
@@ -74000,9 +74671,9 @@ var init_serversGetDeployConfig2 = __esm(() => {
|
|
|
74000
74671
|
|
|
74001
74672
|
// src/funcs/serversGetOutOfBand.ts
|
|
74002
74673
|
function serversGetOutOfBand(client, request, options) {
|
|
74003
|
-
return new APIPromise($
|
|
74674
|
+
return new APIPromise($do74(client, request, options));
|
|
74004
74675
|
}
|
|
74005
|
-
async function $
|
|
74676
|
+
async function $do74(client, request, options) {
|
|
74006
74677
|
const parsed = safeParse4(request, (value) => GetServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74007
74678
|
if (!parsed.ok) {
|
|
74008
74679
|
return [parsed, { status: "invalid" }];
|
|
@@ -74106,9 +74777,9 @@ var init_serversGetOutOfBand2 = __esm(() => {
|
|
|
74106
74777
|
|
|
74107
74778
|
// src/funcs/serversList.ts
|
|
74108
74779
|
function serversList(client, request, options) {
|
|
74109
|
-
return new APIPromise($
|
|
74780
|
+
return new APIPromise($do75(client, request, options));
|
|
74110
74781
|
}
|
|
74111
|
-
async function $
|
|
74782
|
+
async function $do75(client, request, options) {
|
|
74112
74783
|
const parsed = safeParse4(request, (value) => GetServersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
74113
74784
|
if (!parsed.ok) {
|
|
74114
74785
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -74135,7 +74806,8 @@ async function $do74(client, request, options) {
|
|
|
74135
74806
|
"filter[status]": payload?.["filter[status]"],
|
|
74136
74807
|
"filter[tags]": payload?.["filter[tags]"],
|
|
74137
74808
|
"page[number]": payload?.["page[number]"],
|
|
74138
|
-
"page[size]": payload?.["page[size]"]
|
|
74809
|
+
"page[size]": payload?.["page[size]"],
|
|
74810
|
+
"stats[total]": payload?.["stats[total]"]
|
|
74139
74811
|
});
|
|
74140
74812
|
const headers = new Headers(compactMap({
|
|
74141
74813
|
Accept: "application/vnd.api+json"
|
|
@@ -74264,9 +74936,9 @@ Returns a list of all servers belonging to the team.
|
|
|
74264
74936
|
|
|
74265
74937
|
// src/funcs/serversLock.ts
|
|
74266
74938
|
function serversLock(client, request, options) {
|
|
74267
|
-
return new APIPromise($
|
|
74939
|
+
return new APIPromise($do76(client, request, options));
|
|
74268
74940
|
}
|
|
74269
|
-
async function $
|
|
74941
|
+
async function $do76(client, request, options) {
|
|
74270
74942
|
const parsed = safeParse4(request, (value) => ServerLockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74271
74943
|
if (!parsed.ok) {
|
|
74272
74944
|
return [parsed, { status: "invalid" }];
|
|
@@ -74372,9 +75044,9 @@ Locks the server. A locked server cannot be deleted or modified and no actions c
|
|
|
74372
75044
|
|
|
74373
75045
|
// src/funcs/serversReinstall.ts
|
|
74374
75046
|
function serversReinstall(client, request, options) {
|
|
74375
|
-
return new APIPromise($
|
|
75047
|
+
return new APIPromise($do77(client, request, options));
|
|
74376
75048
|
}
|
|
74377
|
-
async function $
|
|
75049
|
+
async function $do77(client, request, options) {
|
|
74378
75050
|
const parsed = safeParse4(request, (value) => CreateServerReinstallRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74379
75051
|
if (!parsed.ok) {
|
|
74380
75052
|
return [parsed, { status: "invalid" }];
|
|
@@ -74482,9 +75154,9 @@ var init_serversReinstall2 = __esm(() => {
|
|
|
74482
75154
|
|
|
74483
75155
|
// src/funcs/serversRunAction.ts
|
|
74484
75156
|
function serversRunAction(client, request, options) {
|
|
74485
|
-
return new APIPromise($
|
|
75157
|
+
return new APIPromise($do78(client, request, options));
|
|
74486
75158
|
}
|
|
74487
|
-
async function $
|
|
75159
|
+
async function $do78(client, request, options) {
|
|
74488
75160
|
const parsed = safeParse4(request, (value) => CreateServerActionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74489
75161
|
if (!parsed.ok) {
|
|
74490
75162
|
return [parsed, { status: "invalid" }];
|
|
@@ -74595,9 +75267,9 @@ Performs an action on a given server:
|
|
|
74595
75267
|
|
|
74596
75268
|
// src/funcs/serversScheduleDeletion.ts
|
|
74597
75269
|
function serversScheduleDeletion(client, request, options) {
|
|
74598
|
-
return new APIPromise($
|
|
75270
|
+
return new APIPromise($do79(client, request, options));
|
|
74599
75271
|
}
|
|
74600
|
-
async function $
|
|
75272
|
+
async function $do79(client, request, options) {
|
|
74601
75273
|
const parsed = safeParse4(request, (value) => ServerScheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74602
75274
|
if (!parsed.ok) {
|
|
74603
75275
|
return [parsed, { status: "invalid" }];
|
|
@@ -74703,9 +75375,9 @@ Schedules the server to be removed at the end of the billing cycle.`,
|
|
|
74703
75375
|
|
|
74704
75376
|
// src/funcs/serversStartOutOfBandConnection.ts
|
|
74705
75377
|
function serversStartOutOfBandConnection(client, request, options) {
|
|
74706
|
-
return new APIPromise($
|
|
75378
|
+
return new APIPromise($do80(client, request, options));
|
|
74707
75379
|
}
|
|
74708
|
-
async function $
|
|
75380
|
+
async function $do80(client, request, options) {
|
|
74709
75381
|
const parsed = safeParse4(request, (value) => CreateServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74710
75382
|
if (!parsed.ok) {
|
|
74711
75383
|
return [parsed, { status: "invalid" }];
|
|
@@ -74810,9 +75482,9 @@ var init_serversStartOutOfBandConnection2 = __esm(() => {
|
|
|
74810
75482
|
|
|
74811
75483
|
// src/funcs/serversStartRescueMode.ts
|
|
74812
75484
|
function serversStartRescueMode(client, request, options) {
|
|
74813
|
-
return new APIPromise($
|
|
75485
|
+
return new APIPromise($do81(client, request, options));
|
|
74814
75486
|
}
|
|
74815
|
-
async function $
|
|
75487
|
+
async function $do81(client, request, options) {
|
|
74816
75488
|
const parsed = safeParse4(request, (value) => ServerStartRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74817
75489
|
if (!parsed.ok) {
|
|
74818
75490
|
return [parsed, { status: "invalid" }];
|
|
@@ -74918,9 +75590,9 @@ Starts rescue mode on a given server.`,
|
|
|
74918
75590
|
|
|
74919
75591
|
// src/funcs/serversUnlock.ts
|
|
74920
75592
|
function serversUnlock(client, request, options) {
|
|
74921
|
-
return new APIPromise($
|
|
75593
|
+
return new APIPromise($do82(client, request, options));
|
|
74922
75594
|
}
|
|
74923
|
-
async function $
|
|
75595
|
+
async function $do82(client, request, options) {
|
|
74924
75596
|
const parsed = safeParse4(request, (value) => ServerUnlockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74925
75597
|
if (!parsed.ok) {
|
|
74926
75598
|
return [parsed, { status: "invalid" }];
|
|
@@ -75026,9 +75698,9 @@ Unlocks the server. A locked server cannot be deleted or modified and no actions
|
|
|
75026
75698
|
|
|
75027
75699
|
// src/funcs/serversUnscheduleDeletion.ts
|
|
75028
75700
|
function serversUnscheduleDeletion(client, request, options) {
|
|
75029
|
-
return new APIPromise($
|
|
75701
|
+
return new APIPromise($do83(client, request, options));
|
|
75030
75702
|
}
|
|
75031
|
-
async function $
|
|
75703
|
+
async function $do83(client, request, options) {
|
|
75032
75704
|
const parsed = safeParse4(request, (value) => ServerUnscheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75033
75705
|
if (!parsed.ok) {
|
|
75034
75706
|
return [parsed, { status: "invalid" }];
|
|
@@ -75131,9 +75803,9 @@ Unschedules the server removal at the end of the billing cycle.`,
|
|
|
75131
75803
|
|
|
75132
75804
|
// src/funcs/serversUpdate.ts
|
|
75133
75805
|
function serversUpdate(client, request, options) {
|
|
75134
|
-
return new APIPromise($
|
|
75806
|
+
return new APIPromise($do84(client, request, options));
|
|
75135
75807
|
}
|
|
75136
|
-
async function $
|
|
75808
|
+
async function $do84(client, request, options) {
|
|
75137
75809
|
const parsed = safeParse4(request, (value) => UpdateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75138
75810
|
if (!parsed.ok) {
|
|
75139
75811
|
return [parsed, { status: "invalid" }];
|
|
@@ -75238,9 +75910,9 @@ var init_serversUpdate2 = __esm(() => {
|
|
|
75238
75910
|
|
|
75239
75911
|
// src/funcs/serversUpdateDeployConfig.ts
|
|
75240
75912
|
function serversUpdateDeployConfig(client, request, options) {
|
|
75241
|
-
return new APIPromise($
|
|
75913
|
+
return new APIPromise($do85(client, request, options));
|
|
75242
75914
|
}
|
|
75243
|
-
async function $
|
|
75915
|
+
async function $do85(client, request, options) {
|
|
75244
75916
|
const parsed = safeParse4(request, (value) => UpdateServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75245
75917
|
if (!parsed.ok) {
|
|
75246
75918
|
return [parsed, { status: "invalid" }];
|
|
@@ -75345,9 +76017,9 @@ var init_serversUpdateDeployConfig2 = __esm(() => {
|
|
|
75345
76017
|
|
|
75346
76018
|
// src/funcs/sshKeysCreate.ts
|
|
75347
76019
|
function sshKeysCreate(client, request, options) {
|
|
75348
|
-
return new APIPromise($
|
|
76020
|
+
return new APIPromise($do86(client, request, options));
|
|
75349
76021
|
}
|
|
75350
|
-
async function $
|
|
76022
|
+
async function $do86(client, request, options) {
|
|
75351
76023
|
const parsed = safeParse4(request, (value) => PostSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75352
76024
|
if (!parsed.ok) {
|
|
75353
76025
|
return [parsed, { status: "invalid" }];
|
|
@@ -75448,9 +76120,9 @@ Allows you create SSH Keys. These keys can be used to access servers after deplo
|
|
|
75448
76120
|
|
|
75449
76121
|
// src/funcs/sshKeysDelete.ts
|
|
75450
76122
|
function sshKeysDelete(client, request, options) {
|
|
75451
|
-
return new APIPromise($
|
|
76123
|
+
return new APIPromise($do87(client, request, options));
|
|
75452
76124
|
}
|
|
75453
|
-
async function $
|
|
76125
|
+
async function $do87(client, request, options) {
|
|
75454
76126
|
const parsed = safeParse4(request, (value) => DeleteSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75455
76127
|
if (!parsed.ok) {
|
|
75456
76128
|
return [parsed, { status: "invalid" }];
|
|
@@ -75554,9 +76226,9 @@ Allows you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
75554
76226
|
|
|
75555
76227
|
// src/funcs/sshKeysGet.ts
|
|
75556
76228
|
function sshKeysGet(client, request, options) {
|
|
75557
|
-
return new APIPromise($
|
|
76229
|
+
return new APIPromise($do88(client, request, options));
|
|
75558
76230
|
}
|
|
75559
|
-
async function $
|
|
76231
|
+
async function $do88(client, request, options) {
|
|
75560
76232
|
const parsed = safeParse4(request, (value) => GetProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75561
76233
|
if (!parsed.ok) {
|
|
75562
76234
|
return [parsed, { status: "invalid" }];
|
|
@@ -75666,9 +76338,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75666
76338
|
|
|
75667
76339
|
// src/funcs/sshKeysList.ts
|
|
75668
76340
|
function sshKeysList(client, request, options) {
|
|
75669
|
-
return new APIPromise($
|
|
76341
|
+
return new APIPromise($do89(client, request, options));
|
|
75670
76342
|
}
|
|
75671
|
-
async function $
|
|
76343
|
+
async function $do89(client, request, options) {
|
|
75672
76344
|
const parsed = safeParse4(request, (value) => GetProjectSshKeysRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75673
76345
|
if (!parsed.ok) {
|
|
75674
76346
|
return [parsed, { status: "invalid" }];
|
|
@@ -75782,9 +76454,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75782
76454
|
|
|
75783
76455
|
// src/funcs/sshKeysListAll.ts
|
|
75784
76456
|
function sshKeysListAll(client, request, options) {
|
|
75785
|
-
return new APIPromise($
|
|
76457
|
+
return new APIPromise($do90(client, request, options));
|
|
75786
76458
|
}
|
|
75787
|
-
async function $
|
|
76459
|
+
async function $do90(client, request, options) {
|
|
75788
76460
|
const parsed = safeParse4(request, (value) => GetSshKeysRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
75789
76461
|
if (!parsed.ok) {
|
|
75790
76462
|
return [parsed, { status: "invalid" }];
|
|
@@ -75894,9 +76566,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75894
76566
|
|
|
75895
76567
|
// src/funcs/sshKeysModifyProjectKey.ts
|
|
75896
76568
|
function sshKeysModifyProjectKey(client, request, options) {
|
|
75897
|
-
return new APIPromise($
|
|
76569
|
+
return new APIPromise($do91(client, request, options));
|
|
75898
76570
|
}
|
|
75899
|
-
async function $
|
|
76571
|
+
async function $do91(client, request, options) {
|
|
75900
76572
|
const parsed = safeParse4(request, (value) => PutProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75901
76573
|
if (!parsed.ok) {
|
|
75902
76574
|
return [parsed, { status: "invalid" }];
|
|
@@ -76007,9 +76679,9 @@ Allow you update SSH Key in a project. These keys can be used to access servers
|
|
|
76007
76679
|
|
|
76008
76680
|
// src/funcs/sshKeysRemoveFromProject.ts
|
|
76009
76681
|
function sshKeysRemoveFromProject(client, request, options) {
|
|
76010
|
-
return new APIPromise($
|
|
76682
|
+
return new APIPromise($do92(client, request, options));
|
|
76011
76683
|
}
|
|
76012
|
-
async function $
|
|
76684
|
+
async function $do92(client, request, options) {
|
|
76013
76685
|
const parsed = safeParse4(request, (value) => DeleteProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76014
76686
|
if (!parsed.ok) {
|
|
76015
76687
|
return [parsed, { status: "invalid" }];
|
|
@@ -76117,9 +76789,9 @@ Allow you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
76117
76789
|
|
|
76118
76790
|
// src/funcs/sshKeysRetrieve.ts
|
|
76119
76791
|
function sshKeysRetrieve(client, request, options) {
|
|
76120
|
-
return new APIPromise($
|
|
76792
|
+
return new APIPromise($do93(client, request, options));
|
|
76121
76793
|
}
|
|
76122
|
-
async function $
|
|
76794
|
+
async function $do93(client, request, options) {
|
|
76123
76795
|
const parsed = safeParse4(request, (value) => GetSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76124
76796
|
if (!parsed.ok) {
|
|
76125
76797
|
return [parsed, { status: "invalid" }];
|
|
@@ -76225,9 +76897,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
76225
76897
|
|
|
76226
76898
|
// src/funcs/sshKeysUpdate.ts
|
|
76227
76899
|
function sshKeysUpdate(client, request, options) {
|
|
76228
|
-
return new APIPromise($
|
|
76900
|
+
return new APIPromise($do94(client, request, options));
|
|
76229
76901
|
}
|
|
76230
|
-
async function $
|
|
76902
|
+
async function $do94(client, request, options) {
|
|
76231
76903
|
const parsed = safeParse4(request, (value) => PutSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76232
76904
|
if (!parsed.ok) {
|
|
76233
76905
|
return [parsed, { status: "invalid" }];
|
|
@@ -76334,9 +77006,9 @@ Allows you update SSH Key in a project. These keys can be used to access servers
|
|
|
76334
77006
|
|
|
76335
77007
|
// src/funcs/tagsCreate.ts
|
|
76336
77008
|
function tagsCreate(client, request, options) {
|
|
76337
|
-
return new APIPromise($
|
|
77009
|
+
return new APIPromise($do95(client, request, options));
|
|
76338
77010
|
}
|
|
76339
|
-
async function $
|
|
77011
|
+
async function $do95(client, request, options) {
|
|
76340
77012
|
const parsed = safeParse4(request, (value) => CreateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76341
77013
|
if (!parsed.ok) {
|
|
76342
77014
|
return [parsed, { status: "invalid" }];
|
|
@@ -76444,9 +77116,9 @@ Create a Tag in the team.
|
|
|
76444
77116
|
|
|
76445
77117
|
// src/funcs/tagsDelete.ts
|
|
76446
77118
|
function tagsDelete(client, request, options) {
|
|
76447
|
-
return new APIPromise($
|
|
77119
|
+
return new APIPromise($do96(client, request, options));
|
|
76448
77120
|
}
|
|
76449
|
-
async function $
|
|
77121
|
+
async function $do96(client, request, options) {
|
|
76450
77122
|
const parsed = safeParse4(request, (value) => DestroyTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76451
77123
|
if (!parsed.ok) {
|
|
76452
77124
|
return [parsed, { status: "invalid" }];
|
|
@@ -76550,9 +77222,9 @@ Update a Tag in the team.
|
|
|
76550
77222
|
|
|
76551
77223
|
// src/funcs/tagsList.ts
|
|
76552
77224
|
function tagsList(client, options) {
|
|
76553
|
-
return new APIPromise($
|
|
77225
|
+
return new APIPromise($do97(client, options));
|
|
76554
77226
|
}
|
|
76555
|
-
async function $
|
|
77227
|
+
async function $do97(client, options) {
|
|
76556
77228
|
const path = pathToFunc("/tags")();
|
|
76557
77229
|
const headers = new Headers(compactMap({
|
|
76558
77230
|
Accept: "application/vnd.api+json"
|
|
@@ -76638,9 +77310,9 @@ List all Tags in the team.
|
|
|
76638
77310
|
|
|
76639
77311
|
// src/funcs/tagsUpdate.ts
|
|
76640
77312
|
function tagsUpdate(client, request, options) {
|
|
76641
|
-
return new APIPromise($
|
|
77313
|
+
return new APIPromise($do98(client, request, options));
|
|
76642
77314
|
}
|
|
76643
|
-
async function $
|
|
77315
|
+
async function $do98(client, request, options) {
|
|
76644
77316
|
const parsed = safeParse4(request, (value) => UpdateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76645
77317
|
if (!parsed.ok) {
|
|
76646
77318
|
return [parsed, { status: "invalid" }];
|
|
@@ -76754,9 +77426,9 @@ Update a Tag in the team.
|
|
|
76754
77426
|
|
|
76755
77427
|
// src/funcs/teamMembersDelete.ts
|
|
76756
77428
|
function teamMembersDelete(client, request, options) {
|
|
76757
|
-
return new APIPromise($
|
|
77429
|
+
return new APIPromise($do99(client, request, options));
|
|
76758
77430
|
}
|
|
76759
|
-
async function $
|
|
77431
|
+
async function $do99(client, request, options) {
|
|
76760
77432
|
const parsed = safeParse4(request, (value) => DestroyTeamMemberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76761
77433
|
if (!parsed.ok) {
|
|
76762
77434
|
return [parsed, { status: "invalid" }];
|
|
@@ -76857,9 +77529,9 @@ var init_teamMembersDelete2 = __esm(() => {
|
|
|
76857
77529
|
|
|
76858
77530
|
// src/funcs/teamMembersPostTeamMembers.ts
|
|
76859
77531
|
function teamMembersPostTeamMembers(client, request, options) {
|
|
76860
|
-
return new APIPromise($
|
|
77532
|
+
return new APIPromise($do100(client, request, options));
|
|
76861
77533
|
}
|
|
76862
|
-
async function $
|
|
77534
|
+
async function $do100(client, request, options) {
|
|
76863
77535
|
const parsed = safeParse4(request, (value) => PostTeamMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76864
77536
|
if (!parsed.ok) {
|
|
76865
77537
|
return [parsed, { status: "invalid" }];
|
|
@@ -76958,9 +77630,9 @@ var init_teamMembersPostTeamMembers2 = __esm(() => {
|
|
|
76958
77630
|
|
|
76959
77631
|
// src/funcs/teamsCreate.ts
|
|
76960
77632
|
function teamsCreate(client, request, options) {
|
|
76961
|
-
return new APIPromise($
|
|
77633
|
+
return new APIPromise($do101(client, request, options));
|
|
76962
77634
|
}
|
|
76963
|
-
async function $
|
|
77635
|
+
async function $do101(client, request, options) {
|
|
76964
77636
|
const parsed = safeParse4(request, (value) => PostTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76965
77637
|
if (!parsed.ok) {
|
|
76966
77638
|
return [parsed, { status: "invalid" }];
|
|
@@ -77058,9 +77730,9 @@ var init_teamsCreate2 = __esm(() => {
|
|
|
77058
77730
|
|
|
77059
77731
|
// src/funcs/teamsGet.ts
|
|
77060
77732
|
function teamsGet(client, options) {
|
|
77061
|
-
return new APIPromise($
|
|
77733
|
+
return new APIPromise($do102(client, options));
|
|
77062
77734
|
}
|
|
77063
|
-
async function $
|
|
77735
|
+
async function $do102(client, options) {
|
|
77064
77736
|
const path = pathToFunc("/team")();
|
|
77065
77737
|
const headers = new Headers(compactMap({
|
|
77066
77738
|
Accept: "application/vnd.api+json"
|
|
@@ -77143,9 +77815,9 @@ var init_teamsGet2 = __esm(() => {
|
|
|
77143
77815
|
|
|
77144
77816
|
// src/funcs/teamsMembersGetTeamMembers.ts
|
|
77145
77817
|
function teamsMembersGetTeamMembers(client, request, options) {
|
|
77146
|
-
return new APIPromise($
|
|
77818
|
+
return new APIPromise($do103(client, request, options));
|
|
77147
77819
|
}
|
|
77148
|
-
async function $
|
|
77820
|
+
async function $do103(client, request, options) {
|
|
77149
77821
|
const parsed = safeParse4(request, (value) => GetTeamMembersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77150
77822
|
if (!parsed.ok) {
|
|
77151
77823
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -77281,9 +77953,9 @@ var init_teamsMembersGetTeamMembers2 = __esm(() => {
|
|
|
77281
77953
|
|
|
77282
77954
|
// src/funcs/teamsUpdate.ts
|
|
77283
77955
|
function teamsUpdate(client, request, options) {
|
|
77284
|
-
return new APIPromise($
|
|
77956
|
+
return new APIPromise($do104(client, request, options));
|
|
77285
77957
|
}
|
|
77286
|
-
async function $
|
|
77958
|
+
async function $do104(client, request, options) {
|
|
77287
77959
|
const parsed = safeParse4(request, (value) => PatchCurrentTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77288
77960
|
if (!parsed.ok) {
|
|
77289
77961
|
return [parsed, { status: "invalid" }];
|
|
@@ -77387,9 +78059,9 @@ var init_teamsUpdate2 = __esm(() => {
|
|
|
77387
78059
|
|
|
77388
78060
|
// src/funcs/trafficGet.ts
|
|
77389
78061
|
function trafficGet(client, request, options) {
|
|
77390
|
-
return new APIPromise($
|
|
78062
|
+
return new APIPromise($do105(client, request, options));
|
|
77391
78063
|
}
|
|
77392
|
-
async function $
|
|
78064
|
+
async function $do105(client, request, options) {
|
|
77393
78065
|
const parsed = safeParse4(request, (value) => GetTrafficConsumptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77394
78066
|
if (!parsed.ok) {
|
|
77395
78067
|
return [parsed, { status: "invalid" }];
|
|
@@ -77494,9 +78166,9 @@ var init_trafficGet2 = __esm(() => {
|
|
|
77494
78166
|
|
|
77495
78167
|
// src/funcs/trafficGetQuota.ts
|
|
77496
78168
|
function trafficGetQuota(client, request, options) {
|
|
77497
|
-
return new APIPromise($
|
|
78169
|
+
return new APIPromise($do106(client, request, options));
|
|
77498
78170
|
}
|
|
77499
|
-
async function $
|
|
78171
|
+
async function $do106(client, request, options) {
|
|
77500
78172
|
const parsed = safeParse4(request, (value) => GetTrafficQuotaRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77501
78173
|
if (!parsed.ok) {
|
|
77502
78174
|
return [parsed, { status: "invalid" }];
|
|
@@ -77598,9 +78270,9 @@ var init_trafficGetQuota2 = __esm(() => {
|
|
|
77598
78270
|
|
|
77599
78271
|
// src/funcs/userDataCreate.ts
|
|
77600
78272
|
function userDataCreate(client, request, options) {
|
|
77601
|
-
return new APIPromise($
|
|
78273
|
+
return new APIPromise($do107(client, request, options));
|
|
77602
78274
|
}
|
|
77603
|
-
async function $
|
|
78275
|
+
async function $do107(client, request, options) {
|
|
77604
78276
|
const parsed = safeParse4(request, (value) => PostProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77605
78277
|
if (!parsed.ok) {
|
|
77606
78278
|
return [parsed, { status: "invalid" }];
|
|
@@ -77708,9 +78380,9 @@ Allows you to create User Data in a project, which can be used to perform custom
|
|
|
77708
78380
|
|
|
77709
78381
|
// src/funcs/userDataCreateNew.ts
|
|
77710
78382
|
function userDataCreateNew(client, request, options) {
|
|
77711
|
-
return new APIPromise($
|
|
78383
|
+
return new APIPromise($do108(client, request, options));
|
|
77712
78384
|
}
|
|
77713
|
-
async function $
|
|
78385
|
+
async function $do108(client, request, options) {
|
|
77714
78386
|
const parsed = safeParse4(request, (value) => PostUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77715
78387
|
if (!parsed.ok) {
|
|
77716
78388
|
return [parsed, { status: "invalid" }];
|
|
@@ -77812,9 +78484,9 @@ Allows you to create User Data in a team, which can be used to perform custom se
|
|
|
77812
78484
|
|
|
77813
78485
|
// src/funcs/userDataDelete.ts
|
|
77814
78486
|
function userDataDelete(client, request, options) {
|
|
77815
|
-
return new APIPromise($
|
|
78487
|
+
return new APIPromise($do109(client, request, options));
|
|
77816
78488
|
}
|
|
77817
|
-
async function $
|
|
78489
|
+
async function $do109(client, request, options) {
|
|
77818
78490
|
const parsed = safeParse4(request, (value) => DeleteUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77819
78491
|
if (!parsed.ok) {
|
|
77820
78492
|
return [parsed, { status: "invalid" }];
|
|
@@ -77915,9 +78587,9 @@ var init_userDataDelete2 = __esm(() => {
|
|
|
77915
78587
|
|
|
77916
78588
|
// src/funcs/userDataDeleteProjectUserData.ts
|
|
77917
78589
|
function userDataDeleteProjectUserData(client, request, options) {
|
|
77918
|
-
return new APIPromise($
|
|
78590
|
+
return new APIPromise($do110(client, request, options));
|
|
77919
78591
|
}
|
|
77920
|
-
async function $
|
|
78592
|
+
async function $do110(client, request, options) {
|
|
77921
78593
|
const parsed = safeParse4(request, (value) => DeleteProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77922
78594
|
if (!parsed.ok) {
|
|
77923
78595
|
return [parsed, { status: "invalid" }];
|
|
@@ -78025,9 +78697,9 @@ Allow you remove User Data in a project.
|
|
|
78025
78697
|
|
|
78026
78698
|
// src/funcs/userDataGetProjectUserData.ts
|
|
78027
78699
|
function userDataGetProjectUserData(client, request, options) {
|
|
78028
|
-
return new APIPromise($
|
|
78700
|
+
return new APIPromise($do111(client, request, options));
|
|
78029
78701
|
}
|
|
78030
|
-
async function $
|
|
78702
|
+
async function $do111(client, request, options) {
|
|
78031
78703
|
const parsed = safeParse4(request, (value) => GetProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78032
78704
|
if (!parsed.ok) {
|
|
78033
78705
|
return [parsed, { status: "invalid" }];
|
|
@@ -78142,9 +78814,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78142
78814
|
|
|
78143
78815
|
// src/funcs/userDataGetProjectUsersData.ts
|
|
78144
78816
|
function userDataGetProjectUsersData(client, request, options) {
|
|
78145
|
-
return new APIPromise($
|
|
78817
|
+
return new APIPromise($do112(client, request, options));
|
|
78146
78818
|
}
|
|
78147
|
-
async function $
|
|
78819
|
+
async function $do112(client, request, options) {
|
|
78148
78820
|
const parsed = safeParse4(request, (value) => GetProjectUsersDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78149
78821
|
if (!parsed.ok) {
|
|
78150
78822
|
return [parsed, { status: "invalid" }];
|
|
@@ -78255,9 +78927,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78255
78927
|
|
|
78256
78928
|
// src/funcs/userDataList.ts
|
|
78257
78929
|
function userDataList(client, request, options) {
|
|
78258
|
-
return new APIPromise($
|
|
78930
|
+
return new APIPromise($do113(client, request, options));
|
|
78259
78931
|
}
|
|
78260
|
-
async function $
|
|
78932
|
+
async function $do113(client, request, options) {
|
|
78261
78933
|
const parsed = safeParse4(request, (value) => GetUsersDataRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78262
78934
|
if (!parsed.ok) {
|
|
78263
78935
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78400,9 +79072,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78400
79072
|
|
|
78401
79073
|
// src/funcs/userDataRetrieve.ts
|
|
78402
79074
|
function userDataRetrieve(client, request, options) {
|
|
78403
|
-
return new APIPromise($
|
|
79075
|
+
return new APIPromise($do114(client, request, options));
|
|
78404
79076
|
}
|
|
78405
|
-
async function $
|
|
79077
|
+
async function $do114(client, request, options) {
|
|
78406
79078
|
const parsed = safeParse4(request, (value) => GetUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78407
79079
|
if (!parsed.ok) {
|
|
78408
79080
|
return [parsed, { status: "invalid" }];
|
|
@@ -78513,9 +79185,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78513
79185
|
|
|
78514
79186
|
// src/funcs/userDataUpdate.ts
|
|
78515
79187
|
function userDataUpdate(client, request, options) {
|
|
78516
|
-
return new APIPromise($
|
|
79188
|
+
return new APIPromise($do115(client, request, options));
|
|
78517
79189
|
}
|
|
78518
|
-
async function $
|
|
79190
|
+
async function $do115(client, request, options) {
|
|
78519
79191
|
const parsed = safeParse4(request, (value) => PatchUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78520
79192
|
if (!parsed.ok) {
|
|
78521
79193
|
return [parsed, { status: "invalid" }];
|
|
@@ -78623,9 +79295,9 @@ Allow you update User Data in a team.
|
|
|
78623
79295
|
|
|
78624
79296
|
// src/funcs/userDataUpdateForProject.ts
|
|
78625
79297
|
function userDataUpdateForProject(client, request, options) {
|
|
78626
|
-
return new APIPromise($
|
|
79298
|
+
return new APIPromise($do116(client, request, options));
|
|
78627
79299
|
}
|
|
78628
|
-
async function $
|
|
79300
|
+
async function $do116(client, request, options) {
|
|
78629
79301
|
const parsed = safeParse4(request, (value) => PutProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78630
79302
|
if (!parsed.ok) {
|
|
78631
79303
|
return [parsed, { status: "invalid" }];
|
|
@@ -78737,9 +79409,9 @@ Allow you update User Data in a project.
|
|
|
78737
79409
|
|
|
78738
79410
|
// src/funcs/userProfileGet.ts
|
|
78739
79411
|
function userProfileGet(client, options) {
|
|
78740
|
-
return new APIPromise($
|
|
79412
|
+
return new APIPromise($do117(client, options));
|
|
78741
79413
|
}
|
|
78742
|
-
async function $
|
|
79414
|
+
async function $do117(client, options) {
|
|
78743
79415
|
const path = pathToFunc("/user/profile")();
|
|
78744
79416
|
const headers = new Headers(compactMap({
|
|
78745
79417
|
Accept: "application/vnd.api+json"
|
|
@@ -78825,9 +79497,9 @@ Retrieve the current user profile
|
|
|
78825
79497
|
|
|
78826
79498
|
// src/funcs/userProfileListTeams.ts
|
|
78827
79499
|
function userProfileListTeams(client, options) {
|
|
78828
|
-
return new APIPromise($
|
|
79500
|
+
return new APIPromise($do118(client, options));
|
|
78829
79501
|
}
|
|
78830
|
-
async function $
|
|
79502
|
+
async function $do118(client, options) {
|
|
78831
79503
|
const path = pathToFunc("/user/teams")();
|
|
78832
79504
|
const headers = new Headers(compactMap({
|
|
78833
79505
|
Accept: "application/vnd.api+json"
|
|
@@ -78913,9 +79585,9 @@ Returns a list of all teams the user belongs to
|
|
|
78913
79585
|
|
|
78914
79586
|
// src/funcs/userProfileUpdate.ts
|
|
78915
79587
|
function userProfileUpdate(client, request, options) {
|
|
78916
|
-
return new APIPromise($
|
|
79588
|
+
return new APIPromise($do119(client, request, options));
|
|
78917
79589
|
}
|
|
78918
|
-
async function $
|
|
79590
|
+
async function $do119(client, request, options) {
|
|
78919
79591
|
const parsed = safeParse4(request, (value) => PatchUserProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78920
79592
|
if (!parsed.ok) {
|
|
78921
79593
|
return [parsed, { status: "invalid" }];
|
|
@@ -79020,18 +79692,18 @@ Update the current user profile
|
|
|
79020
79692
|
};
|
|
79021
79693
|
});
|
|
79022
79694
|
|
|
79023
|
-
// src/funcs/
|
|
79024
|
-
function
|
|
79025
|
-
return new APIPromise($
|
|
79695
|
+
// src/funcs/virtualMachineBackupsCreate.ts
|
|
79696
|
+
function virtualMachineBackupsCreate(client, request, options) {
|
|
79697
|
+
return new APIPromise($do120(client, request, options));
|
|
79026
79698
|
}
|
|
79027
|
-
async function $
|
|
79028
|
-
const parsed = safeParse4(request, (value) =>
|
|
79699
|
+
async function $do120(client, request, options) {
|
|
79700
|
+
const parsed = safeParse4(request, (value) => VirtualMachineBackupPayload$outboundSchema.parse(value), "Input validation failed");
|
|
79029
79701
|
if (!parsed.ok) {
|
|
79030
79702
|
return [parsed, { status: "invalid" }];
|
|
79031
79703
|
}
|
|
79032
79704
|
const payload = parsed.value;
|
|
79033
79705
|
const body = encodeJSON("body", payload, { explode: true });
|
|
79034
|
-
const path = pathToFunc("/
|
|
79706
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
79035
79707
|
const headers = new Headers(compactMap({
|
|
79036
79708
|
"Content-Type": "application/json",
|
|
79037
79709
|
Accept: "application/vnd.api+json"
|
|
@@ -79042,7 +79714,7 @@ async function $do119(client, request, options) {
|
|
|
79042
79714
|
const context = {
|
|
79043
79715
|
options: client._options,
|
|
79044
79716
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79045
|
-
operationID: "create-virtual-machine",
|
|
79717
|
+
operationID: "create-virtual-machine-backup-top-level",
|
|
79046
79718
|
oAuth2Scopes: null,
|
|
79047
79719
|
resolvedSecurity: requestSecurity,
|
|
79048
79720
|
securitySource: client._options.bearer,
|
|
@@ -79073,15 +79745,20 @@ async function $do119(client, request, options) {
|
|
|
79073
79745
|
return [doResult, { status: "request-error", request: req }];
|
|
79074
79746
|
}
|
|
79075
79747
|
const response = doResult.value;
|
|
79076
|
-
const
|
|
79748
|
+
const responseFields = {
|
|
79749
|
+
HttpMeta: { Response: response, Request: req }
|
|
79750
|
+
};
|
|
79751
|
+
const [result] = await match(json(201, VirtualMachineBackup$inboundSchema, {
|
|
79077
79752
|
ctype: "application/vnd.api+json"
|
|
79078
|
-
}),
|
|
79753
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79754
|
+
ctype: "application/vnd.api+json"
|
|
79755
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79079
79756
|
if (!result.ok) {
|
|
79080
79757
|
return [result, { status: "complete", request: req, response }];
|
|
79081
79758
|
}
|
|
79082
79759
|
return [result, { status: "complete", request: req, response }];
|
|
79083
79760
|
}
|
|
79084
|
-
var
|
|
79761
|
+
var init_virtualMachineBackupsCreate = __esm(() => {
|
|
79085
79762
|
init_encodings();
|
|
79086
79763
|
init_http();
|
|
79087
79764
|
init_matchers();
|
|
@@ -79089,28 +79766,29 @@ var init_virtualMachinesCreate = __esm(() => {
|
|
|
79089
79766
|
init_schemas4();
|
|
79090
79767
|
init_security();
|
|
79091
79768
|
init_url();
|
|
79769
|
+
init_errors4();
|
|
79092
79770
|
init_models();
|
|
79093
79771
|
init_async();
|
|
79094
79772
|
});
|
|
79095
79773
|
|
|
79096
|
-
// src/mcp-server/tools/
|
|
79097
|
-
var args112, tool$
|
|
79098
|
-
var
|
|
79099
|
-
|
|
79774
|
+
// src/mcp-server/tools/virtualMachineBackupsCreate.ts
|
|
79775
|
+
var args112, tool$virtualMachineBackupsCreate;
|
|
79776
|
+
var init_virtualMachineBackupsCreate2 = __esm(() => {
|
|
79777
|
+
init_virtualMachineBackupsCreate();
|
|
79100
79778
|
init_models();
|
|
79101
79779
|
init_tools();
|
|
79102
79780
|
args112 = {
|
|
79103
|
-
request:
|
|
79781
|
+
request: VirtualMachineBackupPayload$inboundSchema
|
|
79104
79782
|
};
|
|
79105
|
-
tool$
|
|
79106
|
-
name: "virtual-
|
|
79107
|
-
description: `Create VM
|
|
79783
|
+
tool$virtualMachineBackupsCreate = {
|
|
79784
|
+
name: "virtual-machine-backups-create",
|
|
79785
|
+
description: `Create VM backup (top-level)
|
|
79108
79786
|
|
|
79109
|
-
|
|
79787
|
+
Triggers a backup of the Virtual Machine referenced in the body.
|
|
79110
79788
|
`,
|
|
79111
79789
|
args: args112,
|
|
79112
79790
|
tool: async (client, args113, ctx) => {
|
|
79113
|
-
const [result, apiCall] = await
|
|
79791
|
+
const [result, apiCall] = await virtualMachineBackupsCreate(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79114
79792
|
if (!result.ok) {
|
|
79115
79793
|
return {
|
|
79116
79794
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79123,24 +79801,23 @@ Creates a new Virtual Machine.
|
|
|
79123
79801
|
};
|
|
79124
79802
|
});
|
|
79125
79803
|
|
|
79126
|
-
// src/funcs/
|
|
79127
|
-
function
|
|
79128
|
-
return new APIPromise($
|
|
79804
|
+
// src/funcs/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79805
|
+
function virtualMachineBackupsCreateForVirtualMachine(client, request, options) {
|
|
79806
|
+
return new APIPromise($do121(client, request, options));
|
|
79129
79807
|
}
|
|
79130
|
-
async function $
|
|
79131
|
-
const parsed = safeParse4(request, (value) =>
|
|
79808
|
+
async function $do121(client, request, options) {
|
|
79809
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79132
79810
|
if (!parsed.ok) {
|
|
79133
79811
|
return [parsed, { status: "invalid" }];
|
|
79134
79812
|
}
|
|
79135
79813
|
const payload = parsed.value;
|
|
79136
|
-
const body =
|
|
79814
|
+
const body = null;
|
|
79137
79815
|
const pathParams = {
|
|
79138
79816
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79139
79817
|
};
|
|
79140
|
-
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/
|
|
79818
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups")(pathParams);
|
|
79141
79819
|
const headers = new Headers(compactMap({
|
|
79142
|
-
|
|
79143
|
-
Accept: "*/*"
|
|
79820
|
+
Accept: "application/vnd.api+json"
|
|
79144
79821
|
}));
|
|
79145
79822
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79146
79823
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79148,7 +79825,7 @@ async function $do120(client, request, options) {
|
|
|
79148
79825
|
const context = {
|
|
79149
79826
|
options: client._options,
|
|
79150
79827
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79151
|
-
operationID: "create-virtual-machine-
|
|
79828
|
+
operationID: "create-virtual-machine-backup",
|
|
79152
79829
|
oAuth2Scopes: null,
|
|
79153
79830
|
resolvedSecurity: requestSecurity,
|
|
79154
79831
|
securitySource: client._options.bearer,
|
|
@@ -79179,14 +79856,20 @@ async function $do120(client, request, options) {
|
|
|
79179
79856
|
return [doResult, { status: "request-error", request: req }];
|
|
79180
79857
|
}
|
|
79181
79858
|
const response = doResult.value;
|
|
79182
|
-
const
|
|
79859
|
+
const responseFields = {
|
|
79860
|
+
HttpMeta: { Response: response, Request: req }
|
|
79861
|
+
};
|
|
79862
|
+
const [result] = await match(json(201, VirtualMachineBackup$inboundSchema, {
|
|
79863
|
+
ctype: "application/vnd.api+json"
|
|
79864
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79865
|
+
ctype: "application/vnd.api+json"
|
|
79866
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79183
79867
|
if (!result.ok) {
|
|
79184
79868
|
return [result, { status: "complete", request: req, response }];
|
|
79185
79869
|
}
|
|
79186
79870
|
return [result, { status: "complete", request: req, response }];
|
|
79187
79871
|
}
|
|
79188
|
-
var
|
|
79189
|
-
init_v3();
|
|
79872
|
+
var init_virtualMachineBackupsCreateForVirtualMachine = __esm(() => {
|
|
79190
79873
|
init_encodings();
|
|
79191
79874
|
init_http();
|
|
79192
79875
|
init_matchers();
|
|
@@ -79194,59 +79877,61 @@ var init_virtualMachinesCreateVirtualMachineAction = __esm(() => {
|
|
|
79194
79877
|
init_schemas4();
|
|
79195
79878
|
init_security();
|
|
79196
79879
|
init_url();
|
|
79880
|
+
init_errors4();
|
|
79881
|
+
init_models();
|
|
79197
79882
|
init_operations();
|
|
79198
79883
|
init_async();
|
|
79199
79884
|
});
|
|
79200
79885
|
|
|
79201
|
-
// src/mcp-server/tools/
|
|
79202
|
-
var args113, tool$
|
|
79203
|
-
var
|
|
79204
|
-
|
|
79886
|
+
// src/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79887
|
+
var args113, tool$virtualMachineBackupsCreateForVirtualMachine;
|
|
79888
|
+
var init_virtualMachineBackupsCreateForVirtualMachine2 = __esm(() => {
|
|
79889
|
+
init_virtualMachineBackupsCreateForVirtualMachine();
|
|
79205
79890
|
init_operations();
|
|
79206
79891
|
init_tools();
|
|
79207
79892
|
args113 = {
|
|
79208
|
-
request:
|
|
79893
|
+
request: CreateVirtualMachineBackupRequest$inboundSchema
|
|
79209
79894
|
};
|
|
79210
|
-
tool$
|
|
79211
|
-
name: "virtual-
|
|
79212
|
-
description: `
|
|
79895
|
+
tool$virtualMachineBackupsCreateForVirtualMachine = {
|
|
79896
|
+
name: "virtual-machine-backups-create-for-virtual-machine",
|
|
79897
|
+
description: `Create VM backup
|
|
79213
79898
|
|
|
79214
|
-
|
|
79215
|
-
- \`power_on\` - Starts the virtual machine
|
|
79216
|
-
- \`power_off\` - Stops the virtual machine
|
|
79217
|
-
- \`reboot\` - Restarts the virtual machine
|
|
79899
|
+
Triggers a backup of the given Virtual Machine.
|
|
79218
79900
|
`,
|
|
79219
79901
|
args: args113,
|
|
79220
79902
|
tool: async (client, args114, ctx) => {
|
|
79221
|
-
const [result, apiCall] = await
|
|
79903
|
+
const [result, apiCall] = await virtualMachineBackupsCreateForVirtualMachine(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79222
79904
|
if (!result.ok) {
|
|
79223
79905
|
return {
|
|
79224
79906
|
content: [{ type: "text", text: result.error.message }],
|
|
79225
79907
|
isError: true
|
|
79226
79908
|
};
|
|
79227
79909
|
}
|
|
79228
|
-
|
|
79910
|
+
const value = result.value;
|
|
79911
|
+
return formatResult(value, apiCall);
|
|
79229
79912
|
}
|
|
79230
79913
|
};
|
|
79231
79914
|
});
|
|
79232
79915
|
|
|
79233
|
-
// src/funcs/
|
|
79234
|
-
function
|
|
79235
|
-
return new APIPromise($
|
|
79916
|
+
// src/funcs/virtualMachineBackupsDelete.ts
|
|
79917
|
+
function virtualMachineBackupsDelete(client, request, options) {
|
|
79918
|
+
return new APIPromise($do122(client, request, options));
|
|
79236
79919
|
}
|
|
79237
|
-
async function $
|
|
79238
|
-
const parsed = safeParse4(request, (value) =>
|
|
79920
|
+
async function $do122(client, request, options) {
|
|
79921
|
+
const parsed = safeParse4(request, (value) => DeleteVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79239
79922
|
if (!parsed.ok) {
|
|
79240
79923
|
return [parsed, { status: "invalid" }];
|
|
79241
79924
|
}
|
|
79242
79925
|
const payload = parsed.value;
|
|
79243
|
-
const body =
|
|
79926
|
+
const body = null;
|
|
79244
79927
|
const pathParams = {
|
|
79245
|
-
|
|
79928
|
+
id: encodeSimple("id", payload.id, {
|
|
79929
|
+
explode: false,
|
|
79930
|
+
charEncoding: "percent"
|
|
79931
|
+
})
|
|
79246
79932
|
};
|
|
79247
|
-
const path = pathToFunc("/
|
|
79933
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79248
79934
|
const headers = new Headers(compactMap({
|
|
79249
|
-
"Content-Type": "application/json",
|
|
79250
79935
|
Accept: "application/vnd.api+json"
|
|
79251
79936
|
}));
|
|
79252
79937
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
@@ -79255,7 +79940,7 @@ async function $do121(client, request, options) {
|
|
|
79255
79940
|
const context = {
|
|
79256
79941
|
options: client._options,
|
|
79257
79942
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79258
|
-
operationID: "
|
|
79943
|
+
operationID: "delete-virtual-machine-backup",
|
|
79259
79944
|
oAuth2Scopes: null,
|
|
79260
79945
|
resolvedSecurity: requestSecurity,
|
|
79261
79946
|
securitySource: client._options.bearer,
|
|
@@ -79264,7 +79949,7 @@ async function $do121(client, request, options) {
|
|
|
79264
79949
|
};
|
|
79265
79950
|
const requestRes = client._createRequest(context, {
|
|
79266
79951
|
security: requestSecurity,
|
|
79267
|
-
method: "
|
|
79952
|
+
method: "DELETE",
|
|
79268
79953
|
baseURL: options?.serverURL,
|
|
79269
79954
|
path,
|
|
79270
79955
|
headers,
|
|
@@ -79286,13 +79971,20 @@ async function $do121(client, request, options) {
|
|
|
79286
79971
|
return [doResult, { status: "request-error", request: req }];
|
|
79287
79972
|
}
|
|
79288
79973
|
const response = doResult.value;
|
|
79289
|
-
const
|
|
79974
|
+
const responseFields = {
|
|
79975
|
+
HttpMeta: { Response: response, Request: req }
|
|
79976
|
+
};
|
|
79977
|
+
const [result] = await match(json(202, VirtualMachineBackup$inboundSchema, {
|
|
79978
|
+
ctype: "application/vnd.api+json"
|
|
79979
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79980
|
+
ctype: "application/vnd.api+json"
|
|
79981
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79290
79982
|
if (!result.ok) {
|
|
79291
79983
|
return [result, { status: "complete", request: req, response }];
|
|
79292
79984
|
}
|
|
79293
79985
|
return [result, { status: "complete", request: req, response }];
|
|
79294
79986
|
}
|
|
79295
|
-
var
|
|
79987
|
+
var init_virtualMachineBackupsDelete = __esm(() => {
|
|
79296
79988
|
init_encodings();
|
|
79297
79989
|
init_http();
|
|
79298
79990
|
init_matchers();
|
|
@@ -79300,28 +79992,30 @@ var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79300
79992
|
init_schemas4();
|
|
79301
79993
|
init_security();
|
|
79302
79994
|
init_url();
|
|
79995
|
+
init_errors4();
|
|
79996
|
+
init_models();
|
|
79303
79997
|
init_operations();
|
|
79304
79998
|
init_async();
|
|
79305
79999
|
});
|
|
79306
80000
|
|
|
79307
|
-
// src/mcp-server/tools/
|
|
79308
|
-
var args114, tool$
|
|
79309
|
-
var
|
|
79310
|
-
|
|
80001
|
+
// src/mcp-server/tools/virtualMachineBackupsDelete.ts
|
|
80002
|
+
var args114, tool$virtualMachineBackupsDelete;
|
|
80003
|
+
var init_virtualMachineBackupsDelete2 = __esm(() => {
|
|
80004
|
+
init_virtualMachineBackupsDelete();
|
|
79311
80005
|
init_operations();
|
|
79312
80006
|
init_tools();
|
|
79313
80007
|
args114 = {
|
|
79314
|
-
request:
|
|
80008
|
+
request: DeleteVirtualMachineBackupRequest$inboundSchema
|
|
79315
80009
|
};
|
|
79316
|
-
tool$
|
|
79317
|
-
name: "virtual-
|
|
79318
|
-
description: `
|
|
80010
|
+
tool$virtualMachineBackupsDelete = {
|
|
80011
|
+
name: "virtual-machine-backups-delete",
|
|
80012
|
+
description: `Delete VM backup
|
|
79319
80013
|
|
|
79320
|
-
|
|
80014
|
+
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
80015
|
`,
|
|
79322
80016
|
args: args114,
|
|
79323
80017
|
tool: async (client, args115, ctx) => {
|
|
79324
|
-
const [result, apiCall] = await
|
|
80018
|
+
const [result, apiCall] = await virtualMachineBackupsDelete(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79325
80019
|
if (!result.ok) {
|
|
79326
80020
|
return {
|
|
79327
80021
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79334,23 +80028,26 @@ Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously
|
|
|
79334
80028
|
};
|
|
79335
80029
|
});
|
|
79336
80030
|
|
|
79337
|
-
// src/funcs/
|
|
79338
|
-
function
|
|
79339
|
-
return new APIPromise($
|
|
80031
|
+
// src/funcs/virtualMachineBackupsGet.ts
|
|
80032
|
+
function virtualMachineBackupsGet(client, request, options) {
|
|
80033
|
+
return new APIPromise($do123(client, request, options));
|
|
79340
80034
|
}
|
|
79341
|
-
async function $
|
|
79342
|
-
const parsed = safeParse4(request, (value) =>
|
|
80035
|
+
async function $do123(client, request, options) {
|
|
80036
|
+
const parsed = safeParse4(request, (value) => GetVirtualMachineBackupRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79343
80037
|
if (!parsed.ok) {
|
|
79344
80038
|
return [parsed, { status: "invalid" }];
|
|
79345
80039
|
}
|
|
79346
80040
|
const payload = parsed.value;
|
|
79347
80041
|
const body = null;
|
|
79348
80042
|
const pathParams = {
|
|
79349
|
-
|
|
80043
|
+
id: encodeSimple("id", payload.id, {
|
|
80044
|
+
explode: false,
|
|
80045
|
+
charEncoding: "percent"
|
|
80046
|
+
})
|
|
79350
80047
|
};
|
|
79351
|
-
const path = pathToFunc("/
|
|
80048
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79352
80049
|
const headers = new Headers(compactMap({
|
|
79353
|
-
Accept: "
|
|
80050
|
+
Accept: "application/vnd.api+json"
|
|
79354
80051
|
}));
|
|
79355
80052
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79356
80053
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79358,7 +80055,7 @@ async function $do122(client, request, options) {
|
|
|
79358
80055
|
const context = {
|
|
79359
80056
|
options: client._options,
|
|
79360
80057
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79361
|
-
operationID: "
|
|
80058
|
+
operationID: "get-virtual-machine-backup",
|
|
79362
80059
|
oAuth2Scopes: null,
|
|
79363
80060
|
resolvedSecurity: requestSecurity,
|
|
79364
80061
|
securitySource: client._options.bearer,
|
|
@@ -79367,7 +80064,7 @@ async function $do122(client, request, options) {
|
|
|
79367
80064
|
};
|
|
79368
80065
|
const requestRes = client._createRequest(context, {
|
|
79369
80066
|
security: requestSecurity,
|
|
79370
|
-
method: "
|
|
80067
|
+
method: "GET",
|
|
79371
80068
|
baseURL: options?.serverURL,
|
|
79372
80069
|
path,
|
|
79373
80070
|
headers,
|
|
@@ -79389,8 +80086,1302 @@ async function $do122(client, request, options) {
|
|
|
79389
80086
|
return [doResult, { status: "request-error", request: req }];
|
|
79390
80087
|
}
|
|
79391
80088
|
const response = doResult.value;
|
|
79392
|
-
const
|
|
79393
|
-
|
|
80089
|
+
const responseFields = {
|
|
80090
|
+
HttpMeta: { Response: response, Request: req }
|
|
80091
|
+
};
|
|
80092
|
+
const [result] = await match(json(200, VirtualMachineBackup$inboundSchema, {
|
|
80093
|
+
ctype: "application/vnd.api+json"
|
|
80094
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80095
|
+
ctype: "application/vnd.api+json"
|
|
80096
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80097
|
+
if (!result.ok) {
|
|
80098
|
+
return [result, { status: "complete", request: req, response }];
|
|
80099
|
+
}
|
|
80100
|
+
return [result, { status: "complete", request: req, response }];
|
|
80101
|
+
}
|
|
80102
|
+
var init_virtualMachineBackupsGet = __esm(() => {
|
|
80103
|
+
init_encodings();
|
|
80104
|
+
init_http();
|
|
80105
|
+
init_matchers();
|
|
80106
|
+
init_primitives();
|
|
80107
|
+
init_schemas4();
|
|
80108
|
+
init_security();
|
|
80109
|
+
init_url();
|
|
80110
|
+
init_errors4();
|
|
80111
|
+
init_models();
|
|
80112
|
+
init_operations();
|
|
80113
|
+
init_async();
|
|
80114
|
+
});
|
|
80115
|
+
|
|
80116
|
+
// src/mcp-server/tools/virtualMachineBackupsGet.ts
|
|
80117
|
+
var args115, tool$virtualMachineBackupsGet;
|
|
80118
|
+
var init_virtualMachineBackupsGet2 = __esm(() => {
|
|
80119
|
+
init_virtualMachineBackupsGet();
|
|
80120
|
+
init_operations();
|
|
80121
|
+
init_tools();
|
|
80122
|
+
args115 = {
|
|
80123
|
+
request: GetVirtualMachineBackupRequest$inboundSchema
|
|
80124
|
+
};
|
|
80125
|
+
tool$virtualMachineBackupsGet = {
|
|
80126
|
+
name: "virtual-machine-backups-get",
|
|
80127
|
+
description: `Get VM backup`,
|
|
80128
|
+
args: args115,
|
|
80129
|
+
tool: async (client, args116, ctx) => {
|
|
80130
|
+
const [result, apiCall] = await virtualMachineBackupsGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80131
|
+
if (!result.ok) {
|
|
80132
|
+
return {
|
|
80133
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80134
|
+
isError: true
|
|
80135
|
+
};
|
|
80136
|
+
}
|
|
80137
|
+
const value = result.value;
|
|
80138
|
+
return formatResult(value, apiCall);
|
|
80139
|
+
}
|
|
80140
|
+
};
|
|
80141
|
+
});
|
|
80142
|
+
|
|
80143
|
+
// src/funcs/virtualMachineBackupsList.ts
|
|
80144
|
+
function virtualMachineBackupsList(client, options) {
|
|
80145
|
+
return new APIPromise($do124(client, options));
|
|
80146
|
+
}
|
|
80147
|
+
async function $do124(client, options) {
|
|
80148
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
80149
|
+
const headers = new Headers(compactMap({
|
|
80150
|
+
Accept: "application/vnd.api+json"
|
|
80151
|
+
}));
|
|
80152
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80153
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80154
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80155
|
+
const context = {
|
|
80156
|
+
options: client._options,
|
|
80157
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80158
|
+
operationID: "list-virtual-machine-backups",
|
|
80159
|
+
oAuth2Scopes: null,
|
|
80160
|
+
resolvedSecurity: requestSecurity,
|
|
80161
|
+
securitySource: client._options.bearer,
|
|
80162
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80163
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80164
|
+
};
|
|
80165
|
+
const requestRes = client._createRequest(context, {
|
|
80166
|
+
security: requestSecurity,
|
|
80167
|
+
method: "GET",
|
|
80168
|
+
baseURL: options?.serverURL,
|
|
80169
|
+
path,
|
|
80170
|
+
headers,
|
|
80171
|
+
userAgent: client._options.userAgent,
|
|
80172
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80173
|
+
}, options);
|
|
80174
|
+
if (!requestRes.ok) {
|
|
80175
|
+
return [requestRes, { status: "invalid" }];
|
|
80176
|
+
}
|
|
80177
|
+
const req = requestRes.value;
|
|
80178
|
+
const doResult = await client._do(req, {
|
|
80179
|
+
context,
|
|
80180
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80181
|
+
retryConfig: context.retryConfig,
|
|
80182
|
+
retryCodes: context.retryCodes
|
|
80183
|
+
});
|
|
80184
|
+
if (!doResult.ok) {
|
|
80185
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80186
|
+
}
|
|
80187
|
+
const response = doResult.value;
|
|
80188
|
+
const responseFields = {
|
|
80189
|
+
HttpMeta: { Response: response, Request: req }
|
|
80190
|
+
};
|
|
80191
|
+
const [result] = await match(json(200, VirtualMachineBackups$inboundSchema, {
|
|
80192
|
+
ctype: "application/vnd.api+json"
|
|
80193
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80194
|
+
ctype: "application/vnd.api+json"
|
|
80195
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80196
|
+
if (!result.ok) {
|
|
80197
|
+
return [result, { status: "complete", request: req, response }];
|
|
80198
|
+
}
|
|
80199
|
+
return [result, { status: "complete", request: req, response }];
|
|
80200
|
+
}
|
|
80201
|
+
var init_virtualMachineBackupsList = __esm(() => {
|
|
80202
|
+
init_http();
|
|
80203
|
+
init_matchers();
|
|
80204
|
+
init_primitives();
|
|
80205
|
+
init_security();
|
|
80206
|
+
init_url();
|
|
80207
|
+
init_errors4();
|
|
80208
|
+
init_models();
|
|
80209
|
+
init_async();
|
|
80210
|
+
});
|
|
80211
|
+
|
|
80212
|
+
// src/mcp-server/tools/virtualMachineBackupsList.ts
|
|
80213
|
+
var tool$virtualMachineBackupsList;
|
|
80214
|
+
var init_virtualMachineBackupsList2 = __esm(() => {
|
|
80215
|
+
init_virtualMachineBackupsList();
|
|
80216
|
+
init_tools();
|
|
80217
|
+
tool$virtualMachineBackupsList = {
|
|
80218
|
+
name: "virtual-machine-backups-list",
|
|
80219
|
+
description: `List all VM backups
|
|
80220
|
+
|
|
80221
|
+
Lists every backup that belongs to the authenticated team.
|
|
80222
|
+
`,
|
|
80223
|
+
tool: async (client, ctx) => {
|
|
80224
|
+
const [result, apiCall] = await virtualMachineBackupsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80225
|
+
if (!result.ok) {
|
|
80226
|
+
return {
|
|
80227
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80228
|
+
isError: true
|
|
80229
|
+
};
|
|
80230
|
+
}
|
|
80231
|
+
const value = result.value;
|
|
80232
|
+
return formatResult(value, apiCall);
|
|
80233
|
+
}
|
|
80234
|
+
};
|
|
80235
|
+
});
|
|
80236
|
+
|
|
80237
|
+
// src/funcs/virtualMachineBackupsListForVirtualMachine.ts
|
|
80238
|
+
function virtualMachineBackupsListForVirtualMachine(client, request, options) {
|
|
80239
|
+
return new APIPromise($do125(client, request, options));
|
|
80240
|
+
}
|
|
80241
|
+
async function $do125(client, request, options) {
|
|
80242
|
+
const parsed = safeParse4(request, (value) => ListVirtualMachineScopedBackupsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80243
|
+
if (!parsed.ok) {
|
|
80244
|
+
return [parsed, { status: "invalid" }];
|
|
80245
|
+
}
|
|
80246
|
+
const payload = parsed.value;
|
|
80247
|
+
const body = null;
|
|
80248
|
+
const pathParams = {
|
|
80249
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80250
|
+
};
|
|
80251
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups")(pathParams);
|
|
80252
|
+
const headers = new Headers(compactMap({
|
|
80253
|
+
Accept: "application/vnd.api+json"
|
|
80254
|
+
}));
|
|
80255
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80256
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80257
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80258
|
+
const context = {
|
|
80259
|
+
options: client._options,
|
|
80260
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80261
|
+
operationID: "list-virtual-machine-scoped-backups",
|
|
80262
|
+
oAuth2Scopes: null,
|
|
80263
|
+
resolvedSecurity: requestSecurity,
|
|
80264
|
+
securitySource: client._options.bearer,
|
|
80265
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80266
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80267
|
+
};
|
|
80268
|
+
const requestRes = client._createRequest(context, {
|
|
80269
|
+
security: requestSecurity,
|
|
80270
|
+
method: "GET",
|
|
80271
|
+
baseURL: options?.serverURL,
|
|
80272
|
+
path,
|
|
80273
|
+
headers,
|
|
80274
|
+
body,
|
|
80275
|
+
userAgent: client._options.userAgent,
|
|
80276
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80277
|
+
}, options);
|
|
80278
|
+
if (!requestRes.ok) {
|
|
80279
|
+
return [requestRes, { status: "invalid" }];
|
|
80280
|
+
}
|
|
80281
|
+
const req = requestRes.value;
|
|
80282
|
+
const doResult = await client._do(req, {
|
|
80283
|
+
context,
|
|
80284
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80285
|
+
retryConfig: context.retryConfig,
|
|
80286
|
+
retryCodes: context.retryCodes
|
|
80287
|
+
});
|
|
80288
|
+
if (!doResult.ok) {
|
|
80289
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80290
|
+
}
|
|
80291
|
+
const response = doResult.value;
|
|
80292
|
+
const responseFields = {
|
|
80293
|
+
HttpMeta: { Response: response, Request: req }
|
|
80294
|
+
};
|
|
80295
|
+
const [result] = await match(json(200, VirtualMachineBackups$inboundSchema, {
|
|
80296
|
+
ctype: "application/vnd.api+json"
|
|
80297
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80298
|
+
ctype: "application/vnd.api+json"
|
|
80299
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80300
|
+
if (!result.ok) {
|
|
80301
|
+
return [result, { status: "complete", request: req, response }];
|
|
80302
|
+
}
|
|
80303
|
+
return [result, { status: "complete", request: req, response }];
|
|
80304
|
+
}
|
|
80305
|
+
var init_virtualMachineBackupsListForVirtualMachine = __esm(() => {
|
|
80306
|
+
init_encodings();
|
|
80307
|
+
init_http();
|
|
80308
|
+
init_matchers();
|
|
80309
|
+
init_primitives();
|
|
80310
|
+
init_schemas4();
|
|
80311
|
+
init_security();
|
|
80312
|
+
init_url();
|
|
80313
|
+
init_errors4();
|
|
80314
|
+
init_models();
|
|
80315
|
+
init_operations();
|
|
80316
|
+
init_async();
|
|
80317
|
+
});
|
|
80318
|
+
|
|
80319
|
+
// src/mcp-server/tools/virtualMachineBackupsListForVirtualMachine.ts
|
|
80320
|
+
var args116, tool$virtualMachineBackupsListForVirtualMachine;
|
|
80321
|
+
var init_virtualMachineBackupsListForVirtualMachine2 = __esm(() => {
|
|
80322
|
+
init_virtualMachineBackupsListForVirtualMachine();
|
|
80323
|
+
init_operations();
|
|
80324
|
+
init_tools();
|
|
80325
|
+
args116 = {
|
|
80326
|
+
request: ListVirtualMachineScopedBackupsRequest$inboundSchema
|
|
80327
|
+
};
|
|
80328
|
+
tool$virtualMachineBackupsListForVirtualMachine = {
|
|
80329
|
+
name: "virtual-machine-backups-list-for-virtual-machine",
|
|
80330
|
+
description: `List a VM's backups
|
|
80331
|
+
|
|
80332
|
+
Lists the backups of the given Virtual Machine.
|
|
80333
|
+
`,
|
|
80334
|
+
args: args116,
|
|
80335
|
+
tool: async (client, args117, ctx) => {
|
|
80336
|
+
const [result, apiCall] = await virtualMachineBackupsListForVirtualMachine(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80337
|
+
if (!result.ok) {
|
|
80338
|
+
return {
|
|
80339
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80340
|
+
isError: true
|
|
80341
|
+
};
|
|
80342
|
+
}
|
|
80343
|
+
const value = result.value;
|
|
80344
|
+
return formatResult(value, apiCall);
|
|
80345
|
+
}
|
|
80346
|
+
};
|
|
80347
|
+
});
|
|
80348
|
+
|
|
80349
|
+
// src/funcs/virtualMachineRestoresCreate.ts
|
|
80350
|
+
function virtualMachineRestoresCreate(client, request, options) {
|
|
80351
|
+
return new APIPromise($do126(client, request, options));
|
|
80352
|
+
}
|
|
80353
|
+
async function $do126(client, request, options) {
|
|
80354
|
+
const parsed = safeParse4(request, (value) => VirtualMachineRestorePayload$outboundSchema.parse(value), "Input validation failed");
|
|
80355
|
+
if (!parsed.ok) {
|
|
80356
|
+
return [parsed, { status: "invalid" }];
|
|
80357
|
+
}
|
|
80358
|
+
const payload = parsed.value;
|
|
80359
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
80360
|
+
const path = pathToFunc("/virtual_machine_restores")();
|
|
80361
|
+
const headers = new Headers(compactMap({
|
|
80362
|
+
"Content-Type": "application/json",
|
|
80363
|
+
Accept: "application/vnd.api+json"
|
|
80364
|
+
}));
|
|
80365
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80366
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80367
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80368
|
+
const context = {
|
|
80369
|
+
options: client._options,
|
|
80370
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80371
|
+
operationID: "create-virtual-machine-restore-flat",
|
|
80372
|
+
oAuth2Scopes: null,
|
|
80373
|
+
resolvedSecurity: requestSecurity,
|
|
80374
|
+
securitySource: client._options.bearer,
|
|
80375
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80376
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80377
|
+
};
|
|
80378
|
+
const requestRes = client._createRequest(context, {
|
|
80379
|
+
security: requestSecurity,
|
|
80380
|
+
method: "POST",
|
|
80381
|
+
baseURL: options?.serverURL,
|
|
80382
|
+
path,
|
|
80383
|
+
headers,
|
|
80384
|
+
body,
|
|
80385
|
+
userAgent: client._options.userAgent,
|
|
80386
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80387
|
+
}, options);
|
|
80388
|
+
if (!requestRes.ok) {
|
|
80389
|
+
return [requestRes, { status: "invalid" }];
|
|
80390
|
+
}
|
|
80391
|
+
const req = requestRes.value;
|
|
80392
|
+
const doResult = await client._do(req, {
|
|
80393
|
+
context,
|
|
80394
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80395
|
+
retryConfig: context.retryConfig,
|
|
80396
|
+
retryCodes: context.retryCodes
|
|
80397
|
+
});
|
|
80398
|
+
if (!doResult.ok) {
|
|
80399
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80400
|
+
}
|
|
80401
|
+
const response = doResult.value;
|
|
80402
|
+
const responseFields = {
|
|
80403
|
+
HttpMeta: { Response: response, Request: req }
|
|
80404
|
+
};
|
|
80405
|
+
const [result] = await match(json(201, VirtualMachineRestore$inboundSchema, {
|
|
80406
|
+
ctype: "application/vnd.api+json"
|
|
80407
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80408
|
+
ctype: "application/vnd.api+json"
|
|
80409
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80410
|
+
if (!result.ok) {
|
|
80411
|
+
return [result, { status: "complete", request: req, response }];
|
|
80412
|
+
}
|
|
80413
|
+
return [result, { status: "complete", request: req, response }];
|
|
80414
|
+
}
|
|
80415
|
+
var init_virtualMachineRestoresCreate = __esm(() => {
|
|
80416
|
+
init_encodings();
|
|
80417
|
+
init_http();
|
|
80418
|
+
init_matchers();
|
|
80419
|
+
init_primitives();
|
|
80420
|
+
init_schemas4();
|
|
80421
|
+
init_security();
|
|
80422
|
+
init_url();
|
|
80423
|
+
init_errors4();
|
|
80424
|
+
init_models();
|
|
80425
|
+
init_async();
|
|
80426
|
+
});
|
|
80427
|
+
|
|
80428
|
+
// src/mcp-server/tools/virtualMachineRestoresCreate.ts
|
|
80429
|
+
var args117, tool$virtualMachineRestoresCreate;
|
|
80430
|
+
var init_virtualMachineRestoresCreate2 = __esm(() => {
|
|
80431
|
+
init_virtualMachineRestoresCreate();
|
|
80432
|
+
init_models();
|
|
80433
|
+
init_tools();
|
|
80434
|
+
args117 = {
|
|
80435
|
+
request: VirtualMachineRestorePayload$inboundSchema
|
|
80436
|
+
};
|
|
80437
|
+
tool$virtualMachineRestoresCreate = {
|
|
80438
|
+
name: "virtual-machine-restores-create",
|
|
80439
|
+
description: `Create VM restore (flat)
|
|
80440
|
+
|
|
80441
|
+
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.
|
|
80442
|
+
`,
|
|
80443
|
+
args: args117,
|
|
80444
|
+
tool: async (client, args118, ctx) => {
|
|
80445
|
+
const [result, apiCall] = await virtualMachineRestoresCreate(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80446
|
+
if (!result.ok) {
|
|
80447
|
+
return {
|
|
80448
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80449
|
+
isError: true
|
|
80450
|
+
};
|
|
80451
|
+
}
|
|
80452
|
+
const value = result.value;
|
|
80453
|
+
return formatResult(value, apiCall);
|
|
80454
|
+
}
|
|
80455
|
+
};
|
|
80456
|
+
});
|
|
80457
|
+
|
|
80458
|
+
// src/funcs/virtualMachineRestoresCreateForVirtualMachineBackup.ts
|
|
80459
|
+
function virtualMachineRestoresCreateForVirtualMachineBackup(client, request, options) {
|
|
80460
|
+
return new APIPromise($do127(client, request, options));
|
|
80461
|
+
}
|
|
80462
|
+
async function $do127(client, request, options) {
|
|
80463
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineRestoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80464
|
+
if (!parsed.ok) {
|
|
80465
|
+
return [parsed, { status: "invalid" }];
|
|
80466
|
+
}
|
|
80467
|
+
const payload = parsed.value;
|
|
80468
|
+
const body = encodeJSON("body", payload.virtual_machine_restore_payload, {
|
|
80469
|
+
explode: true
|
|
80470
|
+
});
|
|
80471
|
+
const pathParams = {
|
|
80472
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80473
|
+
explode: false,
|
|
80474
|
+
charEncoding: "percent"
|
|
80475
|
+
}),
|
|
80476
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80477
|
+
};
|
|
80478
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups/{backup_id}/restores")(pathParams);
|
|
80479
|
+
const headers = new Headers(compactMap({
|
|
80480
|
+
"Content-Type": "application/json",
|
|
80481
|
+
Accept: "application/vnd.api+json"
|
|
80482
|
+
}));
|
|
80483
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80484
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80485
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80486
|
+
const context = {
|
|
80487
|
+
options: client._options,
|
|
80488
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80489
|
+
operationID: "create-virtual-machine-restore",
|
|
80490
|
+
oAuth2Scopes: null,
|
|
80491
|
+
resolvedSecurity: requestSecurity,
|
|
80492
|
+
securitySource: client._options.bearer,
|
|
80493
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80494
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80495
|
+
};
|
|
80496
|
+
const requestRes = client._createRequest(context, {
|
|
80497
|
+
security: requestSecurity,
|
|
80498
|
+
method: "POST",
|
|
80499
|
+
baseURL: options?.serverURL,
|
|
80500
|
+
path,
|
|
80501
|
+
headers,
|
|
80502
|
+
body,
|
|
80503
|
+
userAgent: client._options.userAgent,
|
|
80504
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80505
|
+
}, options);
|
|
80506
|
+
if (!requestRes.ok) {
|
|
80507
|
+
return [requestRes, { status: "invalid" }];
|
|
80508
|
+
}
|
|
80509
|
+
const req = requestRes.value;
|
|
80510
|
+
const doResult = await client._do(req, {
|
|
80511
|
+
context,
|
|
80512
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80513
|
+
retryConfig: context.retryConfig,
|
|
80514
|
+
retryCodes: context.retryCodes
|
|
80515
|
+
});
|
|
80516
|
+
if (!doResult.ok) {
|
|
80517
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80518
|
+
}
|
|
80519
|
+
const response = doResult.value;
|
|
80520
|
+
const responseFields = {
|
|
80521
|
+
HttpMeta: { Response: response, Request: req }
|
|
80522
|
+
};
|
|
80523
|
+
const [result] = await match(json(201, VirtualMachineRestore$inboundSchema, {
|
|
80524
|
+
ctype: "application/vnd.api+json"
|
|
80525
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80526
|
+
ctype: "application/vnd.api+json"
|
|
80527
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80528
|
+
if (!result.ok) {
|
|
80529
|
+
return [result, { status: "complete", request: req, response }];
|
|
80530
|
+
}
|
|
80531
|
+
return [result, { status: "complete", request: req, response }];
|
|
80532
|
+
}
|
|
80533
|
+
var init_virtualMachineRestoresCreateForVirtualMachineBackup = __esm(() => {
|
|
80534
|
+
init_encodings();
|
|
80535
|
+
init_http();
|
|
80536
|
+
init_matchers();
|
|
80537
|
+
init_primitives();
|
|
80538
|
+
init_schemas4();
|
|
80539
|
+
init_security();
|
|
80540
|
+
init_url();
|
|
80541
|
+
init_errors4();
|
|
80542
|
+
init_models();
|
|
80543
|
+
init_operations();
|
|
80544
|
+
init_async();
|
|
80545
|
+
});
|
|
80546
|
+
|
|
80547
|
+
// src/mcp-server/tools/virtualMachineRestoresCreateForVirtualMachineBackup.ts
|
|
80548
|
+
var args118, tool$virtualMachineRestoresCreateForVirtualMachineBackup;
|
|
80549
|
+
var init_virtualMachineRestoresCreateForVirtualMachineBackup2 = __esm(() => {
|
|
80550
|
+
init_virtualMachineRestoresCreateForVirtualMachineBackup();
|
|
80551
|
+
init_operations();
|
|
80552
|
+
init_tools();
|
|
80553
|
+
args118 = {
|
|
80554
|
+
request: CreateVirtualMachineRestoreRequest$inboundSchema
|
|
80555
|
+
};
|
|
80556
|
+
tool$virtualMachineRestoresCreateForVirtualMachineBackup = {
|
|
80557
|
+
name: "virtual-machine-restores-create-for-virtual-machine-backup",
|
|
80558
|
+
description: `Create VM restore
|
|
80559
|
+
|
|
80560
|
+
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.
|
|
80561
|
+
`,
|
|
80562
|
+
args: args118,
|
|
80563
|
+
tool: async (client, args119, ctx) => {
|
|
80564
|
+
const [result, apiCall] = await virtualMachineRestoresCreateForVirtualMachineBackup(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80565
|
+
if (!result.ok) {
|
|
80566
|
+
return {
|
|
80567
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80568
|
+
isError: true
|
|
80569
|
+
};
|
|
80570
|
+
}
|
|
80571
|
+
const value = result.value;
|
|
80572
|
+
return formatResult(value, apiCall);
|
|
80573
|
+
}
|
|
80574
|
+
};
|
|
80575
|
+
});
|
|
80576
|
+
|
|
80577
|
+
// src/funcs/virtualMachineRestoresGet.ts
|
|
80578
|
+
function virtualMachineRestoresGet(client, request, options) {
|
|
80579
|
+
return new APIPromise($do128(client, request, options));
|
|
80580
|
+
}
|
|
80581
|
+
async function $do128(client, request, options) {
|
|
80582
|
+
const parsed = safeParse4(request, (value) => GetVirtualMachineRestoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80583
|
+
if (!parsed.ok) {
|
|
80584
|
+
return [parsed, { status: "invalid" }];
|
|
80585
|
+
}
|
|
80586
|
+
const payload = parsed.value;
|
|
80587
|
+
const body = null;
|
|
80588
|
+
const pathParams = {
|
|
80589
|
+
id: encodeSimple("id", payload.id, {
|
|
80590
|
+
explode: false,
|
|
80591
|
+
charEncoding: "percent"
|
|
80592
|
+
})
|
|
80593
|
+
};
|
|
80594
|
+
const path = pathToFunc("/virtual_machine_restores/{id}")(pathParams);
|
|
80595
|
+
const headers = new Headers(compactMap({
|
|
80596
|
+
Accept: "application/vnd.api+json"
|
|
80597
|
+
}));
|
|
80598
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80599
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80600
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80601
|
+
const context = {
|
|
80602
|
+
options: client._options,
|
|
80603
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80604
|
+
operationID: "get-virtual-machine-restore",
|
|
80605
|
+
oAuth2Scopes: null,
|
|
80606
|
+
resolvedSecurity: requestSecurity,
|
|
80607
|
+
securitySource: client._options.bearer,
|
|
80608
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80609
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80610
|
+
};
|
|
80611
|
+
const requestRes = client._createRequest(context, {
|
|
80612
|
+
security: requestSecurity,
|
|
80613
|
+
method: "GET",
|
|
80614
|
+
baseURL: options?.serverURL,
|
|
80615
|
+
path,
|
|
80616
|
+
headers,
|
|
80617
|
+
body,
|
|
80618
|
+
userAgent: client._options.userAgent,
|
|
80619
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80620
|
+
}, options);
|
|
80621
|
+
if (!requestRes.ok) {
|
|
80622
|
+
return [requestRes, { status: "invalid" }];
|
|
80623
|
+
}
|
|
80624
|
+
const req = requestRes.value;
|
|
80625
|
+
const doResult = await client._do(req, {
|
|
80626
|
+
context,
|
|
80627
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80628
|
+
retryConfig: context.retryConfig,
|
|
80629
|
+
retryCodes: context.retryCodes
|
|
80630
|
+
});
|
|
80631
|
+
if (!doResult.ok) {
|
|
80632
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80633
|
+
}
|
|
80634
|
+
const response = doResult.value;
|
|
80635
|
+
const responseFields = {
|
|
80636
|
+
HttpMeta: { Response: response, Request: req }
|
|
80637
|
+
};
|
|
80638
|
+
const [result] = await match(json(200, VirtualMachineRestore$inboundSchema, {
|
|
80639
|
+
ctype: "application/vnd.api+json"
|
|
80640
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80641
|
+
ctype: "application/vnd.api+json"
|
|
80642
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80643
|
+
if (!result.ok) {
|
|
80644
|
+
return [result, { status: "complete", request: req, response }];
|
|
80645
|
+
}
|
|
80646
|
+
return [result, { status: "complete", request: req, response }];
|
|
80647
|
+
}
|
|
80648
|
+
var init_virtualMachineRestoresGet = __esm(() => {
|
|
80649
|
+
init_encodings();
|
|
80650
|
+
init_http();
|
|
80651
|
+
init_matchers();
|
|
80652
|
+
init_primitives();
|
|
80653
|
+
init_schemas4();
|
|
80654
|
+
init_security();
|
|
80655
|
+
init_url();
|
|
80656
|
+
init_errors4();
|
|
80657
|
+
init_models();
|
|
80658
|
+
init_operations();
|
|
80659
|
+
init_async();
|
|
80660
|
+
});
|
|
80661
|
+
|
|
80662
|
+
// src/mcp-server/tools/virtualMachineRestoresGet.ts
|
|
80663
|
+
var args119, tool$virtualMachineRestoresGet;
|
|
80664
|
+
var init_virtualMachineRestoresGet2 = __esm(() => {
|
|
80665
|
+
init_virtualMachineRestoresGet();
|
|
80666
|
+
init_operations();
|
|
80667
|
+
init_tools();
|
|
80668
|
+
args119 = {
|
|
80669
|
+
request: GetVirtualMachineRestoreRequest$inboundSchema
|
|
80670
|
+
};
|
|
80671
|
+
tool$virtualMachineRestoresGet = {
|
|
80672
|
+
name: "virtual-machine-restores-get",
|
|
80673
|
+
description: `Get VM restore`,
|
|
80674
|
+
args: args119,
|
|
80675
|
+
tool: async (client, args120, ctx) => {
|
|
80676
|
+
const [result, apiCall] = await virtualMachineRestoresGet(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80677
|
+
if (!result.ok) {
|
|
80678
|
+
return {
|
|
80679
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80680
|
+
isError: true
|
|
80681
|
+
};
|
|
80682
|
+
}
|
|
80683
|
+
const value = result.value;
|
|
80684
|
+
return formatResult(value, apiCall);
|
|
80685
|
+
}
|
|
80686
|
+
};
|
|
80687
|
+
});
|
|
80688
|
+
|
|
80689
|
+
// src/funcs/virtualMachineRestoresList.ts
|
|
80690
|
+
function virtualMachineRestoresList(client, options) {
|
|
80691
|
+
return new APIPromise($do129(client, options));
|
|
80692
|
+
}
|
|
80693
|
+
async function $do129(client, options) {
|
|
80694
|
+
const path = pathToFunc("/virtual_machine_restores")();
|
|
80695
|
+
const headers = new Headers(compactMap({
|
|
80696
|
+
Accept: "application/vnd.api+json"
|
|
80697
|
+
}));
|
|
80698
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80699
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80700
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80701
|
+
const context = {
|
|
80702
|
+
options: client._options,
|
|
80703
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80704
|
+
operationID: "list-virtual-machine-restores",
|
|
80705
|
+
oAuth2Scopes: null,
|
|
80706
|
+
resolvedSecurity: requestSecurity,
|
|
80707
|
+
securitySource: client._options.bearer,
|
|
80708
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80709
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80710
|
+
};
|
|
80711
|
+
const requestRes = client._createRequest(context, {
|
|
80712
|
+
security: requestSecurity,
|
|
80713
|
+
method: "GET",
|
|
80714
|
+
baseURL: options?.serverURL,
|
|
80715
|
+
path,
|
|
80716
|
+
headers,
|
|
80717
|
+
userAgent: client._options.userAgent,
|
|
80718
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80719
|
+
}, options);
|
|
80720
|
+
if (!requestRes.ok) {
|
|
80721
|
+
return [requestRes, { status: "invalid" }];
|
|
80722
|
+
}
|
|
80723
|
+
const req = requestRes.value;
|
|
80724
|
+
const doResult = await client._do(req, {
|
|
80725
|
+
context,
|
|
80726
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80727
|
+
retryConfig: context.retryConfig,
|
|
80728
|
+
retryCodes: context.retryCodes
|
|
80729
|
+
});
|
|
80730
|
+
if (!doResult.ok) {
|
|
80731
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80732
|
+
}
|
|
80733
|
+
const response = doResult.value;
|
|
80734
|
+
const responseFields = {
|
|
80735
|
+
HttpMeta: { Response: response, Request: req }
|
|
80736
|
+
};
|
|
80737
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80738
|
+
ctype: "application/vnd.api+json"
|
|
80739
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80740
|
+
ctype: "application/vnd.api+json"
|
|
80741
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80742
|
+
if (!result.ok) {
|
|
80743
|
+
return [result, { status: "complete", request: req, response }];
|
|
80744
|
+
}
|
|
80745
|
+
return [result, { status: "complete", request: req, response }];
|
|
80746
|
+
}
|
|
80747
|
+
var init_virtualMachineRestoresList = __esm(() => {
|
|
80748
|
+
init_http();
|
|
80749
|
+
init_matchers();
|
|
80750
|
+
init_primitives();
|
|
80751
|
+
init_security();
|
|
80752
|
+
init_url();
|
|
80753
|
+
init_errors4();
|
|
80754
|
+
init_models();
|
|
80755
|
+
init_async();
|
|
80756
|
+
});
|
|
80757
|
+
|
|
80758
|
+
// src/mcp-server/tools/virtualMachineRestoresList.ts
|
|
80759
|
+
var tool$virtualMachineRestoresList;
|
|
80760
|
+
var init_virtualMachineRestoresList2 = __esm(() => {
|
|
80761
|
+
init_virtualMachineRestoresList();
|
|
80762
|
+
init_tools();
|
|
80763
|
+
tool$virtualMachineRestoresList = {
|
|
80764
|
+
name: "virtual-machine-restores-list",
|
|
80765
|
+
description: `List all VM restores
|
|
80766
|
+
|
|
80767
|
+
Lists every restore that belongs to the authenticated team.
|
|
80768
|
+
`,
|
|
80769
|
+
tool: async (client, ctx) => {
|
|
80770
|
+
const [result, apiCall] = await virtualMachineRestoresList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80771
|
+
if (!result.ok) {
|
|
80772
|
+
return {
|
|
80773
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80774
|
+
isError: true
|
|
80775
|
+
};
|
|
80776
|
+
}
|
|
80777
|
+
const value = result.value;
|
|
80778
|
+
return formatResult(value, apiCall);
|
|
80779
|
+
}
|
|
80780
|
+
};
|
|
80781
|
+
});
|
|
80782
|
+
|
|
80783
|
+
// src/funcs/virtualMachineRestoresListForBackup.ts
|
|
80784
|
+
function virtualMachineRestoresListForBackup(client, request, options) {
|
|
80785
|
+
return new APIPromise($do130(client, request, options));
|
|
80786
|
+
}
|
|
80787
|
+
async function $do130(client, request, options) {
|
|
80788
|
+
const parsed = safeParse4(request, (value) => ListBackupRestoresRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80789
|
+
if (!parsed.ok) {
|
|
80790
|
+
return [parsed, { status: "invalid" }];
|
|
80791
|
+
}
|
|
80792
|
+
const payload = parsed.value;
|
|
80793
|
+
const body = null;
|
|
80794
|
+
const pathParams = {
|
|
80795
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80796
|
+
explode: false,
|
|
80797
|
+
charEncoding: "percent"
|
|
80798
|
+
})
|
|
80799
|
+
};
|
|
80800
|
+
const path = pathToFunc("/virtual_machine_backups/{backup_id}/restores")(pathParams);
|
|
80801
|
+
const headers = new Headers(compactMap({
|
|
80802
|
+
Accept: "application/vnd.api+json"
|
|
80803
|
+
}));
|
|
80804
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80805
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80806
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80807
|
+
const context = {
|
|
80808
|
+
options: client._options,
|
|
80809
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80810
|
+
operationID: "list-backup-restores",
|
|
80811
|
+
oAuth2Scopes: null,
|
|
80812
|
+
resolvedSecurity: requestSecurity,
|
|
80813
|
+
securitySource: client._options.bearer,
|
|
80814
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80815
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80816
|
+
};
|
|
80817
|
+
const requestRes = client._createRequest(context, {
|
|
80818
|
+
security: requestSecurity,
|
|
80819
|
+
method: "GET",
|
|
80820
|
+
baseURL: options?.serverURL,
|
|
80821
|
+
path,
|
|
80822
|
+
headers,
|
|
80823
|
+
body,
|
|
80824
|
+
userAgent: client._options.userAgent,
|
|
80825
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80826
|
+
}, options);
|
|
80827
|
+
if (!requestRes.ok) {
|
|
80828
|
+
return [requestRes, { status: "invalid" }];
|
|
80829
|
+
}
|
|
80830
|
+
const req = requestRes.value;
|
|
80831
|
+
const doResult = await client._do(req, {
|
|
80832
|
+
context,
|
|
80833
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80834
|
+
retryConfig: context.retryConfig,
|
|
80835
|
+
retryCodes: context.retryCodes
|
|
80836
|
+
});
|
|
80837
|
+
if (!doResult.ok) {
|
|
80838
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80839
|
+
}
|
|
80840
|
+
const response = doResult.value;
|
|
80841
|
+
const responseFields = {
|
|
80842
|
+
HttpMeta: { Response: response, Request: req }
|
|
80843
|
+
};
|
|
80844
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80845
|
+
ctype: "application/vnd.api+json"
|
|
80846
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80847
|
+
ctype: "application/vnd.api+json"
|
|
80848
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80849
|
+
if (!result.ok) {
|
|
80850
|
+
return [result, { status: "complete", request: req, response }];
|
|
80851
|
+
}
|
|
80852
|
+
return [result, { status: "complete", request: req, response }];
|
|
80853
|
+
}
|
|
80854
|
+
var init_virtualMachineRestoresListForBackup = __esm(() => {
|
|
80855
|
+
init_encodings();
|
|
80856
|
+
init_http();
|
|
80857
|
+
init_matchers();
|
|
80858
|
+
init_primitives();
|
|
80859
|
+
init_schemas4();
|
|
80860
|
+
init_security();
|
|
80861
|
+
init_url();
|
|
80862
|
+
init_errors4();
|
|
80863
|
+
init_models();
|
|
80864
|
+
init_operations();
|
|
80865
|
+
init_async();
|
|
80866
|
+
});
|
|
80867
|
+
|
|
80868
|
+
// src/mcp-server/tools/virtualMachineRestoresListForBackup.ts
|
|
80869
|
+
var args120, tool$virtualMachineRestoresListForBackup;
|
|
80870
|
+
var init_virtualMachineRestoresListForBackup2 = __esm(() => {
|
|
80871
|
+
init_virtualMachineRestoresListForBackup();
|
|
80872
|
+
init_operations();
|
|
80873
|
+
init_tools();
|
|
80874
|
+
args120 = {
|
|
80875
|
+
request: ListBackupRestoresRequest$inboundSchema
|
|
80876
|
+
};
|
|
80877
|
+
tool$virtualMachineRestoresListForBackup = {
|
|
80878
|
+
name: "virtual-machine-restores-list-for-backup",
|
|
80879
|
+
description: `List a backup's restores (top-level backup path)
|
|
80880
|
+
|
|
80881
|
+
Lists the restores created from the given backup, reached via the top-level backup path.
|
|
80882
|
+
`,
|
|
80883
|
+
args: args120,
|
|
80884
|
+
tool: async (client, args121, ctx) => {
|
|
80885
|
+
const [result, apiCall] = await virtualMachineRestoresListForBackup(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80886
|
+
if (!result.ok) {
|
|
80887
|
+
return {
|
|
80888
|
+
content: [{ type: "text", text: result.error.message }],
|
|
80889
|
+
isError: true
|
|
80890
|
+
};
|
|
80891
|
+
}
|
|
80892
|
+
const value = result.value;
|
|
80893
|
+
return formatResult(value, apiCall);
|
|
80894
|
+
}
|
|
80895
|
+
};
|
|
80896
|
+
});
|
|
80897
|
+
|
|
80898
|
+
// src/funcs/virtualMachineRestoresListForVirtualMachineBackup.ts
|
|
80899
|
+
function virtualMachineRestoresListForVirtualMachineBackup(client, request, options) {
|
|
80900
|
+
return new APIPromise($do131(client, request, options));
|
|
80901
|
+
}
|
|
80902
|
+
async function $do131(client, request, options) {
|
|
80903
|
+
const parsed = safeParse4(request, (value) => ListVirtualMachineScopedRestoresRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80904
|
+
if (!parsed.ok) {
|
|
80905
|
+
return [parsed, { status: "invalid" }];
|
|
80906
|
+
}
|
|
80907
|
+
const payload = parsed.value;
|
|
80908
|
+
const body = null;
|
|
80909
|
+
const pathParams = {
|
|
80910
|
+
backup_id: encodeSimple("backup_id", payload.backup_id, {
|
|
80911
|
+
explode: false,
|
|
80912
|
+
charEncoding: "percent"
|
|
80913
|
+
}),
|
|
80914
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
80915
|
+
};
|
|
80916
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups/{backup_id}/restores")(pathParams);
|
|
80917
|
+
const headers = new Headers(compactMap({
|
|
80918
|
+
Accept: "application/vnd.api+json"
|
|
80919
|
+
}));
|
|
80920
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
80921
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
80922
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80923
|
+
const context = {
|
|
80924
|
+
options: client._options,
|
|
80925
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80926
|
+
operationID: "list-virtual-machine-scoped-restores",
|
|
80927
|
+
oAuth2Scopes: null,
|
|
80928
|
+
resolvedSecurity: requestSecurity,
|
|
80929
|
+
securitySource: client._options.bearer,
|
|
80930
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
80931
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
80932
|
+
};
|
|
80933
|
+
const requestRes = client._createRequest(context, {
|
|
80934
|
+
security: requestSecurity,
|
|
80935
|
+
method: "GET",
|
|
80936
|
+
baseURL: options?.serverURL,
|
|
80937
|
+
path,
|
|
80938
|
+
headers,
|
|
80939
|
+
body,
|
|
80940
|
+
userAgent: client._options.userAgent,
|
|
80941
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
80942
|
+
}, options);
|
|
80943
|
+
if (!requestRes.ok) {
|
|
80944
|
+
return [requestRes, { status: "invalid" }];
|
|
80945
|
+
}
|
|
80946
|
+
const req = requestRes.value;
|
|
80947
|
+
const doResult = await client._do(req, {
|
|
80948
|
+
context,
|
|
80949
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
80950
|
+
retryConfig: context.retryConfig,
|
|
80951
|
+
retryCodes: context.retryCodes
|
|
80952
|
+
});
|
|
80953
|
+
if (!doResult.ok) {
|
|
80954
|
+
return [doResult, { status: "request-error", request: req }];
|
|
80955
|
+
}
|
|
80956
|
+
const response = doResult.value;
|
|
80957
|
+
const responseFields = {
|
|
80958
|
+
HttpMeta: { Response: response, Request: req }
|
|
80959
|
+
};
|
|
80960
|
+
const [result] = await match(json(200, VirtualMachineRestores$inboundSchema, {
|
|
80961
|
+
ctype: "application/vnd.api+json"
|
|
80962
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
80963
|
+
ctype: "application/vnd.api+json"
|
|
80964
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
80965
|
+
if (!result.ok) {
|
|
80966
|
+
return [result, { status: "complete", request: req, response }];
|
|
80967
|
+
}
|
|
80968
|
+
return [result, { status: "complete", request: req, response }];
|
|
80969
|
+
}
|
|
80970
|
+
var init_virtualMachineRestoresListForVirtualMachineBackup = __esm(() => {
|
|
80971
|
+
init_encodings();
|
|
80972
|
+
init_http();
|
|
80973
|
+
init_matchers();
|
|
80974
|
+
init_primitives();
|
|
80975
|
+
init_schemas4();
|
|
80976
|
+
init_security();
|
|
80977
|
+
init_url();
|
|
80978
|
+
init_errors4();
|
|
80979
|
+
init_models();
|
|
80980
|
+
init_operations();
|
|
80981
|
+
init_async();
|
|
80982
|
+
});
|
|
80983
|
+
|
|
80984
|
+
// src/mcp-server/tools/virtualMachineRestoresListForVirtualMachineBackup.ts
|
|
80985
|
+
var args121, tool$virtualMachineRestoresListForVirtualMachineBackup;
|
|
80986
|
+
var init_virtualMachineRestoresListForVirtualMachineBackup2 = __esm(() => {
|
|
80987
|
+
init_virtualMachineRestoresListForVirtualMachineBackup();
|
|
80988
|
+
init_operations();
|
|
80989
|
+
init_tools();
|
|
80990
|
+
args121 = {
|
|
80991
|
+
request: ListVirtualMachineScopedRestoresRequest$inboundSchema
|
|
80992
|
+
};
|
|
80993
|
+
tool$virtualMachineRestoresListForVirtualMachineBackup = {
|
|
80994
|
+
name: "virtual-machine-restores-list-for-virtual-machine-backup",
|
|
80995
|
+
description: `List a backup's restores
|
|
80996
|
+
|
|
80997
|
+
Lists the restores created from the given backup.
|
|
80998
|
+
`,
|
|
80999
|
+
args: args121,
|
|
81000
|
+
tool: async (client, args122, ctx) => {
|
|
81001
|
+
const [result, apiCall] = await virtualMachineRestoresListForVirtualMachineBackup(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81002
|
+
if (!result.ok) {
|
|
81003
|
+
return {
|
|
81004
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81005
|
+
isError: true
|
|
81006
|
+
};
|
|
81007
|
+
}
|
|
81008
|
+
const value = result.value;
|
|
81009
|
+
return formatResult(value, apiCall);
|
|
81010
|
+
}
|
|
81011
|
+
};
|
|
81012
|
+
});
|
|
81013
|
+
|
|
81014
|
+
// src/funcs/virtualMachinesCreate.ts
|
|
81015
|
+
function virtualMachinesCreate(client, request, options) {
|
|
81016
|
+
return new APIPromise($do132(client, request, options));
|
|
81017
|
+
}
|
|
81018
|
+
async function $do132(client, request, options) {
|
|
81019
|
+
const parsed = safeParse4(request, (value) => VirtualMachinePayload$outboundSchema.parse(value), "Input validation failed");
|
|
81020
|
+
if (!parsed.ok) {
|
|
81021
|
+
return [parsed, { status: "invalid" }];
|
|
81022
|
+
}
|
|
81023
|
+
const payload = parsed.value;
|
|
81024
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
81025
|
+
const path = pathToFunc("/virtual_machines")();
|
|
81026
|
+
const headers = new Headers(compactMap({
|
|
81027
|
+
"Content-Type": "application/json",
|
|
81028
|
+
Accept: "application/vnd.api+json"
|
|
81029
|
+
}));
|
|
81030
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81031
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81032
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81033
|
+
const context = {
|
|
81034
|
+
options: client._options,
|
|
81035
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81036
|
+
operationID: "create-virtual-machine",
|
|
81037
|
+
oAuth2Scopes: null,
|
|
81038
|
+
resolvedSecurity: requestSecurity,
|
|
81039
|
+
securitySource: client._options.bearer,
|
|
81040
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81041
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81042
|
+
};
|
|
81043
|
+
const requestRes = client._createRequest(context, {
|
|
81044
|
+
security: requestSecurity,
|
|
81045
|
+
method: "POST",
|
|
81046
|
+
baseURL: options?.serverURL,
|
|
81047
|
+
path,
|
|
81048
|
+
headers,
|
|
81049
|
+
body,
|
|
81050
|
+
userAgent: client._options.userAgent,
|
|
81051
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81052
|
+
}, options);
|
|
81053
|
+
if (!requestRes.ok) {
|
|
81054
|
+
return [requestRes, { status: "invalid" }];
|
|
81055
|
+
}
|
|
81056
|
+
const req = requestRes.value;
|
|
81057
|
+
const doResult = await client._do(req, {
|
|
81058
|
+
context,
|
|
81059
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81060
|
+
retryConfig: context.retryConfig,
|
|
81061
|
+
retryCodes: context.retryCodes
|
|
81062
|
+
});
|
|
81063
|
+
if (!doResult.ok) {
|
|
81064
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81065
|
+
}
|
|
81066
|
+
const response = doResult.value;
|
|
81067
|
+
const [result] = await match(json(201, VirtualMachine$inboundSchema, {
|
|
81068
|
+
ctype: "application/vnd.api+json"
|
|
81069
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
81070
|
+
if (!result.ok) {
|
|
81071
|
+
return [result, { status: "complete", request: req, response }];
|
|
81072
|
+
}
|
|
81073
|
+
return [result, { status: "complete", request: req, response }];
|
|
81074
|
+
}
|
|
81075
|
+
var init_virtualMachinesCreate = __esm(() => {
|
|
81076
|
+
init_encodings();
|
|
81077
|
+
init_http();
|
|
81078
|
+
init_matchers();
|
|
81079
|
+
init_primitives();
|
|
81080
|
+
init_schemas4();
|
|
81081
|
+
init_security();
|
|
81082
|
+
init_url();
|
|
81083
|
+
init_models();
|
|
81084
|
+
init_async();
|
|
81085
|
+
});
|
|
81086
|
+
|
|
81087
|
+
// src/mcp-server/tools/virtualMachinesCreate.ts
|
|
81088
|
+
var args122, tool$virtualMachinesCreate;
|
|
81089
|
+
var init_virtualMachinesCreate2 = __esm(() => {
|
|
81090
|
+
init_virtualMachinesCreate();
|
|
81091
|
+
init_models();
|
|
81092
|
+
init_tools();
|
|
81093
|
+
args122 = {
|
|
81094
|
+
request: VirtualMachinePayload$inboundSchema
|
|
81095
|
+
};
|
|
81096
|
+
tool$virtualMachinesCreate = {
|
|
81097
|
+
name: "virtual-machines-create",
|
|
81098
|
+
description: `Create VM
|
|
81099
|
+
|
|
81100
|
+
Creates a new Virtual Machine.
|
|
81101
|
+
`,
|
|
81102
|
+
args: args122,
|
|
81103
|
+
tool: async (client, args123, ctx) => {
|
|
81104
|
+
const [result, apiCall] = await virtualMachinesCreate(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81105
|
+
if (!result.ok) {
|
|
81106
|
+
return {
|
|
81107
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81108
|
+
isError: true
|
|
81109
|
+
};
|
|
81110
|
+
}
|
|
81111
|
+
const value = result.value;
|
|
81112
|
+
return formatResult(value, apiCall);
|
|
81113
|
+
}
|
|
81114
|
+
};
|
|
81115
|
+
});
|
|
81116
|
+
|
|
81117
|
+
// src/funcs/virtualMachinesCreateVirtualMachineAction.ts
|
|
81118
|
+
function virtualMachinesCreateVirtualMachineAction(client, request, options) {
|
|
81119
|
+
return new APIPromise($do133(client, request, options));
|
|
81120
|
+
}
|
|
81121
|
+
async function $do133(client, request, options) {
|
|
81122
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineActionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81123
|
+
if (!parsed.ok) {
|
|
81124
|
+
return [parsed, { status: "invalid" }];
|
|
81125
|
+
}
|
|
81126
|
+
const payload = parsed.value;
|
|
81127
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
81128
|
+
const pathParams = {
|
|
81129
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81130
|
+
};
|
|
81131
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/actions")(pathParams);
|
|
81132
|
+
const headers = new Headers(compactMap({
|
|
81133
|
+
"Content-Type": "application/json",
|
|
81134
|
+
Accept: "*/*"
|
|
81135
|
+
}));
|
|
81136
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81137
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81138
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81139
|
+
const context = {
|
|
81140
|
+
options: client._options,
|
|
81141
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81142
|
+
operationID: "create-virtual-machine-action",
|
|
81143
|
+
oAuth2Scopes: null,
|
|
81144
|
+
resolvedSecurity: requestSecurity,
|
|
81145
|
+
securitySource: client._options.bearer,
|
|
81146
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81147
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81148
|
+
};
|
|
81149
|
+
const requestRes = client._createRequest(context, {
|
|
81150
|
+
security: requestSecurity,
|
|
81151
|
+
method: "POST",
|
|
81152
|
+
baseURL: options?.serverURL,
|
|
81153
|
+
path,
|
|
81154
|
+
headers,
|
|
81155
|
+
body,
|
|
81156
|
+
userAgent: client._options.userAgent,
|
|
81157
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81158
|
+
}, options);
|
|
81159
|
+
if (!requestRes.ok) {
|
|
81160
|
+
return [requestRes, { status: "invalid" }];
|
|
81161
|
+
}
|
|
81162
|
+
const req = requestRes.value;
|
|
81163
|
+
const doResult = await client._do(req, {
|
|
81164
|
+
context,
|
|
81165
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81166
|
+
retryConfig: context.retryConfig,
|
|
81167
|
+
retryCodes: context.retryCodes
|
|
81168
|
+
});
|
|
81169
|
+
if (!doResult.ok) {
|
|
81170
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81171
|
+
}
|
|
81172
|
+
const response = doResult.value;
|
|
81173
|
+
const [result] = await match(nil(201, voidType()), fail("4XX"), fail("5XX"))(response, req);
|
|
81174
|
+
if (!result.ok) {
|
|
81175
|
+
return [result, { status: "complete", request: req, response }];
|
|
81176
|
+
}
|
|
81177
|
+
return [result, { status: "complete", request: req, response }];
|
|
81178
|
+
}
|
|
81179
|
+
var init_virtualMachinesCreateVirtualMachineAction = __esm(() => {
|
|
81180
|
+
init_v3();
|
|
81181
|
+
init_encodings();
|
|
81182
|
+
init_http();
|
|
81183
|
+
init_matchers();
|
|
81184
|
+
init_primitives();
|
|
81185
|
+
init_schemas4();
|
|
81186
|
+
init_security();
|
|
81187
|
+
init_url();
|
|
81188
|
+
init_operations();
|
|
81189
|
+
init_async();
|
|
81190
|
+
});
|
|
81191
|
+
|
|
81192
|
+
// src/mcp-server/tools/virtualMachinesCreateVirtualMachineAction.ts
|
|
81193
|
+
var args123, tool$virtualMachinesCreateVirtualMachineAction;
|
|
81194
|
+
var init_virtualMachinesCreateVirtualMachineAction2 = __esm(() => {
|
|
81195
|
+
init_virtualMachinesCreateVirtualMachineAction();
|
|
81196
|
+
init_operations();
|
|
81197
|
+
init_tools();
|
|
81198
|
+
args123 = {
|
|
81199
|
+
request: CreateVirtualMachineActionRequest$inboundSchema
|
|
81200
|
+
};
|
|
81201
|
+
tool$virtualMachinesCreateVirtualMachineAction = {
|
|
81202
|
+
name: "virtual-machines-create-virtual-machine-action",
|
|
81203
|
+
description: `Run VM power action
|
|
81204
|
+
|
|
81205
|
+
Performs a power action on a given virtual machine:
|
|
81206
|
+
- \`power_on\` - Starts the virtual machine
|
|
81207
|
+
- \`power_off\` - Stops the virtual machine
|
|
81208
|
+
- \`reboot\` - Restarts the virtual machine
|
|
81209
|
+
`,
|
|
81210
|
+
args: args123,
|
|
81211
|
+
tool: async (client, args124, ctx) => {
|
|
81212
|
+
const [result, apiCall] = await virtualMachinesCreateVirtualMachineAction(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81213
|
+
if (!result.ok) {
|
|
81214
|
+
return {
|
|
81215
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81216
|
+
isError: true
|
|
81217
|
+
};
|
|
81218
|
+
}
|
|
81219
|
+
return formatResult(undefined, apiCall);
|
|
81220
|
+
}
|
|
81221
|
+
};
|
|
81222
|
+
});
|
|
81223
|
+
|
|
81224
|
+
// src/funcs/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
81225
|
+
function virtualMachinesCreateVirtualMachineNetworkAttachment(client, request, options) {
|
|
81226
|
+
return new APIPromise($do134(client, request, options));
|
|
81227
|
+
}
|
|
81228
|
+
async function $do134(client, request, options) {
|
|
81229
|
+
const parsed = safeParse4(request, (value) => CreateVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81230
|
+
if (!parsed.ok) {
|
|
81231
|
+
return [parsed, { status: "invalid" }];
|
|
81232
|
+
}
|
|
81233
|
+
const payload = parsed.value;
|
|
81234
|
+
const body = encodeJSON("body", payload.virtual_machine_network_attachment_create_payload, { explode: true });
|
|
81235
|
+
const pathParams = {
|
|
81236
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81237
|
+
};
|
|
81238
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments")(pathParams);
|
|
81239
|
+
const headers = new Headers(compactMap({
|
|
81240
|
+
"Content-Type": "application/json",
|
|
81241
|
+
Accept: "application/vnd.api+json"
|
|
81242
|
+
}));
|
|
81243
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81244
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81245
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81246
|
+
const context = {
|
|
81247
|
+
options: client._options,
|
|
81248
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81249
|
+
operationID: "create-virtual-machine-network-attachment",
|
|
81250
|
+
oAuth2Scopes: null,
|
|
81251
|
+
resolvedSecurity: requestSecurity,
|
|
81252
|
+
securitySource: client._options.bearer,
|
|
81253
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81254
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81255
|
+
};
|
|
81256
|
+
const requestRes = client._createRequest(context, {
|
|
81257
|
+
security: requestSecurity,
|
|
81258
|
+
method: "POST",
|
|
81259
|
+
baseURL: options?.serverURL,
|
|
81260
|
+
path,
|
|
81261
|
+
headers,
|
|
81262
|
+
body,
|
|
81263
|
+
userAgent: client._options.userAgent,
|
|
81264
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81265
|
+
}, options);
|
|
81266
|
+
if (!requestRes.ok) {
|
|
81267
|
+
return [requestRes, { status: "invalid" }];
|
|
81268
|
+
}
|
|
81269
|
+
const req = requestRes.value;
|
|
81270
|
+
const doResult = await client._do(req, {
|
|
81271
|
+
context,
|
|
81272
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81273
|
+
retryConfig: context.retryConfig,
|
|
81274
|
+
retryCodes: context.retryCodes
|
|
81275
|
+
});
|
|
81276
|
+
if (!doResult.ok) {
|
|
81277
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81278
|
+
}
|
|
81279
|
+
const response = doResult.value;
|
|
81280
|
+
const [result] = await match(json(202, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, { ctype: "application/vnd.api+json" }), fail([403, 404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
81281
|
+
if (!result.ok) {
|
|
81282
|
+
return [result, { status: "complete", request: req, response }];
|
|
81283
|
+
}
|
|
81284
|
+
return [result, { status: "complete", request: req, response }];
|
|
81285
|
+
}
|
|
81286
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
81287
|
+
init_encodings();
|
|
81288
|
+
init_http();
|
|
81289
|
+
init_matchers();
|
|
81290
|
+
init_primitives();
|
|
81291
|
+
init_schemas4();
|
|
81292
|
+
init_security();
|
|
81293
|
+
init_url();
|
|
81294
|
+
init_operations();
|
|
81295
|
+
init_async();
|
|
81296
|
+
});
|
|
81297
|
+
|
|
81298
|
+
// src/mcp-server/tools/virtualMachinesCreateVirtualMachineNetworkAttachment.ts
|
|
81299
|
+
var args124, tool$virtualMachinesCreateVirtualMachineNetworkAttachment;
|
|
81300
|
+
var init_virtualMachinesCreateVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
81301
|
+
init_virtualMachinesCreateVirtualMachineNetworkAttachment();
|
|
81302
|
+
init_operations();
|
|
81303
|
+
init_tools();
|
|
81304
|
+
args124 = {
|
|
81305
|
+
request: CreateVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
81306
|
+
};
|
|
81307
|
+
tool$virtualMachinesCreateVirtualMachineNetworkAttachment = {
|
|
81308
|
+
name: "virtual-machines-create-virtual-machine-network-attachment",
|
|
81309
|
+
description: `Attach a network to a VM
|
|
81310
|
+
|
|
81311
|
+
Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
81312
|
+
`,
|
|
81313
|
+
args: args124,
|
|
81314
|
+
tool: async (client, args125, ctx) => {
|
|
81315
|
+
const [result, apiCall] = await virtualMachinesCreateVirtualMachineNetworkAttachment(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81316
|
+
if (!result.ok) {
|
|
81317
|
+
return {
|
|
81318
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81319
|
+
isError: true
|
|
81320
|
+
};
|
|
81321
|
+
}
|
|
81322
|
+
const value = result.value;
|
|
81323
|
+
return formatResult(value, apiCall);
|
|
81324
|
+
}
|
|
81325
|
+
};
|
|
81326
|
+
});
|
|
81327
|
+
|
|
81328
|
+
// src/funcs/virtualMachinesDelete.ts
|
|
81329
|
+
function virtualMachinesDelete(client, request, options) {
|
|
81330
|
+
return new APIPromise($do135(client, request, options));
|
|
81331
|
+
}
|
|
81332
|
+
async function $do135(client, request, options) {
|
|
81333
|
+
const parsed = safeParse4(request, (value) => DestroyVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81334
|
+
if (!parsed.ok) {
|
|
81335
|
+
return [parsed, { status: "invalid" }];
|
|
81336
|
+
}
|
|
81337
|
+
const payload = parsed.value;
|
|
81338
|
+
const body = null;
|
|
81339
|
+
const pathParams = {
|
|
81340
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81341
|
+
};
|
|
81342
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}")(pathParams);
|
|
81343
|
+
const headers = new Headers(compactMap({
|
|
81344
|
+
Accept: "*/*"
|
|
81345
|
+
}));
|
|
81346
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81347
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81348
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81349
|
+
const context = {
|
|
81350
|
+
options: client._options,
|
|
81351
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81352
|
+
operationID: "destroy-virtual-machine",
|
|
81353
|
+
oAuth2Scopes: null,
|
|
81354
|
+
resolvedSecurity: requestSecurity,
|
|
81355
|
+
securitySource: client._options.bearer,
|
|
81356
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81357
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81358
|
+
};
|
|
81359
|
+
const requestRes = client._createRequest(context, {
|
|
81360
|
+
security: requestSecurity,
|
|
81361
|
+
method: "DELETE",
|
|
81362
|
+
baseURL: options?.serverURL,
|
|
81363
|
+
path,
|
|
81364
|
+
headers,
|
|
81365
|
+
body,
|
|
81366
|
+
userAgent: client._options.userAgent,
|
|
81367
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
81368
|
+
}, options);
|
|
81369
|
+
if (!requestRes.ok) {
|
|
81370
|
+
return [requestRes, { status: "invalid" }];
|
|
81371
|
+
}
|
|
81372
|
+
const req = requestRes.value;
|
|
81373
|
+
const doResult = await client._do(req, {
|
|
81374
|
+
context,
|
|
81375
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81376
|
+
retryConfig: context.retryConfig,
|
|
81377
|
+
retryCodes: context.retryCodes
|
|
81378
|
+
});
|
|
81379
|
+
if (!doResult.ok) {
|
|
81380
|
+
return [doResult, { status: "request-error", request: req }];
|
|
81381
|
+
}
|
|
81382
|
+
const response = doResult.value;
|
|
81383
|
+
const [result] = await match(nil(204, voidType()), fail("4XX"), fail("5XX"))(response, req);
|
|
81384
|
+
if (!result.ok) {
|
|
79394
81385
|
return [result, { status: "complete", request: req, response }];
|
|
79395
81386
|
}
|
|
79396
81387
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -79409,12 +81400,12 @@ var init_virtualMachinesDelete = __esm(() => {
|
|
|
79409
81400
|
});
|
|
79410
81401
|
|
|
79411
81402
|
// src/mcp-server/tools/virtualMachinesDelete.ts
|
|
79412
|
-
var
|
|
81403
|
+
var args125, tool$virtualMachinesDelete;
|
|
79413
81404
|
var init_virtualMachinesDelete2 = __esm(() => {
|
|
79414
81405
|
init_virtualMachinesDelete();
|
|
79415
81406
|
init_operations();
|
|
79416
81407
|
init_tools();
|
|
79417
|
-
|
|
81408
|
+
args125 = {
|
|
79418
81409
|
request: DestroyVirtualMachineRequest$inboundSchema
|
|
79419
81410
|
};
|
|
79420
81411
|
tool$virtualMachinesDelete = {
|
|
@@ -79423,9 +81414,9 @@ var init_virtualMachinesDelete2 = __esm(() => {
|
|
|
79423
81414
|
|
|
79424
81415
|
Destroys a Virtual Machine.
|
|
79425
81416
|
`,
|
|
79426
|
-
args:
|
|
79427
|
-
tool: async (client,
|
|
79428
|
-
const [result, apiCall] = await virtualMachinesDelete(client,
|
|
81417
|
+
args: args125,
|
|
81418
|
+
tool: async (client, args126, ctx) => {
|
|
81419
|
+
const [result, apiCall] = await virtualMachinesDelete(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79429
81420
|
if (!result.ok) {
|
|
79430
81421
|
return {
|
|
79431
81422
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79439,9 +81430,9 @@ Destroys a Virtual Machine.
|
|
|
79439
81430
|
|
|
79440
81431
|
// src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79441
81432
|
function virtualMachinesDestroyVirtualMachineNetworkAttachment(client, request, options) {
|
|
79442
|
-
return new APIPromise($
|
|
81433
|
+
return new APIPromise($do136(client, request, options));
|
|
79443
81434
|
}
|
|
79444
|
-
async function $
|
|
81435
|
+
async function $do136(client, request, options) {
|
|
79445
81436
|
const parsed = safeParse4(request, (value) => DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79446
81437
|
if (!parsed.ok) {
|
|
79447
81438
|
return [parsed, { status: "invalid" }];
|
|
@@ -79515,12 +81506,12 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79515
81506
|
});
|
|
79516
81507
|
|
|
79517
81508
|
// src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79518
|
-
var
|
|
81509
|
+
var args126, tool$virtualMachinesDestroyVirtualMachineNetworkAttachment;
|
|
79519
81510
|
var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
79520
81511
|
init_virtualMachinesDestroyVirtualMachineNetworkAttachment();
|
|
79521
81512
|
init_operations();
|
|
79522
81513
|
init_tools();
|
|
79523
|
-
|
|
81514
|
+
args126 = {
|
|
79524
81515
|
request: DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
79525
81516
|
};
|
|
79526
81517
|
tool$virtualMachinesDestroyVirtualMachineNetworkAttachment = {
|
|
@@ -79529,9 +81520,9 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
|
79529
81520
|
|
|
79530
81521
|
Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
79531
81522
|
`,
|
|
79532
|
-
args:
|
|
79533
|
-
tool: async (client,
|
|
79534
|
-
const [result, apiCall] = await virtualMachinesDestroyVirtualMachineNetworkAttachment(client,
|
|
81523
|
+
args: args126,
|
|
81524
|
+
tool: async (client, args127, ctx) => {
|
|
81525
|
+
const [result, apiCall] = await virtualMachinesDestroyVirtualMachineNetworkAttachment(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79535
81526
|
if (!result.ok) {
|
|
79536
81527
|
return {
|
|
79537
81528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79546,9 +81537,9 @@ Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronous
|
|
|
79546
81537
|
|
|
79547
81538
|
// src/funcs/virtualMachinesGet.ts
|
|
79548
81539
|
function virtualMachinesGet(client, request, options) {
|
|
79549
|
-
return new APIPromise($
|
|
81540
|
+
return new APIPromise($do137(client, request, options));
|
|
79550
81541
|
}
|
|
79551
|
-
async function $
|
|
81542
|
+
async function $do137(client, request, options) {
|
|
79552
81543
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79553
81544
|
if (!parsed.ok) {
|
|
79554
81545
|
return [parsed, { status: "invalid" }];
|
|
@@ -79559,6 +81550,9 @@ async function $do124(client, request, options) {
|
|
|
79559
81550
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79560
81551
|
};
|
|
79561
81552
|
const path = pathToFunc("/virtual_machines/{virtual_machine_id}")(pathParams);
|
|
81553
|
+
const query = encodeFormQuery({
|
|
81554
|
+
"extra_fields[virtual_machines]": payload["extra_fields[virtual_machines]"]
|
|
81555
|
+
});
|
|
79562
81556
|
const headers = new Headers(compactMap({
|
|
79563
81557
|
Accept: "application/vnd.api+json"
|
|
79564
81558
|
}));
|
|
@@ -79581,6 +81575,7 @@ async function $do124(client, request, options) {
|
|
|
79581
81575
|
baseURL: options?.serverURL,
|
|
79582
81576
|
path,
|
|
79583
81577
|
headers,
|
|
81578
|
+
query,
|
|
79584
81579
|
body,
|
|
79585
81580
|
userAgent: client._options.userAgent,
|
|
79586
81581
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -79621,12 +81616,12 @@ var init_virtualMachinesGet = __esm(() => {
|
|
|
79621
81616
|
});
|
|
79622
81617
|
|
|
79623
81618
|
// src/mcp-server/tools/virtualMachinesGet.ts
|
|
79624
|
-
var
|
|
81619
|
+
var args127, tool$virtualMachinesGet;
|
|
79625
81620
|
var init_virtualMachinesGet2 = __esm(() => {
|
|
79626
81621
|
init_virtualMachinesGet();
|
|
79627
81622
|
init_operations();
|
|
79628
81623
|
init_tools();
|
|
79629
|
-
|
|
81624
|
+
args127 = {
|
|
79630
81625
|
request: ShowVirtualMachineRequest$inboundSchema
|
|
79631
81626
|
};
|
|
79632
81627
|
tool$virtualMachinesGet = {
|
|
@@ -79635,9 +81630,9 @@ var init_virtualMachinesGet2 = __esm(() => {
|
|
|
79635
81630
|
|
|
79636
81631
|
Show a Virtual Machine.
|
|
79637
81632
|
`,
|
|
79638
|
-
args:
|
|
79639
|
-
tool: async (client,
|
|
79640
|
-
const [result, apiCall] = await virtualMachinesGet(client,
|
|
81633
|
+
args: args127,
|
|
81634
|
+
tool: async (client, args128, ctx) => {
|
|
81635
|
+
const [result, apiCall] = await virtualMachinesGet(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79641
81636
|
if (!result.ok) {
|
|
79642
81637
|
return {
|
|
79643
81638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79652,9 +81647,9 @@ Show a Virtual Machine.
|
|
|
79652
81647
|
|
|
79653
81648
|
// src/funcs/virtualMachinesList.ts
|
|
79654
81649
|
function virtualMachinesList(client, request, options) {
|
|
79655
|
-
return new APIPromise($
|
|
81650
|
+
return new APIPromise($do138(client, request, options));
|
|
79656
81651
|
}
|
|
79657
|
-
async function $
|
|
81652
|
+
async function $do138(client, request, options) {
|
|
79658
81653
|
const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79659
81654
|
if (!parsed.ok) {
|
|
79660
81655
|
return [parsed, { status: "invalid" }];
|
|
@@ -79730,12 +81725,12 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
79730
81725
|
});
|
|
79731
81726
|
|
|
79732
81727
|
// src/mcp-server/tools/virtualMachinesList.ts
|
|
79733
|
-
var
|
|
81728
|
+
var args128, tool$virtualMachinesList;
|
|
79734
81729
|
var init_virtualMachinesList2 = __esm(() => {
|
|
79735
81730
|
init_virtualMachinesList();
|
|
79736
81731
|
init_operations();
|
|
79737
81732
|
init_tools();
|
|
79738
|
-
|
|
81733
|
+
args128 = {
|
|
79739
81734
|
request: IndexVirtualMachineRequest$inboundSchema.optional()
|
|
79740
81735
|
};
|
|
79741
81736
|
tool$virtualMachinesList = {
|
|
@@ -79744,9 +81739,9 @@ var init_virtualMachinesList2 = __esm(() => {
|
|
|
79744
81739
|
|
|
79745
81740
|
Show all Team's Virtual Machines.
|
|
79746
81741
|
`,
|
|
79747
|
-
args:
|
|
79748
|
-
tool: async (client,
|
|
79749
|
-
const [result, apiCall] = await virtualMachinesList(client,
|
|
81742
|
+
args: args128,
|
|
81743
|
+
tool: async (client, args129, ctx) => {
|
|
81744
|
+
const [result, apiCall] = await virtualMachinesList(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79750
81745
|
if (!result.ok) {
|
|
79751
81746
|
return {
|
|
79752
81747
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79761,9 +81756,9 @@ Show all Team's Virtual Machines.
|
|
|
79761
81756
|
|
|
79762
81757
|
// src/funcs/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79763
81758
|
function virtualMachinesListVirtualMachineNetworkAttachments(client, request, options) {
|
|
79764
|
-
return new APIPromise($
|
|
81759
|
+
return new APIPromise($do139(client, request, options));
|
|
79765
81760
|
}
|
|
79766
|
-
async function $
|
|
81761
|
+
async function $do139(client, request, options) {
|
|
79767
81762
|
const parsed = safeParse4(request, (value) => ListVirtualMachineNetworkAttachmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79768
81763
|
if (!parsed.ok) {
|
|
79769
81764
|
return [parsed, { status: "invalid" }];
|
|
@@ -79836,12 +81831,12 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments = __esm(() => {
|
|
|
79836
81831
|
});
|
|
79837
81832
|
|
|
79838
81833
|
// src/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79839
|
-
var
|
|
81834
|
+
var args129, tool$virtualMachinesListVirtualMachineNetworkAttachments;
|
|
79840
81835
|
var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
79841
81836
|
init_virtualMachinesListVirtualMachineNetworkAttachments();
|
|
79842
81837
|
init_operations();
|
|
79843
81838
|
init_tools();
|
|
79844
|
-
|
|
81839
|
+
args129 = {
|
|
79845
81840
|
request: ListVirtualMachineNetworkAttachmentsRequest$inboundSchema
|
|
79846
81841
|
};
|
|
79847
81842
|
tool$virtualMachinesListVirtualMachineNetworkAttachments = {
|
|
@@ -79850,9 +81845,9 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
|
79850
81845
|
|
|
79851
81846
|
Lists the secondary network attachments currently configured for a Virtual Machine.
|
|
79852
81847
|
`,
|
|
79853
|
-
args:
|
|
79854
|
-
tool: async (client,
|
|
79855
|
-
const [result, apiCall] = await virtualMachinesListVirtualMachineNetworkAttachments(client,
|
|
81848
|
+
args: args129,
|
|
81849
|
+
tool: async (client, args130, ctx) => {
|
|
81850
|
+
const [result, apiCall] = await virtualMachinesListVirtualMachineNetworkAttachments(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79856
81851
|
if (!result.ok) {
|
|
79857
81852
|
return {
|
|
79858
81853
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79867,9 +81862,9 @@ Lists the secondary network attachments currently configured for a Virtual Machi
|
|
|
79867
81862
|
|
|
79868
81863
|
// src/funcs/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79869
81864
|
function virtualMachinesShowVirtualMachineMetrics(client, request, options) {
|
|
79870
|
-
return new APIPromise($
|
|
81865
|
+
return new APIPromise($do140(client, request, options));
|
|
79871
81866
|
}
|
|
79872
|
-
async function $
|
|
81867
|
+
async function $do140(client, request, options) {
|
|
79873
81868
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79874
81869
|
if (!parsed.ok) {
|
|
79875
81870
|
return [parsed, { status: "invalid" }];
|
|
@@ -79948,12 +81943,12 @@ var init_virtualMachinesShowVirtualMachineMetrics = __esm(() => {
|
|
|
79948
81943
|
});
|
|
79949
81944
|
|
|
79950
81945
|
// src/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79951
|
-
var
|
|
81946
|
+
var args130, tool$virtualMachinesShowVirtualMachineMetrics;
|
|
79952
81947
|
var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
79953
81948
|
init_virtualMachinesShowVirtualMachineMetrics();
|
|
79954
81949
|
init_operations();
|
|
79955
81950
|
init_tools();
|
|
79956
|
-
|
|
81951
|
+
args130 = {
|
|
79957
81952
|
request: ShowVirtualMachineMetricsRequest$inboundSchema
|
|
79958
81953
|
};
|
|
79959
81954
|
tool$virtualMachinesShowVirtualMachineMetrics = {
|
|
@@ -79961,9 +81956,9 @@ var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
|
79961
81956
|
description: `Retrieve VM metrics
|
|
79962
81957
|
|
|
79963
81958
|
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,
|
|
81959
|
+
args: args130,
|
|
81960
|
+
tool: async (client, args131, ctx) => {
|
|
81961
|
+
const [result, apiCall] = await virtualMachinesShowVirtualMachineMetrics(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79967
81962
|
if (!result.ok) {
|
|
79968
81963
|
return {
|
|
79969
81964
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79978,9 +81973,9 @@ Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
|
79978
81973
|
|
|
79979
81974
|
// src/funcs/virtualMachinesUpdateVirtualMachine.ts
|
|
79980
81975
|
function virtualMachinesUpdateVirtualMachine(client, request, options) {
|
|
79981
|
-
return new APIPromise($
|
|
81976
|
+
return new APIPromise($do141(client, request, options));
|
|
79982
81977
|
}
|
|
79983
|
-
async function $
|
|
81978
|
+
async function $do141(client, request, options) {
|
|
79984
81979
|
const parsed = safeParse4(request, (value) => UpdateVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79985
81980
|
if (!parsed.ok) {
|
|
79986
81981
|
return [parsed, { status: "invalid" }];
|
|
@@ -80034,9 +82029,9 @@ async function $do128(client, request, options) {
|
|
|
80034
82029
|
return [doResult, { status: "request-error", request: req }];
|
|
80035
82030
|
}
|
|
80036
82031
|
const response = doResult.value;
|
|
80037
|
-
const [result] = await match(json(200, VirtualMachine$inboundSchema, {
|
|
82032
|
+
const [result] = await match(json([200, 202], VirtualMachine$inboundSchema, {
|
|
80038
82033
|
ctype: "application/vnd.api+json"
|
|
80039
|
-
}), fail([404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
82034
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req);
|
|
80040
82035
|
if (!result.ok) {
|
|
80041
82036
|
return [result, { status: "complete", request: req, response }];
|
|
80042
82037
|
}
|
|
@@ -80056,12 +82051,12 @@ var init_virtualMachinesUpdateVirtualMachine = __esm(() => {
|
|
|
80056
82051
|
});
|
|
80057
82052
|
|
|
80058
82053
|
// src/mcp-server/tools/virtualMachinesUpdateVirtualMachine.ts
|
|
80059
|
-
var
|
|
82054
|
+
var args131, tool$virtualMachinesUpdateVirtualMachine;
|
|
80060
82055
|
var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
80061
82056
|
init_virtualMachinesUpdateVirtualMachine();
|
|
80062
82057
|
init_operations();
|
|
80063
82058
|
init_tools();
|
|
80064
|
-
|
|
82059
|
+
args131 = {
|
|
80065
82060
|
request: UpdateVirtualMachineRequest$inboundSchema
|
|
80066
82061
|
};
|
|
80067
82062
|
tool$virtualMachinesUpdateVirtualMachine = {
|
|
@@ -80070,9 +82065,9 @@ var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
|
80070
82065
|
|
|
80071
82066
|
Updates a Virtual Machine's display name (hostname).
|
|
80072
82067
|
`,
|
|
80073
|
-
args:
|
|
80074
|
-
tool: async (client,
|
|
80075
|
-
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client,
|
|
82068
|
+
args: args131,
|
|
82069
|
+
tool: async (client, args132, ctx) => {
|
|
82070
|
+
const [result, apiCall] = await virtualMachinesUpdateVirtualMachine(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80076
82071
|
if (!result.ok) {
|
|
80077
82072
|
return {
|
|
80078
82073
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80087,9 +82082,9 @@ Updates a Virtual Machine's display name (hostname).
|
|
|
80087
82082
|
|
|
80088
82083
|
// src/funcs/virtualNetworksDelete.ts
|
|
80089
82084
|
function virtualNetworksDelete(client, request, options) {
|
|
80090
|
-
return new APIPromise($
|
|
82085
|
+
return new APIPromise($do142(client, request, options));
|
|
80091
82086
|
}
|
|
80092
|
-
async function $
|
|
82087
|
+
async function $do142(client, request, options) {
|
|
80093
82088
|
const parsed = safeParse4(request, (value) => DestroyVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80094
82089
|
if (!parsed.ok) {
|
|
80095
82090
|
return [parsed, { status: "invalid" }];
|
|
@@ -80163,12 +82158,12 @@ var init_virtualNetworksDelete = __esm(() => {
|
|
|
80163
82158
|
});
|
|
80164
82159
|
|
|
80165
82160
|
// src/mcp-server/tools/virtualNetworksDelete.ts
|
|
80166
|
-
var
|
|
82161
|
+
var args132, tool$virtualNetworksDelete;
|
|
80167
82162
|
var init_virtualNetworksDelete2 = __esm(() => {
|
|
80168
82163
|
init_virtualNetworksDelete();
|
|
80169
82164
|
init_operations();
|
|
80170
82165
|
init_tools();
|
|
80171
|
-
|
|
82166
|
+
args132 = {
|
|
80172
82167
|
request: DestroyVirtualNetworkRequest$inboundSchema
|
|
80173
82168
|
};
|
|
80174
82169
|
tool$virtualNetworksDelete = {
|
|
@@ -80177,9 +82172,9 @@ var init_virtualNetworksDelete2 = __esm(() => {
|
|
|
80177
82172
|
|
|
80178
82173
|
Delete virtual network
|
|
80179
82174
|
`,
|
|
80180
|
-
args:
|
|
80181
|
-
tool: async (client,
|
|
80182
|
-
const [result, apiCall] = await virtualNetworksDelete(client,
|
|
82175
|
+
args: args132,
|
|
82176
|
+
tool: async (client, args133, ctx) => {
|
|
82177
|
+
const [result, apiCall] = await virtualNetworksDelete(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80183
82178
|
if (!result.ok) {
|
|
80184
82179
|
return {
|
|
80185
82180
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80193,9 +82188,9 @@ Delete virtual network
|
|
|
80193
82188
|
|
|
80194
82189
|
// src/funcs/vpnSessionsCreate.ts
|
|
80195
82190
|
function vpnSessionsCreate(client, request, options) {
|
|
80196
|
-
return new APIPromise($
|
|
82191
|
+
return new APIPromise($do143(client, request, options));
|
|
80197
82192
|
}
|
|
80198
|
-
async function $
|
|
82193
|
+
async function $do143(client, request, options) {
|
|
80199
82194
|
const parsed = safeParse4(request, (value) => PostVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80200
82195
|
if (!parsed.ok) {
|
|
80201
82196
|
return [parsed, { status: "invalid" }];
|
|
@@ -80266,12 +82261,12 @@ var init_vpnSessionsCreate = __esm(() => {
|
|
|
80266
82261
|
});
|
|
80267
82262
|
|
|
80268
82263
|
// src/mcp-server/tools/vpnSessionsCreate.ts
|
|
80269
|
-
var
|
|
82264
|
+
var args133, tool$vpnSessionsCreate;
|
|
80270
82265
|
var init_vpnSessionsCreate2 = __esm(() => {
|
|
80271
82266
|
init_vpnSessionsCreate();
|
|
80272
82267
|
init_operations();
|
|
80273
82268
|
init_tools();
|
|
80274
|
-
|
|
82269
|
+
args133 = {
|
|
80275
82270
|
request: PostVpnSessionRequest$inboundSchema
|
|
80276
82271
|
};
|
|
80277
82272
|
tool$vpnSessionsCreate = {
|
|
@@ -80281,9 +82276,9 @@ var init_vpnSessionsCreate2 = __esm(() => {
|
|
|
80281
82276
|
Creates a new VPN Session.
|
|
80282
82277
|
\`NOTE:\` The VPN credentials are only listed ONCE upon creation. They can however be refreshed or deleted.
|
|
80283
82278
|
`,
|
|
80284
|
-
args:
|
|
80285
|
-
tool: async (client,
|
|
80286
|
-
const [result, apiCall] = await vpnSessionsCreate(client,
|
|
82279
|
+
args: args133,
|
|
82280
|
+
tool: async (client, args134, ctx) => {
|
|
82281
|
+
const [result, apiCall] = await vpnSessionsCreate(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80287
82282
|
if (!result.ok) {
|
|
80288
82283
|
return {
|
|
80289
82284
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80298,9 +82293,9 @@ Creates a new VPN Session.
|
|
|
80298
82293
|
|
|
80299
82294
|
// src/funcs/vpnSessionsDelete.ts
|
|
80300
82295
|
function vpnSessionsDelete(client, request, options) {
|
|
80301
|
-
return new APIPromise($
|
|
82296
|
+
return new APIPromise($do144(client, request, options));
|
|
80302
82297
|
}
|
|
80303
|
-
async function $
|
|
82298
|
+
async function $do144(client, request, options) {
|
|
80304
82299
|
const parsed = safeParse4(request, (value) => DeleteVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80305
82300
|
if (!parsed.ok) {
|
|
80306
82301
|
return [parsed, { status: "invalid" }];
|
|
@@ -80374,12 +82369,12 @@ var init_vpnSessionsDelete = __esm(() => {
|
|
|
80374
82369
|
});
|
|
80375
82370
|
|
|
80376
82371
|
// src/mcp-server/tools/vpnSessionsDelete.ts
|
|
80377
|
-
var
|
|
82372
|
+
var args134, tool$vpnSessionsDelete;
|
|
80378
82373
|
var init_vpnSessionsDelete2 = __esm(() => {
|
|
80379
82374
|
init_vpnSessionsDelete();
|
|
80380
82375
|
init_operations();
|
|
80381
82376
|
init_tools();
|
|
80382
|
-
|
|
82377
|
+
args134 = {
|
|
80383
82378
|
request: DeleteVpnSessionRequest$inboundSchema
|
|
80384
82379
|
};
|
|
80385
82380
|
tool$vpnSessionsDelete = {
|
|
@@ -80388,9 +82383,9 @@ var init_vpnSessionsDelete2 = __esm(() => {
|
|
|
80388
82383
|
|
|
80389
82384
|
Deletes an existing VPN Session.
|
|
80390
82385
|
`,
|
|
80391
|
-
args:
|
|
80392
|
-
tool: async (client,
|
|
80393
|
-
const [result, apiCall] = await vpnSessionsDelete(client,
|
|
82386
|
+
args: args134,
|
|
82387
|
+
tool: async (client, args135, ctx) => {
|
|
82388
|
+
const [result, apiCall] = await vpnSessionsDelete(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80394
82389
|
if (!result.ok) {
|
|
80395
82390
|
return {
|
|
80396
82391
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80404,9 +82399,9 @@ Deletes an existing VPN Session.
|
|
|
80404
82399
|
|
|
80405
82400
|
// src/funcs/vpnSessionsList.ts
|
|
80406
82401
|
function vpnSessionsList(client, request, options) {
|
|
80407
|
-
return new APIPromise($
|
|
82402
|
+
return new APIPromise($do145(client, request, options));
|
|
80408
82403
|
}
|
|
80409
|
-
async function $
|
|
82404
|
+
async function $do145(client, request, options) {
|
|
80410
82405
|
const parsed = safeParse4(request, (value) => GetVpnSessionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80411
82406
|
if (!parsed.ok) {
|
|
80412
82407
|
return [parsed, { status: "invalid" }];
|
|
@@ -80479,20 +82474,20 @@ var init_vpnSessionsList = __esm(() => {
|
|
|
80479
82474
|
});
|
|
80480
82475
|
|
|
80481
82476
|
// src/mcp-server/tools/vpnSessionsList.ts
|
|
80482
|
-
var
|
|
82477
|
+
var args135, tool$vpnSessionsList;
|
|
80483
82478
|
var init_vpnSessionsList2 = __esm(() => {
|
|
80484
82479
|
init_vpnSessionsList();
|
|
80485
82480
|
init_operations();
|
|
80486
82481
|
init_tools();
|
|
80487
|
-
|
|
82482
|
+
args135 = {
|
|
80488
82483
|
request: GetVpnSessionsRequest$inboundSchema.optional()
|
|
80489
82484
|
};
|
|
80490
82485
|
tool$vpnSessionsList = {
|
|
80491
82486
|
name: "vpn-sessions-list",
|
|
80492
82487
|
description: `List VPN sessions`,
|
|
80493
|
-
args:
|
|
80494
|
-
tool: async (client,
|
|
80495
|
-
const [result, apiCall] = await vpnSessionsList(client,
|
|
82488
|
+
args: args135,
|
|
82489
|
+
tool: async (client, args136, ctx) => {
|
|
82490
|
+
const [result, apiCall] = await vpnSessionsList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80496
82491
|
if (!result.ok) {
|
|
80497
82492
|
return {
|
|
80498
82493
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80507,9 +82502,9 @@ var init_vpnSessionsList2 = __esm(() => {
|
|
|
80507
82502
|
|
|
80508
82503
|
// src/funcs/vpnSessionsRefreshPassword.ts
|
|
80509
82504
|
function vpnSessionsRefreshPassword(client, request, options) {
|
|
80510
|
-
return new APIPromise($
|
|
82505
|
+
return new APIPromise($do146(client, request, options));
|
|
80511
82506
|
}
|
|
80512
|
-
async function $
|
|
82507
|
+
async function $do146(client, request, options) {
|
|
80513
82508
|
const parsed = safeParse4(request, (value) => PutVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80514
82509
|
if (!parsed.ok) {
|
|
80515
82510
|
return [parsed, { status: "invalid" }];
|
|
@@ -80585,12 +82580,12 @@ var init_vpnSessionsRefreshPassword = __esm(() => {
|
|
|
80585
82580
|
});
|
|
80586
82581
|
|
|
80587
82582
|
// src/mcp-server/tools/vpnSessionsRefreshPassword.ts
|
|
80588
|
-
var
|
|
82583
|
+
var args136, tool$vpnSessionsRefreshPassword;
|
|
80589
82584
|
var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
80590
82585
|
init_vpnSessionsRefreshPassword();
|
|
80591
82586
|
init_operations();
|
|
80592
82587
|
init_tools();
|
|
80593
|
-
|
|
82588
|
+
args136 = {
|
|
80594
82589
|
request: PutVpnSessionRequest$inboundSchema
|
|
80595
82590
|
};
|
|
80596
82591
|
tool$vpnSessionsRefreshPassword = {
|
|
@@ -80599,9 +82594,9 @@ var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
|
80599
82594
|
|
|
80600
82595
|
Refreshing an existing VPN Session will create new credentials for that session
|
|
80601
82596
|
`,
|
|
80602
|
-
args:
|
|
80603
|
-
tool: async (client,
|
|
80604
|
-
const [result, apiCall] = await vpnSessionsRefreshPassword(client,
|
|
82597
|
+
args: args136,
|
|
82598
|
+
tool: async (client, args137, ctx) => {
|
|
82599
|
+
const [result, apiCall] = await vpnSessionsRefreshPassword(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80605
82600
|
if (!result.ok) {
|
|
80606
82601
|
return {
|
|
80607
82602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80618,7 +82613,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
80618
82613
|
function createMCPServer(deps) {
|
|
80619
82614
|
const server2 = new McpServer({
|
|
80620
82615
|
name: "Latitudesh",
|
|
80621
|
-
version: "0.6.
|
|
82616
|
+
version: "0.6.4"
|
|
80622
82617
|
});
|
|
80623
82618
|
const client = new LatitudeshCore({
|
|
80624
82619
|
bearer: deps.bearer,
|
|
@@ -80673,6 +82668,7 @@ function createMCPServer(deps) {
|
|
|
80673
82668
|
tool(tool$plansGetBandwidth);
|
|
80674
82669
|
tool(tool$plansUpdateBandwidth);
|
|
80675
82670
|
tool(tool$plansListStorage);
|
|
82671
|
+
tool(tool$plansGetManagedDatabasePlans);
|
|
80676
82672
|
tool(tool$projectsList);
|
|
80677
82673
|
tool(tool$projectsCreate);
|
|
80678
82674
|
tool(tool$projectsUpdate);
|
|
@@ -80750,6 +82746,18 @@ function createMCPServer(deps) {
|
|
|
80750
82746
|
tool(tool$virtualMachinesListVirtualMachineNetworkAttachments);
|
|
80751
82747
|
tool(tool$virtualMachinesCreateVirtualMachineNetworkAttachment);
|
|
80752
82748
|
tool(tool$virtualMachinesDestroyVirtualMachineNetworkAttachment);
|
|
82749
|
+
tool(tool$virtualMachineBackupsListForVirtualMachine);
|
|
82750
|
+
tool(tool$virtualMachineBackupsCreateForVirtualMachine);
|
|
82751
|
+
tool(tool$virtualMachineBackupsList);
|
|
82752
|
+
tool(tool$virtualMachineBackupsCreate);
|
|
82753
|
+
tool(tool$virtualMachineBackupsGet);
|
|
82754
|
+
tool(tool$virtualMachineBackupsDelete);
|
|
82755
|
+
tool(tool$virtualMachineRestoresListForVirtualMachineBackup);
|
|
82756
|
+
tool(tool$virtualMachineRestoresCreateForVirtualMachineBackup);
|
|
82757
|
+
tool(tool$virtualMachineRestoresListForBackup);
|
|
82758
|
+
tool(tool$virtualMachineRestoresList);
|
|
82759
|
+
tool(tool$virtualMachineRestoresCreate);
|
|
82760
|
+
tool(tool$virtualMachineRestoresGet);
|
|
80753
82761
|
tool(tool$privateNetworksList);
|
|
80754
82762
|
tool(tool$privateNetworksCreate);
|
|
80755
82763
|
tool(tool$privateNetworksUpdate);
|
|
@@ -80819,6 +82827,7 @@ var init_server4 = __esm(() => {
|
|
|
80819
82827
|
init_operatingSystemsListPlans2();
|
|
80820
82828
|
init_plansGet2();
|
|
80821
82829
|
init_plansGetBandwidth2();
|
|
82830
|
+
init_plansGetManagedDatabasePlans2();
|
|
80822
82831
|
init_plansList2();
|
|
80823
82832
|
init_plansListStorage2();
|
|
80824
82833
|
init_plansUpdateBandwidth2();
|
|
@@ -80891,6 +82900,18 @@ var init_server4 = __esm(() => {
|
|
|
80891
82900
|
init_userProfileGet2();
|
|
80892
82901
|
init_userProfileListTeams2();
|
|
80893
82902
|
init_userProfileUpdate2();
|
|
82903
|
+
init_virtualMachineBackupsCreate2();
|
|
82904
|
+
init_virtualMachineBackupsCreateForVirtualMachine2();
|
|
82905
|
+
init_virtualMachineBackupsDelete2();
|
|
82906
|
+
init_virtualMachineBackupsGet2();
|
|
82907
|
+
init_virtualMachineBackupsList2();
|
|
82908
|
+
init_virtualMachineBackupsListForVirtualMachine2();
|
|
82909
|
+
init_virtualMachineRestoresCreate2();
|
|
82910
|
+
init_virtualMachineRestoresCreateForVirtualMachineBackup2();
|
|
82911
|
+
init_virtualMachineRestoresGet2();
|
|
82912
|
+
init_virtualMachineRestoresList2();
|
|
82913
|
+
init_virtualMachineRestoresListForBackup2();
|
|
82914
|
+
init_virtualMachineRestoresListForVirtualMachineBackup2();
|
|
80894
82915
|
init_virtualMachinesCreate2();
|
|
80895
82916
|
init_virtualMachinesCreateVirtualMachineAction2();
|
|
80896
82917
|
init_virtualMachinesCreateVirtualMachineNetworkAttachment2();
|
|
@@ -82109,7 +84130,7 @@ var routes = ln({
|
|
|
82109
84130
|
var app = _e(routes, {
|
|
82110
84131
|
name: "mcp",
|
|
82111
84132
|
versionInfo: {
|
|
82112
|
-
currentVersion: "0.6.
|
|
84133
|
+
currentVersion: "0.6.4"
|
|
82113
84134
|
}
|
|
82114
84135
|
});
|
|
82115
84136
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82117,5 +84138,5 @@ export {
|
|
|
82117
84138
|
app
|
|
82118
84139
|
};
|
|
82119
84140
|
|
|
82120
|
-
//# debugId=
|
|
84141
|
+
//# debugId=9DD8B5EDD4254C3E64756E2164756E21
|
|
82121
84142
|
//# sourceMappingURL=mcp-server.js.map
|