latitudesh-typescript-sdk 0.6.2 → 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 +2540 -480
- package/bin/mcp-server.js.map +76 -31
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.d.ts +2 -1
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.js +5 -3
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.js.map +1 -1
- 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/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageListFilesystems.js +2 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageListFilesystems.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/filesystemdata.d.ts +14 -16
- package/dist/commonjs/models/filesystemdata.d.ts.map +1 -1
- package/dist/commonjs/models/filesystemdata.js +18 -21
- package/dist/commonjs/models/filesystemdata.js.map +1 -1
- package/dist/commonjs/models/filesystems.d.ts +29 -0
- package/dist/commonjs/models/filesystems.d.ts.map +1 -0
- package/dist/commonjs/models/filesystems.js +73 -0
- package/dist/commonjs/models/filesystems.js.map +1 -0
- package/dist/commonjs/models/firewallassignmentdata.d.ts +17 -0
- package/dist/commonjs/models/firewallassignmentdata.d.ts.map +1 -1
- package/dist/commonjs/models/firewallassignmentdata.js +23 -1
- package/dist/commonjs/models/firewallassignmentdata.js.map +1 -1
- package/dist/commonjs/models/firewalldata.d.ts +5 -0
- package/dist/commonjs/models/firewalldata.d.ts.map +1 -1
- package/dist/commonjs/models/firewalldata.js +2 -0
- package/dist/commonjs/models/firewalldata.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +11 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +11 -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 +6 -1
- package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.js +2 -0
- package/dist/commonjs/models/virtualmachinepayload.js.map +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/filesystemstorage.d.ts +2 -1
- package/dist/commonjs/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/filesystemstorage.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/filesystemStorageListFilesystems.d.ts +2 -1
- package/dist/esm/funcs/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/esm/funcs/filesystemStorageListFilesystems.js +5 -3
- package/dist/esm/funcs/filesystemStorageListFilesystems.js.map +1 -1
- 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/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/filesystemStorageListFilesystems.js +2 -1
- package/dist/esm/mcp-server/tools/filesystemStorageListFilesystems.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/filesystemdata.d.ts +14 -16
- package/dist/esm/models/filesystemdata.d.ts.map +1 -1
- package/dist/esm/models/filesystemdata.js +17 -18
- package/dist/esm/models/filesystemdata.js.map +1 -1
- package/dist/esm/models/filesystems.d.ts +29 -0
- package/dist/esm/models/filesystems.d.ts.map +1 -0
- package/dist/esm/models/filesystems.js +33 -0
- package/dist/esm/models/filesystems.js.map +1 -0
- package/dist/esm/models/firewallassignmentdata.d.ts +17 -0
- package/dist/esm/models/firewallassignmentdata.d.ts.map +1 -1
- package/dist/esm/models/firewallassignmentdata.js +20 -0
- package/dist/esm/models/firewallassignmentdata.js.map +1 -1
- package/dist/esm/models/firewalldata.d.ts +5 -0
- package/dist/esm/models/firewalldata.d.ts.map +1 -1
- package/dist/esm/models/firewalldata.js +2 -0
- package/dist/esm/models/firewalldata.js.map +1 -1
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +11 -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 +6 -1
- package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinepayload.js +2 -0
- package/dist/esm/models/virtualmachinepayload.js.map +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/filesystemstorage.d.ts +2 -1
- package/dist/esm/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/esm/sdk/filesystemstorage.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/filesystemStorageListFilesystems.ts +8 -6
- 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/filesystemStorageListFilesystems.ts +3 -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/filesystemdata.ts +38 -51
- package/src/models/filesystems.ts +90 -0
- package/src/models/firewallassignmentdata.ts +55 -0
- package/src/models/firewalldata.ts +7 -0
- package/src/models/index.ts +11 -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 +8 -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/filesystemstorage.ts +2 -1
- 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
|
});
|
|
@@ -55829,45 +55829,134 @@ var init_events = __esm(() => {
|
|
|
55829
55829
|
});
|
|
55830
55830
|
});
|
|
55831
55831
|
|
|
55832
|
+
// src/models/projectinclude.ts
|
|
55833
|
+
var ProjectIncludeBilling$inboundSchema, ProjectIncludeBilling$outboundSchema, ProjectIncludeStats$inboundSchema, ProjectIncludeStats$outboundSchema, ProjectInclude$inboundSchema, ProjectInclude$outboundSchema;
|
|
55834
|
+
var init_projectinclude = __esm(() => {
|
|
55835
|
+
init_v3();
|
|
55836
|
+
init_primitives();
|
|
55837
|
+
ProjectIncludeBilling$inboundSchema = objectType({
|
|
55838
|
+
subscription_id: nullableType(stringType()).optional(),
|
|
55839
|
+
type: stringType().optional(),
|
|
55840
|
+
method: stringType().optional()
|
|
55841
|
+
}).transform((v2) => {
|
|
55842
|
+
return remap(v2, {
|
|
55843
|
+
subscription_id: "subscriptionId"
|
|
55844
|
+
});
|
|
55845
|
+
});
|
|
55846
|
+
ProjectIncludeBilling$outboundSchema = objectType({
|
|
55847
|
+
subscriptionId: nullableType(stringType()).optional(),
|
|
55848
|
+
type: stringType().optional(),
|
|
55849
|
+
method: stringType().optional()
|
|
55850
|
+
}).transform((v2) => {
|
|
55851
|
+
return remap(v2, {
|
|
55852
|
+
subscriptionId: "subscription_id"
|
|
55853
|
+
});
|
|
55854
|
+
});
|
|
55855
|
+
ProjectIncludeStats$inboundSchema = objectType({
|
|
55856
|
+
ip_addresses: numberType().int().optional(),
|
|
55857
|
+
prefixes: numberType().int().optional(),
|
|
55858
|
+
servers: numberType().int().optional(),
|
|
55859
|
+
vlans: numberType().int().optional()
|
|
55860
|
+
}).transform((v2) => {
|
|
55861
|
+
return remap(v2, {
|
|
55862
|
+
ip_addresses: "ipAddresses"
|
|
55863
|
+
});
|
|
55864
|
+
});
|
|
55865
|
+
ProjectIncludeStats$outboundSchema = objectType({
|
|
55866
|
+
ipAddresses: numberType().int().optional(),
|
|
55867
|
+
prefixes: numberType().int().optional(),
|
|
55868
|
+
servers: numberType().int().optional(),
|
|
55869
|
+
vlans: numberType().int().optional()
|
|
55870
|
+
}).transform((v2) => {
|
|
55871
|
+
return remap(v2, {
|
|
55872
|
+
ipAddresses: "ip_addresses"
|
|
55873
|
+
});
|
|
55874
|
+
});
|
|
55875
|
+
ProjectInclude$inboundSchema = objectType({
|
|
55876
|
+
id: stringType().optional(),
|
|
55877
|
+
name: stringType().optional(),
|
|
55878
|
+
slug: stringType().optional(),
|
|
55879
|
+
description: nullableType(stringType()).optional(),
|
|
55880
|
+
billing_type: nullableType(stringType()).optional(),
|
|
55881
|
+
provisioning_type: nullableType(stringType()).optional(),
|
|
55882
|
+
billing_method: nullableType(stringType()).optional(),
|
|
55883
|
+
bandwidth_alert: booleanType().optional(),
|
|
55884
|
+
environment: nullableType(stringType()).optional(),
|
|
55885
|
+
billing: lazyType(() => ProjectIncludeBilling$inboundSchema).optional(),
|
|
55886
|
+
stats: lazyType(() => ProjectIncludeStats$inboundSchema).optional()
|
|
55887
|
+
}).transform((v2) => {
|
|
55888
|
+
return remap(v2, {
|
|
55889
|
+
billing_type: "billingType",
|
|
55890
|
+
provisioning_type: "provisioningType",
|
|
55891
|
+
billing_method: "billingMethod",
|
|
55892
|
+
bandwidth_alert: "bandwidthAlert"
|
|
55893
|
+
});
|
|
55894
|
+
});
|
|
55895
|
+
ProjectInclude$outboundSchema = objectType({
|
|
55896
|
+
id: stringType().optional(),
|
|
55897
|
+
name: stringType().optional(),
|
|
55898
|
+
slug: stringType().optional(),
|
|
55899
|
+
description: nullableType(stringType()).optional(),
|
|
55900
|
+
billingType: nullableType(stringType()).optional(),
|
|
55901
|
+
provisioningType: nullableType(stringType()).optional(),
|
|
55902
|
+
billingMethod: nullableType(stringType()).optional(),
|
|
55903
|
+
bandwidthAlert: booleanType().optional(),
|
|
55904
|
+
environment: nullableType(stringType()).optional(),
|
|
55905
|
+
billing: lazyType(() => ProjectIncludeBilling$outboundSchema).optional(),
|
|
55906
|
+
stats: lazyType(() => ProjectIncludeStats$outboundSchema).optional()
|
|
55907
|
+
}).transform((v2) => {
|
|
55908
|
+
return remap(v2, {
|
|
55909
|
+
billingType: "billing_type",
|
|
55910
|
+
provisioningType: "provisioning_type",
|
|
55911
|
+
billingMethod: "billing_method",
|
|
55912
|
+
bandwidthAlert: "bandwidth_alert"
|
|
55913
|
+
});
|
|
55914
|
+
});
|
|
55915
|
+
});
|
|
55916
|
+
|
|
55832
55917
|
// src/models/filesystemdata.ts
|
|
55833
|
-
var FilesystemDataType, FilesystemDataType$inboundSchema, FilesystemDataType$outboundSchema,
|
|
55918
|
+
var FilesystemDataType, FilesystemStorageClass, FilesystemDataType$inboundSchema, FilesystemDataType$outboundSchema, FilesystemStorageClass$inboundSchema, FilesystemStorageClass$outboundSchema, FilesystemDataAttributes$inboundSchema, FilesystemDataAttributes$outboundSchema, FilesystemData$inboundSchema, FilesystemData$outboundSchema;
|
|
55834
55919
|
var init_filesystemdata = __esm(() => {
|
|
55835
55920
|
init_v3();
|
|
55836
55921
|
init_primitives();
|
|
55922
|
+
init_projectinclude();
|
|
55923
|
+
init_teaminclude();
|
|
55837
55924
|
FilesystemDataType = {
|
|
55838
55925
|
Filesystems: "filesystems"
|
|
55839
55926
|
};
|
|
55927
|
+
FilesystemStorageClass = {
|
|
55928
|
+
Standard: "standard",
|
|
55929
|
+
HighPerformance: "high_performance"
|
|
55930
|
+
};
|
|
55840
55931
|
FilesystemDataType$inboundSchema = nativeEnumType(FilesystemDataType);
|
|
55841
55932
|
FilesystemDataType$outboundSchema = FilesystemDataType$inboundSchema;
|
|
55842
|
-
|
|
55843
|
-
|
|
55844
|
-
name: stringType().optional(),
|
|
55845
|
-
slug: stringType().optional()
|
|
55846
|
-
});
|
|
55847
|
-
FilesystemDataProject$outboundSchema = objectType({
|
|
55848
|
-
id: stringType().optional(),
|
|
55849
|
-
name: stringType().optional(),
|
|
55850
|
-
slug: stringType().optional()
|
|
55851
|
-
});
|
|
55933
|
+
FilesystemStorageClass$inboundSchema = nativeEnumType(FilesystemStorageClass);
|
|
55934
|
+
FilesystemStorageClass$outboundSchema = FilesystemStorageClass$inboundSchema;
|
|
55852
55935
|
FilesystemDataAttributes$inboundSchema = objectType({
|
|
55853
55936
|
name: stringType().optional(),
|
|
55854
55937
|
size_in_gb: numberType().int().optional(),
|
|
55938
|
+
storage_class: nullableType(FilesystemStorageClass$inboundSchema).optional(),
|
|
55855
55939
|
created_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
55856
|
-
project:
|
|
55940
|
+
project: ProjectInclude$inboundSchema.optional(),
|
|
55941
|
+
team: TeamInclude$inboundSchema.optional()
|
|
55857
55942
|
}).transform((v2) => {
|
|
55858
55943
|
return remap(v2, {
|
|
55859
55944
|
size_in_gb: "sizeInGb",
|
|
55945
|
+
storage_class: "filesystemStorageClass",
|
|
55860
55946
|
created_at: "createdAt"
|
|
55861
55947
|
});
|
|
55862
55948
|
});
|
|
55863
55949
|
FilesystemDataAttributes$outboundSchema = objectType({
|
|
55864
55950
|
name: stringType().optional(),
|
|
55865
55951
|
sizeInGb: numberType().int().optional(),
|
|
55952
|
+
filesystemStorageClass: nullableType(FilesystemStorageClass$outboundSchema).optional(),
|
|
55866
55953
|
createdAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
55867
|
-
project:
|
|
55954
|
+
project: ProjectInclude$outboundSchema.optional(),
|
|
55955
|
+
team: TeamInclude$outboundSchema.optional()
|
|
55868
55956
|
}).transform((v2) => {
|
|
55869
55957
|
return remap(v2, {
|
|
55870
55958
|
sizeInGb: "size_in_gb",
|
|
55959
|
+
filesystemStorageClass: "storage_class",
|
|
55871
55960
|
createdAt: "created_at"
|
|
55872
55961
|
});
|
|
55873
55962
|
});
|
|
@@ -55883,6 +55972,23 @@ var init_filesystemdata = __esm(() => {
|
|
|
55883
55972
|
});
|
|
55884
55973
|
});
|
|
55885
55974
|
|
|
55975
|
+
// src/models/filesystems.ts
|
|
55976
|
+
var FilesystemsMeta$inboundSchema, FilesystemsMeta$outboundSchema, Filesystems$inboundSchema, Filesystems$outboundSchema;
|
|
55977
|
+
var init_filesystems = __esm(() => {
|
|
55978
|
+
init_v3();
|
|
55979
|
+
init_filesystemdata();
|
|
55980
|
+
FilesystemsMeta$inboundSchema = objectType({});
|
|
55981
|
+
FilesystemsMeta$outboundSchema = objectType({});
|
|
55982
|
+
Filesystems$inboundSchema = objectType({
|
|
55983
|
+
data: arrayType(FilesystemData$inboundSchema).optional(),
|
|
55984
|
+
meta: lazyType(() => FilesystemsMeta$inboundSchema).optional()
|
|
55985
|
+
});
|
|
55986
|
+
Filesystems$outboundSchema = objectType({
|
|
55987
|
+
data: arrayType(FilesystemData$outboundSchema).optional(),
|
|
55988
|
+
meta: lazyType(() => FilesystemsMeta$outboundSchema).optional()
|
|
55989
|
+
});
|
|
55990
|
+
});
|
|
55991
|
+
|
|
55886
55992
|
// src/models/firewalldata.ts
|
|
55887
55993
|
var FirewallDataType, FirewallDataType$inboundSchema, FirewallDataType$outboundSchema, Rule$inboundSchema, Rule$outboundSchema, FirewallDataProject$inboundSchema, FirewallDataProject$outboundSchema, FirewallDataAttributes$inboundSchema, FirewallDataAttributes$outboundSchema, FirewallData$inboundSchema, FirewallData$outboundSchema;
|
|
55888
55994
|
var init_firewalldata = __esm(() => {
|
|
@@ -55897,6 +56003,7 @@ var init_firewalldata = __esm(() => {
|
|
|
55897
56003
|
to: stringType().optional(),
|
|
55898
56004
|
port: stringType().optional(),
|
|
55899
56005
|
protocol: stringType().optional(),
|
|
56006
|
+
default: booleanType().optional(),
|
|
55900
56007
|
description: nullableType(stringType()).optional()
|
|
55901
56008
|
});
|
|
55902
56009
|
Rule$outboundSchema = objectType({
|
|
@@ -55904,6 +56011,7 @@ var init_firewalldata = __esm(() => {
|
|
|
55904
56011
|
to: stringType().optional(),
|
|
55905
56012
|
port: stringType().optional(),
|
|
55906
56013
|
protocol: stringType().optional(),
|
|
56014
|
+
default: booleanType().optional(),
|
|
55907
56015
|
description: nullableType(stringType()).optional()
|
|
55908
56016
|
});
|
|
55909
56017
|
FirewallDataProject$inboundSchema = objectType({
|
|
@@ -55956,7 +56064,7 @@ var init_firewall = __esm(() => {
|
|
|
55956
56064
|
});
|
|
55957
56065
|
|
|
55958
56066
|
// src/models/firewallassignmentdata.ts
|
|
55959
|
-
var FirewallAssignmentDataType, FirewallAssignmentDataType$inboundSchema, FirewallAssignmentDataType$outboundSchema, FirewallAssignmentDataServer$inboundSchema, FirewallAssignmentDataServer$outboundSchema, FirewallAssignmentDataAttributes$inboundSchema, FirewallAssignmentDataAttributes$outboundSchema, FirewallAssignmentData$inboundSchema, FirewallAssignmentData$outboundSchema;
|
|
56067
|
+
var FirewallAssignmentDataType, FirewallAssignmentDataType$inboundSchema, FirewallAssignmentDataType$outboundSchema, FirewallAssignmentDataServer$inboundSchema, FirewallAssignmentDataServer$outboundSchema, FirewallAssignmentDataFirewall$inboundSchema, FirewallAssignmentDataFirewall$outboundSchema, FirewallAssignmentDataAttributes$inboundSchema, FirewallAssignmentDataAttributes$outboundSchema, FirewallAssignmentData$inboundSchema, FirewallAssignmentData$outboundSchema;
|
|
55960
56068
|
var init_firewallassignmentdata = __esm(() => {
|
|
55961
56069
|
init_v3();
|
|
55962
56070
|
init_primitives();
|
|
@@ -55983,8 +56091,17 @@ var init_firewallassignmentdata = __esm(() => {
|
|
|
55983
56091
|
primaryIpv4: "primary_ipv4"
|
|
55984
56092
|
});
|
|
55985
56093
|
});
|
|
56094
|
+
FirewallAssignmentDataFirewall$inboundSchema = objectType({
|
|
56095
|
+
id: stringType().optional(),
|
|
56096
|
+
name: stringType().optional()
|
|
56097
|
+
});
|
|
56098
|
+
FirewallAssignmentDataFirewall$outboundSchema = objectType({
|
|
56099
|
+
id: stringType().optional(),
|
|
56100
|
+
name: stringType().optional()
|
|
56101
|
+
});
|
|
55986
56102
|
FirewallAssignmentDataAttributes$inboundSchema = objectType({
|
|
55987
56103
|
server: lazyType(() => FirewallAssignmentDataServer$inboundSchema).optional(),
|
|
56104
|
+
firewall: lazyType(() => FirewallAssignmentDataFirewall$inboundSchema).optional(),
|
|
55988
56105
|
firewall_id: stringType().optional()
|
|
55989
56106
|
}).transform((v2) => {
|
|
55990
56107
|
return remap(v2, {
|
|
@@ -55993,6 +56110,7 @@ var init_firewallassignmentdata = __esm(() => {
|
|
|
55993
56110
|
});
|
|
55994
56111
|
FirewallAssignmentDataAttributes$outboundSchema = objectType({
|
|
55995
56112
|
server: lazyType(() => FirewallAssignmentDataServer$outboundSchema).optional(),
|
|
56113
|
+
firewall: lazyType(() => FirewallAssignmentDataFirewall$outboundSchema).optional(),
|
|
55996
56114
|
firewallId: stringType().optional()
|
|
55997
56115
|
}).transform((v2) => {
|
|
55998
56116
|
return remap(v2, {
|
|
@@ -56844,6 +56962,104 @@ var init_kubernetesclusterupdateresponse = __esm(() => {
|
|
|
56844
56962
|
});
|
|
56845
56963
|
});
|
|
56846
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
|
+
|
|
56847
57063
|
// src/models/membership.ts
|
|
56848
57064
|
var MembershipRole, MembershipRole$inboundSchema, MembershipRole$outboundSchema, MembershipAttributes$inboundSchema, MembershipAttributes$outboundSchema, MembershipData$inboundSchema, MembershipData$outboundSchema, Membership$inboundSchema, Membership$outboundSchema;
|
|
56849
57065
|
var init_membership = __esm(() => {
|
|
@@ -56911,91 +57127,6 @@ var init_membership = __esm(() => {
|
|
|
56911
57127
|
});
|
|
56912
57128
|
});
|
|
56913
57129
|
|
|
56914
|
-
// src/models/projectinclude.ts
|
|
56915
|
-
var ProjectIncludeBilling$inboundSchema, ProjectIncludeBilling$outboundSchema, ProjectIncludeStats$inboundSchema, ProjectIncludeStats$outboundSchema, ProjectInclude$inboundSchema, ProjectInclude$outboundSchema;
|
|
56916
|
-
var init_projectinclude = __esm(() => {
|
|
56917
|
-
init_v3();
|
|
56918
|
-
init_primitives();
|
|
56919
|
-
ProjectIncludeBilling$inboundSchema = objectType({
|
|
56920
|
-
subscription_id: nullableType(stringType()).optional(),
|
|
56921
|
-
type: stringType().optional(),
|
|
56922
|
-
method: stringType().optional()
|
|
56923
|
-
}).transform((v2) => {
|
|
56924
|
-
return remap(v2, {
|
|
56925
|
-
subscription_id: "subscriptionId"
|
|
56926
|
-
});
|
|
56927
|
-
});
|
|
56928
|
-
ProjectIncludeBilling$outboundSchema = objectType({
|
|
56929
|
-
subscriptionId: nullableType(stringType()).optional(),
|
|
56930
|
-
type: stringType().optional(),
|
|
56931
|
-
method: stringType().optional()
|
|
56932
|
-
}).transform((v2) => {
|
|
56933
|
-
return remap(v2, {
|
|
56934
|
-
subscriptionId: "subscription_id"
|
|
56935
|
-
});
|
|
56936
|
-
});
|
|
56937
|
-
ProjectIncludeStats$inboundSchema = objectType({
|
|
56938
|
-
ip_addresses: numberType().int().optional(),
|
|
56939
|
-
prefixes: numberType().int().optional(),
|
|
56940
|
-
servers: numberType().int().optional(),
|
|
56941
|
-
vlans: numberType().int().optional()
|
|
56942
|
-
}).transform((v2) => {
|
|
56943
|
-
return remap(v2, {
|
|
56944
|
-
ip_addresses: "ipAddresses"
|
|
56945
|
-
});
|
|
56946
|
-
});
|
|
56947
|
-
ProjectIncludeStats$outboundSchema = objectType({
|
|
56948
|
-
ipAddresses: numberType().int().optional(),
|
|
56949
|
-
prefixes: numberType().int().optional(),
|
|
56950
|
-
servers: numberType().int().optional(),
|
|
56951
|
-
vlans: numberType().int().optional()
|
|
56952
|
-
}).transform((v2) => {
|
|
56953
|
-
return remap(v2, {
|
|
56954
|
-
ipAddresses: "ip_addresses"
|
|
56955
|
-
});
|
|
56956
|
-
});
|
|
56957
|
-
ProjectInclude$inboundSchema = objectType({
|
|
56958
|
-
id: stringType().optional(),
|
|
56959
|
-
name: stringType().optional(),
|
|
56960
|
-
slug: stringType().optional(),
|
|
56961
|
-
description: nullableType(stringType()).optional(),
|
|
56962
|
-
billing_type: nullableType(stringType()).optional(),
|
|
56963
|
-
provisioning_type: nullableType(stringType()).optional(),
|
|
56964
|
-
billing_method: nullableType(stringType()).optional(),
|
|
56965
|
-
bandwidth_alert: booleanType().optional(),
|
|
56966
|
-
environment: nullableType(stringType()).optional(),
|
|
56967
|
-
billing: lazyType(() => ProjectIncludeBilling$inboundSchema).optional(),
|
|
56968
|
-
stats: lazyType(() => ProjectIncludeStats$inboundSchema).optional()
|
|
56969
|
-
}).transform((v2) => {
|
|
56970
|
-
return remap(v2, {
|
|
56971
|
-
billing_type: "billingType",
|
|
56972
|
-
provisioning_type: "provisioningType",
|
|
56973
|
-
billing_method: "billingMethod",
|
|
56974
|
-
bandwidth_alert: "bandwidthAlert"
|
|
56975
|
-
});
|
|
56976
|
-
});
|
|
56977
|
-
ProjectInclude$outboundSchema = objectType({
|
|
56978
|
-
id: stringType().optional(),
|
|
56979
|
-
name: stringType().optional(),
|
|
56980
|
-
slug: stringType().optional(),
|
|
56981
|
-
description: nullableType(stringType()).optional(),
|
|
56982
|
-
billingType: nullableType(stringType()).optional(),
|
|
56983
|
-
provisioningType: nullableType(stringType()).optional(),
|
|
56984
|
-
billingMethod: nullableType(stringType()).optional(),
|
|
56985
|
-
bandwidthAlert: booleanType().optional(),
|
|
56986
|
-
environment: nullableType(stringType()).optional(),
|
|
56987
|
-
billing: lazyType(() => ProjectIncludeBilling$outboundSchema).optional(),
|
|
56988
|
-
stats: lazyType(() => ProjectIncludeStats$outboundSchema).optional()
|
|
56989
|
-
}).transform((v2) => {
|
|
56990
|
-
return remap(v2, {
|
|
56991
|
-
billingType: "billing_type",
|
|
56992
|
-
provisioningType: "provisioning_type",
|
|
56993
|
-
billingMethod: "billing_method",
|
|
56994
|
-
bandwidthAlert: "bandwidth_alert"
|
|
56995
|
-
});
|
|
56996
|
-
});
|
|
56997
|
-
});
|
|
56998
|
-
|
|
56999
57130
|
// src/models/objectstoragedata.ts
|
|
57000
57131
|
var ObjectStorageDataType, StorageClass, RetentionMode, ObjectStorageDataType$inboundSchema, ObjectStorageDataType$outboundSchema, StorageClass$inboundSchema, StorageClass$outboundSchema, RetentionMode$inboundSchema, RetentionMode$outboundSchema, ObjectStorageDataRegion$inboundSchema, ObjectStorageDataRegion$outboundSchema, ObjectStorageDataAttributes$inboundSchema, ObjectStorageDataAttributes$outboundSchema, ObjectStorageData$inboundSchema, ObjectStorageData$outboundSchema;
|
|
57001
57132
|
var init_objectstoragedata = __esm(() => {
|
|
@@ -58124,19 +58255,18 @@ var init_serverrescue = __esm(() => {
|
|
|
58124
58255
|
});
|
|
58125
58256
|
|
|
58126
58257
|
// src/models/servers.ts
|
|
58127
|
-
var
|
|
58258
|
+
var Servers$inboundSchema, Servers$outboundSchema;
|
|
58128
58259
|
var init_servers = __esm(() => {
|
|
58129
58260
|
init_v3();
|
|
58261
|
+
init_paginationmeta();
|
|
58130
58262
|
init_serverdata();
|
|
58131
|
-
ServersMeta$inboundSchema = objectType({});
|
|
58132
|
-
ServersMeta$outboundSchema = objectType({});
|
|
58133
58263
|
Servers$inboundSchema = objectType({
|
|
58134
58264
|
data: arrayType(ServerData$inboundSchema).optional(),
|
|
58135
|
-
meta:
|
|
58265
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
58136
58266
|
});
|
|
58137
58267
|
Servers$outboundSchema = objectType({
|
|
58138
58268
|
data: arrayType(ServerData$outboundSchema).optional(),
|
|
58139
|
-
meta:
|
|
58269
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
58140
58270
|
});
|
|
58141
58271
|
});
|
|
58142
58272
|
|
|
@@ -59451,7 +59581,157 @@ var init_virtualmachine = __esm(() => {
|
|
|
59451
59581
|
});
|
|
59452
59582
|
});
|
|
59453
59583
|
|
|
59454
|
-
// src/models/
|
|
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
|
+
|
|
59734
|
+
// src/models/virtualmachinemetrics.ts
|
|
59455
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;
|
|
59456
59736
|
var init_virtualmachinemetrics = __esm(() => {
|
|
59457
59737
|
init_v3();
|
|
@@ -59615,7 +59895,8 @@ var init_virtualmachinepayload = __esm(() => {
|
|
|
59615
59895
|
project: stringType().default("my-project"),
|
|
59616
59896
|
operating_system: nullableType(stringType()).optional(),
|
|
59617
59897
|
user_data: nullableType(unionType([numberType().int(), stringType()])).optional(),
|
|
59618
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
59898
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
59899
|
+
site: nullableType(stringType().default("DAL"))
|
|
59619
59900
|
}).transform((v2) => {
|
|
59620
59901
|
return remap(v2, {
|
|
59621
59902
|
ssh_keys: "sshKeys",
|
|
@@ -59630,7 +59911,8 @@ var init_virtualmachinepayload = __esm(() => {
|
|
|
59630
59911
|
project: stringType().default("my-project"),
|
|
59631
59912
|
operatingSystem: nullableType(stringType()).optional(),
|
|
59632
59913
|
userData: nullableType(unionType([numberType().int(), stringType()])).optional(),
|
|
59633
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
59914
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
59915
|
+
site: nullableType(stringType().default("DAL"))
|
|
59634
59916
|
}).transform((v2) => {
|
|
59635
59917
|
return remap(v2, {
|
|
59636
59918
|
sshKeys: "ssh_keys",
|
|
@@ -59863,6 +60145,146 @@ var init_virtualmachineplans = __esm(() => {
|
|
|
59863
60145
|
});
|
|
59864
60146
|
});
|
|
59865
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
|
+
|
|
59866
60288
|
// src/models/virtualmachines.ts
|
|
59867
60289
|
var VirtualMachinesMeta$inboundSchema, VirtualMachinesMeta$outboundSchema, VirtualMachines$inboundSchema, VirtualMachines$outboundSchema;
|
|
59868
60290
|
var init_virtualmachines = __esm(() => {
|
|
@@ -59881,21 +60303,32 @@ var init_virtualmachines = __esm(() => {
|
|
|
59881
60303
|
});
|
|
59882
60304
|
|
|
59883
60305
|
// src/models/virtualmachineupdatepayload.ts
|
|
59884
|
-
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;
|
|
59885
60307
|
var init_virtualmachineupdatepayload = __esm(() => {
|
|
59886
60308
|
init_v3();
|
|
59887
60309
|
VirtualMachineUpdatePayloadType = {
|
|
59888
60310
|
VirtualMachines: "virtual_machines"
|
|
59889
60311
|
};
|
|
60312
|
+
BillingEnum = {
|
|
60313
|
+
Hourly: "hourly",
|
|
60314
|
+
Monthly: "monthly",
|
|
60315
|
+
Yearly: "yearly"
|
|
60316
|
+
};
|
|
59890
60317
|
VirtualMachineUpdatePayloadType$inboundSchema = nativeEnumType(VirtualMachineUpdatePayloadType);
|
|
59891
60318
|
VirtualMachineUpdatePayloadType$outboundSchema = VirtualMachineUpdatePayloadType$inboundSchema;
|
|
60319
|
+
BillingEnum$inboundSchema = nativeEnumType(BillingEnum);
|
|
60320
|
+
BillingEnum$outboundSchema = BillingEnum$inboundSchema;
|
|
59892
60321
|
VirtualMachineUpdatePayloadAttributes$inboundSchema = objectType({
|
|
59893
60322
|
name: stringType().optional(),
|
|
59894
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
60323
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
60324
|
+
billing: BillingEnum$inboundSchema.optional(),
|
|
60325
|
+
plan: stringType().optional()
|
|
59895
60326
|
});
|
|
59896
60327
|
VirtualMachineUpdatePayloadAttributes$outboundSchema = objectType({
|
|
59897
60328
|
name: stringType().optional(),
|
|
59898
|
-
tags: nullableType(arrayType(stringType())).optional()
|
|
60329
|
+
tags: nullableType(arrayType(stringType())).optional(),
|
|
60330
|
+
billing: BillingEnum$outboundSchema.optional(),
|
|
60331
|
+
plan: stringType().optional()
|
|
59899
60332
|
});
|
|
59900
60333
|
VirtualMachineUpdatePayloadData$inboundSchema = objectType({
|
|
59901
60334
|
type: VirtualMachineUpdatePayloadType$inboundSchema,
|
|
@@ -59951,14 +60384,14 @@ var init_virtualnetworkdata = __esm(() => {
|
|
|
59951
60384
|
VirtualNetworkDataTag$inboundSchema = objectType({
|
|
59952
60385
|
id: stringType().optional(),
|
|
59953
60386
|
name: stringType().optional(),
|
|
59954
|
-
description: stringType().optional(),
|
|
59955
|
-
color: stringType().optional()
|
|
60387
|
+
description: nullableType(stringType()).optional(),
|
|
60388
|
+
color: nullableType(stringType()).optional()
|
|
59956
60389
|
});
|
|
59957
60390
|
VirtualNetworkDataTag$outboundSchema = objectType({
|
|
59958
60391
|
id: stringType().optional(),
|
|
59959
60392
|
name: stringType().optional(),
|
|
59960
|
-
description: stringType().optional(),
|
|
59961
|
-
color: stringType().optional()
|
|
60393
|
+
description: nullableType(stringType()).optional(),
|
|
60394
|
+
color: nullableType(stringType()).optional()
|
|
59962
60395
|
});
|
|
59963
60396
|
VirtualNetworkDataAttributes$inboundSchema = objectType({
|
|
59964
60397
|
vid: numberType().int().optional(),
|
|
@@ -60095,36 +60528,34 @@ var init_virtualnetworkassignment = __esm(() => {
|
|
|
60095
60528
|
});
|
|
60096
60529
|
|
|
60097
60530
|
// src/models/virtualnetworkassignments.ts
|
|
60098
|
-
var
|
|
60531
|
+
var VirtualNetworkAssignments$inboundSchema, VirtualNetworkAssignments$outboundSchema;
|
|
60099
60532
|
var init_virtualnetworkassignments = __esm(() => {
|
|
60100
60533
|
init_v3();
|
|
60534
|
+
init_paginationmeta();
|
|
60101
60535
|
init_virtualnetworkassignmentdata();
|
|
60102
|
-
VirtualNetworkAssignmentsMeta$inboundSchema = objectType({});
|
|
60103
|
-
VirtualNetworkAssignmentsMeta$outboundSchema = objectType({});
|
|
60104
60536
|
VirtualNetworkAssignments$inboundSchema = objectType({
|
|
60105
60537
|
data: arrayType(VirtualNetworkAssignmentData$inboundSchema).optional(),
|
|
60106
|
-
meta:
|
|
60538
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
60107
60539
|
});
|
|
60108
60540
|
VirtualNetworkAssignments$outboundSchema = objectType({
|
|
60109
60541
|
data: arrayType(VirtualNetworkAssignmentData$outboundSchema).optional(),
|
|
60110
|
-
meta:
|
|
60542
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
60111
60543
|
});
|
|
60112
60544
|
});
|
|
60113
60545
|
|
|
60114
60546
|
// src/models/virtualnetworks.ts
|
|
60115
|
-
var
|
|
60547
|
+
var VirtualNetworks$inboundSchema, VirtualNetworks$outboundSchema;
|
|
60116
60548
|
var init_virtualnetworks = __esm(() => {
|
|
60117
60549
|
init_v3();
|
|
60550
|
+
init_paginationmeta();
|
|
60118
60551
|
init_virtualnetworkdata();
|
|
60119
|
-
VirtualNetworksMeta$inboundSchema = objectType({});
|
|
60120
|
-
VirtualNetworksMeta$outboundSchema = objectType({});
|
|
60121
60552
|
VirtualNetworks$inboundSchema = objectType({
|
|
60122
60553
|
data: arrayType(VirtualNetworkData$inboundSchema).optional(),
|
|
60123
|
-
meta:
|
|
60554
|
+
meta: PaginationMeta$inboundSchema.optional()
|
|
60124
60555
|
});
|
|
60125
60556
|
VirtualNetworks$outboundSchema = objectType({
|
|
60126
60557
|
data: arrayType(VirtualNetworkData$outboundSchema).optional(),
|
|
60127
|
-
meta:
|
|
60558
|
+
meta: PaginationMeta$outboundSchema.optional()
|
|
60128
60559
|
});
|
|
60129
60560
|
});
|
|
60130
60561
|
|
|
@@ -60292,6 +60723,7 @@ var init_models = __esm(() => {
|
|
|
60292
60723
|
init_eventdata();
|
|
60293
60724
|
init_events();
|
|
60294
60725
|
init_filesystemdata();
|
|
60726
|
+
init_filesystems();
|
|
60295
60727
|
init_firewall();
|
|
60296
60728
|
init_firewallassignmentdata();
|
|
60297
60729
|
init_firewallassignments();
|
|
@@ -60310,6 +60742,8 @@ var init_models = __esm(() => {
|
|
|
60310
60742
|
init_kubernetesclusters();
|
|
60311
60743
|
init_kubernetesclustersummarydata();
|
|
60312
60744
|
init_kubernetesclusterupdateresponse();
|
|
60745
|
+
init_manageddatabaseplanattributes();
|
|
60746
|
+
init_manageddatabaseplans();
|
|
60313
60747
|
init_membership();
|
|
60314
60748
|
init_objectstoragedata();
|
|
60315
60749
|
init_objectstorages();
|
|
@@ -60358,12 +60792,20 @@ var init_models = __esm(() => {
|
|
|
60358
60792
|
init_userupdate();
|
|
60359
60793
|
init_virtualmachine();
|
|
60360
60794
|
init_virtualmachineattributes();
|
|
60795
|
+
init_virtualmachinebackup();
|
|
60796
|
+
init_virtualmachinebackupattributes();
|
|
60797
|
+
init_virtualmachinebackuppayload();
|
|
60798
|
+
init_virtualmachinebackups();
|
|
60361
60799
|
init_virtualmachinemetrics();
|
|
60362
60800
|
init_virtualmachinenetworkattachmentcreatepayload();
|
|
60363
60801
|
init_virtualmachinenetworkattachmentresource();
|
|
60364
60802
|
init_virtualmachinenetworkattachments();
|
|
60365
60803
|
init_virtualmachinepayload();
|
|
60366
60804
|
init_virtualmachineplans();
|
|
60805
|
+
init_virtualmachinerestore();
|
|
60806
|
+
init_virtualmachinerestoreattributes();
|
|
60807
|
+
init_virtualmachinerestorepayload();
|
|
60808
|
+
init_virtualmachinerestores();
|
|
60367
60809
|
init_virtualmachines();
|
|
60368
60810
|
init_virtualmachineupdatepayload();
|
|
60369
60811
|
init_virtualnetwork();
|
|
@@ -61176,6 +61618,27 @@ var init_createvirtualmachineaction = __esm(() => {
|
|
|
61176
61618
|
});
|
|
61177
61619
|
});
|
|
61178
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
|
+
|
|
61179
61642
|
// src/models/operations/createvirtualmachinenetworkattachment.ts
|
|
61180
61643
|
var CreateVirtualMachineNetworkAttachmentRequest$inboundSchema, CreateVirtualMachineNetworkAttachmentRequest$outboundSchema, CreateVirtualMachineNetworkAttachmentMeta$inboundSchema, CreateVirtualMachineNetworkAttachmentMeta$outboundSchema, CreateVirtualMachineNetworkAttachmentResponse$inboundSchema, CreateVirtualMachineNetworkAttachmentResponse$outboundSchema;
|
|
61181
61644
|
var init_createvirtualmachinenetworkattachment = __esm(() => {
|
|
@@ -61214,6 +61677,36 @@ var init_createvirtualmachinenetworkattachment = __esm(() => {
|
|
|
61214
61677
|
});
|
|
61215
61678
|
});
|
|
61216
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
|
+
|
|
61217
61710
|
// src/models/operations/createvirtualnetwork.ts
|
|
61218
61711
|
var CreateVirtualNetworkType2, CreateVirtualNetworkSite2, CreateVirtualNetworkType2$inboundSchema, CreateVirtualNetworkType2$outboundSchema, CreateVirtualNetworkSite2$inboundSchema, CreateVirtualNetworkSite2$outboundSchema, CreateVirtualNetworkAttributes2$inboundSchema, CreateVirtualNetworkAttributes2$outboundSchema, CreateVirtualNetworkData2$inboundSchema, CreateVirtualNetworkData2$outboundSchema, CreateVirtualNetworkRequest$inboundSchema, CreateVirtualNetworkRequest$outboundSchema;
|
|
61219
61712
|
var init_createvirtualnetwork = __esm(() => {
|
|
@@ -61538,6 +62031,18 @@ var init_deleteuserdata = __esm(() => {
|
|
|
61538
62031
|
});
|
|
61539
62032
|
});
|
|
61540
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
|
+
|
|
61541
62046
|
// src/models/operations/deletevirtualnetworksassignments.ts
|
|
61542
62047
|
var DeleteVirtualNetworksAssignmentsRequest$inboundSchema, DeleteVirtualNetworksAssignmentsRequest$outboundSchema;
|
|
61543
62048
|
var init_deletevirtualnetworksassignments = __esm(() => {
|
|
@@ -62688,6 +63193,7 @@ var init_getservers = __esm(() => {
|
|
|
62688
63193
|
"filter[disk][lte]": numberType().int().optional(),
|
|
62689
63194
|
"filter[tags]": stringType().optional(),
|
|
62690
63195
|
"extra_fields[servers]": stringType().optional(),
|
|
63196
|
+
"stats[total]": stringType().optional(),
|
|
62691
63197
|
"page[size]": numberType().int().default(20),
|
|
62692
63198
|
"page[number]": numberType().int().default(1)
|
|
62693
63199
|
}).transform((v2) => {
|
|
@@ -62709,6 +63215,7 @@ var init_getservers = __esm(() => {
|
|
|
62709
63215
|
"filter[disk][lte]": "filterDiskLte",
|
|
62710
63216
|
"filter[tags]": "filterTags",
|
|
62711
63217
|
"extra_fields[servers]": "extraFieldsServers",
|
|
63218
|
+
"stats[total]": "statsTotal",
|
|
62712
63219
|
"page[size]": "pageSize",
|
|
62713
63220
|
"page[number]": "pageNumber"
|
|
62714
63221
|
});
|
|
@@ -62731,6 +63238,7 @@ var init_getservers = __esm(() => {
|
|
|
62731
63238
|
filterDiskLte: numberType().int().optional(),
|
|
62732
63239
|
filterTags: stringType().optional(),
|
|
62733
63240
|
extraFieldsServers: stringType().optional(),
|
|
63241
|
+
statsTotal: stringType().optional(),
|
|
62734
63242
|
pageSize: numberType().int().default(20),
|
|
62735
63243
|
pageNumber: numberType().int().default(1)
|
|
62736
63244
|
}).transform((v2) => {
|
|
@@ -62752,6 +63260,7 @@ var init_getservers = __esm(() => {
|
|
|
62752
63260
|
filterDiskLte: "filter[disk][lte]",
|
|
62753
63261
|
filterTags: "filter[tags]",
|
|
62754
63262
|
extraFieldsServers: "extra_fields[servers]",
|
|
63263
|
+
statsTotal: "stats[total]",
|
|
62755
63264
|
pageSize: "page[size]",
|
|
62756
63265
|
pageNumber: "page[number]"
|
|
62757
63266
|
});
|
|
@@ -63137,6 +63646,30 @@ var init_getusersdata = __esm(() => {
|
|
|
63137
63646
|
});
|
|
63138
63647
|
});
|
|
63139
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
|
+
|
|
63140
63673
|
// src/models/operations/getvirtualnetwork.ts
|
|
63141
63674
|
var GetVirtualNetworkRequest$inboundSchema, GetVirtualNetworkRequest$outboundSchema;
|
|
63142
63675
|
var init_getvirtualnetwork = __esm(() => {
|
|
@@ -63168,6 +63701,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63168
63701
|
"filter[location]": stringType().optional(),
|
|
63169
63702
|
"filter[project]": stringType().optional(),
|
|
63170
63703
|
"filter[tags]": stringType().optional(),
|
|
63704
|
+
"stats[total]": stringType().optional(),
|
|
63171
63705
|
"page[size]": numberType().int().default(20),
|
|
63172
63706
|
"page[number]": numberType().int().default(1)
|
|
63173
63707
|
}).transform((v2) => {
|
|
@@ -63175,6 +63709,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63175
63709
|
"filter[location]": "filterLocation",
|
|
63176
63710
|
"filter[project]": "filterProject",
|
|
63177
63711
|
"filter[tags]": "filterTags",
|
|
63712
|
+
"stats[total]": "statsTotal",
|
|
63178
63713
|
"page[size]": "pageSize",
|
|
63179
63714
|
"page[number]": "pageNumber"
|
|
63180
63715
|
});
|
|
@@ -63183,6 +63718,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63183
63718
|
filterLocation: stringType().optional(),
|
|
63184
63719
|
filterProject: stringType().optional(),
|
|
63185
63720
|
filterTags: stringType().optional(),
|
|
63721
|
+
statsTotal: stringType().optional(),
|
|
63186
63722
|
pageSize: numberType().int().default(20),
|
|
63187
63723
|
pageNumber: numberType().int().default(1)
|
|
63188
63724
|
}).transform((v2) => {
|
|
@@ -63190,6 +63726,7 @@ var init_getvirtualnetworks = __esm(() => {
|
|
|
63190
63726
|
filterLocation: "filter[location]",
|
|
63191
63727
|
filterProject: "filter[project]",
|
|
63192
63728
|
filterTags: "filter[tags]",
|
|
63729
|
+
statsTotal: "stats[total]",
|
|
63193
63730
|
pageSize: "page[size]",
|
|
63194
63731
|
pageNumber: "page[number]"
|
|
63195
63732
|
});
|
|
@@ -63220,6 +63757,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63220
63757
|
"filter[server]": stringType().optional(),
|
|
63221
63758
|
"filter[vid]": stringType().optional(),
|
|
63222
63759
|
"filter[virtual_network_id]": stringType().optional(),
|
|
63760
|
+
"stats[total]": stringType().optional(),
|
|
63223
63761
|
"page[size]": numberType().int().default(20),
|
|
63224
63762
|
"page[number]": numberType().int().default(1)
|
|
63225
63763
|
}).transform((v2) => {
|
|
@@ -63227,6 +63765,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63227
63765
|
"filter[server]": "filterServer",
|
|
63228
63766
|
"filter[vid]": "filterVid",
|
|
63229
63767
|
"filter[virtual_network_id]": "filterVirtualNetworkId",
|
|
63768
|
+
"stats[total]": "statsTotal",
|
|
63230
63769
|
"page[size]": "pageSize",
|
|
63231
63770
|
"page[number]": "pageNumber"
|
|
63232
63771
|
});
|
|
@@ -63235,6 +63774,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63235
63774
|
filterServer: stringType().optional(),
|
|
63236
63775
|
filterVid: stringType().optional(),
|
|
63237
63776
|
filterVirtualNetworkId: stringType().optional(),
|
|
63777
|
+
statsTotal: stringType().optional(),
|
|
63238
63778
|
pageSize: numberType().int().default(20),
|
|
63239
63779
|
pageNumber: numberType().int().default(1)
|
|
63240
63780
|
}).transform((v2) => {
|
|
@@ -63242,6 +63782,7 @@ var init_getvirtualnetworksassignments = __esm(() => {
|
|
|
63242
63782
|
filterServer: "filter[server]",
|
|
63243
63783
|
filterVid: "filter[vid]",
|
|
63244
63784
|
filterVirtualNetworkId: "filter[virtual_network_id]",
|
|
63785
|
+
statsTotal: "stats[total]",
|
|
63245
63786
|
pageSize: "page[size]",
|
|
63246
63787
|
pageNumber: "page[number]"
|
|
63247
63788
|
});
|
|
@@ -63366,6 +63907,27 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63366
63907
|
});
|
|
63367
63908
|
});
|
|
63368
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
|
+
|
|
63369
63931
|
// src/models/operations/listelasticips.ts
|
|
63370
63932
|
var FilterStatus, FilterStatus$inboundSchema, FilterStatus$outboundSchema, ListElasticIpsRequest$inboundSchema, ListElasticIpsRequest$outboundSchema, ListElasticIpsResponse$inboundSchema, ListElasticIpsResponse$outboundSchema;
|
|
63371
63933
|
var init_listelasticips = __esm(() => {
|
|
@@ -63513,6 +64075,52 @@ var init_listvirtualmachinenetworkattachments = __esm(() => {
|
|
|
63513
64075
|
});
|
|
63514
64076
|
});
|
|
63515
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
|
+
|
|
63516
64124
|
// src/models/operations/patchcurrentteam.ts
|
|
63517
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;
|
|
63518
64126
|
var init_patchcurrentteam = __esm(() => {
|
|
@@ -64786,17 +65394,21 @@ var init_showvirtualmachine = __esm(() => {
|
|
|
64786
65394
|
init_v3();
|
|
64787
65395
|
init_primitives();
|
|
64788
65396
|
ShowVirtualMachineRequest$inboundSchema = objectType({
|
|
64789
|
-
virtual_machine_id: stringType()
|
|
65397
|
+
virtual_machine_id: stringType(),
|
|
65398
|
+
"extra_fields[virtual_machines]": stringType().optional()
|
|
64790
65399
|
}).transform((v2) => {
|
|
64791
65400
|
return remap(v2, {
|
|
64792
|
-
virtual_machine_id: "virtualMachineId"
|
|
65401
|
+
virtual_machine_id: "virtualMachineId",
|
|
65402
|
+
"extra_fields[virtual_machines]": "extraFieldsVirtualMachines"
|
|
64793
65403
|
});
|
|
64794
65404
|
});
|
|
64795
65405
|
ShowVirtualMachineRequest$outboundSchema = objectType({
|
|
64796
|
-
virtualMachineId: stringType()
|
|
65406
|
+
virtualMachineId: stringType(),
|
|
65407
|
+
extraFieldsVirtualMachines: stringType().optional()
|
|
64797
65408
|
}).transform((v2) => {
|
|
64798
65409
|
return remap(v2, {
|
|
64799
|
-
virtualMachineId: "virtual_machine_id"
|
|
65410
|
+
virtualMachineId: "virtual_machine_id",
|
|
65411
|
+
extraFieldsVirtualMachines: "extra_fields[virtual_machines]"
|
|
64800
65412
|
});
|
|
64801
65413
|
});
|
|
64802
65414
|
});
|
|
@@ -65504,7 +66116,9 @@ var init_operations = __esm(() => {
|
|
|
65504
66116
|
init_createserverreinstall();
|
|
65505
66117
|
init_createtag();
|
|
65506
66118
|
init_createvirtualmachineaction();
|
|
66119
|
+
init_createvirtualmachinebackup();
|
|
65507
66120
|
init_createvirtualmachinenetworkattachment();
|
|
66121
|
+
init_createvirtualmachinerestore();
|
|
65508
66122
|
init_createvirtualnetwork();
|
|
65509
66123
|
init_deleteapikey();
|
|
65510
66124
|
init_deleteelasticip();
|
|
@@ -65519,6 +66133,7 @@ var init_operations = __esm(() => {
|
|
|
65519
66133
|
init_deletestoragefilesystems();
|
|
65520
66134
|
init_deletestoragevolumes();
|
|
65521
66135
|
init_deleteuserdata();
|
|
66136
|
+
init_deletevirtualmachinebackup();
|
|
65522
66137
|
init_deletevirtualnetworksassignments();
|
|
65523
66138
|
init_deletevpnsession();
|
|
65524
66139
|
init_destroyserver();
|
|
@@ -65567,16 +66182,21 @@ var init_operations = __esm(() => {
|
|
|
65567
66182
|
init_getuserdata();
|
|
65568
66183
|
init_getuserprofile();
|
|
65569
66184
|
init_getusersdata();
|
|
66185
|
+
init_getvirtualmachinebackup();
|
|
66186
|
+
init_getvirtualmachinerestore();
|
|
65570
66187
|
init_getvirtualnetwork();
|
|
65571
66188
|
init_getvirtualnetworks();
|
|
65572
66189
|
init_getvirtualnetworksassignments();
|
|
65573
66190
|
init_getvmplans();
|
|
65574
66191
|
init_getvpnsessions();
|
|
65575
66192
|
init_indexvirtualmachine();
|
|
66193
|
+
init_listbackuprestores();
|
|
65576
66194
|
init_listelasticips();
|
|
65577
66195
|
init_listfirewalls();
|
|
65578
66196
|
init_listkubernetesclusters();
|
|
65579
66197
|
init_listvirtualmachinenetworkattachments();
|
|
66198
|
+
init_listvirtualmachinescopedbackups();
|
|
66199
|
+
init_listvirtualmachinescopedrestores();
|
|
65580
66200
|
init_patchcurrentteam();
|
|
65581
66201
|
init_patchstoragefilesystems();
|
|
65582
66202
|
init_patchuserdata();
|
|
@@ -67857,7 +68477,7 @@ async function $do20(client, request, options) {
|
|
|
67857
68477
|
"filter[project]": payload?.["filter[project]"]
|
|
67858
68478
|
});
|
|
67859
68479
|
const headers = new Headers(compactMap({
|
|
67860
|
-
Accept: "
|
|
68480
|
+
Accept: "application/vnd.api+json"
|
|
67861
68481
|
}));
|
|
67862
68482
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
67863
68483
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -67897,14 +68517,15 @@ async function $do20(client, request, options) {
|
|
|
67897
68517
|
return [doResult, { status: "request-error", request: req }];
|
|
67898
68518
|
}
|
|
67899
68519
|
const response = doResult.value;
|
|
67900
|
-
const [result] = await match(
|
|
68520
|
+
const [result] = await match(json(200, Filesystems$inboundSchema, {
|
|
68521
|
+
ctype: "application/vnd.api+json"
|
|
68522
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
67901
68523
|
if (!result.ok) {
|
|
67902
68524
|
return [result, { status: "complete", request: req, response }];
|
|
67903
68525
|
}
|
|
67904
68526
|
return [result, { status: "complete", request: req, response }];
|
|
67905
68527
|
}
|
|
67906
68528
|
var init_filesystemStorageListFilesystems = __esm(() => {
|
|
67907
|
-
init_v3();
|
|
67908
68529
|
init_encodings();
|
|
67909
68530
|
init_http();
|
|
67910
68531
|
init_matchers();
|
|
@@ -67912,6 +68533,7 @@ var init_filesystemStorageListFilesystems = __esm(() => {
|
|
|
67912
68533
|
init_schemas4();
|
|
67913
68534
|
init_security();
|
|
67914
68535
|
init_url();
|
|
68536
|
+
init_models();
|
|
67915
68537
|
init_operations();
|
|
67916
68538
|
init_async();
|
|
67917
68539
|
});
|
|
@@ -67939,7 +68561,8 @@ Lists all the filesystems from a team.`,
|
|
|
67939
68561
|
isError: true
|
|
67940
68562
|
};
|
|
67941
68563
|
}
|
|
67942
|
-
|
|
68564
|
+
const value = result.value;
|
|
68565
|
+
return formatResult(value, apiCall);
|
|
67943
68566
|
}
|
|
67944
68567
|
};
|
|
67945
68568
|
});
|
|
@@ -71028,11 +71651,96 @@ Lists all bandwidth plans.`,
|
|
|
71028
71651
|
};
|
|
71029
71652
|
});
|
|
71030
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
|
+
|
|
71031
71739
|
// src/funcs/plansList.ts
|
|
71032
71740
|
function plansList(client, request, options) {
|
|
71033
|
-
return new APIPromise($
|
|
71741
|
+
return new APIPromise($do48(client, request, options));
|
|
71034
71742
|
}
|
|
71035
|
-
async function $
|
|
71743
|
+
async function $do48(client, request, options) {
|
|
71036
71744
|
const parsed = safeParse4(request, (value) => GetPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71037
71745
|
if (!parsed.ok) {
|
|
71038
71746
|
return [parsed, { status: "invalid" }];
|
|
@@ -71143,9 +71851,9 @@ Lists all plans. Availability by region is included in \`attributes.regions.loca
|
|
|
71143
71851
|
|
|
71144
71852
|
// src/funcs/plansListStorage.ts
|
|
71145
71853
|
function plansListStorage(client, options) {
|
|
71146
|
-
return new APIPromise($
|
|
71854
|
+
return new APIPromise($do49(client, options));
|
|
71147
71855
|
}
|
|
71148
|
-
async function $
|
|
71856
|
+
async function $do49(client, options) {
|
|
71149
71857
|
const path = pathToFunc("/plans/storage")();
|
|
71150
71858
|
const headers = new Headers(compactMap({
|
|
71151
71859
|
Accept: "application/vnd.api+json"
|
|
@@ -71228,9 +71936,9 @@ var init_plansListStorage2 = __esm(() => {
|
|
|
71228
71936
|
|
|
71229
71937
|
// src/funcs/plansUpdateBandwidth.ts
|
|
71230
71938
|
function plansUpdateBandwidth(client, request, options) {
|
|
71231
|
-
return new APIPromise($
|
|
71939
|
+
return new APIPromise($do50(client, request, options));
|
|
71232
71940
|
}
|
|
71233
|
-
async function $
|
|
71941
|
+
async function $do50(client, request, options) {
|
|
71234
71942
|
const parsed = safeParse4(request, (value) => UpdatePlansBandwidthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71235
71943
|
if (!parsed.ok) {
|
|
71236
71944
|
return [parsed, { status: "invalid" }];
|
|
@@ -71332,9 +72040,9 @@ Allows to increase or decrease bandwidth packages. Only admins and owners can re
|
|
|
71332
72040
|
|
|
71333
72041
|
// src/funcs/plansVmList.ts
|
|
71334
72042
|
function plansVmList(client, request, options) {
|
|
71335
|
-
return new APIPromise($
|
|
72043
|
+
return new APIPromise($do51(client, request, options));
|
|
71336
72044
|
}
|
|
71337
|
-
async function $
|
|
72045
|
+
async function $do51(client, request, options) {
|
|
71338
72046
|
const parsed = safeParse4(request, (value) => GetVmPlansRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71339
72047
|
if (!parsed.ok) {
|
|
71340
72048
|
return [parsed, { status: "invalid" }];
|
|
@@ -71436,9 +72144,9 @@ var init_plansVmList2 = __esm(() => {
|
|
|
71436
72144
|
|
|
71437
72145
|
// src/funcs/privateNetworksAssign.ts
|
|
71438
72146
|
function privateNetworksAssign(client, request, options) {
|
|
71439
|
-
return new APIPromise($
|
|
72147
|
+
return new APIPromise($do52(client, request, options));
|
|
71440
72148
|
}
|
|
71441
|
-
async function $
|
|
72149
|
+
async function $do52(client, request, options) {
|
|
71442
72150
|
const parsed = safeParse4(request, (value) => AssignServerVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71443
72151
|
if (!parsed.ok) {
|
|
71444
72152
|
return [parsed, { status: "invalid" }];
|
|
@@ -71537,9 +72245,9 @@ var init_privateNetworksAssign2 = __esm(() => {
|
|
|
71537
72245
|
|
|
71538
72246
|
// src/funcs/privateNetworksCreate.ts
|
|
71539
72247
|
function privateNetworksCreate(client, request, options) {
|
|
71540
|
-
return new APIPromise($
|
|
72248
|
+
return new APIPromise($do53(client, request, options));
|
|
71541
72249
|
}
|
|
71542
|
-
async function $
|
|
72250
|
+
async function $do53(client, request, options) {
|
|
71543
72251
|
const parsed = safeParse4(request, (value) => CreateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71544
72252
|
if (!parsed.ok) {
|
|
71545
72253
|
return [parsed, { status: "invalid" }];
|
|
@@ -71641,9 +72349,9 @@ Creates a new Virtual Network.
|
|
|
71641
72349
|
|
|
71642
72350
|
// src/funcs/privateNetworksDeleteAssignment.ts
|
|
71643
72351
|
function privateNetworksDeleteAssignment(client, request, options) {
|
|
71644
|
-
return new APIPromise($
|
|
72352
|
+
return new APIPromise($do54(client, request, options));
|
|
71645
72353
|
}
|
|
71646
|
-
async function $
|
|
72354
|
+
async function $do54(client, request, options) {
|
|
71647
72355
|
const parsed = safeParse4(request, (value) => DeleteVirtualNetworksAssignmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71648
72356
|
if (!parsed.ok) {
|
|
71649
72357
|
return [parsed, { status: "invalid" }];
|
|
@@ -71747,9 +72455,9 @@ Allow you to remove a Virtual Network assignment.
|
|
|
71747
72455
|
|
|
71748
72456
|
// src/funcs/privateNetworksGet.ts
|
|
71749
72457
|
function privateNetworksGet(client, request, options) {
|
|
71750
|
-
return new APIPromise($
|
|
72458
|
+
return new APIPromise($do55(client, request, options));
|
|
71751
72459
|
}
|
|
71752
|
-
async function $
|
|
72460
|
+
async function $do55(client, request, options) {
|
|
71753
72461
|
const parsed = safeParse4(request, (value) => GetVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71754
72462
|
if (!parsed.ok) {
|
|
71755
72463
|
return [parsed, { status: "invalid" }];
|
|
@@ -71856,9 +72564,9 @@ Retrieve a Virtual Network.
|
|
|
71856
72564
|
|
|
71857
72565
|
// src/funcs/privateNetworksList.ts
|
|
71858
72566
|
function privateNetworksList(client, request, options) {
|
|
71859
|
-
return new APIPromise($
|
|
72567
|
+
return new APIPromise($do56(client, request, options));
|
|
71860
72568
|
}
|
|
71861
|
-
async function $
|
|
72569
|
+
async function $do56(client, request, options) {
|
|
71862
72570
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71863
72571
|
if (!parsed.ok) {
|
|
71864
72572
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -71871,7 +72579,8 @@ async function $do55(client, request, options) {
|
|
|
71871
72579
|
"filter[project]": payload?.["filter[project]"],
|
|
71872
72580
|
"filter[tags]": payload?.["filter[tags]"],
|
|
71873
72581
|
"page[number]": payload?.["page[number]"],
|
|
71874
|
-
"page[size]": payload?.["page[size]"]
|
|
72582
|
+
"page[size]": payload?.["page[size]"],
|
|
72583
|
+
"stats[total]": payload?.["stats[total]"]
|
|
71875
72584
|
});
|
|
71876
72585
|
const headers = new Headers(compactMap({
|
|
71877
72586
|
Accept: "application/vnd.api+json"
|
|
@@ -72000,9 +72709,9 @@ Lists virtual networks assigned to a project
|
|
|
72000
72709
|
|
|
72001
72710
|
// src/funcs/privateNetworksListAssignments.ts
|
|
72002
72711
|
function privateNetworksListAssignments(client, request, options) {
|
|
72003
|
-
return new APIPromise($
|
|
72712
|
+
return new APIPromise($do57(client, request, options));
|
|
72004
72713
|
}
|
|
72005
|
-
async function $
|
|
72714
|
+
async function $do57(client, request, options) {
|
|
72006
72715
|
const parsed = safeParse4(request, (value) => GetVirtualNetworksAssignmentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72007
72716
|
if (!parsed.ok) {
|
|
72008
72717
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72015,7 +72724,8 @@ async function $do56(client, request, options) {
|
|
|
72015
72724
|
"filter[vid]": payload?.["filter[vid]"],
|
|
72016
72725
|
"filter[virtual_network_id]": payload?.["filter[virtual_network_id]"],
|
|
72017
72726
|
"page[number]": payload?.["page[number]"],
|
|
72018
|
-
"page[size]": payload?.["page[size]"]
|
|
72727
|
+
"page[size]": payload?.["page[size]"],
|
|
72728
|
+
"stats[total]": payload?.["stats[total]"]
|
|
72019
72729
|
});
|
|
72020
72730
|
const headers = new Headers(compactMap({
|
|
72021
72731
|
Accept: "application/vnd.api+json"
|
|
@@ -72141,9 +72851,9 @@ Returns a list of all servers assigned to virtual networks.
|
|
|
72141
72851
|
|
|
72142
72852
|
// src/funcs/privateNetworksUpdate.ts
|
|
72143
72853
|
function privateNetworksUpdate(client, request, options) {
|
|
72144
|
-
return new APIPromise($
|
|
72854
|
+
return new APIPromise($do58(client, request, options));
|
|
72145
72855
|
}
|
|
72146
|
-
async function $
|
|
72856
|
+
async function $do58(client, request, options) {
|
|
72147
72857
|
const parsed = safeParse4(request, (value) => UpdateVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72148
72858
|
if (!parsed.ok) {
|
|
72149
72859
|
return [parsed, { status: "invalid" }];
|
|
@@ -72251,9 +72961,9 @@ Update a Virtual Network.
|
|
|
72251
72961
|
|
|
72252
72962
|
// src/funcs/projectsCreate.ts
|
|
72253
72963
|
function projectsCreate(client, request, options) {
|
|
72254
|
-
return new APIPromise($
|
|
72964
|
+
return new APIPromise($do59(client, request, options));
|
|
72255
72965
|
}
|
|
72256
|
-
async function $
|
|
72966
|
+
async function $do59(client, request, options) {
|
|
72257
72967
|
const parsed = safeParse4(request, (value) => CreateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72258
72968
|
if (!parsed.ok) {
|
|
72259
72969
|
return [parsed, { status: "invalid" }];
|
|
@@ -72351,9 +73061,9 @@ var init_projectsCreate2 = __esm(() => {
|
|
|
72351
73061
|
|
|
72352
73062
|
// src/funcs/projectsDelete.ts
|
|
72353
73063
|
function projectsDelete(client, request, options) {
|
|
72354
|
-
return new APIPromise($
|
|
73064
|
+
return new APIPromise($do60(client, request, options));
|
|
72355
73065
|
}
|
|
72356
|
-
async function $
|
|
73066
|
+
async function $do60(client, request, options) {
|
|
72357
73067
|
const parsed = safeParse4(request, (value) => DeleteProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72358
73068
|
if (!parsed.ok) {
|
|
72359
73069
|
return [parsed, { status: "invalid" }];
|
|
@@ -72456,9 +73166,9 @@ Deletes a project and releases associated resources. Any Elastic IPs assigned to
|
|
|
72456
73166
|
|
|
72457
73167
|
// src/funcs/projectsList.ts
|
|
72458
73168
|
function projectsList(client, request, options) {
|
|
72459
|
-
return new APIPromise($
|
|
73169
|
+
return new APIPromise($do61(client, request, options));
|
|
72460
73170
|
}
|
|
72461
|
-
async function $
|
|
73171
|
+
async function $do61(client, request, options) {
|
|
72462
73172
|
const parsed = safeParse4(request, (value) => GetProjectsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72463
73173
|
if (!parsed.ok) {
|
|
72464
73174
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -72604,9 +73314,9 @@ Returns a list of all projects for the current team
|
|
|
72604
73314
|
|
|
72605
73315
|
// src/funcs/projectsSshKeysPostProjectSshKey.ts
|
|
72606
73316
|
function projectsSshKeysPostProjectSshKey(client, request, options) {
|
|
72607
|
-
return new APIPromise($
|
|
73317
|
+
return new APIPromise($do62(client, request, options));
|
|
72608
73318
|
}
|
|
72609
|
-
async function $
|
|
73319
|
+
async function $do62(client, request, options) {
|
|
72610
73320
|
const parsed = safeParse4(request, (value) => PostProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72611
73321
|
if (!parsed.ok) {
|
|
72612
73322
|
return [parsed, { status: "invalid" }];
|
|
@@ -72713,9 +73423,9 @@ Allow you create SSH Keys in a project. These keys can be used to access servers
|
|
|
72713
73423
|
|
|
72714
73424
|
// src/funcs/projectsUpdate.ts
|
|
72715
73425
|
function projectsUpdate(client, request, options) {
|
|
72716
|
-
return new APIPromise($
|
|
73426
|
+
return new APIPromise($do63(client, request, options));
|
|
72717
73427
|
}
|
|
72718
|
-
async function $
|
|
73428
|
+
async function $do63(client, request, options) {
|
|
72719
73429
|
const parsed = safeParse4(request, (value) => UpdateProjectRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72720
73430
|
if (!parsed.ok) {
|
|
72721
73431
|
return [parsed, { status: "invalid" }];
|
|
@@ -72819,9 +73529,9 @@ var init_projectsUpdate2 = __esm(() => {
|
|
|
72819
73529
|
|
|
72820
73530
|
// src/funcs/regionsFetch.ts
|
|
72821
73531
|
function regionsFetch(client, request, options) {
|
|
72822
|
-
return new APIPromise($
|
|
73532
|
+
return new APIPromise($do64(client, request, options));
|
|
72823
73533
|
}
|
|
72824
|
-
async function $
|
|
73534
|
+
async function $do64(client, request, options) {
|
|
72825
73535
|
const parsed = safeParse4(request, (value) => GetRegionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72826
73536
|
if (!parsed.ok) {
|
|
72827
73537
|
return [parsed, { status: "invalid" }];
|
|
@@ -72925,9 +73635,9 @@ var init_regionsFetch2 = __esm(() => {
|
|
|
72925
73635
|
|
|
72926
73636
|
// src/funcs/regionsGet.ts
|
|
72927
73637
|
function regionsGet(client, request, options) {
|
|
72928
|
-
return new APIPromise($
|
|
73638
|
+
return new APIPromise($do65(client, request, options));
|
|
72929
73639
|
}
|
|
72930
|
-
async function $
|
|
73640
|
+
async function $do65(client, request, options) {
|
|
72931
73641
|
const parsed = safeParse4(request, (value) => GetRegionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72932
73642
|
if (!parsed.ok) {
|
|
72933
73643
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73067,9 +73777,9 @@ Lists all [available locations](https://latitude.sh/locations). For server avail
|
|
|
73067
73777
|
|
|
73068
73778
|
// src/funcs/rolesGet.ts
|
|
73069
73779
|
function rolesGet(client, request, options) {
|
|
73070
|
-
return new APIPromise($
|
|
73780
|
+
return new APIPromise($do66(client, request, options));
|
|
73071
73781
|
}
|
|
73072
|
-
async function $
|
|
73782
|
+
async function $do66(client, request, options) {
|
|
73073
73783
|
const parsed = safeParse4(request, (value) => GetRoleIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73074
73784
|
if (!parsed.ok) {
|
|
73075
73785
|
return [parsed, { status: "invalid" }];
|
|
@@ -73173,9 +73883,9 @@ var init_rolesGet2 = __esm(() => {
|
|
|
73173
73883
|
|
|
73174
73884
|
// src/funcs/rolesList.ts
|
|
73175
73885
|
function rolesList(client, request, options) {
|
|
73176
|
-
return new APIPromise($
|
|
73886
|
+
return new APIPromise($do67(client, request, options));
|
|
73177
73887
|
}
|
|
73178
|
-
async function $
|
|
73888
|
+
async function $do67(client, request, options) {
|
|
73179
73889
|
const parsed = safeParse4(request, (value) => GetRolesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
73180
73890
|
if (!parsed.ok) {
|
|
73181
73891
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -73314,9 +74024,9 @@ Returns a list of all roles that can be assigned to users
|
|
|
73314
74024
|
|
|
73315
74025
|
// src/funcs/serversCreate.ts
|
|
73316
74026
|
function serversCreate(client, request, options) {
|
|
73317
|
-
return new APIPromise($
|
|
74027
|
+
return new APIPromise($do68(client, request, options));
|
|
73318
74028
|
}
|
|
73319
|
-
async function $
|
|
74029
|
+
async function $do68(client, request, options) {
|
|
73320
74030
|
const parsed = safeParse4(request, (value) => CreateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73321
74031
|
if (!parsed.ok) {
|
|
73322
74032
|
return [parsed, { status: "invalid" }];
|
|
@@ -73415,9 +74125,9 @@ var init_serversCreate2 = __esm(() => {
|
|
|
73415
74125
|
|
|
73416
74126
|
// src/funcs/serversCreateIpmiSession.ts
|
|
73417
74127
|
function serversCreateIpmiSession(client, request, options) {
|
|
73418
|
-
return new APIPromise($
|
|
74128
|
+
return new APIPromise($do69(client, request, options));
|
|
73419
74129
|
}
|
|
73420
|
-
async function $
|
|
74130
|
+
async function $do69(client, request, options) {
|
|
73421
74131
|
const parsed = safeParse4(request, (value) => CreateIpmiSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73422
74132
|
if (!parsed.ok) {
|
|
73423
74133
|
return [parsed, { status: "invalid" }];
|
|
@@ -73527,9 +74237,9 @@ Related guide: https://docs.latitude.sh/docs/ipmi
|
|
|
73527
74237
|
|
|
73528
74238
|
// src/funcs/serversDelete.ts
|
|
73529
74239
|
function serversDelete(client, request, options) {
|
|
73530
|
-
return new APIPromise($
|
|
74240
|
+
return new APIPromise($do70(client, request, options));
|
|
73531
74241
|
}
|
|
73532
|
-
async function $
|
|
74242
|
+
async function $do70(client, request, options) {
|
|
73533
74243
|
const parsed = safeParse4(request, (value) => DestroyServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73534
74244
|
if (!parsed.ok) {
|
|
73535
74245
|
return [parsed, { status: "invalid" }];
|
|
@@ -73634,9 +74344,9 @@ var init_serversDelete2 = __esm(() => {
|
|
|
73634
74344
|
|
|
73635
74345
|
// src/funcs/serversExitRescueMode.ts
|
|
73636
74346
|
function serversExitRescueMode(client, request, options) {
|
|
73637
|
-
return new APIPromise($
|
|
74347
|
+
return new APIPromise($do71(client, request, options));
|
|
73638
74348
|
}
|
|
73639
|
-
async function $
|
|
74349
|
+
async function $do71(client, request, options) {
|
|
73640
74350
|
const parsed = safeParse4(request, (value) => ServerExitRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73641
74351
|
if (!parsed.ok) {
|
|
73642
74352
|
return [parsed, { status: "invalid" }];
|
|
@@ -73742,9 +74452,9 @@ Exits rescue mode on a given server.`,
|
|
|
73742
74452
|
|
|
73743
74453
|
// src/funcs/serversGet.ts
|
|
73744
74454
|
function serversGet(client, request, options) {
|
|
73745
|
-
return new APIPromise($
|
|
74455
|
+
return new APIPromise($do72(client, request, options));
|
|
73746
74456
|
}
|
|
73747
|
-
async function $
|
|
74457
|
+
async function $do72(client, request, options) {
|
|
73748
74458
|
const parsed = safeParse4(request, (value) => GetServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73749
74459
|
if (!parsed.ok) {
|
|
73750
74460
|
return [parsed, { status: "invalid" }];
|
|
@@ -73855,9 +74565,9 @@ Returns a server that belongs to the team.
|
|
|
73855
74565
|
|
|
73856
74566
|
// src/funcs/serversGetDeployConfig.ts
|
|
73857
74567
|
function serversGetDeployConfig(client, request, options) {
|
|
73858
|
-
return new APIPromise($
|
|
74568
|
+
return new APIPromise($do73(client, request, options));
|
|
73859
74569
|
}
|
|
73860
|
-
async function $
|
|
74570
|
+
async function $do73(client, request, options) {
|
|
73861
74571
|
const parsed = safeParse4(request, (value) => GetServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73862
74572
|
if (!parsed.ok) {
|
|
73863
74573
|
return [parsed, { status: "invalid" }];
|
|
@@ -73961,9 +74671,9 @@ var init_serversGetDeployConfig2 = __esm(() => {
|
|
|
73961
74671
|
|
|
73962
74672
|
// src/funcs/serversGetOutOfBand.ts
|
|
73963
74673
|
function serversGetOutOfBand(client, request, options) {
|
|
73964
|
-
return new APIPromise($
|
|
74674
|
+
return new APIPromise($do74(client, request, options));
|
|
73965
74675
|
}
|
|
73966
|
-
async function $
|
|
74676
|
+
async function $do74(client, request, options) {
|
|
73967
74677
|
const parsed = safeParse4(request, (value) => GetServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73968
74678
|
if (!parsed.ok) {
|
|
73969
74679
|
return [parsed, { status: "invalid" }];
|
|
@@ -74067,9 +74777,9 @@ var init_serversGetOutOfBand2 = __esm(() => {
|
|
|
74067
74777
|
|
|
74068
74778
|
// src/funcs/serversList.ts
|
|
74069
74779
|
function serversList(client, request, options) {
|
|
74070
|
-
return new APIPromise($
|
|
74780
|
+
return new APIPromise($do75(client, request, options));
|
|
74071
74781
|
}
|
|
74072
|
-
async function $
|
|
74782
|
+
async function $do75(client, request, options) {
|
|
74073
74783
|
const parsed = safeParse4(request, (value) => GetServersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
74074
74784
|
if (!parsed.ok) {
|
|
74075
74785
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -74096,7 +74806,8 @@ async function $do74(client, request, options) {
|
|
|
74096
74806
|
"filter[status]": payload?.["filter[status]"],
|
|
74097
74807
|
"filter[tags]": payload?.["filter[tags]"],
|
|
74098
74808
|
"page[number]": payload?.["page[number]"],
|
|
74099
|
-
"page[size]": payload?.["page[size]"]
|
|
74809
|
+
"page[size]": payload?.["page[size]"],
|
|
74810
|
+
"stats[total]": payload?.["stats[total]"]
|
|
74100
74811
|
});
|
|
74101
74812
|
const headers = new Headers(compactMap({
|
|
74102
74813
|
Accept: "application/vnd.api+json"
|
|
@@ -74225,9 +74936,9 @@ Returns a list of all servers belonging to the team.
|
|
|
74225
74936
|
|
|
74226
74937
|
// src/funcs/serversLock.ts
|
|
74227
74938
|
function serversLock(client, request, options) {
|
|
74228
|
-
return new APIPromise($
|
|
74939
|
+
return new APIPromise($do76(client, request, options));
|
|
74229
74940
|
}
|
|
74230
|
-
async function $
|
|
74941
|
+
async function $do76(client, request, options) {
|
|
74231
74942
|
const parsed = safeParse4(request, (value) => ServerLockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74232
74943
|
if (!parsed.ok) {
|
|
74233
74944
|
return [parsed, { status: "invalid" }];
|
|
@@ -74333,9 +75044,9 @@ Locks the server. A locked server cannot be deleted or modified and no actions c
|
|
|
74333
75044
|
|
|
74334
75045
|
// src/funcs/serversReinstall.ts
|
|
74335
75046
|
function serversReinstall(client, request, options) {
|
|
74336
|
-
return new APIPromise($
|
|
75047
|
+
return new APIPromise($do77(client, request, options));
|
|
74337
75048
|
}
|
|
74338
|
-
async function $
|
|
75049
|
+
async function $do77(client, request, options) {
|
|
74339
75050
|
const parsed = safeParse4(request, (value) => CreateServerReinstallRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74340
75051
|
if (!parsed.ok) {
|
|
74341
75052
|
return [parsed, { status: "invalid" }];
|
|
@@ -74443,9 +75154,9 @@ var init_serversReinstall2 = __esm(() => {
|
|
|
74443
75154
|
|
|
74444
75155
|
// src/funcs/serversRunAction.ts
|
|
74445
75156
|
function serversRunAction(client, request, options) {
|
|
74446
|
-
return new APIPromise($
|
|
75157
|
+
return new APIPromise($do78(client, request, options));
|
|
74447
75158
|
}
|
|
74448
|
-
async function $
|
|
75159
|
+
async function $do78(client, request, options) {
|
|
74449
75160
|
const parsed = safeParse4(request, (value) => CreateServerActionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74450
75161
|
if (!parsed.ok) {
|
|
74451
75162
|
return [parsed, { status: "invalid" }];
|
|
@@ -74556,9 +75267,9 @@ Performs an action on a given server:
|
|
|
74556
75267
|
|
|
74557
75268
|
// src/funcs/serversScheduleDeletion.ts
|
|
74558
75269
|
function serversScheduleDeletion(client, request, options) {
|
|
74559
|
-
return new APIPromise($
|
|
75270
|
+
return new APIPromise($do79(client, request, options));
|
|
74560
75271
|
}
|
|
74561
|
-
async function $
|
|
75272
|
+
async function $do79(client, request, options) {
|
|
74562
75273
|
const parsed = safeParse4(request, (value) => ServerScheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74563
75274
|
if (!parsed.ok) {
|
|
74564
75275
|
return [parsed, { status: "invalid" }];
|
|
@@ -74664,9 +75375,9 @@ Schedules the server to be removed at the end of the billing cycle.`,
|
|
|
74664
75375
|
|
|
74665
75376
|
// src/funcs/serversStartOutOfBandConnection.ts
|
|
74666
75377
|
function serversStartOutOfBandConnection(client, request, options) {
|
|
74667
|
-
return new APIPromise($
|
|
75378
|
+
return new APIPromise($do80(client, request, options));
|
|
74668
75379
|
}
|
|
74669
|
-
async function $
|
|
75380
|
+
async function $do80(client, request, options) {
|
|
74670
75381
|
const parsed = safeParse4(request, (value) => CreateServerOutOfBandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74671
75382
|
if (!parsed.ok) {
|
|
74672
75383
|
return [parsed, { status: "invalid" }];
|
|
@@ -74771,9 +75482,9 @@ var init_serversStartOutOfBandConnection2 = __esm(() => {
|
|
|
74771
75482
|
|
|
74772
75483
|
// src/funcs/serversStartRescueMode.ts
|
|
74773
75484
|
function serversStartRescueMode(client, request, options) {
|
|
74774
|
-
return new APIPromise($
|
|
75485
|
+
return new APIPromise($do81(client, request, options));
|
|
74775
75486
|
}
|
|
74776
|
-
async function $
|
|
75487
|
+
async function $do81(client, request, options) {
|
|
74777
75488
|
const parsed = safeParse4(request, (value) => ServerStartRescueModeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74778
75489
|
if (!parsed.ok) {
|
|
74779
75490
|
return [parsed, { status: "invalid" }];
|
|
@@ -74879,9 +75590,9 @@ Starts rescue mode on a given server.`,
|
|
|
74879
75590
|
|
|
74880
75591
|
// src/funcs/serversUnlock.ts
|
|
74881
75592
|
function serversUnlock(client, request, options) {
|
|
74882
|
-
return new APIPromise($
|
|
75593
|
+
return new APIPromise($do82(client, request, options));
|
|
74883
75594
|
}
|
|
74884
|
-
async function $
|
|
75595
|
+
async function $do82(client, request, options) {
|
|
74885
75596
|
const parsed = safeParse4(request, (value) => ServerUnlockRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74886
75597
|
if (!parsed.ok) {
|
|
74887
75598
|
return [parsed, { status: "invalid" }];
|
|
@@ -74987,9 +75698,9 @@ Unlocks the server. A locked server cannot be deleted or modified and no actions
|
|
|
74987
75698
|
|
|
74988
75699
|
// src/funcs/serversUnscheduleDeletion.ts
|
|
74989
75700
|
function serversUnscheduleDeletion(client, request, options) {
|
|
74990
|
-
return new APIPromise($
|
|
75701
|
+
return new APIPromise($do83(client, request, options));
|
|
74991
75702
|
}
|
|
74992
|
-
async function $
|
|
75703
|
+
async function $do83(client, request, options) {
|
|
74993
75704
|
const parsed = safeParse4(request, (value) => ServerUnscheduleDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74994
75705
|
if (!parsed.ok) {
|
|
74995
75706
|
return [parsed, { status: "invalid" }];
|
|
@@ -75092,9 +75803,9 @@ Unschedules the server removal at the end of the billing cycle.`,
|
|
|
75092
75803
|
|
|
75093
75804
|
// src/funcs/serversUpdate.ts
|
|
75094
75805
|
function serversUpdate(client, request, options) {
|
|
75095
|
-
return new APIPromise($
|
|
75806
|
+
return new APIPromise($do84(client, request, options));
|
|
75096
75807
|
}
|
|
75097
|
-
async function $
|
|
75808
|
+
async function $do84(client, request, options) {
|
|
75098
75809
|
const parsed = safeParse4(request, (value) => UpdateServerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75099
75810
|
if (!parsed.ok) {
|
|
75100
75811
|
return [parsed, { status: "invalid" }];
|
|
@@ -75199,9 +75910,9 @@ var init_serversUpdate2 = __esm(() => {
|
|
|
75199
75910
|
|
|
75200
75911
|
// src/funcs/serversUpdateDeployConfig.ts
|
|
75201
75912
|
function serversUpdateDeployConfig(client, request, options) {
|
|
75202
|
-
return new APIPromise($
|
|
75913
|
+
return new APIPromise($do85(client, request, options));
|
|
75203
75914
|
}
|
|
75204
|
-
async function $
|
|
75915
|
+
async function $do85(client, request, options) {
|
|
75205
75916
|
const parsed = safeParse4(request, (value) => UpdateServerDeployConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75206
75917
|
if (!parsed.ok) {
|
|
75207
75918
|
return [parsed, { status: "invalid" }];
|
|
@@ -75306,9 +76017,9 @@ var init_serversUpdateDeployConfig2 = __esm(() => {
|
|
|
75306
76017
|
|
|
75307
76018
|
// src/funcs/sshKeysCreate.ts
|
|
75308
76019
|
function sshKeysCreate(client, request, options) {
|
|
75309
|
-
return new APIPromise($
|
|
76020
|
+
return new APIPromise($do86(client, request, options));
|
|
75310
76021
|
}
|
|
75311
|
-
async function $
|
|
76022
|
+
async function $do86(client, request, options) {
|
|
75312
76023
|
const parsed = safeParse4(request, (value) => PostSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75313
76024
|
if (!parsed.ok) {
|
|
75314
76025
|
return [parsed, { status: "invalid" }];
|
|
@@ -75409,9 +76120,9 @@ Allows you create SSH Keys. These keys can be used to access servers after deplo
|
|
|
75409
76120
|
|
|
75410
76121
|
// src/funcs/sshKeysDelete.ts
|
|
75411
76122
|
function sshKeysDelete(client, request, options) {
|
|
75412
|
-
return new APIPromise($
|
|
76123
|
+
return new APIPromise($do87(client, request, options));
|
|
75413
76124
|
}
|
|
75414
|
-
async function $
|
|
76125
|
+
async function $do87(client, request, options) {
|
|
75415
76126
|
const parsed = safeParse4(request, (value) => DeleteSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75416
76127
|
if (!parsed.ok) {
|
|
75417
76128
|
return [parsed, { status: "invalid" }];
|
|
@@ -75515,9 +76226,9 @@ Allows you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
75515
76226
|
|
|
75516
76227
|
// src/funcs/sshKeysGet.ts
|
|
75517
76228
|
function sshKeysGet(client, request, options) {
|
|
75518
|
-
return new APIPromise($
|
|
76229
|
+
return new APIPromise($do88(client, request, options));
|
|
75519
76230
|
}
|
|
75520
|
-
async function $
|
|
76231
|
+
async function $do88(client, request, options) {
|
|
75521
76232
|
const parsed = safeParse4(request, (value) => GetProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75522
76233
|
if (!parsed.ok) {
|
|
75523
76234
|
return [parsed, { status: "invalid" }];
|
|
@@ -75627,9 +76338,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75627
76338
|
|
|
75628
76339
|
// src/funcs/sshKeysList.ts
|
|
75629
76340
|
function sshKeysList(client, request, options) {
|
|
75630
|
-
return new APIPromise($
|
|
76341
|
+
return new APIPromise($do89(client, request, options));
|
|
75631
76342
|
}
|
|
75632
|
-
async function $
|
|
76343
|
+
async function $do89(client, request, options) {
|
|
75633
76344
|
const parsed = safeParse4(request, (value) => GetProjectSshKeysRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75634
76345
|
if (!parsed.ok) {
|
|
75635
76346
|
return [parsed, { status: "invalid" }];
|
|
@@ -75743,9 +76454,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75743
76454
|
|
|
75744
76455
|
// src/funcs/sshKeysListAll.ts
|
|
75745
76456
|
function sshKeysListAll(client, request, options) {
|
|
75746
|
-
return new APIPromise($
|
|
76457
|
+
return new APIPromise($do90(client, request, options));
|
|
75747
76458
|
}
|
|
75748
|
-
async function $
|
|
76459
|
+
async function $do90(client, request, options) {
|
|
75749
76460
|
const parsed = safeParse4(request, (value) => GetSshKeysRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
75750
76461
|
if (!parsed.ok) {
|
|
75751
76462
|
return [parsed, { status: "invalid" }];
|
|
@@ -75855,9 +76566,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
75855
76566
|
|
|
75856
76567
|
// src/funcs/sshKeysModifyProjectKey.ts
|
|
75857
76568
|
function sshKeysModifyProjectKey(client, request, options) {
|
|
75858
|
-
return new APIPromise($
|
|
76569
|
+
return new APIPromise($do91(client, request, options));
|
|
75859
76570
|
}
|
|
75860
|
-
async function $
|
|
76571
|
+
async function $do91(client, request, options) {
|
|
75861
76572
|
const parsed = safeParse4(request, (value) => PutProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75862
76573
|
if (!parsed.ok) {
|
|
75863
76574
|
return [parsed, { status: "invalid" }];
|
|
@@ -75968,9 +76679,9 @@ Allow you update SSH Key in a project. These keys can be used to access servers
|
|
|
75968
76679
|
|
|
75969
76680
|
// src/funcs/sshKeysRemoveFromProject.ts
|
|
75970
76681
|
function sshKeysRemoveFromProject(client, request, options) {
|
|
75971
|
-
return new APIPromise($
|
|
76682
|
+
return new APIPromise($do92(client, request, options));
|
|
75972
76683
|
}
|
|
75973
|
-
async function $
|
|
76684
|
+
async function $do92(client, request, options) {
|
|
75974
76685
|
const parsed = safeParse4(request, (value) => DeleteProjectSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75975
76686
|
if (!parsed.ok) {
|
|
75976
76687
|
return [parsed, { status: "invalid" }];
|
|
@@ -76078,9 +76789,9 @@ Allow you remove SSH Keys in a project. Remove a SSH Key from the project won't
|
|
|
76078
76789
|
|
|
76079
76790
|
// src/funcs/sshKeysRetrieve.ts
|
|
76080
76791
|
function sshKeysRetrieve(client, request, options) {
|
|
76081
|
-
return new APIPromise($
|
|
76792
|
+
return new APIPromise($do93(client, request, options));
|
|
76082
76793
|
}
|
|
76083
|
-
async function $
|
|
76794
|
+
async function $do93(client, request, options) {
|
|
76084
76795
|
const parsed = safeParse4(request, (value) => GetSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76085
76796
|
if (!parsed.ok) {
|
|
76086
76797
|
return [parsed, { status: "invalid" }];
|
|
@@ -76186,9 +76897,9 @@ List all SSH Keys in the project. These keys can be used to access servers after
|
|
|
76186
76897
|
|
|
76187
76898
|
// src/funcs/sshKeysUpdate.ts
|
|
76188
76899
|
function sshKeysUpdate(client, request, options) {
|
|
76189
|
-
return new APIPromise($
|
|
76900
|
+
return new APIPromise($do94(client, request, options));
|
|
76190
76901
|
}
|
|
76191
|
-
async function $
|
|
76902
|
+
async function $do94(client, request, options) {
|
|
76192
76903
|
const parsed = safeParse4(request, (value) => PutSshKeyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76193
76904
|
if (!parsed.ok) {
|
|
76194
76905
|
return [parsed, { status: "invalid" }];
|
|
@@ -76295,9 +77006,9 @@ Allows you update SSH Key in a project. These keys can be used to access servers
|
|
|
76295
77006
|
|
|
76296
77007
|
// src/funcs/tagsCreate.ts
|
|
76297
77008
|
function tagsCreate(client, request, options) {
|
|
76298
|
-
return new APIPromise($
|
|
77009
|
+
return new APIPromise($do95(client, request, options));
|
|
76299
77010
|
}
|
|
76300
|
-
async function $
|
|
77011
|
+
async function $do95(client, request, options) {
|
|
76301
77012
|
const parsed = safeParse4(request, (value) => CreateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76302
77013
|
if (!parsed.ok) {
|
|
76303
77014
|
return [parsed, { status: "invalid" }];
|
|
@@ -76405,9 +77116,9 @@ Create a Tag in the team.
|
|
|
76405
77116
|
|
|
76406
77117
|
// src/funcs/tagsDelete.ts
|
|
76407
77118
|
function tagsDelete(client, request, options) {
|
|
76408
|
-
return new APIPromise($
|
|
77119
|
+
return new APIPromise($do96(client, request, options));
|
|
76409
77120
|
}
|
|
76410
|
-
async function $
|
|
77121
|
+
async function $do96(client, request, options) {
|
|
76411
77122
|
const parsed = safeParse4(request, (value) => DestroyTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76412
77123
|
if (!parsed.ok) {
|
|
76413
77124
|
return [parsed, { status: "invalid" }];
|
|
@@ -76511,9 +77222,9 @@ Update a Tag in the team.
|
|
|
76511
77222
|
|
|
76512
77223
|
// src/funcs/tagsList.ts
|
|
76513
77224
|
function tagsList(client, options) {
|
|
76514
|
-
return new APIPromise($
|
|
77225
|
+
return new APIPromise($do97(client, options));
|
|
76515
77226
|
}
|
|
76516
|
-
async function $
|
|
77227
|
+
async function $do97(client, options) {
|
|
76517
77228
|
const path = pathToFunc("/tags")();
|
|
76518
77229
|
const headers = new Headers(compactMap({
|
|
76519
77230
|
Accept: "application/vnd.api+json"
|
|
@@ -76599,9 +77310,9 @@ List all Tags in the team.
|
|
|
76599
77310
|
|
|
76600
77311
|
// src/funcs/tagsUpdate.ts
|
|
76601
77312
|
function tagsUpdate(client, request, options) {
|
|
76602
|
-
return new APIPromise($
|
|
77313
|
+
return new APIPromise($do98(client, request, options));
|
|
76603
77314
|
}
|
|
76604
|
-
async function $
|
|
77315
|
+
async function $do98(client, request, options) {
|
|
76605
77316
|
const parsed = safeParse4(request, (value) => UpdateTagRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76606
77317
|
if (!parsed.ok) {
|
|
76607
77318
|
return [parsed, { status: "invalid" }];
|
|
@@ -76715,9 +77426,9 @@ Update a Tag in the team.
|
|
|
76715
77426
|
|
|
76716
77427
|
// src/funcs/teamMembersDelete.ts
|
|
76717
77428
|
function teamMembersDelete(client, request, options) {
|
|
76718
|
-
return new APIPromise($
|
|
77429
|
+
return new APIPromise($do99(client, request, options));
|
|
76719
77430
|
}
|
|
76720
|
-
async function $
|
|
77431
|
+
async function $do99(client, request, options) {
|
|
76721
77432
|
const parsed = safeParse4(request, (value) => DestroyTeamMemberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76722
77433
|
if (!parsed.ok) {
|
|
76723
77434
|
return [parsed, { status: "invalid" }];
|
|
@@ -76818,9 +77529,9 @@ var init_teamMembersDelete2 = __esm(() => {
|
|
|
76818
77529
|
|
|
76819
77530
|
// src/funcs/teamMembersPostTeamMembers.ts
|
|
76820
77531
|
function teamMembersPostTeamMembers(client, request, options) {
|
|
76821
|
-
return new APIPromise($
|
|
77532
|
+
return new APIPromise($do100(client, request, options));
|
|
76822
77533
|
}
|
|
76823
|
-
async function $
|
|
77534
|
+
async function $do100(client, request, options) {
|
|
76824
77535
|
const parsed = safeParse4(request, (value) => PostTeamMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76825
77536
|
if (!parsed.ok) {
|
|
76826
77537
|
return [parsed, { status: "invalid" }];
|
|
@@ -76919,9 +77630,9 @@ var init_teamMembersPostTeamMembers2 = __esm(() => {
|
|
|
76919
77630
|
|
|
76920
77631
|
// src/funcs/teamsCreate.ts
|
|
76921
77632
|
function teamsCreate(client, request, options) {
|
|
76922
|
-
return new APIPromise($
|
|
77633
|
+
return new APIPromise($do101(client, request, options));
|
|
76923
77634
|
}
|
|
76924
|
-
async function $
|
|
77635
|
+
async function $do101(client, request, options) {
|
|
76925
77636
|
const parsed = safeParse4(request, (value) => PostTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76926
77637
|
if (!parsed.ok) {
|
|
76927
77638
|
return [parsed, { status: "invalid" }];
|
|
@@ -77019,9 +77730,9 @@ var init_teamsCreate2 = __esm(() => {
|
|
|
77019
77730
|
|
|
77020
77731
|
// src/funcs/teamsGet.ts
|
|
77021
77732
|
function teamsGet(client, options) {
|
|
77022
|
-
return new APIPromise($
|
|
77733
|
+
return new APIPromise($do102(client, options));
|
|
77023
77734
|
}
|
|
77024
|
-
async function $
|
|
77735
|
+
async function $do102(client, options) {
|
|
77025
77736
|
const path = pathToFunc("/team")();
|
|
77026
77737
|
const headers = new Headers(compactMap({
|
|
77027
77738
|
Accept: "application/vnd.api+json"
|
|
@@ -77104,9 +77815,9 @@ var init_teamsGet2 = __esm(() => {
|
|
|
77104
77815
|
|
|
77105
77816
|
// src/funcs/teamsMembersGetTeamMembers.ts
|
|
77106
77817
|
function teamsMembersGetTeamMembers(client, request, options) {
|
|
77107
|
-
return new APIPromise($
|
|
77818
|
+
return new APIPromise($do103(client, request, options));
|
|
77108
77819
|
}
|
|
77109
|
-
async function $
|
|
77820
|
+
async function $do103(client, request, options) {
|
|
77110
77821
|
const parsed = safeParse4(request, (value) => GetTeamMembersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77111
77822
|
if (!parsed.ok) {
|
|
77112
77823
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -77242,9 +77953,9 @@ var init_teamsMembersGetTeamMembers2 = __esm(() => {
|
|
|
77242
77953
|
|
|
77243
77954
|
// src/funcs/teamsUpdate.ts
|
|
77244
77955
|
function teamsUpdate(client, request, options) {
|
|
77245
|
-
return new APIPromise($
|
|
77956
|
+
return new APIPromise($do104(client, request, options));
|
|
77246
77957
|
}
|
|
77247
|
-
async function $
|
|
77958
|
+
async function $do104(client, request, options) {
|
|
77248
77959
|
const parsed = safeParse4(request, (value) => PatchCurrentTeamRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77249
77960
|
if (!parsed.ok) {
|
|
77250
77961
|
return [parsed, { status: "invalid" }];
|
|
@@ -77348,9 +78059,9 @@ var init_teamsUpdate2 = __esm(() => {
|
|
|
77348
78059
|
|
|
77349
78060
|
// src/funcs/trafficGet.ts
|
|
77350
78061
|
function trafficGet(client, request, options) {
|
|
77351
|
-
return new APIPromise($
|
|
78062
|
+
return new APIPromise($do105(client, request, options));
|
|
77352
78063
|
}
|
|
77353
|
-
async function $
|
|
78064
|
+
async function $do105(client, request, options) {
|
|
77354
78065
|
const parsed = safeParse4(request, (value) => GetTrafficConsumptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77355
78066
|
if (!parsed.ok) {
|
|
77356
78067
|
return [parsed, { status: "invalid" }];
|
|
@@ -77455,9 +78166,9 @@ var init_trafficGet2 = __esm(() => {
|
|
|
77455
78166
|
|
|
77456
78167
|
// src/funcs/trafficGetQuota.ts
|
|
77457
78168
|
function trafficGetQuota(client, request, options) {
|
|
77458
|
-
return new APIPromise($
|
|
78169
|
+
return new APIPromise($do106(client, request, options));
|
|
77459
78170
|
}
|
|
77460
|
-
async function $
|
|
78171
|
+
async function $do106(client, request, options) {
|
|
77461
78172
|
const parsed = safeParse4(request, (value) => GetTrafficQuotaRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77462
78173
|
if (!parsed.ok) {
|
|
77463
78174
|
return [parsed, { status: "invalid" }];
|
|
@@ -77559,9 +78270,9 @@ var init_trafficGetQuota2 = __esm(() => {
|
|
|
77559
78270
|
|
|
77560
78271
|
// src/funcs/userDataCreate.ts
|
|
77561
78272
|
function userDataCreate(client, request, options) {
|
|
77562
|
-
return new APIPromise($
|
|
78273
|
+
return new APIPromise($do107(client, request, options));
|
|
77563
78274
|
}
|
|
77564
|
-
async function $
|
|
78275
|
+
async function $do107(client, request, options) {
|
|
77565
78276
|
const parsed = safeParse4(request, (value) => PostProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77566
78277
|
if (!parsed.ok) {
|
|
77567
78278
|
return [parsed, { status: "invalid" }];
|
|
@@ -77669,9 +78380,9 @@ Allows you to create User Data in a project, which can be used to perform custom
|
|
|
77669
78380
|
|
|
77670
78381
|
// src/funcs/userDataCreateNew.ts
|
|
77671
78382
|
function userDataCreateNew(client, request, options) {
|
|
77672
|
-
return new APIPromise($
|
|
78383
|
+
return new APIPromise($do108(client, request, options));
|
|
77673
78384
|
}
|
|
77674
|
-
async function $
|
|
78385
|
+
async function $do108(client, request, options) {
|
|
77675
78386
|
const parsed = safeParse4(request, (value) => PostUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77676
78387
|
if (!parsed.ok) {
|
|
77677
78388
|
return [parsed, { status: "invalid" }];
|
|
@@ -77773,9 +78484,9 @@ Allows you to create User Data in a team, which can be used to perform custom se
|
|
|
77773
78484
|
|
|
77774
78485
|
// src/funcs/userDataDelete.ts
|
|
77775
78486
|
function userDataDelete(client, request, options) {
|
|
77776
|
-
return new APIPromise($
|
|
78487
|
+
return new APIPromise($do109(client, request, options));
|
|
77777
78488
|
}
|
|
77778
|
-
async function $
|
|
78489
|
+
async function $do109(client, request, options) {
|
|
77779
78490
|
const parsed = safeParse4(request, (value) => DeleteUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77780
78491
|
if (!parsed.ok) {
|
|
77781
78492
|
return [parsed, { status: "invalid" }];
|
|
@@ -77876,9 +78587,9 @@ var init_userDataDelete2 = __esm(() => {
|
|
|
77876
78587
|
|
|
77877
78588
|
// src/funcs/userDataDeleteProjectUserData.ts
|
|
77878
78589
|
function userDataDeleteProjectUserData(client, request, options) {
|
|
77879
|
-
return new APIPromise($
|
|
78590
|
+
return new APIPromise($do110(client, request, options));
|
|
77880
78591
|
}
|
|
77881
|
-
async function $
|
|
78592
|
+
async function $do110(client, request, options) {
|
|
77882
78593
|
const parsed = safeParse4(request, (value) => DeleteProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77883
78594
|
if (!parsed.ok) {
|
|
77884
78595
|
return [parsed, { status: "invalid" }];
|
|
@@ -77986,9 +78697,9 @@ Allow you remove User Data in a project.
|
|
|
77986
78697
|
|
|
77987
78698
|
// src/funcs/userDataGetProjectUserData.ts
|
|
77988
78699
|
function userDataGetProjectUserData(client, request, options) {
|
|
77989
|
-
return new APIPromise($
|
|
78700
|
+
return new APIPromise($do111(client, request, options));
|
|
77990
78701
|
}
|
|
77991
|
-
async function $
|
|
78702
|
+
async function $do111(client, request, options) {
|
|
77992
78703
|
const parsed = safeParse4(request, (value) => GetProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77993
78704
|
if (!parsed.ok) {
|
|
77994
78705
|
return [parsed, { status: "invalid" }];
|
|
@@ -78103,9 +78814,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78103
78814
|
|
|
78104
78815
|
// src/funcs/userDataGetProjectUsersData.ts
|
|
78105
78816
|
function userDataGetProjectUsersData(client, request, options) {
|
|
78106
|
-
return new APIPromise($
|
|
78817
|
+
return new APIPromise($do112(client, request, options));
|
|
78107
78818
|
}
|
|
78108
|
-
async function $
|
|
78819
|
+
async function $do112(client, request, options) {
|
|
78109
78820
|
const parsed = safeParse4(request, (value) => GetProjectUsersDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78110
78821
|
if (!parsed.ok) {
|
|
78111
78822
|
return [parsed, { status: "invalid" }];
|
|
@@ -78216,9 +78927,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78216
78927
|
|
|
78217
78928
|
// src/funcs/userDataList.ts
|
|
78218
78929
|
function userDataList(client, request, options) {
|
|
78219
|
-
return new APIPromise($
|
|
78930
|
+
return new APIPromise($do113(client, request, options));
|
|
78220
78931
|
}
|
|
78221
|
-
async function $
|
|
78932
|
+
async function $do113(client, request, options) {
|
|
78222
78933
|
const parsed = safeParse4(request, (value) => GetUsersDataRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78223
78934
|
if (!parsed.ok) {
|
|
78224
78935
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78361,9 +79072,9 @@ List all Users Data in the project. These scripts can be used to configure serve
|
|
|
78361
79072
|
|
|
78362
79073
|
// src/funcs/userDataRetrieve.ts
|
|
78363
79074
|
function userDataRetrieve(client, request, options) {
|
|
78364
|
-
return new APIPromise($
|
|
79075
|
+
return new APIPromise($do114(client, request, options));
|
|
78365
79076
|
}
|
|
78366
|
-
async function $
|
|
79077
|
+
async function $do114(client, request, options) {
|
|
78367
79078
|
const parsed = safeParse4(request, (value) => GetUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78368
79079
|
if (!parsed.ok) {
|
|
78369
79080
|
return [parsed, { status: "invalid" }];
|
|
@@ -78474,9 +79185,9 @@ Get User Data in the project. These scripts can be used to configure servers wit
|
|
|
78474
79185
|
|
|
78475
79186
|
// src/funcs/userDataUpdate.ts
|
|
78476
79187
|
function userDataUpdate(client, request, options) {
|
|
78477
|
-
return new APIPromise($
|
|
79188
|
+
return new APIPromise($do115(client, request, options));
|
|
78478
79189
|
}
|
|
78479
|
-
async function $
|
|
79190
|
+
async function $do115(client, request, options) {
|
|
78480
79191
|
const parsed = safeParse4(request, (value) => PatchUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78481
79192
|
if (!parsed.ok) {
|
|
78482
79193
|
return [parsed, { status: "invalid" }];
|
|
@@ -78584,9 +79295,9 @@ Allow you update User Data in a team.
|
|
|
78584
79295
|
|
|
78585
79296
|
// src/funcs/userDataUpdateForProject.ts
|
|
78586
79297
|
function userDataUpdateForProject(client, request, options) {
|
|
78587
|
-
return new APIPromise($
|
|
79298
|
+
return new APIPromise($do116(client, request, options));
|
|
78588
79299
|
}
|
|
78589
|
-
async function $
|
|
79300
|
+
async function $do116(client, request, options) {
|
|
78590
79301
|
const parsed = safeParse4(request, (value) => PutProjectUserDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78591
79302
|
if (!parsed.ok) {
|
|
78592
79303
|
return [parsed, { status: "invalid" }];
|
|
@@ -78698,9 +79409,9 @@ Allow you update User Data in a project.
|
|
|
78698
79409
|
|
|
78699
79410
|
// src/funcs/userProfileGet.ts
|
|
78700
79411
|
function userProfileGet(client, options) {
|
|
78701
|
-
return new APIPromise($
|
|
79412
|
+
return new APIPromise($do117(client, options));
|
|
78702
79413
|
}
|
|
78703
|
-
async function $
|
|
79414
|
+
async function $do117(client, options) {
|
|
78704
79415
|
const path = pathToFunc("/user/profile")();
|
|
78705
79416
|
const headers = new Headers(compactMap({
|
|
78706
79417
|
Accept: "application/vnd.api+json"
|
|
@@ -78786,9 +79497,9 @@ Retrieve the current user profile
|
|
|
78786
79497
|
|
|
78787
79498
|
// src/funcs/userProfileListTeams.ts
|
|
78788
79499
|
function userProfileListTeams(client, options) {
|
|
78789
|
-
return new APIPromise($
|
|
79500
|
+
return new APIPromise($do118(client, options));
|
|
78790
79501
|
}
|
|
78791
|
-
async function $
|
|
79502
|
+
async function $do118(client, options) {
|
|
78792
79503
|
const path = pathToFunc("/user/teams")();
|
|
78793
79504
|
const headers = new Headers(compactMap({
|
|
78794
79505
|
Accept: "application/vnd.api+json"
|
|
@@ -78874,9 +79585,9 @@ Returns a list of all teams the user belongs to
|
|
|
78874
79585
|
|
|
78875
79586
|
// src/funcs/userProfileUpdate.ts
|
|
78876
79587
|
function userProfileUpdate(client, request, options) {
|
|
78877
|
-
return new APIPromise($
|
|
79588
|
+
return new APIPromise($do119(client, request, options));
|
|
78878
79589
|
}
|
|
78879
|
-
async function $
|
|
79590
|
+
async function $do119(client, request, options) {
|
|
78880
79591
|
const parsed = safeParse4(request, (value) => PatchUserProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78881
79592
|
if (!parsed.ok) {
|
|
78882
79593
|
return [parsed, { status: "invalid" }];
|
|
@@ -78981,18 +79692,18 @@ Update the current user profile
|
|
|
78981
79692
|
};
|
|
78982
79693
|
});
|
|
78983
79694
|
|
|
78984
|
-
// src/funcs/
|
|
78985
|
-
function
|
|
78986
|
-
return new APIPromise($
|
|
79695
|
+
// src/funcs/virtualMachineBackupsCreate.ts
|
|
79696
|
+
function virtualMachineBackupsCreate(client, request, options) {
|
|
79697
|
+
return new APIPromise($do120(client, request, options));
|
|
78987
79698
|
}
|
|
78988
|
-
async function $
|
|
78989
|
-
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");
|
|
78990
79701
|
if (!parsed.ok) {
|
|
78991
79702
|
return [parsed, { status: "invalid" }];
|
|
78992
79703
|
}
|
|
78993
79704
|
const payload = parsed.value;
|
|
78994
79705
|
const body = encodeJSON("body", payload, { explode: true });
|
|
78995
|
-
const path = pathToFunc("/
|
|
79706
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
78996
79707
|
const headers = new Headers(compactMap({
|
|
78997
79708
|
"Content-Type": "application/json",
|
|
78998
79709
|
Accept: "application/vnd.api+json"
|
|
@@ -79003,7 +79714,7 @@ async function $do119(client, request, options) {
|
|
|
79003
79714
|
const context = {
|
|
79004
79715
|
options: client._options,
|
|
79005
79716
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79006
|
-
operationID: "create-virtual-machine",
|
|
79717
|
+
operationID: "create-virtual-machine-backup-top-level",
|
|
79007
79718
|
oAuth2Scopes: null,
|
|
79008
79719
|
resolvedSecurity: requestSecurity,
|
|
79009
79720
|
securitySource: client._options.bearer,
|
|
@@ -79034,15 +79745,20 @@ async function $do119(client, request, options) {
|
|
|
79034
79745
|
return [doResult, { status: "request-error", request: req }];
|
|
79035
79746
|
}
|
|
79036
79747
|
const response = doResult.value;
|
|
79037
|
-
const
|
|
79748
|
+
const responseFields = {
|
|
79749
|
+
HttpMeta: { Response: response, Request: req }
|
|
79750
|
+
};
|
|
79751
|
+
const [result] = await match(json(201, VirtualMachineBackup$inboundSchema, {
|
|
79038
79752
|
ctype: "application/vnd.api+json"
|
|
79039
|
-
}),
|
|
79753
|
+
}), jsonErr(403, ErrorObject$inboundSchema, {
|
|
79754
|
+
ctype: "application/vnd.api+json"
|
|
79755
|
+
}), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
79040
79756
|
if (!result.ok) {
|
|
79041
79757
|
return [result, { status: "complete", request: req, response }];
|
|
79042
79758
|
}
|
|
79043
79759
|
return [result, { status: "complete", request: req, response }];
|
|
79044
79760
|
}
|
|
79045
|
-
var
|
|
79761
|
+
var init_virtualMachineBackupsCreate = __esm(() => {
|
|
79046
79762
|
init_encodings();
|
|
79047
79763
|
init_http();
|
|
79048
79764
|
init_matchers();
|
|
@@ -79050,28 +79766,29 @@ var init_virtualMachinesCreate = __esm(() => {
|
|
|
79050
79766
|
init_schemas4();
|
|
79051
79767
|
init_security();
|
|
79052
79768
|
init_url();
|
|
79769
|
+
init_errors4();
|
|
79053
79770
|
init_models();
|
|
79054
79771
|
init_async();
|
|
79055
79772
|
});
|
|
79056
79773
|
|
|
79057
|
-
// src/mcp-server/tools/
|
|
79058
|
-
var args112, tool$
|
|
79059
|
-
var
|
|
79060
|
-
|
|
79774
|
+
// src/mcp-server/tools/virtualMachineBackupsCreate.ts
|
|
79775
|
+
var args112, tool$virtualMachineBackupsCreate;
|
|
79776
|
+
var init_virtualMachineBackupsCreate2 = __esm(() => {
|
|
79777
|
+
init_virtualMachineBackupsCreate();
|
|
79061
79778
|
init_models();
|
|
79062
79779
|
init_tools();
|
|
79063
79780
|
args112 = {
|
|
79064
|
-
request:
|
|
79781
|
+
request: VirtualMachineBackupPayload$inboundSchema
|
|
79065
79782
|
};
|
|
79066
|
-
tool$
|
|
79067
|
-
name: "virtual-
|
|
79068
|
-
description: `Create VM
|
|
79783
|
+
tool$virtualMachineBackupsCreate = {
|
|
79784
|
+
name: "virtual-machine-backups-create",
|
|
79785
|
+
description: `Create VM backup (top-level)
|
|
79069
79786
|
|
|
79070
|
-
|
|
79787
|
+
Triggers a backup of the Virtual Machine referenced in the body.
|
|
79071
79788
|
`,
|
|
79072
79789
|
args: args112,
|
|
79073
79790
|
tool: async (client, args113, ctx) => {
|
|
79074
|
-
const [result, apiCall] = await
|
|
79791
|
+
const [result, apiCall] = await virtualMachineBackupsCreate(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79075
79792
|
if (!result.ok) {
|
|
79076
79793
|
return {
|
|
79077
79794
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79084,24 +79801,23 @@ Creates a new Virtual Machine.
|
|
|
79084
79801
|
};
|
|
79085
79802
|
});
|
|
79086
79803
|
|
|
79087
|
-
// src/funcs/
|
|
79088
|
-
function
|
|
79089
|
-
return new APIPromise($
|
|
79804
|
+
// src/funcs/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79805
|
+
function virtualMachineBackupsCreateForVirtualMachine(client, request, options) {
|
|
79806
|
+
return new APIPromise($do121(client, request, options));
|
|
79090
79807
|
}
|
|
79091
|
-
async function $
|
|
79092
|
-
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");
|
|
79093
79810
|
if (!parsed.ok) {
|
|
79094
79811
|
return [parsed, { status: "invalid" }];
|
|
79095
79812
|
}
|
|
79096
79813
|
const payload = parsed.value;
|
|
79097
|
-
const body =
|
|
79814
|
+
const body = null;
|
|
79098
79815
|
const pathParams = {
|
|
79099
79816
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79100
79817
|
};
|
|
79101
|
-
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/
|
|
79818
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/backups")(pathParams);
|
|
79102
79819
|
const headers = new Headers(compactMap({
|
|
79103
|
-
|
|
79104
|
-
Accept: "*/*"
|
|
79820
|
+
Accept: "application/vnd.api+json"
|
|
79105
79821
|
}));
|
|
79106
79822
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79107
79823
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79109,7 +79825,7 @@ async function $do120(client, request, options) {
|
|
|
79109
79825
|
const context = {
|
|
79110
79826
|
options: client._options,
|
|
79111
79827
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79112
|
-
operationID: "create-virtual-machine-
|
|
79828
|
+
operationID: "create-virtual-machine-backup",
|
|
79113
79829
|
oAuth2Scopes: null,
|
|
79114
79830
|
resolvedSecurity: requestSecurity,
|
|
79115
79831
|
securitySource: client._options.bearer,
|
|
@@ -79140,14 +79856,20 @@ async function $do120(client, request, options) {
|
|
|
79140
79856
|
return [doResult, { status: "request-error", request: req }];
|
|
79141
79857
|
}
|
|
79142
79858
|
const response = doResult.value;
|
|
79143
|
-
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 });
|
|
79144
79867
|
if (!result.ok) {
|
|
79145
79868
|
return [result, { status: "complete", request: req, response }];
|
|
79146
79869
|
}
|
|
79147
79870
|
return [result, { status: "complete", request: req, response }];
|
|
79148
79871
|
}
|
|
79149
|
-
var
|
|
79150
|
-
init_v3();
|
|
79872
|
+
var init_virtualMachineBackupsCreateForVirtualMachine = __esm(() => {
|
|
79151
79873
|
init_encodings();
|
|
79152
79874
|
init_http();
|
|
79153
79875
|
init_matchers();
|
|
@@ -79155,59 +79877,61 @@ var init_virtualMachinesCreateVirtualMachineAction = __esm(() => {
|
|
|
79155
79877
|
init_schemas4();
|
|
79156
79878
|
init_security();
|
|
79157
79879
|
init_url();
|
|
79880
|
+
init_errors4();
|
|
79881
|
+
init_models();
|
|
79158
79882
|
init_operations();
|
|
79159
79883
|
init_async();
|
|
79160
79884
|
});
|
|
79161
79885
|
|
|
79162
|
-
// src/mcp-server/tools/
|
|
79163
|
-
var args113, tool$
|
|
79164
|
-
var
|
|
79165
|
-
|
|
79886
|
+
// src/mcp-server/tools/virtualMachineBackupsCreateForVirtualMachine.ts
|
|
79887
|
+
var args113, tool$virtualMachineBackupsCreateForVirtualMachine;
|
|
79888
|
+
var init_virtualMachineBackupsCreateForVirtualMachine2 = __esm(() => {
|
|
79889
|
+
init_virtualMachineBackupsCreateForVirtualMachine();
|
|
79166
79890
|
init_operations();
|
|
79167
79891
|
init_tools();
|
|
79168
79892
|
args113 = {
|
|
79169
|
-
request:
|
|
79893
|
+
request: CreateVirtualMachineBackupRequest$inboundSchema
|
|
79170
79894
|
};
|
|
79171
|
-
tool$
|
|
79172
|
-
name: "virtual-
|
|
79173
|
-
description: `
|
|
79895
|
+
tool$virtualMachineBackupsCreateForVirtualMachine = {
|
|
79896
|
+
name: "virtual-machine-backups-create-for-virtual-machine",
|
|
79897
|
+
description: `Create VM backup
|
|
79174
79898
|
|
|
79175
|
-
|
|
79176
|
-
- \`power_on\` - Starts the virtual machine
|
|
79177
|
-
- \`power_off\` - Stops the virtual machine
|
|
79178
|
-
- \`reboot\` - Restarts the virtual machine
|
|
79899
|
+
Triggers a backup of the given Virtual Machine.
|
|
79179
79900
|
`,
|
|
79180
79901
|
args: args113,
|
|
79181
79902
|
tool: async (client, args114, ctx) => {
|
|
79182
|
-
const [result, apiCall] = await
|
|
79903
|
+
const [result, apiCall] = await virtualMachineBackupsCreateForVirtualMachine(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79183
79904
|
if (!result.ok) {
|
|
79184
79905
|
return {
|
|
79185
79906
|
content: [{ type: "text", text: result.error.message }],
|
|
79186
79907
|
isError: true
|
|
79187
79908
|
};
|
|
79188
79909
|
}
|
|
79189
|
-
|
|
79910
|
+
const value = result.value;
|
|
79911
|
+
return formatResult(value, apiCall);
|
|
79190
79912
|
}
|
|
79191
79913
|
};
|
|
79192
79914
|
});
|
|
79193
79915
|
|
|
79194
|
-
// src/funcs/
|
|
79195
|
-
function
|
|
79196
|
-
return new APIPromise($
|
|
79916
|
+
// src/funcs/virtualMachineBackupsDelete.ts
|
|
79917
|
+
function virtualMachineBackupsDelete(client, request, options) {
|
|
79918
|
+
return new APIPromise($do122(client, request, options));
|
|
79197
79919
|
}
|
|
79198
|
-
async function $
|
|
79199
|
-
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");
|
|
79200
79922
|
if (!parsed.ok) {
|
|
79201
79923
|
return [parsed, { status: "invalid" }];
|
|
79202
79924
|
}
|
|
79203
79925
|
const payload = parsed.value;
|
|
79204
|
-
const body =
|
|
79926
|
+
const body = null;
|
|
79205
79927
|
const pathParams = {
|
|
79206
|
-
|
|
79928
|
+
id: encodeSimple("id", payload.id, {
|
|
79929
|
+
explode: false,
|
|
79930
|
+
charEncoding: "percent"
|
|
79931
|
+
})
|
|
79207
79932
|
};
|
|
79208
|
-
const path = pathToFunc("/
|
|
79933
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79209
79934
|
const headers = new Headers(compactMap({
|
|
79210
|
-
"Content-Type": "application/json",
|
|
79211
79935
|
Accept: "application/vnd.api+json"
|
|
79212
79936
|
}));
|
|
79213
79937
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
@@ -79216,7 +79940,7 @@ async function $do121(client, request, options) {
|
|
|
79216
79940
|
const context = {
|
|
79217
79941
|
options: client._options,
|
|
79218
79942
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79219
|
-
operationID: "
|
|
79943
|
+
operationID: "delete-virtual-machine-backup",
|
|
79220
79944
|
oAuth2Scopes: null,
|
|
79221
79945
|
resolvedSecurity: requestSecurity,
|
|
79222
79946
|
securitySource: client._options.bearer,
|
|
@@ -79225,7 +79949,7 @@ async function $do121(client, request, options) {
|
|
|
79225
79949
|
};
|
|
79226
79950
|
const requestRes = client._createRequest(context, {
|
|
79227
79951
|
security: requestSecurity,
|
|
79228
|
-
method: "
|
|
79952
|
+
method: "DELETE",
|
|
79229
79953
|
baseURL: options?.serverURL,
|
|
79230
79954
|
path,
|
|
79231
79955
|
headers,
|
|
@@ -79247,13 +79971,20 @@ async function $do121(client, request, options) {
|
|
|
79247
79971
|
return [doResult, { status: "request-error", request: req }];
|
|
79248
79972
|
}
|
|
79249
79973
|
const response = doResult.value;
|
|
79250
|
-
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 });
|
|
79251
79982
|
if (!result.ok) {
|
|
79252
79983
|
return [result, { status: "complete", request: req, response }];
|
|
79253
79984
|
}
|
|
79254
79985
|
return [result, { status: "complete", request: req, response }];
|
|
79255
79986
|
}
|
|
79256
|
-
var
|
|
79987
|
+
var init_virtualMachineBackupsDelete = __esm(() => {
|
|
79257
79988
|
init_encodings();
|
|
79258
79989
|
init_http();
|
|
79259
79990
|
init_matchers();
|
|
@@ -79261,28 +79992,30 @@ var init_virtualMachinesCreateVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79261
79992
|
init_schemas4();
|
|
79262
79993
|
init_security();
|
|
79263
79994
|
init_url();
|
|
79995
|
+
init_errors4();
|
|
79996
|
+
init_models();
|
|
79264
79997
|
init_operations();
|
|
79265
79998
|
init_async();
|
|
79266
79999
|
});
|
|
79267
80000
|
|
|
79268
|
-
// src/mcp-server/tools/
|
|
79269
|
-
var args114, tool$
|
|
79270
|
-
var
|
|
79271
|
-
|
|
80001
|
+
// src/mcp-server/tools/virtualMachineBackupsDelete.ts
|
|
80002
|
+
var args114, tool$virtualMachineBackupsDelete;
|
|
80003
|
+
var init_virtualMachineBackupsDelete2 = __esm(() => {
|
|
80004
|
+
init_virtualMachineBackupsDelete();
|
|
79272
80005
|
init_operations();
|
|
79273
80006
|
init_tools();
|
|
79274
80007
|
args114 = {
|
|
79275
|
-
request:
|
|
80008
|
+
request: DeleteVirtualMachineBackupRequest$inboundSchema
|
|
79276
80009
|
};
|
|
79277
|
-
tool$
|
|
79278
|
-
name: "virtual-
|
|
79279
|
-
description: `
|
|
80010
|
+
tool$virtualMachineBackupsDelete = {
|
|
80011
|
+
name: "virtual-machine-backups-delete",
|
|
80012
|
+
description: `Delete VM backup
|
|
79280
80013
|
|
|
79281
|
-
|
|
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.
|
|
79282
80015
|
`,
|
|
79283
80016
|
args: args114,
|
|
79284
80017
|
tool: async (client, args115, ctx) => {
|
|
79285
|
-
const [result, apiCall] = await
|
|
80018
|
+
const [result, apiCall] = await virtualMachineBackupsDelete(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79286
80019
|
if (!result.ok) {
|
|
79287
80020
|
return {
|
|
79288
80021
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79295,23 +80028,26 @@ Attaches a virtual network (VLAN) to a Virtual Machine. Work runs asynchronously
|
|
|
79295
80028
|
};
|
|
79296
80029
|
});
|
|
79297
80030
|
|
|
79298
|
-
// src/funcs/
|
|
79299
|
-
function
|
|
79300
|
-
return new APIPromise($
|
|
80031
|
+
// src/funcs/virtualMachineBackupsGet.ts
|
|
80032
|
+
function virtualMachineBackupsGet(client, request, options) {
|
|
80033
|
+
return new APIPromise($do123(client, request, options));
|
|
79301
80034
|
}
|
|
79302
|
-
async function $
|
|
79303
|
-
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");
|
|
79304
80037
|
if (!parsed.ok) {
|
|
79305
80038
|
return [parsed, { status: "invalid" }];
|
|
79306
80039
|
}
|
|
79307
80040
|
const payload = parsed.value;
|
|
79308
80041
|
const body = null;
|
|
79309
80042
|
const pathParams = {
|
|
79310
|
-
|
|
80043
|
+
id: encodeSimple("id", payload.id, {
|
|
80044
|
+
explode: false,
|
|
80045
|
+
charEncoding: "percent"
|
|
80046
|
+
})
|
|
79311
80047
|
};
|
|
79312
|
-
const path = pathToFunc("/
|
|
80048
|
+
const path = pathToFunc("/virtual_machine_backups/{id}")(pathParams);
|
|
79313
80049
|
const headers = new Headers(compactMap({
|
|
79314
|
-
Accept: "
|
|
80050
|
+
Accept: "application/vnd.api+json"
|
|
79315
80051
|
}));
|
|
79316
80052
|
const secConfig = await extractSecurity(client._options.bearer);
|
|
79317
80053
|
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
@@ -79319,7 +80055,7 @@ async function $do122(client, request, options) {
|
|
|
79319
80055
|
const context = {
|
|
79320
80056
|
options: client._options,
|
|
79321
80057
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79322
|
-
operationID: "
|
|
80058
|
+
operationID: "get-virtual-machine-backup",
|
|
79323
80059
|
oAuth2Scopes: null,
|
|
79324
80060
|
resolvedSecurity: requestSecurity,
|
|
79325
80061
|
securitySource: client._options.bearer,
|
|
@@ -79328,7 +80064,7 @@ async function $do122(client, request, options) {
|
|
|
79328
80064
|
};
|
|
79329
80065
|
const requestRes = client._createRequest(context, {
|
|
79330
80066
|
security: requestSecurity,
|
|
79331
|
-
method: "
|
|
80067
|
+
method: "GET",
|
|
79332
80068
|
baseURL: options?.serverURL,
|
|
79333
80069
|
path,
|
|
79334
80070
|
headers,
|
|
@@ -79350,14 +80086,20 @@ async function $do122(client, request, options) {
|
|
|
79350
80086
|
return [doResult, { status: "request-error", request: req }];
|
|
79351
80087
|
}
|
|
79352
80088
|
const response = doResult.value;
|
|
79353
|
-
const
|
|
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 });
|
|
79354
80097
|
if (!result.ok) {
|
|
79355
80098
|
return [result, { status: "complete", request: req, response }];
|
|
79356
80099
|
}
|
|
79357
80100
|
return [result, { status: "complete", request: req, response }];
|
|
79358
80101
|
}
|
|
79359
|
-
var
|
|
79360
|
-
init_v3();
|
|
80102
|
+
var init_virtualMachineBackupsGet = __esm(() => {
|
|
79361
80103
|
init_encodings();
|
|
79362
80104
|
init_http();
|
|
79363
80105
|
init_matchers();
|
|
@@ -79365,58 +80107,45 @@ var init_virtualMachinesDelete = __esm(() => {
|
|
|
79365
80107
|
init_schemas4();
|
|
79366
80108
|
init_security();
|
|
79367
80109
|
init_url();
|
|
80110
|
+
init_errors4();
|
|
80111
|
+
init_models();
|
|
79368
80112
|
init_operations();
|
|
79369
80113
|
init_async();
|
|
79370
80114
|
});
|
|
79371
80115
|
|
|
79372
|
-
// src/mcp-server/tools/
|
|
79373
|
-
var args115, tool$
|
|
79374
|
-
var
|
|
79375
|
-
|
|
80116
|
+
// src/mcp-server/tools/virtualMachineBackupsGet.ts
|
|
80117
|
+
var args115, tool$virtualMachineBackupsGet;
|
|
80118
|
+
var init_virtualMachineBackupsGet2 = __esm(() => {
|
|
80119
|
+
init_virtualMachineBackupsGet();
|
|
79376
80120
|
init_operations();
|
|
79377
80121
|
init_tools();
|
|
79378
80122
|
args115 = {
|
|
79379
|
-
request:
|
|
80123
|
+
request: GetVirtualMachineBackupRequest$inboundSchema
|
|
79380
80124
|
};
|
|
79381
|
-
tool$
|
|
79382
|
-
name: "virtual-
|
|
79383
|
-
description: `
|
|
79384
|
-
|
|
79385
|
-
Destroys a Virtual Machine.
|
|
79386
|
-
`,
|
|
80125
|
+
tool$virtualMachineBackupsGet = {
|
|
80126
|
+
name: "virtual-machine-backups-get",
|
|
80127
|
+
description: `Get VM backup`,
|
|
79387
80128
|
args: args115,
|
|
79388
80129
|
tool: async (client, args116, ctx) => {
|
|
79389
|
-
const [result, apiCall] = await
|
|
80130
|
+
const [result, apiCall] = await virtualMachineBackupsGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79390
80131
|
if (!result.ok) {
|
|
79391
80132
|
return {
|
|
79392
80133
|
content: [{ type: "text", text: result.error.message }],
|
|
79393
80134
|
isError: true
|
|
79394
80135
|
};
|
|
79395
80136
|
}
|
|
79396
|
-
|
|
80137
|
+
const value = result.value;
|
|
80138
|
+
return formatResult(value, apiCall);
|
|
79397
80139
|
}
|
|
79398
80140
|
};
|
|
79399
80141
|
});
|
|
79400
80142
|
|
|
79401
|
-
// src/funcs/
|
|
79402
|
-
function
|
|
79403
|
-
return new APIPromise($
|
|
80143
|
+
// src/funcs/virtualMachineBackupsList.ts
|
|
80144
|
+
function virtualMachineBackupsList(client, options) {
|
|
80145
|
+
return new APIPromise($do124(client, options));
|
|
79404
80146
|
}
|
|
79405
|
-
async function $
|
|
79406
|
-
const
|
|
79407
|
-
if (!parsed.ok) {
|
|
79408
|
-
return [parsed, { status: "invalid" }];
|
|
79409
|
-
}
|
|
79410
|
-
const payload = parsed.value;
|
|
79411
|
-
const body = null;
|
|
79412
|
-
const pathParams = {
|
|
79413
|
-
id: encodeSimple("id", payload.id, {
|
|
79414
|
-
explode: false,
|
|
79415
|
-
charEncoding: "percent"
|
|
79416
|
-
}),
|
|
79417
|
-
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79418
|
-
};
|
|
79419
|
-
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments/{id}")(pathParams);
|
|
80147
|
+
async function $do124(client, options) {
|
|
80148
|
+
const path = pathToFunc("/virtual_machine_backups")();
|
|
79420
80149
|
const headers = new Headers(compactMap({
|
|
79421
80150
|
Accept: "application/vnd.api+json"
|
|
79422
80151
|
}));
|
|
@@ -79426,7 +80155,7 @@ async function $do123(client, request, options) {
|
|
|
79426
80155
|
const context = {
|
|
79427
80156
|
options: client._options,
|
|
79428
80157
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
79429
|
-
operationID: "
|
|
80158
|
+
operationID: "list-virtual-machine-backups",
|
|
79430
80159
|
oAuth2Scopes: null,
|
|
79431
80160
|
resolvedSecurity: requestSecurity,
|
|
79432
80161
|
securitySource: client._options.bearer,
|
|
@@ -79435,7 +80164,1308 @@ async function $do123(client, request, options) {
|
|
|
79435
80164
|
};
|
|
79436
80165
|
const requestRes = client._createRequest(context, {
|
|
79437
80166
|
security: requestSecurity,
|
|
79438
|
-
method: "
|
|
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) {
|
|
81385
|
+
return [result, { status: "complete", request: req, response }];
|
|
81386
|
+
}
|
|
81387
|
+
return [result, { status: "complete", request: req, response }];
|
|
81388
|
+
}
|
|
81389
|
+
var init_virtualMachinesDelete = __esm(() => {
|
|
81390
|
+
init_v3();
|
|
81391
|
+
init_encodings();
|
|
81392
|
+
init_http();
|
|
81393
|
+
init_matchers();
|
|
81394
|
+
init_primitives();
|
|
81395
|
+
init_schemas4();
|
|
81396
|
+
init_security();
|
|
81397
|
+
init_url();
|
|
81398
|
+
init_operations();
|
|
81399
|
+
init_async();
|
|
81400
|
+
});
|
|
81401
|
+
|
|
81402
|
+
// src/mcp-server/tools/virtualMachinesDelete.ts
|
|
81403
|
+
var args125, tool$virtualMachinesDelete;
|
|
81404
|
+
var init_virtualMachinesDelete2 = __esm(() => {
|
|
81405
|
+
init_virtualMachinesDelete();
|
|
81406
|
+
init_operations();
|
|
81407
|
+
init_tools();
|
|
81408
|
+
args125 = {
|
|
81409
|
+
request: DestroyVirtualMachineRequest$inboundSchema
|
|
81410
|
+
};
|
|
81411
|
+
tool$virtualMachinesDelete = {
|
|
81412
|
+
name: "virtual-machines-delete",
|
|
81413
|
+
description: `Destroy VM
|
|
81414
|
+
|
|
81415
|
+
Destroys a Virtual Machine.
|
|
81416
|
+
`,
|
|
81417
|
+
args: args125,
|
|
81418
|
+
tool: async (client, args126, ctx) => {
|
|
81419
|
+
const [result, apiCall] = await virtualMachinesDelete(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81420
|
+
if (!result.ok) {
|
|
81421
|
+
return {
|
|
81422
|
+
content: [{ type: "text", text: result.error.message }],
|
|
81423
|
+
isError: true
|
|
81424
|
+
};
|
|
81425
|
+
}
|
|
81426
|
+
return formatResult(undefined, apiCall);
|
|
81427
|
+
}
|
|
81428
|
+
};
|
|
81429
|
+
});
|
|
81430
|
+
|
|
81431
|
+
// src/funcs/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
81432
|
+
function virtualMachinesDestroyVirtualMachineNetworkAttachment(client, request, options) {
|
|
81433
|
+
return new APIPromise($do136(client, request, options));
|
|
81434
|
+
}
|
|
81435
|
+
async function $do136(client, request, options) {
|
|
81436
|
+
const parsed = safeParse4(request, (value) => DestroyVirtualMachineNetworkAttachmentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
81437
|
+
if (!parsed.ok) {
|
|
81438
|
+
return [parsed, { status: "invalid" }];
|
|
81439
|
+
}
|
|
81440
|
+
const payload = parsed.value;
|
|
81441
|
+
const body = null;
|
|
81442
|
+
const pathParams = {
|
|
81443
|
+
id: encodeSimple("id", payload.id, {
|
|
81444
|
+
explode: false,
|
|
81445
|
+
charEncoding: "percent"
|
|
81446
|
+
}),
|
|
81447
|
+
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
81448
|
+
};
|
|
81449
|
+
const path = pathToFunc("/virtual_machines/{virtual_machine_id}/network_attachments/{id}")(pathParams);
|
|
81450
|
+
const headers = new Headers(compactMap({
|
|
81451
|
+
Accept: "application/vnd.api+json"
|
|
81452
|
+
}));
|
|
81453
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
81454
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
81455
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81456
|
+
const context = {
|
|
81457
|
+
options: client._options,
|
|
81458
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81459
|
+
operationID: "destroy-virtual-machine-network-attachment",
|
|
81460
|
+
oAuth2Scopes: null,
|
|
81461
|
+
resolvedSecurity: requestSecurity,
|
|
81462
|
+
securitySource: client._options.bearer,
|
|
81463
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
81464
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
81465
|
+
};
|
|
81466
|
+
const requestRes = client._createRequest(context, {
|
|
81467
|
+
security: requestSecurity,
|
|
81468
|
+
method: "DELETE",
|
|
79439
81469
|
baseURL: options?.serverURL,
|
|
79440
81470
|
path,
|
|
79441
81471
|
headers,
|
|
@@ -79476,12 +81506,12 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment = __esm(() => {
|
|
|
79476
81506
|
});
|
|
79477
81507
|
|
|
79478
81508
|
// src/mcp-server/tools/virtualMachinesDestroyVirtualMachineNetworkAttachment.ts
|
|
79479
|
-
var
|
|
81509
|
+
var args126, tool$virtualMachinesDestroyVirtualMachineNetworkAttachment;
|
|
79480
81510
|
var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
79481
81511
|
init_virtualMachinesDestroyVirtualMachineNetworkAttachment();
|
|
79482
81512
|
init_operations();
|
|
79483
81513
|
init_tools();
|
|
79484
|
-
|
|
81514
|
+
args126 = {
|
|
79485
81515
|
request: DestroyVirtualMachineNetworkAttachmentRequest$inboundSchema
|
|
79486
81516
|
};
|
|
79487
81517
|
tool$virtualMachinesDestroyVirtualMachineNetworkAttachment = {
|
|
@@ -79490,9 +81520,9 @@ var init_virtualMachinesDestroyVirtualMachineNetworkAttachment2 = __esm(() => {
|
|
|
79490
81520
|
|
|
79491
81521
|
Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronously and returns 202 Accepted.
|
|
79492
81522
|
`,
|
|
79493
|
-
args:
|
|
79494
|
-
tool: async (client,
|
|
79495
|
-
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();
|
|
79496
81526
|
if (!result.ok) {
|
|
79497
81527
|
return {
|
|
79498
81528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79507,9 +81537,9 @@ Detaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronous
|
|
|
79507
81537
|
|
|
79508
81538
|
// src/funcs/virtualMachinesGet.ts
|
|
79509
81539
|
function virtualMachinesGet(client, request, options) {
|
|
79510
|
-
return new APIPromise($
|
|
81540
|
+
return new APIPromise($do137(client, request, options));
|
|
79511
81541
|
}
|
|
79512
|
-
async function $
|
|
81542
|
+
async function $do137(client, request, options) {
|
|
79513
81543
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79514
81544
|
if (!parsed.ok) {
|
|
79515
81545
|
return [parsed, { status: "invalid" }];
|
|
@@ -79520,6 +81550,9 @@ async function $do124(client, request, options) {
|
|
|
79520
81550
|
virtual_machine_id: encodeSimple("virtual_machine_id", payload.virtual_machine_id, { explode: false, charEncoding: "percent" })
|
|
79521
81551
|
};
|
|
79522
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
|
+
});
|
|
79523
81556
|
const headers = new Headers(compactMap({
|
|
79524
81557
|
Accept: "application/vnd.api+json"
|
|
79525
81558
|
}));
|
|
@@ -79542,6 +81575,7 @@ async function $do124(client, request, options) {
|
|
|
79542
81575
|
baseURL: options?.serverURL,
|
|
79543
81576
|
path,
|
|
79544
81577
|
headers,
|
|
81578
|
+
query,
|
|
79545
81579
|
body,
|
|
79546
81580
|
userAgent: client._options.userAgent,
|
|
79547
81581
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -79582,12 +81616,12 @@ var init_virtualMachinesGet = __esm(() => {
|
|
|
79582
81616
|
});
|
|
79583
81617
|
|
|
79584
81618
|
// src/mcp-server/tools/virtualMachinesGet.ts
|
|
79585
|
-
var
|
|
81619
|
+
var args127, tool$virtualMachinesGet;
|
|
79586
81620
|
var init_virtualMachinesGet2 = __esm(() => {
|
|
79587
81621
|
init_virtualMachinesGet();
|
|
79588
81622
|
init_operations();
|
|
79589
81623
|
init_tools();
|
|
79590
|
-
|
|
81624
|
+
args127 = {
|
|
79591
81625
|
request: ShowVirtualMachineRequest$inboundSchema
|
|
79592
81626
|
};
|
|
79593
81627
|
tool$virtualMachinesGet = {
|
|
@@ -79596,9 +81630,9 @@ var init_virtualMachinesGet2 = __esm(() => {
|
|
|
79596
81630
|
|
|
79597
81631
|
Show a Virtual Machine.
|
|
79598
81632
|
`,
|
|
79599
|
-
args:
|
|
79600
|
-
tool: async (client,
|
|
79601
|
-
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();
|
|
79602
81636
|
if (!result.ok) {
|
|
79603
81637
|
return {
|
|
79604
81638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79613,9 +81647,9 @@ Show a Virtual Machine.
|
|
|
79613
81647
|
|
|
79614
81648
|
// src/funcs/virtualMachinesList.ts
|
|
79615
81649
|
function virtualMachinesList(client, request, options) {
|
|
79616
|
-
return new APIPromise($
|
|
81650
|
+
return new APIPromise($do138(client, request, options));
|
|
79617
81651
|
}
|
|
79618
|
-
async function $
|
|
81652
|
+
async function $do138(client, request, options) {
|
|
79619
81653
|
const parsed = safeParse4(request, (value) => IndexVirtualMachineRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79620
81654
|
if (!parsed.ok) {
|
|
79621
81655
|
return [parsed, { status: "invalid" }];
|
|
@@ -79691,12 +81725,12 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
79691
81725
|
});
|
|
79692
81726
|
|
|
79693
81727
|
// src/mcp-server/tools/virtualMachinesList.ts
|
|
79694
|
-
var
|
|
81728
|
+
var args128, tool$virtualMachinesList;
|
|
79695
81729
|
var init_virtualMachinesList2 = __esm(() => {
|
|
79696
81730
|
init_virtualMachinesList();
|
|
79697
81731
|
init_operations();
|
|
79698
81732
|
init_tools();
|
|
79699
|
-
|
|
81733
|
+
args128 = {
|
|
79700
81734
|
request: IndexVirtualMachineRequest$inboundSchema.optional()
|
|
79701
81735
|
};
|
|
79702
81736
|
tool$virtualMachinesList = {
|
|
@@ -79705,9 +81739,9 @@ var init_virtualMachinesList2 = __esm(() => {
|
|
|
79705
81739
|
|
|
79706
81740
|
Show all Team's Virtual Machines.
|
|
79707
81741
|
`,
|
|
79708
|
-
args:
|
|
79709
|
-
tool: async (client,
|
|
79710
|
-
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();
|
|
79711
81745
|
if (!result.ok) {
|
|
79712
81746
|
return {
|
|
79713
81747
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79722,9 +81756,9 @@ Show all Team's Virtual Machines.
|
|
|
79722
81756
|
|
|
79723
81757
|
// src/funcs/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79724
81758
|
function virtualMachinesListVirtualMachineNetworkAttachments(client, request, options) {
|
|
79725
|
-
return new APIPromise($
|
|
81759
|
+
return new APIPromise($do139(client, request, options));
|
|
79726
81760
|
}
|
|
79727
|
-
async function $
|
|
81761
|
+
async function $do139(client, request, options) {
|
|
79728
81762
|
const parsed = safeParse4(request, (value) => ListVirtualMachineNetworkAttachmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79729
81763
|
if (!parsed.ok) {
|
|
79730
81764
|
return [parsed, { status: "invalid" }];
|
|
@@ -79797,12 +81831,12 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments = __esm(() => {
|
|
|
79797
81831
|
});
|
|
79798
81832
|
|
|
79799
81833
|
// src/mcp-server/tools/virtualMachinesListVirtualMachineNetworkAttachments.ts
|
|
79800
|
-
var
|
|
81834
|
+
var args129, tool$virtualMachinesListVirtualMachineNetworkAttachments;
|
|
79801
81835
|
var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
79802
81836
|
init_virtualMachinesListVirtualMachineNetworkAttachments();
|
|
79803
81837
|
init_operations();
|
|
79804
81838
|
init_tools();
|
|
79805
|
-
|
|
81839
|
+
args129 = {
|
|
79806
81840
|
request: ListVirtualMachineNetworkAttachmentsRequest$inboundSchema
|
|
79807
81841
|
};
|
|
79808
81842
|
tool$virtualMachinesListVirtualMachineNetworkAttachments = {
|
|
@@ -79811,9 +81845,9 @@ var init_virtualMachinesListVirtualMachineNetworkAttachments2 = __esm(() => {
|
|
|
79811
81845
|
|
|
79812
81846
|
Lists the secondary network attachments currently configured for a Virtual Machine.
|
|
79813
81847
|
`,
|
|
79814
|
-
args:
|
|
79815
|
-
tool: async (client,
|
|
79816
|
-
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();
|
|
79817
81851
|
if (!result.ok) {
|
|
79818
81852
|
return {
|
|
79819
81853
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79828,9 +81862,9 @@ Lists the secondary network attachments currently configured for a Virtual Machi
|
|
|
79828
81862
|
|
|
79829
81863
|
// src/funcs/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79830
81864
|
function virtualMachinesShowVirtualMachineMetrics(client, request, options) {
|
|
79831
|
-
return new APIPromise($
|
|
81865
|
+
return new APIPromise($do140(client, request, options));
|
|
79832
81866
|
}
|
|
79833
|
-
async function $
|
|
81867
|
+
async function $do140(client, request, options) {
|
|
79834
81868
|
const parsed = safeParse4(request, (value) => ShowVirtualMachineMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79835
81869
|
if (!parsed.ok) {
|
|
79836
81870
|
return [parsed, { status: "invalid" }];
|
|
@@ -79909,12 +81943,12 @@ var init_virtualMachinesShowVirtualMachineMetrics = __esm(() => {
|
|
|
79909
81943
|
});
|
|
79910
81944
|
|
|
79911
81945
|
// src/mcp-server/tools/virtualMachinesShowVirtualMachineMetrics.ts
|
|
79912
|
-
var
|
|
81946
|
+
var args130, tool$virtualMachinesShowVirtualMachineMetrics;
|
|
79913
81947
|
var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
79914
81948
|
init_virtualMachinesShowVirtualMachineMetrics();
|
|
79915
81949
|
init_operations();
|
|
79916
81950
|
init_tools();
|
|
79917
|
-
|
|
81951
|
+
args130 = {
|
|
79918
81952
|
request: ShowVirtualMachineMetricsRequest$inboundSchema
|
|
79919
81953
|
};
|
|
79920
81954
|
tool$virtualMachinesShowVirtualMachineMetrics = {
|
|
@@ -79922,9 +81956,9 @@ var init_virtualMachinesShowVirtualMachineMetrics2 = __esm(() => {
|
|
|
79922
81956
|
description: `Retrieve VM metrics
|
|
79923
81957
|
|
|
79924
81958
|
Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
79925
|
-
args:
|
|
79926
|
-
tool: async (client,
|
|
79927
|
-
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();
|
|
79928
81962
|
if (!result.ok) {
|
|
79929
81963
|
return {
|
|
79930
81964
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79939,9 +81973,9 @@ Retrieve a time series for a single metric of a Virtual Machine.`,
|
|
|
79939
81973
|
|
|
79940
81974
|
// src/funcs/virtualMachinesUpdateVirtualMachine.ts
|
|
79941
81975
|
function virtualMachinesUpdateVirtualMachine(client, request, options) {
|
|
79942
|
-
return new APIPromise($
|
|
81976
|
+
return new APIPromise($do141(client, request, options));
|
|
79943
81977
|
}
|
|
79944
|
-
async function $
|
|
81978
|
+
async function $do141(client, request, options) {
|
|
79945
81979
|
const parsed = safeParse4(request, (value) => UpdateVirtualMachineRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79946
81980
|
if (!parsed.ok) {
|
|
79947
81981
|
return [parsed, { status: "invalid" }];
|
|
@@ -79995,9 +82029,9 @@ async function $do128(client, request, options) {
|
|
|
79995
82029
|
return [doResult, { status: "request-error", request: req }];
|
|
79996
82030
|
}
|
|
79997
82031
|
const response = doResult.value;
|
|
79998
|
-
const [result] = await match(json(200, VirtualMachine$inboundSchema, {
|
|
82032
|
+
const [result] = await match(json([200, 202], VirtualMachine$inboundSchema, {
|
|
79999
82033
|
ctype: "application/vnd.api+json"
|
|
80000
|
-
}), fail([404, 422, "4XX"]), fail("5XX"))(response, req);
|
|
82034
|
+
}), fail([404, 409, 422, "4XX"]), fail("5XX"))(response, req);
|
|
80001
82035
|
if (!result.ok) {
|
|
80002
82036
|
return [result, { status: "complete", request: req, response }];
|
|
80003
82037
|
}
|
|
@@ -80017,12 +82051,12 @@ var init_virtualMachinesUpdateVirtualMachine = __esm(() => {
|
|
|
80017
82051
|
});
|
|
80018
82052
|
|
|
80019
82053
|
// src/mcp-server/tools/virtualMachinesUpdateVirtualMachine.ts
|
|
80020
|
-
var
|
|
82054
|
+
var args131, tool$virtualMachinesUpdateVirtualMachine;
|
|
80021
82055
|
var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
80022
82056
|
init_virtualMachinesUpdateVirtualMachine();
|
|
80023
82057
|
init_operations();
|
|
80024
82058
|
init_tools();
|
|
80025
|
-
|
|
82059
|
+
args131 = {
|
|
80026
82060
|
request: UpdateVirtualMachineRequest$inboundSchema
|
|
80027
82061
|
};
|
|
80028
82062
|
tool$virtualMachinesUpdateVirtualMachine = {
|
|
@@ -80031,9 +82065,9 @@ var init_virtualMachinesUpdateVirtualMachine2 = __esm(() => {
|
|
|
80031
82065
|
|
|
80032
82066
|
Updates a Virtual Machine's display name (hostname).
|
|
80033
82067
|
`,
|
|
80034
|
-
args:
|
|
80035
|
-
tool: async (client,
|
|
80036
|
-
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();
|
|
80037
82071
|
if (!result.ok) {
|
|
80038
82072
|
return {
|
|
80039
82073
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80048,9 +82082,9 @@ Updates a Virtual Machine's display name (hostname).
|
|
|
80048
82082
|
|
|
80049
82083
|
// src/funcs/virtualNetworksDelete.ts
|
|
80050
82084
|
function virtualNetworksDelete(client, request, options) {
|
|
80051
|
-
return new APIPromise($
|
|
82085
|
+
return new APIPromise($do142(client, request, options));
|
|
80052
82086
|
}
|
|
80053
|
-
async function $
|
|
82087
|
+
async function $do142(client, request, options) {
|
|
80054
82088
|
const parsed = safeParse4(request, (value) => DestroyVirtualNetworkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80055
82089
|
if (!parsed.ok) {
|
|
80056
82090
|
return [parsed, { status: "invalid" }];
|
|
@@ -80124,12 +82158,12 @@ var init_virtualNetworksDelete = __esm(() => {
|
|
|
80124
82158
|
});
|
|
80125
82159
|
|
|
80126
82160
|
// src/mcp-server/tools/virtualNetworksDelete.ts
|
|
80127
|
-
var
|
|
82161
|
+
var args132, tool$virtualNetworksDelete;
|
|
80128
82162
|
var init_virtualNetworksDelete2 = __esm(() => {
|
|
80129
82163
|
init_virtualNetworksDelete();
|
|
80130
82164
|
init_operations();
|
|
80131
82165
|
init_tools();
|
|
80132
|
-
|
|
82166
|
+
args132 = {
|
|
80133
82167
|
request: DestroyVirtualNetworkRequest$inboundSchema
|
|
80134
82168
|
};
|
|
80135
82169
|
tool$virtualNetworksDelete = {
|
|
@@ -80138,9 +82172,9 @@ var init_virtualNetworksDelete2 = __esm(() => {
|
|
|
80138
82172
|
|
|
80139
82173
|
Delete virtual network
|
|
80140
82174
|
`,
|
|
80141
|
-
args:
|
|
80142
|
-
tool: async (client,
|
|
80143
|
-
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();
|
|
80144
82178
|
if (!result.ok) {
|
|
80145
82179
|
return {
|
|
80146
82180
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80154,9 +82188,9 @@ Delete virtual network
|
|
|
80154
82188
|
|
|
80155
82189
|
// src/funcs/vpnSessionsCreate.ts
|
|
80156
82190
|
function vpnSessionsCreate(client, request, options) {
|
|
80157
|
-
return new APIPromise($
|
|
82191
|
+
return new APIPromise($do143(client, request, options));
|
|
80158
82192
|
}
|
|
80159
|
-
async function $
|
|
82193
|
+
async function $do143(client, request, options) {
|
|
80160
82194
|
const parsed = safeParse4(request, (value) => PostVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80161
82195
|
if (!parsed.ok) {
|
|
80162
82196
|
return [parsed, { status: "invalid" }];
|
|
@@ -80227,12 +82261,12 @@ var init_vpnSessionsCreate = __esm(() => {
|
|
|
80227
82261
|
});
|
|
80228
82262
|
|
|
80229
82263
|
// src/mcp-server/tools/vpnSessionsCreate.ts
|
|
80230
|
-
var
|
|
82264
|
+
var args133, tool$vpnSessionsCreate;
|
|
80231
82265
|
var init_vpnSessionsCreate2 = __esm(() => {
|
|
80232
82266
|
init_vpnSessionsCreate();
|
|
80233
82267
|
init_operations();
|
|
80234
82268
|
init_tools();
|
|
80235
|
-
|
|
82269
|
+
args133 = {
|
|
80236
82270
|
request: PostVpnSessionRequest$inboundSchema
|
|
80237
82271
|
};
|
|
80238
82272
|
tool$vpnSessionsCreate = {
|
|
@@ -80242,9 +82276,9 @@ var init_vpnSessionsCreate2 = __esm(() => {
|
|
|
80242
82276
|
Creates a new VPN Session.
|
|
80243
82277
|
\`NOTE:\` The VPN credentials are only listed ONCE upon creation. They can however be refreshed or deleted.
|
|
80244
82278
|
`,
|
|
80245
|
-
args:
|
|
80246
|
-
tool: async (client,
|
|
80247
|
-
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();
|
|
80248
82282
|
if (!result.ok) {
|
|
80249
82283
|
return {
|
|
80250
82284
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80259,9 +82293,9 @@ Creates a new VPN Session.
|
|
|
80259
82293
|
|
|
80260
82294
|
// src/funcs/vpnSessionsDelete.ts
|
|
80261
82295
|
function vpnSessionsDelete(client, request, options) {
|
|
80262
|
-
return new APIPromise($
|
|
82296
|
+
return new APIPromise($do144(client, request, options));
|
|
80263
82297
|
}
|
|
80264
|
-
async function $
|
|
82298
|
+
async function $do144(client, request, options) {
|
|
80265
82299
|
const parsed = safeParse4(request, (value) => DeleteVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80266
82300
|
if (!parsed.ok) {
|
|
80267
82301
|
return [parsed, { status: "invalid" }];
|
|
@@ -80335,12 +82369,12 @@ var init_vpnSessionsDelete = __esm(() => {
|
|
|
80335
82369
|
});
|
|
80336
82370
|
|
|
80337
82371
|
// src/mcp-server/tools/vpnSessionsDelete.ts
|
|
80338
|
-
var
|
|
82372
|
+
var args134, tool$vpnSessionsDelete;
|
|
80339
82373
|
var init_vpnSessionsDelete2 = __esm(() => {
|
|
80340
82374
|
init_vpnSessionsDelete();
|
|
80341
82375
|
init_operations();
|
|
80342
82376
|
init_tools();
|
|
80343
|
-
|
|
82377
|
+
args134 = {
|
|
80344
82378
|
request: DeleteVpnSessionRequest$inboundSchema
|
|
80345
82379
|
};
|
|
80346
82380
|
tool$vpnSessionsDelete = {
|
|
@@ -80349,9 +82383,9 @@ var init_vpnSessionsDelete2 = __esm(() => {
|
|
|
80349
82383
|
|
|
80350
82384
|
Deletes an existing VPN Session.
|
|
80351
82385
|
`,
|
|
80352
|
-
args:
|
|
80353
|
-
tool: async (client,
|
|
80354
|
-
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();
|
|
80355
82389
|
if (!result.ok) {
|
|
80356
82390
|
return {
|
|
80357
82391
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80365,9 +82399,9 @@ Deletes an existing VPN Session.
|
|
|
80365
82399
|
|
|
80366
82400
|
// src/funcs/vpnSessionsList.ts
|
|
80367
82401
|
function vpnSessionsList(client, request, options) {
|
|
80368
|
-
return new APIPromise($
|
|
82402
|
+
return new APIPromise($do145(client, request, options));
|
|
80369
82403
|
}
|
|
80370
|
-
async function $
|
|
82404
|
+
async function $do145(client, request, options) {
|
|
80371
82405
|
const parsed = safeParse4(request, (value) => GetVpnSessionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80372
82406
|
if (!parsed.ok) {
|
|
80373
82407
|
return [parsed, { status: "invalid" }];
|
|
@@ -80440,20 +82474,20 @@ var init_vpnSessionsList = __esm(() => {
|
|
|
80440
82474
|
});
|
|
80441
82475
|
|
|
80442
82476
|
// src/mcp-server/tools/vpnSessionsList.ts
|
|
80443
|
-
var
|
|
82477
|
+
var args135, tool$vpnSessionsList;
|
|
80444
82478
|
var init_vpnSessionsList2 = __esm(() => {
|
|
80445
82479
|
init_vpnSessionsList();
|
|
80446
82480
|
init_operations();
|
|
80447
82481
|
init_tools();
|
|
80448
|
-
|
|
82482
|
+
args135 = {
|
|
80449
82483
|
request: GetVpnSessionsRequest$inboundSchema.optional()
|
|
80450
82484
|
};
|
|
80451
82485
|
tool$vpnSessionsList = {
|
|
80452
82486
|
name: "vpn-sessions-list",
|
|
80453
82487
|
description: `List VPN sessions`,
|
|
80454
|
-
args:
|
|
80455
|
-
tool: async (client,
|
|
80456
|
-
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();
|
|
80457
82491
|
if (!result.ok) {
|
|
80458
82492
|
return {
|
|
80459
82493
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80468,9 +82502,9 @@ var init_vpnSessionsList2 = __esm(() => {
|
|
|
80468
82502
|
|
|
80469
82503
|
// src/funcs/vpnSessionsRefreshPassword.ts
|
|
80470
82504
|
function vpnSessionsRefreshPassword(client, request, options) {
|
|
80471
|
-
return new APIPromise($
|
|
82505
|
+
return new APIPromise($do146(client, request, options));
|
|
80472
82506
|
}
|
|
80473
|
-
async function $
|
|
82507
|
+
async function $do146(client, request, options) {
|
|
80474
82508
|
const parsed = safeParse4(request, (value) => PutVpnSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80475
82509
|
if (!parsed.ok) {
|
|
80476
82510
|
return [parsed, { status: "invalid" }];
|
|
@@ -80546,12 +82580,12 @@ var init_vpnSessionsRefreshPassword = __esm(() => {
|
|
|
80546
82580
|
});
|
|
80547
82581
|
|
|
80548
82582
|
// src/mcp-server/tools/vpnSessionsRefreshPassword.ts
|
|
80549
|
-
var
|
|
82583
|
+
var args136, tool$vpnSessionsRefreshPassword;
|
|
80550
82584
|
var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
80551
82585
|
init_vpnSessionsRefreshPassword();
|
|
80552
82586
|
init_operations();
|
|
80553
82587
|
init_tools();
|
|
80554
|
-
|
|
82588
|
+
args136 = {
|
|
80555
82589
|
request: PutVpnSessionRequest$inboundSchema
|
|
80556
82590
|
};
|
|
80557
82591
|
tool$vpnSessionsRefreshPassword = {
|
|
@@ -80560,9 +82594,9 @@ var init_vpnSessionsRefreshPassword2 = __esm(() => {
|
|
|
80560
82594
|
|
|
80561
82595
|
Refreshing an existing VPN Session will create new credentials for that session
|
|
80562
82596
|
`,
|
|
80563
|
-
args:
|
|
80564
|
-
tool: async (client,
|
|
80565
|
-
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();
|
|
80566
82600
|
if (!result.ok) {
|
|
80567
82601
|
return {
|
|
80568
82602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80579,7 +82613,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
80579
82613
|
function createMCPServer(deps) {
|
|
80580
82614
|
const server2 = new McpServer({
|
|
80581
82615
|
name: "Latitudesh",
|
|
80582
|
-
version: "0.6.
|
|
82616
|
+
version: "0.6.4"
|
|
80583
82617
|
});
|
|
80584
82618
|
const client = new LatitudeshCore({
|
|
80585
82619
|
bearer: deps.bearer,
|
|
@@ -80634,6 +82668,7 @@ function createMCPServer(deps) {
|
|
|
80634
82668
|
tool(tool$plansGetBandwidth);
|
|
80635
82669
|
tool(tool$plansUpdateBandwidth);
|
|
80636
82670
|
tool(tool$plansListStorage);
|
|
82671
|
+
tool(tool$plansGetManagedDatabasePlans);
|
|
80637
82672
|
tool(tool$projectsList);
|
|
80638
82673
|
tool(tool$projectsCreate);
|
|
80639
82674
|
tool(tool$projectsUpdate);
|
|
@@ -80711,6 +82746,18 @@ function createMCPServer(deps) {
|
|
|
80711
82746
|
tool(tool$virtualMachinesListVirtualMachineNetworkAttachments);
|
|
80712
82747
|
tool(tool$virtualMachinesCreateVirtualMachineNetworkAttachment);
|
|
80713
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);
|
|
80714
82761
|
tool(tool$privateNetworksList);
|
|
80715
82762
|
tool(tool$privateNetworksCreate);
|
|
80716
82763
|
tool(tool$privateNetworksUpdate);
|
|
@@ -80780,6 +82827,7 @@ var init_server4 = __esm(() => {
|
|
|
80780
82827
|
init_operatingSystemsListPlans2();
|
|
80781
82828
|
init_plansGet2();
|
|
80782
82829
|
init_plansGetBandwidth2();
|
|
82830
|
+
init_plansGetManagedDatabasePlans2();
|
|
80783
82831
|
init_plansList2();
|
|
80784
82832
|
init_plansListStorage2();
|
|
80785
82833
|
init_plansUpdateBandwidth2();
|
|
@@ -80852,6 +82900,18 @@ var init_server4 = __esm(() => {
|
|
|
80852
82900
|
init_userProfileGet2();
|
|
80853
82901
|
init_userProfileListTeams2();
|
|
80854
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();
|
|
80855
82915
|
init_virtualMachinesCreate2();
|
|
80856
82916
|
init_virtualMachinesCreateVirtualMachineAction2();
|
|
80857
82917
|
init_virtualMachinesCreateVirtualMachineNetworkAttachment2();
|
|
@@ -82070,7 +84130,7 @@ var routes = ln({
|
|
|
82070
84130
|
var app = _e(routes, {
|
|
82071
84131
|
name: "mcp",
|
|
82072
84132
|
versionInfo: {
|
|
82073
|
-
currentVersion: "0.6.
|
|
84133
|
+
currentVersion: "0.6.4"
|
|
82074
84134
|
}
|
|
82075
84135
|
});
|
|
82076
84136
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82078,5 +84138,5 @@ export {
|
|
|
82078
84138
|
app
|
|
82079
84139
|
};
|
|
82080
84140
|
|
|
82081
|
-
//# debugId=
|
|
84141
|
+
//# debugId=9DD8B5EDD4254C3E64756E2164756E21
|
|
82082
84142
|
//# sourceMappingURL=mcp-server.js.map
|