Files

3486 lines
183 KiB
TypeScript
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
// 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';
2026-11-05 14:23:59 -05:00
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, Admin
2026-10-05 18:10:18 -04:00
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
/**
* 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<string, unknown> : ClientMeta;
};
/**
* List languages
*
* Returns the languages available for panel locale selectors.
*/
export const adminListLanguages = <ThrowOnError extends boolean = true>(options?: Options<AdminListLanguagesData, ThrowOnError>): RequestResult<AdminListLanguagesResponses, AdminListLanguagesErrors, ThrowOnError> => (options?.client ?? client).get<AdminListLanguagesResponses, AdminListLanguagesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListActivityData, ThrowOnError>): RequestResult<AdminListActivityResponses, AdminListActivityErrors, ThrowOnError> => (options?.client ?? client).get<AdminListActivityResponses, AdminListActivityErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListActivityFilterOptionsData, ThrowOnError>): RequestResult<AdminListActivityFilterOptionsResponses, AdminListActivityFilterOptionsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListActivityFilterOptionsResponses, AdminListActivityFilterOptionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListExtensionsData, ThrowOnError>): RequestResult<AdminListExtensionsResponses, AdminListExtensionsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListExtensionsResponses, AdminListExtensionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminInstallExtensionData, ThrowOnError>): RequestResult<AdminInstallExtensionResponses, AdminInstallExtensionErrors, ThrowOnError> => (options.client ?? client).post<AdminInstallExtensionResponses, AdminInstallExtensionErrors, ThrowOnError>({
...formDataBodySerializer,
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListExtensionFormsData, ThrowOnError>): RequestResult<AdminListExtensionFormsResponses, AdminListExtensionFormsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListExtensionFormsResponses, AdminListExtensionFormsErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/extensions/forms',
...options
});
2026-10-05 18:10:18 -04:00
/**
* Get extension settings
*
* Returns the auto-render form schema (with current public values) for an extension that registered a settings definition.
*/
export const adminGetExtensionSettings = <ThrowOnError extends boolean = true>(options: Options<AdminGetExtensionSettingsData, ThrowOnError>): RequestResult<AdminGetExtensionSettingsResponses, AdminGetExtensionSettingsErrors, ThrowOnError> => (options.client ?? client).get<AdminGetExtensionSettingsResponses, AdminGetExtensionSettingsErrors, ThrowOnError>({
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.
2026-10-05 18:10:18 -04:00
*/
export const adminUpdateExtensionSettings = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateExtensionSettingsData, ThrowOnError>): RequestResult<AdminUpdateExtensionSettingsResponses, AdminUpdateExtensionSettingsErrors, ThrowOnError> => (options.client ?? client).patch<AdminUpdateExtensionSettingsResponses, AdminUpdateExtensionSettingsErrors, ThrowOnError>({
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-11 02:28:28 -04:00
url: '/api/admin/extensions/{extension}/settings',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* 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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetExtensionIconData, ThrowOnError>): RequestResult<AdminGetExtensionIconResponses, AdminGetExtensionIconErrors, ThrowOnError> => (options.client ?? client).get<AdminGetExtensionIconResponses, AdminGetExtensionIconErrors, ThrowOnError>({
responseType: 'blob',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/extensions/{extension}/icon',
...options
});
2026-10-05 18:10:18 -04:00
/**
* Clear extension setting file
*
* Deletes the file stored for a file setting, which returns the setting to its default.
*/
export const adminClearExtensionSettingFile = <ThrowOnError extends boolean = true>(options: Options<AdminClearExtensionSettingFileData, ThrowOnError>): RequestResult<AdminClearExtensionSettingFileResponses, AdminClearExtensionSettingFileErrors, ThrowOnError> => (options.client ?? client).delete<AdminClearExtensionSettingFileResponses, AdminClearExtensionSettingFileErrors, ThrowOnError>({
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUploadExtensionSettingFileData, ThrowOnError>): RequestResult<AdminUploadExtensionSettingFileResponses, AdminUploadExtensionSettingFileErrors, ThrowOnError> => (options.client ?? client).post<AdminUploadExtensionSettingFileResponses, AdminUploadExtensionSettingFileErrors, ThrowOnError>({
...formDataBodySerializer,
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
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 = <ThrowOnError extends boolean = true>(options: Options<AdminEnableExtensionData, ThrowOnError>): RequestResult<AdminEnableExtensionResponses, AdminEnableExtensionErrors, ThrowOnError> => (options.client ?? client).post<AdminEnableExtensionResponses, AdminEnableExtensionErrors, ThrowOnError>({
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
url: '/api/admin/extensions/{extension}/enable',
...options
});
/**
* Disable extension
*
* Disables an installed extension without removing files or data.
*/
export const adminDisableExtension = <ThrowOnError extends boolean = true>(options: Options<AdminDisableExtensionData, ThrowOnError>): RequestResult<AdminDisableExtensionResponses, AdminDisableExtensionErrors, ThrowOnError> => (options.client ?? client).post<AdminDisableExtensionResponses, AdminDisableExtensionErrors, ThrowOnError>({
responseType: 'json',
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
url: '/api/admin/extensions/{extension}/disable',
...options
});
/**
* Remove extension
*
2026-10-06 14:01:38 -04:00
* Deletes extension files, published assets, settings, subuser permission grants, and the install record.
2026-10-05 18:10:18 -04:00
*/
export const adminRemoveExtension = <ThrowOnError extends boolean = true>(options: Options<AdminRemoveExtensionData, ThrowOnError>): RequestResult<AdminRemoveExtensionResponses, AdminRemoveExtensionErrors, ThrowOnError> => (options.client ?? client).delete<AdminRemoveExtensionResponses, AdminRemoveExtensionErrors, ThrowOnError>({
2026-10-11 03:22:03 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
url: '/api/admin/extensions/{extension}',
...options
});
2026-10-12 07:47:42 -04:00
/**
* 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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListThemesData, ThrowOnError>): RequestResult<AdminListThemesResponses, AdminListThemesErrors, ThrowOnError> => (options?.client ?? client).get<AdminListThemesResponses, AdminListThemesErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/themes',
...options
});
/**
* Get theme settings
*
2026-10-12 21:24:43 -04:00
* Returns the settings a theme declares, with their current values. Classic has none.
2026-10-12 07:47:42 -04:00
*/
export const adminGetThemeSettings = <ThrowOnError extends boolean = true>(options: Options<AdminGetThemeSettingsData, ThrowOnError>): RequestResult<AdminGetThemeSettingsResponses, AdminGetThemeSettingsErrors, ThrowOnError> => (options.client ?? client).get<AdminGetThemeSettingsResponses, AdminGetThemeSettingsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateThemeSettingsData, ThrowOnError>): RequestResult<AdminUpdateThemeSettingsResponses, AdminUpdateThemeSettingsErrors, ThrowOnError> => (options.client ?? client).patch<AdminUpdateThemeSettingsResponses, AdminUpdateThemeSettingsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminStopThemePreviewData, ThrowOnError>): RequestResult<AdminStopThemePreviewResponses, AdminStopThemePreviewErrors, ThrowOnError> => (options?.client ?? client).delete<AdminStopThemePreviewResponses, AdminStopThemePreviewErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminActivateThemeData, ThrowOnError>): RequestResult<AdminActivateThemeResponses, AdminActivateThemeErrors, ThrowOnError> => (options.client ?? client).post<AdminActivateThemeResponses, AdminActivateThemeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminPreviewThemeData, ThrowOnError>): RequestResult<AdminPreviewThemeResponses, AdminPreviewThemeErrors, ThrowOnError> => (options.client ?? client).post<AdminPreviewThemeResponses, AdminPreviewThemeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminClearThemeImageData, ThrowOnError>): RequestResult<AdminClearThemeImageResponses, AdminClearThemeImageErrors, ThrowOnError> => (options.client ?? client).delete<AdminClearThemeImageResponses, AdminClearThemeImageErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUploadThemeImageData, ThrowOnError>): RequestResult<AdminUploadThemeImageResponses, AdminUploadThemeImageErrors, ThrowOnError> => (options.client ?? client).post<AdminUploadThemeImageResponses, AdminUploadThemeImageErrors, ThrowOnError>({
...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
}
});
2026-10-05 18:10:18 -04:00
/**
* List users
*
* Returns a paginated list of panel users, sorted with root administrators first by default.
*/
export const adminListUsers = <ThrowOnError extends boolean = true>(options?: Options<AdminListUsersData, ThrowOnError>): RequestResult<AdminListUsersResponses, AdminListUsersErrors, ThrowOnError> => (options?.client ?? client).get<AdminListUsersResponses, AdminListUsersErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateUserData, ThrowOnError>): RequestResult<AdminCreateUserResponses, AdminCreateUserErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateUserResponses, AdminCreateUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetUserByExternalIdData, ThrowOnError>): RequestResult<AdminGetUserByExternalIdResponses, AdminGetUserByExternalIdErrors, ThrowOnError> => (options.client ?? client).get<AdminGetUserByExternalIdResponses, AdminGetUserByExternalIdErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteUserData, ThrowOnError>): RequestResult<AdminDeleteUserResponses, AdminDeleteUserErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteUserResponses, AdminDeleteUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetUserData, ThrowOnError>): RequestResult<AdminGetUserResponses, AdminGetUserErrors, ThrowOnError> => (options.client ?? client).get<AdminGetUserResponses, AdminGetUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateUserData, ThrowOnError>): RequestResult<AdminUpdateUserResponses, AdminUpdateUserErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateUserResponses, AdminUpdateUserErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/users/{user_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* Disable user two-factor authentication
*
* Clears the configured TOTP secret and disables two-factor authentication for a user.
*/
export const adminDisableUserTwoFactorAuthentication = <ThrowOnError extends boolean = true>(options: Options<AdminDisableUserTwoFactorAuthenticationData, ThrowOnError>): RequestResult<AdminDisableUserTwoFactorAuthenticationResponses, AdminDisableUserTwoFactorAuthenticationErrors, ThrowOnError> => (options.client ?? client).post<AdminDisableUserTwoFactorAuthenticationResponses, AdminDisableUserTwoFactorAuthenticationErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/users/{user_id}/disable-2fa',
...options
});
2026-10-20 15:46:16 -04:00
/**
* Delete user avatar
*
* Deletes the user's avatar.
*/
export const adminDeleteUserAvatar = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteUserAvatarData, ThrowOnError>): RequestResult<AdminDeleteUserAvatarResponses, AdminDeleteUserAvatarErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteUserAvatarResponses, AdminDeleteUserAvatarErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateUserAvatarData, ThrowOnError>): RequestResult<AdminUpdateUserAvatarResponses, AdminUpdateUserAvatarErrors, ThrowOnError> => (options.client ?? client).post<AdminUpdateUserAvatarResponses, AdminUpdateUserAvatarErrors, ThrowOnError>({
...formDataBodySerializer,
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/users/{user_id}/avatar',
...options,
headers: {
'Content-Type': null,
...options.headers
}
});
2026-10-05 18:10:18 -04:00
/**
* Get node system information
*
* Proxies Wings system information for a node.
*/
export const adminGetNodeSystemInformation = <ThrowOnError extends boolean = true>(options: Options<AdminGetNodeSystemInformationData, ThrowOnError>): RequestResult<AdminGetNodeSystemInformationResponses, AdminGetNodeSystemInformationErrors, ThrowOnError> => (options.client ?? client).get<AdminGetNodeSystemInformationResponses, AdminGetNodeSystemInformationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateNodeDeployTokenData, ThrowOnError>): RequestResult<AdminCreateNodeDeployTokenResponses, AdminCreateNodeDeployTokenErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateNodeDeployTokenResponses, AdminCreateNodeDeployTokenErrors, ThrowOnError>({
responseType: 'json',
2026-10-12 07:47:42 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-05 18:10:18 -04:00
url: '/api/admin/nodes/{node_id}/deploy-token',
...options
});
/**
* Get node utilization
*
* Returns aggregate resource utilization for a node.
*/
export const adminGetNodeUtilization = <ThrowOnError extends boolean = true>(options: Options<AdminGetNodeUtilizationData, ThrowOnError>): RequestResult<AdminGetNodeUtilizationResponses, AdminGetNodeUtilizationErrors, ThrowOnError> => (options.client ?? client).get<AdminGetNodeUtilizationResponses, AdminGetNodeUtilizationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListServerMountsData, ThrowOnError>): RequestResult<AdminListServerMountsResponses, AdminListServerMountsErrors, ThrowOnError> => (options.client ?? client).get<AdminListServerMountsResponses, AdminListServerMountsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminAttachServerMountData, ThrowOnError>): RequestResult<AdminAttachServerMountResponses, AdminAttachServerMountErrors, ThrowOnError> => (options.client ?? client).post<AdminAttachServerMountResponses, AdminAttachServerMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDetachServerMountData, ThrowOnError>): RequestResult<AdminDetachServerMountResponses, AdminDetachServerMountErrors, ThrowOnError> => (options.client ?? client).delete<AdminDetachServerMountResponses, AdminDetachServerMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListServersData, ThrowOnError>): RequestResult<AdminListServersResponses, AdminListServersErrors, ThrowOnError> => (options?.client ?? client).get<AdminListServersResponses, AdminListServersErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateServerData, ThrowOnError>): RequestResult<AdminCreateServerResponses, AdminCreateServerErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateServerResponses, AdminCreateServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetServerByExternalIdData, ThrowOnError>): RequestResult<AdminGetServerByExternalIdResponses, AdminGetServerByExternalIdErrors, ThrowOnError> => (options.client ?? client).get<AdminGetServerByExternalIdResponses, AdminGetServerByExternalIdErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteServerData, ThrowOnError>): RequestResult<AdminDeleteServerResponses, AdminDeleteServerErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteServerResponses, AdminDeleteServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetServerData, ThrowOnError>): RequestResult<AdminGetServerResponses, AdminGetServerErrors, ThrowOnError> => (options.client ?? client).get<AdminGetServerResponses, AdminGetServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateServerDetailsData, ThrowOnError>): RequestResult<AdminUpdateServerDetailsResponses, AdminUpdateServerDetailsErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateServerDetailsResponses, AdminUpdateServerDetailsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateServerBuildData, ThrowOnError>): RequestResult<AdminUpdateServerBuildResponses, AdminUpdateServerBuildErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateServerBuildResponses, AdminUpdateServerBuildErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateServerStartupData, ThrowOnError>): RequestResult<AdminUpdateServerStartupResponses, AdminUpdateServerStartupErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateServerStartupResponses, AdminUpdateServerStartupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateServerSuspensionData, ThrowOnError>): RequestResult<AdminUpdateServerSuspensionResponses, AdminUpdateServerSuspensionErrors, ThrowOnError> => (options.client ?? client).post<AdminUpdateServerSuspensionResponses, AdminUpdateServerSuspensionErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminReinstallServerData, ThrowOnError>): RequestResult<AdminReinstallServerResponses, AdminReinstallServerErrors, ThrowOnError> => (options.client ?? client).post<AdminReinstallServerResponses, AdminReinstallServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminRebuildServerData, ThrowOnError>): RequestResult<AdminRebuildServerResponses, AdminRebuildServerErrors, ThrowOnError> => (options.client ?? client).post<AdminRebuildServerResponses, AdminRebuildServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetServerTransferProgressData, ThrowOnError>): RequestResult<AdminGetServerTransferProgressResponses, AdminGetServerTransferProgressErrors, ThrowOnError> => (options.client ?? client).get<AdminGetServerTransferProgressResponses, AdminGetServerTransferProgressErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminTransferServerData, ThrowOnError>): RequestResult<AdminTransferServerResponses, AdminTransferServerErrors, ThrowOnError> => (options.client ?? client).post<AdminTransferServerResponses, AdminTransferServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminToggleServerInstallStateData, ThrowOnError>): RequestResult<AdminToggleServerInstallStateResponses, AdminToggleServerInstallStateErrors, ThrowOnError> => (options.client ?? client).post<AdminToggleServerInstallStateResponses, AdminToggleServerInstallStateErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminForceDeleteServerData, ThrowOnError>): RequestResult<AdminForceDeleteServerResponses, AdminForceDeleteServerErrors, ThrowOnError> => (options.client ?? client).delete<AdminForceDeleteServerResponses, AdminForceDeleteServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListServerDatabasesData, ThrowOnError>): RequestResult<AdminListServerDatabasesResponses, AdminListServerDatabasesErrors, ThrowOnError> => (options.client ?? client).get<AdminListServerDatabasesResponses, AdminListServerDatabasesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateServerDatabaseData, ThrowOnError>): RequestResult<AdminCreateServerDatabaseResponses, AdminCreateServerDatabaseErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateServerDatabaseResponses, AdminCreateServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteServerDatabaseData, ThrowOnError>): RequestResult<AdminDeleteServerDatabaseResponses, AdminDeleteServerDatabaseErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteServerDatabaseResponses, AdminDeleteServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetServerDatabaseData, ThrowOnError>): RequestResult<AdminGetServerDatabaseResponses, AdminGetServerDatabaseErrors, ThrowOnError> => (options.client ?? client).get<AdminGetServerDatabaseResponses, AdminGetServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminRotateServerDatabasePasswordData, ThrowOnError>): RequestResult<AdminRotateServerDatabasePasswordResponses, AdminRotateServerDatabasePasswordErrors, ThrowOnError> => (options.client ?? client).post<AdminRotateServerDatabasePasswordResponses, AdminRotateServerDatabasePasswordErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListServerBackupsData, ThrowOnError>): RequestResult<AdminListServerBackupsResponses, AdminListServerBackupsErrors, ThrowOnError> => (options.client ?? client).get<AdminListServerBackupsResponses, AdminListServerBackupsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminToggleServerBackupLockData, ThrowOnError>): RequestResult<AdminToggleServerBackupLockResponses, AdminToggleServerBackupLockErrors, ThrowOnError> => (options.client ?? client).post<AdminToggleServerBackupLockResponses, AdminToggleServerBackupLockErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:56:50 -04:00
url: '/api/admin/servers/{server_admin_identifier}/backups/{backup_uuid}/toggle',
2026-10-05 18:10:18 -04:00
...options
});
/**
* List nodes
*
* Returns a paginated list of Wings nodes.
*/
export const adminListNodes = <ThrowOnError extends boolean = true>(options?: Options<AdminListNodesData, ThrowOnError>): RequestResult<AdminListNodesResponses, AdminListNodesErrors, ThrowOnError> => (options?.client ?? client).get<AdminListNodesResponses, AdminListNodesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateNodeData, ThrowOnError>): RequestResult<AdminCreateNodeResponses, AdminCreateNodeErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateNodeResponses, AdminCreateNodeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteNodeData, ThrowOnError>): RequestResult<AdminDeleteNodeResponses, AdminDeleteNodeErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteNodeResponses, AdminDeleteNodeErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/nodes/{node_id}',
...options
});
/**
* Get node
*
* Returns a single Wings node by ID.
*/
export const adminGetNode = <ThrowOnError extends boolean = true>(options: Options<AdminGetNodeData, ThrowOnError>): RequestResult<AdminGetNodeResponses, AdminGetNodeErrors, ThrowOnError> => (options.client ?? client).get<AdminGetNodeResponses, AdminGetNodeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateNodeData, ThrowOnError>): RequestResult<AdminUpdateNodeResponses, AdminUpdateNodeErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateNodeResponses, AdminUpdateNodeErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/nodes/{node_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* Get node configuration
*
* Returns the raw Wings configuration payload for a node, including daemon authentication tokens.
*/
export const adminGetNodeConfiguration = <ThrowOnError extends boolean = true>(options: Options<AdminGetNodeConfigurationData, ThrowOnError>): RequestResult<AdminGetNodeConfigurationResponses, AdminGetNodeConfigurationErrors, ThrowOnError> => (options.client ?? client).get<AdminGetNodeConfigurationResponses, AdminGetNodeConfigurationErrors, ThrowOnError>({
responseType: 'json',
2026-10-12 07:47:42 -04:00
security: [{
in: 'cookie',
name: 'pterodactyl_session',
type: 'apiKey'
}],
2026-10-11 02:28:28 -04:00
url: '/api/admin/nodes/{node_id}/configuration',
...options
});
2026-10-05 18:10:18 -04:00
/**
* Sync node game tags
*
* Replaces the games a node accepts. A node with no game tags accepts any egg.
*/
export const adminSyncNodeGameTags = <ThrowOnError extends boolean = true>(options: Options<AdminSyncNodeGameTagsData, ThrowOnError>): RequestResult<AdminSyncNodeGameTagsResponses, AdminSyncNodeGameTagsErrors, ThrowOnError> => (options.client ?? client).put<AdminSyncNodeGameTagsResponses, AdminSyncNodeGameTagsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminSyncNodeDeploymentTagsData, ThrowOnError>): RequestResult<AdminSyncNodeDeploymentTagsResponses, AdminSyncNodeDeploymentTagsErrors, ThrowOnError> => (options.client ?? client).put<AdminSyncNodeDeploymentTagsResponses, AdminSyncNodeDeploymentTagsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminBulkDeleteNodeAllocationsData, ThrowOnError>): RequestResult<AdminBulkDeleteNodeAllocationsResponses, AdminBulkDeleteNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).delete<AdminBulkDeleteNodeAllocationsResponses, AdminBulkDeleteNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListNodeAllocationsData, ThrowOnError>): RequestResult<AdminListNodeAllocationsResponses, AdminListNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).get<AdminListNodeAllocationsResponses, AdminListNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateNodeAllocationsData, ThrowOnError>): RequestResult<AdminCreateNodeAllocationsResponses, AdminCreateNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateNodeAllocationsResponses, AdminCreateNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListNodeAllocationIpsData, ThrowOnError>): RequestResult<AdminListNodeAllocationIpsResponses, AdminListNodeAllocationIpsErrors, ThrowOnError> => (options.client ?? client).get<AdminListNodeAllocationIpsResponses, AdminListNodeAllocationIpsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListAvailableNodeAllocationsData, ThrowOnError>): RequestResult<AdminListAvailableNodeAllocationsResponses, AdminListAvailableNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).get<AdminListAvailableNodeAllocationsResponses, AdminListAvailableNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteNodeAllocationIpBlockData, ThrowOnError>): RequestResult<AdminDeleteNodeAllocationIpBlockResponses, AdminDeleteNodeAllocationIpBlockErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteNodeAllocationIpBlockResponses, AdminDeleteNodeAllocationIpBlockErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/nodes/{node_id}/allocations/block',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* Delete node allocation
*
* Deletes a single unassigned allocation from a node.
*/
export const adminDeleteNodeAllocation = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteNodeAllocationData, ThrowOnError>): RequestResult<AdminDeleteNodeAllocationResponses, AdminDeleteNodeAllocationErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteNodeAllocationResponses, AdminDeleteNodeAllocationErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/nodes/{node_id}/allocations/{allocation_id}',
...options
});
2026-10-05 18:10:18 -04:00
/**
* Update node allocation
*
* Updates the alias for a single allocation on a node.
*/
export const adminUpdateNodeAllocation = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateNodeAllocationData, ThrowOnError>): RequestResult<AdminUpdateNodeAllocationResponses, AdminUpdateNodeAllocationErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateNodeAllocationResponses, AdminUpdateNodeAllocationErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/nodes/{node_id}/allocations/{allocation_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List locations
*
* Returns a paginated list of locations.
*/
export const adminListLocations = <ThrowOnError extends boolean = true>(options?: Options<AdminListLocationsData, ThrowOnError>): RequestResult<AdminListLocationsResponses, AdminListLocationsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListLocationsResponses, AdminListLocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateLocationData, ThrowOnError>): RequestResult<AdminCreateLocationResponses, AdminCreateLocationErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateLocationResponses, AdminCreateLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteLocationData, ThrowOnError>): RequestResult<AdminDeleteLocationResponses, AdminDeleteLocationErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteLocationResponses, AdminDeleteLocationErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/locations/{location_id}',
...options
});
/**
* Get location
*
* Returns a single location by ID.
*/
export const adminGetLocation = <ThrowOnError extends boolean = true>(options: Options<AdminGetLocationData, ThrowOnError>): RequestResult<AdminGetLocationResponses, AdminGetLocationErrors, ThrowOnError> => (options.client ?? client).get<AdminGetLocationResponses, AdminGetLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateLocationData, ThrowOnError>): RequestResult<AdminUpdateLocationResponses, AdminUpdateLocationErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateLocationResponses, AdminUpdateLocationErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/locations/{location_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* List eligible location nodes
*
* Returns nodes assigned to a location that can be selected for location-scoped workflows.
*/
export const adminListEligibleLocationNodes = <ThrowOnError extends boolean = true>(options: Options<AdminListEligibleLocationNodesData, ThrowOnError>): RequestResult<AdminListEligibleLocationNodesResponses, AdminListEligibleLocationNodesErrors, ThrowOnError> => (options.client ?? client).get<AdminListEligibleLocationNodesResponses, AdminListEligibleLocationNodesErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/locations/{location_id}/eligible-nodes',
...options
});
2026-10-05 18:10:18 -04:00
/**
* List mounts
*
* Returns a paginated list of mount definitions.
*/
export const adminListMounts = <ThrowOnError extends boolean = true>(options?: Options<AdminListMountsData, ThrowOnError>): RequestResult<AdminListMountsResponses, AdminListMountsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListMountsResponses, AdminListMountsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateMountData, ThrowOnError>): RequestResult<AdminCreateMountResponses, AdminCreateMountErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateMountResponses, AdminCreateMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteMountData, ThrowOnError>): RequestResult<AdminDeleteMountResponses, AdminDeleteMountErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteMountResponses, AdminDeleteMountErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/mounts/{mount_id}',
...options
});
/**
* Get mount
*
* Returns a single mount definition by ID.
*/
export const adminGetMount = <ThrowOnError extends boolean = true>(options: Options<AdminGetMountData, ThrowOnError>): RequestResult<AdminGetMountResponses, AdminGetMountErrors, ThrowOnError> => (options.client ?? client).get<AdminGetMountResponses, AdminGetMountErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/mounts/{mount_id}',
...options
});
/**
* Update mount
*
* Updates an existing mount definition.
*/
export const adminUpdateMount = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateMountData, ThrowOnError>): RequestResult<AdminUpdateMountResponses, AdminUpdateMountErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateMountResponses, AdminUpdateMountErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/mounts/{mount_id}',
2026-10-05 18:10:18 -04:00
...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 = <ThrowOnError extends boolean = true>(options: Options<AdminAttachEggsToMountData, ThrowOnError>): RequestResult<AdminAttachEggsToMountResponses, AdminAttachEggsToMountErrors, ThrowOnError> => (options.client ?? client).post<AdminAttachEggsToMountResponses, AdminAttachEggsToMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDetachEggFromMountData, ThrowOnError>): RequestResult<AdminDetachEggFromMountResponses, AdminDetachEggFromMountErrors, ThrowOnError> => (options.client ?? client).delete<AdminDetachEggFromMountResponses, AdminDetachEggFromMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminAttachNodesToMountData, ThrowOnError>): RequestResult<AdminAttachNodesToMountResponses, AdminAttachNodesToMountErrors, ThrowOnError> => (options.client ?? client).post<AdminAttachNodesToMountResponses, AdminAttachNodesToMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDetachNodeFromMountData, ThrowOnError>): RequestResult<AdminDetachNodeFromMountResponses, AdminDetachNodeFromMountErrors, ThrowOnError> => (options.client ?? client).delete<AdminDetachNodeFromMountResponses, AdminDetachNodeFromMountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListEggCatalogData, ThrowOnError>): RequestResult<AdminListEggCatalogResponses, AdminListEggCatalogErrors, ThrowOnError> => (options?.client ?? client).get<AdminListEggCatalogResponses, AdminListEggCatalogErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminRefreshEggCatalogData, ThrowOnError>): RequestResult<AdminRefreshEggCatalogResponses, AdminRefreshEggCatalogErrors, ThrowOnError> => (options?.client ?? client).post<AdminRefreshEggCatalogResponses, AdminRefreshEggCatalogErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminImportCatalogEggData, ThrowOnError>): RequestResult<AdminImportCatalogEggResponses, AdminImportCatalogEggErrors, ThrowOnError> => (options.client ?? client).post<AdminImportCatalogEggResponses, AdminImportCatalogEggErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListEggVariablesData, ThrowOnError>): RequestResult<AdminListEggVariablesResponses, AdminListEggVariablesErrors, ThrowOnError> => (options.client ?? client).get<AdminListEggVariablesResponses, AdminListEggVariablesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateEggVariableData, ThrowOnError>): RequestResult<AdminCreateEggVariableResponses, AdminCreateEggVariableErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateEggVariableResponses, AdminCreateEggVariableErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminReorderEggVariablesData, ThrowOnError>): RequestResult<AdminReorderEggVariablesResponses, AdminReorderEggVariablesErrors, ThrowOnError> => (options.client ?? client).put<AdminReorderEggVariablesResponses, AdminReorderEggVariablesErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/eggs/{egg_id}/variables/reorder',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* Delete egg variable
*
* Deletes a startup variable from an egg.
*/
export const adminDeleteEggVariable = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteEggVariableData, ThrowOnError>): RequestResult<AdminDeleteEggVariableResponses, AdminDeleteEggVariableErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteEggVariableResponses, AdminDeleteEggVariableErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/eggs/{egg_id}/variables/{variable_id}',
...options
});
2026-10-05 18:10:18 -04:00
/**
* Update egg variable
*
* Updates a startup variable for an egg.
*/
export const adminUpdateEggVariable = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateEggVariableData, ThrowOnError>): RequestResult<AdminUpdateEggVariableResponses, AdminUpdateEggVariableErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateEggVariableResponses, AdminUpdateEggVariableErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/eggs/{egg_id}/variables/{variable_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get egg install script
*
* Returns an egg with its install script block.
*/
export const adminGetEggInstallScript = <ThrowOnError extends boolean = true>(options: Options<AdminGetEggInstallScriptData, ThrowOnError>): RequestResult<AdminGetEggInstallScriptResponses, AdminGetEggInstallScriptErrors, ThrowOnError> => (options.client ?? client).get<AdminGetEggInstallScriptResponses, AdminGetEggInstallScriptErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateEggInstallScriptData, ThrowOnError>): RequestResult<AdminUpdateEggInstallScriptResponses, AdminUpdateEggInstallScriptErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateEggInstallScriptResponses, AdminUpdateEggInstallScriptErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminExportEggData, ThrowOnError>): RequestResult<AdminExportEggResponses, AdminExportEggErrors, ThrowOnError> => (options.client ?? client).get<AdminExportEggResponses, AdminExportEggErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateEggFromImportData, ThrowOnError>): RequestResult<AdminUpdateEggFromImportResponses, AdminUpdateEggFromImportErrors, ThrowOnError> => (options.client ?? client).post<AdminUpdateEggFromImportResponses, AdminUpdateEggFromImportErrors, ThrowOnError>({
...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 = <ThrowOnError extends boolean = true>(options: Options<AdminSyncEggTagsData, ThrowOnError>): RequestResult<AdminSyncEggTagsResponses, AdminSyncEggTagsErrors, ThrowOnError> => (options.client ?? client).put<AdminSyncEggTagsResponses, AdminSyncEggTagsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminImportEggData, ThrowOnError>): RequestResult<AdminImportEggResponses, AdminImportEggErrors, ThrowOnError> => (options.client ?? client).post<AdminImportEggResponses, AdminImportEggErrors, ThrowOnError>({
...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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListEggsData, ThrowOnError>): RequestResult<AdminListEggsResponses, AdminListEggsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListEggsResponses, AdminListEggsErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/eggs',
...options
});
/**
* Create egg
*
* Creates an egg definition.
*/
export const adminCreateEgg = <ThrowOnError extends boolean = true>(options: Options<AdminCreateEggData, ThrowOnError>): RequestResult<AdminCreateEggResponses, AdminCreateEggErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateEggResponses, AdminCreateEggErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteEggData, ThrowOnError>): RequestResult<AdminDeleteEggResponses, AdminDeleteEggErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteEggResponses, AdminDeleteEggErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/eggs/{egg_id}',
...options
});
/**
* Get egg
*
* Returns a single egg definition by ID.
*/
export const adminGetEgg = <ThrowOnError extends boolean = true>(options: Options<AdminGetEggData, ThrowOnError>): RequestResult<AdminGetEggResponses, AdminGetEggErrors, ThrowOnError> => (options.client ?? client).get<AdminGetEggResponses, AdminGetEggErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/eggs/{egg_id}',
...options
});
/**
* Update egg
*
* Updates an egg definition.
*/
export const adminUpdateEgg = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateEggData, ThrowOnError>): RequestResult<AdminUpdateEggResponses, AdminUpdateEggErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateEggResponses, AdminUpdateEggErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/eggs/{egg_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List tags
*
* Returns a paginated list of tags.
*/
export const adminListTags = <ThrowOnError extends boolean = true>(options?: Options<AdminListTagsData, ThrowOnError>): RequestResult<AdminListTagsResponses, AdminListTagsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListTagsResponses, AdminListTagsErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/tags',
...options
});
/**
* Create tag
*
* Creates a tag.
*/
export const adminCreateTag = <ThrowOnError extends boolean = true>(options: Options<AdminCreateTagData, ThrowOnError>): RequestResult<AdminCreateTagResponses, AdminCreateTagErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateTagResponses, AdminCreateTagErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteTagData, ThrowOnError>): RequestResult<AdminDeleteTagResponses, AdminDeleteTagErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteTagResponses, AdminDeleteTagErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/tags/{tag_id}',
...options
});
/**
* Get tag
*
* Returns a single tag by ID.
*/
export const adminGetTag = <ThrowOnError extends boolean = true>(options: Options<AdminGetTagData, ThrowOnError>): RequestResult<AdminGetTagResponses, AdminGetTagErrors, ThrowOnError> => (options.client ?? client).get<AdminGetTagResponses, AdminGetTagErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateTagData, ThrowOnError>): RequestResult<AdminUpdateTagResponses, AdminUpdateTagErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateTagResponses, AdminUpdateTagErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/admin/tags/{tag_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get settings
*
* Returns current general, mail, advanced, and metadata settings.
*/
export const adminGetSettings = <ThrowOnError extends boolean = true>(options?: Options<AdminGetSettingsData, ThrowOnError>): RequestResult<AdminGetSettingsResponses, AdminGetSettingsErrors, ThrowOnError> => (options?.client ?? client).get<AdminGetSettingsResponses, AdminGetSettingsErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/settings',
...options
});
2026-11-05 14:23:59 -05:00
/**
* Delete logo
*
* Deletes the panel logo, restoring the default branding.
*/
export const adminDeleteLogo = <ThrowOnError extends boolean = true>(options?: Options<AdminDeleteLogoData, ThrowOnError>): RequestResult<AdminDeleteLogoResponses, AdminDeleteLogoErrors, ThrowOnError> => (options?.client ?? client).delete<AdminDeleteLogoResponses, AdminDeleteLogoErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUploadLogoData, ThrowOnError>): RequestResult<AdminUploadLogoResponses, AdminUploadLogoErrors, ThrowOnError> => (options.client ?? client).post<AdminUploadLogoResponses, AdminUploadLogoErrors, ThrowOnError>({
...formDataBodySerializer,
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/admin/settings/logo',
...options,
headers: {
'Content-Type': null,
...options.headers
}
});
2026-10-05 18:10:18 -04:00
/**
* Update general settings
*
* Updates panel branding, 2FA requirements, and default locale settings.
*/
export const adminUpdateGeneralSettings = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateGeneralSettingsData, ThrowOnError>): RequestResult<AdminUpdateGeneralSettingsResponses, AdminUpdateGeneralSettingsErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateGeneralSettingsResponses, AdminUpdateGeneralSettingsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminUpdateMailSettingsData, ThrowOnError>): RequestResult<AdminUpdateMailSettingsResponses, AdminUpdateMailSettingsErrors, ThrowOnError> => (options?.client ?? client).put<AdminUpdateMailSettingsResponses, AdminUpdateMailSettingsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminSendTestMailData, ThrowOnError>): RequestResult<AdminSendTestMailResponses, AdminSendTestMailErrors, ThrowOnError> => (options?.client ?? client).post<AdminSendTestMailResponses, AdminSendTestMailErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateAdvancedSettingsData, ThrowOnError>): RequestResult<AdminUpdateAdvancedSettingsResponses, AdminUpdateAdvancedSettingsErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateAdvancedSettingsResponses, AdminUpdateAdvancedSettingsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListDatabaseHostsData, ThrowOnError>): RequestResult<AdminListDatabaseHostsResponses, AdminListDatabaseHostsErrors, ThrowOnError> => (options?.client ?? client).get<AdminListDatabaseHostsResponses, AdminListDatabaseHostsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateDatabaseHostData, ThrowOnError>): RequestResult<AdminCreateDatabaseHostResponses, AdminCreateDatabaseHostErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateDatabaseHostResponses, AdminCreateDatabaseHostErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteDatabaseHostData, ThrowOnError>): RequestResult<AdminDeleteDatabaseHostResponses, AdminDeleteDatabaseHostErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteDatabaseHostResponses, AdminDeleteDatabaseHostErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetDatabaseHostData, ThrowOnError>): RequestResult<AdminGetDatabaseHostResponses, AdminGetDatabaseHostErrors, ThrowOnError> => (options.client ?? client).get<AdminGetDatabaseHostResponses, AdminGetDatabaseHostErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateDatabaseHostData, ThrowOnError>): RequestResult<AdminUpdateDatabaseHostResponses, AdminUpdateDatabaseHostErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateDatabaseHostResponses, AdminUpdateDatabaseHostErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminListDatabaseHostDatabasesData, ThrowOnError>): RequestResult<AdminListDatabaseHostDatabasesResponses, AdminListDatabaseHostDatabasesErrors, ThrowOnError> => (options.client ?? client).get<AdminListDatabaseHostDatabasesResponses, AdminListDatabaseHostDatabasesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminListApiKeysData, ThrowOnError>): RequestResult<AdminListApiKeysResponses, AdminListApiKeysErrors, ThrowOnError> => (options?.client ?? client).get<AdminListApiKeysResponses, AdminListApiKeysErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminCreateApiKeyData, ThrowOnError>): RequestResult<AdminCreateApiKeyResponses, AdminCreateApiKeyErrors, ThrowOnError> => (options.client ?? client).post<AdminCreateApiKeyResponses, AdminCreateApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminDeleteApiKeyData, ThrowOnError>): RequestResult<AdminDeleteApiKeyResponses, AdminDeleteApiKeyErrors, ThrowOnError> => (options.client ?? client).delete<AdminDeleteApiKeyResponses, AdminDeleteApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminGetApiKeyData, ThrowOnError>): RequestResult<AdminGetApiKeyResponses, AdminGetApiKeyErrors, ThrowOnError> => (options.client ?? client).get<AdminGetApiKeyResponses, AdminGetApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AdminUpdateApiKeyData, ThrowOnError>): RequestResult<AdminUpdateApiKeyResponses, AdminUpdateApiKeyErrors, ThrowOnError> => (options.client ?? client).put<AdminUpdateApiKeyResponses, AdminUpdateApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AdminGetVersionInformationData, ThrowOnError>): RequestResult<AdminGetVersionInformationResponses, AdminGetVersionInformationErrors, ThrowOnError> => (options?.client ?? client).get<AdminGetVersionInformationResponses, AdminGetVersionInformationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListUsersData, ThrowOnError>): RequestResult<ApplicationListUsersResponses, ApplicationListUsersErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListUsersResponses, ApplicationListUsersErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateUserData, ThrowOnError>): RequestResult<ApplicationCreateUserResponses, ApplicationCreateUserErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateUserResponses, ApplicationCreateUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteUserData, ThrowOnError>): RequestResult<ApplicationDeleteUserResponses, ApplicationDeleteUserErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteUserResponses, ApplicationDeleteUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetUserData, ThrowOnError>): RequestResult<ApplicationGetUserResponses, ApplicationGetUserErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetUserResponses, ApplicationGetUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateUserData, ThrowOnError>): RequestResult<ApplicationUpdateUserResponses, ApplicationUpdateUserErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateUserResponses, ApplicationUpdateUserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetUserByExternalIdData, ThrowOnError>): RequestResult<ApplicationGetUserByExternalIdResponses, ApplicationGetUserByExternalIdErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetUserByExternalIdResponses, ApplicationGetUserByExternalIdErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListNodesData, ThrowOnError>): RequestResult<ApplicationListNodesResponses, ApplicationListNodesErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListNodesResponses, ApplicationListNodesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateNodeData, ThrowOnError>): RequestResult<ApplicationCreateNodeResponses, ApplicationCreateNodeErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateNodeResponses, ApplicationCreateNodeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationListDeployableNodesData, ThrowOnError>): RequestResult<ApplicationListDeployableNodesResponses, ApplicationListDeployableNodesErrors, ThrowOnError> => (options.client ?? client).get<ApplicationListDeployableNodesResponses, ApplicationListDeployableNodesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteNodeData, ThrowOnError>): RequestResult<ApplicationDeleteNodeResponses, ApplicationDeleteNodeErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteNodeResponses, ApplicationDeleteNodeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetNodeData, ThrowOnError>): RequestResult<ApplicationGetNodeResponses, ApplicationGetNodeErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetNodeResponses, ApplicationGetNodeErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateNodeData, ThrowOnError>): RequestResult<ApplicationUpdateNodeResponses, ApplicationUpdateNodeErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateNodeResponses, ApplicationUpdateNodeErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/application/nodes/{node_id}',
2026-10-05 18:10:18 -04:00
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-11 02:28:28 -04:00
/**
* Get node configuration
*
* Returns the Wings configuration payload for a node, including node authentication tokens. Requires write access to nodes.
*/
export const applicationGetNodeConfiguration = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetNodeConfigurationData, ThrowOnError>): RequestResult<ApplicationGetNodeConfigurationResponses, ApplicationGetNodeConfigurationErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetNodeConfigurationResponses, ApplicationGetNodeConfigurationErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/application/nodes/{node_id}/configuration',
...options
});
2026-10-05 18:10:18 -04:00
/**
* List node allocations
*
* Returns a paginated list of allocations belonging to a node.
*/
export const applicationListNodeAllocations = <ThrowOnError extends boolean = true>(options: Options<ApplicationListNodeAllocationsData, ThrowOnError>): RequestResult<ApplicationListNodeAllocationsResponses, ApplicationListNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).get<ApplicationListNodeAllocationsResponses, ApplicationListNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateNodeAllocationsData, ThrowOnError>): RequestResult<ApplicationCreateNodeAllocationsResponses, ApplicationCreateNodeAllocationsErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateNodeAllocationsResponses, ApplicationCreateNodeAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteNodeAllocationData, ThrowOnError>): RequestResult<ApplicationDeleteNodeAllocationResponses, ApplicationDeleteNodeAllocationErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteNodeAllocationResponses, ApplicationDeleteNodeAllocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListLocationsData, ThrowOnError>): RequestResult<ApplicationListLocationsResponses, ApplicationListLocationsErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListLocationsResponses, ApplicationListLocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateLocationData, ThrowOnError>): RequestResult<ApplicationCreateLocationResponses, ApplicationCreateLocationErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateLocationResponses, ApplicationCreateLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteLocationData, ThrowOnError>): RequestResult<ApplicationDeleteLocationResponses, ApplicationDeleteLocationErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteLocationResponses, ApplicationDeleteLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetLocationData, ThrowOnError>): RequestResult<ApplicationGetLocationResponses, ApplicationGetLocationErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetLocationResponses, ApplicationGetLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateLocationData, ThrowOnError>): RequestResult<ApplicationUpdateLocationResponses, ApplicationUpdateLocationErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateLocationResponses, ApplicationUpdateLocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListEggsData, ThrowOnError>): RequestResult<ApplicationListEggsResponses, ApplicationListEggsErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListEggsResponses, ApplicationListEggsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetEggData, ThrowOnError>): RequestResult<ApplicationGetEggResponses, ApplicationGetEggErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetEggResponses, ApplicationGetEggErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListTagsData, ThrowOnError>): RequestResult<ApplicationListTagsResponses, ApplicationListTagsErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListTagsResponses, ApplicationListTagsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetTagData, ThrowOnError>): RequestResult<ApplicationGetTagResponses, ApplicationGetTagErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetTagResponses, ApplicationGetTagErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ApplicationListServersData, ThrowOnError>): RequestResult<ApplicationListServersResponses, ApplicationListServersErrors, ThrowOnError> => (options?.client ?? client).get<ApplicationListServersResponses, ApplicationListServersErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateServerData, ThrowOnError>): RequestResult<ApplicationCreateServerResponses, ApplicationCreateServerErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateServerResponses, ApplicationCreateServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteServerForServersServerIdData, ThrowOnError>): RequestResult<ApplicationDeleteServerForServersServerIdResponses, ApplicationDeleteServerForServersServerIdErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteServerForServersServerIdResponses, ApplicationDeleteServerForServersServerIdErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetServerData, ThrowOnError>): RequestResult<ApplicationGetServerResponses, ApplicationGetServerErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetServerResponses, ApplicationGetServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetServerByExternalIdData, ThrowOnError>): RequestResult<ApplicationGetServerByExternalIdResponses, ApplicationGetServerByExternalIdErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetServerByExternalIdResponses, ApplicationGetServerByExternalIdErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateServerDetailsData, ThrowOnError>): RequestResult<ApplicationUpdateServerDetailsResponses, ApplicationUpdateServerDetailsErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateServerDetailsResponses, ApplicationUpdateServerDetailsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateServerBuildData, ThrowOnError>): RequestResult<ApplicationUpdateServerBuildResponses, ApplicationUpdateServerBuildErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateServerBuildResponses, ApplicationUpdateServerBuildErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUpdateServerStartupData, ThrowOnError>): RequestResult<ApplicationUpdateServerStartupResponses, ApplicationUpdateServerStartupErrors, ThrowOnError> => (options.client ?? client).patch<ApplicationUpdateServerStartupResponses, ApplicationUpdateServerStartupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationSuspendServerData, ThrowOnError>): RequestResult<ApplicationSuspendServerResponses, ApplicationSuspendServerErrors, ThrowOnError> => (options.client ?? client).post<ApplicationSuspendServerResponses, ApplicationSuspendServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationUnsuspendServerData, ThrowOnError>): RequestResult<ApplicationUnsuspendServerResponses, ApplicationUnsuspendServerErrors, ThrowOnError> => (options.client ?? client).post<ApplicationUnsuspendServerResponses, ApplicationUnsuspendServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationReinstallServerData, ThrowOnError>): RequestResult<ApplicationReinstallServerResponses, ApplicationReinstallServerErrors, ThrowOnError> => (options.client ?? client).post<ApplicationReinstallServerResponses, ApplicationReinstallServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteServerForServersServerIdForceData, ThrowOnError>): RequestResult<ApplicationDeleteServerForServersServerIdForceResponses, ApplicationDeleteServerForServersServerIdForceErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteServerForServersServerIdForceResponses, ApplicationDeleteServerForServersServerIdForceErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationListServerDatabasesData, ThrowOnError>): RequestResult<ApplicationListServerDatabasesResponses, ApplicationListServerDatabasesErrors, ThrowOnError> => (options.client ?? client).get<ApplicationListServerDatabasesResponses, ApplicationListServerDatabasesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationCreateServerDatabaseData, ThrowOnError>): RequestResult<ApplicationCreateServerDatabaseResponses, ApplicationCreateServerDatabaseErrors, ThrowOnError> => (options.client ?? client).post<ApplicationCreateServerDatabaseResponses, ApplicationCreateServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationDeleteServerDatabaseData, ThrowOnError>): RequestResult<ApplicationDeleteServerDatabaseResponses, ApplicationDeleteServerDatabaseErrors, ThrowOnError> => (options.client ?? client).delete<ApplicationDeleteServerDatabaseResponses, ApplicationDeleteServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationGetServerDatabaseData, ThrowOnError>): RequestResult<ApplicationGetServerDatabaseResponses, ApplicationGetServerDatabaseErrors, ThrowOnError> => (options.client ?? client).get<ApplicationGetServerDatabaseResponses, ApplicationGetServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ApplicationResetServerDatabasePasswordData, ThrowOnError>): RequestResult<ApplicationResetServerDatabasePasswordResponses, ApplicationResetServerDatabasePasswordErrors, ThrowOnError> => (options.client ?? client).post<ApplicationResetServerDatabasePasswordResponses, ApplicationResetServerDatabasePasswordErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AuthLoginData, ThrowOnError>): RequestResult<AuthLoginResponses, AuthLoginErrors, ThrowOnError> => (options.client ?? client).post<AuthLoginResponses, AuthLoginErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AuthCompleteLoginCheckpointData, ThrowOnError>): RequestResult<AuthCompleteLoginCheckpointResponses, AuthCompleteLoginCheckpointErrors, ThrowOnError> => (options.client ?? client).post<AuthCompleteLoginCheckpointResponses, AuthCompleteLoginCheckpointErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AuthRequestPasswordResetEmailData, ThrowOnError>): RequestResult<AuthRequestPasswordResetEmailResponses, AuthRequestPasswordResetEmailErrors, ThrowOnError> => (options.client ?? client).post<AuthRequestPasswordResetEmailResponses, AuthRequestPasswordResetEmailErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<AuthResetPasswordData, ThrowOnError>): RequestResult<AuthResetPasswordResponses, AuthResetPasswordErrors, ThrowOnError> => (options.client ?? client).post<AuthResetPasswordResponses, AuthResetPasswordErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AuthLogoutData, ThrowOnError>): RequestResult<AuthLogoutResponses, AuthLogoutErrors, ThrowOnError> => (options?.client ?? client).post<AuthLogoutResponses, AuthLogoutErrors, ThrowOnError>({
security: [{
in: 'cookie',
name: 'pterodactyl_session',
2026-10-05 18:10:18 -04:00
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientListClientServersData, ThrowOnError>): RequestResult<ClientListClientServersResponses, ClientListClientServersErrors, ThrowOnError> => (options?.client ?? client).get<ClientListClientServersResponses, ClientListClientServersErrors, ThrowOnError>({
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.<extension id>`.
*/
export const clientListServerPermissions = <ThrowOnError extends boolean = true>(options?: Options<ClientListServerPermissionsData, ThrowOnError>): RequestResult<ClientListServerPermissionsResponses, ClientListServerPermissionsErrors, ThrowOnError> => (options?.client ?? client).get<ClientListServerPermissionsResponses, ClientListServerPermissionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetExtensionJobProgressData, ThrowOnError>): RequestResult<ClientGetExtensionJobProgressResponses, ClientGetExtensionJobProgressErrors, ThrowOnError> => (options.client ?? client).get<ClientGetExtensionJobProgressResponses, ClientGetExtensionJobProgressErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientGetAccountData, ThrowOnError>): RequestResult<ClientGetAccountResponses, ClientGetAccountErrors, ThrowOnError> => (options?.client ?? client).get<ClientGetAccountResponses, ClientGetAccountErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientGetTwoFactorSetupData, ThrowOnError>): RequestResult<ClientGetTwoFactorSetupResponses, ClientGetTwoFactorSetupErrors, ThrowOnError> => (options?.client ?? client).get<ClientGetTwoFactorSetupResponses, ClientGetTwoFactorSetupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientEnableTwoFactorAuthenticationData, ThrowOnError>): RequestResult<ClientEnableTwoFactorAuthenticationResponses, ClientEnableTwoFactorAuthenticationErrors, ThrowOnError> => (options.client ?? client).post<ClientEnableTwoFactorAuthenticationResponses, ClientEnableTwoFactorAuthenticationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDisableTwoFactorAuthenticationData, ThrowOnError>): RequestResult<ClientDisableTwoFactorAuthenticationResponses, ClientDisableTwoFactorAuthenticationErrors, ThrowOnError> => (options.client ?? client).post<ClientDisableTwoFactorAuthenticationResponses, ClientDisableTwoFactorAuthenticationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateAccountEmailData, ThrowOnError>): RequestResult<ClientUpdateAccountEmailResponses, ClientUpdateAccountEmailErrors, ThrowOnError> => (options.client ?? client).put<ClientUpdateAccountEmailResponses, ClientUpdateAccountEmailErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateAccountPasswordData, ThrowOnError>): RequestResult<ClientUpdateAccountPasswordResponses, ClientUpdateAccountPasswordErrors, ThrowOnError> => (options.client ?? client).put<ClientUpdateAccountPasswordResponses, ClientUpdateAccountPasswordErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/client/account/password',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
2026-10-20 15:46:16 -04:00
/**
* Delete account avatar
*
* Deletes the authenticated user's avatar.
*/
export const clientDeleteAccountAvatar = <ThrowOnError extends boolean = true>(options?: Options<ClientDeleteAccountAvatarData, ThrowOnError>): RequestResult<ClientDeleteAccountAvatarResponses, ClientDeleteAccountAvatarErrors, ThrowOnError> => (options?.client ?? client).delete<ClientDeleteAccountAvatarResponses, ClientDeleteAccountAvatarErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateAccountAvatarData, ThrowOnError>): RequestResult<ClientUpdateAccountAvatarResponses, ClientUpdateAccountAvatarErrors, ThrowOnError> => (options.client ?? client).post<ClientUpdateAccountAvatarResponses, ClientUpdateAccountAvatarErrors, ThrowOnError>({
...formDataBodySerializer,
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/client/account/avatar',
...options,
headers: {
'Content-Type': null,
...options.headers
}
});
2026-10-05 18:10:18 -04:00
/**
* List account activity
*
* Returns a paginated list of activity log entries for the authenticated user account.
*/
export const clientListAccountActivity = <ThrowOnError extends boolean = true>(options?: Options<ClientListAccountActivityData, ThrowOnError>): RequestResult<ClientListAccountActivityResponses, ClientListAccountActivityErrors, ThrowOnError> => (options?.client ?? client).get<ClientListAccountActivityResponses, ClientListAccountActivityErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientListAccountActivityFilterOptionsData, ThrowOnError>): RequestResult<ClientListAccountActivityFilterOptionsResponses, ClientListAccountActivityFilterOptionsErrors, ThrowOnError> => (options?.client ?? client).get<ClientListAccountActivityFilterOptionsResponses, ClientListAccountActivityFilterOptionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientListAccountApiKeysData, ThrowOnError>): RequestResult<ClientListAccountApiKeysResponses, ClientListAccountApiKeysErrors, ThrowOnError> => (options?.client ?? client).get<ClientListAccountApiKeysResponses, ClientListAccountApiKeysErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateAccountApiKeyData, ThrowOnError>): RequestResult<ClientCreateAccountApiKeyResponses, ClientCreateAccountApiKeyErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateAccountApiKeyResponses, ClientCreateAccountApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteAccountApiKeyData, ThrowOnError>): RequestResult<ClientDeleteAccountApiKeyResponses, ClientDeleteAccountApiKeyErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteAccountApiKeyResponses, ClientDeleteAccountApiKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<ClientListSshKeysData, ThrowOnError>): RequestResult<ClientListSshKeysResponses, ClientListSshKeysErrors, ThrowOnError> => (options?.client ?? client).get<ClientListSshKeysResponses, ClientListSshKeysErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateSshKeyData, ThrowOnError>): RequestResult<ClientCreateSshKeyResponses, ClientCreateSshKeyErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateSshKeyResponses, ClientCreateSshKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteSshKeyData, ThrowOnError>): RequestResult<ClientDeleteSshKeyResponses, ClientDeleteSshKeyErrors, ThrowOnError> => (options.client ?? client).post<ClientDeleteSshKeyResponses, ClientDeleteSshKeyErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerData, ThrowOnError>): RequestResult<ClientGetServerResponses, ClientGetServerErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerResponses, ClientGetServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetWebsocketCredentialsData, ThrowOnError>): RequestResult<ClientGetWebsocketCredentialsResponses, ClientGetWebsocketCredentialsErrors, ThrowOnError> => (options.client ?? client).get<ClientGetWebsocketCredentialsResponses, ClientGetWebsocketCredentialsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerResourcesData, ThrowOnError>): RequestResult<ClientGetServerResourcesResponses, ClientGetServerResourcesErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerResourcesResponses, ClientGetServerResourcesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerLogsData, ThrowOnError>): RequestResult<ClientGetServerLogsResponses, ClientGetServerLogsErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerLogsResponses, ClientGetServerLogsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerExtensionJobProgressData, ThrowOnError>): RequestResult<ClientGetServerExtensionJobProgressResponses, ClientGetServerExtensionJobProgressErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerExtensionJobProgressResponses, ClientGetServerExtensionJobProgressErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerActivityData, ThrowOnError>): RequestResult<ClientListServerActivityResponses, ClientListServerActivityErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerActivityResponses, ClientListServerActivityErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerActivityFilterOptionsData, ThrowOnError>): RequestResult<ClientListServerActivityFilterOptionsResponses, ClientListServerActivityFilterOptionsErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerActivityFilterOptionsResponses, ClientListServerActivityFilterOptionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientSendServerCommandData, ThrowOnError>): RequestResult<ClientSendServerCommandResponses, ClientSendServerCommandErrors, ThrowOnError> => (options.client ?? client).post<ClientSendServerCommandResponses, ClientSendServerCommandErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientSendPowerActionData, ThrowOnError>): RequestResult<ClientSendPowerActionResponses, ClientSendPowerActionErrors, ThrowOnError> => (options.client ?? client).post<ClientSendPowerActionResponses, ClientSendPowerActionErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerDatabasesData, ThrowOnError>): RequestResult<ClientListServerDatabasesResponses, ClientListServerDatabasesErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerDatabasesResponses, ClientListServerDatabasesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateServerDatabaseData, ThrowOnError>): RequestResult<ClientCreateServerDatabaseResponses, ClientCreateServerDatabaseErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateServerDatabaseResponses, ClientCreateServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientRotateServerDatabasePasswordData, ThrowOnError>): RequestResult<ClientRotateServerDatabasePasswordResponses, ClientRotateServerDatabasePasswordErrors, ThrowOnError> => (options.client ?? client).post<ClientRotateServerDatabasePasswordResponses, ClientRotateServerDatabasePasswordErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteServerDatabaseData, ThrowOnError>): RequestResult<ClientDeleteServerDatabaseResponses, ClientDeleteServerDatabaseErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteServerDatabaseResponses, ClientDeleteServerDatabaseErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListFilesData, ThrowOnError>): RequestResult<ClientListFilesResponses, ClientListFilesErrors, ThrowOnError> => (options.client ?? client).get<ClientListFilesResponses, ClientListFilesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetFileContentsData, ThrowOnError>): RequestResult<ClientGetFileContentsResponses, ClientGetFileContentsErrors, ThrowOnError> => (options.client ?? client).get<ClientGetFileContentsResponses, ClientGetFileContentsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetFileDownloadUrlData, ThrowOnError>): RequestResult<ClientGetFileDownloadUrlResponses, ClientGetFileDownloadUrlErrors, ThrowOnError> => (options.client ?? client).get<ClientGetFileDownloadUrlResponses, ClientGetFileDownloadUrlErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientRenameFilesData, ThrowOnError>): RequestResult<ClientRenameFilesResponses, ClientRenameFilesErrors, ThrowOnError> => (options.client ?? client).put<ClientRenameFilesResponses, ClientRenameFilesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCopyFileData, ThrowOnError>): RequestResult<ClientCopyFileResponses, ClientCopyFileErrors, ThrowOnError> => (options.client ?? client).post<ClientCopyFileResponses, ClientCopyFileErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientWriteFileContentsData, ThrowOnError>): RequestResult<ClientWriteFileContentsResponses, ClientWriteFileContentsErrors, ThrowOnError> => (options.client ?? client).post<ClientWriteFileContentsResponses, ClientWriteFileContentsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCompressFilesData, ThrowOnError>): RequestResult<ClientCompressFilesResponses, ClientCompressFilesErrors, ThrowOnError> => (options.client ?? client).post<ClientCompressFilesResponses, ClientCompressFilesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDecompressFileData, ThrowOnError>): RequestResult<ClientDecompressFileResponses, ClientDecompressFileErrors, ThrowOnError> => (options.client ?? client).post<ClientDecompressFileResponses, ClientDecompressFileErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteFilesData, ThrowOnError>): RequestResult<ClientDeleteFilesResponses, ClientDeleteFilesErrors, ThrowOnError> => (options.client ?? client).post<ClientDeleteFilesResponses, ClientDeleteFilesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateFolderData, ThrowOnError>): RequestResult<ClientCreateFolderResponses, ClientCreateFolderErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateFolderResponses, ClientCreateFolderErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientChangeFilePermissionsData, ThrowOnError>): RequestResult<ClientChangeFilePermissionsResponses, ClientChangeFilePermissionsErrors, ThrowOnError> => (options.client ?? client).post<ClientChangeFilePermissionsResponses, ClientChangeFilePermissionsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientPullRemoteFileData, ThrowOnError>): RequestResult<ClientPullRemoteFileResponses, ClientPullRemoteFileErrors, ThrowOnError> => (options.client ?? client).post<ClientPullRemoteFileResponses, ClientPullRemoteFileErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetFileUploadUrlData, ThrowOnError>): RequestResult<ClientGetFileUploadUrlResponses, ClientGetFileUploadUrlErrors, ThrowOnError> => (options.client ?? client).get<ClientGetFileUploadUrlResponses, ClientGetFileUploadUrlErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerSchedulesData, ThrowOnError>): RequestResult<ClientListServerSchedulesResponses, ClientListServerSchedulesErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerSchedulesResponses, ClientListServerSchedulesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateServerScheduleData, ThrowOnError>): RequestResult<ClientCreateServerScheduleResponses, ClientCreateServerScheduleErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateServerScheduleResponses, ClientCreateServerScheduleErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteServerScheduleData, ThrowOnError>): RequestResult<ClientDeleteServerScheduleResponses, ClientDeleteServerScheduleErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteServerScheduleResponses, ClientDeleteServerScheduleErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerScheduleData, ThrowOnError>): RequestResult<ClientGetServerScheduleResponses, ClientGetServerScheduleErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerScheduleResponses, ClientGetServerScheduleErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateServerScheduleData, ThrowOnError>): RequestResult<ClientUpdateServerScheduleResponses, ClientUpdateServerScheduleErrors, ThrowOnError> => (options.client ?? client).post<ClientUpdateServerScheduleResponses, ClientUpdateServerScheduleErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientExecuteServerScheduleData, ThrowOnError>): RequestResult<ClientExecuteServerScheduleResponses, ClientExecuteServerScheduleErrors, ThrowOnError> => (options.client ?? client).post<ClientExecuteServerScheduleResponses, ClientExecuteServerScheduleErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateScheduleTaskData, ThrowOnError>): RequestResult<ClientCreateScheduleTaskResponses, ClientCreateScheduleTaskErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateScheduleTaskResponses, ClientCreateScheduleTaskErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteScheduleTaskData, ThrowOnError>): RequestResult<ClientDeleteScheduleTaskResponses, ClientDeleteScheduleTaskErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteScheduleTaskResponses, ClientDeleteScheduleTaskErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateScheduleTaskData, ThrowOnError>): RequestResult<ClientUpdateScheduleTaskResponses, ClientUpdateScheduleTaskErrors, ThrowOnError> => (options.client ?? client).post<ClientUpdateScheduleTaskResponses, ClientUpdateScheduleTaskErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerAllocationsData, ThrowOnError>): RequestResult<ClientListServerAllocationsResponses, ClientListServerAllocationsErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerAllocationsResponses, ClientListServerAllocationsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateServerAllocationData, ThrowOnError>): RequestResult<ClientCreateServerAllocationResponses, ClientCreateServerAllocationErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateServerAllocationResponses, ClientCreateServerAllocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteServerAllocationData, ThrowOnError>): RequestResult<ClientDeleteServerAllocationResponses, ClientDeleteServerAllocationErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteServerAllocationResponses, ClientDeleteServerAllocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateAllocationNotesData, ThrowOnError>): RequestResult<ClientUpdateAllocationNotesResponses, ClientUpdateAllocationNotesErrors, ThrowOnError> => (options.client ?? client).post<ClientUpdateAllocationNotesResponses, ClientUpdateAllocationNotesErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientSetPrimaryAllocationData, ThrowOnError>): RequestResult<ClientSetPrimaryAllocationResponses, ClientSetPrimaryAllocationErrors, ThrowOnError> => (options.client ?? client).post<ClientSetPrimaryAllocationResponses, ClientSetPrimaryAllocationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerSubusersData, ThrowOnError>): RequestResult<ClientListServerSubusersResponses, ClientListServerSubusersErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerSubusersResponses, ClientListServerSubusersErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateServerSubuserData, ThrowOnError>): RequestResult<ClientCreateServerSubuserResponses, ClientCreateServerSubuserErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateServerSubuserResponses, ClientCreateServerSubuserErrors, ThrowOnError>({
responseType: 'json',
security: [{ scheme: 'bearer', type: 'http' }],
url: '/api/client/servers/{server_uuid}/users',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
2026-10-11 02:28:28 -04:00
* Delete server subuser
2026-10-05 18:10:18 -04:00
*
2026-10-11 02:28:28 -04:00
* Removes a subuser assignment from the server and revokes SFTP access tokens.
2026-10-05 18:10:18 -04:00
*/
2026-10-11 02:28:28 -04:00
export const clientDeleteServerSubuser = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteServerSubuserData, ThrowOnError>): RequestResult<ClientDeleteServerSubuserResponses, ClientDeleteServerSubuserErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteServerSubuserResponses, ClientDeleteServerSubuserErrors, ThrowOnError>({
2026-10-05 18:10:18 -04:00
security: [{ scheme: 'bearer', type: 'http' }],
2026-10-11 02:28:28 -04:00
url: '/api/client/servers/{server_uuid}/users/{user}',
2026-10-05 18:10:18 -04:00
...options
});
/**
2026-10-11 02:28:28 -04:00
* Get server subuser
2026-10-05 18:10:18 -04:00
*
2026-10-11 02:28:28 -04:00
* Returns one subuser assignment for the server.
2026-10-05 18:10:18 -04:00
*/
2026-10-11 02:28:28 -04:00
export const clientGetServerSubuser = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerSubuserData, ThrowOnError>): RequestResult<ClientGetServerSubuserResponses, ClientGetServerSubuserErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerSubuserResponses, ClientGetServerSubuserErrors, ThrowOnError>({
responseType: 'json',
2026-10-05 18:10:18 -04:00
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateServerSubuserData, ThrowOnError>): RequestResult<ClientUpdateServerSubuserResponses, ClientUpdateServerSubuserErrors, ThrowOnError> => (options.client ?? client).post<ClientUpdateServerSubuserResponses, ClientUpdateServerSubuserErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientListServerBackupsData, ThrowOnError>): RequestResult<ClientListServerBackupsResponses, ClientListServerBackupsErrors, ThrowOnError> => (options.client ?? client).get<ClientListServerBackupsResponses, ClientListServerBackupsErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientCreateServerBackupData, ThrowOnError>): RequestResult<ClientCreateServerBackupResponses, ClientCreateServerBackupErrors, ThrowOnError> => (options.client ?? client).post<ClientCreateServerBackupResponses, ClientCreateServerBackupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientDeleteServerBackupData, ThrowOnError>): RequestResult<ClientDeleteServerBackupResponses, ClientDeleteServerBackupErrors, ThrowOnError> => (options.client ?? client).delete<ClientDeleteServerBackupResponses, ClientDeleteServerBackupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetServerBackupData, ThrowOnError>): RequestResult<ClientGetServerBackupResponses, ClientGetServerBackupErrors, ThrowOnError> => (options.client ?? client).get<ClientGetServerBackupResponses, ClientGetServerBackupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetBackupDownloadUrlData, ThrowOnError>): RequestResult<ClientGetBackupDownloadUrlResponses, ClientGetBackupDownloadUrlErrors, ThrowOnError> => (options.client ?? client).get<ClientGetBackupDownloadUrlResponses, ClientGetBackupDownloadUrlErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientToggleBackupLockData, ThrowOnError>): RequestResult<ClientToggleBackupLockResponses, ClientToggleBackupLockErrors, ThrowOnError> => (options.client ?? client).post<ClientToggleBackupLockResponses, ClientToggleBackupLockErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientRestoreServerBackupData, ThrowOnError>): RequestResult<ClientRestoreServerBackupResponses, ClientRestoreServerBackupErrors, ThrowOnError> => (options.client ?? client).post<ClientRestoreServerBackupResponses, ClientRestoreServerBackupErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientGetStartupConfigurationData, ThrowOnError>): RequestResult<ClientGetStartupConfigurationResponses, ClientGetStartupConfigurationErrors, ThrowOnError> => (options.client ?? client).get<ClientGetStartupConfigurationResponses, ClientGetStartupConfigurationErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientUpdateStartupVariableData, ThrowOnError>): RequestResult<ClientUpdateStartupVariableResponses, ClientUpdateStartupVariableErrors, ThrowOnError> => (options.client ?? client).put<ClientUpdateStartupVariableResponses, ClientUpdateStartupVariableErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientRenameServerData, ThrowOnError>): RequestResult<ClientRenameServerResponses, ClientRenameServerErrors, ThrowOnError> => (options.client ?? client).post<ClientRenameServerResponses, ClientRenameServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientReinstallServerData, ThrowOnError>): RequestResult<ClientReinstallServerResponses, ClientReinstallServerErrors, ThrowOnError> => (options.client ?? client).post<ClientReinstallServerResponses, ClientReinstallServerErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options: Options<ClientSetServerDockerImageData, ThrowOnError>): RequestResult<ClientSetServerDockerImageResponses, ClientSetServerDockerImageErrors, ThrowOnError> => (options.client ?? client).put<ClientSetServerDockerImageResponses, ClientSetServerDockerImageErrors, ThrowOnError>({
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 = <ThrowOnError extends boolean = true>(options?: Options<AuthGetCsrfCookieData, ThrowOnError>): RequestResult<AuthGetCsrfCookieResponses, unknown, ThrowOnError> => (options?.client ?? client).get<AuthGetCsrfCookieResponses, unknown, ThrowOnError>({ url: '/sanctum/csrf-cookie', ...options });