@felixallistar/coolify-mcp
Version:
Model Context Protocol server for Coolify API integration
1,397 lines (1,396 loc) • 31.1 kB
JavaScript
// This file is auto-generated by @hey-api/openapi-ts
import { client as _heyApiClient } from './client.gen.js';
/**
* List
* List all applications.
*/
export const listApplications = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications',
...options
});
};
/**
* Create (Public)
* Create new application based on a public git repository.
*/
export const createPublicApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/public',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Private - GH App)
* Create new application based on a private repository through a Github App.
*/
export const createPrivateGithubAppApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/private-github-app',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Private - Deploy Key)
* Create new application based on a private repository through a Deploy Key.
*/
export const createPrivateDeployKeyApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/private-deploy-key',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Dockerfile)
* Create new application based on a simple Dockerfile.
*/
export const createDockerfileApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/dockerfile',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Docker Image)
* Create new application based on a prebuilt docker image
*/
export const createDockerimageApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/dockerimage',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Docker Compose)
* Create new application based on a docker-compose file.
*/
export const createDockercomposeApplication = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/dockercompose',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete
* Delete application by UUID.
*/
export const deleteApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}',
...options
});
};
/**
* Get
* Get application by UUID.
*/
export const getApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}',
...options
});
};
/**
* Update
* Update application by UUID.
*/
export const updateApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Get application logs.
* Get application logs by UUID.
*/
export const getApplicationLogsByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/logs',
...options
});
};
/**
* List Envs
* List all envs by application UUID.
*/
export const listEnvsByApplicationUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/envs',
...options
});
};
/**
* Update Env
* Update env by application UUID.
*/
export const updateEnvByApplicationUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/envs',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create Env
* Create env by application UUID.
*/
export const createEnvByApplicationUuid = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/envs',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Update Envs (Bulk)
* Update multiple envs by application UUID.
*/
export const updateEnvsByApplicationUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/envs/bulk',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete Env
* Delete env by UUID.
*/
export const deleteEnvByApplicationUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/envs/{env_uuid}',
...options
});
};
/**
* Start
* Start application. `Post` request is also accepted.
*/
export const startApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/start',
...options
});
};
/**
* Stop
* Stop application. `Post` request is also accepted.
*/
export const stopApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/stop',
...options
});
};
/**
* Restart
* Restart application. `Post` request is also accepted.
*/
export const restartApplicationByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/applications/{uuid}/restart',
...options
});
};
/**
* List
* List all databases.
*/
export const listDatabases = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases',
...options
});
};
/**
* Delete
* Delete database by UUID.
*/
export const deleteDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}',
...options
});
};
/**
* Get
* Get database by UUID.
*/
export const getDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}',
...options
});
};
/**
* Update
* Update database by UUID.
*/
export const updateDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (PostgreSQL)
* Create a new PostgreSQL database.
*/
export const createDatabasePostgresql = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/postgresql',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Clickhouse)
* Create a new Clickhouse database.
*/
export const createDatabaseClickhouse = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/clickhouse',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (DragonFly)
* Create a new DragonFly database.
*/
export const createDatabaseDragonfly = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/dragonfly',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (Redis)
* Create a new Redis database.
*/
export const createDatabaseRedis = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/redis',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (KeyDB)
* Create a new KeyDB database.
*/
export const createDatabaseKeydb = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/keydb',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (MariaDB)
* Create a new MariaDB database.
*/
export const createDatabaseMariadb = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/mariadb',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (MySQL)
* Create a new MySQL database.
*/
export const createDatabaseMysql = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/mysql',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create (MongoDB)
* Create a new MongoDB database.
*/
export const createDatabaseMongodb = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/mongodb',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Start
* Start database. `Post` request is also accepted.
*/
export const startDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}/start',
...options
});
};
/**
* Stop
* Stop database. `Post` request is also accepted.
*/
export const stopDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}/stop',
...options
});
};
/**
* Restart
* Restart database. `Post` request is also accepted.
*/
export const restartDatabaseByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/databases/{uuid}/restart',
...options
});
};
/**
* List
* List currently running deployments
*/
export const listDeployments = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/deployments',
...options
});
};
/**
* Get
* Get deployment by UUID.
*/
export const getDeploymentByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/deployments/{uuid}',
...options
});
};
/**
* Deploy
* Deploy by tag or uuid. `Post` request also accepted with `uuid` and `tag` json body.
*/
export const deployByTagOrUuid = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/deploy',
...options
});
};
/**
* List application deployments
* List application deployments by using the app uuid
*/
export const listDeploymentsByAppUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/deployments/applications/{uuid}',
...options
});
};
/**
* Version
* Get Coolify version.
*/
export const version = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/version',
...options
});
};
/**
* Enable API
* Enable API (only with root permissions).
*/
export const enableApi = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/enable',
...options
});
};
/**
* Disable API
* Disable API (only with root permissions).
*/
export const disableApi = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/disable',
...options
});
};
/**
* Healthcheck
* Healthcheck endpoint.
*/
export const healthcheck = (options) => {
return (options?.client ?? _heyApiClient).get({
url: '/health',
...options
});
};
/**
* List
* List projects.
*/
export const listProjects = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects',
...options
});
};
/**
* Create
* Create Project.
*/
export const createProject = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete
* Delete project by UUID.
*/
export const deleteProjectByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects/{uuid}',
...options
});
};
/**
* Get
* Get project by UUID.
*/
export const getProjectByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects/{uuid}',
...options
});
};
/**
* Update
* Update Project.
*/
export const updateProjectByUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects/{uuid}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Environment
* Get environment by name or UUID.
*/
export const getEnvironmentByNameOrUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/projects/{uuid}/{environment_name_or_uuid}',
...options
});
};
/**
* List
* Get all resources.
*/
export const listResources = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/resources',
...options
});
};
/**
* List
* List all private keys.
*/
export const listPrivateKeys = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/security/keys',
...options
});
};
/**
* Update
* Update a private key.
*/
export const updatePrivateKey = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/security/keys',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create
* Create a new private key.
*/
export const createPrivateKey = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/security/keys',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete
* Delete a private key.
*/
export const deletePrivateKeyByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/security/keys/{uuid}',
...options
});
};
/**
* Get
* Get key by UUID.
*/
export const getPrivateKeyByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/security/keys/{uuid}',
...options
});
};
/**
* List
* List all servers.
*/
export const listServers = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers',
...options
});
};
/**
* Create
* Create Server.
*/
export const createServer = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete
* Delete server by UUID.
*/
export const deleteServerByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}',
...options
});
};
/**
* Get
* Get server by UUID.
*/
export const getServerByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}',
...options
});
};
/**
* Update
* Update Server.
*/
export const updateServerByUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Resources
* Get resources by server.
*/
export const getResourcesByServerUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}/resources',
...options
});
};
/**
* Domains
* Get domains by server.
*/
export const getDomainsByServerUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}/domains',
...options
});
};
/**
* Validate
* Validate server by UUID.
*/
export const validateServerByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/servers/{uuid}/validate',
...options
});
};
/**
* List
* List all services.
*/
export const listServices = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services',
...options
});
};
/**
* Create service
* Create a one-click / custom service
*/
export const createService = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete
* Delete service by UUID.
*/
export const deleteServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}',
...options
});
};
/**
* Get
* Get service by UUID.
*/
export const getServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}',
...options
});
};
/**
* Update
* Update service by UUID.
*/
export const updateServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* List Envs
* List all envs by service UUID.
*/
export const listEnvsByServiceUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/envs',
...options
});
};
/**
* Update Env
* Update env by service UUID.
*/
export const updateEnvByServiceUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/envs',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Create Env
* Create env by service UUID.
*/
export const createEnvByServiceUuid = (options) => {
return (options.client ?? _heyApiClient).post({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/envs',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Update Envs (Bulk)
* Update multiple envs by service UUID.
*/
export const updateEnvsByServiceUuid = (options) => {
return (options.client ?? _heyApiClient).patch({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/envs/bulk',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
};
/**
* Delete Env
* Delete env by UUID.
*/
export const deleteEnvByServiceUuid = (options) => {
return (options.client ?? _heyApiClient).delete({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/envs/{env_uuid}',
...options
});
};
/**
* Start
* Start service. `Post` request is also accepted.
*/
export const startServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/start',
...options
});
};
/**
* Stop
* Stop service. `Post` request is also accepted.
*/
export const stopServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/stop',
...options
});
};
/**
* Restart
* Restart service. `Post` request is also accepted.
*/
export const restartServiceByUuid = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/services/{uuid}/restart',
...options
});
};
/**
* List
* Get all teams.
*/
export const listTeams = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/teams',
...options
});
};
/**
* Get
* Get team by TeamId.
*/
export const getTeamById = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/teams/{id}',
...options
});
};
/**
* Members
* Get members by TeamId.
*/
export const getMembersByTeamId = (options) => {
return (options.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/teams/{id}/members',
...options
});
};
/**
* Authenticated Team
* Get currently authenticated team.
*/
export const getCurrentTeam = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/teams/current',
...options
});
};
/**
* Authenticated Team Members
* Get currently authenticated team members.
*/
export const getCurrentTeamMembers = (options) => {
return (options?.client ?? _heyApiClient).get({
security: [
{
scheme: 'bearer',
type: 'http'
}
],
url: '/teams/current/members',
...options
});
};