// Generated by @hey-api/openapi-ts. // Do not edit this directory by hand; run npm run api:generate instead. import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type TDataShape } from './client'; import { client } from './client.gen'; import type { AdminActivateThemeData, AdminActivateThemeErrors, AdminActivateThemeResponses, AdminAttachEggsToMountData, AdminAttachEggsToMountErrors, AdminAttachEggsToMountResponses, AdminAttachNodesToMountData, AdminAttachNodesToMountErrors, AdminAttachNodesToMountResponses, AdminAttachServerMountData, AdminAttachServerMountErrors, AdminAttachServerMountResponses, AdminBulkDeleteNodeAllocationsData, AdminBulkDeleteNodeAllocationsErrors, AdminBulkDeleteNodeAllocationsResponses, AdminClearExtensionSettingFileData, AdminClearExtensionSettingFileErrors, AdminClearExtensionSettingFileResponses, AdminClearThemeImageData, AdminClearThemeImageErrors, AdminClearThemeImageResponses, AdminCreateApiKeyData, AdminCreateApiKeyErrors, AdminCreateApiKeyResponses, AdminCreateDatabaseHostData, AdminCreateDatabaseHostErrors, AdminCreateDatabaseHostResponses, AdminCreateEggData, AdminCreateEggErrors, AdminCreateEggResponses, AdminCreateEggVariableData, AdminCreateEggVariableErrors, AdminCreateEggVariableResponses, AdminCreateLocationData, AdminCreateLocationErrors, AdminCreateLocationResponses, AdminCreateMountData, AdminCreateMountErrors, AdminCreateMountResponses, AdminCreateNodeAllocationsData, AdminCreateNodeAllocationsErrors, AdminCreateNodeAllocationsResponses, AdminCreateNodeData, AdminCreateNodeDeployTokenData, AdminCreateNodeDeployTokenErrors, AdminCreateNodeDeployTokenResponses, AdminCreateNodeErrors, AdminCreateNodeResponses, AdminCreateServerData, AdminCreateServerDatabaseData, AdminCreateServerDatabaseErrors, AdminCreateServerDatabaseResponses, AdminCreateServerErrors, AdminCreateServerResponses, AdminCreateTagData, AdminCreateTagErrors, AdminCreateTagResponses, AdminCreateUserData, AdminCreateUserErrors, AdminCreateUserResponses, AdminDeleteApiKeyData, AdminDeleteApiKeyErrors, AdminDeleteApiKeyResponses, AdminDeleteDatabaseHostData, AdminDeleteDatabaseHostErrors, AdminDeleteDatabaseHostResponses, AdminDeleteEggData, AdminDeleteEggErrors, AdminDeleteEggResponses, AdminDeleteEggVariableData, AdminDeleteEggVariableErrors, AdminDeleteEggVariableResponses, AdminDeleteLocationData, AdminDeleteLocationErrors, AdminDeleteLocationResponses, AdminDeleteLogoData, AdminDeleteLogoErrors, AdminDeleteLogoResponses, AdminDeleteMountData, AdminDeleteMountErrors, AdminDeleteMountResponses, AdminDeleteNodeAllocationData, AdminDeleteNodeAllocationErrors, AdminDeleteNodeAllocationIpBlockData, AdminDeleteNodeAllocationIpBlockErrors, AdminDeleteNodeAllocationIpBlockResponses, AdminDeleteNodeAllocationResponses, AdminDeleteNodeData, AdminDeleteNodeErrors, AdminDeleteNodeResponses, AdminDeleteServerData, AdminDeleteServerDatabaseData, AdminDeleteServerDatabaseErrors, AdminDeleteServerDatabaseResponses, AdminDeleteServerErrors, AdminDeleteServerResponses, AdminDeleteTagData, AdminDeleteTagErrors, AdminDeleteTagResponses, AdminDeleteUserAvatarData, AdminDeleteUserAvatarErrors, AdminDeleteUserAvatarResponses, AdminDeleteUserData, AdminDeleteUserErrors, AdminDeleteUserResponses, AdminDetachEggFromMountData, AdminDetachEggFromMountErrors, AdminDetachEggFromMountResponses, AdminDetachNodeFromMountData, AdminDetachNodeFromMountErrors, AdminDetachNodeFromMountResponses, AdminDetachServerMountData, AdminDetachServerMountErrors, AdminDetachServerMountResponses, AdminDisableExtensionData, AdminDisableExtensionErrors, AdminDisableExtensionResponses, AdminDisableUserTwoFactorAuthenticationData, AdminDisableUserTwoFactorAuthenticationErrors, AdminDisableUserTwoFactorAuthenticationResponses, AdminEnableExtensionData, AdminEnableExtensionErrors, AdminEnableExtensionResponses, AdminExportEggData, AdminExportEggErrors, AdminExportEggResponses, AdminForceDeleteServerData, AdminForceDeleteServerErrors, AdminForceDeleteServerResponses, AdminGetApiKeyData, AdminGetApiKeyErrors, AdminGetApiKeyResponses, AdminGetDatabaseHostData, AdminGetDatabaseHostErrors, AdminGetDatabaseHostResponses, AdminGetEggData, AdminGetEggErrors, AdminGetEggInstallScriptData, AdminGetEggInstallScriptErrors, AdminGetEggInstallScriptResponses, AdminGetEggResponses, AdminGetExtensionIconData, AdminGetExtensionIconErrors, AdminGetExtensionIconResponses, AdminGetExtensionSettingsData, AdminGetExtensionSettingsErrors, AdminGetExtensionSettingsResponses, AdminGetLocationData, AdminGetLocationErrors, AdminGetLocationResponses, AdminGetMountData, AdminGetMountErrors, AdminGetMountResponses, AdminGetNodeConfigurationData, AdminGetNodeConfigurationErrors, AdminGetNodeConfigurationResponses, AdminGetNodeData, AdminGetNodeErrors, AdminGetNodeResponses, AdminGetNodeSystemInformationData, AdminGetNodeSystemInformationErrors, AdminGetNodeSystemInformationResponses, AdminGetNodeUtilizationData, AdminGetNodeUtilizationErrors, AdminGetNodeUtilizationResponses, AdminGetServerByExternalIdData, AdminGetServerByExternalIdErrors, AdminGetServerByExternalIdResponses, AdminGetServerData, AdminGetServerDatabaseData, AdminGetServerDatabaseErrors, AdminGetServerDatabaseResponses, AdminGetServerErrors, AdminGetServerResponses, AdminGetServerTransferProgressData, AdminGetServerTransferProgressErrors, AdminGetServerTransferProgressResponses, AdminGetSettingsData, AdminGetSettingsErrors, AdminGetSettingsResponses, AdminGetTagData, AdminGetTagErrors, AdminGetTagResponses, AdminGetThemeSettingsData, AdminGetThemeSettingsErrors, AdminGetThemeSettingsResponses, AdminGetUserByExternalIdData, AdminGetUserByExternalIdErrors, AdminGetUserByExternalIdResponses, AdminGetUserData, AdminGetUserErrors, AdminGetUserResponses, AdminGetVersionInformationData, AdminGetVersionInformationErrors, AdminGetVersionInformationResponses, AdminImportCatalogEggData, AdminImportCatalogEggErrors, AdminImportCatalogEggResponses, AdminImportEggData, AdminImportEggErrors, AdminImportEggResponses, AdminInstallExtensionData, AdminInstallExtensionErrors, AdminInstallExtensionResponses, AdminListActivityData, AdminListActivityErrors, AdminListActivityFilterOptionsData, AdminListActivityFilterOptionsErrors, AdminListActivityFilterOptionsResponses, AdminListActivityResponses, AdminListApiKeysData, AdminListApiKeysErrors, AdminListApiKeysResponses, AdminListAvailableNodeAllocationsData, AdminListAvailableNodeAllocationsErrors, AdminListAvailableNodeAllocationsResponses, AdminListDatabaseHostDatabasesData, AdminListDatabaseHostDatabasesErrors, AdminListDatabaseHostDatabasesResponses, AdminListDatabaseHostsData, AdminListDatabaseHostsErrors, AdminListDatabaseHostsResponses, AdminListEggCatalogData, AdminListEggCatalogErrors, AdminListEggCatalogResponses, AdminListEggsData, AdminListEggsErrors, AdminListEggsResponses, AdminListEggVariablesData, AdminListEggVariablesErrors, AdminListEggVariablesResponses, AdminListEligibleLocationNodesData, AdminListEligibleLocationNodesErrors, AdminListEligibleLocationNodesResponses, AdminListExtensionFormsData, AdminListExtensionFormsErrors, AdminListExtensionFormsResponses, AdminListExtensionsData, AdminListExtensionsErrors, AdminListExtensionsResponses, AdminListLanguagesData, AdminListLanguagesErrors, AdminListLanguagesResponses, AdminListLocationsData, AdminListLocationsErrors, AdminListLocationsResponses, AdminListMountsData, AdminListMountsErrors, AdminListMountsResponses, AdminListNodeAllocationIpsData, AdminListNodeAllocationIpsErrors, AdminListNodeAllocationIpsResponses, AdminListNodeAllocationsData, AdminListNodeAllocationsErrors, AdminListNodeAllocationsResponses, AdminListNodesData, AdminListNodesErrors, AdminListNodesResponses, AdminListServerBackupsData, AdminListServerBackupsErrors, AdminListServerBackupsResponses, AdminListServerDatabasesData, AdminListServerDatabasesErrors, AdminListServerDatabasesResponses, AdminListServerMountsData, AdminListServerMountsErrors, AdminListServerMountsResponses, AdminListServersData, AdminListServersErrors, AdminListServersResponses, AdminListTagsData, AdminListTagsErrors, AdminListTagsResponses, AdminListThemesData, AdminListThemesErrors, AdminListThemesResponses, AdminListUsersData, AdminListUsersErrors, AdminListUsersResponses, AdminPreviewThemeData, AdminPreviewThemeErrors, AdminPreviewThemeResponses, AdminRebuildServerData, AdminRebuildServerErrors, AdminRebuildServerResponses, AdminRefreshEggCatalogData, AdminRefreshEggCatalogErrors, AdminRefreshEggCatalogResponses, AdminReinstallServerData, AdminReinstallServerErrors, AdminReinstallServerResponses, AdminRemoveExtensionData, AdminRemoveExtensionErrors, AdminRemoveExtensionResponses, AdminReorderEggVariablesData, AdminReorderEggVariablesErrors, AdminReorderEggVariablesResponses, AdminRotateServerDatabasePasswordData, AdminRotateServerDatabasePasswordErrors, AdminRotateServerDatabasePasswordResponses, AdminSendTestMailData, AdminSendTestMailErrors, AdminSendTestMailResponses, AdminStopThemePreviewData, AdminStopThemePreviewErrors, AdminStopThemePreviewResponses, AdminSyncEggTagsData, AdminSyncEggTagsErrors, AdminSyncEggTagsResponses, AdminSyncNodeDeploymentTagsData, AdminSyncNodeDeploymentTagsErrors, AdminSyncNodeDeploymentTagsResponses, AdminSyncNodeGameTagsData, AdminSyncNodeGameTagsErrors, AdminSyncNodeGameTagsResponses, AdminToggleServerBackupLockData, AdminToggleServerBackupLockErrors, AdminToggleServerBackupLockResponses, AdminToggleServerInstallStateData, AdminToggleServerInstallStateErrors, AdminToggleServerInstallStateResponses, AdminTransferServerData, AdminTransferServerErrors, AdminTransferServerResponses, AdminUpdateAdvancedSettingsData, AdminUpdateAdvancedSettingsErrors, AdminUpdateAdvancedSettingsResponses, AdminUpdateApiKeyData, AdminUpdateApiKeyErrors, AdminUpdateApiKeyResponses, AdminUpdateDatabaseHostData, AdminUpdateDatabaseHostErrors, AdminUpdateDatabaseHostResponses, AdminUpdateEggData, AdminUpdateEggErrors, AdminUpdateEggFromImportData, AdminUpdateEggFromImportErrors, AdminUpdateEggFromImportResponses, AdminUpdateEggInstallScriptData, AdminUpdateEggInstallScriptErrors, AdminUpdateEggInstallScriptResponses, AdminUpdateEggResponses, AdminUpdateEggVariableData, AdminUpdateEggVariableErrors, AdminUpdateEggVariableResponses, AdminUpdateExtensionSettingsData, AdminUpdateExtensionSettingsErrors, AdminUpdateExtensionSettingsResponses, AdminUpdateGeneralSettingsData, AdminUpdateGeneralSettingsErrors, AdminUpdateGeneralSettingsResponses, AdminUpdateLocationData, AdminUpdateLocationErrors, AdminUpdateLocationResponses, AdminUpdateMailSettingsData, AdminUpdateMailSettingsErrors, AdminUpdateMailSettingsResponses, AdminUpdateMountData, AdminUpdateMountErrors, AdminUpdateMountResponses, AdminUpdateNodeAllocationData, AdminUpdateNodeAllocationErrors, AdminUpdateNodeAllocationResponses, AdminUpdateNodeData, AdminUpdateNodeErrors, AdminUpdateNodeResponses, AdminUpdateServerBuildData, AdminUpdateServerBuildErrors, AdminUpdateServerBuildResponses, AdminUpdateServerDetailsData, AdminUpdateServerDetailsErrors, AdminUpdateServerDetailsResponses, AdminUpdateServerStartupData, AdminUpdateServerStartupErrors, AdminUpdateServerStartupResponses, AdminUpdateServerSuspensionData, AdminUpdateServerSuspensionErrors, AdminUpdateServerSuspensionResponses, AdminUpdateTagData, AdminUpdateTagErrors, AdminUpdateTagResponses, AdminUpdateThemeSettingsData, AdminUpdateThemeSettingsErrors, AdminUpdateThemeSettingsResponses, AdminUpdateUserAvatarData, AdminUpdateUserAvatarErrors, AdminUpdateUserAvatarResponses, AdminUpdateUserData, AdminUpdateUserErrors, AdminUpdateUserResponses, AdminUploadExtensionSettingFileData, AdminUploadExtensionSettingFileErrors, AdminUploadExtensionSettingFileResponses, AdminUploadLogoData, AdminUploadLogoErrors, AdminUploadLogoResponses, AdminUploadThemeImageData, AdminUploadThemeImageErrors, AdminUploadThemeImageResponses, ApplicationCreateLocationData, ApplicationCreateLocationErrors, ApplicationCreateLocationResponses, ApplicationCreateNodeAllocationsData, ApplicationCreateNodeAllocationsErrors, ApplicationCreateNodeAllocationsResponses, ApplicationCreateNodeData, ApplicationCreateNodeErrors, ApplicationCreateNodeResponses, ApplicationCreateServerData, ApplicationCreateServerDatabaseData, ApplicationCreateServerDatabaseErrors, ApplicationCreateServerDatabaseResponses, ApplicationCreateServerErrors, ApplicationCreateServerResponses, ApplicationCreateUserData, ApplicationCreateUserErrors, ApplicationCreateUserResponses, ApplicationDeleteLocationData, ApplicationDeleteLocationErrors, ApplicationDeleteLocationResponses, ApplicationDeleteNodeAllocationData, ApplicationDeleteNodeAllocationErrors, ApplicationDeleteNodeAllocationResponses, ApplicationDeleteNodeData, ApplicationDeleteNodeErrors, ApplicationDeleteNodeResponses, ApplicationDeleteServerDatabaseData, ApplicationDeleteServerDatabaseErrors, ApplicationDeleteServerDatabaseResponses, ApplicationDeleteServerForServersServerIdData, ApplicationDeleteServerForServersServerIdErrors, ApplicationDeleteServerForServersServerIdForceData, ApplicationDeleteServerForServersServerIdForceErrors, ApplicationDeleteServerForServersServerIdForceResponses, ApplicationDeleteServerForServersServerIdResponses, ApplicationDeleteUserData, ApplicationDeleteUserErrors, ApplicationDeleteUserResponses, ApplicationGetEggData, ApplicationGetEggErrors, ApplicationGetEggResponses, ApplicationGetLocationData, ApplicationGetLocationErrors, ApplicationGetLocationResponses, ApplicationGetNodeConfigurationData, ApplicationGetNodeConfigurationErrors, ApplicationGetNodeConfigurationResponses, ApplicationGetNodeData, ApplicationGetNodeErrors, ApplicationGetNodeResponses, ApplicationGetServerByExternalIdData, ApplicationGetServerByExternalIdErrors, ApplicationGetServerByExternalIdResponses, ApplicationGetServerData, ApplicationGetServerDatabaseData, ApplicationGetServerDatabaseErrors, ApplicationGetServerDatabaseResponses, ApplicationGetServerErrors, ApplicationGetServerResponses, ApplicationGetTagData, ApplicationGetTagErrors, ApplicationGetTagResponses, ApplicationGetUserByExternalIdData, ApplicationGetUserByExternalIdErrors, ApplicationGetUserByExternalIdResponses, ApplicationGetUserData, ApplicationGetUserErrors, ApplicationGetUserResponses, ApplicationListDeployableNodesData, ApplicationListDeployableNodesErrors, ApplicationListDeployableNodesResponses, ApplicationListEggsData, ApplicationListEggsErrors, ApplicationListEggsResponses, ApplicationListLocationsData, ApplicationListLocationsErrors, ApplicationListLocationsResponses, ApplicationListNodeAllocationsData, ApplicationListNodeAllocationsErrors, ApplicationListNodeAllocationsResponses, ApplicationListNodesData, ApplicationListNodesErrors, ApplicationListNodesResponses, ApplicationListServerDatabasesData, ApplicationListServerDatabasesErrors, ApplicationListServerDatabasesResponses, ApplicationListServersData, ApplicationListServersErrors, ApplicationListServersResponses, ApplicationListTagsData, ApplicationListTagsErrors, ApplicationListTagsResponses, ApplicationListUsersData, ApplicationListUsersErrors, ApplicationListUsersResponses, ApplicationReinstallServerData, ApplicationReinstallServerErrors, ApplicationReinstallServerResponses, ApplicationResetServerDatabasePasswordData, ApplicationResetServerDatabasePasswordErrors, ApplicationResetServerDatabasePasswordResponses, ApplicationSuspendServerData, ApplicationSuspendServerErrors, ApplicationSuspendServerResponses, ApplicationUnsuspendServerData, ApplicationUnsuspendServerErrors, ApplicationUnsuspendServerResponses, ApplicationUpdateLocationData, ApplicationUpdateLocationErrors, ApplicationUpdateLocationResponses, ApplicationUpdateNodeData, ApplicationUpdateNodeErrors, ApplicationUpdateNodeResponses, ApplicationUpdateServerBuildData, ApplicationUpdateServerBuildErrors, ApplicationUpdateServerBuildResponses, ApplicationUpdateServerDetailsData, ApplicationUpdateServerDetailsErrors, ApplicationUpdateServerDetailsResponses, ApplicationUpdateServerStartupData, ApplicationUpdateServerStartupErrors, ApplicationUpdateServerStartupResponses, ApplicationUpdateUserData, ApplicationUpdateUserErrors, ApplicationUpdateUserResponses, AuthCompleteLoginCheckpointData, AuthCompleteLoginCheckpointErrors, AuthCompleteLoginCheckpointResponses, AuthGetCsrfCookieData, AuthGetCsrfCookieResponses, AuthLoginData, AuthLoginErrors, AuthLoginResponses, AuthLogoutData, AuthLogoutErrors, AuthLogoutResponses, AuthRequestPasswordResetEmailData, AuthRequestPasswordResetEmailErrors, AuthRequestPasswordResetEmailResponses, AuthResetPasswordData, AuthResetPasswordErrors, AuthResetPasswordResponses, ClientChangeFilePermissionsData, ClientChangeFilePermissionsErrors, ClientChangeFilePermissionsResponses, ClientCompressFilesData, ClientCompressFilesErrors, ClientCompressFilesResponses, ClientCopyFileData, ClientCopyFileErrors, ClientCopyFileResponses, ClientCreateAccountApiKeyData, ClientCreateAccountApiKeyErrors, ClientCreateAccountApiKeyResponses, ClientCreateFolderData, ClientCreateFolderErrors, ClientCreateFolderResponses, ClientCreateScheduleTaskData, ClientCreateScheduleTaskErrors, ClientCreateScheduleTaskResponses, ClientCreateServerAllocationData, ClientCreateServerAllocationErrors, ClientCreateServerAllocationResponses, ClientCreateServerBackupData, ClientCreateServerBackupErrors, ClientCreateServerBackupResponses, ClientCreateServerDatabaseData, ClientCreateServerDatabaseErrors, ClientCreateServerDatabaseResponses, ClientCreateServerScheduleData, ClientCreateServerScheduleErrors, ClientCreateServerScheduleResponses, ClientCreateServerSubuserData, ClientCreateServerSubuserErrors, ClientCreateServerSubuserResponses, ClientCreateSshKeyData, ClientCreateSshKeyErrors, ClientCreateSshKeyResponses, ClientDecompressFileData, ClientDecompressFileErrors, ClientDecompressFileResponses, ClientDeleteAccountApiKeyData, ClientDeleteAccountApiKeyErrors, ClientDeleteAccountApiKeyResponses, ClientDeleteAccountAvatarData, ClientDeleteAccountAvatarErrors, ClientDeleteAccountAvatarResponses, ClientDeleteFilesData, ClientDeleteFilesErrors, ClientDeleteFilesResponses, ClientDeleteScheduleTaskData, ClientDeleteScheduleTaskErrors, ClientDeleteScheduleTaskResponses, ClientDeleteServerAllocationData, ClientDeleteServerAllocationErrors, ClientDeleteServerAllocationResponses, ClientDeleteServerBackupData, ClientDeleteServerBackupErrors, ClientDeleteServerBackupResponses, ClientDeleteServerDatabaseData, ClientDeleteServerDatabaseErrors, ClientDeleteServerDatabaseResponses, ClientDeleteServerScheduleData, ClientDeleteServerScheduleErrors, ClientDeleteServerScheduleResponses, ClientDeleteServerSubuserData, ClientDeleteServerSubuserErrors, ClientDeleteServerSubuserResponses, ClientDeleteSshKeyData, ClientDeleteSshKeyErrors, ClientDeleteSshKeyResponses, ClientDisableTwoFactorAuthenticationData, ClientDisableTwoFactorAuthenticationErrors, ClientDisableTwoFactorAuthenticationResponses, ClientEnableTwoFactorAuthenticationData, ClientEnableTwoFactorAuthenticationErrors, ClientEnableTwoFactorAuthenticationResponses, ClientExecuteServerScheduleData, ClientExecuteServerScheduleErrors, ClientExecuteServerScheduleResponses, ClientGetAccountData, ClientGetAccountErrors, ClientGetAccountResponses, ClientGetBackupDownloadUrlData, ClientGetBackupDownloadUrlErrors, ClientGetBackupDownloadUrlResponses, ClientGetExtensionJobProgressData, ClientGetExtensionJobProgressErrors, ClientGetExtensionJobProgressResponses, ClientGetFileContentsData, ClientGetFileContentsErrors, ClientGetFileContentsResponses, ClientGetFileDownloadUrlData, ClientGetFileDownloadUrlErrors, ClientGetFileDownloadUrlResponses, ClientGetFileUploadUrlData, ClientGetFileUploadUrlErrors, ClientGetFileUploadUrlResponses, ClientGetServerBackupData, ClientGetServerBackupErrors, ClientGetServerBackupResponses, ClientGetServerData, ClientGetServerErrors, ClientGetServerExtensionJobProgressData, ClientGetServerExtensionJobProgressErrors, ClientGetServerExtensionJobProgressResponses, ClientGetServerLogsData, ClientGetServerLogsErrors, ClientGetServerLogsResponses, ClientGetServerResourcesData, ClientGetServerResourcesErrors, ClientGetServerResourcesResponses, ClientGetServerResponses, ClientGetServerScheduleData, ClientGetServerScheduleErrors, ClientGetServerScheduleResponses, ClientGetServerSubuserData, ClientGetServerSubuserErrors, ClientGetServerSubuserResponses, ClientGetStartupConfigurationData, ClientGetStartupConfigurationErrors, ClientGetStartupConfigurationResponses, ClientGetTwoFactorSetupData, ClientGetTwoFactorSetupErrors, ClientGetTwoFactorSetupResponses, ClientGetWebsocketCredentialsData, ClientGetWebsocketCredentialsErrors, ClientGetWebsocketCredentialsResponses, ClientListAccountActivityData, ClientListAccountActivityErrors, ClientListAccountActivityFilterOptionsData, ClientListAccountActivityFilterOptionsErrors, ClientListAccountActivityFilterOptionsResponses, ClientListAccountActivityResponses, ClientListAccountApiKeysData, ClientListAccountApiKeysErrors, ClientListAccountApiKeysResponses, ClientListClientServersData, ClientListClientServersErrors, ClientListClientServersResponses, ClientListFilesData, ClientListFilesErrors, ClientListFilesResponses, ClientListServerActivityData, ClientListServerActivityErrors, ClientListServerActivityFilterOptionsData, ClientListServerActivityFilterOptionsErrors, ClientListServerActivityFilterOptionsResponses, ClientListServerActivityResponses, ClientListServerAllocationsData, ClientListServerAllocationsErrors, ClientListServerAllocationsResponses, ClientListServerBackupsData, ClientListServerBackupsErrors, ClientListServerBackupsResponses, ClientListServerDatabasesData, ClientListServerDatabasesErrors, ClientListServerDatabasesResponses, ClientListServerPermissionsData, ClientListServerPermissionsErrors, ClientListServerPermissionsResponses, ClientListServerSchedulesData, ClientListServerSchedulesErrors, ClientListServerSchedulesResponses, ClientListServerSubusersData, ClientListServerSubusersErrors, ClientListServerSubusersResponses, ClientListSshKeysData, ClientListSshKeysErrors, ClientListSshKeysResponses, ClientPullRemoteFileData, ClientPullRemoteFileErrors, ClientPullRemoteFileResponses, ClientReinstallServerData, ClientReinstallServerErrors, ClientReinstallServerResponses, ClientRenameFilesData, ClientRenameFilesErrors, ClientRenameFilesResponses, ClientRenameServerData, ClientRenameServerErrors, ClientRenameServerResponses, ClientRestoreServerBackupData, ClientRestoreServerBackupErrors, ClientRestoreServerBackupResponses, ClientRotateServerDatabasePasswordData, ClientRotateServerDatabasePasswordErrors, ClientRotateServerDatabasePasswordResponses, ClientSendPowerActionData, ClientSendPowerActionErrors, ClientSendPowerActionResponses, ClientSendServerCommandData, ClientSendServerCommandErrors, ClientSendServerCommandResponses, ClientSetPrimaryAllocationData, ClientSetPrimaryAllocationErrors, ClientSetPrimaryAllocationResponses, ClientSetServerDockerImageData, ClientSetServerDockerImageErrors, ClientSetServerDockerImageResponses, ClientToggleBackupLockData, ClientToggleBackupLockErrors, ClientToggleBackupLockResponses, ClientUpdateAccountAvatarData, ClientUpdateAccountAvatarErrors, ClientUpdateAccountAvatarResponses, ClientUpdateAccountEmailData, ClientUpdateAccountEmailErrors, ClientUpdateAccountEmailResponses, ClientUpdateAccountPasswordData, ClientUpdateAccountPasswordErrors, ClientUpdateAccountPasswordResponses, ClientUpdateAllocationNotesData, ClientUpdateAllocationNotesErrors, ClientUpdateAllocationNotesResponses, ClientUpdateScheduleTaskData, ClientUpdateScheduleTaskErrors, ClientUpdateScheduleTaskResponses, ClientUpdateServerScheduleData, ClientUpdateServerScheduleErrors, ClientUpdateServerScheduleResponses, ClientUpdateServerSubuserData, ClientUpdateServerSubuserErrors, ClientUpdateServerSubuserResponses, ClientUpdateStartupVariableData, ClientUpdateStartupVariableErrors, ClientUpdateStartupVariableResponses, ClientWriteFileContentsData, ClientWriteFileContentsErrors, ClientWriteFileContentsResponses } from './types.gen'; export type Options = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: keyof ClientMeta extends never ? Record : ClientMeta; }; /** * List languages * * Returns the languages available for panel locale selectors. */ export const adminListLanguages = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/languages', ...options }); /** * List activity * * Returns a paginated list of administrative activity. Only events in the "admin" namespace are returned; customer activity against a server or account is excluded. */ export const adminListActivity = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/activity', ...options }); /** * List activity filter options * * Returns the distinct events and users present in the administrative activity log. */ export const adminListActivityFilterOptions = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/activity/filters', ...options }); /** * List extensions * * Returns discovered extensions, invalid manifests, and their install state. */ export const adminListExtensions = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/extensions', ...options }); /** * Install extension * * Installs an uploaded .pteroext or .zip extension package. */ export const adminInstallExtension = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * List extension forms * * Returns, for each admin form, the enabled extensions that add fields to it and that the signed-in administrator may edit. Forms without extension fields are left out. */ export const adminListExtensionForms = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/extensions/forms', ...options }); /** * Get extension settings * * Returns the auto-render form schema (with current public values) for an extension that registered a settings definition. */ export const adminGetExtensionSettings = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/extensions/{extension}/settings', ...options }); /** * Update extension settings * * Validates against each field's type and the extension's declared rules and persists the submitted values. Omitted fields keep their stored values, as do secrets submitted empty or as their mask. */ export const adminUpdateExtensionSettings = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}/settings', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get extension icon * * Returns the PNG, JPEG or WebP image an extension declares as its "icon". Extensions with a lucide icon name or no icon return not found. */ export const adminGetExtensionIcon = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'blob', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/extensions/{extension}/icon', ...options }); /** * Clear extension setting file * * Deletes the file stored for a file setting, which returns the setting to its default. */ export const adminClearExtensionSettingFile = (options: Options): RequestResult => (options.client ?? client).delete({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}/settings/{input}/file', ...options }); /** * Upload extension setting file * * Stores the uploaded file as the value of a file setting and deletes the file it replaces. The type is decided from the file's content and checked against the setting's allow-list and size limit. */ export const adminUploadExtensionSettingFile = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}/settings/{input}/file', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * Enable extension * * Enables an installed extension, publishes assets, and runs migrations. */ export const adminEnableExtension = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}/enable', ...options }); /** * Disable extension * * Disables an installed extension without removing files or data. */ export const adminDisableExtension = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}/disable', ...options }); /** * Remove extension * * Deletes extension files, published assets, settings, subuser permission grants, and the install record. */ export const adminRemoveExtension = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/extensions/{extension}', ...options }); /** * List themes * * Returns the built-in classic theme and every installed theme, with the active one and whether each can be activated. */ export const adminListThemes = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/themes', ...options }); /** * Get theme settings * * Returns the settings a theme declares, with their current values. Classic has none. */ export const adminGetThemeSettings = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/themes/{theme}/settings', ...options }); /** * Update theme settings * * Validates each submitted value against its setting's type and stores it. Omitted settings keep their values and null restores a setting's default. */ export const adminUpdateThemeSettings = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/{theme}/settings', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Stop theme preview * * Shows the active theme to the signed-in administrator again. */ export const adminStopThemePreview = (options?: Options): RequestResult => (options?.client ?? client).delete({ security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/preview', ...options }); /** * Activate theme * * Makes an installed, enabled theme the one every visitor sees. Activating "classic" resets the panel. */ export const adminActivateTheme = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/{theme}/activate', ...options }); /** * Preview theme * * Shows a theme to the signed-in administrator only, for the rest of this session, without activating it. */ export const adminPreviewTheme = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/{theme}/preview', ...options }); /** * Clear theme image * * Deletes the image stored for an image setting, which returns the setting to no image. */ export const adminClearThemeImage = (options: Options): RequestResult => (options.client ?? client).delete({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/{theme}/settings/{setting}/image', ...options }); /** * Upload theme image * * Stores the uploaded image as the value of an image setting and deletes the image it replaces. The type is decided from the file's content. */ export const adminUploadThemeImage = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/themes/{theme}/settings/{setting}/image', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * List users * * Returns a paginated list of panel users, sorted with root administrators first by default. */ export const adminListUsers = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users', ...options }); /** * Create user * * Creates a panel user. Optional password and language fields may be supplied explicitly. */ export const adminCreateUser = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get user by external ID * * Returns a single panel user by external identifier. */ export const adminGetUserByExternalId = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/external/{external_id}', ...options }); /** * Delete user * * Deletes a panel user. The authenticated administrator cannot delete their own account. */ export const adminDeleteUser = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}', ...options }); /** * Get user * * Returns a single panel user by internal numeric ID. */ export const adminGetUser = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}', ...options }); /** * Update user * * Updates an existing panel user. Supplying a password changes the user password. */ export const adminUpdateUser = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Disable user two-factor authentication * * Clears the configured TOTP secret and disables two-factor authentication for a user. */ export const adminDisableUserTwoFactorAuthentication = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}/disable-2fa', ...options }); /** * Delete user avatar * * Deletes the user's avatar. */ export const adminDeleteUserAvatar = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}/avatar', ...options }); /** * Update user avatar * * Stores the uploaded image as the user's avatar and deletes the one it replaces. */ export const adminUpdateUserAvatar = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/users/{user_id}/avatar', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * Get node system information * * Proxies Wings system information for a node. */ export const adminGetNodeSystemInformation = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/system-information', ...options }); /** * Create node deploy token * * Creates or reuses an application API key that can deploy the specified node. */ export const adminCreateNodeDeployToken = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/nodes/{node_id}/deploy-token', ...options }); /** * Get node utilization * * Returns aggregate resource utilization for a node. */ export const adminGetNodeUtilization = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/utilization', ...options }); /** * List server mounts * * Returns mount definitions that are eligible for a server, including whether each mount is attached. */ export const adminListServerMounts = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/mounts', ...options }); /** * Attach server mount * * Attaches an eligible mount definition to a server. */ export const adminAttachServerMount = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/mounts', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Detach server mount * * Detaches a mount definition from a server. */ export const adminDetachServerMount = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/mounts/{mount_id}', ...options }); /** * List servers * * Returns a paginated list of servers. */ export const adminListServers = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers', ...options }); /** * Create server * * Creates a server using explicit allocations or automatic deployment constraints. */ export const adminCreateServer = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get server by external ID * * Returns a single server by external identifier. */ export const adminGetServerByExternalId = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/external/{external_id}', ...options }); /** * Delete server * * Deletes a server and returns an error if Wings or database host cleanup fails. */ export const adminDeleteServer = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}', ...options }); /** * Get server * * Returns a single server by admin identifier. */ export const adminGetServer = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}', ...options }); /** * Update server details * * Updates a server name, owner, description, and external identifier. */ export const adminUpdateServerDetails = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/details', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update server build * * Updates server limits, primary allocation, and feature limits. */ export const adminUpdateServerBuild = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/build', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update server startup * * Updates the egg, Docker image, startup command, environment, and install-script behavior. */ export const adminUpdateServerStartup = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/startup', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update server suspension * * Suspends or unsuspends a server. */ export const adminUpdateServerSuspension = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/suspension', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Reinstall server * * Queues a server reinstall through Wings. */ export const adminReinstallServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/reinstall', ...options }); /** * Rebuild server * * Synchronizes the server configuration to Wings. */ export const adminRebuildServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/rebuild', ...options }); /** * Get server transfer progress * * Returns the active transfer for a server, or 204 when no transfer is in progress. */ export const adminGetServerTransferProgress = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/transfer/progress', ...options }); /** * Transfer server * * Starts a server transfer to another node using the specified target allocations. */ export const adminTransferServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/transfer', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Toggle server install state * * Toggles a server between installed and installing states unless it is marked as failed. */ export const adminToggleServerInstallState = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/settings/toggle-install', ...options }); /** * Force delete server * * Deletes a server while bypassing recoverable Wings or database host cleanup failures. */ export const adminForceDeleteServer = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/force', ...options }); /** * List server databases * * Returns all databases assigned to a server. */ export const adminListServerDatabases = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/databases', ...options }); /** * Create server database * * Creates a database for a server and returns the generated password. */ export const adminCreateServerDatabase = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/databases', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server database * * Deletes a database assigned to a server. */ export const adminDeleteServerDatabase = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/databases/{database_id}', ...options }); /** * Get server database * * Returns a single database assigned to a server. */ export const adminGetServerDatabase = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/databases/{database_id}', ...options }); /** * Rotate server database password * * Rotates the password for a database assigned to a server. */ export const adminRotateServerDatabasePassword = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/databases/{database_id}/rotate-password', ...options }); /** * List server backups * * Returns a paginated list of backups assigned to a server. */ export const adminListServerBackups = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/backups', ...options }); /** * Toggle server backup lock * * Toggles whether a server backup is locked against deletion. */ export const adminToggleServerBackupLock = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/servers/{server_admin_identifier}/backups/{backup_uuid}/toggle', ...options }); /** * List nodes * * Returns a paginated list of Wings nodes. */ export const adminListNodes = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes', ...options }); /** * Create node * * Creates a Wings node. HTTPS nodes must use a valid FQDN rather than a raw IP address. */ export const adminCreateNode = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete node * * Deletes a node when it has no active servers. */ export const adminDeleteNode = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}', ...options }); /** * Get node * * Returns a single Wings node by ID. */ export const adminGetNode = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}', ...options }); /** * Update node * * Updates a Wings node and optionally rotates its daemon secret. */ export const adminUpdateNode = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get node configuration * * Returns the raw Wings configuration payload for a node, including daemon authentication tokens. */ export const adminGetNodeConfiguration = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/api/admin/nodes/{node_id}/configuration', ...options }); /** * Sync node game tags * * Replaces the games a node accepts. A node with no game tags accepts any egg. */ export const adminSyncNodeGameTags = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/tags', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Sync node deployment tags * * Replaces the reservations on a node. A deploy must declare exactly these tags to land here. */ export const adminSyncNodeDeploymentTags = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/deployment-tags', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Bulk delete node allocations * * Deletes multiple unassigned allocations from a node by allocation ID. */ export const adminBulkDeleteNodeAllocations = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List node allocations * * Returns a paginated list of allocations for a node. */ export const adminListNodeAllocations = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations', ...options }); /** * Create node allocations * * Creates one or more allocations on a node from IP addresses and ports or port ranges. */ export const adminCreateNodeAllocations = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List node allocation IPs * * Returns distinct allocation IP addresses for a node. */ export const adminListNodeAllocationIps = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations/ips', ...options }); /** * List available node allocations * * Returns unassigned allocations for a node. */ export const adminListAvailableNodeAllocations = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations/available', ...options }); /** * Delete node allocation IP block * * Deletes every unassigned allocation for an IP address on a node. */ export const adminDeleteNodeAllocationIpBlock = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations/block', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete node allocation * * Deletes a single unassigned allocation from a node. */ export const adminDeleteNodeAllocation = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations/{allocation_id}', ...options }); /** * Update node allocation * * Updates the alias for a single allocation on a node. */ export const adminUpdateNodeAllocation = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/nodes/{node_id}/allocations/{allocation_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List locations * * Returns a paginated list of locations. */ export const adminListLocations = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations', ...options }); /** * Create location * * Creates a location for grouping nodes and servers. */ export const adminCreateLocation = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete location * * Deletes a location when no dependent resources prevent removal. */ export const adminDeleteLocation = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations/{location_id}', ...options }); /** * Get location * * Returns a single location by ID. */ export const adminGetLocation = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations/{location_id}', ...options }); /** * Update location * * Updates a location short identifier and description. */ export const adminUpdateLocation = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations/{location_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List eligible location nodes * * Returns nodes assigned to a location that can be selected for location-scoped workflows. */ export const adminListEligibleLocationNodes = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/locations/{location_id}/eligible-nodes', ...options }); /** * List mounts * * Returns a paginated list of mount definitions. */ export const adminListMounts = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts', ...options }); /** * Create mount * * Creates a mount definition and generates its UUID. */ export const adminCreateMount = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete mount * * Deletes a mount definition. */ export const adminDeleteMount = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}', ...options }); /** * Get mount * * Returns a single mount definition by ID. */ export const adminGetMount = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}', ...options }); /** * Update mount * * Updates an existing mount definition. */ export const adminUpdateMount = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Attach eggs to mount * * Attaches one or more eggs to a mount definition without removing existing egg attachments. */ export const adminAttachEggsToMount = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}/eggs', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Detach egg from mount * * Removes a single egg attachment from a mount definition. */ export const adminDetachEggFromMount = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}/eggs/{egg_id}', ...options }); /** * Attach nodes to mount * * Attaches one or more nodes to a mount definition without removing existing node attachments. */ export const adminAttachNodesToMount = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}/nodes', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Detach node from mount * * Removes a single node attachment from a mount definition. */ export const adminDetachNodeFromMount = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/mounts/{mount_id}/nodes/{node_id}', ...options }); /** * List egg catalog * * Returns the cached Pterodactyl egg catalog for searching and filtering. The index is cached for one hour. */ export const adminListEggCatalog = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/catalog', ...options }); /** * Refresh egg catalog * * Clears the cached Pterodactyl catalog so the next listing downloads the current index. */ export const adminRefreshEggCatalog = (options?: Options): RequestResult => (options?.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/catalog/refresh', ...options }); /** * Import catalog egg * * Downloads the selected entry from the Pterodactyl catalog and imports its egg definition and variables. */ export const adminImportCatalogEgg = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/catalog/import', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List egg variables * * Returns variables for an egg in display order. */ export const adminListEggVariables = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/variables', ...options }); /** * Create egg variable * * Creates a startup variable for an egg. */ export const adminCreateEggVariable = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/variables', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Reorder egg variables * * Updates the display order for variables on an egg. */ export const adminReorderEggVariables = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/variables/reorder', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete egg variable * * Deletes a startup variable from an egg. */ export const adminDeleteEggVariable = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/variables/{variable_id}', ...options }); /** * Update egg variable * * Updates a startup variable for an egg. */ export const adminUpdateEggVariable = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/variables/{variable_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get egg install script * * Returns an egg with its install script block. */ export const adminGetEggInstallScript = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/scripts', ...options }); /** * Update egg install script * * Updates the install script configuration for an egg. */ export const adminUpdateEggInstallScript = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/scripts', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Export egg * * Downloads an egg share JSON file. */ export const adminExportEgg = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'text', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/export', ...options }); /** * Update egg from import * * Updates an existing egg from an uploaded egg share JSON file. */ export const adminUpdateEggFromImport = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/import', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * Sync egg tags * * Replaces the tags applied to an egg. Values may be tag IDs or new tag names. */ export const adminSyncEggTags = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}/tags', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Import egg * * Creates an egg from an uploaded egg share JSON file. */ export const adminImportEgg = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/import', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * List eggs * * Returns a paginated list of egg definitions. */ export const adminListEggs = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs', ...options }); /** * Create egg * * Creates an egg definition. */ export const adminCreateEgg = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete egg * * Deletes an egg definition. */ export const adminDeleteEgg = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}', ...options }); /** * Get egg * * Returns a single egg definition by ID. */ export const adminGetEgg = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}', ...options }); /** * Update egg * * Updates an egg definition. */ export const adminUpdateEgg = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/eggs/{egg_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List tags * * Returns a paginated list of tags. */ export const adminListTags = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/tags', ...options }); /** * Create tag * * Creates a tag. */ export const adminCreateTag = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/tags', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete tag * * Deletes a tag and detaches it from every egg and node. */ export const adminDeleteTag = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/tags/{tag_id}', ...options }); /** * Get tag * * Returns a single tag by ID. */ export const adminGetTag = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/tags/{tag_id}', ...options }); /** * Update tag * * Updates an existing tag. Built-in game tags cannot be edited. */ export const adminUpdateTag = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/tags/{tag_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get settings * * Returns current general, mail, advanced, and metadata settings. */ export const adminGetSettings = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings', ...options }); /** * Delete logo * * Deletes the panel logo, restoring the default branding. */ export const adminDeleteLogo = (options?: Options): RequestResult => (options?.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/logo', ...options }); /** * Upload logo * * Stores the uploaded image as the panel logo, shown as the favicon and on the login page and navigation bar, and deletes the one it replaces. */ export const adminUploadLogo = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/logo', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * Update general settings * * Updates panel branding, 2FA requirements, and default locale settings. */ export const adminUpdateGeneralSettings = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/general', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update mail settings * * Updates SMTP mail settings and restarts queued workers so they reload configuration. */ export const adminUpdateMailSettings = (options?: Options): RequestResult => (options?.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/mail', ...options, headers: { 'Content-Type': 'application/json', ...options?.headers } }); /** * Send test mail * * Sends a test email to the authenticated administrator using the configured mail transport. */ export const adminSendTestMail = (options?: Options): RequestResult => (options?.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/mail/test', ...options }); /** * Update advanced settings * * Updates reCAPTCHA, HTTP client timeout, and client allocation feature settings. */ export const adminUpdateAdvancedSettings = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/settings/advanced', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List database hosts * * Returns a paginated list of database hosts. */ export const adminListDatabaseHosts = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts', ...options }); /** * Create database host * * Creates a database host after validating that the panel can connect to it. */ export const adminCreateDatabaseHost = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete database host * * Deletes a database host when no server databases depend on it. */ export const adminDeleteDatabaseHost = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts/{databaseHost_id}', ...options }); /** * Get database host * * Returns a single database host by ID. */ export const adminGetDatabaseHost = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts/{databaseHost_id}', ...options }); /** * Update database host * * Updates a database host after validating that the panel can connect to the supplied host details. */ export const adminUpdateDatabaseHost = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts/{databaseHost_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List database host databases * * Returns a paginated list of server databases assigned to a database host. */ export const adminListDatabaseHostDatabases = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/database-hosts/{databaseHost_id}/databases', ...options }); /** * List API keys * * Returns a paginated list of application API keys. */ export const adminListApiKeys = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/api-keys', ...options }); /** * Create API key * * Creates a new application API key and returns the plaintext secret token once. */ export const adminCreateApiKey = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/api-keys', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete API key * * Deletes an application API key by identifier. */ export const adminDeleteApiKey = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/api-keys/{identifier}', ...options }); /** * Get API key * * Returns a single application API key by identifier without exposing its token. */ export const adminGetApiKey = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/api-keys/{identifier}', ...options }); /** * Update API key * * Updates an application API key memo and resource permissions without regenerating the token. */ export const adminUpdateApiKey = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/api-keys/{identifier}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get version information * * Returns panel, Wings, and project version metadata. */ export const adminGetVersionInformation = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/admin/version', ...options }); /** * List users * * Returns a paginated list of panel users visible to the application API key. */ export const applicationListUsers = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users', ...options }); /** * Create user * * Creates a new panel user and returns the created resource. */ export const applicationCreateUser = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete user * * Deletes a panel user by internal numeric ID. */ export const applicationDeleteUser = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users/{user_id}', ...options }); /** * Get user * * Returns a single panel user by internal numeric ID. */ export const applicationGetUser = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users/{user_id}', ...options }); /** * Update user * * Updates account details for an existing panel user. */ export const applicationUpdateUser = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users/{user_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get user by external ID * * Returns a single panel user by its external identifier. */ export const applicationGetUserByExternalId = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/users/external/{external_id}', ...options }); /** * List nodes * * Returns a paginated list of Wings nodes registered on the panel. */ export const applicationListNodes = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes', ...options }); /** * Create node * * Creates a new Wings node and returns the created resource. */ export const applicationCreateNode = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List deployable nodes * * Returns nodes that can satisfy the requested memory, disk, and optional location deployment constraints. */ export const applicationListDeployableNodes = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/deployable', ...options }); /** * Delete node * * Deletes a Wings node by internal numeric ID when no servers are attached. */ export const applicationDeleteNode = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}', ...options }); /** * Get node * * Returns a single Wings node by internal numeric ID. */ export const applicationGetNode = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}', ...options }); /** * Update node * * Updates an existing Wings node by internal numeric ID. */ export const applicationUpdateNode = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get node configuration * * Returns the Wings configuration payload for a node, including node authentication tokens. Requires write access to nodes. */ export const applicationGetNodeConfiguration = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}/configuration', ...options }); /** * List node allocations * * Returns a paginated list of allocations belonging to a node. */ export const applicationListNodeAllocations = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}/allocations', ...options }); /** * Create node allocations * * Assigns one or more allocation ports to a node. */ export const applicationCreateNodeAllocations = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}/allocations', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete node allocation * * Deletes an allocation from a node when no server is using it. */ export const applicationDeleteNodeAllocation = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/nodes/{node_id}/allocations/{allocation_id}', ...options }); /** * List locations * * Returns a paginated list of all locations registered on the panel. */ export const applicationListLocations = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/locations', ...options }); /** * Create location * * Creates a new location and returns the created resource. */ export const applicationCreateLocation = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/locations', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete location * * Deletes a location by internal numeric ID. */ export const applicationDeleteLocation = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/locations/{location_id}', ...options }); /** * Get location * * Returns a single location by internal numeric ID. */ export const applicationGetLocation = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/locations/{location_id}', ...options }); /** * Update location * * Updates an existing location by internal numeric ID. */ export const applicationUpdateLocation = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/locations/{location_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List eggs * * Returns a paginated list of server eggs available on the panel. */ export const applicationListEggs = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/eggs', ...options }); /** * Get egg * * Returns a single egg by internal numeric ID. */ export const applicationGetEgg = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/eggs/{egg_id}', ...options }); /** * List tags * * Returns a paginated list of the tags that group eggs. */ export const applicationListTags = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/tags', ...options }); /** * Get tag * * Returns a single tag by internal numeric ID. */ export const applicationGetTag = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/tags/{tag_id}', ...options }); /** * List servers * * Returns a paginated list of servers visible to the application API key. */ export const applicationListServers = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers', ...options }); /** * Create server * * Creates a new server using either explicit allocations or automatic deployment constraints. */ export const applicationCreateServer = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server * * Deletes a server. The force route bypasses recoverable Wings or database host deletion failures. */ export const applicationDeleteServerForServersServerId = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}', ...options }); /** * Get server * * Returns a single server by internal numeric ID. */ export const applicationGetServer = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}', ...options }); /** * Get server by external ID * * Returns a single server by its external identifier. */ export const applicationGetServerByExternalId = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/external/{external_id}', ...options }); /** * Update server details * * Updates ownership and display details for a server. */ export const applicationUpdateServerDetails = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/details', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update server build * * Updates resource limits, feature limits, and allocations for a server. */ export const applicationUpdateServerBuild = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/build', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update server startup * * Updates startup command, image, egg, and environment variables for a server. */ export const applicationUpdateServerStartup = (options: Options): RequestResult => (options.client ?? client).patch({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/startup', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Suspend server * * Marks a server as suspended and syncs the state to Wings. */ export const applicationSuspendServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/suspend', ...options }); /** * Unsuspend server * * Clears a server suspension and syncs the state to Wings. */ export const applicationUnsuspendServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/unsuspend', ...options }); /** * Reinstall server * * Marks a server for reinstall and asks Wings to reinstall it. */ export const applicationReinstallServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/reinstall', ...options }); /** * Delete server * * Deletes a server. The force route bypasses recoverable Wings or database host deletion failures. */ export const applicationDeleteServerForServersServerIdForce = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/{force}', ...options }); /** * List server databases * * Returns all databases attached to a server. */ export const applicationListServerDatabases = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/databases', ...options }); /** * Create server database * * Creates a database for a server on a configured database host. */ export const applicationCreateServerDatabase = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/databases', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server database * * Deletes a database attached to a server. */ export const applicationDeleteServerDatabase = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/databases/{database_id}', ...options }); /** * Get server database * * Returns a single database attached to a server. */ export const applicationGetServerDatabase = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/databases/{database_id}', ...options }); /** * Reset server database password * * Rotates the password for a database attached to a server. */ export const applicationResetServerDatabasePassword = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/application/servers/{server_id}/databases/{database_id}/reset-password', ...options }); /** * Login * * Authenticates a browser session. Returns a complete login payload, or a two-factor checkpoint token when the account requires a second factor. */ export const authLogin = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', url: '/auth/login', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Complete login checkpoint * * Completes a two-factor login checkpoint using either a TOTP code or a recovery token. */ export const authCompleteLoginCheckpoint = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', url: '/auth/login/checkpoint', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Request password reset email * * Sends a password reset email when the account exists. The response is intentionally the same when no matching account is found. */ export const authRequestPasswordResetEmail = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', url: '/auth/password', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Reset password * * Resets an account password using a password reset token. The response tells the frontend whether the user must return to the login form. */ export const authResetPassword = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', url: '/auth/password/reset', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Logout * * Destroys the current browser session and regenerates the CSRF token. */ export const authLogout = (options?: Options): RequestResult => (options?.client ?? client).post({ security: [{ in: 'cookie', name: 'pterodactyl_session', type: 'apiKey' }], url: '/auth/logout', ...options }); /** * List client servers * * Returns a paginated list of servers the authenticated user can access as an owner, subuser, or administrator. */ export const clientListClientServers = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client', ...options }); /** * List server permissions * * Returns the permission keys that can be granted to server subusers, including those registered by enabled extensions under `ext.`. */ export const clientListServerPermissions = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/permissions', ...options }); /** * Get extension job progress * * Returns the latest user-scoped progress snapshot, including after reconnect. Expired, disabled, and inaccessible jobs return 404. */ export const clientGetExtensionJobProgress = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/extension-progress/{extension}/{job}', ...options }); /** * Get account * * Returns profile details for the authenticated user. */ export const clientGetAccount = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account', ...options }); /** * Get two-factor setup * * Creates or returns the current two-factor setup payload for the authenticated user. */ export const clientGetTwoFactorSetup = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/two-factor', ...options }); /** * Enable two-factor authentication * * Enables two-factor authentication for the authenticated user and returns one-time recovery tokens. */ export const clientEnableTwoFactorAuthentication = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/two-factor', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Disable two-factor authentication * * Disables two-factor authentication for the authenticated user after verifying their password. */ export const clientDisableTwoFactorAuthentication = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/two-factor/disable', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update account email * * Updates the authenticated user's email address after verifying their current password. */ export const clientUpdateAccountEmail = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/email', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Update account password * * Updates the authenticated user's password and revokes other active sessions where supported. */ export const clientUpdateAccountPassword = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/password', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete account avatar * * Deletes the authenticated user's avatar. */ export const clientDeleteAccountAvatar = (options?: Options): RequestResult => (options?.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/avatar', ...options }); /** * Update account avatar * * Stores the uploaded image as the authenticated user's avatar and deletes the one it replaces. */ export const clientUpdateAccountAvatar = (options: Options): RequestResult => (options.client ?? client).post({ ...formDataBodySerializer, responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/avatar', ...options, headers: { 'Content-Type': null, ...options.headers } }); /** * List account activity * * Returns a paginated list of activity log entries for the authenticated user account. */ export const clientListAccountActivity = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/activity', ...options }); /** * List account activity filter options * * Returns the distinct events and users present in the account activity log. */ export const clientListAccountActivityFilterOptions = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/activity/filters', ...options }); /** * List account API keys * * Returns all client API keys owned by the authenticated user. */ export const clientListAccountApiKeys = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/api-keys', ...options }); /** * Create account API key * * Creates a client API key for the authenticated user and returns the secret token once. */ export const clientCreateAccountApiKey = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/api-keys', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete account API key * * Deletes one client API key owned by the authenticated user. */ export const clientDeleteAccountApiKey = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/api-keys/{identifier}', ...options }); /** * List SSH keys * * Returns all SSH public keys configured for the authenticated user. */ export const clientListSshKeys = (options?: Options): RequestResult => (options?.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/ssh-keys', ...options }); /** * Create SSH key * * Adds an SSH public key to the authenticated user account. */ export const clientCreateSshKey = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/ssh-keys', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete SSH key * * Deletes an SSH key from the authenticated user account by fingerprint. Missing keys are treated as already deleted. */ export const clientDeleteSshKey = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/account/ssh-keys/remove', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get server * * Returns details for one server the authenticated user can access. */ export const clientGetServer = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}', ...options }); /** * Get websocket credentials * * Returns a short-lived Wings websocket token and socket URL for the server. */ export const clientGetWebsocketCredentials = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/websocket', ...options }); /** * Get server resources * * Returns the latest cached resource utilization reported by Wings for the server. */ export const clientGetServerResources = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/resources', ...options }); /** * Get server logs * * Returns the most recent console output lines Wings holds for the server, oldest first. */ export const clientGetServerLogs = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/logs', ...options }); /** * Get server extension job progress * * Returns the latest server-scoped snapshot to its creator or users holding the operation permission. Expired, disabled, and inaccessible jobs return 404. */ export const clientGetServerExtensionJobProgress = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/extension-progress/{extension}/{job}', ...options }); /** * List server activity * * Returns a paginated list of activity log entries for the server. */ export const clientListServerActivity = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/activity', ...options }); /** * List server activity filter options * * Returns the distinct events and users present in the server activity log. */ export const clientListServerActivityFilterOptions = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/activity/filters', ...options }); /** * Send server command * * Sends a console command to the running server through Wings. */ export const clientSendServerCommand = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/command', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Send power action * * Sends a power signal to the server through Wings. */ export const clientSendPowerAction = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/power', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List server databases * * Returns databases attached to a server visible to the authenticated user. */ export const clientListServerDatabases = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/databases', ...options }); /** * Create server database * * Creates a database for a server on an automatically selected database host. */ export const clientCreateServerDatabase = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/databases', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Rotate server database password * * Rotates the password for a database attached to a server and returns the updated database. */ export const clientRotateServerDatabasePassword = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/databases/{database_id}/rotate-password', ...options }); /** * Delete server database * * Deletes a database attached to a server. */ export const clientDeleteServerDatabase = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/databases/{database_id}', ...options }); /** * List files * * Returns files and folders in a server directory. */ export const clientListFiles = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/list', ...options }); /** * Get file contents * * Returns raw text contents for a server file. */ export const clientGetFileContents = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'text', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/contents', ...options }); /** * Get file download URL * * Returns a short-lived signed URL for downloading a server file directly from Wings. */ export const clientGetFileDownloadUrl = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/download', ...options }); /** * Rename files * * Renames one or more files or folders in a server directory. */ export const clientRenameFiles = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/rename', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Copy file * * Creates a copy of a file on the server. */ export const clientCopyFile = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/copy', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Write file contents * * Writes the raw request body to a server file. This endpoint does not expect a JSON wrapper for the file contents. */ export const clientWriteFileContents = (options: Options): RequestResult => (options.client ?? client).post({ bodySerializer: null, security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/write', ...options, headers: { 'Content-Type': 'text/plain', ...options.headers } }); /** * Compress files * * Creates an archive from one or more files or folders in a server directory. */ export const clientCompressFiles = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/compress', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Decompress file * * Extracts an archive in a server directory. */ export const clientDecompressFile = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/decompress', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete files * * Deletes one or more files or folders from a server directory. */ export const clientDeleteFiles = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/delete', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Create folder * * Creates a folder in a server directory. */ export const clientCreateFolder = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/create-folder', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Change file permissions * * Updates POSIX mode bits for one or more files or folders in a server directory. */ export const clientChangeFilePermissions = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/chmod', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Pull remote file * * Requests that Wings download a remote file into a server directory. */ export const clientPullRemoteFile = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/pull', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get file upload URL * * Returns a short-lived signed URL for uploading a file directly to Wings. */ export const clientGetFileUploadUrl = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/files/upload', ...options }); /** * List server schedules * * Returns all schedules configured for the server, including their tasks. */ export const clientListServerSchedules = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules', ...options }); /** * Create server schedule * * Creates a schedule for the server. */ export const clientCreateServerSchedule = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server schedule * * Deletes a schedule and its tasks from the server. */ export const clientDeleteServerSchedule = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}', ...options }); /** * Get server schedule * * Returns one schedule configured for the server, including its tasks. */ export const clientGetServerSchedule = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}', ...options }); /** * Update server schedule * * Updates a schedule for the server and recalculates its next run time. */ export const clientUpdateServerSchedule = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Execute server schedule * * Queues a schedule to run immediately regardless of its active state. */ export const clientExecuteServerSchedule = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}/execute', ...options }); /** * Create schedule task * * Creates a task in a server schedule. */ export const clientCreateScheduleTask = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}/tasks', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete schedule task * * Deletes a task from a server schedule and compacts subsequent sequence IDs. */ export const clientDeleteScheduleTask = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}/tasks/{task_id}', ...options }); /** * Update schedule task * * Updates a task in a server schedule, including its sequence position. */ export const clientUpdateScheduleTask = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/schedules/{schedule_id}/tasks/{task_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List server allocations * * Returns all network allocations assigned to the server. */ export const clientListServerAllocations = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/network/allocations', ...options }); /** * Create server allocation * * Assigns an available allocation to the server. */ export const clientCreateServerAllocation = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/network/allocations', ...options }); /** * Delete server allocation * * Removes a non-primary allocation from the server and returns it to the available pool. */ export const clientDeleteServerAllocation = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/network/allocations/{allocation_id}', ...options }); /** * Update allocation notes * * Updates notes attached to a server allocation. */ export const clientUpdateAllocationNotes = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/network/allocations/{allocation_id}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Set primary allocation * * Sets the primary network allocation for the server. */ export const clientSetPrimaryAllocation = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/network/allocations/{allocation_id}/primary', ...options }); /** * List server subusers * * Returns subusers assigned to the server. */ export const clientListServerSubusers = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/users', ...options }); /** * Create server subuser * * Assigns an existing or new user as a subuser on the server. */ export const clientCreateServerSubuser = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/users', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server subuser * * Removes a subuser assignment from the server and revokes SFTP access tokens. */ export const clientDeleteServerSubuser = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/users/{user}', ...options }); /** * Get server subuser * * Returns one subuser assignment for the server. */ export const clientGetServerSubuser = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/users/{user}', ...options }); /** * Update server subuser * * Updates permissions for a server subuser and revokes their SFTP access tokens. */ export const clientUpdateServerSubuser = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/users/{user}', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * List server backups * * Returns a paginated list of backups for the server. */ export const clientListServerBackups = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups', ...options }); /** * Create server backup * * Starts a new backup for the server. */ export const clientCreateServerBackup = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Delete server backup * * Deletes a backup record and its stored archive. */ export const clientDeleteServerBackup = (options: Options): RequestResult => (options.client ?? client).delete({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups/{backup_uuid}', ...options }); /** * Get server backup * * Returns information about one server backup. */ export const clientGetServerBackup = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups/{backup_uuid}', ...options }); /** * Get backup download URL * * Returns a signed URL for downloading a server backup. */ export const clientGetBackupDownloadUrl = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups/{backup_uuid}/download', ...options }); /** * Toggle backup lock * * Toggles whether a backup is locked against deletion. */ export const clientToggleBackupLock = (options: Options): RequestResult => (options.client ?? client).post({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups/{backup_uuid}/lock', ...options }); /** * Restore server backup * * Restores a backup over the server files. */ export const clientRestoreServerBackup = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/backups/{backup_uuid}/restore', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get startup configuration * * Returns the rendered startup command, available Docker images, raw startup command, and user-visible variables for the server. */ export const clientGetStartupConfiguration = (options: Options): RequestResult => (options.client ?? client).get({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/startup', ...options }); /** * Update startup variable * * Updates one editable startup variable for the server and returns the updated rendered startup command. */ export const clientUpdateStartupVariable = (options: Options): RequestResult => (options.client ?? client).put({ responseType: 'json', security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/startup/variable', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Rename server * * Updates the server name and optionally its description. */ export const clientRenameServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/settings/rename', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Reinstall server * * Queues a reinstall of the server on Wings. */ export const clientReinstallServer = (options: Options): RequestResult => (options.client ?? client).post({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/settings/reinstall', ...options }); /** * Set server Docker image * * Updates the server Docker image to one of the images allowed by the server egg. */ export const clientSetServerDockerImage = (options: Options): RequestResult => (options.client ?? client).put({ security: [{ scheme: 'bearer', type: 'http' }], url: '/api/client/servers/{server_uuid}/settings/docker-image', ...options, headers: { 'Content-Type': 'application/json', ...options.headers } }); /** * Get CSRF cookie * * Initializes the Laravel Sanctum CSRF cookie required before browser-session authentication requests. */ export const authGetCsrfCookie = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/sanctum/csrf-cookie', ...options });