@masonator/coolify-mcp 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/dist/__tests__/coolify-client.test.d.ts +0 -1
- package/dist/__tests__/coolify-client.test.js +0 -208
- package/dist/__tests__/mcp-server.test.d.ts +0 -1
- package/dist/__tests__/mcp-server.test.js +0 -282
- package/dist/__tests__/resources/application-resources.test.d.ts +0 -1
- package/dist/__tests__/resources/application-resources.test.js +0 -33
- package/dist/__tests__/resources/database-resources.test.d.ts +0 -1
- package/dist/__tests__/resources/database-resources.test.js +0 -68
- package/dist/__tests__/resources/deployment-resources.test.d.ts +0 -1
- package/dist/__tests__/resources/deployment-resources.test.js +0 -46
- package/dist/__tests__/resources/service-resources.test.d.ts +0 -1
- package/dist/__tests__/resources/service-resources.test.js +0 -76
- package/dist/index.cjs +0 -1403
- package/dist/index.d.ts +0 -2
- package/dist/lib/coolify-client.d.ts +0 -44
- package/dist/lib/coolify-client.js +0 -161
- package/dist/lib/mcp-server.d.ts +0 -56
- package/dist/lib/mcp-server.js +0 -423
- package/dist/lib/resource.d.ts +0 -13
- package/dist/lib/resource.js +0 -25
- package/dist/resources/application-resources.d.ts +0 -14
- package/dist/resources/application-resources.js +0 -55
- package/dist/resources/database-resources.d.ts +0 -17
- package/dist/resources/database-resources.js +0 -51
- package/dist/resources/deployment-resources.d.ts +0 -12
- package/dist/resources/deployment-resources.js +0 -44
- package/dist/resources/index.d.ts +0 -4
- package/dist/resources/index.js +0 -4
- package/dist/resources/service-resources.d.ts +0 -15
- package/dist/resources/service-resources.js +0 -51
- package/dist/types/coolify.d.ts +0 -228
- package/dist/types/coolify.js +0 -1
package/dist/lib/resource.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
/**
|
|
3
|
-
* Decorator for marking methods as MCP resources.
|
|
4
|
-
* @param uri The URI pattern for the resource
|
|
5
|
-
*/
|
|
6
|
-
export declare function Resource(uri: string): MethodDecorator;
|
|
7
|
-
/**
|
|
8
|
-
* Get the resource URI for a decorated method
|
|
9
|
-
* @param target The class instance or constructor
|
|
10
|
-
* @param propertyKey The method name
|
|
11
|
-
* @returns The resource URI or undefined if not a resource
|
|
12
|
-
*/
|
|
13
|
-
export declare function getResourceUri(target: object, propertyKey: string | symbol): string | undefined;
|
package/dist/lib/resource.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
/**
|
|
3
|
-
* Metadata key for storing the resource URI
|
|
4
|
-
*/
|
|
5
|
-
const RESOURCE_URI_KEY = Symbol('resourceUri');
|
|
6
|
-
/**
|
|
7
|
-
* Decorator for marking methods as MCP resources.
|
|
8
|
-
* @param uri The URI pattern for the resource
|
|
9
|
-
*/
|
|
10
|
-
export function Resource(uri) {
|
|
11
|
-
return function (target, propertyKey, descriptor) {
|
|
12
|
-
// Store the URI pattern in the method's metadata
|
|
13
|
-
Reflect.defineMetadata(RESOURCE_URI_KEY, uri, target, propertyKey);
|
|
14
|
-
return descriptor;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Get the resource URI for a decorated method
|
|
19
|
-
* @param target The class instance or constructor
|
|
20
|
-
* @param propertyKey The method name
|
|
21
|
-
* @returns The resource URI or undefined if not a resource
|
|
22
|
-
*/
|
|
23
|
-
export function getResourceUri(target, propertyKey) {
|
|
24
|
-
return Reflect.getMetadata(RESOURCE_URI_KEY, target, propertyKey);
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CoolifyClient } from '../lib/coolify-client.js';
|
|
2
|
-
import { Application, CreateApplicationRequest } from '../types/coolify.js';
|
|
3
|
-
export declare class ApplicationResources {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: CoolifyClient);
|
|
6
|
-
listApplications(): Promise<Application[]>;
|
|
7
|
-
getApplication(_id: string): Promise<Application>;
|
|
8
|
-
createApplication(_data: CreateApplicationRequest): Promise<{
|
|
9
|
-
uuid: string;
|
|
10
|
-
}>;
|
|
11
|
-
deleteApplication(_id: string): Promise<{
|
|
12
|
-
message: string;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Resource } from '../lib/resource.js';
|
|
11
|
-
export class ApplicationResources {
|
|
12
|
-
constructor(client) {
|
|
13
|
-
this.client = client;
|
|
14
|
-
}
|
|
15
|
-
async listApplications() {
|
|
16
|
-
// TODO: Implement listApplications in CoolifyClient
|
|
17
|
-
throw new Error('Not implemented');
|
|
18
|
-
}
|
|
19
|
-
async getApplication(_id) {
|
|
20
|
-
// TODO: Implement getApplication in CoolifyClient
|
|
21
|
-
throw new Error('Not implemented');
|
|
22
|
-
}
|
|
23
|
-
async createApplication(_data) {
|
|
24
|
-
// TODO: Implement createApplication in CoolifyClient
|
|
25
|
-
throw new Error('Not implemented');
|
|
26
|
-
}
|
|
27
|
-
async deleteApplication(_id) {
|
|
28
|
-
// TODO: Implement deleteApplication in CoolifyClient
|
|
29
|
-
throw new Error('Not implemented');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
__decorate([
|
|
33
|
-
Resource('coolify/applications/list'),
|
|
34
|
-
__metadata("design:type", Function),
|
|
35
|
-
__metadata("design:paramtypes", []),
|
|
36
|
-
__metadata("design:returntype", Promise)
|
|
37
|
-
], ApplicationResources.prototype, "listApplications", null);
|
|
38
|
-
__decorate([
|
|
39
|
-
Resource('coolify/applications/{id}'),
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", [String]),
|
|
42
|
-
__metadata("design:returntype", Promise)
|
|
43
|
-
], ApplicationResources.prototype, "getApplication", null);
|
|
44
|
-
__decorate([
|
|
45
|
-
Resource('coolify/applications/create'),
|
|
46
|
-
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", [Object]),
|
|
48
|
-
__metadata("design:returntype", Promise)
|
|
49
|
-
], ApplicationResources.prototype, "createApplication", null);
|
|
50
|
-
__decorate([
|
|
51
|
-
Resource('coolify/applications/{id}/delete'),
|
|
52
|
-
__metadata("design:type", Function),
|
|
53
|
-
__metadata("design:paramtypes", [String]),
|
|
54
|
-
__metadata("design:returntype", Promise)
|
|
55
|
-
], ApplicationResources.prototype, "deleteApplication", null);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CoolifyClient } from '../lib/coolify-client.js';
|
|
2
|
-
import { Database, DatabaseUpdateRequest } from '../types/coolify.js';
|
|
3
|
-
export declare class DatabaseResources {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: CoolifyClient);
|
|
6
|
-
listDatabases(): Promise<Database[]>;
|
|
7
|
-
getDatabase(id: string): Promise<Database>;
|
|
8
|
-
updateDatabase(id: string, data: DatabaseUpdateRequest): Promise<Database>;
|
|
9
|
-
deleteDatabase(id: string, options?: {
|
|
10
|
-
deleteConfigurations?: boolean;
|
|
11
|
-
deleteVolumes?: boolean;
|
|
12
|
-
dockerCleanup?: boolean;
|
|
13
|
-
deleteConnectedNetworks?: boolean;
|
|
14
|
-
}): Promise<{
|
|
15
|
-
message: string;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Resource } from '../lib/resource.js';
|
|
11
|
-
export class DatabaseResources {
|
|
12
|
-
constructor(client) {
|
|
13
|
-
this.client = client;
|
|
14
|
-
}
|
|
15
|
-
async listDatabases() {
|
|
16
|
-
return this.client.listDatabases();
|
|
17
|
-
}
|
|
18
|
-
async getDatabase(id) {
|
|
19
|
-
return this.client.getDatabase(id);
|
|
20
|
-
}
|
|
21
|
-
async updateDatabase(id, data) {
|
|
22
|
-
return this.client.updateDatabase(id, data);
|
|
23
|
-
}
|
|
24
|
-
async deleteDatabase(id, options) {
|
|
25
|
-
return this.client.deleteDatabase(id, options);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
Resource('coolify/databases/list'),
|
|
30
|
-
__metadata("design:type", Function),
|
|
31
|
-
__metadata("design:paramtypes", []),
|
|
32
|
-
__metadata("design:returntype", Promise)
|
|
33
|
-
], DatabaseResources.prototype, "listDatabases", null);
|
|
34
|
-
__decorate([
|
|
35
|
-
Resource('coolify/databases/{id}'),
|
|
36
|
-
__metadata("design:type", Function),
|
|
37
|
-
__metadata("design:paramtypes", [String]),
|
|
38
|
-
__metadata("design:returntype", Promise)
|
|
39
|
-
], DatabaseResources.prototype, "getDatabase", null);
|
|
40
|
-
__decorate([
|
|
41
|
-
Resource('coolify/databases/{id}/update'),
|
|
42
|
-
__metadata("design:type", Function),
|
|
43
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
44
|
-
__metadata("design:returntype", Promise)
|
|
45
|
-
], DatabaseResources.prototype, "updateDatabase", null);
|
|
46
|
-
__decorate([
|
|
47
|
-
Resource('coolify/databases/{id}/delete'),
|
|
48
|
-
__metadata("design:type", Function),
|
|
49
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
50
|
-
__metadata("design:returntype", Promise)
|
|
51
|
-
], DatabaseResources.prototype, "deleteDatabase", null);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CoolifyClient } from '../lib/coolify-client.js';
|
|
2
|
-
import { Deployment } from '../types/coolify.js';
|
|
3
|
-
export declare class DeploymentResources {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: CoolifyClient);
|
|
6
|
-
listDeployments(): Promise<Deployment[]>;
|
|
7
|
-
getDeployment(_id: string): Promise<Deployment>;
|
|
8
|
-
deploy(params: {
|
|
9
|
-
uuid: string;
|
|
10
|
-
forceRebuild?: boolean;
|
|
11
|
-
}): Promise<Deployment>;
|
|
12
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Resource } from '../lib/resource.js';
|
|
11
|
-
export class DeploymentResources {
|
|
12
|
-
constructor(client) {
|
|
13
|
-
this.client = client;
|
|
14
|
-
}
|
|
15
|
-
async listDeployments() {
|
|
16
|
-
// TODO: Implement listDeployments in CoolifyClient
|
|
17
|
-
throw new Error('Not implemented');
|
|
18
|
-
}
|
|
19
|
-
async getDeployment(_id) {
|
|
20
|
-
// TODO: Implement getDeployment in CoolifyClient
|
|
21
|
-
throw new Error('Not implemented');
|
|
22
|
-
}
|
|
23
|
-
async deploy(params) {
|
|
24
|
-
return this.client.deployApplication(params.uuid);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
__decorate([
|
|
28
|
-
Resource('coolify/deployments/list'),
|
|
29
|
-
__metadata("design:type", Function),
|
|
30
|
-
__metadata("design:paramtypes", []),
|
|
31
|
-
__metadata("design:returntype", Promise)
|
|
32
|
-
], DeploymentResources.prototype, "listDeployments", null);
|
|
33
|
-
__decorate([
|
|
34
|
-
Resource('coolify/deployments/{id}'),
|
|
35
|
-
__metadata("design:type", Function),
|
|
36
|
-
__metadata("design:paramtypes", [String]),
|
|
37
|
-
__metadata("design:returntype", Promise)
|
|
38
|
-
], DeploymentResources.prototype, "getDeployment", null);
|
|
39
|
-
__decorate([
|
|
40
|
-
Resource('coolify/deploy'),
|
|
41
|
-
__metadata("design:type", Function),
|
|
42
|
-
__metadata("design:paramtypes", [Object]),
|
|
43
|
-
__metadata("design:returntype", Promise)
|
|
44
|
-
], DeploymentResources.prototype, "deploy", null);
|
package/dist/resources/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CoolifyClient } from '../lib/coolify-client.js';
|
|
2
|
-
import { Service, CreateServiceRequest, DeleteServiceOptions } from '../types/coolify.js';
|
|
3
|
-
export declare class ServiceResources {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: CoolifyClient);
|
|
6
|
-
listServices(): Promise<Service[]>;
|
|
7
|
-
getService(id: string): Promise<Service>;
|
|
8
|
-
createService(data: CreateServiceRequest): Promise<{
|
|
9
|
-
uuid: string;
|
|
10
|
-
domains: string[];
|
|
11
|
-
}>;
|
|
12
|
-
deleteService(id: string, options?: DeleteServiceOptions): Promise<{
|
|
13
|
-
message: string;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Resource } from '../lib/resource.js';
|
|
11
|
-
export class ServiceResources {
|
|
12
|
-
constructor(client) {
|
|
13
|
-
this.client = client;
|
|
14
|
-
}
|
|
15
|
-
async listServices() {
|
|
16
|
-
return this.client.listServices();
|
|
17
|
-
}
|
|
18
|
-
async getService(id) {
|
|
19
|
-
return this.client.getService(id);
|
|
20
|
-
}
|
|
21
|
-
async createService(data) {
|
|
22
|
-
return this.client.createService(data);
|
|
23
|
-
}
|
|
24
|
-
async deleteService(id, options) {
|
|
25
|
-
return this.client.deleteService(id, options);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
Resource('coolify/services/list'),
|
|
30
|
-
__metadata("design:type", Function),
|
|
31
|
-
__metadata("design:paramtypes", []),
|
|
32
|
-
__metadata("design:returntype", Promise)
|
|
33
|
-
], ServiceResources.prototype, "listServices", null);
|
|
34
|
-
__decorate([
|
|
35
|
-
Resource('coolify/services/{id}'),
|
|
36
|
-
__metadata("design:type", Function),
|
|
37
|
-
__metadata("design:paramtypes", [String]),
|
|
38
|
-
__metadata("design:returntype", Promise)
|
|
39
|
-
], ServiceResources.prototype, "getService", null);
|
|
40
|
-
__decorate([
|
|
41
|
-
Resource('coolify/services/create'),
|
|
42
|
-
__metadata("design:type", Function),
|
|
43
|
-
__metadata("design:paramtypes", [Object]),
|
|
44
|
-
__metadata("design:returntype", Promise)
|
|
45
|
-
], ServiceResources.prototype, "createService", null);
|
|
46
|
-
__decorate([
|
|
47
|
-
Resource('coolify/services/{id}/delete'),
|
|
48
|
-
__metadata("design:type", Function),
|
|
49
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
50
|
-
__metadata("design:returntype", Promise)
|
|
51
|
-
], ServiceResources.prototype, "deleteService", null);
|
package/dist/types/coolify.d.ts
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
export interface CoolifyConfig {
|
|
2
|
-
baseUrl: string;
|
|
3
|
-
accessToken: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ServerInfo {
|
|
6
|
-
uuid: string;
|
|
7
|
-
name: string;
|
|
8
|
-
status: 'running' | 'stopped' | 'error';
|
|
9
|
-
version: string;
|
|
10
|
-
resources: {
|
|
11
|
-
cpu: number;
|
|
12
|
-
memory: number;
|
|
13
|
-
disk: number;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface ResourceStatus {
|
|
17
|
-
id: number;
|
|
18
|
-
uuid: string;
|
|
19
|
-
name: string;
|
|
20
|
-
type: string;
|
|
21
|
-
created_at: string;
|
|
22
|
-
updated_at: string;
|
|
23
|
-
status: string;
|
|
24
|
-
}
|
|
25
|
-
export type ServerResources = ResourceStatus[];
|
|
26
|
-
export interface ErrorResponse {
|
|
27
|
-
error: string;
|
|
28
|
-
status: number;
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ServerDomain {
|
|
32
|
-
ip: string;
|
|
33
|
-
domains: string[];
|
|
34
|
-
}
|
|
35
|
-
export interface ValidationResponse {
|
|
36
|
-
message: string;
|
|
37
|
-
}
|
|
38
|
-
export interface Environment {
|
|
39
|
-
id: number;
|
|
40
|
-
uuid: string;
|
|
41
|
-
name: string;
|
|
42
|
-
project_uuid: string;
|
|
43
|
-
variables?: Record<string, string>;
|
|
44
|
-
created_at: string;
|
|
45
|
-
updated_at: string;
|
|
46
|
-
}
|
|
47
|
-
export interface Project {
|
|
48
|
-
id: number;
|
|
49
|
-
uuid: string;
|
|
50
|
-
name: string;
|
|
51
|
-
description?: string;
|
|
52
|
-
environments?: Environment[];
|
|
53
|
-
}
|
|
54
|
-
export interface CreateProjectRequest {
|
|
55
|
-
name: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface UpdateProjectRequest {
|
|
59
|
-
name?: string;
|
|
60
|
-
description?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface LogEntry {
|
|
63
|
-
timestamp: string;
|
|
64
|
-
level: string;
|
|
65
|
-
message: string;
|
|
66
|
-
}
|
|
67
|
-
export interface Deployment {
|
|
68
|
-
id: number;
|
|
69
|
-
uuid: string;
|
|
70
|
-
application_uuid: string;
|
|
71
|
-
status: string;
|
|
72
|
-
created_at: string;
|
|
73
|
-
updated_at: string;
|
|
74
|
-
}
|
|
75
|
-
export interface DatabaseBase {
|
|
76
|
-
id: number;
|
|
77
|
-
uuid: string;
|
|
78
|
-
name: string;
|
|
79
|
-
description?: string;
|
|
80
|
-
type: 'postgresql' | 'mysql' | 'mariadb' | 'mongodb' | 'redis' | 'keydb' | 'clickhouse' | 'dragonfly';
|
|
81
|
-
status: 'running' | 'stopped' | 'error';
|
|
82
|
-
created_at: string;
|
|
83
|
-
updated_at: string;
|
|
84
|
-
is_public: boolean;
|
|
85
|
-
public_port?: number;
|
|
86
|
-
image: string;
|
|
87
|
-
limits?: {
|
|
88
|
-
memory?: string;
|
|
89
|
-
memory_swap?: string;
|
|
90
|
-
memory_swappiness?: number;
|
|
91
|
-
memory_reservation?: string;
|
|
92
|
-
cpus?: string;
|
|
93
|
-
cpuset?: string;
|
|
94
|
-
cpu_shares?: number;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
export interface PostgresDatabase extends DatabaseBase {
|
|
98
|
-
type: 'postgresql';
|
|
99
|
-
postgres_user: string;
|
|
100
|
-
postgres_password: string;
|
|
101
|
-
postgres_db: string;
|
|
102
|
-
postgres_initdb_args?: string;
|
|
103
|
-
postgres_host_auth_method?: string;
|
|
104
|
-
postgres_conf?: string;
|
|
105
|
-
}
|
|
106
|
-
export interface MySQLDatabase extends DatabaseBase {
|
|
107
|
-
type: 'mysql';
|
|
108
|
-
mysql_root_password: string;
|
|
109
|
-
mysql_user?: string;
|
|
110
|
-
mysql_password?: string;
|
|
111
|
-
mysql_database?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface MariaDBDatabase extends DatabaseBase {
|
|
114
|
-
type: 'mariadb';
|
|
115
|
-
mariadb_root_password: string;
|
|
116
|
-
mariadb_user?: string;
|
|
117
|
-
mariadb_password?: string;
|
|
118
|
-
mariadb_database?: string;
|
|
119
|
-
mariadb_conf?: string;
|
|
120
|
-
}
|
|
121
|
-
export interface MongoDBDatabase extends DatabaseBase {
|
|
122
|
-
type: 'mongodb';
|
|
123
|
-
mongo_initdb_root_username: string;
|
|
124
|
-
mongo_initdb_root_password: string;
|
|
125
|
-
mongo_initdb_database?: string;
|
|
126
|
-
mongo_conf?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface RedisDatabase extends DatabaseBase {
|
|
129
|
-
type: 'redis';
|
|
130
|
-
redis_password?: string;
|
|
131
|
-
redis_conf?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface KeyDBDatabase extends DatabaseBase {
|
|
134
|
-
type: 'keydb';
|
|
135
|
-
keydb_password?: string;
|
|
136
|
-
keydb_conf?: string;
|
|
137
|
-
}
|
|
138
|
-
export interface ClickhouseDatabase extends DatabaseBase {
|
|
139
|
-
type: 'clickhouse';
|
|
140
|
-
clickhouse_admin_user: string;
|
|
141
|
-
clickhouse_admin_password: string;
|
|
142
|
-
}
|
|
143
|
-
export interface DragonflyDatabase extends DatabaseBase {
|
|
144
|
-
type: 'dragonfly';
|
|
145
|
-
dragonfly_password: string;
|
|
146
|
-
}
|
|
147
|
-
export type Database = PostgresDatabase | MySQLDatabase | MariaDBDatabase | MongoDBDatabase | RedisDatabase | KeyDBDatabase | ClickhouseDatabase | DragonflyDatabase;
|
|
148
|
-
export interface DatabaseUpdateRequest {
|
|
149
|
-
name?: string;
|
|
150
|
-
description?: string;
|
|
151
|
-
image?: string;
|
|
152
|
-
is_public?: boolean;
|
|
153
|
-
public_port?: number;
|
|
154
|
-
limits_memory?: string;
|
|
155
|
-
limits_memory_swap?: string;
|
|
156
|
-
limits_memory_swappiness?: number;
|
|
157
|
-
limits_memory_reservation?: string;
|
|
158
|
-
limits_cpus?: string;
|
|
159
|
-
limits_cpuset?: string;
|
|
160
|
-
limits_cpu_shares?: number;
|
|
161
|
-
postgres_user?: string;
|
|
162
|
-
postgres_password?: string;
|
|
163
|
-
postgres_db?: string;
|
|
164
|
-
postgres_initdb_args?: string;
|
|
165
|
-
postgres_host_auth_method?: string;
|
|
166
|
-
postgres_conf?: string;
|
|
167
|
-
clickhouse_admin_user?: string;
|
|
168
|
-
clickhouse_admin_password?: string;
|
|
169
|
-
dragonfly_password?: string;
|
|
170
|
-
redis_password?: string;
|
|
171
|
-
redis_conf?: string;
|
|
172
|
-
keydb_password?: string;
|
|
173
|
-
keydb_conf?: string;
|
|
174
|
-
mariadb_conf?: string;
|
|
175
|
-
mariadb_root_password?: string;
|
|
176
|
-
mariadb_user?: string;
|
|
177
|
-
mariadb_password?: string;
|
|
178
|
-
mariadb_database?: string;
|
|
179
|
-
mongo_conf?: string;
|
|
180
|
-
mongo_initdb_root_username?: string;
|
|
181
|
-
mongo_initdb_root_password?: string;
|
|
182
|
-
mongo_initdb_database?: string;
|
|
183
|
-
mysql_root_password?: string;
|
|
184
|
-
mysql_password?: string;
|
|
185
|
-
mysql_user?: string;
|
|
186
|
-
mysql_database?: string;
|
|
187
|
-
}
|
|
188
|
-
export type ServiceType = 'activepieces' | 'appsmith' | 'appwrite' | 'authentik' | 'babybuddy' | 'budge' | 'changedetection' | 'chatwoot' | 'classicpress-with-mariadb' | 'classicpress-with-mysql' | 'classicpress-without-database' | 'cloudflared' | 'code-server' | 'dashboard' | 'directus' | 'directus-with-postgresql' | 'docker-registry' | 'docuseal' | 'docuseal-with-postgres' | 'dokuwiki' | 'duplicati' | 'emby' | 'embystat' | 'fider' | 'filebrowser' | 'firefly' | 'formbricks' | 'ghost' | 'gitea' | 'gitea-with-mariadb' | 'gitea-with-mysql' | 'gitea-with-postgresql' | 'glance' | 'glances' | 'glitchtip' | 'grafana' | 'grafana-with-postgresql' | 'grocy' | 'heimdall' | 'homepage' | 'jellyfin' | 'kuzzle' | 'listmonk' | 'logto' | 'mediawiki' | 'meilisearch' | 'metabase' | 'metube' | 'minio' | 'moodle' | 'n8n' | 'n8n-with-postgresql' | 'next-image-transformation' | 'nextcloud' | 'nocodb' | 'odoo' | 'openblocks' | 'pairdrop' | 'penpot' | 'phpmyadmin' | 'pocketbase' | 'posthog' | 'reactive-resume' | 'rocketchat' | 'shlink' | 'slash' | 'snapdrop' | 'statusnook' | 'stirling-pdf' | 'supabase' | 'syncthing' | 'tolgee' | 'trigger' | 'trigger-with-external-database' | 'twenty' | 'umami' | 'unleash-with-postgresql' | 'unleash-without-database' | 'uptime-kuma' | 'vaultwarden' | 'vikunja' | 'weblate' | 'whoogle' | 'wordpress-with-mariadb' | 'wordpress-with-mysql' | 'wordpress-without-database';
|
|
189
|
-
export interface Service {
|
|
190
|
-
id: number;
|
|
191
|
-
uuid: string;
|
|
192
|
-
name: string;
|
|
193
|
-
description?: string;
|
|
194
|
-
type: ServiceType;
|
|
195
|
-
status: 'running' | 'stopped' | 'error';
|
|
196
|
-
created_at: string;
|
|
197
|
-
updated_at: string;
|
|
198
|
-
project_uuid: string;
|
|
199
|
-
environment_name: string;
|
|
200
|
-
environment_uuid: string;
|
|
201
|
-
server_uuid: string;
|
|
202
|
-
destination_uuid?: string;
|
|
203
|
-
domains?: string[];
|
|
204
|
-
}
|
|
205
|
-
export interface CreateServiceRequest {
|
|
206
|
-
type: ServiceType;
|
|
207
|
-
name?: string;
|
|
208
|
-
description?: string;
|
|
209
|
-
project_uuid: string;
|
|
210
|
-
environment_name?: string;
|
|
211
|
-
environment_uuid?: string;
|
|
212
|
-
server_uuid: string;
|
|
213
|
-
destination_uuid?: string;
|
|
214
|
-
instant_deploy?: boolean;
|
|
215
|
-
}
|
|
216
|
-
export interface DeleteServiceOptions {
|
|
217
|
-
deleteConfigurations?: boolean;
|
|
218
|
-
deleteVolumes?: boolean;
|
|
219
|
-
dockerCleanup?: boolean;
|
|
220
|
-
deleteConnectedNetworks?: boolean;
|
|
221
|
-
}
|
|
222
|
-
export interface Application {
|
|
223
|
-
uuid: string;
|
|
224
|
-
name: string;
|
|
225
|
-
}
|
|
226
|
-
export interface CreateApplicationRequest {
|
|
227
|
-
name: string;
|
|
228
|
-
}
|
package/dist/types/coolify.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|