From 25564bb83268efe58843abc7a6875d21fad207e9 Mon Sep 17 00:00:00 2001 From: Vibe Code Date: Thu, 9 Jul 2026 08:54:47 +0200 Subject: [PATCH 1/3] Release v4 hardening and hosted deploy --- .dockerignore | 10 + .env.example | 32 + AGENTS.md | 6 +- CLAUDE.md | 61 +- Dockerfile | 33 + README.md | 3 + docs/examples/compose.hosted.yml | 38 + docs/guides/hosted-deploy.md | 70 + docs/guides/hosted-http.md | 2 + docs/guides/modes.md | 11 + docs/guides/troubleshooting.md | 30 + docs/live-e2e-proof.md | 6 + docs/proposals/upstream-application-one.md | 200 + docs/remote-http.md | 16 +- docs/upstream-alignment.md | 3 + package-lock.json | 265 +- package.json | 18 +- scripts/sync-doc-facts.mjs | 79 +- scripts/v2/lib.mjs | 12 +- server.json | 4 +- src/codemode/procedure-overrides/logs.ts | 7 +- src/codemode/procedure-overrides/secrets.ts | 54 +- src/codemode/sandbox/concurrency.ts | 99 + src/codemode/sandbox/runner.ts | 31 +- src/codemode/sandbox/runtime.ts | 17 + src/codemode/sandbox/subprocess-runner.ts | 111 +- src/codemode/sandbox/worker-entry.ts | 13 +- src/codemode/tools/execute.ts | 45 +- src/codemode/virtual-procedures/database.ts | 217 +- src/codemode/virtual-procedures/shared.ts | 40 + src/codemode/workflows/deploy-application.ts | 37 +- src/generated/dokploy-schemas.ts | 23285 +--------------- src/http-server.ts | 7 + src/http/options.ts | 12 +- src/http/request-handler.ts | 35 +- src/version.ts | 2 +- tests/codemode-execute.integration.test.ts | 73 +- tests/codemode-procedure-overrides.test.ts | 78 + tests/codemode-security.test.ts | 46 + tests/codemode-subprocess-runner.test.ts | 12 + tests/codemode-worker-entry.test.ts | 49 + tests/codemode.test.ts | 146 + ....test.ts => deploy-workflow-tasks.test.ts} | 226 + ...rkflow.test.ts => deploy-workflow.test.ts} | 0 ...ool.test.ts => execute-tool-tasks.test.ts} | 0 ...test.ts => execute-tool-workflows.test.ts} | 0 .../subprocess-workers/test-worker.js | 5 + tests/helpers/subprocess-worker.ts | 3 +- ....ts => http-hardening-adversarial.test.ts} | 0 tests/http-options.test.ts | 23 +- ...ts => http-request-handler-errors.test.ts} | 0 tests/http-server.test.ts | 57 +- tests/http-server.unit.test.ts | 22 + ...> prompts-completions-adversarial.test.ts} | 0 ...est.ts => release-remote-metadata.test.ts} | 0 ...s => sampling-elicitation-runtime.test.ts} | 0 tests/sandbox-code-wrapping.test.ts | 60 + tests/sandbox-concurrency.test.ts | 109 + tests/subprocess-runner.integration.test.ts | 15 + tests/subprocess-runner.test.ts | 260 + ...rial.test.ts => tasks-adversarial.test.ts} | 0 ...-runtime.test.ts => tasks-runtime.test.ts} | 52 +- ...l.test.ts => workflow-adversarial.test.ts} | 0 ...hemas.test.ts => workflow-schemas.test.ts} | 0 vitest.config.ts | 5 +- vitest.phase2.config.ts | 45 - vitest.phase3.config.ts | 51 - vitest.phase4.config.ts | 52 - vitest.phase5.config.ts | 47 - 69 files changed, 2374 insertions(+), 23973 deletions(-) create mode 100644 .dockerignore create mode 100644 .env.example create mode 100644 Dockerfile create mode 100644 docs/examples/compose.hosted.yml create mode 100644 docs/guides/hosted-deploy.md create mode 100644 docs/proposals/upstream-application-one.md create mode 100644 src/codemode/sandbox/concurrency.ts rename tests/{phase4-execute-workflow.test.ts => deploy-workflow-tasks.test.ts} (66%) rename tests/{phase3-execute-workflow.test.ts => deploy-workflow.test.ts} (100%) rename tests/{phase4-execute-tool.test.ts => execute-tool-tasks.test.ts} (100%) rename tests/{phase3-execute-tool.test.ts => execute-tool-workflows.test.ts} (100%) rename tests/{phase5-adversarial.test.ts => http-hardening-adversarial.test.ts} (100%) rename tests/{http-request-handler-phase5-errors.test.ts => http-request-handler-errors.test.ts} (100%) rename tests/{phase2-adversarial.test.ts => prompts-completions-adversarial.test.ts} (100%) rename tests/{phase5-metadata.test.ts => release-remote-metadata.test.ts} (100%) rename tests/{phase3-runtime.test.ts => sampling-elicitation-runtime.test.ts} (100%) create mode 100644 tests/sandbox-code-wrapping.test.ts create mode 100644 tests/sandbox-concurrency.test.ts rename tests/{phase4-adversarial.test.ts => tasks-adversarial.test.ts} (100%) rename tests/{phase4-runtime.test.ts => tasks-runtime.test.ts} (93%) rename tests/{phase3-adversarial.test.ts => workflow-adversarial.test.ts} (100%) rename tests/{phase3-schemas.test.ts => workflow-schemas.test.ts} (100%) delete mode 100644 vitest.phase2.config.ts delete mode 100644 vitest.phase3.config.ts delete mode 100644 vitest.phase4.config.ts delete mode 100644 vitest.phase5.config.ts diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7bdb10d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +node_modules +dist +coverage +.old +*.tgz +.git +plans +.env +.env.* +!.env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..02d72ed --- /dev/null +++ b/.env.example @@ -0,0 +1,32 @@ +# Dokploy credentials +DOKPLOY_URL=https://panel.example.com +DOKPLOY_API_KEY= +DOKPLOY_TIMEOUT=30000 +DOKPLOY_PROFILES_JSON= + +# Server mode and capabilities +DOKPLOY_MCP_TRANSPORT=stdio +DOKPLOY_MCP_MODE=codemode +DOKPLOY_ENABLED_TAGS= +DOKPLOY_MCP_CAPABILITIES= +DOKPLOY_MCP_GATEWAY_RETRIES=2 + +# Hosted HTTP transport +DOKPLOY_MCP_HTTP_HOST=127.0.0.1 +DOKPLOY_MCP_HTTP_PORT=3000 +DOKPLOY_MCP_HTTP_PATH=/mcp +DOKPLOY_MCP_HEALTH_PATH=/health +DOKPLOY_MCP_ALLOWED_ORIGINS= +DOKPLOY_MCP_HTTP_ALLOW_CONFIG_FALLBACK=false + +# Sandbox runtime and limits +DOKPLOY_MCP_SANDBOX_RUNTIME=subprocess +DOKPLOY_MCP_SANDBOX_TIMEOUT_MS=3000 +DOKPLOY_MCP_SANDBOX_MAX_CALLS=40 +DOKPLOY_MCP_SANDBOX_MAX_RESULT_BYTES=1048576 +DOKPLOY_MCP_SANDBOX_MAX_RESPONSE_BYTES=1048576 +DOKPLOY_MCP_SANDBOX_MAX_LOG_BYTES=65536 +DOKPLOY_MCP_SANDBOX_MAX_HEAP_DELTA_BYTES=16777216 +DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT=4 +DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB=256 +DOKPLOY_MCP_SANDBOX_WORKER_PATH= diff --git a/AGENTS.md b/AGENTS.md index e9acadd..67013ca 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,13 +2,13 @@ ## What this is -MCP (Model Context Protocol) server for the Dokploy API. v2 is Code Mode only: two public tools, `search` and `execute`, backed by generated OpenAPI artifacts, a sandboxed runtime, and a generated Dokploy SDK. TypeScript, ES modules, Node >= 24. +MCP (Model Context Protocol) server for the Dokploy API. v2 is Code Mode only: three public tools: `search`, `execute`, and `list_profiles`, backed by generated OpenAPI artifacts, a sandboxed runtime, and a generated Dokploy SDK. TypeScript, ES modules, Node >= 24. ## Architecture - Entry: `src/index.ts` (CLI vs MCP server) - Server: `src/server.ts` (registers Code Mode tools with `McpServer`) -- Public tools: `src/codemode/tools/search.ts`, `src/codemode/tools/execute.ts` +- Public tools: `src/codemode/tools/search.ts`, `src/codemode/tools/execute.ts`, `src/codemode/tools/list-profiles.ts` - Tool factory: `src/mcp/tool-factory.ts` - Search context: `src/codemode/context/search-context.ts` - Execute context: `src/codemode/context/execute-context.ts` @@ -32,7 +32,7 @@ MCP (Model Context Protocol) server for the Dokploy API. v2 is Code Mode only: t - Framework: Vitest - Tests in `tests/*.test.ts` -- Coverage: v8 provider, excludes `src/index.ts` and `src/cli/**` +- Coverage: v8 provider, excludes entry shims `src/index.ts`, `src/cli/index.ts`, and generated code - Run: `npm test` or `npm run test:coverage` ## Commands diff --git a/CLAUDE.md b/CLAUDE.md index 6e5c30d..5eee7f9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,56 +1,9 @@ -# CLAUDE.md -- project context for AI code review +# CLAUDE.md -## What this is +Read [AGENTS.md](./AGENTS.md) -- it is the single source of truth for project context, +architecture, code style, testing, and review guidelines. Everything there applies to Claude Code +sessions in this repo. -MCP (Model Context Protocol) server for the Dokploy API. 23 modules, 196 tools, full endpoint coverage. TypeScript, ES modules, Node >= 22. - -## Architecture - -- Entry: `src/index.ts` (routes CLI vs MCP server) -- Server: `src/server.ts` (registers all tools with McpServer) -- Tools: `src/tools/{module}.ts` -- each module exports tools via factory -- Factory: `src/tools/_factory.ts` (shared tool builder) -- Database helpers: `src/tools/_database.ts` (shared across postgres, mysql, mariadb, mongo, redis) -- Config: `src/config/resolver.ts` (env vars > config file > Dokploy CLI config) -- CLI: `src/cli/setup.ts` (interactive wizard using @clack/prompts) - -## Code style - -- Formatter/linter: Biome (not ESLint/Prettier) -- Single quotes, no semicolons, trailing commas, 2-space indent, 100 char line width -- `kebab-case` filenames (enforced by Biome) -- `useConst`, `useTemplate`, `useImportType`, `useExportType` -- all enforced -- No `forEach` -- use `for...of` or `.map()` -- No enums -- use const objects or union types -- Max cognitive complexity: 20 - -## Testing - -- Framework: Vitest -- Tests in `tests/*.test.ts` -- Coverage: v8 provider, excludes `src/index.ts` and `src/cli/**` -- Run: `npm test` or `npm run test:coverage` - -## Commands - -``` -npm run build # tsc -npm run typecheck # tsc --noEmit -npm run lint # biome check . -npm run lint:fix # biome check --write . -npm test # vitest run -npm run test:coverage # vitest run --coverage -``` - -## Dependencies - -- Runtime: `@modelcontextprotocol/sdk`, `zod` (v4), `@clack/prompts` -- Dev: `@biomejs/biome`, `vitest`, `typescript` - -## Review guidelines - -- Watch for unused imports/variables (Biome catches these, but still) -- API client calls must go through `src/api/client.ts` -- no raw fetch -- Tool definitions follow the factory pattern -- don't create one-off tool registrations -- No `any` unless truly unavoidable (warn, don't block) -- Security: no hardcoded credentials, no secrets in code, no command injection +Quick orientation: this is the Dokploy MCP server, v2 "Code Mode" -- three public MCP tools +(`search`, `execute`, `list_profiles`) over 500+ generated Dokploy procedures, with a sandboxed +runtime for model-written code. TypeScript, ES modules, Node >= 24, Biome, Vitest. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9d7fa4f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM node:24-slim AS build + +WORKDIR /app + +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . +RUN npm run build +RUN npm prune --omit=dev + +FROM node:24-slim AS run + +WORKDIR /app + +ENV NODE_ENV=production +ENV DOKPLOY_MCP_TRANSPORT=http +ENV DOKPLOY_MCP_HTTP_HOST=0.0.0.0 +ENV DOKPLOY_MCP_HTTP_PORT=3000 +ENV DOKPLOY_MCP_HTTP_PATH=/mcp +ENV DOKPLOY_MCP_HEALTH_PATH=/health + +COPY --from=build --chown=node:node /app/dist ./dist +COPY --from=build --chown=node:node /app/node_modules ./node_modules +COPY --from=build --chown=node:node /app/package.json ./package.json +COPY --from=build --chown=node:node /app/server.json ./server.json + +USER node +EXPOSE 3000 + +HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD ["node", "-e", "fetch('http://127.0.0.1:3000/health').then((r)=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"] + +CMD ["node", "dist/index.js", "serve-http"] diff --git a/README.md b/README.md index e99b6c8..0749f69 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Need proof instead of a sales monologue? Start with [docs/live-e2e-proof.md](./d Get your API key from **Dokploy Settings > Profile > API/CLI**. +For env-based setup, start from [`.env.example`](./.env.example). + If your client uses a JSON-style MCP config, this is the whole block: ```json @@ -148,6 +150,7 @@ working shape. - [docs/guides/modes.md](./docs/guides/modes.md) - [docs/guides/compose.md](./docs/guides/compose.md) - [docs/guides/hosted-http.md](./docs/guides/hosted-http.md) +- [docs/guides/hosted-deploy.md](./docs/guides/hosted-deploy.md) - [docs/guides/troubleshooting.md](./docs/guides/troubleshooting.md) - [docs/live-e2e-proof.md](./docs/live-e2e-proof.md) diff --git a/docs/examples/compose.hosted.yml b/docs/examples/compose.hosted.yml new file mode 100644 index 0000000..b4dbe1a --- /dev/null +++ b/docs/examples/compose.hosted.yml @@ -0,0 +1,38 @@ +services: + dokploy-mcp: + build: + context: ../.. + dockerfile: Dockerfile + restart: unless-stopped + environment: + DOKPLOY_MCP_TRANSPORT: http + DOKPLOY_MCP_HTTP_HOST: 0.0.0.0 + DOKPLOY_MCP_HTTP_PORT: 3000 + DOKPLOY_MCP_HTTP_PATH: /mcp + DOKPLOY_MCP_HEALTH_PATH: /health + # Leave empty unless a browser-based client needs CORS. Prefer explicit origins, not "*". + DOKPLOY_MCP_ALLOWED_ORIGINS: "" + DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB: 256 + DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT: 4 + # Do not set DOKPLOY_MCP_HTTP_ALLOW_CONFIG_FALLBACK for multi-client hosted servers. + # Per-request X-Dokploy-Url and X-Dokploy-Api-Key headers keep tenant credentials isolated. + ports: + - "3000:3000" + healthcheck: + test: + [ + "CMD", + "node", + "-e", + "fetch('http://127.0.0.1:3000/health').then((r)=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))", + ] + interval: 30s + timeout: 5s + retries: 3 + start_period: 10s + +# Put TLS in front of this service. Example Caddyfile: +# +# mcp.example.com { +# reverse_proxy dokploy-mcp:3000 +# } diff --git a/docs/guides/hosted-deploy.md b/docs/guides/hosted-deploy.md new file mode 100644 index 0000000..2e21259 --- /dev/null +++ b/docs/guides/hosted-deploy.md @@ -0,0 +1,70 @@ +# Hosted Deploy + +Run hosted HTTP when a central MCP server should serve multiple clients. Keep TLS at a reverse +proxy. Do not bake Dokploy credentials into the container. + +## Build + +```bash +docker build -t dokploy-mcp-http . +docker run --rm -p 8787:3000 dokploy-mcp-http +``` + +The image binds `DOKPLOY_MCP_HTTP_HOST=0.0.0.0` because containers need a non-loopback listener. +Expose it only behind a proxy. + +Health: + +```bash +curl -fsS http://localhost:8787/health +``` + +MCP endpoint smoke: + +```bash +curl -sS -i -X POST http://localhost:8787/mcp \ + -H 'content-type: application/json' \ + -H 'accept: application/json, text/event-stream' \ + --data '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' +``` + +Without `X-Dokploy-Url` and `X-Dokploy-Api-Key`, protected MCP requests fail closed. That proves the +endpoint answers without sharing a default identity. + +## Compose + +```bash +docker compose -f docs/examples/compose.hosted.yml up -d --build +docker compose -f docs/examples/compose.hosted.yml ps +``` + +The example leaves `DOKPLOY_MCP_HTTP_ALLOW_CONFIG_FALLBACK` unset. Multi-client hosted servers should +use per-request credentials, not local config fallback. + +## Client Contract + +The MCP registry metadata in `server.json` advertises the hosted remote as: + +- URL: `https://{remoteHost}{mcpPath}` +- default path: `/mcp` +- required headers: `X-Dokploy-Url`, `X-Dokploy-Api-Key` + +Send the Dokploy panel URL and API key with each request. Do not put them in the image or compose +file. + +## Security Posture + +- terminate TLS at Caddy, Traefik, or another reverse proxy +- keep `DOKPLOY_MCP_HTTP_ALLOW_CONFIG_FALLBACK` off for shared servers +- set `DOKPLOY_MCP_ALLOWED_ORIGINS` only for browser clients, and prefer explicit origins +- tune `DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB` and `DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT` with host + CPU and memory in mind +- leave `DOKPLOY_MCP_SANDBOX_WORKER_REUSE` unset for hosted or multi-tenant deployments + +## Smoke Checklist + +1. `curl -fsS http://localhost:8787/health` returns JSON. +2. unauthenticated `/mcp` POST returns a JSON-RPC error, not a network failure. +3. an MCP client can initialize and call `tools/list` with `X-Dokploy-Url` and + `X-Dokploy-Api-Key`. +4. logs show `Dokploy MCP HTTP server listening at`. diff --git a/docs/guides/hosted-http.md b/docs/guides/hosted-http.md index 7b28b62..f58ba86 100644 --- a/docs/guides/hosted-http.md +++ b/docs/guides/hosted-http.md @@ -14,6 +14,8 @@ You want it when: npx @vibetools/dokploy-mcp serve-http ``` +For Docker and compose deployment, see [hosted-deploy.md](./hosted-deploy.md). + Defaults: - MCP path: `/mcp` diff --git a/docs/guides/modes.md b/docs/guides/modes.md index c79bc99..81eedfb 100644 --- a/docs/guides/modes.md +++ b/docs/guides/modes.md @@ -44,6 +44,17 @@ Hybrid gives you: Use it when you want the compact default surface but still need a few explicit raw endpoints. +## Sandbox Runtimes + +`DOKPLOY_MCP_SANDBOX_RUNTIME=subprocess` is the default. Generated code runs in a child process with +an empty env, worker memory cap, and process termination on timeout. + +`DOKPLOY_MCP_SANDBOX_RUNTIME=local` runs generated code in the main process. It is for dev/test only, +prints a warning when used, and is refused by `serve-http`. + +Local mode cannot hard-kill CPU-bound async continuations after timeout. Use subprocess for +production. + ## How To Switch Use: diff --git a/docs/guides/troubleshooting.md b/docs/guides/troubleshooting.md index f23e3d4..f664d58 100644 --- a/docs/guides/troubleshooting.md +++ b/docs/guides/troubleshooting.md @@ -71,3 +71,33 @@ So after any non-trivial deploy: 1. check latest deployment 2. read the logs 3. only then pretend it is healthy + +## Sandbox Worker Exits Under Load + +Subprocess sandbox workers run with a V8 old-space cap. + +`DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB` controls that cap. Default: `256`. + +If generated code exceeds it, the `execute` call fails with a worker-exit error. Raise it only for +trusted workloads that need larger in-memory results. + +## Sandbox Is At Capacity + +`DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT` controls concurrent subprocess sandbox runs. Default: `4`. + +When all slots and the bounded wait queue are full, calls fail with `Sandbox is at capacity`. +Hosted deployments serving many clients should raise this only with matching CPU and memory headroom. + +## Reusing Sandbox Workers + +`DOKPLOY_MCP_SANDBOX_WORKER_REUSE=1` keeps one warm subprocess per mode after successful runs. It +can reduce repeated `search` and `execute` startup cost in single-user stdio sessions. + +Each run still gets a fresh VM context, but the process is retained between successful runs. Timeout, +abort, IPC, and execution-error paths discard the worker. Hosted or multi-tenant deployments should +leave this unset to keep strict fork-per-call process isolation. + +## Redacted Logs Are Still Sensitive + +Log and response redaction is pattern-based and best-effort. `includeSecrets: true` deliberately +bypasses response redaction. Review redacted logs before publishing them outside your team. diff --git a/docs/live-e2e-proof.md b/docs/live-e2e-proof.md index cddcfd5..6876d15 100644 --- a/docs/live-e2e-proof.md +++ b/docs/live-e2e-proof.md @@ -1,5 +1,9 @@ # Live End-To-End Proof +Snapshot captured 2026-04-21 against package v3.0.x; commands and surface below reflect that date. +Current behavior is continuously checked by `npm test` and `npm run ci:budgets`; this document is +historical live evidence, not a freshness claim. + Yes, it actually deployed something. Revolutionary stuff. This document is the public evidence snapshot for the current `v3` package surface. It focuses on @@ -378,5 +382,7 @@ npm run ci:budgets npm test ``` +`test:phase5` was retired after v3 shipped; use `npm test` for current verification. + For the hosted HTTP contract and operator details, see [remote-http.md](./remote-http.md). For the generated coverage and budget snapshot, see [coverage.md](./coverage.md). diff --git a/docs/proposals/upstream-application-one.md b/docs/proposals/upstream-application-one.md new file mode 100644 index 0000000..e24b670 --- /dev/null +++ b/docs/proposals/upstream-application-one.md @@ -0,0 +1,200 @@ +# Upstream proposal: `application.one` response shaping + +Status: recommendation draft, not submitted upstream. +Date: 2026-07-09. + +## Recommendation + +Open a Dokploy issue before writing a PR. The proposed change is small in code but product-facing in API +semantics, and Dokploy's `CONTRIBUTING.md` asks contributors to discuss features before implementation +work. The current best path is: + +1. File an issue against the `canary` branch with the compatibility contract below. +2. Ask maintainers whether `select` should silently omit unknown top-level fields, matching this MCP, + or reject them with validation. +3. Only prepare a PR after that answer, because the unknown-field decision affects the public API + contract and generated OpenAPI surface. + +This is a conditional go: proceed issue-first; do not PR-first. + +## Current upstream state + +Read-only upstream check was performed against `Dokploy/dokploy` `canary` on 2026-07-09. + +- `apps/dokploy/server/api/routers/application.ts` registers `applicationRouter.one` with + `apiFindOneApplication`, checks service read access, calls `findApplicationById`, checks organization + ownership, then adds git-provider authorization metadata. +- `packages/server/src/db/schema/application.ts` defines `apiFindOneApplication` as only + `{ applicationId: z.string().min(1) }`. +- `packages/server/src/services/application.ts` implements `findApplicationById` with eager related + reads including `environment.project`, `domains`, `deployments`, `mounts`, `redirects`, `security`, + `ports`, git providers, server, preview deployments, and registries. +- Public API docs for `GET /api/application.one` expose only `applicationId`. +- No upstream `includeDeployments` or `deploymentLimit` fields were found in the application router or + server package. + +## Current MCP behavior + +This MCP currently adds local-only shaping in +`src/codemode/procedure-overrides/application-one.ts`. + +Supported inputs: + +- `select?: string[]` +- `includeDeployments?: boolean` +- `deploymentLimit?: number` +- `includeSecrets?: boolean` + +Forwarding behavior: + +- `select`, `includeDeployments`, `deploymentLimit`, and `includeSecrets` are stripped before the + request is forwarded to Dokploy. +- `includeSecrets` is only an MCP redaction toggle. It is not part of this upstream proposal. + +Response behavior: + +- No shaping fields means current response behavior is preserved. +- `select` keeps only requested existing top-level fields. +- Unknown `select` fields are silently omitted. +- Duplicate selected fields are deduped in first-seen order. +- `includeDeployments: false` removes `deployments`. +- `deploymentLimit` slices `deployments` when it is an array. +- `deploymentLimit: 0` returns an empty `deployments` array. +- `includeDeployments: false` with `deploymentLimit` is rejected. + +Validation behavior: + +- `select` must be a non-empty array of non-empty strings when provided. +- `deploymentLimit` must be a non-negative integer when provided. +- `includeDeployments: false` cannot be combined with `deploymentLimit`. + +## Measured impact + +Measurement method: a representative application fixture was passed through the real MCP +`application.one` gateway transform with ten deployment records and common related records. The fixture +is not a live production payload; it is a deterministic local measurement of the current MCP shaping +semantics. + +| Scenario | Input | JSON bytes | +|----------|-------|------------| +| Full current read | `{ applicationId }` | 13,138 | +| Omit deployments | `{ applicationId, includeDeployments: false }` | 1,541 | +| Prompt/resource shape | `{ applicationId, select: [...], deploymentLimit: 1 }` | 1,863 | +| Minimal status read | `{ applicationId, select: ['applicationId', 'name', 'applicationStatus'] }` | 70 | + +The representative prompt/resource shape uses: + +```ts +{ + select: [ + 'applicationId', + 'name', + 'appName', + 'applicationStatus', + 'domains', + 'mounts', + 'watchPaths', + 'deployments', + ], + deploymentLimit: 1, +} +``` + +That reduces the serialized response from 13,138 bytes to 1,863 bytes in the local measurement, an +85.8% reduction before any model prompt or transport overhead is counted. + +## Proposed upstream API + +Extend `apiFindOneApplication` compatibly: + +```ts +export const apiFindOneApplication = z + .object({ + applicationId: z.string().min(1), + select: z.array(z.string().min(1)).nonempty().optional(), + includeDeployments: z.boolean().optional(), + deploymentLimit: z.number().int().nonnegative().optional(), + }) + .refine( + (input) => input.includeDeployments !== false || input.deploymentLimit === undefined, + { + message: 'deploymentLimit cannot be used when includeDeployments is false', + path: ['deploymentLimit'], + }, + ) +``` + +The router can continue using `findApplicationById` for the first upstream version. That preserves the +access-control path and keeps the PR small. A later optimization can push `select` and deployment +limits deeper into Drizzle queries if maintainers want true database-level savings. + +Recommended first implementation: + +1. Keep the current unshaped response byte-for-byte compatible when no new inputs are provided. +2. Apply shaping after authorization checks and after git-provider access metadata is added. +3. Filter only top-level fields. +4. Preserve `hasGitProviderAccess` and `unauthorizedProvider` when selected explicitly or when no + `select` is provided. +5. Do not add `includeSecrets`; it is MCP-specific because upstream already owns its auth model. + +## Upstream touch points + +- `packages/server/src/db/schema/application.ts` + - extend `apiFindOneApplication` + - add validation tests if upstream has schema-level tests for this package +- `apps/dokploy/server/api/routers/application.ts` + - shape the `one` result after current auth checks + - add or update router tests if available +- OpenAPI generation + - regenerated docs should expose the new optional inputs for `GET /api/application.one` +- Public docs + - add short compatibility examples for omitting deployments and selecting top-level fields + +## Comparable upstream evidence + +Recent merged PRs show maintainers accept focused API/runtime safety and payload-size work when scoped +narrowly: + +- [#4730](https://github.com/Dokploy/dokploy/pull/4730), "fix: reduce SSR payload size by scoping + user.get columns", merged 2026-07-05. +- [#4733](https://github.com/Dokploy/dokploy/pull/4733), "fix(deployment): resolve schedule to its + service before permission check in allByType", merged 2026-07-05. +- [#4758](https://github.com/Dokploy/dokploy/pull/4758), "feat(ci): pin install.sh release asset to + the released version", merged 2026-07-07. + +Open upstream issues also show payload and public API shape pain: + +- [#3793](https://github.com/Dokploy/dokploy/issues/3793) reports an OpenAPI endpoint failure while + the equivalent tRPC path returns a large project payload. +- [#4700](https://github.com/Dokploy/dokploy/issues/4700) reports a slow dashboard with a large page + data payload and discusses limiting recent deployment data. + +## `application.many` feasibility + +Recommendation: defer until `application.one` shaping is accepted or rejected. + +Native `application.many` is feasible, but the API contract is wider than `application.one`: + +- define max batch size +- preserve input order +- choose partial-failure behavior for missing or unauthorized applications +- reuse the same `select`, `includeDeployments`, and `deploymentLimit` semantics +- avoid N identical permission-check code paths drifting from `application.one` + +If `application.one` shaping lands, `application.many` can reuse that internal shaper and focus only on +batch semantics. + +## `project.overview` feasibility + +Recommendation: issue/design only for now. + +`project.overview` is useful, but it is a larger aggregate endpoint with more product semantics than +`application.one`: + +- environment grouping has to be stable and documented +- each service type needs a consistent summary shape +- "last deployment" and deployment limits need clear rules +- payload size can regress quickly if the endpoint grows into a dashboard dump + +The better upstream order is `application.one` shaping first, then `application.many`, then a scoped +`project.overview` design if maintainers want an aggregate read endpoint. diff --git a/docs/remote-http.md b/docs/remote-http.md index a375169..36e171c 100644 --- a/docs/remote-http.md +++ b/docs/remote-http.md @@ -122,13 +122,6 @@ The health endpoint returns the active remote-auth posture, including: ## Verification Commands -Dedicated `phase 5` verification: - -```bash -npm run test:phase5 -npm run test:phase5:coverage -``` - Repository-wide verification: ```bash @@ -145,15 +138,12 @@ npm run ci:budgets Latest local verification in this execution cycle: -- `npm run test:phase5:coverage`: `175` tests passed with `97.79%` statements, `91.66%` - branches, `95.91%` functions, `99.61%` lines on the dedicated Phase 5 slice - `npm test`: `495` tests passed - `npm run test:coverage`: `90.07%` statements, `79.45%` branches, `94.23%` functions, `90.48%` lines repository-wide -The dedicated Phase 5 acceptance suite clears the requested `90%+` level across statements, -branches, functions, and lines, and includes unit, adversarial, integration, and metadata -verification for the remote surface. +See [coverage.md](./coverage.md) for the generated coverage snapshot maintained by the docs facts +checker. The full repository now also clears `90%` for statements and lines. Remaining lower branch -coverage is outside the specific Phase 5 closeout scope. +coverage is outside the hosted HTTP closeout scope. diff --git a/docs/upstream-alignment.md b/docs/upstream-alignment.md index 0f2d175..4276c27 100644 --- a/docs/upstream-alignment.md +++ b/docs/upstream-alignment.md @@ -27,6 +27,9 @@ These improve model cost and workflow ergonomics, but they do not give true serv ### 1. `application.one` server-side shaping +Status: see the detailed issue-first recommendation in +[`docs/proposals/upstream-application-one.md`](./proposals/upstream-application-one.md). + **Current call** ```ts diff --git a/package-lock.json b/package-lock.json index 2f2b617..6f3de4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vibetools/dokploy-mcp", - "version": "3.1.2", + "version": "4.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vibetools/dokploy-mcp", - "version": "3.1.2", + "version": "4.0.0", "license": "MIT", "dependencies": { "@clack/prompts": "^1.3.0", @@ -291,21 +291,21 @@ } }, "node_modules/@emnapi/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", - "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz", + "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==", "dev": true, "license": "MIT", "optional": true, "dependencies": { - "@emnapi/wasi-threads": "1.2.1", + "@emnapi/wasi-threads": "1.2.2", "tslib": "^2.4.0" } }, "node_modules/@emnapi/runtime": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", - "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz", + "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==", "dev": true, "license": "MIT", "optional": true, @@ -314,9 +314,9 @@ } }, "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz", + "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==", "dev": true, "license": "MIT", "optional": true, @@ -405,14 +405,14 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", - "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", + "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", "dev": true, "license": "MIT", "optional": true, "dependencies": { - "@tybys/wasm-util": "^0.10.1" + "@tybys/wasm-util": "^0.10.3" }, "funding": { "type": "github", @@ -424,9 +424,9 @@ } }, "node_modules/@oxc-project/types": { - "version": "0.128.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.128.0.tgz", - "integrity": "sha512-huv1Y/LzBJkBVHt3OlC7u0zHBW9qXf1FdD7sGmc1rXc2P1mTwHssYv7jyGx5KAACSCH+9B3Bhn6Z9luHRvf7pQ==", + "version": "0.139.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.139.0.tgz", + "integrity": "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==", "dev": true, "license": "MIT", "funding": { @@ -434,9 +434,9 @@ } }, "node_modules/@rolldown/binding-android-arm64": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.18.tgz", - "integrity": "sha512-lIDyUAfD7U3+BWKzdxMbJcsYHuqXqmGz40aeRqvuAm3y5TkJSYTBW2RDrn65DJFPQqVjUAUqq5uz8urzQ8aBdQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.1.5.tgz", + "integrity": "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==", "cpu": [ "arm64" ], @@ -451,9 +451,9 @@ } }, "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.18.tgz", - "integrity": "sha512-apJq2ktnGp27nSInMR5Vcj8kY6xJzDAvfdIFlpDcAK/w4cDO58qVoi1YQsES/SKiFNge/6e4CUzgjfHduYqWpQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.1.5.tgz", + "integrity": "sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==", "cpu": [ "arm64" ], @@ -468,9 +468,9 @@ } }, "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.18.tgz", - "integrity": "sha512-5Ofot8xbs+pxRHJqm9/9N/4sTQOvdrwEsmPE9pdLEEoAbdZtG6F2LMDfO1sp6ZAtXJuJV/21ew2srq3W8NXB5g==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.1.5.tgz", + "integrity": "sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==", "cpu": [ "x64" ], @@ -485,9 +485,9 @@ } }, "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.18.tgz", - "integrity": "sha512-7h8eeOTT1eyqJyx64BFCnWZpNm486hGWt2sqeLLgDxA0xI1oGZ9H7gK1S85uNGmBhkdPwa/6reTxfFFKvIsebw==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.1.5.tgz", + "integrity": "sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==", "cpu": [ "x64" ], @@ -502,9 +502,9 @@ } }, "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.18.tgz", - "integrity": "sha512-eRcm/HVt9U/JFu5RKAEKwGQYtDCKWLiaH6wOnsSEp6NMBb/3Os8LgHZlNyzMpFVNmiiMFlfb2zEnebfzJrHFmg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.1.5.tgz", + "integrity": "sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==", "cpu": [ "arm" ], @@ -519,9 +519,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.18.tgz", - "integrity": "sha512-SOrT/cT4ukTmgnrEz/Hg3m7LBnuCLW9psDeMKrimRWY4I8DmnO7Lco8W2vtqPmMkbVu8iJ+g4GFLVLLOVjJ9DQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.1.5.tgz", + "integrity": "sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==", "cpu": [ "arm64" ], @@ -539,9 +539,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.18.tgz", - "integrity": "sha512-QWjdxN1HJCpBTAcZ5N5F7wju3gVPzRzSpmGzx7na0c/1qpN9CFil+xt+l9lV/1M6/gqHSNXCiqPfwhVJPeLnug==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.1.5.tgz", + "integrity": "sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==", "cpu": [ "arm64" ], @@ -559,9 +559,9 @@ } }, "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.18.tgz", - "integrity": "sha512-ugCOyj7a4d9h3q9B+wXmf6g3a68UsjGh6dob5DHevHGMwDUbhsYNbSPxJsENcIttJZ9jv7qGM2UesLw5jqIhdg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.1.5.tgz", + "integrity": "sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==", "cpu": [ "ppc64" ], @@ -579,9 +579,9 @@ } }, "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.18.tgz", - "integrity": "sha512-kKWRhbsotpXkGbcd5dllUWg5gEXcDAa8u5YnP9AV5DYNbvJHGzzuwv7dpmhc8NqKMJldl0a+x76IHbspEpEmdA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.1.5.tgz", + "integrity": "sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==", "cpu": [ "s390x" ], @@ -599,9 +599,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.18.tgz", - "integrity": "sha512-uCo8ElcCIAMyYAZyuIZ81oFkhTSIllNvUCHCAlbhlN4ji3uC28h7IIdlXyIvGO7HsuqnV9p3rD/bpH7XhIyhRw==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.1.5.tgz", + "integrity": "sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==", "cpu": [ "x64" ], @@ -619,9 +619,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.18.tgz", - "integrity": "sha512-XNOQZtuE6yUIvx4rwGemwh8kpL1xvU41FXy/s9K7T/3JVcqGzo3NfKM2HrbrGgfPYGFW42f07Wk++aOC6B9NWA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.1.5.tgz", + "integrity": "sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==", "cpu": [ "x64" ], @@ -639,9 +639,9 @@ } }, "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.18.tgz", - "integrity": "sha512-tSn/kzrfa7tNOXr7sEacDBN4YsIqTyLqh45IO0nHDwtpKIDNDJr+VFojt+4klSpChxB29JLyduSsE0MKEwa65A==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.1.5.tgz", + "integrity": "sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==", "cpu": [ "arm64" ], @@ -656,9 +656,9 @@ } }, "node_modules/@rolldown/binding-wasm32-wasi": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.18.tgz", - "integrity": "sha512-+J9YGmc+czgqlhYmwun3S3O0FIZhsH8ep2456xwjAdIOmuJxM7xz4P4PtrxU+Bz17a/5bqPA8o3HAAoX0teUdg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.1.5.tgz", + "integrity": "sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==", "cpu": [ "wasm32" ], @@ -666,18 +666,18 @@ "license": "MIT", "optional": true, "dependencies": { - "@emnapi/core": "1.10.0", - "@emnapi/runtime": "1.10.0", - "@napi-rs/wasm-runtime": "^1.1.4" + "@emnapi/core": "1.11.1", + "@emnapi/runtime": "1.11.1", + "@napi-rs/wasm-runtime": "^1.1.6" }, "engines": { "node": "^20.19.0 || >=22.12.0" } }, "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.18.tgz", - "integrity": "sha512-zsu47DgU0FQzSwi6sU9dZoEdUv7pc1AptSEz/Z8HBg54sV0Pbs3N0+CrIbTsgiu6EyoaNN9CHboqbLaz9lhOyQ==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.1.5.tgz", + "integrity": "sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==", "cpu": [ "arm64" ], @@ -692,9 +692,9 @@ } }, "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.18.tgz", - "integrity": "sha512-7H+3yqGgmnlDTRRhw/xpYY9J1kf4GC681nVc4GqKhExZTDrVVrV2tsOR9kso0fvgBdcTCcQShx4SLLoHgaLwhg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.1.5.tgz", + "integrity": "sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==", "cpu": [ "x64" ], @@ -709,9 +709,9 @@ } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.18.tgz", - "integrity": "sha512-CUY5Mnhe64xQBGZEEXQ5WyZwsc1JU3vAZLIxtrsBt3LO6UOb+C8GunVKqe9sT8NeWb4lqSaoJtp2xo6GxT1MNw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "dev": true, "license": "MIT" }, @@ -723,9 +723,9 @@ "license": "MIT" }, "node_modules/@tybys/wasm-util": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", - "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", + "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==", "dev": true, "license": "MIT", "optional": true, @@ -1221,9 +1221,9 @@ "license": "MIT" }, "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -1548,9 +1548,9 @@ } }, "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -1560,9 +1560,9 @@ } }, "node_modules/hono": { - "version": "4.12.18", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.18.tgz", - "integrity": "sha512-RWzP96k/yv0PQfyXnWjs6zot20TqfpfsNXhOnev8d1InAxubW93L11/oNUc3tQqn2G0bSdAOBpX+2uDFHV7kdQ==", + "version": "4.12.28", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.28.tgz", + "integrity": "sha512-YwUvVpSF7m1yOblFPrU3Hbo8XhPheBoiyfGuII6z19LnOr6JpDnyyp7LFNrfV56wS8tpvtBFGRISHN02pDdLOA==", "license": "MIT", "engines": { "node": ">=16.9.0" @@ -2087,9 +2087,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.12", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", - "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "version": "3.3.15", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", + "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", "dev": true, "funding": [ { @@ -2232,9 +2232,9 @@ } }, "node_modules/postcss": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", - "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", + "version": "8.5.16", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz", + "integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==", "dev": true, "funding": [ { @@ -2252,7 +2252,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -2274,12 +2274,13 @@ } }, "node_modules/qs": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz", - "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==", + "version": "6.15.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz", + "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==", "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.1.0" + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" }, "engines": { "node": ">=0.6" @@ -2322,14 +2323,14 @@ } }, "node_modules/rolldown": { - "version": "1.0.0-rc.18", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.18.tgz", - "integrity": "sha512-phmyKBpuBdRYDf4hgyynGAYn/rDDe+iZXKVJ7WX5b1zQzpLkP5oJRPGsfJuHdzPMlyyEO/4sPW6yfSx2gf7lVg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.1.5.tgz", + "integrity": "sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==", "dev": true, "license": "MIT", "dependencies": { - "@oxc-project/types": "=0.128.0", - "@rolldown/pluginutils": "1.0.0-rc.18" + "@oxc-project/types": "=0.139.0", + "@rolldown/pluginutils": "^1.0.0" }, "bin": { "rolldown": "bin/cli.mjs" @@ -2338,21 +2339,21 @@ "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rolldown/binding-android-arm64": "1.0.0-rc.18", - "@rolldown/binding-darwin-arm64": "1.0.0-rc.18", - "@rolldown/binding-darwin-x64": "1.0.0-rc.18", - "@rolldown/binding-freebsd-x64": "1.0.0-rc.18", - "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.18", - "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.18", - "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.18", - "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.18", - "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.18", - "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.18", - "@rolldown/binding-linux-x64-musl": "1.0.0-rc.18", - "@rolldown/binding-openharmony-arm64": "1.0.0-rc.18", - "@rolldown/binding-wasm32-wasi": "1.0.0-rc.18", - "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.18", - "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.18" + "@rolldown/binding-android-arm64": "1.1.5", + "@rolldown/binding-darwin-arm64": "1.1.5", + "@rolldown/binding-darwin-x64": "1.1.5", + "@rolldown/binding-freebsd-x64": "1.1.5", + "@rolldown/binding-linux-arm-gnueabihf": "1.1.5", + "@rolldown/binding-linux-arm64-gnu": "1.1.5", + "@rolldown/binding-linux-arm64-musl": "1.1.5", + "@rolldown/binding-linux-ppc64-gnu": "1.1.5", + "@rolldown/binding-linux-s390x-gnu": "1.1.5", + "@rolldown/binding-linux-x64-gnu": "1.1.5", + "@rolldown/binding-linux-x64-musl": "1.1.5", + "@rolldown/binding-openharmony-arm64": "1.1.5", + "@rolldown/binding-wasm32-wasi": "1.1.5", + "@rolldown/binding-win32-arm64-msvc": "1.1.5", + "@rolldown/binding-win32-x64-msvc": "1.1.5" } }, "node_modules/router": { @@ -2463,14 +2464,14 @@ } }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, @@ -2482,13 +2483,13 @@ } }, "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" + "object-inspect": "^1.13.4" }, "engines": { "node": ">= 0.4" @@ -2611,9 +2612,9 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.16", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", - "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { @@ -2708,17 +2709,17 @@ } }, "node_modules/vite": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.11.tgz", - "integrity": "sha512-Jz1mxtUBR5xTT65VOdJZUUeoyLtqljmFkiUXhPTLZka3RDc9vpi/xXkyrnsdRcm2lIi3l3GPMnAidTsEGIj3Ow==", + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.3.tgz", + "integrity": "sha512-Ds+gBRbj0lwRO2Y5hwnUBdxSwlAve9LeRyU4sNnAr0ewW0gWF0n5bgXgUzbgZ49MV9BVUAQUFYVcDUcilUExMA==", "dev": true, "license": "MIT", "dependencies": { "lightningcss": "^1.32.0", "picomatch": "^4.0.4", - "postcss": "^8.5.14", - "rolldown": "1.0.0-rc.18", - "tinyglobby": "^0.2.16" + "postcss": "^8.5.16", + "rolldown": "~1.1.3", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" @@ -2734,7 +2735,7 @@ }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.1.18", + "@vitejs/devtools": "^0.3.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", diff --git a/package.json b/package.json index ed66adb..60d1305 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vibetools/dokploy-mcp", - "version": "3.1.2", + "version": "4.0.0", "description": "Dokploy MCP server for Codex, Cursor, and Claude with compact stdio and hosted HTTP modes", "mcpName": "io.github.vcode-sh/dokploy-mcp", "type": "module", @@ -34,14 +34,6 @@ "smoke:execute": "node scripts/v2/smoke-execute-live.mjs", "start": "node dist/index.js", "test": "vitest run", - "test:phase2": "vitest run --config vitest.phase2.config.ts", - "test:phase2:coverage": "vitest run --config vitest.phase2.config.ts --coverage", - "test:phase3": "vitest run --config vitest.phase3.config.ts", - "test:phase3:coverage": "vitest run --config vitest.phase3.config.ts --coverage", - "test:phase4": "vitest run --config vitest.phase4.config.ts", - "test:phase4:coverage": "vitest run --config vitest.phase4.config.ts --coverage", - "test:phase5": "vitest run --config vitest.phase5.config.ts", - "test:phase5:coverage": "vitest run --config vitest.phase5.config.ts --coverage", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "typecheck": "tsc --noEmit", @@ -64,14 +56,6 @@ "typescript": "^6.0.3", "vitest": "^4.1.5" }, - "overrides": { - "@hono/node-server": "1.19.14", - "hono": "4.12.18", - "express-rate-limit": "8.5.1", - "ip-address": "10.2.0", - "path-to-regexp": "8.4.2", - "fast-uri": "3.1.2" - }, "engines": { "node": ">=24.0.0" }, diff --git a/scripts/sync-doc-facts.mjs b/scripts/sync-doc-facts.mjs index 476b3f9..06130bc 100644 --- a/scripts/sync-doc-facts.mjs +++ b/scripts/sync-doc-facts.mjs @@ -12,10 +12,16 @@ const budgetScriptPath = resolve(repoRoot, 'scripts/v2/check-budgets.mjs') const budgetDistEntryPath = resolve(repoRoot, 'dist/codemode/tools/index.js') const readmePath = resolve(repoRoot, 'README.md') const coveragePath = resolve(repoRoot, 'docs/coverage.md') +const packagePath = resolve(repoRoot, 'package.json') +const serverJsonPath = resolve(repoRoot, 'server.json') +const versionPath = resolve(repoRoot, 'src/version.ts') +const claudePath = resolve(repoRoot, 'CLAUDE.md') +const agentsPath = resolve(repoRoot, 'AGENTS.md') const classicEndpointPerToolBaselineTokens = 92354 const defaultPublicTools = ['search', 'execute', 'list_profiles'] const checkMode = process.argv.includes('--check') +const legacyDocPatterns = ['196 tools', '23 modules', 'Node >= 22', 'src/tools/'] function readJson(path) { return JSON.parse(readFileSync(path, 'utf8')) @@ -126,6 +132,63 @@ function formatToolList(tools) { return tools.map((tool) => `\`${tool}\``).join(', ') } +function collectVersionFacts() { + const packageJson = readJson(packagePath) + const serverJson = readJson(serverJsonPath) + const versionSource = readFileSync(versionPath, 'utf8') + const serverVersionMatch = versionSource.match(/SERVER_VERSION = '([^']+)'/) + + if (!serverVersionMatch) { + throw new Error('Could not parse SERVER_VERSION from src/version.ts') + } + + return [ + { label: 'package.json version', value: packageJson.version }, + { label: 'server.json version', value: serverJson.version }, + { label: 'server.json packages[0].version', value: serverJson.packages?.[0]?.version }, + { label: 'src/version.ts SERVER_VERSION', value: serverVersionMatch[1] }, + ] +} + +function checkVersionAlignment() { + const versions = collectVersionFacts() + const expectedVersion = versions[0]?.value + const mismatches = versions.filter((entry) => entry.value !== expectedVersion) + + if (mismatches.length === 0) { + return [] + } + + return [ + [ + 'Version fields are out of sync:', + ...versions.map((entry) => `- ${entry.label}: ${entry.value ?? '(missing)'}`), + ].join('\n'), + ] +} + +function checkLegacyDocs() { + const docs = [ + { path: claudePath, label: 'CLAUDE.md' }, + { path: agentsPath, label: 'AGENTS.md' }, + ] + const errors = [] + + for (const doc of docs) { + const source = readFileSync(doc.path, 'utf8') + const matches = legacyDocPatterns.filter((pattern) => source.includes(pattern)) + if (matches.length > 0) { + errors.push(`${doc.label} contains legacy architecture text: ${matches.join(', ')}`) + } + } + + return errors +} + +function runCheckAssertions() { + return [...checkVersionAlignment(), ...checkLegacyDocs()] +} + function updateReadme(source, facts) { return replaceManagedSection(source, 'readme', renderReadmeFacts(facts)) } @@ -159,14 +222,22 @@ function main() { .filter(({ current, next }) => current !== next) if (checkMode) { - if (updates.length === 0) { + const assertionErrors = runCheckAssertions() + + if (updates.length === 0 && assertionErrors.length === 0) { console.log('Docs factual sections are current.') return } - console.error('Docs factual sections are out of date. Run `npm run docs:sync:facts`.') - for (const update of updates) { - console.error(`- ${relative(repoRoot, update.path)}`) + if (updates.length > 0) { + console.error('Docs factual sections are out of date. Run `npm run docs:sync:facts`.') + for (const update of updates) { + console.error(`- ${relative(repoRoot, update.path)}`) + } + } + + for (const error of assertionErrors) { + console.error(error) } process.exitCode = 1 return diff --git a/scripts/v2/lib.mjs b/scripts/v2/lib.mjs index 93b4bdc..9c6f75d 100644 --- a/scripts/v2/lib.mjs +++ b/scripts/v2/lib.mjs @@ -545,6 +545,8 @@ export function buildCatalogTs() { } export function buildSchemasTs(procedureSchemas) { + const escapedSchemasJson = escapeForSingleQuotedString(JSON.stringify(procedureSchemas)) + return [ '// Generated by scripts/v2/build-runtime-schemas.mjs', 'export type JsonSchema = Record | null', @@ -558,8 +560,16 @@ export function buildSchemasTs(procedureSchemas) { ' outputSchema: JsonSchema', '}', '', - `export const procedureSchemas: Record = ${JSON.stringify(procedureSchemas, null, 2)}`, + `export const procedureSchemas = JSON.parse('${escapedSchemasJson}') as Record`, '', 'export type ProcedureSchemas = typeof procedureSchemas', ].join('\n') } + +function escapeForSingleQuotedString(value) { + return value + .replace(/\\/g, '\\\\') + .replace(/'/g, "\\'") + .replace(/\u2028/g, '\\u2028') + .replace(/\u2029/g, '\\u2029') +} diff --git a/server.json b/server.json index 8856d9a..e061801 100644 --- a/server.json +++ b/server.json @@ -3,7 +3,7 @@ "name": "io.github.vcode-sh/dokploy-mcp", "title": "Dokploy MCP", "description": "Dokploy MCP server for Codex, Cursor, and Claude with compact stdio and hosted HTTP modes", - "version": "3.1.2", + "version": "4.0.0", "websiteUrl": "https://github.com/vcode-sh/dokploy-mcp", "repository": { "url": "https://github.com/vcode-sh/dokploy-mcp", @@ -21,7 +21,7 @@ "registryType": "npm", "registryBaseUrl": "https://registry.npmjs.org", "identifier": "@vibetools/dokploy-mcp", - "version": "3.1.2", + "version": "4.0.0", "runtimeHint": "npx", "transport": { "type": "stdio" diff --git a/src/codemode/procedure-overrides/logs.ts b/src/codemode/procedure-overrides/logs.ts index 69df972..062f687 100644 --- a/src/codemode/procedure-overrides/logs.ts +++ b/src/codemode/procedure-overrides/logs.ts @@ -82,13 +82,10 @@ function redactLogSecrets(value: string) { '$1[REDACTED]', ) .replace( - /(\b[A-Z0-9_]*(?:TOKEN|SECRET|PASSWORD|PASS|PRIVATE_KEY|API_KEY)[A-Z0-9_]*=)([^\s]+)/g, + /(\b(?:[A-Z0-9]+_)*(?:TOKEN|SECRET|PASSWORD|PASSWD|PASS|PRIVATE_KEY|API_KEY|ACCESS_KEY|SIGNING_KEY|ENCRYPTION_KEY|CREDENTIALS|DSN|CONNECTION_STRING|AUTH)(?:_[A-Z0-9]+)*=)([^\s]+)/g, '$1[REDACTED]', ) - .replace( - /((?:mongodb(?:\+srv)?|postgres(?:ql)?|mysql|redis|https?):\/\/[^:\s/@]+:)([^@\s/]+)@/gi, - '$1[REDACTED]@', - ) + .replace(/(\b[a-z][a-z0-9+.-]*:\/\/[^:\s/@]+:)([^@\s/]+)@/gi, '$1[REDACTED]@') } function shapeLogText(value: string) { diff --git a/src/codemode/procedure-overrides/secrets.ts b/src/codemode/procedure-overrides/secrets.ts index 47f342a..f3ac1ca 100644 --- a/src/codemode/procedure-overrides/secrets.ts +++ b/src/codemode/procedure-overrides/secrets.ts @@ -67,28 +67,51 @@ const dataServiceSecretKeys = createCaseInsensitiveKeySet([ // Top-level keys on an application object that contain nested git-provider data const gitProviderNestingKeys = new Set(['github', 'gitea', 'gitlab', 'bitbucket']) -function redactRecord(value: Record): Record { - const redacted: Record = {} +function redactRecord(data: unknown): unknown { + if (Array.isArray(data)) { + let changed = false + const result = data.map((item) => { + const next = redactRecord(item) + changed ||= next !== item + return next + }) + return changed ? result : data + } + + if (!isRecord(data)) { + return data + } - for (const [key, val] of Object.entries(value)) { + let changed = false + const result: Record = {} + + for (const [key, value] of Object.entries(data)) { if (hasSecretKey(gitProviderSecretKeys, key)) { - redacted[key] = '[REDACTED]' - } else if (isRecord(val)) { - redacted[key] = redactRecord(val) - } else { - redacted[key] = val + result[key] = '[REDACTED]' + changed = true + continue } + + const next = redactRecord(value) + result[key] = next + changed ||= next !== value } - return redacted + return changed ? result : data } export function redactGitProviderSecrets(data: unknown): unknown { - if (!isRecord(data)) { - return data + if (Array.isArray(data)) { + let changed = false + const result = data.map((item) => { + const next = redactGitProviderSecrets(item) + changed ||= next !== item + return next + }) + return changed ? result : data } - if (Array.isArray(data)) { + if (!isRecord(data)) { return data } @@ -99,11 +122,10 @@ export function redactGitProviderSecrets(data: unknown): unknown { if (hasSecretKey(gitProviderSecretKeys, key)) { result[key] = '[REDACTED]' changed = true - } else if (gitProviderNestingKeys.has(key) && isRecord(value)) { - result[key] = redactRecord(value) - changed = true } else { - result[key] = value + const next = gitProviderNestingKeys.has(key) ? redactRecord(value) : value + result[key] = next + changed ||= next !== value } } diff --git a/src/codemode/sandbox/concurrency.ts b/src/codemode/sandbox/concurrency.ts new file mode 100644 index 0000000..700d809 --- /dev/null +++ b/src/codemode/sandbox/concurrency.ts @@ -0,0 +1,99 @@ +export interface SandboxSlot { + release: () => void +} + +interface SlotWaiter { + resolve: (slot: SandboxSlot) => void + reject: (error: Error) => void + signal?: AbortSignal + cleanup?: () => void +} + +const maxConcurrentEnvName = 'DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT' +const DEFAULT_MAX_CONCURRENT = 4 + +let activeSlots = 0 +const waitQueue: SlotWaiter[] = [] + +export async function acquireSandboxSlot(signal?: AbortSignal): Promise { + if (signal?.aborted) { + throw createAbortError() + } + + const capacity = resolveMaxConcurrent() + if (activeSlots < capacity) { + activeSlots += 1 + return createSlot() + } + + if (waitQueue.length >= capacity * 4) { + throw new Error(`Sandbox is at capacity (${capacity} running, ${waitQueue.length} queued).`) + } + + return new Promise((resolve, reject) => { + const waiter: SlotWaiter = { resolve, reject, signal } + waiter.cleanup = registerAbortHandler(waiter) + waitQueue.push(waiter) + }) +} + +function resolveMaxConcurrent() { + const parsed = Number.parseInt(process.env[maxConcurrentEnvName] ?? '', 10) + return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_MAX_CONCURRENT +} + +function createSlot(): SandboxSlot { + let released = false + + return { + release: () => { + if (released) { + return + } + + released = true + releaseSlot() + }, + } +} + +function releaseSlot() { + const waiter = waitQueue.shift() + if (!waiter) { + activeSlots = Math.max(0, activeSlots - 1) + return + } + + waiter.cleanup?.() + waiter.resolve(createSlot()) +} + +function registerAbortHandler(waiter: SlotWaiter) { + if (!waiter.signal) { + return undefined + } + + const onAbort = () => { + removeWaiter(waiter) + waiter.reject(createAbortError()) + } + waiter.signal.addEventListener('abort', onAbort, { once: true }) + + return () => { + waiter.signal?.removeEventListener('abort', onAbort) + } +} + +function removeWaiter(waiter: SlotWaiter) { + const index = waitQueue.indexOf(waiter) + if (index >= 0) { + waitQueue.splice(index, 1) + } + waiter.cleanup?.() +} + +function createAbortError() { + const error = new Error('Sandbox execution was aborted.') + error.name = 'AbortError' + return error +} diff --git a/src/codemode/sandbox/runner.ts b/src/codemode/sandbox/runner.ts index d2d554c..7261e30 100644 --- a/src/codemode/sandbox/runner.ts +++ b/src/codemode/sandbox/runner.ts @@ -9,6 +9,7 @@ interface RunSandboxedFunctionOptions> code: string context: TContext limits?: SandboxLimits + onTimeout?: () => void } function deepFreeze(value: T): T { @@ -38,24 +39,37 @@ const ARROW_FN_RE = /^\s*async\s*\(/ * 2. async (ctx) => { ... } -- arrow with param * 3. async () => dokploy.project.all() -- arrow using globals * 4. dokploy.project.all() -- raw expression (auto-wrapped) - * 5. const x = await dokploy.project.all() -- raw statements (auto-wrapped) + * 5. const x = await dokploy.project.all() -- raw statements; use top-level + * return to produce a result */ function wrapSandboxCode(code: string): string { const trimmed = code.trim() if (ARROW_FN_RE.test(trimmed)) { return trimmed } - // Raw code -- wrap in an async function that receives context but ignores it - // (context keys are already available as globals) - const hasReturn = /\breturn\b/.test(trimmed) - const body = hasReturn ? trimmed : `return (${trimmed})` - return `async () => { ${body} }` + const expressionWrapped = `async () => { return (${trimmed}\n) }` + if (compiles(expressionWrapped)) { + return expressionWrapped + } + return `async () => { ${trimmed}\n }` +} + +function compiles(source: string): boolean { + try { + new Script(source, { + filename: 'codemode-wrap-probe.js', + }) + return true + } catch { + return false + } } export async function runSandboxedFunction>({ code, context, limits: providedLimits, + onTimeout, }: RunSandboxedFunctionOptions): Promise { const limits = providedLimits ?? resolveSandboxLimits() const logs: string[] = [] @@ -141,6 +155,11 @@ export async function runSandboxedFunction +const reusableWorkers = new Map() function resolveWorkerPath(workerPath?: string) { const overridePath = workerPath?.trim() || process.env.DOKPLOY_MCP_SANDBOX_WORKER_PATH?.trim() @@ -45,10 +52,58 @@ function createWorker(options: WorkerLaunchOptions = {}) { return fork(resolveWorkerPath(options.workerPath), { stdio: ['ignore', 'ignore', 'ignore', 'ipc'], env: resolveWorkerEnv(options.workerEnv), - execArgv: [], + execArgv: [`--max-old-space-size=${resolveWorkerMaxOldSpaceMb()}`], }) } +function createWorkerForMode(mode: WorkerMode, options: WorkerLaunchOptions = {}) { + if (!isWorkerReuseEnabled()) { + return createWorker(options) + } + + const reusableWorker = reusableWorkers.get(mode) + reusableWorkers.delete(mode) + + if (!reusableWorker?.connected) { + return createWorker(options) + } + + reusableWorker.removeAllListeners() + return reusableWorker +} + +function isWorkerReuseEnabled() { + const value = process.env[workerReuseEnvName]?.trim().toLowerCase() + return value === '1' || value === 'true' +} + +function cacheReusableWorker(mode: WorkerMode, worker: WorkerProcess) { + if (!(isWorkerReuseEnabled() && worker.connected)) { + terminateWorker(worker) + return + } + + const previous = reusableWorkers.get(mode) + if (previous && previous !== worker) { + terminateWorker(previous) + } + + reusableWorkers.set(mode, worker) + const removeCachedWorker = () => { + if (reusableWorkers.get(mode) === worker) { + reusableWorkers.delete(mode) + } + } + worker.once('disconnect', removeCachedWorker) + worker.once('exit', removeCachedWorker) + worker.once('error', removeCachedWorker) +} + +function resolveWorkerMaxOldSpaceMb() { + const parsed = Number.parseInt(process.env[workerMemoryMbEnvName] ?? '', 10) + return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_WORKER_MAX_OLD_SPACE_MB +} + function resolveWorkerEnv(workerEnv?: NodeJS.ProcessEnv) { if (workerEnv) { return workerEnv @@ -211,6 +266,7 @@ function createSettlers( resolvePromise: (value: SandboxExecutionResult) => void, rejectPromise: (reason?: unknown) => void, timeoutId: NodeJS.Timeout | undefined, + reuseMode?: WorkerMode, ) { let settled = false @@ -224,7 +280,10 @@ function createSettlers( } settled = true - cleanupWorker(worker, timeoutId, true) + cleanupWorker(worker, timeoutId, reuseMode === undefined) + if (reuseMode !== undefined) { + cacheReusableWorker(reuseMode, worker) + } resolvePromise({ result: payload.result, logs: payload.logs ?? [], @@ -371,18 +430,32 @@ export async function runSearchInSubprocess(options: { limits?: SandboxLimits workerPath?: string workerEnv?: NodeJS.ProcessEnv +}): Promise { + const slot = await acquireSandboxSlot() + try { + return await runSearchInSubprocessUnbounded(options) + } finally { + slot.release() + } +} + +async function runSearchInSubprocessUnbounded(options: { + code: string + limits?: SandboxLimits + workerPath?: string + workerEnv?: NodeJS.ProcessEnv }): Promise { const limits = resolveLimits(options.limits) return new Promise((resolvePromise, rejectPromise) => { - const worker = createWorker({ + const worker = createWorkerForMode('search', { workerPath: options.workerPath, workerEnv: options.workerEnv, }) const timeoutId = setTimeout(() => { settle.reject(buildTimeoutError(limits.timeoutMs)) }, limits.timeoutMs + SUBPROCESS_TIMEOUT_GRACE_MS) - const settle = createSettlers(worker, resolvePromise, rejectPromise, timeoutId) + const settle = createSettlers(worker, resolvePromise, rejectPromise, timeoutId, 'search') timeoutId.unref?.() @@ -419,15 +492,32 @@ export async function runExecuteInSubprocess(options: { signal?: AbortSignal workerPath?: string workerEnv?: NodeJS.ProcessEnv +}): Promise { + const slot = await acquireSandboxSlot(options.signal) + try { + return await runExecuteInSubprocessUnbounded(options) + } finally { + slot.release() + } +} + +async function runExecuteInSubprocessUnbounded(options: { + code: string + limits?: SandboxLimits + onCall: (procedure: string, input?: Record) => Promise + signal?: AbortSignal + workerPath?: string + workerEnv?: NodeJS.ProcessEnv }): Promise { const limits = resolveLimits(options.limits) return new Promise((resolvePromise, rejectPromise) => { - const worker = createWorker({ + const worker = createWorkerForMode('execute', { workerPath: options.workerPath, workerEnv: options.workerEnv, }) let pendingCallResults = 0 + let receivedCallMessage = false let cleanupAbortListener: (() => void) | undefined const resolveWithCleanup = (value: SandboxExecutionResult) => { cleanupAbortListener?.() @@ -440,7 +530,13 @@ export async function runExecuteInSubprocess(options: { const timeoutId = setTimeout(() => { settle.reject(buildTimeoutError(limits.timeoutMs)) }, limits.timeoutMs + SUBPROCESS_TIMEOUT_GRACE_MS) - const settle = createSettlers(worker, resolveWithCleanup, rejectWithCleanup, timeoutId) + const settle = createSettlers( + worker, + resolveWithCleanup, + rejectWithCleanup, + timeoutId, + 'execute', + ) if (options.signal) { const onAbort = () => { @@ -462,6 +558,7 @@ export async function runExecuteInSubprocess(options: { worker.on('message', (message: unknown) => { const tracksCallResult = isWorkerCallMessage(message) if (tracksCallResult) { + receivedCallMessage = true pendingCallResults += 1 } @@ -479,7 +576,7 @@ export async function runExecuteInSubprocess(options: { worker.on('error', (error) => settle.reject(normalizeError(error))) worker.on('disconnect', () => settle.reject( - pendingCallResults > 0 + pendingCallResults > 0 || receivedCallMessage ? buildCallResultTransportError(new Error(buildDisconnectError().message)) : buildDisconnectError(), ), diff --git a/src/codemode/sandbox/worker-entry.ts b/src/codemode/sandbox/worker-entry.ts index 66f4533..eec8791 100644 --- a/src/codemode/sandbox/worker-entry.ts +++ b/src/codemode/sandbox/worker-entry.ts @@ -14,7 +14,7 @@ const pendingCalls = new Map< >() let requestIdCounter = 0 -let workerRunState: 'idle' | 'running' | 'completed' = 'idle' +let workerRunState: 'idle' | 'running' = 'idle' function isRecord(value: unknown): value is Record { return typeof value === 'object' && value !== null @@ -152,11 +152,7 @@ async function reportWorkerFailure(error: string) { } async function handleUnexpectedWorkerMessageError(error: unknown) { - if (workerRunState === 'completed') { - return - } - - workerRunState = 'completed' + workerRunState = 'idle' rejectPendingCalls(normalizeWorkerError(error)) await reportWorkerFailure(`Sandbox worker message handling failed: ${formatWorkerError(error)}`) } @@ -205,19 +201,18 @@ async function handleRunMessage(payload: Record) { } if (!isValidRunPayload(payload)) { - workerRunState = 'completed' await reportWorkerFailure('Invalid sandbox worker run payload.') return } const limits = resolveRunLimits(payload) if (!limits) { - workerRunState = 'completed' await reportWorkerFailure(buildInvalidLimitsError()) return } workerRunState = 'running' + requestIdCounter = 0 try { const context = createRunContext(payload, limits.maxCalls) @@ -234,7 +229,7 @@ async function handleRunMessage(payload: Record) { } catch (error) { await reportWorkerFailure(getCodemodeErrorMessage(error, 'Sandbox worker execution failed')) } finally { - workerRunState = 'completed' + workerRunState = 'idle' } } diff --git a/src/codemode/tools/execute.ts b/src/codemode/tools/execute.ts index 4fb6ed6..22057c7 100644 --- a/src/codemode/tools/execute.ts +++ b/src/codemode/tools/execute.ts @@ -17,7 +17,7 @@ import type { SandboxHost } from '../sandbox/host.js' import { createSandboxHost } from '../sandbox/host.js' import { resolveSandboxLimits } from '../sandbox/limits.js' import { runSandboxedFunction } from '../sandbox/runner.js' -import { resolveSandboxRuntime } from '../sandbox/runtime.js' +import { resolveSandboxRuntime, warnIfLocalRuntime } from '../sandbox/runtime.js' import { runExecuteInSubprocess } from '../sandbox/subprocess-runner.js' import { type DeployApplicationWorkflowInput, @@ -107,8 +107,9 @@ export async function runExecuteWithHost( host: SandboxHost, options: RunExecuteWithHostOptions = {}, ) { + const runtime = resolveSandboxRuntime() const execution = - options.forceSubprocess === true || resolveSandboxRuntime() === 'subprocess' + options.forceSubprocess === true || runtime === 'subprocess' ? await runExecuteInSubprocess({ code, signal: options.signal, @@ -117,18 +118,7 @@ export async function runExecuteWithHost( return result.data }, }) - : await runSandboxedFunction({ - code, - context: (() => { - const context = buildExecuteContext((procedure, payload) => - host.call(procedure, payload), - ) - return { - dokploy: context.dokploy, - helpers: context.helpers, - } - })(), - }) + : await runExecuteLocally(code, host) const resourceLinks = listResourceLinks(execution.result) @@ -140,6 +130,33 @@ export async function runExecuteWithHost( } } +async function runExecuteLocally(code: string, host: SandboxHost) { + warnIfLocalRuntime() + const localAbort = new AbortController() + const context = buildExecuteContext((procedure, payload) => { + if (localAbort.signal.aborted) { + throw createAbortError() + } + + return host.call(procedure, payload) + }) + + return await runSandboxedFunction({ + code, + context: { + dokploy: context.dokploy, + helpers: context.helpers, + }, + onTimeout: () => localAbort.abort(), + }) +} + +function createAbortError() { + const error = new Error('Sandbox execution was aborted.') + error.name = 'AbortError' + return error +} + function isNonEmptyString(value: string | undefined): value is string { return typeof value === 'string' && value.trim().length > 0 } diff --git a/src/codemode/virtual-procedures/database.ts b/src/codemode/virtual-procedures/database.ts index e7414ef..f09fdd8 100644 --- a/src/codemode/virtual-procedures/database.ts +++ b/src/codemode/virtual-procedures/database.ts @@ -1,6 +1,25 @@ -import { getStringOrNull, isRecord, validateBooleanFlag } from './shared.js' +import { DATABASE_KINDS, getStringOrNull, isRecord, validateBooleanFlag } from './shared.js' import type { VirtualProcedureContext, VirtualProcedureDefinition } from './types.js' +const databaseKindList = DATABASE_KINDS.map((descriptor) => descriptor.kind).join(', ') +const passwordTypeKindList = DATABASE_KINDS.filter((descriptor) => descriptor.supportsPasswordType) + .map((descriptor) => descriptor.kind) + .join(' and ') + +function createDatabaseIdSchemaProperties() { + return Object.fromEntries( + DATABASE_KINDS.map((descriptor) => [descriptor.idField, { type: 'string' }]), + ) +} + +function getDatabaseDescriptor(kind: string) { + return DATABASE_KINDS.find((descriptor) => descriptor.kind === kind) +} + +function supportsPasswordType(kind: string) { + return getDatabaseDescriptor(kind)?.supportsPasswordType === true +} + function createDatabaseManyInputSchema() { return { type: 'object', @@ -12,11 +31,7 @@ function createDatabaseManyInputSchema() { additionalProperties: false, properties: { kind: { type: 'string' }, - mariadbId: { type: 'string' }, - mongoId: { type: 'string' }, - mysqlId: { type: 'string' }, - postgresId: { type: 'string' }, - redisId: { type: 'string' }, + ...createDatabaseIdSchemaProperties(), passwordType: { enum: ['user', 'root'] }, }, required: ['kind'], @@ -94,35 +109,14 @@ function validateDatabaseManyRequest(request: Record, index: nu } const errors: string[] = [] + const descriptor = getDatabaseDescriptor(kind) - switch (kind) { - case 'mariadb': - if (!getStringOrNull(request.mariadbId)) { - errors.push(`requests[${index}].mariadbId is required`) - } - break - case 'mongo': - if (!getStringOrNull(request.mongoId)) { - errors.push(`requests[${index}].mongoId is required`) - } - break - case 'mysql': - if (!getStringOrNull(request.mysqlId)) { - errors.push(`requests[${index}].mysqlId is required`) - } - break - case 'postgres': - if (!getStringOrNull(request.postgresId)) { - errors.push(`requests[${index}].postgresId is required`) - } - break - case 'redis': - if (!getStringOrNull(request.redisId)) { - errors.push(`requests[${index}].redisId is required`) - } - break - default: - errors.push(`requests[${index}].kind must be one of mariadb, mongo, mysql, postgres, redis`) + if (descriptor) { + if (!getStringOrNull(request[descriptor.idField])) { + errors.push(`requests[${index}].${descriptor.idField} is required`) + } + } else { + errors.push(`requests[${index}].kind must be one of ${databaseKindList}`) } if ( @@ -137,10 +131,9 @@ function validateDatabaseManyRequest(request: Record, index: nu if ( 'passwordType' in request && request.passwordType !== undefined && - kind !== 'mariadb' && - kind !== 'mysql' + !supportsPasswordType(kind) ) { - errors.push(`requests[${index}].passwordType is only supported for mariadb and mysql`) + errors.push(`requests[${index}].passwordType is only supported for ${passwordTypeKindList}`) } return errors @@ -178,11 +171,7 @@ function createDatabaseRotatePasswordPreviewInputSchema() { type: 'object', properties: { kind: { type: 'string' }, - mariadbId: { type: 'string' }, - mongoId: { type: 'string' }, - mysqlId: { type: 'string' }, - postgresId: { type: 'string' }, - redisId: { type: 'string' }, + ...createDatabaseIdSchemaProperties(), type: { enum: ['user', 'root'] }, }, required: ['kind'], @@ -233,34 +222,13 @@ function validateDatabaseRotatePasswordPreviewInput(input: Record) { const kind = String(input.kind) + const descriptor = getDatabaseDescriptor(kind) - switch (kind) { - case 'mariadb': - return { - procedure: 'mariadb.one', - previewProcedure: 'mariadb.changePassword' as const, - resourceId: String(input.mariadbId), - readInput: { mariadbId: String(input.mariadbId) }, - inputTemplate: { - mariadbId: String(input.mariadbId), - ...(input.type ? { type: input.type } : {}), - }, - } - case 'mongo': - return { - procedure: 'mongo.one', - previewProcedure: 'mongo.changePassword' as const, - resourceId: String(input.mongoId), - readInput: { mongoId: String(input.mongoId) }, - inputTemplate: { mongoId: String(input.mongoId) }, - } - case 'mysql': - return { - procedure: 'mysql.one', - previewProcedure: 'mysql.changePassword' as const, - resourceId: String(input.mysqlId), - readInput: { mysqlId: String(input.mysqlId) }, - inputTemplate: { - mysqlId: String(input.mysqlId), - ...(input.type ? { type: input.type } : {}), - }, - } - case 'postgres': - return { - procedure: 'postgres.one', - previewProcedure: 'postgres.changePassword' as const, - resourceId: String(input.postgresId), - readInput: { postgresId: String(input.postgresId) }, - inputTemplate: { postgresId: String(input.postgresId) }, - } - case 'redis': - return { - procedure: 'redis.one', - previewProcedure: 'redis.changePassword' as const, - resourceId: String(input.redisId), - readInput: { redisId: String(input.redisId) }, - inputTemplate: { redisId: String(input.redisId) }, - } - default: - throw new Error(`Unsupported database preview kind: ${kind}`) + if (!descriptor) { + throw new Error(`Unsupported database preview kind: ${kind}`) + } + + const resourceId = String(input[descriptor.idField]) + return { + procedure: descriptor.readProcedure, + previewProcedure: descriptor.previewProcedure, + resourceId, + readInput: { [descriptor.idField]: resourceId }, + inputTemplate: { + [descriptor.idField]: resourceId, + ...(descriptor.supportsPasswordType && input.type ? { type: input.type } : {}), + }, } } function toDatabasePreviewInput(request: Record) { - switch (String(request.kind)) { - case 'mariadb': - return { - kind: 'mariadb' as const, - mariadbId: String(request.mariadbId), - ...(request.passwordType ? { type: request.passwordType } : {}), - } - case 'mongo': - return { - kind: 'mongo' as const, - mongoId: String(request.mongoId), - } - case 'mysql': - return { - kind: 'mysql' as const, - mysqlId: String(request.mysqlId), - ...(request.passwordType ? { type: request.passwordType } : {}), - } - case 'postgres': - return { - kind: 'postgres' as const, - postgresId: String(request.postgresId), - } - case 'redis': - return { - kind: 'redis' as const, - redisId: String(request.redisId), - } - default: - throw new Error(`Unsupported database request kind: ${String(request.kind)}`) + const kind = String(request.kind) + const descriptor = getDatabaseDescriptor(kind) + + if (!descriptor) { + throw new Error(`Unsupported database request kind: ${kind}`) + } + + return { + kind: descriptor.kind, + [descriptor.idField]: String(request[descriptor.idField]), + ...(descriptor.supportsPasswordType && request.passwordType + ? { type: request.passwordType } + : {}), } } @@ -467,7 +384,7 @@ export const databaseProcedureDefinitions: Record descriptor.idField), 'type'], response: { type: 'object', keys: [ diff --git a/src/codemode/virtual-procedures/shared.ts b/src/codemode/virtual-procedures/shared.ts index 550a1ca..3fd1f72 100644 --- a/src/codemode/virtual-procedures/shared.ts +++ b/src/codemode/virtual-procedures/shared.ts @@ -9,6 +9,46 @@ const logRequestKinds = new Set([ 'redis', ]) +export const DATABASE_KINDS = [ + { + kind: 'mariadb', + idField: 'mariadbId', + supportsPasswordType: true, + readProcedure: 'mariadb.one', + previewProcedure: 'mariadb.changePassword', + }, + { + kind: 'mongo', + idField: 'mongoId', + supportsPasswordType: false, + readProcedure: 'mongo.one', + previewProcedure: 'mongo.changePassword', + }, + { + kind: 'mysql', + idField: 'mysqlId', + supportsPasswordType: true, + readProcedure: 'mysql.one', + previewProcedure: 'mysql.changePassword', + }, + { + kind: 'postgres', + idField: 'postgresId', + supportsPasswordType: false, + readProcedure: 'postgres.one', + previewProcedure: 'postgres.changePassword', + }, + { + kind: 'redis', + idField: 'redisId', + supportsPasswordType: false, + readProcedure: 'redis.one', + previewProcedure: 'redis.changePassword', + }, +] as const + +export type DatabaseKind = (typeof DATABASE_KINDS)[number]['kind'] + export function createManyOutputSchema() { return { type: 'object', diff --git a/src/codemode/workflows/deploy-application.ts b/src/codemode/workflows/deploy-application.ts index 9345f0e..7f2b0d3 100644 --- a/src/codemode/workflows/deploy-application.ts +++ b/src/codemode/workflows/deploy-application.ts @@ -87,6 +87,7 @@ type WorkflowActionResolution = interface PreparedDeployApplicationTask { input: DeployApplicationWorkflowInput executor: ResourceExecutor + pollExecutor: ResourceExecutor application: ApplicationPreview resolved: ReturnType rollout: RolloutOptions @@ -171,9 +172,11 @@ async function sleepWithSignal(milliseconds: number, signal?: AbortSignal) { function createWorkflowExecutor() { const tracker = createCallTracker(invokeProcedure, resolveSandboxLimits().maxCalls) + const pollTracker = createCallTracker(invokeProcedure, MAX_ROLLOUT_MAX_POLLS) return { executor: createResourceExecutor((procedure, input) => tracker.call(procedure, input)), - getCalls: tracker.getCalls, + pollExecutor: createResourceExecutor((procedure, input) => pollTracker.call(procedure, input)), + getCalls: () => [...tracker.getCalls(), ...pollTracker.getCalls()], } } @@ -588,10 +591,24 @@ async function waitForDeploymentRollout(options: { for (let attempt = 1; attempt <= options.rollout.maxPolls; attempt += 1) { throwIfAborted(options.signal) - const latestByType = await options.executor('deployment.latestByType', { - id: options.applicationId, - type: 'application', - }) + let latestByType: unknown + try { + latestByType = await options.executor('deployment.latestByType', { + id: options.applicationId, + type: 'application', + }) + } catch (error) { + if (!isApiCallBudgetError(error)) { + throw error + } + + return { + status: 'budget-exhausted' as const, + attempts: attempt, + latestDeployment, + } + } + const latest = isRecord(latestByType) && 'latestDeployment' in latestByType ? latestByType.latestDeployment @@ -624,6 +641,10 @@ async function waitForDeploymentRollout(options: { } } +function isApiCallBudgetError(error: unknown) { + return error instanceof Error && /exceeded \d+ API calls/.test(error.message) +} + function buildNeedsInputResult(message: string, candidates: ApplicationCandidate[]) { return { mode: 'workflow' as const, @@ -735,6 +756,7 @@ function buildApprovalRequiredResult(options: { async function runAppliedDeployment(options: { input: DeployApplicationWorkflowInput executor: ResourceExecutor + pollExecutor: ResourceExecutor application: ApplicationPreview resolved: ReturnType rollout: RolloutOptions @@ -754,7 +776,7 @@ async function runAppliedDeployment(options: { }) const rolloutStatus = options.rollout.waitForRollout ? await waitForDeploymentRollout({ - executor: options.executor, + executor: options.pollExecutor, applicationId: options.application.applicationId, deploymentId: getDeploymentId(deployment), rollout: options.rollout, @@ -790,7 +812,7 @@ export async function prepareDeployApplicationWorkflow( input: DeployApplicationWorkflowInput, options: WorkflowRunnerOptions, ): Promise { - const { executor, getCalls } = createWorkflowExecutor() + const { executor, pollExecutor, getCalls } = createWorkflowExecutor() throwIfAborted(options.signal) const applicationResolution = await resolveApplicationId(input, executor, options) @@ -888,6 +910,7 @@ export async function prepareDeployApplicationWorkflow( getCalls, input, executor, + pollExecutor, application, resolved, rollout, diff --git a/src/generated/dokploy-schemas.ts b/src/generated/dokploy-schemas.ts index 46e075d..460a141 100644 --- a/src/generated/dokploy-schemas.ts +++ b/src/generated/dokploy-schemas.ts @@ -10,23289 +10,6 @@ export interface ProcedureSchema { outputSchema: JsonSchema } -export const procedureSchemas: Record = { - "admin.setupMonitoring": { - "method": "POST", - "path": "/admin.setupMonitoring", - "tag": "admin", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "metricsConfig": { - "type": "object", - "properties": { - "server": { - "type": "object", - "properties": { - "refreshRate": { - "type": "number", - "minimum": 2 - }, - "port": { - "type": "number", - "minimum": 1 - }, - "token": { - "type": "string" - }, - "urlCallback": { - "type": "string", - "format": "uri" - }, - "retentionDays": { - "type": "number", - "minimum": 1 - }, - "cronJob": { - "type": "string", - "minLength": 1 - }, - "thresholds": { - "type": "object", - "properties": { - "cpu": { - "type": "number", - "minimum": 0 - }, - "memory": { - "type": "number", - "minimum": 0 - } - }, - "required": [ - "cpu", - "memory" - ] - } - }, - "required": [ - "refreshRate", - "port", - "token", - "urlCallback", - "retentionDays", - "cronJob", - "thresholds" - ] - }, - "containers": { - "type": "object", - "properties": { - "refreshRate": { - "type": "number", - "minimum": 2 - }, - "services": { - "type": "object", - "properties": { - "include": { - "type": "array", - "items": { - "type": "string" - } - }, - "exclude": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "required": [ - "refreshRate", - "services" - ] - } - }, - "required": [ - "server", - "containers" - ] - } - }, - "required": [ - "metricsConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.create": { - "method": "POST", - "path": "/application.create", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "environmentId": { - "type": "string" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.one": { - "method": "GET", - "path": "/application.one", - "tag": "application", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.reload": { - "method": "POST", - "path": "/application.reload", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "applicationId": { - "type": "string" - } - }, - "required": [ - "appName", - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.delete": { - "method": "POST", - "path": "/application.delete", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.stop": { - "method": "POST", - "path": "/application.stop", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.start": { - "method": "POST", - "path": "/application.start", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.redeploy": { - "method": "POST", - "path": "/application.redeploy", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveEnvironment": { - "method": "POST", - "path": "/application.saveEnvironment", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildArgs": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildSecrets": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createEnvFile": { - "type": "boolean" - } - }, - "required": [ - "applicationId", - "env", - "buildArgs", - "buildSecrets", - "createEnvFile" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveBuildType": { - "method": "POST", - "path": "/application.saveBuildType", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "buildType": { - "type": "string", - "enum": [ - "dockerfile", - "heroku_buildpacks", - "paketo_buildpacks", - "nixpacks", - "static", - "railpack" - ] - }, - "dockerfile": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerContextPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerBuildStage": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "herokuVersion": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "railpackVersion": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "publishDirectory": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "isStaticSpa": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "applicationId", - "buildType", - "dockerfile", - "dockerContextPath", - "dockerBuildStage", - "herokuVersion", - "railpackVersion" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveGithubProvider": { - "method": "POST", - "path": "/application.saveGithubProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "repository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "branch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "githubId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "triggerType": { - "default": "push", - "type": "string", - "enum": [ - "push", - "tag" - ] - }, - "enableSubmodules": { - "type": "boolean" - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "applicationId", - "repository", - "branch", - "owner", - "buildPath", - "githubId", - "triggerType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveGitlabProvider": { - "method": "POST", - "path": "/application.saveGitlabProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "gitlabBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabProjectId": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "gitlabPathNamespace": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enableSubmodules": { - "type": "boolean" - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "applicationId", - "gitlabBranch", - "gitlabBuildPath", - "gitlabOwner", - "gitlabRepository", - "gitlabId", - "gitlabProjectId", - "gitlabPathNamespace" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveBitbucketProvider": { - "method": "POST", - "path": "/application.saveBitbucketProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepositorySlug": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "type": "string" - }, - "enableSubmodules": { - "type": "boolean" - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "bitbucketBranch", - "bitbucketBuildPath", - "bitbucketOwner", - "bitbucketRepository", - "bitbucketRepositorySlug", - "bitbucketId", - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveGiteaProvider": { - "method": "POST", - "path": "/application.saveGiteaProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "giteaBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enableSubmodules": { - "type": "boolean" - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "applicationId", - "giteaBranch", - "giteaBuildPath", - "giteaOwner", - "giteaRepository", - "giteaId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveDockerProvider": { - "method": "POST", - "path": "/application.saveDockerProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "dockerImage": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "type": "string" - }, - "username": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "password": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "registryUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "dockerImage", - "applicationId", - "username", - "password", - "registryUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.saveGitProvider": { - "method": "POST", - "path": "/application.saveGitProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "customGitBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "type": "string" - }, - "customGitBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "enableSubmodules": { - "type": "boolean" - }, - "customGitSSHKeyId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "customGitBranch", - "applicationId", - "customGitBuildPath", - "customGitUrl", - "watchPaths" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.disconnectGitProvider": { - "method": "POST", - "path": "/application.disconnectGitProvider", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.markRunning": { - "method": "POST", - "path": "/application.markRunning", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.update": { - "method": "POST", - "path": "/application.update", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewEnv": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "previewBuildArgs": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewBuildSecrets": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewLabels": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "previewWildcard": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "previewHttps": { - "type": "boolean" - }, - "previewPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewCertificateType": { - "type": "string", - "enum": [ - "letsencrypt", - "none", - "custom" - ] - }, - "previewCustomCertResolver": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "previewLimit": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "isPreviewDeploymentsActive": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "previewRequireCollaboratorPermissions": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "rollbackActive": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "buildArgs": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildSecrets": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "title": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "subtitle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "icon": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string", - "maxLength": 2097152 - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "refreshToken": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "sourceType": { - "type": "string", - "enum": [ - "github", - "docker", - "git", - "gitlab", - "bitbucket", - "gitea", - "drop" - ] - }, - "cleanCache": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "repository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "branch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "triggerType": { - "anyOf": [ - { - "type": "string", - "enum": [ - "push", - "tag" - ] - }, - { - "type": "null" - } - ] - }, - "autoDeploy": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "gitlabProjectId": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "gitlabRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabPathNamespace": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepositorySlug": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "username": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "password": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerImage": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "registryUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitSSHKeyId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enableSubmodules": { - "type": "boolean" - }, - "dockerfile": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerContextPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerBuildStage": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dropBuildPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "buildType": { - "type": "string", - "enum": [ - "dockerfile", - "heroku_buildpacks", - "paketo_buildpacks", - "nixpacks", - "static", - "railpack" - ] - }, - "railpackVersion": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "herokuVersion": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "publishDirectory": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "isStaticSpa": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "createEnvFile": { - "type": "boolean" - }, - "createdAt": { - "type": "string" - }, - "registryId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "rollbackRegistryId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "environmentId": { - "type": "string" - }, - "githubId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildServerId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "buildRegistryId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.refreshToken": { - "method": "POST", - "path": "/application.refreshToken", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.deploy": { - "method": "POST", - "path": "/application.deploy", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.cleanQueues": { - "method": "POST", - "path": "/application.cleanQueues", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.clearDeployments": { - "method": "POST", - "path": "/application.clearDeployments", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.killBuild": { - "method": "POST", - "path": "/application.killBuild", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.readTraefikConfig": { - "method": "GET", - "path": "/application.readTraefikConfig", - "tag": "application", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.dropDeployment": { - "method": "POST", - "path": "/application.dropDeployment", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.updateTraefikConfig": { - "method": "POST", - "path": "/application.updateTraefikConfig", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "traefikConfig": { - "type": "string" - } - }, - "required": [ - "applicationId", - "traefikConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.readAppMonitoring": { - "method": "GET", - "path": "/application.readAppMonitoring", - "tag": "application", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.move": { - "method": "POST", - "path": "/application.move", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "applicationId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.cancelDeployment": { - "method": "POST", - "path": "/application.cancelDeployment", - "tag": "application", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.search": { - "method": "GET", - "path": "/application.search", - "tag": "application", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "dockerImage": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "application.readLogs": { - "method": "GET", - "path": "/application.readLogs", - "tag": "application", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.create": { - "method": "POST", - "path": "/backup.create", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "schedule": { - "type": "string" - }, - "enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "prefix": { - "type": "string", - "minLength": 1 - }, - "destinationId": { - "type": "string" - }, - "keepLatestCount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "database": { - "type": "string", - "minLength": 1 - }, - "mariadbId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mysqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "postgresId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mongoId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "libsqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseType": { - "type": "string", - "enum": [ - "postgres", - "mariadb", - "mysql", - "mongo", - "web-server", - "libsql" - ] - }, - "userId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "backupType": { - "type": "string", - "enum": [ - "database", - "compose" - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "metadata": { - "anyOf": [ - {}, - { - "type": "null" - } - ] - } - }, - "required": [ - "schedule", - "prefix", - "destinationId", - "database", - "databaseType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.one": { - "method": "GET", - "path": "/backup.one", - "tag": "backup", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.update": { - "method": "POST", - "path": "/backup.update", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "schedule": { - "type": "string" - }, - "enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "prefix": { - "type": "string", - "minLength": 1 - }, - "backupId": { - "type": "string" - }, - "destinationId": { - "type": "string" - }, - "database": { - "type": "string", - "minLength": 1 - }, - "keepLatestCount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "metadata": { - "anyOf": [ - {}, - { - "type": "null" - } - ] - }, - "databaseType": { - "type": "string", - "enum": [ - "postgres", - "mariadb", - "mysql", - "mongo", - "web-server", - "libsql" - ] - } - }, - "required": [ - "schedule", - "enabled", - "prefix", - "backupId", - "destinationId", - "database", - "keepLatestCount", - "serviceName", - "metadata", - "databaseType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.remove": { - "method": "POST", - "path": "/backup.remove", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string" - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupPostgres": { - "method": "POST", - "path": "/backup.manualBackupPostgres", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupMySql": { - "method": "POST", - "path": "/backup.manualBackupMySql", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupMariadb": { - "method": "POST", - "path": "/backup.manualBackupMariadb", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupCompose": { - "method": "POST", - "path": "/backup.manualBackupCompose", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupMongo": { - "method": "POST", - "path": "/backup.manualBackupMongo", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupLibsql": { - "method": "POST", - "path": "/backup.manualBackupLibsql", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.manualBackupWebServer": { - "method": "POST", - "path": "/backup.manualBackupWebServer", - "tag": "backup", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "backupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "backupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "backup.listBackupFiles": { - "method": "GET", - "path": "/backup.listBackupFiles", - "tag": "backup", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "destinationId": { - "type": "string" - }, - "search": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "destinationId", - "search" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.create": { - "method": "POST", - "path": "/bitbucket.create", - "tag": "bitbucket", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketId": { - "type": "string" - }, - "bitbucketUsername": { - "type": "string" - }, - "bitbucketEmail": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "appPassword": { - "type": "string" - }, - "apiToken": { - "type": "string" - }, - "bitbucketWorkspaceName": { - "type": "string" - }, - "gitProviderId": { - "type": "string" - }, - "authId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "authId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.one": { - "method": "GET", - "path": "/bitbucket.one", - "tag": "bitbucket", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "bitbucketId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.bitbucketProviders": { - "method": "GET", - "path": "/bitbucket.bitbucketProviders", - "tag": "bitbucket", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.getBitbucketRepositories": { - "method": "GET", - "path": "/bitbucket.getBitbucketRepositories", - "tag": "bitbucket", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "bitbucketId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.getBitbucketBranches": { - "method": "GET", - "path": "/bitbucket.getBitbucketBranches", - "tag": "bitbucket", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "owner": { - "type": "string" - }, - "repo": { - "type": "string" - }, - "bitbucketId": { - "type": "string" - } - }, - "required": [ - "owner", - "repo" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.testConnection": { - "method": "POST", - "path": "/bitbucket.testConnection", - "tag": "bitbucket", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketId": { - "type": "string", - "minLength": 1 - }, - "bitbucketUsername": { - "type": "string" - }, - "bitbucketEmail": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "workspaceName": { - "type": "string" - }, - "apiToken": { - "type": "string" - }, - "appPassword": { - "type": "string" - } - }, - "required": [ - "bitbucketId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "bitbucket.update": { - "method": "POST", - "path": "/bitbucket.update", - "tag": "bitbucket", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "bitbucketId": { - "type": "string", - "minLength": 1 - }, - "bitbucketUsername": { - "type": "string" - }, - "bitbucketEmail": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "appPassword": { - "type": "string" - }, - "apiToken": { - "type": "string" - }, - "bitbucketWorkspaceName": { - "type": "string" - }, - "gitProviderId": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "bitbucketId", - "gitProviderId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "certificates.create": { - "method": "POST", - "path": "/certificates.create", - "tag": "certificates", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "certificateId": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "certificateData": { - "type": "string", - "minLength": 1 - }, - "privateKey": { - "type": "string", - "minLength": 1 - }, - "certificatePath": { - "type": "string" - }, - "autoRenew": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "organizationId": { - "type": "string" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "certificateData", - "privateKey", - "organizationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "certificates.one": { - "method": "GET", - "path": "/certificates.one", - "tag": "certificates", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "certificateId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "certificateId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "certificates.remove": { - "method": "POST", - "path": "/certificates.remove", - "tag": "certificates", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "certificateId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "certificateId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "certificates.all": { - "method": "GET", - "path": "/certificates.all", - "tag": "certificates", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "certificates.update": { - "method": "POST", - "path": "/certificates.update", - "tag": "certificates", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "certificateId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "certificateData": { - "type": "string", - "minLength": 1 - }, - "privateKey": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "certificateId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "cluster.getNodes": { - "method": "GET", - "path": "/cluster.getNodes", - "tag": "cluster", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "cluster.removeWorker": { - "method": "POST", - "path": "/cluster.removeWorker", - "tag": "cluster", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "nodeId": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "nodeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "cluster.addWorker": { - "method": "GET", - "path": "/cluster.addWorker", - "tag": "cluster", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "cluster.addManager": { - "method": "GET", - "path": "/cluster.addManager", - "tag": "cluster", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.create": { - "method": "POST", - "path": "/compose.create", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "environmentId": { - "type": "string" - }, - "composeType": { - "type": "string", - "enum": [ - "docker-compose", - "stack" - ] - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeFile": { - "type": "string" - } - }, - "required": [ - "name", - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.one": { - "method": "GET", - "path": "/compose.one", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.update": { - "method": "POST", - "path": "/compose.update", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeFile": { - "type": "string" - }, - "refreshToken": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "sourceType": { - "type": "string", - "enum": [ - "git", - "github", - "gitlab", - "bitbucket", - "gitea", - "raw" - ] - }, - "composeType": { - "type": "string", - "enum": [ - "docker-compose", - "stack" - ] - }, - "repository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "branch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "autoDeploy": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "gitlabProjectId": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "gitlabRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabPathNamespace": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketRepositorySlug": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaRepository": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customGitSSHKeyId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "command": { - "type": "string" - }, - "enableSubmodules": { - "type": "boolean" - }, - "composePath": { - "type": "string", - "minLength": 1 - }, - "suffix": { - "type": "string" - }, - "randomize": { - "type": "boolean" - }, - "isolatedDeployment": { - "type": "boolean" - }, - "isolatedDeploymentsVolume": { - "type": "boolean" - }, - "triggerType": { - "anyOf": [ - { - "type": "string", - "enum": [ - "push", - "tag" - ] - }, - { - "type": "null" - } - ] - }, - "composeStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "environmentId": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "watchPaths": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "githubId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "gitlabId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "bitbucketId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "giteaId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.saveEnvironment": { - "method": "POST", - "path": "/compose.saveEnvironment", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "composeId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.delete": { - "method": "POST", - "path": "/compose.delete", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "deleteVolumes": { - "type": "boolean" - } - }, - "required": [ - "composeId", - "deleteVolumes" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.cleanQueues": { - "method": "POST", - "path": "/compose.cleanQueues", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.clearDeployments": { - "method": "POST", - "path": "/compose.clearDeployments", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.killBuild": { - "method": "POST", - "path": "/compose.killBuild", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.loadServices": { - "method": "GET", - "path": "/compose.loadServices", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "type": { - "default": "cache", - "type": "string", - "enum": [ - "fetch", - "cache" - ] - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.loadMountsByService": { - "method": "GET", - "path": "/compose.loadMountsByService", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "serviceName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId", - "serviceName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.fetchSourceType": { - "method": "POST", - "path": "/compose.fetchSourceType", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.randomizeCompose": { - "method": "POST", - "path": "/compose.randomizeCompose", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "suffix": { - "type": "string" - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.isolatedDeployment": { - "method": "POST", - "path": "/compose.isolatedDeployment", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "suffix": { - "type": "string" - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.getConvertedCompose": { - "method": "GET", - "path": "/compose.getConvertedCompose", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.deploy": { - "method": "POST", - "path": "/compose.deploy", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.redeploy": { - "method": "POST", - "path": "/compose.redeploy", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.stop": { - "method": "POST", - "path": "/compose.stop", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.start": { - "method": "POST", - "path": "/compose.start", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.getDefaultCommand": { - "method": "GET", - "path": "/compose.getDefaultCommand", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.refreshToken": { - "method": "POST", - "path": "/compose.refreshToken", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.deployTemplate": { - "method": "POST", - "path": "/compose.deployTemplate", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string" - }, - "serverId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "baseUrl": { - "type": "string" - } - }, - "required": [ - "environmentId", - "id" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.templates": { - "method": "GET", - "path": "/compose.templates", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "baseUrl": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.getTags": { - "method": "GET", - "path": "/compose.getTags", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "baseUrl": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.disconnectGitProvider": { - "method": "POST", - "path": "/compose.disconnectGitProvider", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.move": { - "method": "POST", - "path": "/compose.move", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "composeId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.processTemplate": { - "method": "POST", - "path": "/compose.processTemplate", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "base64": { - "type": "string" - }, - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "base64", - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.import": { - "method": "POST", - "path": "/compose.import", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "base64": { - "type": "string" - }, - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "base64", - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.cancelDeployment": { - "method": "POST", - "path": "/compose.cancelDeployment", - "tag": "compose", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.search": { - "method": "GET", - "path": "/compose.search", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "compose.readLogs": { - "method": "GET", - "path": "/compose.readLogs", - "tag": "compose", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - }, - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "composeId", - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.all": { - "method": "GET", - "path": "/deployment.all", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.allByCompose": { - "method": "GET", - "path": "/deployment.allByCompose", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.allByServer": { - "method": "GET", - "path": "/deployment.allByServer", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.allCentralized": { - "method": "GET", - "path": "/deployment.allCentralized", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.queueList": { - "method": "GET", - "path": "/deployment.queueList", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.allByType": { - "method": "GET", - "path": "/deployment.allByType", - "tag": "deployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose", - "server", - "schedule", - "previewDeployment", - "backup", - "volumeBackup" - ] - } - }, - "required": [ - "id", - "type" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.killProcess": { - "method": "POST", - "path": "/deployment.killProcess", - "tag": "deployment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "deploymentId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "deploymentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "deployment.removeDeployment": { - "method": "POST", - "path": "/deployment.removeDeployment", - "tag": "deployment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "deploymentId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "deploymentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.create": { - "method": "POST", - "path": "/destination.create", - "tag": "destination", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "provider", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "additionalFlags" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.testConnection": { - "method": "POST", - "path": "/destination.testConnection", - "tag": "destination", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "provider", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "additionalFlags" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.one": { - "method": "GET", - "path": "/destination.one", - "tag": "destination", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "destinationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "destinationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.all": { - "method": "GET", - "path": "/destination.all", - "tag": "destination", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.remove": { - "method": "POST", - "path": "/destination.remove", - "tag": "destination", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "destinationId": { - "type": "string" - } - }, - "required": [ - "destinationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "destination.update": { - "method": "POST", - "path": "/destination.update", - "tag": "destination", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "destinationId": { - "type": "string" - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "destinationId", - "provider", - "additionalFlags" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getContainers": { - "method": "GET", - "path": "/docker.getContainers", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.restartContainer": { - "method": "POST", - "path": "/docker.restartContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.startContainer": { - "method": "POST", - "path": "/docker.startContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.stopContainer": { - "method": "POST", - "path": "/docker.stopContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.killContainer": { - "method": "POST", - "path": "/docker.killContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.removeContainer": { - "method": "POST", - "path": "/docker.removeContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getConfig": { - "method": "GET", - "path": "/docker.getConfig", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getContainersByAppNameMatch": { - "method": "GET", - "path": "/docker.getContainersByAppNameMatch", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "appType": { - "type": "string", - "enum": [ - "stack", - "docker-compose" - ] - }, - "appName": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getContainersByAppLabel": { - "method": "GET", - "path": "/docker.getContainersByAppLabel", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "standalone", - "swarm" - ] - } - }, - "required": [ - "appName", - "type" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getStackContainersByAppName": { - "method": "GET", - "path": "/docker.getStackContainersByAppName", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.getServiceContainersByAppName": { - "method": "GET", - "path": "/docker.getServiceContainersByAppName", - "tag": "docker", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "docker.uploadFileToContainer": { - "method": "POST", - "path": "/docker.uploadFileToContainer", - "tag": "docker", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.create": { - "method": "POST", - "path": "/domain.create", - "tag": "domain", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "host": { - "type": "string", - "minLength": 1 - }, - "path": { - "anyOf": [ - { - "type": "string", - "minLength": 1 - }, - { - "type": "null" - } - ] - }, - "port": { - "anyOf": [ - { - "type": "number", - "minimum": 1, - "maximum": 65535 - }, - { - "type": "null" - } - ] - }, - "customEntrypoint": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "https": { - "type": "boolean" - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "certificateType": { - "type": "string", - "enum": [ - "letsencrypt", - "none", - "custom" - ] - }, - "customCertResolver": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "domainType": { - "anyOf": [ - { - "type": "string", - "enum": [ - "compose", - "application", - "preview" - ] - }, - { - "type": "null" - } - ] - }, - "previewDeploymentId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "internalPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripPath": { - "type": "boolean" - }, - "middlewares": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "host" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.byApplicationId": { - "method": "GET", - "path": "/domain.byApplicationId", - "tag": "domain", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.byComposeId": { - "method": "GET", - "path": "/domain.byComposeId", - "tag": "domain", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "composeId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "composeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.generateDomain": { - "method": "POST", - "path": "/domain.generateDomain", - "tag": "domain", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appName": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.canGenerateTraefikMeDomains": { - "method": "GET", - "path": "/domain.canGenerateTraefikMeDomains", - "tag": "domain", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.update": { - "method": "POST", - "path": "/domain.update", - "tag": "domain", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "host": { - "type": "string", - "minLength": 1 - }, - "path": { - "anyOf": [ - { - "type": "string", - "minLength": 1 - }, - { - "type": "null" - } - ] - }, - "port": { - "anyOf": [ - { - "type": "number", - "minimum": 1, - "maximum": 65535 - }, - { - "type": "null" - } - ] - }, - "customEntrypoint": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "https": { - "type": "boolean" - }, - "certificateType": { - "type": "string", - "enum": [ - "letsencrypt", - "none", - "custom" - ] - }, - "customCertResolver": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "domainType": { - "anyOf": [ - { - "type": "string", - "enum": [ - "compose", - "application", - "preview" - ] - }, - { - "type": "null" - } - ] - }, - "internalPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripPath": { - "type": "boolean" - }, - "middlewares": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "domainId": { - "type": "string" - } - }, - "required": [ - "host", - "domainId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.one": { - "method": "GET", - "path": "/domain.one", - "tag": "domain", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "domainId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "domainId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.delete": { - "method": "POST", - "path": "/domain.delete", - "tag": "domain", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "domainId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "domainId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "domain.validateDomain": { - "method": "POST", - "path": "/domain.validateDomain", - "tag": "domain", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "domain": { - "type": "string" - }, - "serverIp": { - "type": "string" - } - }, - "required": [ - "domain" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.create": { - "method": "POST", - "path": "/gitea.create", - "tag": "gitea", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string" - }, - "giteaUrl": { - "type": "string", - "minLength": 1 - }, - "giteaInternalUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "redirectUri": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "gitProviderId": { - "type": "string" - }, - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "expiresAt": { - "type": "number" - }, - "scopes": { - "type": "string" - }, - "lastAuthenticatedAt": { - "type": "number" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "giteaUsername": { - "type": "string" - }, - "organizationName": { - "type": "string" - } - }, - "required": [ - "giteaUrl", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.one": { - "method": "GET", - "path": "/gitea.one", - "tag": "gitea", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "giteaId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.giteaProviders": { - "method": "GET", - "path": "/gitea.giteaProviders", - "tag": "gitea", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.getGiteaRepositories": { - "method": "GET", - "path": "/gitea.getGiteaRepositories", - "tag": "gitea", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "giteaId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.getGiteaBranches": { - "method": "GET", - "path": "/gitea.getGiteaBranches", - "tag": "gitea", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "owner": { - "type": "string", - "minLength": 1 - }, - "repositoryName": { - "type": "string", - "minLength": 1 - }, - "giteaId": { - "type": "string" - } - }, - "required": [ - "owner", - "repositoryName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.testConnection": { - "method": "POST", - "path": "/gitea.testConnection", - "tag": "gitea", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string" - }, - "organizationName": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.update": { - "method": "POST", - "path": "/gitea.update", - "tag": "gitea", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string", - "minLength": 1 - }, - "giteaUrl": { - "type": "string", - "minLength": 1 - }, - "giteaInternalUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "redirectUri": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "gitProviderId": { - "type": "string" - }, - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "expiresAt": { - "type": "number" - }, - "scopes": { - "type": "string" - }, - "lastAuthenticatedAt": { - "type": "number" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "giteaUsername": { - "type": "string" - }, - "organizationName": { - "type": "string" - } - }, - "required": [ - "giteaId", - "giteaUrl", - "gitProviderId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitea.getGiteaUrl": { - "method": "GET", - "path": "/gitea.getGiteaUrl", - "tag": "gitea", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "giteaId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "giteaId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitProvider.getAll": { - "method": "GET", - "path": "/gitProvider.getAll", - "tag": "gitProvider", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitProvider.toggleShare": { - "method": "POST", - "path": "/gitProvider.toggleShare", - "tag": "gitProvider", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "gitProviderId": { - "type": "string", - "minLength": 1 - }, - "sharedWithOrganization": { - "type": "boolean" - } - }, - "required": [ - "gitProviderId", - "sharedWithOrganization" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitProvider.allForPermissions": { - "method": "GET", - "path": "/gitProvider.allForPermissions", - "tag": "gitProvider", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitProvider.remove": { - "method": "POST", - "path": "/gitProvider.remove", - "tag": "gitProvider", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "gitProviderId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "gitProviderId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.one": { - "method": "GET", - "path": "/github.one", - "tag": "github", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "githubId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "githubId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.getGithubRepositories": { - "method": "GET", - "path": "/github.getGithubRepositories", - "tag": "github", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "githubId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "githubId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.getGithubBranches": { - "method": "GET", - "path": "/github.getGithubBranches", - "tag": "github", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "repo": { - "type": "string", - "minLength": 1 - }, - "owner": { - "type": "string", - "minLength": 1 - }, - "githubId": { - "type": "string" - } - }, - "required": [ - "repo", - "owner" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.githubProviders": { - "method": "GET", - "path": "/github.githubProviders", - "tag": "github", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.testConnection": { - "method": "POST", - "path": "/github.testConnection", - "tag": "github", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "githubId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "githubId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "github.update": { - "method": "POST", - "path": "/github.update", - "tag": "github", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "githubId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "gitProviderId": { - "type": "string", - "minLength": 1 - }, - "githubAppName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "githubId", - "name", - "gitProviderId", - "githubAppName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.create": { - "method": "POST", - "path": "/gitlab.create", - "tag": "gitlab", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "groupName": { - "type": "string" - }, - "gitProviderId": { - "type": "string" - }, - "redirectUri": { - "type": "string" - }, - "authId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "gitlabUrl": { - "type": "string", - "minLength": 1 - }, - "gitlabInternalUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "authId", - "name", - "gitlabUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.one": { - "method": "GET", - "path": "/gitlab.one", - "tag": "gitlab", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "gitlabId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "gitlabId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.gitlabProviders": { - "method": "GET", - "path": "/gitlab.gitlabProviders", - "tag": "gitlab", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.getGitlabRepositories": { - "method": "GET", - "path": "/gitlab.getGitlabRepositories", - "tag": "gitlab", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "gitlabId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "gitlabId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.getGitlabBranches": { - "method": "GET", - "path": "/gitlab.getGitlabBranches", - "tag": "gitlab", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "owner": { - "type": "string" - }, - "repo": { - "type": "string" - }, - "gitlabId": { - "type": "string" - } - }, - "required": [ - "owner", - "repo" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.testConnection": { - "method": "POST", - "path": "/gitlab.testConnection", - "tag": "gitlab", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "gitlabId": { - "type": "string", - "minLength": 1 - }, - "groupName": { - "type": "string" - } - }, - "required": [ - "gitlabId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "gitlab.update": { - "method": "POST", - "path": "/gitlab.update", - "tag": "gitlab", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "groupName": { - "type": "string" - }, - "redirectUri": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "gitlabId": { - "type": "string", - "minLength": 1 - }, - "gitlabUrl": { - "type": "string", - "minLength": 1 - }, - "gitProviderId": { - "type": "string", - "minLength": 1 - }, - "gitlabInternalUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "gitlabId", - "gitlabUrl", - "gitProviderId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.create": { - "method": "POST", - "path": "/libsql.create", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1 - }, - "dockerImage": { - "default": "ghcr.io/tursodatabase/libsql-server:v0.24.32", - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "sqldNode": { - "type": "string", - "enum": [ - "primary", - "replica" - ] - }, - "sqldPrimaryUrl": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "enableNamespaces": { - "default": false, - "type": "boolean" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "appName", - "dockerImage", - "environmentId", - "description", - "databaseUser", - "databasePassword", - "sqldNode", - "sqldPrimaryUrl", - "enableNamespaces", - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.one": { - "method": "GET", - "path": "/libsql.one", - "tag": "libsql", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.start": { - "method": "POST", - "path": "/libsql.start", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.stop": { - "method": "POST", - "path": "/libsql.stop", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.saveExternalPorts": { - "method": "POST", - "path": "/libsql.saveExternalPorts", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "externalGRPCPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "externalAdminPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.deploy": { - "method": "POST", - "path": "/libsql.deploy", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.changeStatus": { - "method": "POST", - "path": "/libsql.changeStatus", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "libsqlId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.remove": { - "method": "POST", - "path": "/libsql.remove", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.saveEnvironment": { - "method": "POST", - "path": "/libsql.saveEnvironment", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "libsqlId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.reload": { - "method": "POST", - "path": "/libsql.reload", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "libsqlId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.update": { - "method": "POST", - "path": "/libsql.update", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "sqldNode": { - "type": "string", - "enum": [ - "primary", - "replica" - ] - }, - "sqldPrimaryUrl": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "enableNamespaces": { - "default": false, - "type": "boolean" - }, - "dockerImage": { - "default": "ghcr.io/tursodatabase/libsql-server:v0.24.32", - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "externalGRPCPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "externalAdminPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "createdAt": { - "type": "string" - }, - "environmentId": { - "type": "string" - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.move": { - "method": "POST", - "path": "/libsql.move", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "libsqlId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.rebuild": { - "method": "POST", - "path": "/libsql.rebuild", - "tag": "libsql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string" - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "libsql.readLogs": { - "method": "GET", - "path": "/libsql.readLogs", - "tag": "libsql", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "libsqlId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "libsqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.create": { - "method": "POST", - "path": "/mariadb.create", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "dockerImage": { - "default": "mariadb:6", - "type": "string" - }, - "databaseRootPassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "environmentId", - "databaseName", - "databaseUser", - "databasePassword" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.one": { - "method": "GET", - "path": "/mariadb.one", - "tag": "mariadb", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.start": { - "method": "POST", - "path": "/mariadb.start", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.stop": { - "method": "POST", - "path": "/mariadb.stop", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.saveExternalPort": { - "method": "POST", - "path": "/mariadb.saveExternalPort", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mariadbId", - "externalPort" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.deploy": { - "method": "POST", - "path": "/mariadb.deploy", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.changeStatus": { - "method": "POST", - "path": "/mariadb.changeStatus", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "mariadbId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.remove": { - "method": "POST", - "path": "/mariadb.remove", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.saveEnvironment": { - "method": "POST", - "path": "/mariadb.saveEnvironment", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mariadbId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.reload": { - "method": "POST", - "path": "/mariadb.reload", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - } - }, - "required": [ - "mariadbId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.update": { - "method": "POST", - "path": "/mariadb.update", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "databaseRootPassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "dockerImage": { - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "createdAt": { - "type": "string" - }, - "environmentId": { - "type": "string" - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.changePassword": { - "method": "POST", - "path": "/mariadb.changePassword", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "type": { - "default": "user", - "type": "string", - "enum": [ - "user", - "root" - ] - } - }, - "required": [ - "mariadbId", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.move": { - "method": "POST", - "path": "/mariadb.move", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "mariadbId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.rebuild": { - "method": "POST", - "path": "/mariadb.rebuild", - "tag": "mariadb", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string" - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.search": { - "method": "GET", - "path": "/mariadb.search", - "tag": "mariadb", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mariadb.readLogs": { - "method": "GET", - "path": "/mariadb.readLogs", - "tag": "mariadb", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mariadbId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "mariadbId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.create": { - "method": "POST", - "path": "/mongo.create", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "dockerImage": { - "default": "mongo:15", - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "replicaSets": { - "anyOf": [ - { - "default": false, - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "environmentId", - "databaseUser", - "databasePassword" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.one": { - "method": "GET", - "path": "/mongo.one", - "tag": "mongo", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.start": { - "method": "POST", - "path": "/mongo.start", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.stop": { - "method": "POST", - "path": "/mongo.stop", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.saveExternalPort": { - "method": "POST", - "path": "/mongo.saveExternalPort", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mongoId", - "externalPort" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.deploy": { - "method": "POST", - "path": "/mongo.deploy", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.changeStatus": { - "method": "POST", - "path": "/mongo.changeStatus", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "mongoId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.reload": { - "method": "POST", - "path": "/mongo.reload", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - } - }, - "required": [ - "mongoId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.remove": { - "method": "POST", - "path": "/mongo.remove", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.saveEnvironment": { - "method": "POST", - "path": "/mongo.saveEnvironment", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mongoId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.update": { - "method": "POST", - "path": "/mongo.update", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "dockerImage": { - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "createdAt": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "replicaSets": { - "anyOf": [ - { - "default": false, - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.changePassword": { - "method": "POST", - "path": "/mongo.changePassword", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - } - }, - "required": [ - "mongoId", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.move": { - "method": "POST", - "path": "/mongo.move", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "mongoId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.rebuild": { - "method": "POST", - "path": "/mongo.rebuild", - "tag": "mongo", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string" - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.search": { - "method": "GET", - "path": "/mongo.search", - "tag": "mongo", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mongo.readLogs": { - "method": "GET", - "path": "/mongo.readLogs", - "tag": "mongo", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mongoId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "mongoId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.create": { - "method": "POST", - "path": "/mounts.create", - "tag": "mounts", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "bind", - "volume", - "file" - ] - }, - "hostPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "volumeName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mountPath": { - "type": "string", - "minLength": 1 - }, - "filePath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serviceType": { - "type": "string", - "enum": [ - "application", - "postgres", - "mysql", - "mariadb", - "mongo", - "redis", - "compose", - "libsql" - ] - }, - "serviceId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "type", - "mountPath", - "serviceId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.remove": { - "method": "POST", - "path": "/mounts.remove", - "tag": "mounts", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mountId": { - "type": "string" - } - }, - "required": [ - "mountId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.one": { - "method": "GET", - "path": "/mounts.one", - "tag": "mounts", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mountId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mountId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.update": { - "method": "POST", - "path": "/mounts.update", - "tag": "mounts", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mountId": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "bind", - "volume", - "file" - ] - }, - "hostPath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "volumeName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "filePath": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serviceType": { - "type": "string", - "enum": [ - "application", - "postgres", - "mysql", - "mariadb", - "mongo", - "redis", - "compose", - "libsql" - ] - }, - "mountPath": { - "type": "string", - "minLength": 1 - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "libsqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mariadbId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mongoId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mysqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "postgresId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "redisId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mountId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.allNamedByApplicationId": { - "method": "GET", - "path": "/mounts.allNamedByApplicationId", - "tag": "mounts", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mounts.listByServiceId": { - "method": "GET", - "path": "/mounts.listByServiceId", - "tag": "mounts", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serviceType": { - "type": "string", - "minLength": 1 - }, - "serviceId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serviceType", - "serviceId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.create": { - "method": "POST", - "path": "/mysql.create", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "dockerImage": { - "default": "mysql:8", - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "databaseRootPassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "environmentId", - "databaseName", - "databaseUser", - "databasePassword" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.one": { - "method": "GET", - "path": "/mysql.one", - "tag": "mysql", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.start": { - "method": "POST", - "path": "/mysql.start", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.stop": { - "method": "POST", - "path": "/mysql.stop", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.saveExternalPort": { - "method": "POST", - "path": "/mysql.saveExternalPort", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mysqlId", - "externalPort" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.deploy": { - "method": "POST", - "path": "/mysql.deploy", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.changeStatus": { - "method": "POST", - "path": "/mysql.changeStatus", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "mysqlId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.reload": { - "method": "POST", - "path": "/mysql.reload", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - } - }, - "required": [ - "mysqlId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.remove": { - "method": "POST", - "path": "/mysql.remove", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.saveEnvironment": { - "method": "POST", - "path": "/mysql.saveEnvironment", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "mysqlId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.update": { - "method": "POST", - "path": "/mysql.update", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "databaseRootPassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "dockerImage": { - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "createdAt": { - "type": "string" - }, - "environmentId": { - "type": "string" - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.changePassword": { - "method": "POST", - "path": "/mysql.changePassword", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "type": { - "default": "user", - "type": "string", - "enum": [ - "user", - "root" - ] - } - }, - "required": [ - "mysqlId", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.move": { - "method": "POST", - "path": "/mysql.move", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "mysqlId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.rebuild": { - "method": "POST", - "path": "/mysql.rebuild", - "tag": "mysql", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string" - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.search": { - "method": "GET", - "path": "/mysql.search", - "tag": "mysql", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "mysql.readLogs": { - "method": "GET", - "path": "/mysql.readLogs", - "tag": "mysql", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "mysqlId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "mysqlId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createSlack": { - "method": "POST", - "path": "/notification.createSlack", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "channel": { - "type": "string" - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "webhookUrl", - "channel" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateSlack": { - "method": "POST", - "path": "/notification.updateSlack", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "channel": { - "type": "string" - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "slackId": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "slackId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testSlackConnection": { - "method": "POST", - "path": "/notification.testSlackConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "channel": { - "type": "string" - } - }, - "required": [ - "webhookUrl", - "channel" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createTelegram": { - "method": "POST", - "path": "/notification.createTelegram", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "botToken": { - "type": "string", - "minLength": 1 - }, - "chatId": { - "type": "string", - "minLength": 1 - }, - "messageThreadId": { - "type": "string" - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "botToken", - "chatId", - "messageThreadId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateTelegram": { - "method": "POST", - "path": "/notification.updateTelegram", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "botToken": { - "type": "string", - "minLength": 1 - }, - "chatId": { - "type": "string", - "minLength": 1 - }, - "messageThreadId": { - "type": "string" - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "telegramId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "telegramId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testTelegramConnection": { - "method": "POST", - "path": "/notification.testTelegramConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "botToken": { - "type": "string", - "minLength": 1 - }, - "chatId": { - "type": "string", - "minLength": 1 - }, - "messageThreadId": { - "type": "string" - } - }, - "required": [ - "botToken", - "chatId", - "messageThreadId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createDiscord": { - "method": "POST", - "path": "/notification.createDiscord", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "decoration": { - "type": "boolean" - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "webhookUrl", - "decoration" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateDiscord": { - "method": "POST", - "path": "/notification.updateDiscord", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "decoration": { - "type": "boolean" - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "discordId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "discordId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testDiscordConnection": { - "method": "POST", - "path": "/notification.testDiscordConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "decoration": { - "type": "boolean" - } - }, - "required": [ - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createEmail": { - "method": "POST", - "path": "/notification.createEmail", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "smtpServer": { - "type": "string", - "minLength": 1 - }, - "smtpPort": { - "type": "number", - "minimum": 1 - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "fromAddress": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "smtpServer", - "smtpPort", - "username", - "password", - "fromAddress", - "toAddresses" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateEmail": { - "method": "POST", - "path": "/notification.updateEmail", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "smtpServer": { - "type": "string", - "minLength": 1 - }, - "smtpPort": { - "type": "number", - "minimum": 1 - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "fromAddress": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "emailId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "emailId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testEmailConnection": { - "method": "POST", - "path": "/notification.testEmailConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "smtpServer": { - "type": "string", - "minLength": 1 - }, - "smtpPort": { - "type": "number", - "minimum": 1 - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - }, - "fromAddress": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "smtpServer", - "smtpPort", - "username", - "password", - "toAddresses", - "fromAddress" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createResend": { - "method": "POST", - "path": "/notification.createResend", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "apiKey": { - "type": "string", - "minLength": 1 - }, - "fromAddress": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "apiKey", - "fromAddress", - "toAddresses" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateResend": { - "method": "POST", - "path": "/notification.updateResend", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "apiKey": { - "type": "string", - "minLength": 1 - }, - "fromAddress": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "resendId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "resendId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testResendConnection": { - "method": "POST", - "path": "/notification.testResendConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "apiKey": { - "type": "string", - "minLength": 1 - }, - "fromAddress": { - "type": "string", - "minLength": 1 - }, - "toAddresses": { - "minItems": 1, - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "apiKey", - "fromAddress", - "toAddresses" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.remove": { - "method": "POST", - "path": "/notification.remove", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "notificationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "notificationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.one": { - "method": "GET", - "path": "/notification.one", - "tag": "notification", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "notificationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "notificationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.all": { - "method": "GET", - "path": "/notification.all", - "tag": "notification", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.receiveNotification": { - "method": "POST", - "path": "/notification.receiveNotification", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "ServerType": { - "default": "Dokploy", - "type": "string", - "enum": [ - "Dokploy", - "Remote" - ] - }, - "Type": { - "type": "string", - "enum": [ - "Memory", - "CPU" - ] - }, - "Value": { - "type": "number" - }, - "Threshold": { - "type": "number" - }, - "Message": { - "type": "string" - }, - "Timestamp": { - "type": "string" - }, - "Token": { - "type": "string" - } - }, - "required": [ - "Type", - "Value", - "Threshold", - "Message", - "Timestamp", - "Token" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createGotify": { - "method": "POST", - "path": "/notification.createGotify", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "appToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "type": "number", - "minimum": 1 - }, - "decoration": { - "type": "boolean" - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverUrl", - "appToken", - "priority", - "decoration" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateGotify": { - "method": "POST", - "path": "/notification.updateGotify", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "appToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "type": "number", - "minimum": 1 - }, - "decoration": { - "type": "boolean" - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "gotifyId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "gotifyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testGotifyConnection": { - "method": "POST", - "path": "/notification.testGotifyConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "appToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "type": "number", - "minimum": 1 - }, - "decoration": { - "type": "boolean" - } - }, - "required": [ - "serverUrl", - "appToken", - "priority" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createNtfy": { - "method": "POST", - "path": "/notification.createNtfy", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "topic": { - "type": "string", - "minLength": 1 - }, - "accessToken": { - "type": "string" - }, - "priority": { - "type": "number", - "minimum": 1 - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverUrl", - "topic", - "accessToken", - "priority" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateNtfy": { - "method": "POST", - "path": "/notification.updateNtfy", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "topic": { - "type": "string", - "minLength": 1 - }, - "accessToken": { - "type": "string" - }, - "priority": { - "type": "number", - "minimum": 1 - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "ntfyId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "ntfyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testNtfyConnection": { - "method": "POST", - "path": "/notification.testNtfyConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverUrl": { - "type": "string", - "minLength": 1 - }, - "topic": { - "type": "string", - "minLength": 1 - }, - "accessToken": { - "type": "string" - }, - "priority": { - "type": "number", - "minimum": 1 - } - }, - "required": [ - "serverUrl", - "topic", - "accessToken", - "priority" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createMattermost": { - "method": "POST", - "path": "/notification.createMattermost", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "format": "uri" - }, - "channel": { - "type": "string" - }, - "username": { - "type": "string" - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateMattermost": { - "method": "POST", - "path": "/notification.updateMattermost", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "format": "uri" - }, - "channel": { - "type": "string" - }, - "username": { - "type": "string" - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "mattermostId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "mattermostId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testMattermostConnection": { - "method": "POST", - "path": "/notification.testMattermostConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "format": "uri" - }, - "channel": { - "type": "string" - }, - "username": { - "type": "string" - } - }, - "required": [ - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createCustom": { - "method": "POST", - "path": "/notification.createCustom", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "endpoint": { - "type": "string", - "minLength": 1 - }, - "headers": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "required": [ - "name", - "endpoint" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateCustom": { - "method": "POST", - "path": "/notification.updateCustom", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "endpoint": { - "type": "string", - "minLength": 1 - }, - "headers": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "customId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "customId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testCustomConnection": { - "method": "POST", - "path": "/notification.testCustomConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "endpoint": { - "type": "string", - "minLength": 1 - }, - "headers": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "required": [ - "endpoint" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createLark": { - "method": "POST", - "path": "/notification.createLark", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateLark": { - "method": "POST", - "path": "/notification.updateLark", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "larkId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "larkId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testLarkConnection": { - "method": "POST", - "path": "/notification.testLarkConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createTeams": { - "method": "POST", - "path": "/notification.createTeams", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "appBuildError", - "databaseBackup", - "dokployBackup", - "volumeBackup", - "dokployRestart", - "name", - "appDeploy", - "dockerCleanup", - "serverThreshold", - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updateTeams": { - "method": "POST", - "path": "/notification.updateTeams", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "webhookUrl": { - "type": "string", - "minLength": 1 - }, - "notificationId": { - "type": "string", - "minLength": 1 - }, - "teamsId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "notificationId", - "teamsId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testTeamsConnection": { - "method": "POST", - "path": "/notification.testTeamsConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "webhookUrl" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.createPushover": { - "method": "POST", - "path": "/notification.createPushover", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - }, - "userKey": { - "type": "string", - "minLength": 1 - }, - "apiToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "default": 0, - "type": "number", - "minimum": -2, - "maximum": 2 - }, - "retry": { - "anyOf": [ - { - "type": "number", - "minimum": 30 - }, - { - "type": "null" - } - ] - }, - "expire": { - "anyOf": [ - { - "type": "number", - "minimum": 1, - "maximum": 10800 - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "userKey", - "apiToken" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.updatePushover": { - "method": "POST", - "path": "/notification.updatePushover", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "notificationId": { - "type": "string", - "minLength": 1 - }, - "pushoverId": { - "type": "string", - "minLength": 1 - }, - "organizationId": { - "type": "string" - }, - "userKey": { - "type": "string", - "minLength": 1 - }, - "apiToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "type": "number", - "minimum": -2, - "maximum": 2 - }, - "retry": { - "anyOf": [ - { - "type": "number", - "minimum": 30 - }, - { - "type": "null" - } - ] - }, - "expire": { - "anyOf": [ - { - "type": "number", - "minimum": 1, - "maximum": 10800 - }, - { - "type": "null" - } - ] - }, - "appBuildError": { - "type": "boolean" - }, - "databaseBackup": { - "type": "boolean" - }, - "dokployBackup": { - "type": "boolean" - }, - "volumeBackup": { - "type": "boolean" - }, - "dokployRestart": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "appDeploy": { - "type": "boolean" - }, - "dockerCleanup": { - "type": "boolean" - }, - "serverThreshold": { - "type": "boolean" - } - }, - "required": [ - "notificationId", - "pushoverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.testPushoverConnection": { - "method": "POST", - "path": "/notification.testPushoverConnection", - "tag": "notification", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "userKey": { - "type": "string", - "minLength": 1 - }, - "apiToken": { - "type": "string", - "minLength": 1 - }, - "priority": { - "type": "number", - "minimum": -2, - "maximum": 2 - }, - "retry": { - "anyOf": [ - { - "type": "number", - "minimum": 30 - }, - { - "type": "null" - } - ] - }, - "expire": { - "anyOf": [ - { - "type": "number", - "minimum": 1, - "maximum": 10800 - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "userKey", - "apiToken", - "priority" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "notification.getEmailProviders": { - "method": "GET", - "path": "/notification.getEmailProviders", - "tag": "notification", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "port.create": { - "method": "POST", - "path": "/port.create", - "tag": "port", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "publishedPort": { - "type": "number" - }, - "publishMode": { - "default": "ingress", - "type": "string", - "enum": [ - "ingress", - "host" - ] - }, - "targetPort": { - "type": "number" - }, - "protocol": { - "default": "tcp", - "type": "string", - "enum": [ - "tcp", - "udp" - ] - }, - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "publishedPort", - "publishMode", - "targetPort", - "protocol", - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "port.one": { - "method": "GET", - "path": "/port.one", - "tag": "port", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "portId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "portId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "port.delete": { - "method": "POST", - "path": "/port.delete", - "tag": "port", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "portId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "portId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "port.update": { - "method": "POST", - "path": "/port.update", - "tag": "port", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "portId": { - "type": "string", - "minLength": 1 - }, - "publishedPort": { - "type": "number" - }, - "publishMode": { - "default": "ingress", - "type": "string", - "enum": [ - "ingress", - "host" - ] - }, - "targetPort": { - "type": "number" - }, - "protocol": { - "default": "tcp", - "type": "string", - "enum": [ - "tcp", - "udp" - ] - } - }, - "required": [ - "portId", - "publishedPort", - "publishMode", - "targetPort", - "protocol" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.create": { - "method": "POST", - "path": "/postgres.create", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "dockerImage": { - "default": "postgres:18", - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "databaseName", - "databaseUser", - "databasePassword", - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.one": { - "method": "GET", - "path": "/postgres.one", - "tag": "postgres", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.start": { - "method": "POST", - "path": "/postgres.start", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.stop": { - "method": "POST", - "path": "/postgres.stop", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.saveExternalPort": { - "method": "POST", - "path": "/postgres.saveExternalPort", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "postgresId", - "externalPort" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.deploy": { - "method": "POST", - "path": "/postgres.deploy", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.changeStatus": { - "method": "POST", - "path": "/postgres.changeStatus", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "postgresId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.remove": { - "method": "POST", - "path": "/postgres.remove", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.saveEnvironment": { - "method": "POST", - "path": "/postgres.saveEnvironment", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "postgresId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.reload": { - "method": "POST", - "path": "/postgres.reload", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - } - }, - "required": [ - "postgresId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.update": { - "method": "POST", - "path": "/postgres.update", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "databaseName": { - "type": "string", - "minLength": 1 - }, - "databaseUser": { - "type": "string", - "minLength": 1 - }, - "databasePassword": { - "type": "string", - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dockerImage": { - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "createdAt": { - "type": "string" - }, - "environmentId": { - "type": "string" - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.changePassword": { - "method": "POST", - "path": "/postgres.changePassword", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - } - }, - "required": [ - "postgresId", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.move": { - "method": "POST", - "path": "/postgres.move", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "postgresId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.rebuild": { - "method": "POST", - "path": "/postgres.rebuild", - "tag": "postgres", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string" - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.search": { - "method": "GET", - "path": "/postgres.search", - "tag": "postgres", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "postgres.readLogs": { - "method": "GET", - "path": "/postgres.readLogs", - "tag": "postgres", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "postgresId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "postgresId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "previewDeployment.all": { - "method": "GET", - "path": "/previewDeployment.all", - "tag": "previewDeployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "previewDeployment.one": { - "method": "GET", - "path": "/previewDeployment.one", - "tag": "previewDeployment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "previewDeploymentId": { - "type": "string" - } - }, - "required": [ - "previewDeploymentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "previewDeployment.delete": { - "method": "POST", - "path": "/previewDeployment.delete", - "tag": "previewDeployment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "previewDeploymentId": { - "type": "string" - } - }, - "required": [ - "previewDeploymentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "previewDeployment.redeploy": { - "method": "POST", - "path": "/previewDeployment.redeploy", - "tag": "previewDeployment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "previewDeploymentId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "previewDeploymentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.create": { - "method": "POST", - "path": "/project.create", - "tag": "project", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.one": { - "method": "GET", - "path": "/project.one", - "tag": "project", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "projectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.all": { - "method": "GET", - "path": "/project.all", - "tag": "project", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.allForPermissions": { - "method": "GET", - "path": "/project.allForPermissions", - "tag": "project", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.homeStats": { - "method": "GET", - "path": "/project.homeStats", - "tag": "project", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.search": { - "method": "GET", - "path": "/project.search", - "tag": "project", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.remove": { - "method": "POST", - "path": "/project.remove", - "tag": "project", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "projectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.update": { - "method": "POST", - "path": "/project.update", - "tag": "project", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "env": { - "type": "string" - } - }, - "required": [ - "projectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "project.duplicate": { - "method": "POST", - "path": "/project.duplicate", - "tag": "project", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "sourceEnvironmentId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "includeServices": { - "default": true, - "type": "boolean" - }, - "selectedServices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose", - "libsql", - "mariadb", - "mongo", - "mysql", - "postgres", - "redis" - ] - } - }, - "required": [ - "id", - "type" - ] - } - }, - "duplicateInSameProject": { - "default": false, - "type": "boolean" - } - }, - "required": [ - "sourceEnvironmentId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redirects.create": { - "method": "POST", - "path": "/redirects.create", - "tag": "redirects", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "regex": { - "type": "string", - "minLength": 1 - }, - "replacement": { - "type": "string", - "minLength": 1 - }, - "permanent": { - "type": "boolean" - }, - "applicationId": { - "type": "string" - } - }, - "required": [ - "regex", - "replacement", - "permanent", - "applicationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redirects.one": { - "method": "GET", - "path": "/redirects.one", - "tag": "redirects", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "redirectId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redirectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redirects.delete": { - "method": "POST", - "path": "/redirects.delete", - "tag": "redirects", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redirectId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redirectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redirects.update": { - "method": "POST", - "path": "/redirects.update", - "tag": "redirects", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redirectId": { - "type": "string", - "minLength": 1 - }, - "regex": { - "type": "string", - "minLength": 1 - }, - "replacement": { - "type": "string", - "minLength": 1 - }, - "permanent": { - "type": "boolean" - } - }, - "required": [ - "redirectId", - "regex", - "replacement", - "permanent" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.create": { - "method": "POST", - "path": "/redis.create", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "databasePassword": { - "type": "string" - }, - "dockerImage": { - "default": "redis:8", - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name", - "databasePassword", - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.one": { - "method": "GET", - "path": "/redis.one", - "tag": "redis", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.start": { - "method": "POST", - "path": "/redis.start", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.reload": { - "method": "POST", - "path": "/redis.reload", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - } - }, - "required": [ - "redisId", - "appName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.stop": { - "method": "POST", - "path": "/redis.stop", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.saveExternalPort": { - "method": "POST", - "path": "/redis.saveExternalPort", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "redisId", - "externalPort" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.deploy": { - "method": "POST", - "path": "/redis.deploy", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.changeStatus": { - "method": "POST", - "path": "/redis.changeStatus", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - } - }, - "required": [ - "redisId", - "applicationStatus" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.remove": { - "method": "POST", - "path": "/redis.remove", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.saveEnvironment": { - "method": "POST", - "path": "/redis.saveEnvironment", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "redisId", - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.update": { - "method": "POST", - "path": "/redis.update", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "appName": { - "type": "string", - "minLength": 1, - "maxLength": 63, - "pattern": "^[a-zA-Z0-9._-]+$" - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "databasePassword": { - "type": "string" - }, - "dockerImage": { - "type": "string" - }, - "command": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "args": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "memoryLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuReservation": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "cpuLimit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "externalPort": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - }, - "applicationStatus": { - "type": "string", - "enum": [ - "idle", - "running", - "done", - "error" - ] - }, - "healthCheckSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Test": { - "type": "array", - "items": { - "type": "string" - } - }, - "Interval": { - "type": "number" - }, - "Timeout": { - "type": "number" - }, - "StartPeriod": { - "type": "number" - }, - "Retries": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "restartPolicySwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Condition": { - "type": "string" - }, - "Delay": { - "type": "number" - }, - "MaxAttempts": { - "type": "number" - }, - "Window": { - "type": "number" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "placementSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Constraints": { - "type": "array", - "items": { - "type": "string" - } - }, - "Preferences": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Spread": { - "type": "object", - "properties": { - "SpreadDescriptor": { - "type": "string" - } - }, - "required": [ - "SpreadDescriptor" - ] - } - }, - "required": [ - "Spread" - ], - "additionalProperties": false - } - }, - "MaxReplicas": { - "type": "number" - }, - "Platforms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Architecture": { - "type": "string" - }, - "OS": { - "type": "string" - } - }, - "required": [ - "Architecture", - "OS" - ], - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "updateConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "rollbackConfigSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Parallelism": { - "type": "number" - }, - "Delay": { - "type": "number" - }, - "FailureAction": { - "type": "string" - }, - "Monitor": { - "type": "number" - }, - "MaxFailureRatio": { - "type": "number" - }, - "Order": { - "type": "string" - } - }, - "required": [ - "Parallelism", - "Order" - ], - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "modeSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Replicated": { - "type": "object", - "properties": { - "Replicas": { - "type": "number" - } - }, - "additionalProperties": false - }, - "Global": { - "type": "object", - "properties": {} - }, - "ReplicatedJob": { - "type": "object", - "properties": { - "MaxConcurrent": { - "type": "number" - }, - "TotalCompletions": { - "type": "number" - } - }, - "additionalProperties": false - }, - "GlobalJob": { - "type": "object", - "properties": {} - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "labelsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "networkSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Target": { - "type": "string" - }, - "Aliases": { - "type": "array", - "items": { - "type": "string" - } - }, - "DriverOpts": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "stopGracePeriodSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "endpointSpecSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "object", - "properties": { - "Mode": { - "type": "string" - }, - "Ports": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Protocol": { - "type": "string" - }, - "TargetPort": { - "type": "number" - }, - "PublishedPort": { - "type": "number" - }, - "PublishMode": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "ulimitsSwarm": { - "anyOf": [ - { - "anyOf": [ - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Name": { - "type": "string", - "minLength": 1 - }, - "Soft": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - }, - "Hard": { - "type": "integer", - "minimum": -1, - "maximum": 9007199254740991 - } - }, - "required": [ - "Name", - "Soft", - "Hard" - ], - "additionalProperties": false - } - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "replicas": { - "type": "number" - }, - "environmentId": { - "type": "string" - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.changePassword": { - "method": "POST", - "path": "/redis.changePassword", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" - } - }, - "required": [ - "redisId", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.move": { - "method": "POST", - "path": "/redis.move", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - }, - "targetEnvironmentId": { - "type": "string" - } - }, - "required": [ - "redisId", - "targetEnvironmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.rebuild": { - "method": "POST", - "path": "/redis.rebuild", - "tag": "redis", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string" - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.search": { - "method": "GET", - "path": "/redis.search", - "tag": "redis", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "environmentId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "redis.readLogs": { - "method": "GET", - "path": "/redis.readLogs", - "tag": "redis", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "redisId": { - "type": "string", - "minLength": 1 - }, - "tail": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - }, - "since": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - }, - "search": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - }, - "required": [ - "redisId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.create": { - "method": "POST", - "path": "/registry.create", - "tag": "registry", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "registryName": { - "type": "string", - "minLength": 1 - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "registryUrl": { - "type": "string" - }, - "registryType": { - "type": "string", - "enum": [ - "cloud" - ] - }, - "imagePrefix": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "registryName", - "username", - "password", - "registryUrl", - "registryType", - "imagePrefix" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.remove": { - "method": "POST", - "path": "/registry.remove", - "tag": "registry", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "registryId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "registryId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.update": { - "method": "POST", - "path": "/registry.update", - "tag": "registry", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "registryId": { - "type": "string", - "minLength": 1 - }, - "registryName": { - "type": "string", - "minLength": 1 - }, - "imagePrefix": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - { - "type": "null" - } - ] - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "registryUrl": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "registryType": { - "type": "string", - "enum": [ - "cloud" - ] - }, - "organizationId": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "registryId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.all": { - "method": "GET", - "path": "/registry.all", - "tag": "registry", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.one": { - "method": "GET", - "path": "/registry.one", - "tag": "registry", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "registryId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "registryId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.testRegistry": { - "method": "POST", - "path": "/registry.testRegistry", - "tag": "registry", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "registryName": { - "type": "string" - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - }, - "registryUrl": { - "type": "string" - }, - "registryType": { - "type": "string", - "enum": [ - "cloud" - ] - }, - "imagePrefix": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "username", - "password", - "registryUrl", - "registryType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "registry.testRegistryById": { - "method": "POST", - "path": "/registry.testRegistryById", - "tag": "registry", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "registryId": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "security.create": { - "method": "POST", - "path": "/security.create", - "tag": "security", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "applicationId": { - "type": "string" - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "applicationId", - "username", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "security.one": { - "method": "GET", - "path": "/security.one", - "tag": "security", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "securityId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "securityId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "security.delete": { - "method": "POST", - "path": "/security.delete", - "tag": "security", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "securityId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "securityId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "security.update": { - "method": "POST", - "path": "/security.update", - "tag": "security", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "securityId": { - "type": "string", - "minLength": 1 - }, - "username": { - "type": "string", - "minLength": 1 - }, - "password": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "securityId", - "username", - "password" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.create": { - "method": "POST", - "path": "/server.create", - "tag": "server", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "ipAddress": { - "type": "string" - }, - "port": { - "type": "number" - }, - "username": { - "type": "string" - }, - "sshKeyId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverType": { - "type": "string", - "enum": [ - "deploy", - "build" - ] - } - }, - "required": [ - "name", - "description", - "ipAddress", - "port", - "username", - "sshKeyId", - "serverType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.one": { - "method": "GET", - "path": "/server.one", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.getDefaultCommand": { - "method": "GET", - "path": "/server.getDefaultCommand", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.all": { - "method": "GET", - "path": "/server.all", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.allForPermissions": { - "method": "GET", - "path": "/server.allForPermissions", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.count": { - "method": "GET", - "path": "/server.count", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.withSSHKey": { - "method": "GET", - "path": "/server.withSSHKey", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.buildServers": { - "method": "GET", - "path": "/server.buildServers", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.setup": { - "method": "POST", - "path": "/server.setup", - "tag": "server", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.validate": { - "method": "GET", - "path": "/server.validate", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.security": { - "method": "GET", - "path": "/server.security", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.setupMonitoring": { - "method": "POST", - "path": "/server.setupMonitoring", - "tag": "server", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - }, - "metricsConfig": { - "type": "object", - "properties": { - "server": { - "type": "object", - "properties": { - "refreshRate": { - "type": "number", - "minimum": 2 - }, - "port": { - "type": "number", - "minimum": 1 - }, - "token": { - "type": "string" - }, - "urlCallback": { - "type": "string", - "format": "uri" - }, - "retentionDays": { - "type": "number", - "minimum": 1 - }, - "cronJob": { - "type": "string", - "minLength": 1 - }, - "thresholds": { - "type": "object", - "properties": { - "cpu": { - "type": "number", - "minimum": 0 - }, - "memory": { - "type": "number", - "minimum": 0 - } - }, - "required": [ - "cpu", - "memory" - ] - } - }, - "required": [ - "refreshRate", - "port", - "token", - "urlCallback", - "retentionDays", - "cronJob", - "thresholds" - ] - }, - "containers": { - "type": "object", - "properties": { - "refreshRate": { - "type": "number", - "minimum": 2 - }, - "services": { - "type": "object", - "properties": { - "include": { - "type": "array", - "items": { - "type": "string" - } - }, - "exclude": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "required": [ - "refreshRate", - "services" - ] - } - }, - "required": [ - "server", - "containers" - ] - } - }, - "required": [ - "serverId", - "metricsConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.remove": { - "method": "POST", - "path": "/server.remove", - "tag": "server", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "serverId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.update": { - "method": "POST", - "path": "/server.update", - "tag": "server", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string", - "minLength": 1 - }, - "ipAddress": { - "type": "string" - }, - "port": { - "type": "number" - }, - "username": { - "type": "string" - }, - "sshKeyId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverType": { - "type": "string", - "enum": [ - "deploy", - "build" - ] - }, - "command": { - "type": "string" - } - }, - "required": [ - "name", - "description", - "serverId", - "ipAddress", - "port", - "username", - "sshKeyId", - "serverType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.publicIp": { - "method": "GET", - "path": "/server.publicIp", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.getServerTime": { - "method": "GET", - "path": "/server.getServerTime", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "server.getServerMetrics": { - "method": "GET", - "path": "/server.getServerMetrics", - "tag": "server", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "token": { - "type": "string" - }, - "dataPoints": { - "type": "string" - } - }, - "required": [ - "url", - "token", - "dataPoints" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getWebServerSettings": { - "method": "GET", - "path": "/settings.getWebServerSettings", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.reloadServer": { - "method": "POST", - "path": "/settings.reloadServer", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanRedis": { - "method": "POST", - "path": "/settings.cleanRedis", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.reloadRedis": { - "method": "POST", - "path": "/settings.reloadRedis", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanAllDeploymentQueue": { - "method": "POST", - "path": "/settings.cleanAllDeploymentQueue", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.reloadTraefik": { - "method": "POST", - "path": "/settings.reloadTraefik", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.toggleDashboard": { - "method": "POST", - "path": "/settings.toggleDashboard", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "enableDashboard": { - "type": "boolean" - }, - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanUnusedImages": { - "method": "POST", - "path": "/settings.cleanUnusedImages", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanUnusedVolumes": { - "method": "POST", - "path": "/settings.cleanUnusedVolumes", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanStoppedContainers": { - "method": "POST", - "path": "/settings.cleanStoppedContainers", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanDockerBuilder": { - "method": "POST", - "path": "/settings.cleanDockerBuilder", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanDockerPrune": { - "method": "POST", - "path": "/settings.cleanDockerPrune", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanAll": { - "method": "POST", - "path": "/settings.cleanAll", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanMonitoring": { - "method": "POST", - "path": "/settings.cleanMonitoring", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getDockerDiskUsage": { - "method": "GET", - "path": "/settings.getDockerDiskUsage", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.saveSSHPrivateKey": { - "method": "POST", - "path": "/settings.saveSSHPrivateKey", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "sshPrivateKey": { - "type": "string" - } - }, - "required": [ - "sshPrivateKey" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.assignDomainServer": { - "method": "POST", - "path": "/settings.assignDomainServer", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "certificateType": { - "type": "string", - "enum": [ - "letsencrypt", - "none", - "custom" - ] - }, - "letsEncryptEmail": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - { - "type": "string", - "const": "" - } - ] - }, - { - "type": "null" - } - ] - }, - "https": { - "type": "boolean" - } - }, - "required": [ - "host", - "certificateType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.cleanSSHPrivateKey": { - "method": "POST", - "path": "/settings.cleanSSHPrivateKey", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateDockerCleanup": { - "method": "POST", - "path": "/settings.updateDockerCleanup", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "enableDockerCleanup": { - "type": "boolean" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "enableDockerCleanup" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readTraefikConfig": { - "method": "GET", - "path": "/settings.readTraefikConfig", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateTraefikConfig": { - "method": "POST", - "path": "/settings.updateTraefikConfig", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "traefikConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readWebServerTraefikConfig": { - "method": "GET", - "path": "/settings.readWebServerTraefikConfig", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateWebServerTraefikConfig": { - "method": "POST", - "path": "/settings.updateWebServerTraefikConfig", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "traefikConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readMiddlewareTraefikConfig": { - "method": "GET", - "path": "/settings.readMiddlewareTraefikConfig", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateMiddlewareTraefikConfig": { - "method": "POST", - "path": "/settings.updateMiddlewareTraefikConfig", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "traefikConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getUpdateData": { - "method": "POST", - "path": "/settings.getUpdateData", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateServer": { - "method": "POST", - "path": "/settings.updateServer", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getDokployVersion": { - "method": "GET", - "path": "/settings.getDokployVersion", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getReleaseTag": { - "method": "GET", - "path": "/settings.getReleaseTag", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readDirectories": { - "method": "GET", - "path": "/settings.readDirectories", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateTraefikFile": { - "method": "POST", - "path": "/settings.updateTraefikFile", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "path": { - "type": "string", - "minLength": 1 - }, - "traefikConfig": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "path", - "traefikConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readTraefikFile": { - "method": "GET", - "path": "/settings.readTraefikFile", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "path": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "path" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getIp": { - "method": "GET", - "path": "/settings.getIp", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateServerIp": { - "method": "POST", - "path": "/settings.updateServerIp", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverIp": { - "type": "string" - } - }, - "required": [ - "serverIp" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getOpenApiDocument": { - "method": "GET", - "path": "/settings.getOpenApiDocument", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.readTraefikEnv": { - "method": "GET", - "path": "/settings.readTraefikEnv", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.writeTraefikEnv": { - "method": "POST", - "path": "/settings.writeTraefikEnv", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "env": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "env" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.haveTraefikDashboardPortEnabled": { - "method": "GET", - "path": "/settings.haveTraefikDashboardPortEnabled", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.haveActivateRequests": { - "method": "GET", - "path": "/settings.haveActivateRequests", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.toggleRequests": { - "method": "POST", - "path": "/settings.toggleRequests", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "enable": { - "type": "boolean" - } - }, - "required": [ - "enable" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.isCloud": { - "method": "GET", - "path": "/settings.isCloud", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.isUserSubscribed": { - "method": "GET", - "path": "/settings.isUserSubscribed", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.health": { - "method": "GET", - "path": "/settings.health", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.checkInfrastructureHealth": { - "method": "GET", - "path": "/settings.checkInfrastructureHealth", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.setupGPU": { - "method": "POST", - "path": "/settings.setupGPU", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.checkGPUStatus": { - "method": "GET", - "path": "/settings.checkGPUStatus", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateTraefikPorts": { - "method": "POST", - "path": "/settings.updateTraefikPorts", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - }, - "additionalPorts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "targetPort": { - "type": "number" - }, - "publishedPort": { - "type": "number" - }, - "protocol": { - "type": "string", - "enum": [ - "tcp", - "udp", - "sctp" - ] - } - }, - "required": [ - "targetPort", - "publishedPort", - "protocol" - ] - } - } - }, - "required": [ - "additionalPorts" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getTraefikPorts": { - "method": "GET", - "path": "/settings.getTraefikPorts", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.updateLogCleanup": { - "method": "POST", - "path": "/settings.updateLogCleanup", - "tag": "settings", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "cronExpression": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "cronExpression" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getLogCleanupStatus": { - "method": "GET", - "path": "/settings.getLogCleanupStatus", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "settings.getDokployCloudIps": { - "method": "GET", - "path": "/settings.getDokployCloudIps", - "tag": "settings", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.create": { - "method": "POST", - "path": "/sshKey.create", - "tag": "sshKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "privateKey": { - "type": "string" - }, - "publicKey": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "name", - "privateKey", - "publicKey", - "organizationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.remove": { - "method": "POST", - "path": "/sshKey.remove", - "tag": "sshKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "sshKeyId": { - "type": "string" - } - }, - "required": [ - "sshKeyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.one": { - "method": "GET", - "path": "/sshKey.one", - "tag": "sshKey", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "sshKeyId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "sshKeyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.all": { - "method": "GET", - "path": "/sshKey.all", - "tag": "sshKey", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.allForApps": { - "method": "GET", - "path": "/sshKey.allForApps", - "tag": "sshKey", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.generate": { - "method": "POST", - "path": "/sshKey.generate", - "tag": "sshKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "rsa", - "ed25519" - ] - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sshKey.update": { - "method": "POST", - "path": "/sshKey.update", - "tag": "sshKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "lastUsedAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "sshKeyId": { - "type": "string" - } - }, - "required": [ - "sshKeyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.getCurrentPlan": { - "method": "GET", - "path": "/stripe.getCurrentPlan", - "tag": "stripe", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.getProducts": { - "method": "GET", - "path": "/stripe.getProducts", - "tag": "stripe", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.createCheckoutSession": { - "method": "POST", - "path": "/stripe.createCheckoutSession", - "tag": "stripe", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "tier": { - "type": "string", - "enum": [ - "legacy", - "hobby", - "startup" - ] - }, - "productId": { - "type": "string" - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" - } - }, - "required": [ - "tier", - "productId", - "serverQuantity", - "isAnnual" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.createCustomerPortalSession": { - "method": "POST", - "path": "/stripe.createCustomerPortalSession", - "tag": "stripe", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.upgradeSubscription": { - "method": "POST", - "path": "/stripe.upgradeSubscription", - "tag": "stripe", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "tier": { - "type": "string", - "enum": [ - "hobby", - "startup" - ] - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" - } - }, - "required": [ - "tier", - "serverQuantity", - "isAnnual" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.canCreateMoreServers": { - "method": "GET", - "path": "/stripe.canCreateMoreServers", - "tag": "stripe", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.updateInvoiceNotifications": { - "method": "POST", - "path": "/stripe.updateInvoiceNotifications", - "tag": "stripe", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - }, - "required": [ - "enabled" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "stripe.getInvoices": { - "method": "GET", - "path": "/stripe.getInvoices", - "tag": "stripe", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "swarm.getNodes": { - "method": "GET", - "path": "/swarm.getNodes", - "tag": "swarm", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "swarm.getNodeInfo": { - "method": "GET", - "path": "/swarm.getNodeInfo", - "tag": "swarm", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "nodeId": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "nodeId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "swarm.getNodeApps": { - "method": "GET", - "path": "/swarm.getNodeApps", - "tag": "swarm", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "swarm.getContainerStats": { - "method": "GET", - "path": "/swarm.getContainerStats", - "tag": "swarm", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.all": { - "method": "GET", - "path": "/user.all", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.one": { - "method": "GET", - "path": "/user.one", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "userId": { - "type": "string" - } - }, - "required": [ - "userId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.session": { - "method": "GET", - "path": "/user.session", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.get": { - "method": "GET", - "path": "/user.get", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getPermissions": { - "method": "GET", - "path": "/user.getPermissions", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.haveRootAccess": { - "method": "GET", - "path": "/user.haveRootAccess", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getBackups": { - "method": "GET", - "path": "/user.getBackups", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getServerMetrics": { - "method": "GET", - "path": "/user.getServerMetrics", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.update": { - "method": "POST", - "path": "/user.update", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "isRegistered": { - "type": "boolean" - }, - "expirationDate": { - "type": "string" - }, - "createdAt2": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "twoFactorEnabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "email": { - "type": "string", - "minLength": 1, - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "emailVerified": { - "type": "boolean" - }, - "image": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "banned": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "banReason": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "banExpires": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updatedAt": { - "type": "string" - }, - "enablePaidFeatures": { - "type": "boolean" - }, - "allowImpersonation": { - "type": "boolean" - }, - "enableEnterpriseFeatures": { - "type": "boolean" - }, - "licenseKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripeCustomerId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripeSubscriptionId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serversQuantity": { - "type": "number" - }, - "sendInvoiceNotifications": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "currentPassword": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getUserByToken": { - "method": "GET", - "path": "/user.getUserByToken", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "token": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "token" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getMetricsToken": { - "method": "GET", - "path": "/user.getMetricsToken", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.remove": { - "method": "POST", - "path": "/user.remove", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "userId": { - "type": "string" - } - }, - "required": [ - "userId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.assignPermissions": { - "method": "POST", - "path": "/user.assignPermissions", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "accessedProjects": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedEnvironments": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedServices": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedGitProviders": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedServers": { - "type": "array", - "items": { - "type": "string" - } - }, - "canCreateProjects": { - "type": "boolean" - }, - "canCreateServices": { - "type": "boolean" - }, - "canDeleteProjects": { - "type": "boolean" - }, - "canDeleteServices": { - "type": "boolean" - }, - "canAccessToDocker": { - "type": "boolean" - }, - "canAccessToTraefikFiles": { - "type": "boolean" - }, - "canAccessToAPI": { - "type": "boolean" - }, - "canAccessToSSHKeys": { - "type": "boolean" - }, - "canAccessToGitProviders": { - "type": "boolean" - }, - "canDeleteEnvironments": { - "type": "boolean" - }, - "canCreateEnvironments": { - "type": "boolean" - } - }, - "required": [ - "id", - "accessedProjects", - "accessedEnvironments", - "accessedServices", - "accessedGitProviders", - "accessedServers", - "canCreateProjects", - "canCreateServices", - "canDeleteProjects", - "canDeleteServices", - "canAccessToDocker", - "canAccessToTraefikFiles", - "canAccessToAPI", - "canAccessToSSHKeys", - "canAccessToGitProviders", - "canDeleteEnvironments", - "canCreateEnvironments" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getInvitations": { - "method": "GET", - "path": "/user.getInvitations", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getContainerMetrics": { - "method": "GET", - "path": "/user.getContainerMetrics", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "token": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "dataPoints": { - "type": "string" - } - }, - "required": [ - "url", - "token", - "appName", - "dataPoints" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.generateToken": { - "method": "POST", - "path": "/user.generateToken", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.deleteApiKey": { - "method": "POST", - "path": "/user.deleteApiKey", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "apiKeyId": { - "type": "string" - } - }, - "required": [ - "apiKeyId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.createApiKey": { - "method": "POST", - "path": "/user.createApiKey", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "prefix": { - "type": "string" - }, - "expiresIn": { - "type": "number" - }, - "metadata": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - } - }, - "required": [ - "organizationId" - ] - }, - "rateLimitEnabled": { - "type": "boolean" - }, - "rateLimitTimeWindow": { - "type": "number" - }, - "rateLimitMax": { - "type": "number" - }, - "remaining": { - "type": "number" - }, - "refillAmount": { - "type": "number" - }, - "refillInterval": { - "type": "number" - } - }, - "required": [ - "name", - "metadata" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.checkUserOrganizations": { - "method": "GET", - "path": "/user.checkUserOrganizations", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "userId": { - "type": "string" - } - }, - "required": [ - "userId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.createUserWithCredentials": { - "method": "POST", - "path": "/user.createUserWithCredentials", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "password": { - "type": "string", - "minLength": 8 - }, - "role": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "email", - "password", - "role" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.sendInvitation": { - "method": "POST", - "path": "/user.sendInvitation", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "invitationId": { - "type": "string", - "minLength": 1 - }, - "notificationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "invitationId", - "notificationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.getBookmarkedTemplates": { - "method": "GET", - "path": "/user.getBookmarkedTemplates", - "tag": "user", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "user.toggleTemplateBookmark": { - "method": "POST", - "path": "/user.toggleTemplateBookmark", - "tag": "user", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "templateId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "templateId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.one": { - "method": "GET", - "path": "/ai.one", - "tag": "ai", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string" - } - }, - "required": [ - "aiId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.getModels": { - "method": "GET", - "path": "/ai.getModels", - "tag": "ai", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "apiUrl": { - "type": "string", - "minLength": 1 - }, - "apiKey": { - "type": "string" - } - }, - "required": [ - "apiUrl", - "apiKey" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.create": { - "method": "POST", - "path": "/ai.create", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "apiUrl": { - "type": "string", - "format": "uri" - }, - "apiKey": { - "type": "string" - }, - "model": { - "type": "string", - "minLength": 1 - }, - "isEnabled": { - "type": "boolean" - } - }, - "required": [ - "name", - "apiUrl", - "apiKey", - "model", - "isEnabled" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.update": { - "method": "POST", - "path": "/ai.update", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "apiUrl": { - "type": "string", - "format": "uri" - }, - "apiKey": { - "type": "string" - }, - "model": { - "type": "string", - "minLength": 1 - }, - "isEnabled": { - "type": "boolean" - }, - "createdAt": { - "type": "string" - } - }, - "required": [ - "aiId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.getAll": { - "method": "GET", - "path": "/ai.getAll", - "tag": "ai", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.get": { - "method": "GET", - "path": "/ai.get", - "tag": "ai", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string" - } - }, - "required": [ - "aiId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.delete": { - "method": "POST", - "path": "/ai.delete", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string" - } - }, - "required": [ - "aiId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.getEnabledProviders": { - "method": "GET", - "path": "/ai.getEnabledProviders", - "tag": "ai", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.analyzeLogs": { - "method": "POST", - "path": "/ai.analyzeLogs", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string", - "minLength": 1 - }, - "logs": { - "type": "string", - "minLength": 1 - }, - "context": { - "type": "string", - "enum": [ - "build", - "runtime" - ] - } - }, - "required": [ - "aiId", - "logs", - "context" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.testConnection": { - "method": "POST", - "path": "/ai.testConnection", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "apiUrl": { - "type": "string", - "minLength": 1 - }, - "apiKey": { - "type": "string" - }, - "model": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "apiUrl", - "apiKey", - "model" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.suggest": { - "method": "POST", - "path": "/ai.suggest", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "aiId": { - "type": "string" - }, - "input": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "aiId", - "input" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "ai.deploy": { - "method": "POST", - "path": "/ai.deploy", - "tag": "ai", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - }, - "id": { - "type": "string", - "minLength": 1 - }, - "dockerCompose": { - "type": "string", - "minLength": 1 - }, - "envVariables": { - "type": "string" - }, - "serverId": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "type": "string" - }, - "domains": { - "type": "array", - "items": { - "type": "object", - "properties": { - "host": { - "type": "string", - "minLength": 1 - }, - "port": { - "type": "number", - "minimum": 1 - }, - "serviceName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "host", - "port", - "serviceName" - ] - } - }, - "configFiles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "filePath": { - "type": "string", - "minLength": 1 - }, - "content": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "filePath", - "content" - ] - } - } - }, - "required": [ - "environmentId", - "id", - "dockerCompose", - "envVariables", - "name", - "description" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.create": { - "method": "POST", - "path": "/organization.create", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "logo": { - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.all": { - "method": "GET", - "path": "/organization.all", - "tag": "organization", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.one": { - "method": "GET", - "path": "/organization.one", - "tag": "organization", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - } - }, - "required": [ - "organizationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.update": { - "method": "POST", - "path": "/organization.update", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "logo": { - "type": "string" - } - }, - "required": [ - "organizationId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.delete": { - "method": "POST", - "path": "/organization.delete", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - } - }, - "required": [ - "organizationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.inviteMember": { - "method": "POST", - "path": "/organization.inviteMember", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "role": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "email", - "role" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.allInvitations": { - "method": "GET", - "path": "/organization.allInvitations", - "tag": "organization", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.removeInvitation": { - "method": "POST", - "path": "/organization.removeInvitation", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "invitationId": { - "type": "string" - } - }, - "required": [ - "invitationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.updateMemberRole": { - "method": "POST", - "path": "/organization.updateMemberRole", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "memberId": { - "type": "string" - }, - "role": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "memberId", - "role" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.setDefault": { - "method": "POST", - "path": "/organization.setDefault", - "tag": "organization", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "organizationId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "organizationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "organization.active": { - "method": "GET", - "path": "/organization.active", - "tag": "organization", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.activate": { - "method": "POST", - "path": "/licenseKey.activate", - "tag": "licenseKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "licenseKey": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "licenseKey" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.validate": { - "method": "POST", - "path": "/licenseKey.validate", - "tag": "licenseKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.deactivate": { - "method": "POST", - "path": "/licenseKey.deactivate", - "tag": "licenseKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.getEnterpriseSettings": { - "method": "GET", - "path": "/licenseKey.getEnterpriseSettings", - "tag": "licenseKey", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.haveValidLicenseKey": { - "method": "GET", - "path": "/licenseKey.haveValidLicenseKey", - "tag": "licenseKey", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "licenseKey.updateEnterpriseSettings": { - "method": "POST", - "path": "/licenseKey.updateEnterpriseSettings", - "tag": "licenseKey", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "enableEnterpriseFeatures": { - "type": "boolean" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.showSignInWithSSO": { - "method": "GET", - "path": "/sso.showSignInWithSSO", - "tag": "sso", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.listProviders": { - "method": "GET", - "path": "/sso.listProviders", - "tag": "sso", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.getTrustedOrigins": { - "method": "GET", - "path": "/sso.getTrustedOrigins", - "tag": "sso", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.one": { - "method": "GET", - "path": "/sso.one", - "tag": "sso", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "providerId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "providerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.update": { - "method": "POST", - "path": "/sso.update", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "providerId": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "domains": { - "type": "array", - "items": { - "type": "string" - } - }, - "oidcConfig": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "authorizationEndpoint": { - "type": "string" - }, - "tokenEndpoint": { - "type": "string" - }, - "userInfoEndpoint": { - "type": "string" - }, - "tokenEndpointAuthentication": { - "type": "string", - "enum": [ - "client_secret_post", - "client_secret_basic" - ] - }, - "jwksEndpoint": { - "type": "string" - }, - "discoveryEndpoint": { - "type": "string" - }, - "skipDiscovery": { - "type": "boolean" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "pkce": { - "default": true, - "type": "boolean" - }, - "mapping": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "image": { - "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - } - }, - "required": [ - "id", - "email", - "name" - ] - } - }, - "required": [ - "clientId", - "clientSecret" - ] - }, - "samlConfig": { - "type": "object", - "properties": { - "entryPoint": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "callbackUrl": { - "type": "string" - }, - "audience": { - "type": "string" - }, - "idpMetadata": { - "type": "object", - "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { - "type": "string" - }, - "singleSignOnService": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Binding": { - "type": "string" - }, - "Location": { - "type": "string" - } - }, - "required": [ - "Binding", - "Location" - ] - } - } - } - }, - "spMetadata": { - "type": "object", - "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "binding": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { - "type": "string" - } - } - }, - "wantAssertionsSigned": { - "type": "boolean" - }, - "authnRequestsSigned": { - "type": "boolean" - }, - "signatureAlgorithm": { - "type": "string" - }, - "digestAlgorithm": { - "type": "string" - }, - "identifierFormat": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "decryptionPvk": { - "type": "string" - }, - "additionalParams": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - }, - "mapping": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - } - }, - "required": [ - "id", - "email", - "name" - ] - } - }, - "required": [ - "entryPoint", - "cert", - "callbackUrl", - "spMetadata" - ] - }, - "organizationId": { - "type": "string" - }, - "overrideUserInfo": { - "default": false, - "type": "boolean" - } - }, - "required": [ - "providerId", - "issuer", - "domains" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.deleteProvider": { - "method": "POST", - "path": "/sso.deleteProvider", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "providerId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "providerId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.register": { - "method": "POST", - "path": "/sso.register", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "providerId": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "domains": { - "type": "array", - "items": { - "type": "string" - } - }, - "oidcConfig": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "authorizationEndpoint": { - "type": "string" - }, - "tokenEndpoint": { - "type": "string" - }, - "userInfoEndpoint": { - "type": "string" - }, - "tokenEndpointAuthentication": { - "type": "string", - "enum": [ - "client_secret_post", - "client_secret_basic" - ] - }, - "jwksEndpoint": { - "type": "string" - }, - "discoveryEndpoint": { - "type": "string" - }, - "skipDiscovery": { - "type": "boolean" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "pkce": { - "default": true, - "type": "boolean" - }, - "mapping": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "image": { - "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - } - }, - "required": [ - "id", - "email", - "name" - ] - } - }, - "required": [ - "clientId", - "clientSecret" - ] - }, - "samlConfig": { - "type": "object", - "properties": { - "entryPoint": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "callbackUrl": { - "type": "string" - }, - "audience": { - "type": "string" - }, - "idpMetadata": { - "type": "object", - "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { - "type": "string" - }, - "singleSignOnService": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Binding": { - "type": "string" - }, - "Location": { - "type": "string" - } - }, - "required": [ - "Binding", - "Location" - ] - } - } - } - }, - "spMetadata": { - "type": "object", - "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "binding": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { - "type": "string" - } - } - }, - "wantAssertionsSigned": { - "type": "boolean" - }, - "authnRequestsSigned": { - "type": "boolean" - }, - "signatureAlgorithm": { - "type": "string" - }, - "digestAlgorithm": { - "type": "string" - }, - "identifierFormat": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "decryptionPvk": { - "type": "string" - }, - "additionalParams": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - }, - "mapping": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} - } - }, - "required": [ - "id", - "email", - "name" - ] - } - }, - "required": [ - "entryPoint", - "cert", - "callbackUrl", - "spMetadata" - ] - }, - "organizationId": { - "type": "string" - }, - "overrideUserInfo": { - "default": false, - "type": "boolean" - } - }, - "required": [ - "providerId", - "issuer", - "domains" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.addTrustedOrigin": { - "method": "POST", - "path": "/sso.addTrustedOrigin", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "origin": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "origin" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.removeTrustedOrigin": { - "method": "POST", - "path": "/sso.removeTrustedOrigin", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "origin": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "origin" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "sso.updateTrustedOrigin": { - "method": "POST", - "path": "/sso.updateTrustedOrigin", - "tag": "sso", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "oldOrigin": { - "type": "string", - "minLength": 1 - }, - "newOrigin": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "oldOrigin", - "newOrigin" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "whitelabeling.get": { - "method": "GET", - "path": "/whitelabeling.get", - "tag": "whitelabeling", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "whitelabeling.update": { - "method": "POST", - "path": "/whitelabeling.update", - "tag": "whitelabeling", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "whitelabelingConfig": { - "type": "object", - "properties": { - "appName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "appDescription": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "logoUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "faviconUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "customCss": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "loginLogoUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "supportUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "docsUrl": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "errorPageTitle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "errorPageDescription": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "metaTitle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "footerText": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "appName", - "appDescription", - "logoUrl", - "faviconUrl", - "customCss", - "loginLogoUrl", - "supportUrl", - "docsUrl", - "errorPageTitle", - "errorPageDescription", - "metaTitle", - "footerText" - ] - } - }, - "required": [ - "whitelabelingConfig" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "whitelabeling.reset": { - "method": "POST", - "path": "/whitelabeling.reset", - "tag": "whitelabeling", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "whitelabeling.getPublic": { - "method": "GET", - "path": "/whitelabeling.getPublic", - "tag": "whitelabeling", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.all": { - "method": "GET", - "path": "/customRole.all", - "tag": "customRole", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.create": { - "method": "POST", - "path": "/customRole.create", - "tag": "customRole", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "roleName": { - "type": "string", - "minLength": 1, - "maxLength": 50 - }, - "permissions": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "required": [ - "roleName", - "permissions" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.update": { - "method": "POST", - "path": "/customRole.update", - "tag": "customRole", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "roleName": { - "type": "string", - "minLength": 1 - }, - "newRoleName": { - "type": "string", - "minLength": 1, - "maxLength": 50 - }, - "permissions": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "required": [ - "roleName", - "permissions" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.remove": { - "method": "POST", - "path": "/customRole.remove", - "tag": "customRole", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "roleName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "roleName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.membersByRole": { - "method": "GET", - "path": "/customRole.membersByRole", - "tag": "customRole", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "roleName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "roleName" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "customRole.getStatements": { - "method": "GET", - "path": "/customRole.getStatements", - "tag": "customRole", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "auditLog.all": { - "method": "GET", - "path": "/auditLog.all", - "tag": "auditLog", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "userId": { - "type": "string" - }, - "userEmail": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "action": { - "type": "string", - "enum": [ - "create", - "update", - "delete", - "deploy", - "cancel", - "redeploy", - "login", - "logout" - ] - }, - "resourceType": { - "type": "string", - "enum": [ - "project", - "service", - "environment", - "deployment", - "user", - "customRole", - "domain", - "certificate", - "registry", - "server", - "sshKey", - "gitProvider", - "notification", - "settings", - "session" - ] - }, - "from": { - "type": "string" - }, - "to": { - "type": "string" - }, - "limit": { - "default": 50, - "type": "number", - "minimum": 1, - "maximum": 500 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.create": { - "method": "POST", - "path": "/schedule.create", - "tag": "schedule", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "scheduleId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "cronExpression": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "shellType": { - "type": "string", - "enum": [ - "bash", - "sh" - ] - }, - "scheduleType": { - "type": "string", - "enum": [ - "application", - "compose", - "server", - "dokploy-server" - ] - }, - "command": { - "type": "string" - }, - "script": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "userId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enabled": { - "type": "boolean" - }, - "timezone": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - } - }, - "required": [ - "name", - "cronExpression", - "command" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.update": { - "method": "POST", - "path": "/schedule.update", - "tag": "schedule", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "scheduleId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string" - }, - "cronExpression": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "shellType": { - "type": "string", - "enum": [ - "bash", - "sh" - ] - }, - "scheduleType": { - "type": "string", - "enum": [ - "application", - "compose", - "server", - "dokploy-server" - ] - }, - "command": { - "type": "string" - }, - "script": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serverId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "userId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "enabled": { - "type": "boolean" - }, - "timezone": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - } - }, - "required": [ - "scheduleId", - "name", - "cronExpression", - "command" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.delete": { - "method": "POST", - "path": "/schedule.delete", - "tag": "schedule", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "scheduleId": { - "type": "string" - } - }, - "required": [ - "scheduleId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.list": { - "method": "GET", - "path": "/schedule.list", - "tag": "schedule", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "scheduleType": { - "type": "string", - "enum": [ - "application", - "compose", - "server", - "dokploy-server" - ] - } - }, - "required": [ - "id", - "scheduleType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.one": { - "method": "GET", - "path": "/schedule.one", - "tag": "schedule", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "scheduleId": { - "type": "string" - } - }, - "required": [ - "scheduleId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "schedule.runManually": { - "method": "POST", - "path": "/schedule.runManually", - "tag": "schedule", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "scheduleId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "scheduleId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "rollback.delete": { - "method": "POST", - "path": "/rollback.delete", - "tag": "rollback", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "rollbackId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "rollbackId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "rollback.rollback": { - "method": "POST", - "path": "/rollback.rollback", - "tag": "rollback", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "rollbackId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "rollbackId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.list": { - "method": "GET", - "path": "/volumeBackups.list", - "tag": "volumeBackups", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "volumeBackupType": { - "type": "string", - "enum": [ - "application", - "postgres", - "mysql", - "mariadb", - "mongo", - "redis", - "compose", - "libsql" - ] - } - }, - "required": [ - "id", - "volumeBackupType" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.create": { - "method": "POST", - "path": "/volumeBackups.create", - "tag": "volumeBackups", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "volumeName": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "serviceType": { - "type": "string", - "enum": [ - "application", - "postgres", - "mysql", - "mariadb", - "mongo", - "redis", - "compose", - "libsql" - ] - }, - "appName": { - "type": "string" - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "turnOff": { - "type": "boolean" - }, - "cronExpression": { - "type": "string" - }, - "keepLatestCount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "postgresId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mariadbId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mongoId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mysqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "redisId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "libsqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - }, - "destinationId": { - "type": "string" - } - }, - "required": [ - "name", - "volumeName", - "prefix", - "cronExpression", - "destinationId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.one": { - "method": "GET", - "path": "/volumeBackups.one", - "tag": "volumeBackups", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "volumeBackupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "volumeBackupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.delete": { - "method": "POST", - "path": "/volumeBackups.delete", - "tag": "volumeBackups", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "volumeBackupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "volumeBackupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.update": { - "method": "POST", - "path": "/volumeBackups.update", - "tag": "volumeBackups", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "volumeName": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "serviceType": { - "type": "string", - "enum": [ - "application", - "postgres", - "mysql", - "mariadb", - "mongo", - "redis", - "compose", - "libsql" - ] - }, - "appName": { - "type": "string" - }, - "serviceName": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "turnOff": { - "type": "boolean" - }, - "cronExpression": { - "type": "string" - }, - "keepLatestCount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "enabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "postgresId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mariadbId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mongoId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "mysqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "redisId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "libsqlId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - }, - "destinationId": { - "type": "string" - }, - "volumeBackupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "name", - "volumeName", - "prefix", - "cronExpression", - "destinationId", - "volumeBackupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "volumeBackups.runManually": { - "method": "POST", - "path": "/volumeBackups.runManually", - "tag": "volumeBackups", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "volumeBackupId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "volumeBackupId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.create": { - "method": "POST", - "path": "/environment.create", - "tag": "environment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "name", - "projectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.one": { - "method": "GET", - "path": "/environment.one", - "tag": "environment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.byProjectId": { - "method": "GET", - "path": "/environment.byProjectId", - "tag": "environment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string" - } - }, - "required": [ - "projectId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.remove": { - "method": "POST", - "path": "/environment.remove", - "tag": "environment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.update": { - "method": "POST", - "path": "/environment.update", - "tag": "environment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "env": { - "type": "string" - } - }, - "required": [ - "environmentId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.duplicate": { - "method": "POST", - "path": "/environment.duplicate", - "tag": "environment", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "type": "string" - } - }, - "required": [ - "environmentId", - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "environment.search": { - "method": "GET", - "path": "/environment.search", - "tag": "environment", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "q": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "projectId": { - "type": "string" - }, - "limit": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - }, - "offset": { - "default": 0, - "type": "number", - "minimum": 0 - } - }, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.create": { - "method": "POST", - "path": "/tag.create", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "name" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.all": { - "method": "GET", - "path": "/tag.all", - "tag": "tag", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": {}, - "required": [] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.one": { - "method": "GET", - "path": "/tag.one", - "tag": "tag", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "tagId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "tagId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.update": { - "method": "POST", - "path": "/tag.update", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "tagId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "createdAt": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - }, - "required": [ - "tagId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.remove": { - "method": "POST", - "path": "/tag.remove", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "tagId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "tagId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.assignToProject": { - "method": "POST", - "path": "/tag.assignToProject", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - }, - "tagId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "projectId", - "tagId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.removeFromProject": { - "method": "POST", - "path": "/tag.removeFromProject", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - }, - "tagId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "projectId", - "tagId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "tag.bulkAssign": { - "method": "POST", - "path": "/tag.bulkAssign", - "tag": "tag", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "minLength": 1 - }, - "tagIds": { - "type": "array", - "items": { - "type": "string", - "minLength": 1 - } - } - }, - "required": [ - "projectId", - "tagIds" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.create": { - "method": "POST", - "path": "/patch.create", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "filePath": { - "type": "string", - "minLength": 1 - }, - "content": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "create", - "update", - "delete" - ] - }, - "enabled": { - "type": "boolean" - }, - "applicationId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "composeId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "filePath", - "content" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.one": { - "method": "GET", - "path": "/patch.one", - "tag": "patch", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "patchId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "patchId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.byEntityId": { - "method": "GET", - "path": "/patch.byEntityId", - "tag": "patch", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - } - }, - "required": [ - "id", - "type" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.update": { - "method": "POST", - "path": "/patch.update", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "patchId": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "create", - "update", - "delete" - ] - }, - "filePath": { - "type": "string", - "minLength": 1 - }, - "enabled": { - "type": "boolean" - }, - "content": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "updatedAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "patchId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.delete": { - "method": "POST", - "path": "/patch.delete", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "patchId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "patchId" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.toggleEnabled": { - "method": "POST", - "path": "/patch.toggleEnabled", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "patchId": { - "type": "string", - "minLength": 1 - }, - "enabled": { - "type": "boolean" - } - }, - "required": [ - "patchId", - "enabled" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.ensureRepo": { - "method": "POST", - "path": "/patch.ensureRepo", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - } - }, - "required": [ - "id", - "type" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.readRepoDirectories": { - "method": "GET", - "path": "/patch.readRepoDirectories", - "tag": "patch", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - }, - "repoPath": { - "type": "string" - } - }, - "required": [ - "id", - "type", - "repoPath" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.readRepoFile": { - "method": "GET", - "path": "/patch.readRepoFile", - "tag": "patch", - "inputKind": "query", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - }, - "filePath": { - "type": "string" - } - }, - "required": [ - "id", - "type", - "filePath" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.saveFileAsPatch": { - "method": "POST", - "path": "/patch.saveFileAsPatch", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - }, - "filePath": { - "type": "string" - }, - "content": { - "type": "string" - }, - "patchType": { - "default": "update", - "type": "string", - "enum": [ - "create", - "update" - ] - } - }, - "required": [ - "id", - "type", - "filePath", - "content" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.markFileForDeletion": { - "method": "POST", - "path": "/patch.markFileForDeletion", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "type": { - "type": "string", - "enum": [ - "application", - "compose" - ] - }, - "filePath": { - "type": "string" - } - }, - "required": [ - "id", - "type", - "filePath" - ] - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - }, - "patch.cleanPatchRepos": { - "method": "POST", - "path": "/patch.cleanPatchRepos", - "tag": "patch", - "inputKind": "body", - "inputSchema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - }, - "outputSchema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } -} +export const procedureSchemas = JSON.parse('{"admin.setupMonitoring":{"method":"POST","path":"/admin.setupMonitoring","tag":"admin","inputKind":"body","inputSchema":{"type":"object","properties":{"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.create":{"method":"POST","path":"/application.create","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.one":{"method":"GET","path":"/application.one","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.reload":{"method":"POST","path":"/application.reload","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"applicationId":{"type":"string"}},"required":["appName","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.delete":{"method":"POST","path":"/application.delete","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.stop":{"method":"POST","path":"/application.stop","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.start":{"method":"POST","path":"/application.start","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.redeploy":{"method":"POST","path":"/application.redeploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveEnvironment":{"method":"POST","path":"/application.saveEnvironment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"createEnvFile":{"type":"boolean"}},"required":["applicationId","env","buildArgs","buildSecrets","createEnvFile"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBuildType":{"method":"POST","path":"/application.saveBuildType","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["applicationId","buildType","dockerfile","dockerContextPath","dockerBuildStage","herokuVersion","railpackVersion"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGithubProvider":{"method":"POST","path":"/application.saveGithubProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"default":"push","type":"string","enum":["push","tag"]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","repository","branch","owner","buildPath","githubId","triggerType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitlabProvider":{"method":"POST","path":"/application.saveGitlabProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","gitlabBranch","gitlabBuildPath","gitlabOwner","gitlabRepository","gitlabId","gitlabProjectId","gitlabPathNamespace"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBitbucketProvider":{"method":"POST","path":"/application.saveBitbucketProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["bitbucketBranch","bitbucketBuildPath","bitbucketOwner","bitbucketRepository","bitbucketRepositorySlug","bitbucketId","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGiteaProvider":{"method":"POST","path":"/application.saveGiteaProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","giteaBranch","giteaBuildPath","giteaOwner","giteaRepository","giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveDockerProvider":{"method":"POST","path":"/application.saveDockerProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dockerImage","applicationId","username","password","registryUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitProvider":{"method":"POST","path":"/application.saveGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["customGitBranch","applicationId","customGitBuildPath","customGitUrl","watchPaths"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.disconnectGitProvider":{"method":"POST","path":"/application.disconnectGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.markRunning":{"method":"POST","path":"/application.markRunning","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.update":{"method":"POST","path":"/application.update","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewEnv":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewBuildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewBuildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLabels":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewWildcard":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"previewHttps":{"type":"boolean"},"previewPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewCertificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"previewCustomCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"isPreviewDeploymentsActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"previewRequireCollaboratorPermissions":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"rollbackActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"icon":{"anyOf":[{"anyOf":[{"type":"string","maxLength":2097152},{"type":"null"}]},{"type":"null"}]},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["github","docker","git","gitlab","bitbucket","gitea","drop"]},"cleanCache":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"dropBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createEnvFile":{"type":"boolean"},"createdAt":{"type":"string"},"registryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"rollbackRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildServerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.refreshToken":{"method":"POST","path":"/application.refreshToken","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.deploy":{"method":"POST","path":"/application.deploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cleanQueues":{"method":"POST","path":"/application.cleanQueues","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.clearDeployments":{"method":"POST","path":"/application.clearDeployments","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.killBuild":{"method":"POST","path":"/application.killBuild","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readTraefikConfig":{"method":"GET","path":"/application.readTraefikConfig","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.dropDeployment":{"method":"POST","path":"/application.dropDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.updateTraefikConfig":{"method":"POST","path":"/application.updateTraefikConfig","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"traefikConfig":{"type":"string"}},"required":["applicationId","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readAppMonitoring":{"method":"GET","path":"/application.readAppMonitoring","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.move":{"method":"POST","path":"/application.move","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["applicationId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cancelDeployment":{"method":"POST","path":"/application.cancelDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.search":{"method":"GET","path":"/application.search","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"repository":{"type":"string"},"owner":{"type":"string"},"dockerImage":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readLogs":{"method":"GET","path":"/application.readLogs","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.create":{"method":"POST","path":"/backup.create","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"destinationId":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"database":{"type":"string","minLength":1},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"backupType":{"type":"string","enum":["database","compose"]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]}},"required":["schedule","prefix","destinationId","database","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.one":{"method":"GET","path":"/backup.one","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.update":{"method":"POST","path":"/backup.update","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"backupId":{"type":"string"},"destinationId":{"type":"string"},"database":{"type":"string","minLength":1},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]}},"required":["schedule","enabled","prefix","backupId","destinationId","database","keepLatestCount","serviceName","metadata","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.remove":{"method":"POST","path":"/backup.remove","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string"}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupPostgres":{"method":"POST","path":"/backup.manualBackupPostgres","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMySql":{"method":"POST","path":"/backup.manualBackupMySql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMariadb":{"method":"POST","path":"/backup.manualBackupMariadb","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupCompose":{"method":"POST","path":"/backup.manualBackupCompose","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMongo":{"method":"POST","path":"/backup.manualBackupMongo","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupLibsql":{"method":"POST","path":"/backup.manualBackupLibsql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupWebServer":{"method":"POST","path":"/backup.manualBackupWebServer","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.listBackupFiles":{"method":"GET","path":"/backup.listBackupFiles","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"},"search":{"type":"string"},"serverId":{"type":"string"}},"required":["destinationId","search"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.create":{"method":"POST","path":"/bitbucket.create","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string"},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["authId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.one":{"method":"GET","path":"/bitbucket.one","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.bitbucketProviders":{"method":"GET","path":"/bitbucket.bitbucketProviders","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketRepositories":{"method":"GET","path":"/bitbucket.getBitbucketRepositories","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketBranches":{"method":"GET","path":"/bitbucket.getBitbucketBranches","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string"},"repo":{"type":"string"},"bitbucketId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.testConnection":{"method":"POST","path":"/bitbucket.testConnection","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"workspaceName":{"type":"string"},"apiToken":{"type":"string"},"appPassword":{"type":"string"}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.update":{"method":"POST","path":"/bitbucket.update","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"name":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["bitbucketId","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.create":{"method":"POST","path":"/certificates.create","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string"},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1},"certificatePath":{"type":"string"},"autoRenew":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"organizationId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","certificateData","privateKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.one":{"method":"GET","path":"/certificates.one","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.remove":{"method":"POST","path":"/certificates.remove","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.all":{"method":"GET","path":"/certificates.all","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.update":{"method":"POST","path":"/certificates.update","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.getNodes":{"method":"GET","path":"/cluster.getNodes","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.removeWorker":{"method":"POST","path":"/cluster.removeWorker","tag":"cluster","inputKind":"body","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addWorker":{"method":"GET","path":"/cluster.addWorker","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addManager":{"method":"GET","path":"/cluster.addManager","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.create":{"method":"POST","path":"/compose.create","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"composeType":{"type":"string","enum":["docker-compose","stack"]},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.one":{"method":"GET","path":"/compose.one","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.update":{"method":"POST","path":"/compose.update","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["git","github","gitlab","bitbucket","gitea","raw"]},"composeType":{"type":"string","enum":["docker-compose","stack"]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"type":"string"},"enableSubmodules":{"type":"boolean"},"composePath":{"type":"string","minLength":1},"suffix":{"type":"string"},"randomize":{"type":"boolean"},"isolatedDeployment":{"type":"boolean"},"isolatedDeploymentsVolume":{"type":"boolean"},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"composeStatus":{"type":"string","enum":["idle","running","done","error"]},"environmentId":{"type":"string"},"createdAt":{"type":"string"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.saveEnvironment":{"method":"POST","path":"/compose.saveEnvironment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.delete":{"method":"POST","path":"/compose.delete","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"deleteVolumes":{"type":"boolean"}},"required":["composeId","deleteVolumes"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cleanQueues":{"method":"POST","path":"/compose.cleanQueues","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.clearDeployments":{"method":"POST","path":"/compose.clearDeployments","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.killBuild":{"method":"POST","path":"/compose.killBuild","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadServices":{"method":"GET","path":"/compose.loadServices","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"type":{"default":"cache","type":"string","enum":["fetch","cache"]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadMountsByService":{"method":"GET","path":"/compose.loadMountsByService","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"serviceName":{"type":"string","minLength":1}},"required":["composeId","serviceName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.fetchSourceType":{"method":"POST","path":"/compose.fetchSourceType","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.randomizeCompose":{"method":"POST","path":"/compose.randomizeCompose","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.isolatedDeployment":{"method":"POST","path":"/compose.isolatedDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getConvertedCompose":{"method":"GET","path":"/compose.getConvertedCompose","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deploy":{"method":"POST","path":"/compose.deploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.redeploy":{"method":"POST","path":"/compose.redeploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.stop":{"method":"POST","path":"/compose.stop","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.start":{"method":"POST","path":"/compose.start","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getDefaultCommand":{"method":"GET","path":"/compose.getDefaultCommand","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.refreshToken":{"method":"POST","path":"/compose.refreshToken","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deployTemplate":{"method":"POST","path":"/compose.deployTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string"},"serverId":{"type":"string"},"id":{"type":"string"},"baseUrl":{"type":"string"}},"required":["environmentId","id"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.templates":{"method":"GET","path":"/compose.templates","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getTags":{"method":"GET","path":"/compose.getTags","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.disconnectGitProvider":{"method":"POST","path":"/compose.disconnectGitProvider","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.move":{"method":"POST","path":"/compose.move","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["composeId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.processTemplate":{"method":"POST","path":"/compose.processTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.import":{"method":"POST","path":"/compose.import","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cancelDeployment":{"method":"POST","path":"/compose.cancelDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.search":{"method":"GET","path":"/compose.search","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.readLogs":{"method":"GET","path":"/compose.readLogs","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["composeId","containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.all":{"method":"GET","path":"/deployment.all","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByCompose":{"method":"GET","path":"/deployment.allByCompose","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByServer":{"method":"GET","path":"/deployment.allByServer","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allCentralized":{"method":"GET","path":"/deployment.allCentralized","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.queueList":{"method":"GET","path":"/deployment.queueList","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByType":{"method":"GET","path":"/deployment.allByType","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose","server","schedule","previewDeployment","backup","volumeBackup"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.killProcess":{"method":"POST","path":"/deployment.killProcess","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.removeDeployment":{"method":"POST","path":"/deployment.removeDeployment","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.create":{"method":"POST","path":"/destination.create","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.testConnection":{"method":"POST","path":"/destination.testConnection","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.one":{"method":"GET","path":"/destination.one","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string","minLength":1}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.all":{"method":"GET","path":"/destination.all","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.remove":{"method":"POST","path":"/destination.remove","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.update":{"method":"POST","path":"/destination.update","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"destinationId":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","accessKey","bucket","region","endpoint","secretAccessKey","destinationId","provider","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainers":{"method":"GET","path":"/docker.getContainers","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.restartContainer":{"method":"POST","path":"/docker.restartContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.startContainer":{"method":"POST","path":"/docker.startContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.stopContainer":{"method":"POST","path":"/docker.stopContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.killContainer":{"method":"POST","path":"/docker.killContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.removeContainer":{"method":"POST","path":"/docker.removeContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getConfig":{"method":"GET","path":"/docker.getConfig","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppNameMatch":{"method":"GET","path":"/docker.getContainersByAppNameMatch","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appType":{"type":"string","enum":["stack","docker-compose"]},"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppLabel":{"method":"GET","path":"/docker.getContainersByAppLabel","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"},"type":{"type":"string","enum":["standalone","swarm"]}},"required":["appName","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getStackContainersByAppName":{"method":"GET","path":"/docker.getStackContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getServiceContainersByAppName":{"method":"GET","path":"/docker.getServiceContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.uploadFileToContainer":{"method":"POST","path":"/docker.uploadFileToContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.create":{"method":"POST","path":"/domain.create","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"previewDeploymentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["host"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byApplicationId":{"method":"GET","path":"/domain.byApplicationId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byComposeId":{"method":"GET","path":"/domain.byComposeId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.generateDomain":{"method":"POST","path":"/domain.generateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.canGenerateTraefikMeDomains":{"method":"GET","path":"/domain.canGenerateTraefikMeDomains","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.update":{"method":"POST","path":"/domain.update","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"domainId":{"type":"string"}},"required":["host","domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.one":{"method":"GET","path":"/domain.one","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.delete":{"method":"POST","path":"/domain.delete","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.validateDomain":{"method":"POST","path":"/domain.validateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domain":{"type":"string"},"serverIp":{"type":"string"}},"required":["domain"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.create":{"method":"POST","path":"/gitea.create","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaUrl","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.one":{"method":"GET","path":"/gitea.one","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.giteaProviders":{"method":"GET","path":"/gitea.giteaProviders","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaRepositories":{"method":"GET","path":"/gitea.getGiteaRepositories","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaBranches":{"method":"GET","path":"/gitea.getGiteaBranches","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string","minLength":1},"repositoryName":{"type":"string","minLength":1},"giteaId":{"type":"string"}},"required":["owner","repositoryName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.testConnection":{"method":"POST","path":"/gitea.testConnection","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"organizationName":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.update":{"method":"POST","path":"/gitea.update","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaId","giteaUrl","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaUrl":{"method":"GET","path":"/gitea.getGiteaUrl","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.getAll":{"method":"GET","path":"/gitProvider.getAll","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.toggleShare":{"method":"POST","path":"/gitProvider.toggleShare","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1},"sharedWithOrganization":{"type":"boolean"}},"required":["gitProviderId","sharedWithOrganization"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.allForPermissions":{"method":"GET","path":"/gitProvider.allForPermissions","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.remove":{"method":"POST","path":"/gitProvider.remove","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1}},"required":["gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.one":{"method":"GET","path":"/github.one","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubRepositories":{"method":"GET","path":"/github.getGithubRepositories","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubBranches":{"method":"GET","path":"/github.getGithubBranches","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"repo":{"type":"string","minLength":1},"owner":{"type":"string","minLength":1},"githubId":{"type":"string"}},"required":["repo","owner"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.githubProviders":{"method":"GET","path":"/github.githubProviders","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.testConnection":{"method":"POST","path":"/github.testConnection","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.update":{"method":"POST","path":"/github.update","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"githubAppName":{"type":"string","minLength":1}},"required":["githubId","name","gitProviderId","githubAppName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.create":{"method":"POST","path":"/gitlab.create","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"gitProviderId":{"type":"string"},"redirectUri":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["authId","name","gitlabUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.one":{"method":"GET","path":"/gitlab.one","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.gitlabProviders":{"method":"GET","path":"/gitlab.gitlabProviders","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabRepositories":{"method":"GET","path":"/gitlab.getGitlabRepositories","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabBranches":{"method":"GET","path":"/gitlab.getGitlabBranches","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"number"},"owner":{"type":"string"},"repo":{"type":"string"},"gitlabId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.testConnection":{"method":"POST","path":"/gitlab.testConnection","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1},"groupName":{"type":"string"}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.update":{"method":"POST","path":"/gitlab.update","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"redirectUri":{"type":"string"},"name":{"type":"string","minLength":1},"gitlabId":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","gitlabId","gitlabUrl","gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.create":{"method":"POST","path":"/libsql.create","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","appName","dockerImage","environmentId","description","databaseUser","databasePassword","sqldNode","sqldPrimaryUrl","enableNamespaces","serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.one":{"method":"GET","path":"/libsql.one","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.start":{"method":"POST","path":"/libsql.start","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.stop":{"method":"POST","path":"/libsql.stop","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveExternalPorts":{"method":"POST","path":"/libsql.saveExternalPorts","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.deploy":{"method":"POST","path":"/libsql.deploy","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.changeStatus":{"method":"POST","path":"/libsql.changeStatus","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["libsqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.remove":{"method":"POST","path":"/libsql.remove","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveEnvironment":{"method":"POST","path":"/libsql.saveEnvironment","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["libsqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.reload":{"method":"POST","path":"/libsql.reload","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"appName":{"type":"string","minLength":1}},"required":["libsqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.update":{"method":"POST","path":"/libsql.update","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.move":{"method":"POST","path":"/libsql.move","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["libsqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.rebuild":{"method":"POST","path":"/libsql.rebuild","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.readLogs":{"method":"GET","path":"/libsql.readLogs","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.create":{"method":"POST","path":"/mariadb.create","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mariadb:6","type":"string"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.one":{"method":"GET","path":"/mariadb.one","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.start":{"method":"POST","path":"/mariadb.start","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.stop":{"method":"POST","path":"/mariadb.stop","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveExternalPort":{"method":"POST","path":"/mariadb.saveExternalPort","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mariadbId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.deploy":{"method":"POST","path":"/mariadb.deploy","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changeStatus":{"method":"POST","path":"/mariadb.changeStatus","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mariadbId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.remove":{"method":"POST","path":"/mariadb.remove","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveEnvironment":{"method":"POST","path":"/mariadb.saveEnvironment","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mariadbId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.reload":{"method":"POST","path":"/mariadb.reload","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mariadbId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.update":{"method":"POST","path":"/mariadb.update","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changePassword":{"method":"POST","path":"/mariadb.changePassword","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mariadbId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.move":{"method":"POST","path":"/mariadb.move","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mariadbId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.rebuild":{"method":"POST","path":"/mariadb.rebuild","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.search":{"method":"GET","path":"/mariadb.search","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.readLogs":{"method":"GET","path":"/mariadb.readLogs","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.create":{"method":"POST","path":"/mongo.create","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mongo:15","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["name","environmentId","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.one":{"method":"GET","path":"/mongo.one","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.start":{"method":"POST","path":"/mongo.start","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.stop":{"method":"POST","path":"/mongo.stop","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveExternalPort":{"method":"POST","path":"/mongo.saveExternalPort","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mongoId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.deploy":{"method":"POST","path":"/mongo.deploy","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changeStatus":{"method":"POST","path":"/mongo.changeStatus","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mongoId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.reload":{"method":"POST","path":"/mongo.reload","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mongoId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.remove":{"method":"POST","path":"/mongo.remove","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveEnvironment":{"method":"POST","path":"/mongo.saveEnvironment","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mongoId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.update":{"method":"POST","path":"/mongo.update","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changePassword":{"method":"POST","path":"/mongo.changePassword","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["mongoId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.move":{"method":"POST","path":"/mongo.move","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mongoId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.rebuild":{"method":"POST","path":"/mongo.rebuild","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.search":{"method":"GET","path":"/mongo.search","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.readLogs":{"method":"GET","path":"/mongo.readLogs","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.create":{"method":"POST","path":"/mounts.create","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"mountPath":{"type":"string","minLength":1},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"serviceId":{"type":"string","minLength":1}},"required":["type","mountPath","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.remove":{"method":"POST","path":"/mounts.remove","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string"}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.one":{"method":"GET","path":"/mounts.one","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.update":{"method":"POST","path":"/mounts.update","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1},"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"mountPath":{"type":"string","minLength":1},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.allNamedByApplicationId":{"method":"GET","path":"/mounts.allNamedByApplicationId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.listByServiceId":{"method":"GET","path":"/mounts.listByServiceId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"serviceType":{"type":"string","minLength":1},"serviceId":{"type":"string","minLength":1}},"required":["serviceType","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.create":{"method":"POST","path":"/mysql.create","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mysql:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.one":{"method":"GET","path":"/mysql.one","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.start":{"method":"POST","path":"/mysql.start","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.stop":{"method":"POST","path":"/mysql.stop","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveExternalPort":{"method":"POST","path":"/mysql.saveExternalPort","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mysqlId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.deploy":{"method":"POST","path":"/mysql.deploy","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changeStatus":{"method":"POST","path":"/mysql.changeStatus","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mysqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.reload":{"method":"POST","path":"/mysql.reload","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mysqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.remove":{"method":"POST","path":"/mysql.remove","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveEnvironment":{"method":"POST","path":"/mysql.saveEnvironment","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mysqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.update":{"method":"POST","path":"/mysql.update","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changePassword":{"method":"POST","path":"/mysql.changePassword","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mysqlId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.move":{"method":"POST","path":"/mysql.move","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mysqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.rebuild":{"method":"POST","path":"/mysql.rebuild","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.search":{"method":"GET","path":"/mysql.search","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.readLogs":{"method":"GET","path":"/mysql.readLogs","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createSlack":{"method":"POST","path":"/notification.createSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateSlack":{"method":"POST","path":"/notification.updateSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"},"notificationId":{"type":"string","minLength":1},"slackId":{"type":"string"},"organizationId":{"type":"string"}},"required":["notificationId","slackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testSlackConnection":{"method":"POST","path":"/notification.testSlackConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTelegram":{"method":"POST","path":"/notification.createTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTelegram":{"method":"POST","path":"/notification.updateTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"},"notificationId":{"type":"string","minLength":1},"telegramId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","telegramId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTelegramConnection":{"method":"POST","path":"/notification.testTelegramConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createDiscord":{"method":"POST","path":"/notification.createDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateDiscord":{"method":"POST","path":"/notification.updateDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"discordId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","discordId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testDiscordConnection":{"method":"POST","path":"/notification.testDiscordConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createEmail":{"method":"POST","path":"/notification.createEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","smtpServer","smtpPort","username","password","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateEmail":{"method":"POST","path":"/notification.updateEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"emailId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","emailId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testEmailConnection":{"method":"POST","path":"/notification.testEmailConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"fromAddress":{"type":"string","minLength":1}},"required":["smtpServer","smtpPort","username","password","toAddresses","fromAddress"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createResend":{"method":"POST","path":"/notification.createResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateResend":{"method":"POST","path":"/notification.updateResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"resendId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","resendId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testResendConnection":{"method":"POST","path":"/notification.testResendConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.remove":{"method":"POST","path":"/notification.remove","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.one":{"method":"GET","path":"/notification.one","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.all":{"method":"GET","path":"/notification.all","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.receiveNotification":{"method":"POST","path":"/notification.receiveNotification","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"ServerType":{"default":"Dokploy","type":"string","enum":["Dokploy","Remote"]},"Type":{"type":"string","enum":["Memory","CPU"]},"Value":{"type":"number"},"Threshold":{"type":"number"},"Message":{"type":"string"},"Timestamp":{"type":"string"},"Token":{"type":"string"}},"required":["Type","Value","Threshold","Message","Timestamp","Token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createGotify":{"method":"POST","path":"/notification.createGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","appToken","priority","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateGotify":{"method":"POST","path":"/notification.updateGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"gotifyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","gotifyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testGotifyConnection":{"method":"POST","path":"/notification.testGotifyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["serverUrl","appToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createNtfy":{"method":"POST","path":"/notification.createNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateNtfy":{"method":"POST","path":"/notification.updateNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1},"notificationId":{"type":"string","minLength":1},"ntfyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","ntfyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testNtfyConnection":{"method":"POST","path":"/notification.testNtfyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createMattermost":{"method":"POST","path":"/notification.createMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateMattermost":{"method":"POST","path":"/notification.updateMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"},"notificationId":{"type":"string","minLength":1},"mattermostId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","mattermostId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testMattermostConnection":{"method":"POST","path":"/notification.testMattermostConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createCustom":{"method":"POST","path":"/notification.createCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["name","endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateCustom":{"method":"POST","path":"/notification.updateCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"customId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","customId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testCustomConnection":{"method":"POST","path":"/notification.testCustomConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createLark":{"method":"POST","path":"/notification.createLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateLark":{"method":"POST","path":"/notification.updateLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"larkId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","larkId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testLarkConnection":{"method":"POST","path":"/notification.testLarkConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTeams":{"method":"POST","path":"/notification.createTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTeams":{"method":"POST","path":"/notification.updateTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"teamsId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","teamsId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTeamsConnection":{"method":"POST","path":"/notification.testTeamsConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createPushover":{"method":"POST","path":"/notification.createPushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"default":0,"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["name","userKey","apiToken"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updatePushover":{"method":"POST","path":"/notification.updatePushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1},"pushoverId":{"type":"string","minLength":1},"organizationId":{"type":"string"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]},"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"}},"required":["notificationId","pushoverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testPushoverConnection":{"method":"POST","path":"/notification.testPushoverConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["userKey","apiToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.getEmailProviders":{"method":"GET","path":"/notification.getEmailProviders","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.create":{"method":"POST","path":"/port.create","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]},"applicationId":{"type":"string","minLength":1}},"required":["publishedPort","publishMode","targetPort","protocol","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.one":{"method":"GET","path":"/port.one","tag":"port","inputKind":"query","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.delete":{"method":"POST","path":"/port.delete","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.update":{"method":"POST","path":"/port.update","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1},"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]}},"required":["portId","publishedPort","publishMode","targetPort","protocol"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.create":{"method":"POST","path":"/postgres.create","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"default":"postgres:18","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databaseName","databaseUser","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.one":{"method":"GET","path":"/postgres.one","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.start":{"method":"POST","path":"/postgres.start","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.stop":{"method":"POST","path":"/postgres.stop","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveExternalPort":{"method":"POST","path":"/postgres.saveExternalPort","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["postgresId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.deploy":{"method":"POST","path":"/postgres.deploy","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changeStatus":{"method":"POST","path":"/postgres.changeStatus","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["postgresId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.remove":{"method":"POST","path":"/postgres.remove","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveEnvironment":{"method":"POST","path":"/postgres.saveEnvironment","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["postgresId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.reload":{"method":"POST","path":"/postgres.reload","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["postgresId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.update":{"method":"POST","path":"/postgres.update","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changePassword":{"method":"POST","path":"/postgres.changePassword","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["postgresId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.move":{"method":"POST","path":"/postgres.move","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["postgresId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.rebuild":{"method":"POST","path":"/postgres.rebuild","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.search":{"method":"GET","path":"/postgres.search","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.readLogs":{"method":"GET","path":"/postgres.readLogs","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.all":{"method":"GET","path":"/previewDeployment.all","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.one":{"method":"GET","path":"/previewDeployment.one","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.delete":{"method":"POST","path":"/previewDeployment.delete","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.redeploy":{"method":"POST","path":"/previewDeployment.redeploy","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.create":{"method":"POST","path":"/project.create","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.one":{"method":"GET","path":"/project.one","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.all":{"method":"GET","path":"/project.all","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.allForPermissions":{"method":"GET","path":"/project.allForPermissions","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.homeStats":{"method":"GET","path":"/project.homeStats","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.search":{"method":"GET","path":"/project.search","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.remove":{"method":"POST","path":"/project.remove","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.update":{"method":"POST","path":"/project.update","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"},"env":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.duplicate":{"method":"POST","path":"/project.duplicate","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"sourceEnvironmentId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"includeServices":{"default":true,"type":"boolean"},"selectedServices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose","libsql","mariadb","mongo","mysql","postgres","redis"]}},"required":["id","type"]}},"duplicateInSameProject":{"default":false,"type":"boolean"}},"required":["sourceEnvironmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.create":{"method":"POST","path":"/redirects.create","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"},"applicationId":{"type":"string"}},"required":["regex","replacement","permanent","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.one":{"method":"GET","path":"/redirects.one","tag":"redirects","inputKind":"query","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.delete":{"method":"POST","path":"/redirects.delete","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.update":{"method":"POST","path":"/redirects.update","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1},"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"}},"required":["redirectId","regex","replacement","permanent"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.create":{"method":"POST","path":"/redis.create","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databasePassword":{"type":"string"},"dockerImage":{"default":"redis:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.one":{"method":"GET","path":"/redis.one","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.start":{"method":"POST","path":"/redis.start","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.reload":{"method":"POST","path":"/redis.reload","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["redisId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.stop":{"method":"POST","path":"/redis.stop","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveExternalPort":{"method":"POST","path":"/redis.saveExternalPort","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["redisId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.deploy":{"method":"POST","path":"/redis.deploy","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changeStatus":{"method":"POST","path":"/redis.changeStatus","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["redisId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.remove":{"method":"POST","path":"/redis.remove","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveEnvironment":{"method":"POST","path":"/redis.saveEnvironment","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["redisId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.update":{"method":"POST","path":"/redis.update","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databasePassword":{"type":"string"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"environmentId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changePassword":{"method":"POST","path":"/redis.changePassword","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["redisId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.move":{"method":"POST","path":"/redis.move","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["redisId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.rebuild":{"method":"POST","path":"/redis.rebuild","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.search":{"method":"GET","path":"/redis.search","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.readLogs":{"method":"GET","path":"/redis.readLogs","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.create":{"method":"POST","path":"/registry.create","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["registryName","username","password","registryUrl","registryType","imagePrefix"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.remove":{"method":"POST","path":"/registry.remove","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.update":{"method":"POST","path":"/registry.update","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"registryName":{"type":"string","minLength":1},"imagePrefix":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"createdAt":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"organizationId":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.all":{"method":"GET","path":"/registry.all","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.one":{"method":"GET","path":"/registry.one","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistry":{"method":"POST","path":"/registry.testRegistry","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["username","password","registryUrl","registryType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistryById":{"method":"POST","path":"/registry.testRegistryById","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.create":{"method":"POST","path":"/security.create","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["applicationId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.one":{"method":"GET","path":"/security.one","tag":"security","inputKind":"query","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.delete":{"method":"POST","path":"/security.delete","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.update":{"method":"POST","path":"/security.update","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["securityId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.create":{"method":"POST","path":"/server.create","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]}},"required":["name","description","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.one":{"method":"GET","path":"/server.one","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getDefaultCommand":{"method":"GET","path":"/server.getDefaultCommand","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.all":{"method":"GET","path":"/server.all","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.allForPermissions":{"method":"GET","path":"/server.allForPermissions","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.count":{"method":"GET","path":"/server.count","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.withSSHKey":{"method":"GET","path":"/server.withSSHKey","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.buildServers":{"method":"GET","path":"/server.buildServers","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setup":{"method":"POST","path":"/server.setup","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.validate":{"method":"GET","path":"/server.validate","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.security":{"method":"GET","path":"/server.security","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setupMonitoring":{"method":"POST","path":"/server.setupMonitoring","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1},"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["serverId","metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.remove":{"method":"POST","path":"/server.remove","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.update":{"method":"POST","path":"/server.update","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string","minLength":1},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]},"command":{"type":"string"}},"required":["name","description","serverId","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.publicIp":{"method":"GET","path":"/server.publicIp","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerTime":{"method":"GET","path":"/server.getServerTime","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerMetrics":{"method":"GET","path":"/server.getServerMetrics","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getWebServerSettings":{"method":"GET","path":"/settings.getWebServerSettings","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadServer":{"method":"POST","path":"/settings.reloadServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanRedis":{"method":"POST","path":"/settings.cleanRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadRedis":{"method":"POST","path":"/settings.reloadRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAllDeploymentQueue":{"method":"POST","path":"/settings.cleanAllDeploymentQueue","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadTraefik":{"method":"POST","path":"/settings.reloadTraefik","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleDashboard":{"method":"POST","path":"/settings.toggleDashboard","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDashboard":{"type":"boolean"},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedImages":{"method":"POST","path":"/settings.cleanUnusedImages","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedVolumes":{"method":"POST","path":"/settings.cleanUnusedVolumes","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanStoppedContainers":{"method":"POST","path":"/settings.cleanStoppedContainers","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerBuilder":{"method":"POST","path":"/settings.cleanDockerBuilder","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerPrune":{"method":"POST","path":"/settings.cleanDockerPrune","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAll":{"method":"POST","path":"/settings.cleanAll","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanMonitoring":{"method":"POST","path":"/settings.cleanMonitoring","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDockerDiskUsage":{"method":"GET","path":"/settings.getDockerDiskUsage","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.saveSSHPrivateKey":{"method":"POST","path":"/settings.saveSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"sshPrivateKey":{"type":"string"}},"required":["sshPrivateKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.assignDomainServer":{"method":"POST","path":"/settings.assignDomainServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"letsEncryptEmail":{"anyOf":[{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},{"type":"string","const":""}]},{"type":"null"}]},"https":{"type":"boolean"}},"required":["host","certificateType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanSSHPrivateKey":{"method":"POST","path":"/settings.cleanSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateDockerCleanup":{"method":"POST","path":"/settings.updateDockerCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDockerCleanup":{"type":"boolean"},"serverId":{"type":"string"}},"required":["enableDockerCleanup"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikConfig":{"method":"GET","path":"/settings.readTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikConfig":{"method":"POST","path":"/settings.updateTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readWebServerTraefikConfig":{"method":"GET","path":"/settings.readWebServerTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateWebServerTraefikConfig":{"method":"POST","path":"/settings.updateWebServerTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readMiddlewareTraefikConfig":{"method":"GET","path":"/settings.readMiddlewareTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateMiddlewareTraefikConfig":{"method":"POST","path":"/settings.updateMiddlewareTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getUpdateData":{"method":"POST","path":"/settings.getUpdateData","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServer":{"method":"POST","path":"/settings.updateServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployVersion":{"method":"GET","path":"/settings.getDokployVersion","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getReleaseTag":{"method":"GET","path":"/settings.getReleaseTag","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readDirectories":{"method":"GET","path":"/settings.readDirectories","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikFile":{"method":"POST","path":"/settings.updateTraefikFile","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"traefikConfig":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikFile":{"method":"GET","path":"/settings.readTraefikFile","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getIp":{"method":"GET","path":"/settings.getIp","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServerIp":{"method":"POST","path":"/settings.updateServerIp","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverIp":{"type":"string"}},"required":["serverIp"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getOpenApiDocument":{"method":"GET","path":"/settings.getOpenApiDocument","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikEnv":{"method":"GET","path":"/settings.readTraefikEnv","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.writeTraefikEnv":{"method":"POST","path":"/settings.writeTraefikEnv","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"env":{"type":"string"},"serverId":{"type":"string"}},"required":["env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveTraefikDashboardPortEnabled":{"method":"GET","path":"/settings.haveTraefikDashboardPortEnabled","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveActivateRequests":{"method":"GET","path":"/settings.haveActivateRequests","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleRequests":{"method":"POST","path":"/settings.toggleRequests","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enable":{"type":"boolean"}},"required":["enable"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isCloud":{"method":"GET","path":"/settings.isCloud","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isUserSubscribed":{"method":"GET","path":"/settings.isUserSubscribed","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.health":{"method":"GET","path":"/settings.health","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkInfrastructureHealth":{"method":"GET","path":"/settings.checkInfrastructureHealth","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.setupGPU":{"method":"POST","path":"/settings.setupGPU","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkGPUStatus":{"method":"GET","path":"/settings.checkGPUStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikPorts":{"method":"POST","path":"/settings.updateTraefikPorts","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"},"additionalPorts":{"type":"array","items":{"type":"object","properties":{"targetPort":{"type":"number"},"publishedPort":{"type":"number"},"protocol":{"type":"string","enum":["tcp","udp","sctp"]}},"required":["targetPort","publishedPort","protocol"]}}},"required":["additionalPorts"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getTraefikPorts":{"method":"GET","path":"/settings.getTraefikPorts","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateLogCleanup":{"method":"POST","path":"/settings.updateLogCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"cronExpression":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["cronExpression"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getLogCleanupStatus":{"method":"GET","path":"/settings.getLogCleanupStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployCloudIps":{"method":"GET","path":"/settings.getDokployCloudIps","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.create":{"method":"POST","path":"/sshKey.create","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"privateKey":{"type":"string"},"publicKey":{"type":"string"},"organizationId":{"type":"string"}},"required":["name","privateKey","publicKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.remove":{"method":"POST","path":"/sshKey.remove","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.one":{"method":"GET","path":"/sshKey.one","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string","minLength":1}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.all":{"method":"GET","path":"/sshKey.all","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.allForApps":{"method":"GET","path":"/sshKey.allForApps","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.generate":{"method":"POST","path":"/sshKey.generate","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["rsa","ed25519"]}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.update":{"method":"POST","path":"/sshKey.update","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getCurrentPlan":{"method":"GET","path":"/stripe.getCurrentPlan","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getProducts":{"method":"GET","path":"/stripe.getProducts","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCheckoutSession":{"method":"POST","path":"/stripe.createCheckoutSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["legacy","hobby","startup"]},"productId":{"type":"string"},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","productId","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCustomerPortalSession":{"method":"POST","path":"/stripe.createCustomerPortalSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.upgradeSubscription":{"method":"POST","path":"/stripe.upgradeSubscription","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["hobby","startup"]},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.canCreateMoreServers":{"method":"GET","path":"/stripe.canCreateMoreServers","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.updateInvoiceNotifications":{"method":"POST","path":"/stripe.updateInvoiceNotifications","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getInvoices":{"method":"GET","path":"/stripe.getInvoices","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodes":{"method":"GET","path":"/swarm.getNodes","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeInfo":{"method":"GET","path":"/swarm.getNodeInfo","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeApps":{"method":"GET","path":"/swarm.getNodeApps","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getContainerStats":{"method":"GET","path":"/swarm.getContainerStats","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.all":{"method":"GET","path":"/user.all","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.one":{"method":"GET","path":"/user.one","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.session":{"method":"GET","path":"/user.session","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.get":{"method":"GET","path":"/user.get","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getPermissions":{"method":"GET","path":"/user.getPermissions","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.haveRootAccess":{"method":"GET","path":"/user.haveRootAccess","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBackups":{"method":"GET","path":"/user.getBackups","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getServerMetrics":{"method":"GET","path":"/user.getServerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.update":{"method":"POST","path":"/user.update","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"firstName":{"type":"string"},"lastName":{"type":"string"},"isRegistered":{"type":"boolean"},"expirationDate":{"type":"string"},"createdAt2":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"twoFactorEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"email":{"type":"string","minLength":1,"format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"emailVerified":{"type":"boolean"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"banned":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"banReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"banExpires":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"},"enablePaidFeatures":{"type":"boolean"},"allowImpersonation":{"type":"boolean"},"enableEnterpriseFeatures":{"type":"boolean"},"licenseKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeCustomerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeSubscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serversQuantity":{"type":"number"},"sendInvoiceNotifications":{"type":"boolean"},"password":{"type":"string"},"currentPassword":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getUserByToken":{"method":"GET","path":"/user.getUserByToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getMetricsToken":{"method":"GET","path":"/user.getMetricsToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.remove":{"method":"POST","path":"/user.remove","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.assignPermissions":{"method":"POST","path":"/user.assignPermissions","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"accessedProjects":{"type":"array","items":{"type":"string"}},"accessedEnvironments":{"type":"array","items":{"type":"string"}},"accessedServices":{"type":"array","items":{"type":"string"}},"accessedGitProviders":{"type":"array","items":{"type":"string"}},"accessedServers":{"type":"array","items":{"type":"string"}},"canCreateProjects":{"type":"boolean"},"canCreateServices":{"type":"boolean"},"canDeleteProjects":{"type":"boolean"},"canDeleteServices":{"type":"boolean"},"canAccessToDocker":{"type":"boolean"},"canAccessToTraefikFiles":{"type":"boolean"},"canAccessToAPI":{"type":"boolean"},"canAccessToSSHKeys":{"type":"boolean"},"canAccessToGitProviders":{"type":"boolean"},"canDeleteEnvironments":{"type":"boolean"},"canCreateEnvironments":{"type":"boolean"}},"required":["id","accessedProjects","accessedEnvironments","accessedServices","accessedGitProviders","accessedServers","canCreateProjects","canCreateServices","canDeleteProjects","canDeleteServices","canAccessToDocker","canAccessToTraefikFiles","canAccessToAPI","canAccessToSSHKeys","canAccessToGitProviders","canDeleteEnvironments","canCreateEnvironments"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getInvitations":{"method":"GET","path":"/user.getInvitations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getContainerMetrics":{"method":"GET","path":"/user.getContainerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"appName":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","appName","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.generateToken":{"method":"POST","path":"/user.generateToken","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.deleteApiKey":{"method":"POST","path":"/user.deleteApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKeyId":{"type":"string"}},"required":["apiKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createApiKey":{"method":"POST","path":"/user.createApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"prefix":{"type":"string"},"expiresIn":{"type":"number"},"metadata":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"rateLimitEnabled":{"type":"boolean"},"rateLimitTimeWindow":{"type":"number"},"rateLimitMax":{"type":"number"},"remaining":{"type":"number"},"refillAmount":{"type":"number"},"refillInterval":{"type":"number"}},"required":["name","metadata"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.checkUserOrganizations":{"method":"GET","path":"/user.checkUserOrganizations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createUserWithCredentials":{"method":"POST","path":"/user.createUserWithCredentials","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8},"role":{"type":"string","minLength":1}},"required":["email","password","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.sendInvitation":{"method":"POST","path":"/user.sendInvitation","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1}},"required":["invitationId","notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBookmarkedTemplates":{"method":"GET","path":"/user.getBookmarkedTemplates","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.toggleTemplateBookmark":{"method":"POST","path":"/user.toggleTemplateBookmark","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"templateId":{"type":"string","minLength":1}},"required":["templateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.one":{"method":"GET","path":"/ai.one","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getModels":{"method":"GET","path":"/ai.getModels","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"}},"required":["apiUrl","apiKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.create":{"method":"POST","path":"/ai.create","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"}},"required":["name","apiUrl","apiKey","model","isEnabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.update":{"method":"POST","path":"/ai.update","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getAll":{"method":"GET","path":"/ai.getAll","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.get":{"method":"GET","path":"/ai.get","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.delete":{"method":"POST","path":"/ai.delete","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getEnabledProviders":{"method":"GET","path":"/ai.getEnabledProviders","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.analyzeLogs":{"method":"POST","path":"/ai.analyzeLogs","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"logs":{"type":"string","minLength":1},"context":{"type":"string","enum":["build","runtime"]}},"required":["aiId","logs","context"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.testConnection":{"method":"POST","path":"/ai.testConnection","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1}},"required":["apiUrl","apiKey","model"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.suggest":{"method":"POST","path":"/ai.suggest","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"},"input":{"type":"string"},"serverId":{"type":"string"}},"required":["aiId","input"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.deploy":{"method":"POST","path":"/ai.deploy","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"dockerCompose":{"type":"string","minLength":1},"envVariables":{"type":"string"},"serverId":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"domains":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number","minimum":1},"serviceName":{"type":"string","minLength":1}},"required":["host","port","serviceName"]}},"configFiles":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string","minLength":1}},"required":["filePath","content"]}}},"required":["environmentId","id","dockerCompose","envVariables","name","description"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.create":{"method":"POST","path":"/organization.create","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.all":{"method":"GET","path":"/organization.all","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.one":{"method":"GET","path":"/organization.one","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.update":{"method":"POST","path":"/organization.update","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string"},"logo":{"type":"string"}},"required":["organizationId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.delete":{"method":"POST","path":"/organization.delete","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.inviteMember":{"method":"POST","path":"/organization.inviteMember","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","minLength":1}},"required":["email","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.allInvitations":{"method":"GET","path":"/organization.allInvitations","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.removeInvitation":{"method":"POST","path":"/organization.removeInvitation","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string"}},"required":["invitationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.updateMemberRole":{"method":"POST","path":"/organization.updateMemberRole","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"memberId":{"type":"string"},"role":{"type":"string","minLength":1}},"required":["memberId","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.setDefault":{"method":"POST","path":"/organization.setDefault","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.active":{"method":"GET","path":"/organization.active","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.activate":{"method":"POST","path":"/licenseKey.activate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"licenseKey":{"type":"string","minLength":1}},"required":["licenseKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.validate":{"method":"POST","path":"/licenseKey.validate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.deactivate":{"method":"POST","path":"/licenseKey.deactivate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.getEnterpriseSettings":{"method":"GET","path":"/licenseKey.getEnterpriseSettings","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.haveValidLicenseKey":{"method":"GET","path":"/licenseKey.haveValidLicenseKey","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.updateEnterpriseSettings":{"method":"POST","path":"/licenseKey.updateEnterpriseSettings","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"enableEnterpriseFeatures":{"type":"boolean"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.showSignInWithSSO":{"method":"GET","path":"/sso.showSignInWithSSO","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.listProviders":{"method":"GET","path":"/sso.listProviders","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.getTrustedOrigins":{"method":"GET","path":"/sso.getTrustedOrigins","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.one":{"method":"GET","path":"/sso.one","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.update":{"method":"POST","path":"/sso.update","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.deleteProvider":{"method":"POST","path":"/sso.deleteProvider","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.register":{"method":"POST","path":"/sso.register","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.addTrustedOrigin":{"method":"POST","path":"/sso.addTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.removeTrustedOrigin":{"method":"POST","path":"/sso.removeTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.updateTrustedOrigin":{"method":"POST","path":"/sso.updateTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"oldOrigin":{"type":"string","minLength":1},"newOrigin":{"type":"string","minLength":1}},"required":["oldOrigin","newOrigin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.get":{"method":"GET","path":"/whitelabeling.get","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.update":{"method":"POST","path":"/whitelabeling.update","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{"whitelabelingConfig":{"type":"object","properties":{"appName":{"anyOf":[{"type":"string"},{"type":"null"}]},"appDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customCss":{"anyOf":[{"type":"string"},{"type":"null"}]},"loginLogoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"docsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"footerText":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["appName","appDescription","logoUrl","faviconUrl","customCss","loginLogoUrl","supportUrl","docsUrl","errorPageTitle","errorPageDescription","metaTitle","footerText"]}},"required":["whitelabelingConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.reset":{"method":"POST","path":"/whitelabeling.reset","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.getPublic":{"method":"GET","path":"/whitelabeling.getPublic","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.all":{"method":"GET","path":"/customRole.all","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.create":{"method":"POST","path":"/customRole.create","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.update":{"method":"POST","path":"/customRole.update","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1},"newRoleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.remove":{"method":"POST","path":"/customRole.remove","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.membersByRole":{"method":"GET","path":"/customRole.membersByRole","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.getStatements":{"method":"GET","path":"/customRole.getStatements","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"auditLog.all":{"method":"GET","path":"/auditLog.all","tag":"auditLog","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"},"userEmail":{"type":"string"},"resourceName":{"type":"string"},"action":{"type":"string","enum":["create","update","delete","deploy","cancel","redeploy","login","logout"]},"resourceType":{"type":"string","enum":["project","service","environment","deployment","user","customRole","domain","certificate","registry","server","sshKey","gitProvider","notification","settings","session"]},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"number","minimum":1,"maximum":500},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.create":{"method":"POST","path":"/schedule.create","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"},"name":{"type":"string"},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.update":{"method":"POST","path":"/schedule.update","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1},"name":{"type":"string"},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["scheduleId","name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.delete":{"method":"POST","path":"/schedule.delete","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.list":{"method":"GET","path":"/schedule.list","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]}},"required":["id","scheduleType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.one":{"method":"GET","path":"/schedule.one","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.runManually":{"method":"POST","path":"/schedule.runManually","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.delete":{"method":"POST","path":"/rollback.delete","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.rollback":{"method":"POST","path":"/rollback.rollback","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.list":{"method":"GET","path":"/volumeBackups.list","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"volumeBackupType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]}},"required":["id","volumeBackupType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.create":{"method":"POST","path":"/volumeBackups.create","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"}},"required":["name","volumeName","prefix","cronExpression","destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.one":{"method":"GET","path":"/volumeBackups.one","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.delete":{"method":"POST","path":"/volumeBackups.delete","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.update":{"method":"POST","path":"/volumeBackups.update","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"},"volumeBackupId":{"type":"string","minLength":1}},"required":["name","volumeName","prefix","cronExpression","destinationId","volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.runManually":{"method":"POST","path":"/volumeBackups.runManually","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.create":{"method":"POST","path":"/environment.create","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string","minLength":1}},"required":["name","projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.one":{"method":"GET","path":"/environment.one","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.byProjectId":{"method":"GET","path":"/environment.byProjectId","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.remove":{"method":"POST","path":"/environment.remove","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.update":{"method":"POST","path":"/environment.update","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string"},"env":{"type":"string"}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.duplicate":{"method":"POST","path":"/environment.duplicate","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"}},"required":["environmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.search":{"method":"GET","path":"/environment.search","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.create":{"method":"POST","path":"/tag.create","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.all":{"method":"GET","path":"/tag.all","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.one":{"method":"GET","path":"/tag.one","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.update":{"method":"POST","path":"/tag.update","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.remove":{"method":"POST","path":"/tag.remove","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.assignToProject":{"method":"POST","path":"/tag.assignToProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.removeFromProject":{"method":"POST","path":"/tag.removeFromProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.bulkAssign":{"method":"POST","path":"/tag.bulkAssign","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["projectId","tagIds"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.create":{"method":"POST","path":"/patch.create","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string"},"type":{"type":"string","enum":["create","update","delete"]},"enabled":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.one":{"method":"GET","path":"/patch.one","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.byEntityId":{"method":"GET","path":"/patch.byEntityId","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.update":{"method":"POST","path":"/patch.update","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"type":{"type":"string","enum":["create","update","delete"]},"filePath":{"type":"string","minLength":1},"enabled":{"type":"boolean"},"content":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.delete":{"method":"POST","path":"/patch.delete","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.toggleEnabled":{"method":"POST","path":"/patch.toggleEnabled","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"required":["patchId","enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.ensureRepo":{"method":"POST","path":"/patch.ensureRepo","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoDirectories":{"method":"GET","path":"/patch.readRepoDirectories","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"repoPath":{"type":"string"}},"required":["id","type","repoPath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoFile":{"method":"GET","path":"/patch.readRepoFile","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.saveFileAsPatch":{"method":"POST","path":"/patch.saveFileAsPatch","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"},"content":{"type":"string"},"patchType":{"default":"update","type":"string","enum":["create","update"]}},"required":["id","type","filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.markFileForDeletion":{"method":"POST","path":"/patch.markFileForDeletion","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.cleanPatchRepos":{"method":"POST","path":"/patch.cleanPatchRepos","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}}}') as Record export type ProcedureSchemas = typeof procedureSchemas diff --git a/src/http-server.ts b/src/http-server.ts index 009283b..12f20ef 100644 --- a/src/http-server.ts +++ b/src/http-server.ts @@ -6,6 +6,7 @@ import { } from 'node:http' import type { AddressInfo, Socket } from 'node:net' +import { resolveSandboxRuntime } from './codemode/sandbox/runtime.js' import { resolveHttpOptions } from './http/options.js' import { createHttpRequestHandler } from './http/request-handler.js' import { canWriteResponse, writeJsonRpcError } from './http/responses.js' @@ -270,6 +271,12 @@ export function createHttpServer(options: HttpServerOptions = {}) { } export async function startHttpServer(options: HttpServerOptions = {}): Promise { + if (resolveSandboxRuntime() === 'local') { + throw new Error( + 'DOKPLOY_MCP_SANDBOX_RUNTIME=local is not supported with serve-http; unset it or use subprocess.', + ) + } + const managed = createManagedHttpServer(options) const { resolved, server } = managed diff --git a/src/http/options.ts b/src/http/options.ts index 3dbee10..93dbd3c 100644 --- a/src/http/options.ts +++ b/src/http/options.ts @@ -42,6 +42,15 @@ function normalizePath(pathname: string | undefined, fallback: string) { } export function resolveHttpOptions(options: HttpServerOptions = {}): ResolvedHttpServerOptions { + const allowedOrigins = + options.allowedOrigins ?? parseAllowedOrigins(process.env.DOKPLOY_MCP_ALLOWED_ORIGINS) ?? [] + + if (allowedOrigins.includes('*')) { + console.error( + 'dokploy-mcp: DOKPLOY_MCP_ALLOWED_ORIGINS=* reflects any Origin. Use an explicit allowlist for hosted deployments.', + ) + } + return { mode: options.mode ?? 'codemode', enabledTags: options.enabledTags, @@ -54,8 +63,7 @@ export function resolveHttpOptions(options: HttpServerOptions = {}): ResolvedHtt options.healthPath ?? process.env.DOKPLOY_MCP_HEALTH_PATH, DEFAULT_HEALTH_PATH, ), - allowedOrigins: - options.allowedOrigins ?? parseAllowedOrigins(process.env.DOKPLOY_MCP_ALLOWED_ORIGINS) ?? [], + allowedOrigins, allowConfigFallback: options.allowConfigFallback ?? parseBoolean(process.env.DOKPLOY_MCP_HTTP_ALLOW_CONFIG_FALLBACK) ?? diff --git a/src/http/request-handler.ts b/src/http/request-handler.ts index 58f7d90..765b7f5 100644 --- a/src/http/request-handler.ts +++ b/src/http/request-handler.ts @@ -22,6 +22,7 @@ import type { } from './types.js' const MAX_JSON_BODY_BYTES = 1024 * 1024 +const sessionRequestQueues = new WeakMap>() class RequestBodyTooLargeError extends Error { constructor(limitBytes: number) { @@ -171,9 +172,16 @@ async function handleTrackedSessionRequest( } try { - await withHttpRequestConfig(session.resolvedConfig, () => - session.transport.handleRequest(req, res, parsedBody), - ) + const handleRequest = () => + withHttpRequestConfig(session.resolvedConfig, () => + session.transport.handleRequest(req, res, parsedBody), + ) + + if (requestKind === 'request') { + await runSerializedSessionRequest(session, handleRequest) + } else { + await handleRequest() + } } finally { if (requestKind !== 'control') { sessions.unregisterRequestAborter(session, abortRequest) @@ -183,6 +191,27 @@ async function handleTrackedSessionRequest( } } +async function runSerializedSessionRequest( + session: SessionRecord, + operation: () => Promise, +): Promise { + const previous = sessionRequestQueues.get(session) ?? Promise.resolve() + const run = previous.catch(() => undefined).then(operation) + const tail = run.then( + () => undefined, + () => undefined, + ) + sessionRequestQueues.set(session, tail) + + try { + return await run + } finally { + if (sessionRequestQueues.get(session) === tail) { + sessionRequestQueues.delete(session) + } + } +} + async function handleExistingPostSession( req: IncomingMessage, res: ServerResponse, diff --git a/src/version.ts b/src/version.ts index 2e62e40..6b303ca 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SERVER_VERSION = '3.1.2' +export const SERVER_VERSION = '4.0.0' diff --git a/tests/codemode-execute.integration.test.ts b/tests/codemode-execute.integration.test.ts index 0cc074c..bf51011 100644 --- a/tests/codemode-execute.integration.test.ts +++ b/tests/codemode-execute.integration.test.ts @@ -1,10 +1,11 @@ import { readFileSync } from 'node:fs' import { resolve } from 'node:path' -import { describe, expect, it } from 'vitest' +import { afterEach, describe, expect, it, vi } from 'vitest' import { invokeProcedureWithApi } from '../src/codemode/gateway/api-gateway.js' import { createSandboxHost } from '../src/codemode/sandbox/host.js' import { runSandboxedFunction } from '../src/codemode/sandbox/runner.js' +import { resetLocalRuntimeWarningForTests } from '../src/codemode/sandbox/runtime.js' import { buildExecuteContext, runExecuteWithHost } from '../src/codemode/tools/execute.js' function readFixture(relativePath: string) { @@ -18,6 +19,12 @@ function trimFixtureCode(value: string) { } describe('codemode execute integration', () => { + afterEach(() => { + vi.unstubAllEnvs() + vi.restoreAllMocks() + resetLocalRuntimeWarningForTests() + }) + function trace(procedure: string, index: number) { return { procedure, @@ -119,6 +126,70 @@ describe('codemode execute integration', () => { ]) }) + it('warns once when execute uses the local sandbox runtime', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_RUNTIME', 'local') + const stderr = vi.spyOn(console, 'error').mockImplementation(() => undefined) + const host = { + async call(procedure: string) { + return { + data: { procedure }, + trace: { + procedure, + method: 'GET' as const, + startedAt: 0, + finishedAt: 1, + durationMs: 1, + }, + } + }, + getCalls() { + return [] + }, + } + + await runExecuteWithHost('async () => 1', host) + await runExecuteWithHost('async () => 2', host) + + expect(stderr).toHaveBeenCalledTimes(1) + expect(stderr.mock.calls[0]?.[0]).toContain('DOKPLOY_MCP_SANDBOX_RUNTIME=local') + }) + + it('aborts local execute host calls after a sandbox timeout', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_RUNTIME', 'local') + vi.stubEnv('DOKPLOY_MCP_SANDBOX_TIMEOUT_MS', '10') + const stderr = vi.spyOn(console, 'error').mockImplementation(() => undefined) + let callCount = 0 + const host = { + async call(procedure: string) { + callCount += 1 + await new Promise((resolve) => setTimeout(resolve, 20)) + return { + data: { procedure }, + trace: { + procedure, + method: 'GET' as const, + startedAt: callCount, + finishedAt: callCount + 1, + durationMs: 1, + }, + } + }, + getCalls() { + return [] + }, + } + + await expect( + runExecuteWithHost('async () => { while (true) { await dokploy.project.all({}) } }', host), + ).rejects.toThrow('Sandbox execution timed out after 10ms.') + const callsAfterTimeout = callCount + + await new Promise((resolve) => setTimeout(resolve, 70)) + + expect(callCount).toBe(callsAfterTimeout) + expect(stderr).toHaveBeenCalledOnce() + }) + it('surfaces reusable resource links when execute results include known Dokploy IDs', async () => { const host = { async call(procedure: string) { diff --git a/tests/codemode-procedure-overrides.test.ts b/tests/codemode-procedure-overrides.test.ts index 393a666..60027d0 100644 --- a/tests/codemode-procedure-overrides.test.ts +++ b/tests/codemode-procedure-overrides.test.ts @@ -105,6 +105,56 @@ describe('codemode procedure overrides', () => { } }) + it('redacts git provider secrets inside application response arrays', () => { + const data = [ + { + applicationId: 'app-1', + githubClientSecret: 'test-placeholder-not-a-real-key', + }, + { + applicationId: 'app-2', + githubClientSecret: 'test-placeholder-not-a-real-key-2', + }, + ] + + const redacted = transformProcedureResponse('github.one', {}, data) as Array< + Record + > + + expect(redacted[0]?.githubClientSecret).toBe('[REDACTED]') + expect(redacted[1]?.githubClientSecret).toBe('[REDACTED]') + expect(transformProcedureResponse('github.one', { includeSecrets: true }, data)).toBe(data) + }) + + it('redacts git provider secrets inside nested arrays', () => { + const data = { + applicationId: 'app-1', + github: [ + { + name: 'primary', + privateKey: 'test-placeholder-not-a-real-key', + }, + ], + } + + const redacted = transformProcedureResponse('github.one', {}, data) as { + github: Array> + } + + expect(redacted.github[0]?.privateKey).toBe('[REDACTED]') + }) + + it('preserves identity when git provider redaction does not change a response', () => { + const data = { + applicationId: 'app-1', + github: { + name: 'primary', + }, + } + + expect(transformProcedureResponse('github.one', {}, data)).toBe(data) + }) + it('redacts notification provider secrets by default', () => { const notification = { notificationId: 'notif-1', @@ -346,6 +396,34 @@ describe('codemode procedure overrides', () => { expect(shaped.logs).not.toContain('key-material') }) + it('redacts broader env and URI credential log patterns without over-redacting prose', () => { + const logText = [ + 'DATABASE_DSN=postgres://dokploy:super-secret@db.example.com:5432/app', + 'SENTRY_DSN=https://public:private@sentry.example.com/1', + 'BROKER_URL=amqp://worker:rabbit-secret@queue.example.com/vhost', + 'ENCRYPTION_KEY=test-placeholder-not-a-real-key', + 'AUTHOR=jane', + 'the password field is configured elsewhere', + ].join('\n') + + const shaped = transformProcedureResponse( + 'application.readLogs', + {}, + { + logs: logText, + }, + ) as { logs: string } + + expect(shaped.logs).toContain('DATABASE_DSN=[REDACTED]') + expect(shaped.logs).toContain('SENTRY_DSN=[REDACTED]') + expect(shaped.logs).toContain('amqp://worker:[REDACTED]@queue.example.com/vhost') + expect(shaped.logs).toContain('ENCRYPTION_KEY=[REDACTED]') + expect(shaped.logs).toContain('AUTHOR=jane') + expect(shaped.logs).toContain('the password field is configured elsewhere') + expect(shaped.logs).not.toContain('super-secret') + expect(shaped.logs).not.toContain('rabbit-secret') + }) + it('caps structured log arrays and redacts secrets inside log messages', () => { const entries = Array.from({ length: 220 }, (_value, index) => ({ timestamp: `2026-04-20T10:${String(index).padStart(2, '0')}:00Z`, diff --git a/tests/codemode-security.test.ts b/tests/codemode-security.test.ts index 69c5acf..a3a7ff2 100644 --- a/tests/codemode-security.test.ts +++ b/tests/codemode-security.test.ts @@ -39,6 +39,52 @@ describe('codemode sandbox security', () => { expect(result.result).toBe('undefined') }) + it('blocks dynamic code generation via async function constructor chains', async () => { + await expect( + runSandboxedFunction({ + code: "async () => (async () => {}).constructor('return typeof process')()", + context: {}, + }), + ).rejects.toThrow() + }) + + it('blocks dynamic code generation via object constructor chains', async () => { + await expect( + runSandboxedFunction({ + code: "async () => ({}).constructor.constructor('return 1')()", + context: {}, + }), + ).rejects.toThrow() + }) + + it('contains prototype pollution inside the sandbox context', async () => { + const result = await runSandboxedFunction({ + code: "async () => { Object.prototype.__codemodePolluted = 'yes'; return 'done' }", + context: {}, + }) + + expect(result.result).toBe('done') + expect(({} as Record).__codemodePolluted).toBeUndefined() + }) + + it('freezes nested context values before exposing them to sandbox code', async () => { + const result = await runSandboxedFunction({ + code: 'async (ctx) => { try { ctx.marker.value = 2 } catch {} ; return ctx.marker.value }', + context: { marker: { value: 1 } }, + }) + + expect(result.result).toBe(1) + }) + + it('does not expose async timers', async () => { + const result = await runSandboxedFunction({ + code: 'async () => typeof setTimeout', + context: {}, + }) + + expect(result.result).toBe('undefined') + }) + it('blocks dynamic import', async () => { await expect( runSandboxedFunction({ diff --git a/tests/codemode-subprocess-runner.test.ts b/tests/codemode-subprocess-runner.test.ts index 3338c52..5872edb 100644 --- a/tests/codemode-subprocess-runner.test.ts +++ b/tests/codemode-subprocess-runner.test.ts @@ -62,6 +62,9 @@ describe('codemode subprocess runner', () => { code: 'catalog.searchText("project")', limits: createLimits(), }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalled() + }) worker.emit('message', { type: 'unexpected' }) @@ -79,6 +82,9 @@ describe('codemode subprocess runner', () => { code: 'catalog.searchText("project")', limits: createLimits(), }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalled() + }) worker.emit('message', { type: 'done', @@ -101,6 +107,9 @@ describe('codemode subprocess runner', () => { code: 'catalog.searchText("project")', limits: createLimits(), }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalled() + }) worker.emit('exit', 9, null) @@ -154,6 +163,9 @@ describe('codemode subprocess runner', () => { limits: createLimits(), onCall: async () => ({ projectId: 'project-1', name: 'Example' }), }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalled() + }) worker.emit('message', { type: 'call', diff --git a/tests/codemode-worker-entry.test.ts b/tests/codemode-worker-entry.test.ts index ab2c6c3..03b7662 100644 --- a/tests/codemode-worker-entry.test.ts +++ b/tests/codemode-worker-entry.test.ts @@ -148,6 +148,55 @@ describe('codemode worker entry', () => { process.send = originalSend }) + it('accepts sequential run messages after a completed run', async () => { + const { sendCalls, restore } = mockProcessSend() + createSearchCatalogViewMock + .mockReturnValueOnce({ marker: 'first-catalog' }) + .mockReturnValueOnce({ marker: 'second-catalog' }) + runSandboxedFunctionMock + .mockResolvedValueOnce({ + result: 'first', + logs: [], + } satisfies SandboxExecutionResult) + .mockResolvedValueOnce({ + result: 'second', + logs: [], + } satisfies SandboxExecutionResult) + + const cleanup = await loadWorkerEntry() + process.emit('message', { + type: 'run', + mode: 'search', + code: 'globalThis.leak = 1; return "first"', + limits: createLimits(), + }) + await flushMicrotasks() + process.emit('message', { + type: 'run', + mode: 'search', + code: 'return typeof leak', + limits: createLimits(), + }) + await flushMicrotasks() + + expect(runSandboxedFunctionMock).toHaveBeenCalledTimes(2) + expect(runSandboxedFunctionMock.mock.calls[0]?.[0]).toMatchObject({ + context: { catalog: { marker: 'first-catalog' } }, + }) + expect(runSandboxedFunctionMock.mock.calls[1]?.[0]).toMatchObject({ + context: { catalog: { marker: 'second-catalog' } }, + }) + expect(sendCalls).toEqual( + expect.arrayContaining([ + { type: 'done', ok: true, result: 'first', logs: [] }, + { type: 'done', ok: true, result: 'second', logs: [] }, + ]), + ) + + cleanup() + restore() + }) + it('handles execute-mode RPC calls through process messages', async () => { const sendCalls: unknown[] = [] const originalSend = process.send diff --git a/tests/codemode.test.ts b/tests/codemode.test.ts index 5222b3e..afff9bc 100644 --- a/tests/codemode.test.ts +++ b/tests/codemode.test.ts @@ -992,6 +992,64 @@ describe('codemode runtime', () => { expect(context.getCalls()).toHaveLength(3) }) + it('can execute virtual database.many for every supported database kind', async () => { + const calls: string[] = [] + const context = buildExecuteContext(async (procedure, input = {}) => { + calls.push(`${procedure}:${JSON.stringify(input)}`) + + return { + data: { + ...input, + name: `${procedure} resource`, + }, + trace: { + procedure, + method: 'GET', + startedAt: calls.length, + finishedAt: calls.length + 1, + durationMs: 1, + }, + } + }, 5) + + const execution = await runSandboxedFunction({ + code: ` + async ({ dokploy }) => { + return await dokploy.database.many({ + requests: [ + { kind: 'mariadb', mariadbId: 'mariadb-1' }, + { kind: 'mongo', mongoId: 'mongo-1' }, + { kind: 'mysql', mysqlId: 'mysql-1' }, + { kind: 'postgres', postgresId: 'postgres-1' }, + { kind: 'redis', redisId: 'redis-1' }, + ], + }) + } + `, + context: { + dokploy: context.dokploy, + }, + }) + + expect(execution.result).toMatchObject({ + items: [ + { kind: 'mariadb', resourceId: 'mariadb-1' }, + { kind: 'mongo', resourceId: 'mongo-1' }, + { kind: 'mysql', resourceId: 'mysql-1' }, + { kind: 'postgres', resourceId: 'postgres-1' }, + { kind: 'redis', resourceId: 'redis-1' }, + ], + total: 5, + }) + expect(calls).toEqual([ + 'mariadb.one:{"mariadbId":"mariadb-1"}', + 'mongo.one:{"mongoId":"mongo-1"}', + 'mysql.one:{"mysqlId":"mysql-1"}', + 'postgres.one:{"postgresId":"postgres-1"}', + 'redis.one:{"redisId":"redis-1"}', + ]) + }) + it('enforces the execute max call budget for virtual application.many fan-out', async () => { const context = buildExecuteContext(async (procedure, input = {}) => { return { @@ -1426,6 +1484,44 @@ describe('codemode runtime', () => { expect(context.getCalls()).toHaveLength(0) }) + it('validates virtual database.many required IDs and known kinds before issuing upstream calls', async () => { + const context = buildExecuteContext(async (procedure, input = {}) => { + return { + data: { procedure, input }, + trace: { + procedure, + method: 'GET', + startedAt: 0, + finishedAt: 1, + durationMs: 1, + }, + } + }, 5) + + await expect( + runSandboxedFunction({ + code: ` + async ({ dokploy }) => { + return await dokploy.database.many({ + requests: [ + { kind: 'mariadb' }, + { kind: 'mongo' }, + { kind: 'sqlite', sqliteId: 'sqlite-1' }, + ], + }) + } + `, + context: { + dokploy: context.dokploy, + }, + }), + ).rejects.toThrow( + 'requests[0].mariadbId is required; requests[1].mongoId is required; requests[2].kind must be one of mariadb, mongo, mysql, postgres, redis', + ) + + expect(context.getCalls()).toHaveLength(0) + }) + it('validates virtual tag.bulkAssignPreview input before issuing upstream calls', async () => { const context = buildExecuteContext(async (procedure, input = {}) => { return { @@ -1491,6 +1587,56 @@ describe('codemode runtime', () => { expect(context.getCalls()).toHaveLength(0) }) + it('validates virtual database.rotatePasswordPreview kind and type before issuing upstream calls', async () => { + const context = buildExecuteContext(async (procedure, input = {}) => { + return { + data: { procedure, input }, + trace: { + procedure, + method: 'GET', + startedAt: 0, + finishedAt: 1, + durationMs: 1, + }, + } + }, 5) + + await expect( + runSandboxedFunction({ + code: ` + async ({ dokploy }) => { + return await dokploy.database.rotatePasswordPreview({ + kind: 'sqlite', + sqliteId: 'sqlite-1', + }) + } + `, + context: { + dokploy: context.dokploy, + }, + }), + ).rejects.toThrow('kind must be one of mariadb, mongo, mysql, postgres, redis') + + await expect( + runSandboxedFunction({ + code: ` + async ({ dokploy }) => { + return await dokploy.database.rotatePasswordPreview({ + kind: 'postgres', + postgresId: 'postgres-1', + type: 'admin', + }) + } + `, + context: { + dokploy: context.dokploy, + }, + }), + ).rejects.toThrow('type must be one of user, root') + + expect(context.getCalls()).toHaveLength(0) + }) + it('validates virtual deployment.latestByType input before issuing upstream calls', async () => { const context = buildExecuteContext(async (procedure, input = {}) => { return { diff --git a/tests/phase4-execute-workflow.test.ts b/tests/deploy-workflow-tasks.test.ts similarity index 66% rename from tests/phase4-execute-workflow.test.ts rename to tests/deploy-workflow-tasks.test.ts index 0ac6a75..752b56d 100644 --- a/tests/phase4-execute-workflow.test.ts +++ b/tests/deploy-workflow-tasks.test.ts @@ -20,6 +20,8 @@ import { createServer } from '../src/server.js' afterEach(() => { invokeProcedureMock.mockReset() + vi.unstubAllEnvs() + vi.useRealTimers() }) function createGatewayResult(procedure: string, data: unknown) { @@ -299,6 +301,230 @@ describe('phase 4 execute task integration', () => { ) }) + it('does not fail the applied deploy when rollout polling exceeds the main call budget', async () => { + invokeProcedureMock.mockImplementation( + async (procedure: string, input: Record) => { + if (procedure === 'application.one') { + return createGatewayResult(procedure, { + applicationId: 'app-1', + name: 'Frontend', + appName: 'frontend', + applicationStatus: 'running', + projectId: 'project-1', + environmentId: 'env-1', + serverId: 'server-1', + deployments: [{ deploymentId: 'dep-1', status: 'done' }], + }) + } + + if (procedure === 'application.deploy') { + return createGatewayResult(procedure, { + deploymentId: 'dep-2', + applicationId: 'app-1', + status: 'queued', + }) + } + + if (procedure === 'deployment.allByType') { + return createGatewayResult(procedure, { + items: [ + { + deploymentId: 'dep-2', + status: 'queued', + }, + ], + total: 1, + }) + } + + throw new Error(`Unexpected procedure ${procedure}:${JSON.stringify(input)}`) + }, + ) + + const client = new Client({ + name: 'phase4-rollout-budget-client', + version: '1.0.0', + }) + + await withClient(createServer({ mode: 'codemode' }), client, async (connectedClient) => { + vi.useFakeTimers() + const call = connectedClient.callTool({ + name: 'execute', + arguments: { + workflow: { + kind: 'deploy-application', + applicationId: 'app-1', + intent: 'Deploy with long rollout polling.', + action: 'apply', + rollout: { + includeProjectLogs: false, + tailLines: 0, + waitForRollout: true, + pollIntervalMs: 250, + maxPolls: 30, + }, + }, + }, + }) + await vi.advanceTimersByTimeAsync(30 * 250) + const result = await call + vi.useRealTimers() + + expect(result.structuredContent).toMatchObject({ + result: { + outcome: 'applied', + rolloutStatus: { + status: 'timeout', + attempts: 30, + }, + deployment: { + deploymentId: 'dep-2', + }, + }, + }) + }) + }) + + it('still enforces the main deploy workflow API-call budget', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CALLS', '1') + invokeProcedureMock.mockImplementation( + async (procedure: string, input: Record) => { + if (procedure === 'application.one') { + return createGatewayResult(procedure, { + applicationId: 'app-1', + name: 'Frontend', + appName: 'frontend', + applicationStatus: 'running', + projectId: 'project-1', + environmentId: 'env-1', + serverId: 'server-1', + deployments: [{ deploymentId: 'dep-1', status: 'done' }], + }) + } + + if (procedure === 'application.deploy') { + return createGatewayResult(procedure, { + deploymentId: 'dep-2', + applicationId: 'app-1', + status: 'queued', + }) + } + + throw new Error(`Unexpected procedure ${procedure}:${JSON.stringify(input)}`) + }, + ) + + const client = new Client({ + name: 'phase4-main-budget-client', + version: '1.0.0', + }) + + await withClient(createServer({ mode: 'codemode' }), client, async (connectedClient) => { + const result = await connectedClient.callTool({ + name: 'execute', + arguments: { + workflow: { + kind: 'deploy-application', + applicationId: 'app-1', + intent: 'Deploy with strict main budget.', + action: 'apply', + rollout: { + includeProjectLogs: false, + waitForRollout: false, + }, + }, + }, + }) + + expect(result.isError).toBe(true) + expect(result.structuredContent).toMatchObject({ + details: 'Code Mode execute exceeded 1 API calls.', + error: 'Failed to execute execute', + }) + }) + }) + + it('uses the rollout loop bound instead of the polling budget as the terminal condition', async () => { + invokeProcedureMock.mockImplementation( + async (procedure: string, input: Record) => { + if (procedure === 'application.one') { + return createGatewayResult(procedure, { + applicationId: 'app-1', + name: 'Frontend', + appName: 'frontend', + applicationStatus: 'running', + projectId: 'project-1', + environmentId: 'env-1', + serverId: 'server-1', + deployments: [{ deploymentId: 'dep-1', status: 'done' }], + }) + } + + if (procedure === 'application.deploy') { + return createGatewayResult(procedure, { + deploymentId: 'dep-2', + applicationId: 'app-1', + status: 'queued', + }) + } + + if (procedure === 'deployment.allByType') { + return createGatewayResult(procedure, { + items: [ + { + deploymentId: 'dep-2', + status: 'queued', + }, + ], + total: 1, + }) + } + + throw new Error(`Unexpected procedure ${procedure}:${JSON.stringify(input)}`) + }, + ) + + const client = new Client({ + name: 'phase4-poll-cap-client', + version: '1.0.0', + }) + + await withClient(createServer({ mode: 'codemode' }), client, async (connectedClient) => { + vi.useFakeTimers() + const call = connectedClient.callTool({ + name: 'execute', + arguments: { + workflow: { + kind: 'deploy-application', + applicationId: 'app-1', + intent: 'Deploy with max rollout polling.', + action: 'apply', + rollout: { + includeProjectLogs: false, + tailLines: 0, + waitForRollout: true, + pollIntervalMs: 250, + maxPolls: 120, + }, + }, + }, + }) + await vi.advanceTimersByTimeAsync(120 * 250) + const result = await call + vi.useRealTimers() + + expect(result.structuredContent).toMatchObject({ + result: { + outcome: 'applied', + rolloutStatus: { + status: 'timeout', + attempts: 120, + }, + }, + }) + }) + }) + it('supports task-enabled deploy workflow preflight with elicitation and sampling before completion', async () => { invokeProcedureMock.mockImplementation( async (procedure: string, input: Record) => { diff --git a/tests/phase3-execute-workflow.test.ts b/tests/deploy-workflow.test.ts similarity index 100% rename from tests/phase3-execute-workflow.test.ts rename to tests/deploy-workflow.test.ts diff --git a/tests/phase4-execute-tool.test.ts b/tests/execute-tool-tasks.test.ts similarity index 100% rename from tests/phase4-execute-tool.test.ts rename to tests/execute-tool-tasks.test.ts diff --git a/tests/phase3-execute-tool.test.ts b/tests/execute-tool-workflows.test.ts similarity index 100% rename from tests/phase3-execute-tool.test.ts rename to tests/execute-tool-workflows.test.ts diff --git a/tests/fixtures/subprocess-workers/test-worker.js b/tests/fixtures/subprocess-workers/test-worker.js index 2c80df8..3272ab7 100644 --- a/tests/fixtures/subprocess-workers/test-worker.js +++ b/tests/fixtures/subprocess-workers/test-worker.js @@ -98,6 +98,11 @@ const modeHandlers = { }), 'disconnect-after-call': createDisconnectAfterCallMode({ projectId: 'p1' }), 'disconnect-immediately': createImmediateDisconnectMode(), + 'env-report': createDoneMode({ + ok: true, + result: Object.keys(process.env).sort(), + logs: [], + }), } process.on('message', (message) => { diff --git a/tests/helpers/subprocess-worker.ts b/tests/helpers/subprocess-worker.ts index f279a6c..cb59497 100644 --- a/tests/helpers/subprocess-worker.ts +++ b/tests/helpers/subprocess-worker.ts @@ -21,6 +21,7 @@ export const subprocessTestWorkerModes = [ 'invalid-done', 'disconnect-after-call', 'disconnect-immediately', + 'env-report', ] as const export type SubprocessTestWorkerMode = (typeof subprocessTestWorkerModes)[number] @@ -34,7 +35,7 @@ const defaultSubprocessLimits: SandboxLimits = { } const defaultSubprocessIntegrationLimits: SandboxLimits = { - timeoutMs: 50, + timeoutMs: 500, maxResultBytes: 8 * 1024, maxLogBytes: 2 * 1024, maxCalls: 5, diff --git a/tests/phase5-adversarial.test.ts b/tests/http-hardening-adversarial.test.ts similarity index 100% rename from tests/phase5-adversarial.test.ts rename to tests/http-hardening-adversarial.test.ts diff --git a/tests/http-options.test.ts b/tests/http-options.test.ts index 021fda0..cd131fd 100644 --- a/tests/http-options.test.ts +++ b/tests/http-options.test.ts @@ -1,4 +1,4 @@ -import { afterEach, describe, expect, it } from 'vitest' +import { afterEach, describe, expect, it, vi } from 'vitest' import { getHealthPayload, resolveHttpOptions } from '../src/http/options.js' import { remoteDokployHeaderInputs } from '../src/http/security.js' @@ -24,6 +24,7 @@ function omitEnv( afterEach(() => { process.env = { ...ORIGINAL_ENV } + vi.restoreAllMocks() }) describe('http options', () => { @@ -124,6 +125,26 @@ describe('http options', () => { expect(resolveHttpOptions().allowConfigFallback).toBe(false) }) + it('warns when remote HTTP origins allow every origin', () => { + const stderr = vi.spyOn(console, 'error').mockImplementation(() => undefined) + + expect(resolveHttpOptions({ allowedOrigins: ['*'] }).allowedOrigins).toEqual(['*']) + expect(stderr).toHaveBeenCalledWith( + 'dokploy-mcp: DOKPLOY_MCP_ALLOWED_ORIGINS=* reflects any Origin. Use an explicit allowlist for hosted deployments.', + ) + }) + + it('does not warn when remote HTTP origins use an explicit allowlist', () => { + const stderr = vi.spyOn(console, 'error').mockImplementation(() => undefined) + + expect( + resolveHttpOptions({ + allowedOrigins: ['https://cursor.example.com', 'https://app.example.com'], + }).allowedOrigins, + ).toEqual(['https://cursor.example.com', 'https://app.example.com']) + expect(stderr).not.toHaveBeenCalled() + }) + it('serializes health payload with sorted capability flags and remote auth metadata', () => { expect( getHealthPayload( diff --git a/tests/http-request-handler-phase5-errors.test.ts b/tests/http-request-handler-errors.test.ts similarity index 100% rename from tests/http-request-handler-phase5-errors.test.ts rename to tests/http-request-handler-errors.test.ts diff --git a/tests/http-server.test.ts b/tests/http-server.test.ts index ba3da6b..e209ac0 100644 --- a/tests/http-server.test.ts +++ b/tests/http-server.test.ts @@ -6,7 +6,7 @@ import net from 'node:net' import { Client } from '@modelcontextprotocol/sdk/client/index.js' import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js' import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types.js' -import { afterEach, describe, expect, it, vi } from 'vitest' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { remoteDokployHeaders } from '../src/http/security.js' import { createHttpServer, @@ -22,6 +22,11 @@ const defaultRemoteDokployUrl = 'https://panel.example.com' const defaultRemoteDokployApiKey = 'test-api-key' const codeModeToolNames = ['search', 'execute', 'list_profiles'] +beforeEach(() => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_RUNTIME', 'subprocess') + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '32') +}) + afterEach(async () => { while (startedServers.length > 0) { const handle = startedServers.pop() @@ -1567,21 +1572,31 @@ describe('http server transport', () => { expect(sessionId).toEqual(expect.any(String)) - const reconnectClients = await Promise.all( - Array.from({ length: 5 }, () => createReconnectHttpClient(handle, sessionId!)), + const reconnectClients = await settleWithin( + Promise.all(Array.from({ length: 5 }, () => createReconnectHttpClient(handle, sessionId!))), + 'concurrent reconnect clients', + 5_000, ) try { const firstWave = await Promise.all( [primary, ...reconnectClients].map(async (client, index) => { const [tools, callResult] = await Promise.all([ - client.client.listTools(), - client.client.callTool({ - name: 'search', - arguments: { - code: `catalog.getByTag("project").length + ${index}`, - }, - }), + settleWithin( + client.client.listTools(), + `first reconnect wave client ${index} listTools`, + 10_000, + ), + settleWithin( + client.client.callTool({ + name: 'search', + arguments: { + code: `catalog.getByTag("project").length + ${index}`, + }, + }), + `first reconnect wave client ${index} search`, + 10_000, + ), ]) return { tools, callResult } @@ -1595,15 +1610,19 @@ describe('http server transport', () => { await closeHttpClient(primary) - const reconnectWave = await Promise.all( - reconnectClients.map((client, index) => - client.client.callTool({ - name: 'search', - arguments: { - code: `catalog.getByTag("project").length + ${index + 10}`, - }, - }), + const reconnectWave = await settleWithin( + Promise.all( + reconnectClients.map((client, index) => + client.client.callTool({ + name: 'search', + arguments: { + code: `catalog.getByTag("project").length + ${index + 10}`, + }, + }), + ), ), + 'second reconnect wave', + 10_000, ) for (const result of reconnectWave) { @@ -1680,7 +1699,7 @@ describe('http server transport', () => { await Promise.allSettled([closeHttpClient(client), closeHttpClient(reconnect)]) } } - }) + }, 20_000) it('applies managed shutdown semantics when callers use createHttpServer directly', async () => { const handle = await startCreatedTestHttpServer({ mode: 'codemode' }) diff --git a/tests/http-server.unit.test.ts b/tests/http-server.unit.test.ts index af9d728..54d60d0 100644 --- a/tests/http-server.unit.test.ts +++ b/tests/http-server.unit.test.ts @@ -124,8 +124,10 @@ async function loadHttpServerModule( requestHandlerError?: unknown closeError?: unknown addressValue?: FakeServer['addressValue'] + sandboxRuntime?: 'local' | 'subprocess' } = {}, ): Promise { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_RUNTIME', options.sandboxRuntime ?? 'subprocess') vi.resetModules() const fakeServer = new FakeServer() @@ -200,6 +202,7 @@ async function loadHttpServerModule( afterEach(() => { vi.resetModules() vi.restoreAllMocks() + vi.unstubAllEnvs() }) describe('http server unit', () => { @@ -306,6 +309,25 @@ describe('http server unit', () => { expect(handle.healthUrl).toBe('http://127.0.0.1:4321/health') }) + it('rejects startup when hosted HTTP is configured with the local sandbox runtime', async () => { + const { module, fakeServer } = await loadHttpServerModule({ + sandboxRuntime: 'local', + }) + + await expect(module.startHttpServer()).rejects.toThrow( + 'DOKPLOY_MCP_SANDBOX_RUNTIME=local is not supported with serve-http; unset it or use subprocess.', + ) + expect(fakeServer.listen).not.toHaveBeenCalled() + }) + + it('starts hosted HTTP when sandbox runtime is left on the subprocess default', async () => { + const { module } = await loadHttpServerModule() + + const handle = await module.startHttpServer() + + expect(handle.url).toBe('http://127.0.0.1:3210') + }) + it('rejects startup when the server address is not TCP', async () => { const { module } = await loadHttpServerModule({ addressValue: 'pipe', diff --git a/tests/phase2-adversarial.test.ts b/tests/prompts-completions-adversarial.test.ts similarity index 100% rename from tests/phase2-adversarial.test.ts rename to tests/prompts-completions-adversarial.test.ts diff --git a/tests/phase5-metadata.test.ts b/tests/release-remote-metadata.test.ts similarity index 100% rename from tests/phase5-metadata.test.ts rename to tests/release-remote-metadata.test.ts diff --git a/tests/phase3-runtime.test.ts b/tests/sampling-elicitation-runtime.test.ts similarity index 100% rename from tests/phase3-runtime.test.ts rename to tests/sampling-elicitation-runtime.test.ts diff --git a/tests/sandbox-code-wrapping.test.ts b/tests/sandbox-code-wrapping.test.ts new file mode 100644 index 0000000..32b2446 --- /dev/null +++ b/tests/sandbox-code-wrapping.test.ts @@ -0,0 +1,60 @@ +import { describe, expect, it } from 'vitest' + +import { runSandboxedFunction } from '../src/codemode/sandbox/runner.js' + +describe('sandbox code wrapping', () => { + it('auto-returns expressions with nested callback returns', async () => { + const result = await runSandboxedFunction({ + code: '[1, 2, 3].filter((n) => { return n > 1 })', + context: {}, + }) + + expect(result.result).toEqual([2, 3]) + }) + + it('auto-returns expressions containing the word return in a string', async () => { + const result = await runSandboxedFunction({ + code: "'return'.length", + context: {}, + }) + + expect(result.result).toBe(6) + }) + + it('uses explicit top-level returns in multi-statement code', async () => { + const result = await runSandboxedFunction({ + code: 'const a = 2\nreturn a * 2', + context: {}, + }) + + expect(result.result).toBe(4) + }) + + it('auto-returns single raw expressions', async () => { + const result = await runSandboxedFunction({ + code: '1 + 1', + context: {}, + }) + + expect(result.result).toBe(2) + }) + + it('passes through async arrow functions', async () => { + const result = await runSandboxedFunction({ + code: "async () => 'ok'", + context: {}, + }) + + expect(result.result).toBe('ok') + }) + + it('runs statement code without a top-level return and reports a null result', async () => { + const result = await runSandboxedFunction({ + code: 'const x = 1; console.log(x)', + context: {}, + }) + + expect(result.result).toBeNull() + expect(result.logs).toContain('1') + }) +}) diff --git a/tests/sandbox-concurrency.test.ts b/tests/sandbox-concurrency.test.ts new file mode 100644 index 0000000..22438a4 --- /dev/null +++ b/tests/sandbox-concurrency.test.ts @@ -0,0 +1,109 @@ +import { afterEach, describe, expect, it, vi } from 'vitest' + +async function loadConcurrency() { + vi.resetModules() + return import('../src/codemode/sandbox/concurrency.js') +} + +afterEach(() => { + vi.unstubAllEnvs() +}) + +describe('sandbox concurrency slots', () => { + it('enforces capacity and resumes queued waiters after release', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '2') + const { acquireSandboxSlot } = await loadConcurrency() + const first = await acquireSandboxSlot() + const second = await acquireSandboxSlot() + const thirdPromise = acquireSandboxSlot() + + await expect( + Promise.race([thirdPromise.then(() => 'slot'), Promise.resolve('pending')]), + ).resolves.toBe('pending') + + first.release() + const third = await thirdPromise + + second.release() + third.release() + }) + + it('resumes queued waiters in FIFO order', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '1') + const { acquireSandboxSlot } = await loadConcurrency() + const held = await acquireSandboxSlot() + const order: string[] = [] + const firstPromise = acquireSandboxSlot().then((slot) => { + order.push('first') + return slot + }) + const secondPromise = acquireSandboxSlot().then((slot) => { + order.push('second') + return slot + }) + + held.release() + const first = await firstPromise + expect(order).toEqual(['first']) + + first.release() + const second = await secondPromise + expect(order).toEqual(['first', 'second']) + second.release() + }) + + it('rejects immediately when the wait queue is full', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '1') + const { acquireSandboxSlot } = await loadConcurrency() + const held = await acquireSandboxSlot() + const queued = [ + acquireSandboxSlot(), + acquireSandboxSlot(), + acquireSandboxSlot(), + acquireSandboxSlot(), + ] + + await expect(acquireSandboxSlot()).rejects.toThrow(/^Sandbox is at capacity/) + + held.release() + for (const queuedSlotPromise of queued) { + const queuedSlot = await queuedSlotPromise + queuedSlot.release() + } + }) + + it('removes aborted queued waiters without leaking a slot', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '1') + const { acquireSandboxSlot } = await loadConcurrency() + const held = await acquireSandboxSlot() + const controller = new AbortController() + const aborted = acquireSandboxSlot(controller.signal) + + controller.abort() + await expect(aborted).rejects.toThrow() + + held.release() + const next = await acquireSandboxSlot() + next.release() + }) + + it('makes release idempotent', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '1') + const { acquireSandboxSlot } = await loadConcurrency() + const held = await acquireSandboxSlot() + + held.release() + held.release() + + const first = await acquireSandboxSlot() + const secondPromise = acquireSandboxSlot() + + await expect( + Promise.race([secondPromise.then(() => 'slot'), Promise.resolve('pending')]), + ).resolves.toBe('pending') + + first.release() + const second = await secondPromise + second.release() + }) +}) diff --git a/tests/subprocess-runner.integration.test.ts b/tests/subprocess-runner.integration.test.ts index 92aff1b..f531b95 100644 --- a/tests/subprocess-runner.integration.test.ts +++ b/tests/subprocess-runner.integration.test.ts @@ -129,4 +129,19 @@ describe('sandbox subprocess runner integration', () => { }), ).rejects.toThrow('Sandbox worker IPC channel disconnected before completing.') }) + + it('runs real fixture workers without inheriting parent Dokploy environment', async () => { + vi.stubEnv('DOKPLOY_API_KEY', 'test-placeholder-not-a-real-key') + + const result = await runRealSearchWithTestWorker({ + mode: 'env-report', + }) + + expect(result.result).toEqual(expect.arrayContaining(['DOKPLOY_MCP_SANDBOX_TEST_WORKER_MODE'])) + expect( + (result.result as string[]).filter( + (key) => key.startsWith('DOKPLOY_') && key !== 'DOKPLOY_MCP_SANDBOX_TEST_WORKER_MODE', + ), + ).toEqual([]) + }) }) diff --git a/tests/subprocess-runner.test.ts b/tests/subprocess-runner.test.ts index 6cee912..b2c9b82 100644 --- a/tests/subprocess-runner.test.ts +++ b/tests/subprocess-runner.test.ts @@ -76,10 +76,106 @@ async function startExecuteRun(options?: { afterEach(() => { queuedWorkers.length = 0 vi.clearAllMocks() + vi.unstubAllEnvs() vi.useRealTimers() }) describe('sandbox subprocess runner', () => { + describe('worker launch isolation', () => { + it('launches workers with an empty environment by default', async () => { + vi.stubEnv('DOKPLOY_API_KEY', 'test-placeholder-not-a-real-key') + const { worker, promise } = await startSearchRun() + + const [, options] = forkMock.mock.calls[0] + + expect(options).toEqual( + expect.objectContaining({ + env: {}, + execArgv: ['--max-old-space-size=256'], + stdio: ['ignore', 'ignore', 'ignore', 'ipc'], + }), + ) + expect(options?.env).not.toHaveProperty('DOKPLOY_API_KEY') + expect(options?.execArgv).not.toContain('--inspect') + expect(options?.execArgv).not.toEqual(process.execArgv) + + worker.emit('message', { + type: 'done', + ok: true, + result: 1, + logs: [], + }) + await expect(promise).resolves.toEqual({ result: 1, logs: [] }) + }) + + it('passes only the explicit test worker mode through the environment', async () => { + vi.stubEnv('DOKPLOY_API_KEY', 'test-placeholder-not-a-real-key') + vi.stubEnv('DOKPLOY_MCP_SANDBOX_TEST_WORKER_MODE', 'echo') + const { worker, promise } = await startSearchRun() + + const [, options] = forkMock.mock.calls[0] + + expect(options).toEqual( + expect.objectContaining({ + env: { + DOKPLOY_MCP_SANDBOX_TEST_WORKER_MODE: 'echo', + }, + }), + ) + expect(options?.env).not.toHaveProperty('DOKPLOY_API_KEY') + + worker.emit('message', { + type: 'done', + ok: true, + result: 1, + logs: [], + }) + await expect(promise).resolves.toEqual({ result: 1, logs: [] }) + }) + + it('uses a configured worker memory ceiling when launching workers', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB', '64') + const { worker, promise } = await startSearchRun() + + const [, options] = forkMock.mock.calls[0] + + expect(options).toEqual( + expect.objectContaining({ + execArgv: ['--max-old-space-size=64'], + }), + ) + + worker.emit('message', { + type: 'done', + ok: true, + result: 1, + logs: [], + }) + await expect(promise).resolves.toEqual({ result: 1, logs: [] }) + }) + + it('falls back to the default worker memory ceiling for invalid values', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_WORKER_MEMORY_MB', '0') + const { worker, promise } = await startSearchRun() + + const [, options] = forkMock.mock.calls[0] + + expect(options).toEqual( + expect.objectContaining({ + execArgv: ['--max-old-space-size=256'], + }), + ) + + worker.emit('message', { + type: 'done', + ok: true, + result: 1, + logs: [], + }) + await expect(promise).resolves.toEqual({ result: 1, logs: [] }) + }) + }) + it('rejects when the initial run payload cannot be sent over IPC', async () => { const worker = queueWorker() worker.send = vi.fn((_message: unknown, callback?: (error: Error | null) => void) => { @@ -420,4 +516,168 @@ describe('sandbox subprocess runner', () => { await expectation }) + + it('serializes subprocess starts through the sandbox concurrency cap', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_MAX_CONCURRENT', '1') + const { runExecuteInSubprocess } = await loadSubprocessRunner() + const firstWorker = queueWorker() + const firstPromise = runExecuteInSubprocess({ + code: defaultExecuteCode, + limits: createSubprocessLimits(), + onCall: async () => ({ ok: true }), + }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalledTimes(1) + }) + + const secondWorker = queueWorker() + const secondPromise = runExecuteInSubprocess({ + code: defaultExecuteCode, + limits: createSubprocessLimits(), + onCall: async () => ({ ok: true }), + }) + + expect(forkMock).toHaveBeenCalledTimes(1) + + firstWorker.emit('message', { + type: 'done', + ok: true, + result: 'first', + logs: [], + }) + + await expect(firstPromise).resolves.toEqual({ result: 'first', logs: [] }) + await vi.waitFor(() => { + expect(forkMock).toHaveBeenCalledTimes(2) + }) + + secondWorker.emit('message', { + type: 'done', + ok: true, + result: 'second', + logs: [], + }) + + await expect(secondPromise).resolves.toEqual({ result: 'second', logs: [] }) + }) + + it('keeps fork-per-call behavior when worker reuse is not enabled', async () => { + const { runSearchInSubprocess } = await loadSubprocessRunner() + const firstWorker = queueWorker() + const firstPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(firstWorker.send).toHaveBeenCalledOnce() + }) + + firstWorker.emit('message', { + type: 'done', + ok: true, + result: 'first', + logs: [], + }) + await expect(firstPromise).resolves.toEqual({ result: 'first', logs: [] }) + + const secondWorker = queueWorker() + const secondPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(secondWorker.send).toHaveBeenCalledOnce() + }) + + secondWorker.emit('message', { + type: 'done', + ok: true, + result: 'second', + logs: [], + }) + + await expect(secondPromise).resolves.toEqual({ result: 'second', logs: [] }) + expect(forkMock).toHaveBeenCalledTimes(2) + expect(firstWorker.disconnect).toHaveBeenCalledOnce() + expect(firstWorker.kill).toHaveBeenCalledOnce() + }) + + it('reuses one successful worker for sequential runs when explicitly enabled', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_WORKER_REUSE', '1') + const { runSearchInSubprocess } = await loadSubprocessRunner() + const worker = queueWorker() + const firstPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(worker.send).toHaveBeenCalledOnce() + }) + + worker.emit('message', { + type: 'done', + ok: true, + result: 'first', + logs: [], + }) + await expect(firstPromise).resolves.toEqual({ result: 'first', logs: [] }) + + const secondPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(worker.send).toHaveBeenCalledTimes(2) + }) + + worker.emit('message', { + type: 'done', + ok: true, + result: 'second', + logs: [], + }) + + await expect(secondPromise).resolves.toEqual({ result: 'second', logs: [] }) + expect(forkMock).toHaveBeenCalledOnce() + expect(worker.disconnect).not.toHaveBeenCalled() + expect(worker.kill).not.toHaveBeenCalled() + expect(worker.send).toHaveBeenCalledTimes(2) + }) + + it('discards a reusable worker after an error run', async () => { + vi.stubEnv('DOKPLOY_MCP_SANDBOX_WORKER_REUSE', '1') + const { runSearchInSubprocess } = await loadSubprocessRunner() + const failedWorker = queueWorker() + const failedPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(failedWorker.send).toHaveBeenCalledOnce() + }) + + failedWorker.emit('message', { type: 'unexpected' }) + await expect(failedPromise).rejects.toThrow('Sandbox worker sent an invalid message.') + + const nextWorker = queueWorker() + const nextPromise = runSearchInSubprocess({ + code: defaultSearchCode, + limits: createSubprocessLimits(), + }) + await vi.waitFor(() => { + expect(nextWorker.send).toHaveBeenCalledOnce() + }) + + nextWorker.emit('message', { + type: 'done', + ok: true, + result: 'next', + logs: [], + }) + + await expect(nextPromise).resolves.toEqual({ result: 'next', logs: [] }) + expect(forkMock).toHaveBeenCalledTimes(2) + expect(failedWorker.disconnect).toHaveBeenCalledOnce() + expect(failedWorker.kill).toHaveBeenCalledOnce() + }) }) diff --git a/tests/phase4-adversarial.test.ts b/tests/tasks-adversarial.test.ts similarity index 100% rename from tests/phase4-adversarial.test.ts rename to tests/tasks-adversarial.test.ts diff --git a/tests/phase4-runtime.test.ts b/tests/tasks-runtime.test.ts similarity index 93% rename from tests/phase4-runtime.test.ts rename to tests/tasks-runtime.test.ts index 710deb6..e9c3a3d 100644 --- a/tests/phase4-runtime.test.ts +++ b/tests/tasks-runtime.test.ts @@ -39,6 +39,31 @@ function createPreparedDeployTask( pollIntervalMs: 250, maxPolls: 2, } + const executor = + overrides.executor ?? + (async (procedure: string) => { + if (procedure === 'application.deploy') { + return { + deploymentId: 'dep-2', + applicationId: 'app-1', + status: 'queued', + } + } + + if (procedure === 'deployment.latestByType') { + return { + id: 'app-1', + type: 'application', + total: 1, + latestDeployment: { + deploymentId: 'dep-2', + status: 'queued', + }, + } + } + + throw new Error(`Unexpected procedure ${procedure}`) + }) return { input, @@ -60,31 +85,8 @@ function createPreparedDeployTask( rollout, }), }, - executor: - overrides.executor ?? - (async (procedure: string) => { - if (procedure === 'application.deploy') { - return { - deploymentId: 'dep-2', - applicationId: 'app-1', - status: 'queued', - } - } - - if (procedure === 'deployment.latestByType') { - return { - id: 'app-1', - type: 'application', - total: 1, - latestDeployment: { - deploymentId: 'dep-2', - status: 'queued', - }, - } - } - - throw new Error(`Unexpected procedure ${procedure}`) - }), + executor, + pollExecutor: executor, getCalls: () => [], } } diff --git a/tests/phase3-adversarial.test.ts b/tests/workflow-adversarial.test.ts similarity index 100% rename from tests/phase3-adversarial.test.ts rename to tests/workflow-adversarial.test.ts diff --git a/tests/phase3-schemas.test.ts b/tests/workflow-schemas.test.ts similarity index 100% rename from tests/phase3-schemas.test.ts rename to tests/workflow-schemas.test.ts diff --git a/vitest.config.ts b/vitest.config.ts index 6b334cd..8b38a75 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -9,13 +9,16 @@ export default defineConfig({ coverage: { provider: 'v8', include: ['src/**/*.ts'], - exclude: ['src/index.ts', 'src/cli/**', 'src/generated/**'], + exclude: ['src/index.ts', 'src/cli/index.ts', 'src/generated/**'], reporter: ['text', 'json-summary'], thresholds: { lines: 85, statements: 84, branches: 70, functions: 90, + 'src/http/**/*.ts': { lines: 90, statements: 90, functions: 90, branches: 85 }, + 'src/config/resolver.ts': { lines: 90, statements: 90, functions: 90, branches: 83 }, + 'src/api/client.ts': { lines: 90, statements: 90, functions: 90, branches: 85 }, }, }, }, diff --git a/vitest.phase2.config.ts b/vitest.phase2.config.ts deleted file mode 100644 index a33afce..0000000 --- a/vitest.phase2.config.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { defineConfig } from 'vitest/config' - -const phase2Tests = [ - 'tests/completions-runtime.test.ts', - 'tests/prompts-runtime.test.ts', - 'tests/prompts-protocol.test.ts', - 'tests/phase2-adversarial.test.ts', - 'tests/codemode-protocol.test.ts', - 'tests/server.test.ts', - 'tests/server-entry-options.test.ts', - 'tests/http-options.test.ts', - 'tests/http-server.test.ts', - 'tests/rawmode.test.ts', -] - -export default defineConfig({ - test: { - include: phase2Tests, - environment: 'node', - setupFiles: ['tests/setup.ts'], - testTimeout: 10_000, - coverage: { - provider: 'v8', - include: [ - 'src/server.ts', - 'src/http-server.ts', - 'src/server-entry/options.ts', - 'src/codemode/server-codemode.ts', - 'src/rawmode/server-rawmode.ts', - 'src/mcp/capabilities/completions.ts', - 'src/mcp/capabilities/prompts.ts', - 'src/mcp/completions/runtime.ts', - 'src/mcp/prompts/**/*.ts', - 'src/mcp/registration/**/*.ts', - ], - reporter: ['text', 'json-summary'], - thresholds: { - lines: 90, - statements: 90, - functions: 90, - branches: 80, - }, - }, - }, -}) diff --git a/vitest.phase3.config.ts b/vitest.phase3.config.ts deleted file mode 100644 index 4c0f0f2..0000000 --- a/vitest.phase3.config.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { defineConfig } from 'vitest/config' - -const phase3Tests = [ - 'tests/phase3-runtime.test.ts', - 'tests/phase3-schemas.test.ts', - 'tests/phase3-execute-tool.test.ts', - 'tests/phase3-execute-workflow.test.ts', - 'tests/phase3-adversarial.test.ts', - 'tests/server.test.ts', - 'tests/rawmode.test.ts', - 'tests/server-entry-options.test.ts', - 'tests/http-options.test.ts', - 'tests/codemode-contract.test.ts', - 'tests/codemode-budget.test.ts', - 'tests/codemode-protocol.test.ts', - 'tests/codemode-protocol-tools-list.test.ts', - 'tests/codemode-execute.integration.test.ts', -] - -export default defineConfig({ - test: { - include: phase3Tests, - environment: 'node', - setupFiles: ['tests/setup.ts'], - testTimeout: 10_000, - coverage: { - provider: 'v8', - include: [ - 'src/server.ts', - 'src/http/options.ts', - 'src/server-entry/options.ts', - 'src/mcp/capabilities/index.ts', - 'src/mcp/capabilities/tools.ts', - 'src/mcp/capabilities/sampling.ts', - 'src/mcp/capabilities/elicitation.ts', - 'src/mcp/registration/**/*.ts', - 'src/mcp/elicitation/**/*.ts', - 'src/mcp/sampling/**/*.ts', - 'src/codemode/tools/execute.ts', - 'src/codemode/workflows/**/*.ts', - ], - reporter: ['text', 'json-summary'], - thresholds: { - lines: 90, - statements: 90, - functions: 90, - branches: 85, - }, - }, - }, -}) diff --git a/vitest.phase4.config.ts b/vitest.phase4.config.ts deleted file mode 100644 index 057892e..0000000 --- a/vitest.phase4.config.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { defineConfig } from 'vitest/config' - -const phase4Tests = [ - 'tests/phase3-runtime.test.ts', - 'tests/phase3-schemas.test.ts', - 'tests/phase3-execute-tool.test.ts', - 'tests/phase3-execute-workflow.test.ts', - 'tests/phase3-adversarial.test.ts', - 'tests/phase4-runtime.test.ts', - 'tests/phase4-execute-tool.test.ts', - 'tests/phase4-execute-workflow.test.ts', - 'tests/phase4-adversarial.test.ts', - 'tests/server.test.ts', - 'tests/rawmode.test.ts', - 'tests/server-entry-options.test.ts', - 'tests/http-options.test.ts', - 'tests/http-server.test.ts', - 'tests/codemode-contract.test.ts', - 'tests/codemode-budget.test.ts', - 'tests/codemode-protocol.test.ts', - 'tests/codemode-protocol-tools-list.test.ts', - 'tests/codemode-execute.integration.test.ts', -] - -export default defineConfig({ - test: { - include: phase4Tests, - environment: 'node', - setupFiles: ['tests/setup.ts'], - testTimeout: 10_000, - coverage: { - provider: 'v8', - include: [ - 'src/server.ts', - 'src/http/options.ts', - 'src/server-entry/options.ts', - 'src/mcp/capabilities/index.ts', - 'src/mcp/capabilities/tools.ts', - 'src/mcp/capabilities/tasks.ts', - 'src/mcp/registration/**/*.ts', - 'src/mcp/tasks/**/*.ts', - ], - reporter: ['text', 'json-summary'], - thresholds: { - lines: 90, - statements: 90, - functions: 90, - branches: 85, - }, - }, - }, -}) diff --git a/vitest.phase5.config.ts b/vitest.phase5.config.ts deleted file mode 100644 index 268a265..0000000 --- a/vitest.phase5.config.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { defineConfig } from 'vitest/config' - -const phase5Tests = [ - 'tests/phase5-metadata.test.ts', - 'tests/phase5-adversarial.test.ts', - 'tests/client.test.ts', - 'tests/config.test.ts', - 'tests/config-types.unit.test.ts', - 'tests/http-options.test.ts', - 'tests/http-request-handler.test.ts', - 'tests/http-request-handler-phase5-errors.test.ts', - 'tests/http-server.test.ts', - 'tests/server-entry-options.test.ts', - 'tests/server.test.ts', - 'tests/rawmode.test.ts', - 'tests/codemode-contract.test.ts', - 'tests/codemode-budget.test.ts', - 'tests/codemode-protocol.test.ts', - 'tests/codemode-protocol-tools-list.test.ts', -] - -export default defineConfig({ - test: { - include: phase5Tests as unknown as string[], - environment: 'node', - setupFiles: ['tests/setup.ts'], - testTimeout: 10_000, - coverage: { - provider: 'v8', - include: [ - 'src/api/client.ts', - 'src/config/resolver.ts', - 'src/http/options.ts', - 'src/http/request-handler.ts', - 'src/http/security.ts', - 'src/server-entry/options.ts', - ], - reporter: ['text', 'json-summary'], - thresholds: { - lines: 90, - statements: 90, - functions: 90, - branches: 85, - }, - }, - }, -}) From 454f26b94ba8d9d525e181db38acbf3907e373bd Mon Sep 17 00:00:00 2001 From: Vibe Code Date: Thu, 9 Jul 2026 08:58:13 +0200 Subject: [PATCH 2/3] Build test artifacts before CI tests --- .github/workflows/ci.yml | 3 +++ .github/workflows/pr-validation.yml | 3 +++ .github/workflows/release.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f13170..6f091b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,9 @@ jobs: - run: npm ci + - name: Build test artifacts + run: npm run build + - name: Test with coverage run: npm run test:coverage diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 0f7dafb..dea993c 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -30,6 +30,9 @@ jobs: - name: Lint run: npm run lint + - name: Build test artifacts + run: npm run build + - name: Test with coverage run: npm run test:coverage diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea0732b..7fd95a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,9 @@ jobs: - name: Lint run: npm run lint + - name: Build test artifacts + run: npm run build + - name: Test run: npm test From fda1a1f7c94995cfa7dd2545a38673cd8644090d Mon Sep 17 00:00:00 2001 From: Vibe Code Date: Thu, 9 Jul 2026 12:15:00 +0200 Subject: [PATCH 3/3] Implement OpenAPI drift check and update related documentation - Added a new script `check-openapi-drift.mjs` to verify discrepancies between the vendored OpenAPI specification and the latest public versions. - Introduced a GitHub Actions workflow for scheduled OpenAPI drift checks. - Updated `package.json` to include a new command for the drift check. - Revised `README.md` and `coverage.md` to reflect the updated API procedures and tags, now totaling 544 procedures and 50 tags. - Enhanced the OpenAPI schema to include new fields and ensure consistency across various deployment configurations. --- .github/workflows/openapi-drift.yml | 32 + README.md | 4 +- docs/coverage.md | 4 +- package.json | 1 + scripts/v2/check-openapi-drift.mjs | 217 + scripts/v2/lib.mjs | 10 +- scripts/v2/official-openapi-root.json | 4195 ++-- .../catalog-overrides/runtime-hints.ts | 1 + src/codemode/context/execute-context-types.ts | 5 + src/codemode/procedure-overrides/logs.ts | 1 + src/codemode/virtual-procedures/batch.ts | 1 + src/codemode/virtual-procedures/shared.ts | 80 +- src/generated/dokploy-schemas.ts | 2 +- src/generated/dokploy-sdk.d.ts | 126 +- src/generated/dokploy-sdk.ts | 24 + src/generated/openapi-index.json | 2457 ++- src/generated/openapi-resolved.json | 15976 +++++++++++----- tests/codemode-execute.integration.test.ts | 19 +- tests/codemode-procedure-overrides.test.ts | 38 + tests/codemode.test.ts | 55 + .../fixtures/execute/logs-tail-many.js | 7 + tests/http-server.test.ts | 2 +- 22 files changed, 15649 insertions(+), 7608 deletions(-) create mode 100644 .github/workflows/openapi-drift.yml create mode 100644 scripts/v2/check-openapi-drift.mjs diff --git a/.github/workflows/openapi-drift.yml b/.github/workflows/openapi-drift.yml new file mode 100644 index 0000000..eb5f75d --- /dev/null +++ b/.github/workflows/openapi-drift.yml @@ -0,0 +1,32 @@ +name: OpenAPI Drift + +on: + schedule: + - cron: '0 6 * * 1' + workflow_dispatch: + +permissions: + contents: read + +jobs: + check-openapi-drift: + name: Check OpenAPI drift + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-node@v6 + with: + node-version: '24' + + - name: Check OpenAPI drift + run: | + set +e + node scripts/v2/check-openapi-drift.mjs + code=$? + if [ "$code" -eq 2 ]; then + echo "::warning::OpenAPI drift check could not complete (network/local error, exit 2) — not confirmed drift." + elif [ "$code" -ne 0 ]; then + echo "::error::OpenAPI drift detected against the vendored snapshot (exit $code)." + fi + exit $code diff --git a/README.md b/README.md index 0749f69..4333cf9 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ Need proof instead of a sales monologue? Start with [docs/live-e2e-proof.md](./d ## Current Fact Snapshot -- Generated API procedures in the pinned catalog: `524` -- Generated tags: `48` +- Generated API procedures in the pinned catalog: `544` +- Generated tags: `50` - Default public MCP tools: `3` (`search`, `execute`, `list_profiles`) - Default `tools/list` footprint from the current budget check: about `1,681` tokens (`6,723` bytes) - Reduction versus the classic endpoint-per-tool baseline (`92,354` tokens): `98.2%` diff --git a/docs/coverage.md b/docs/coverage.md index 3371c2b..30fe7fd 100644 --- a/docs/coverage.md +++ b/docs/coverage.md @@ -7,8 +7,8 @@ Run `npm run docs:sync:facts` after changing generated artifacts or budget-sensi ## Summary -- Generated procedures in the pinned snapshot-backed catalog: `524` -- Generated tags: `48` +- Generated procedures in the pinned snapshot-backed catalog: `544` +- Generated tags: `50` - Default public MCP tools: `3` - Public tool surface: `search`, `execute`, `list_profiles` - Default `tools/list` footprint from the current budget check: about `1,681` tokens (`6,723` bytes) diff --git a/package.json b/package.json index 60d1305..4a79c43 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "bench:execute": "node scripts/v2/bench-execute.mjs", "bench:sandbox-startup": "node scripts/v2/bench-sandbox-startup.mjs", "ci:budgets": "node scripts/v2/check-budgets.mjs", + "check:openapi-drift": "node scripts/v2/check-openapi-drift.mjs", "ci:full": "npm test && npm run lint && npm run build && npm run ci:budgets && npm run docs:check:facts && npm run smoke:mcp && npm run smoke:search && npm run smoke:execute", "clean:dist": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"", "dev": "tsc --watch", diff --git a/scripts/v2/check-openapi-drift.mjs b/scripts/v2/check-openapi-drift.mjs new file mode 100644 index 0000000..b1b0597 --- /dev/null +++ b/scripts/v2/check-openapi-drift.mjs @@ -0,0 +1,217 @@ +#!/usr/bin/env node + +import crypto from 'node:crypto' +import fs from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + +import { normalizeOpenApiSource } from './lib.mjs' + +const __dirname = path.dirname(fileURLToPath(import.meta.url)) +const rootDir = path.resolve(__dirname, '..', '..') +const defaultSourcePath = path.join(rootDir, 'scripts', 'v2', 'official-openapi-root.json') +const primaryUrl = 'https://raw.githubusercontent.com/Dokploy/mcp/main/openapi.json' +const secondaryUrl = 'https://docs.dokploy.com/openapi.json' +const fetchTimeoutMs = 15_000 +const httpMethods = new Set(['delete', 'get', 'head', 'options', 'patch', 'post', 'put', 'trace']) + +function parseArgs(argv) { + const options = { + sourcePath: defaultSourcePath, + strictSecondary: process.env.DOKPLOY_OPENAPI_DRIFT_STRICT_SECONDARY === '1', + } + + for (let index = 0; index < argv.length; index += 1) { + const arg = argv[index] + if (arg === '--source') { + const value = argv[index + 1] + if (!value) { + throw new Error('--source requires a file path') + } + options.sourcePath = path.isAbsolute(value) ? value : path.resolve(rootDir, value) + index += 1 + continue + } + + if (arg === '--strict-secondary') { + options.strictSecondary = true + continue + } + + throw new Error(`Unknown argument: ${arg}`) + } + + return options +} + +function readSpecFile(filePath) { + const raw = fs.readFileSync(filePath, 'utf8') + return { + raw, + spec: normalizeOpenApiSource(JSON.parse(raw)), + } +} + +async function fetchSpec(url) { + const response = await fetch(url, { signal: AbortSignal.timeout(fetchTimeoutMs) }) + if (!response.ok) { + throw new Error(`HTTP ${response.status} ${response.statusText}`) + } + + const raw = await response.text() + return { + raw, + spec: normalizeOpenApiSource(JSON.parse(raw)), + } +} + +function listOperationKeys(spec) { + const keys = [] + + for (const [pathKey, pathItem] of Object.entries(spec.paths ?? {})) { + for (const method of Object.keys(pathItem ?? {})) { + if (!httpMethods.has(method.toLowerCase())) continue + keys.push(`${method.toUpperCase()} ${pathKey}`) + } + } + + return keys.sort() +} + +function listPrimaryTags(spec) { + const tags = new Set() + + for (const pathItem of Object.values(spec.paths ?? {})) { + for (const [method, op] of Object.entries(pathItem ?? {})) { + if (!httpMethods.has(method.toLowerCase())) continue + tags.add(op.tags?.[0] ?? 'other') + } + } + + return [...tags].sort() +} + +function summarize(raw, spec) { + const operations = listOperationKeys(spec) + const tags = listPrimaryTags(spec) + + return { + operations, + operationSet: new Set(operations), + sha256: crypto.createHash('sha256').update(raw).digest('hex'), + tagSet: new Set(tags), + tags, + version: spec.info?.version ?? 'unknown', + } +} + +function diffSets(left, right) { + return [...left].filter((entry) => !right.has(entry)).sort() +} + +function printList(label, values) { + if (values.length === 0) return + console.log(`${label}:`) + for (const value of values) { + console.log(` ${value}`) + } +} + +function compareSummaries(label, vendored, remote) { + const addedOperations = diffSets(remote.operationSet, vendored.operationSet) + const removedOperations = diffSets(vendored.operationSet, remote.operationSet) + const addedTags = diffSets(remote.tagSet, vendored.tagSet) + const removedTags = diffSets(vendored.tagSet, remote.tagSet) + + console.log( + `${label}: vendored ${vendored.operations.length} ops / ${vendored.tags.length} tags; remote ${remote.operations.length} ops / ${remote.tags.length} tags`, + ) + printList(' + added operations', addedOperations) + printList(' - removed operations', removedOperations) + printList(' + added tags', addedTags) + printList(' - removed tags', removedTags) + + return { + addedOperations, + addedTags, + hasDrift: + addedOperations.length > 0 || + removedOperations.length > 0 || + addedTags.length > 0 || + removedTags.length > 0, + removedOperations, + removedTags, + } +} + +function errorMessage(error) { + return error instanceof Error ? error.message : String(error) +} + +async function main() { + let options + try { + options = parseArgs(process.argv.slice(2)) + } catch (error) { + console.error(`Usage error: ${errorMessage(error)}`) + process.exitCode = 2 + return + } + + let vendored + try { + const { raw, spec } = readSpecFile(options.sourcePath) + vendored = summarize(raw, spec) + } catch (error) { + console.error(`Local snapshot error: ${errorMessage(error)}`) + process.exitCode = 2 + return + } + + console.log(`Vendored source: ${path.relative(rootDir, options.sourcePath)}`) + console.log(`Vendored sha256: ${vendored.sha256}`) + + let primary + let secondary + try { + const primarySource = await fetchSpec(primaryUrl) + primary = summarize(primarySource.raw, primarySource.spec) + const secondarySource = await fetchSpec(secondaryUrl) + secondary = summarize(secondarySource.raw, secondarySource.spec) + } catch (error) { + console.error(`OpenAPI drift check could not fetch public specs: ${errorMessage(error)}`) + process.exitCode = 2 + return + } + + const primaryDiff = compareSummaries('Primary Dokploy/mcp main', vendored, primary) + const secondaryDiff = compareSummaries('Secondary docs.dokploy.com', vendored, secondary) + + if (primaryDiff.hasDrift) { + console.error('OpenAPI drift detected against primary Dokploy/mcp main.') + process.exitCode = 1 + return + } + + const secondaryHasAdditions = + secondaryDiff.addedOperations.length > 0 || secondaryDiff.addedTags.length > 0 + if (options.strictSecondary && secondaryDiff.hasDrift) { + console.error('OpenAPI drift detected against secondary docs.dokploy.com.') + process.exitCode = 1 + return + } + if (secondaryHasAdditions) { + console.error('OpenAPI drift detected: secondary docs source is ahead of the vendored snapshot.') + process.exitCode = 1 + return + } + if (secondaryDiff.hasDrift) { + console.warn( + 'Secondary docs source differs but is not ahead of the vendored snapshot; treating it as a non-blocking docs lag.', + ) + } + + console.log('OpenAPI drift check passed.') +} + +await main() diff --git a/scripts/v2/lib.mjs b/scripts/v2/lib.mjs index 9c6f75d..c373f8b 100644 --- a/scripts/v2/lib.mjs +++ b/scripts/v2/lib.mjs @@ -12,8 +12,8 @@ const httpMethods = new Set(['delete', 'get', 'head', 'options', 'patch', 'post' export const v3ParityTarget = Object.freeze({ version: '1.0.0', - operationCount: 524, - tagCount: 48, + operationCount: 544, + tagCount: 50, extraOperations: [ 'docker.startContainer', 'docker.stopContainer', @@ -24,8 +24,8 @@ export const v3ParityTarget = Object.freeze({ source: Object.freeze({ relativePath: 'scripts/v2/official-openapi-root.json', repository: 'https://github.com/Dokploy/mcp', - commit: '0dcb4c0f19eb395cba8830f791b108a52eda8caa', - sha256: 'e70b058584ce1cab1f4b08abed11e2c96f4fac2fedcb16062a5ddd4fa6394e3e', + commit: 'a0a2b8f17152a78f225562d4ae197e8092d61c2e', + sha256: 'e3989c3219cded91427448d4c62adb04d1b3920648c4d05befb78f64aabcf042', }), }) @@ -42,7 +42,7 @@ function resolveOpenApiSourcePath() { return legacyOpenApiSourcePath } -function normalizeOpenApiSource(parsed) { +export function normalizeOpenApiSource(parsed) { if ( parsed && typeof parsed === 'object' && diff --git a/scripts/v2/official-openapi-root.json b/scripts/v2/official-openapi-root.json index f95b0de..cfc3f00 100644 --- a/scripts/v2/official-openapi-root.json +++ b/scripts/v2/official-openapi-root.json @@ -1292,16 +1292,6 @@ } ] }, - "branch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "owner": { "anyOf": [ { @@ -1332,6 +1322,11 @@ } ] }, + "branch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "triggerType": { "default": "push", "type": "string", @@ -1360,10 +1355,10 @@ "required": [ "applicationId", "repository", - "branch", "owner", "buildPath", "githubId", + "branch", "triggerType" ] } @@ -1448,16 +1443,6 @@ "applicationId": { "type": "string" }, - "gitlabBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "gitlabBuildPath": { "anyOf": [ { @@ -1518,6 +1503,11 @@ } ] }, + "gitlabBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -1537,13 +1527,13 @@ }, "required": [ "applicationId", - "gitlabBranch", "gitlabBuildPath", "gitlabOwner", "gitlabRepository", "gitlabId", "gitlabProjectId", - "gitlabPathNamespace" + "gitlabPathNamespace", + "gitlabBranch" ] } } @@ -1624,16 +1614,6 @@ "schema": { "type": "object", "properties": { - "bitbucketBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "bitbucketBuildPath": { "anyOf": [ { @@ -1687,6 +1667,11 @@ "applicationId": { "type": "string" }, + "bitbucketBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -1705,13 +1690,13 @@ } }, "required": [ - "bitbucketBranch", "bitbucketBuildPath", "bitbucketOwner", "bitbucketRepository", "bitbucketRepositorySlug", "bitbucketId", - "applicationId" + "applicationId", + "bitbucketBranch" ] } } @@ -1795,16 +1780,6 @@ "applicationId": { "type": "string" }, - "giteaBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "giteaBuildPath": { "anyOf": [ { @@ -1845,6 +1820,11 @@ } ] }, + "giteaBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -1864,11 +1844,11 @@ }, "required": [ "applicationId", - "giteaBranch", "giteaBuildPath", "giteaOwner", "giteaRepository", - "giteaId" + "giteaId", + "giteaBranch" ] } } @@ -2079,16 +2059,6 @@ "schema": { "type": "object", "properties": { - "customGitBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "applicationId": { "type": "string" }, @@ -2128,6 +2098,11 @@ "enableSubmodules": { "type": "boolean" }, + "customGitBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "customGitSSHKeyId": { "anyOf": [ { @@ -2140,11 +2115,11 @@ } }, "required": [ - "customGitBranch", "applicationId", "customGitBuildPath", "customGitUrl", - "watchPaths" + "watchPaths", + "customGitBranch" ] } } @@ -10504,6 +10479,99 @@ } } }, + "/compose.previewTemplate": { + "post": { + "operationId": "compose-previewTemplate", + "tags": [ + "compose" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "base64": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "base64", + "appName" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, "/compose.import": { "post": { "operationId": "compose-import", @@ -11644,87 +11712,185 @@ } } }, - "/destination.create": { - "post": { - "operationId": "destination-create", + "/deployment.readLogs": { + "get": { + "operationId": "deployment-readLogs", "tags": [ - "destination" + "deployment" ], "security": [ { "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "provider", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "additionalFlags" - ] - } + "parameters": [ + { + "in": "query", + "name": "deploymentId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, + { + "in": "query", + "name": "tail", + "schema": { + "default": 100, + "type": "integer", + "minimum": 1, + "maximum": 10000 } } - }, + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/destination.create": { + "post": { + "operationId": "destination-create", + "tags": [ + "destination" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "accessKey": { + "type": "string" + }, + "bucket": { + "type": "string" + }, + "region": { + "type": "string" + }, + "endpoint": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "additionalFlags": { + "anyOf": [ + { + "default": [], + "type": "array", + "items": { + "type": "string", + "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" + } + }, + { + "type": "null" + } + ] + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "name", + "provider", + "accessKey", + "bucket", + "region", + "endpoint", + "secretAccessKey", + "additionalFlags" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -13384,7 +13550,8 @@ }, "destinationPath": { "type": "string", - "minLength": 1 + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_/]+$" }, "serverId": { "type": "string" @@ -13612,6 +13779,9 @@ "type": "null" } ] + }, + "forwardAuthEnabled": { + "type": "boolean" } }, "required": [ @@ -14157,6 +14327,9 @@ } ] }, + "forwardAuthEnabled": { + "type": "boolean" + }, "domainId": { "type": "string" } @@ -38264,6 +38437,10 @@ "deploy", "build" ] + }, + "enableDockerCleanup": { + "default": true, + "type": "boolean" } }, "required": [ @@ -39490,6 +39667,10 @@ "build" ] }, + "enableDockerCleanup": { + "default": true, + "type": "boolean" + }, "command": { "type": "string" } @@ -39564,9 +39745,9 @@ } } }, - "/server.publicIp": { - "get": { - "operationId": "server-publicIp", + "/server.updateBuildsConcurrency": { + "post": { + "operationId": "server-updateBuildsConcurrency", "tags": [ "server" ], @@ -39575,83 +39756,176 @@ "Authorization": [] } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "type": "string", + "minLength": 1 + }, + "buildsConcurrency": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + }, + "required": [ + "serverId", + "buildsConcurrency" + ] } } } - } - } - }, - "/server.getServerTime": { - "get": { - "operationId": "server-getServerTime", - "tags": [ - "server" - ], - "security": [ - { - "Authorization": [] - } - ], + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/server.publicIp": { + "get": { + "operationId": "server-publicIp", + "tags": [ + "server" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/server.getServerTime": { + "get": { + "operationId": "server-getServerTime", + "tags": [ + "server" + ], + "security": [ + { + "Authorization": [] + } + ], "responses": { "200": { "description": "Successful response", @@ -41337,9 +41611,9 @@ } } }, - "/settings.readTraefikConfig": { - "get": { - "operationId": "settings-readTraefikConfig", + "/settings.updateRemoteServersOnly": { + "post": { + "operationId": "settings-updateRemoteServersOnly", "tags": [ "settings" ], @@ -41348,6 +41622,25 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "remoteServersOnly": { + "type": "boolean" + } + }, + "required": [ + "remoteServersOnly" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -41391,12 +41684,90 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/settings.updateBuildsConcurrency": { + "post": { + "operationId": "settings-updateBuildsConcurrency", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "buildsConcurrency": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + }, + "required": [ + "buildsConcurrency" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" } } } @@ -41414,9 +41785,9 @@ } } }, - "/settings.updateTraefikConfig": { + "/settings.updateEnforceSSO": { "post": { - "operationId": "settings-updateTraefikConfig", + "operationId": "settings-updateEnforceSSO", "tags": [ "settings" ], @@ -41433,13 +41804,12 @@ "schema": { "type": "object", "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 + "enforceSSO": { + "type": "boolean" } }, "required": [ - "traefikConfig" + "enforceSSO" ] } } @@ -41501,9 +41871,9 @@ } } }, - "/settings.readWebServerTraefikConfig": { + "/settings.readTraefikConfig": { "get": { - "operationId": "settings-readWebServerTraefikConfig", + "operationId": "settings-readTraefikConfig", "tags": [ "settings" ], @@ -41578,9 +41948,9 @@ } } }, - "/settings.updateWebServerTraefikConfig": { + "/settings.updateTraefikConfig": { "post": { - "operationId": "settings-updateWebServerTraefikConfig", + "operationId": "settings-updateTraefikConfig", "tags": [ "settings" ], @@ -41665,9 +42035,9 @@ } } }, - "/settings.readMiddlewareTraefikConfig": { + "/settings.readWebServerTraefikConfig": { "get": { - "operationId": "settings-readMiddlewareTraefikConfig", + "operationId": "settings-readWebServerTraefikConfig", "tags": [ "settings" ], @@ -41742,9 +42112,9 @@ } } }, - "/settings.updateMiddlewareTraefikConfig": { + "/settings.updateWebServerTraefikConfig": { "post": { - "operationId": "settings-updateMiddlewareTraefikConfig", + "operationId": "settings-updateWebServerTraefikConfig", "tags": [ "settings" ], @@ -41829,143 +42199,9 @@ } } }, - "/settings.getUpdateData": { - "post": { - "operationId": "settings-getUpdateData", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/settings.updateServer": { - "post": { - "operationId": "settings-updateServer", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/settings.getDokployVersion": { + "/settings.readMiddlewareTraefikConfig": { "get": { - "operationId": "settings-getDokployVersion", + "operationId": "settings-readMiddlewareTraefikConfig", "tags": [ "settings" ], @@ -42040,9 +42276,9 @@ } } }, - "/settings.getReleaseTag": { - "get": { - "operationId": "settings-getReleaseTag", + "/settings.updateMiddlewareTraefikConfig": { + "post": { + "operationId": "settings-updateMiddlewareTraefikConfig", "tags": [ "settings" ], @@ -42051,6 +42287,26 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "traefikConfig": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "traefikConfig" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -42094,16 +42350,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -42117,9 +42363,9 @@ } } }, - "/settings.readDirectories": { - "get": { - "operationId": "settings-readDirectories", + "/settings.getUpdateData": { + "post": { + "operationId": "settings-getUpdateData", "tags": [ "settings" ], @@ -42128,15 +42374,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -42180,16 +42417,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -42203,9 +42430,9 @@ } } }, - "/settings.updateTraefikFile": { + "/settings.updateServer": { "post": { - "operationId": "settings-updateTraefikFile", + "operationId": "settings-updateServer", "tags": [ "settings" ], @@ -42214,34 +42441,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "path": { - "type": "string", - "minLength": 1 - }, - "traefikConfig": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "path", - "traefikConfig" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -42298,9 +42497,9 @@ } } }, - "/settings.readTraefikFile": { + "/settings.getDokployVersion": { "get": { - "operationId": "settings-readTraefikFile", + "operationId": "settings-getDokployVersion", "tags": [ "settings" ], @@ -42309,24 +42508,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "path", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -42393,172 +42574,9 @@ } } }, - "/settings.getIp": { - "get": { - "operationId": "settings-getIp", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/settings.updateServerIp": { - "post": { - "operationId": "settings-updateServerIp", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "serverIp": { - "type": "string" - } - }, - "required": [ - "serverIp" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/settings.getOpenApiDocument": { + "/settings.getReleaseTag": { "get": { - "operationId": "settings-getOpenApiDocument", + "operationId": "settings-getReleaseTag", "tags": [ "settings" ], @@ -42633,9 +42651,9 @@ } } }, - "/settings.readTraefikEnv": { + "/settings.readDirectories": { "get": { - "operationId": "settings-readTraefikEnv", + "operationId": "settings-readDirectories", "tags": [ "settings" ], @@ -42719,9 +42737,9 @@ } } }, - "/settings.writeTraefikEnv": { + "/settings.updateTraefikFile": { "post": { - "operationId": "settings-writeTraefikEnv", + "operationId": "settings-updateTraefikFile", "tags": [ "settings" ], @@ -42738,15 +42756,21 @@ "schema": { "type": "object", "properties": { - "env": { - "type": "string" + "path": { + "type": "string", + "minLength": 1 + }, + "traefikConfig": { + "type": "string", + "minLength": 1 }, "serverId": { "type": "string" } }, "required": [ - "env" + "path", + "traefikConfig" ] } } @@ -42808,9 +42832,9 @@ } } }, - "/settings.haveTraefikDashboardPortEnabled": { + "/settings.readTraefikFile": { "get": { - "operationId": "settings-haveTraefikDashboardPortEnabled", + "operationId": "settings-readTraefikFile", "tags": [ "settings" ], @@ -42820,6 +42844,15 @@ } ], "parameters": [ + { + "in": "query", + "name": "path", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, { "in": "query", "name": "serverId", @@ -42894,9 +42927,9 @@ } } }, - "/settings.haveActivateRequests": { + "/settings.getIp": { "get": { - "operationId": "settings-haveActivateRequests", + "operationId": "settings-getIp", "tags": [ "settings" ], @@ -42971,9 +43004,9 @@ } } }, - "/settings.toggleRequests": { + "/settings.updateServerIp": { "post": { - "operationId": "settings-toggleRequests", + "operationId": "settings-updateServerIp", "tags": [ "settings" ], @@ -42990,12 +43023,12 @@ "schema": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "serverIp": { + "type": "string" } }, "required": [ - "enable" + "serverIp" ] } } @@ -43057,9 +43090,9 @@ } } }, - "/settings.isCloud": { + "/settings.getOpenApiDocument": { "get": { - "operationId": "settings-isCloud", + "operationId": "settings-getOpenApiDocument", "tags": [ "settings" ], @@ -43134,9 +43167,9 @@ } } }, - "/settings.isUserSubscribed": { + "/settings.readTraefikEnv": { "get": { - "operationId": "settings-isUserSubscribed", + "operationId": "settings-readTraefikEnv", "tags": [ "settings" ], @@ -43145,6 +43178,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -43211,9 +43253,9 @@ } } }, - "/settings.health": { - "get": { - "operationId": "settings-health", + "/settings.writeTraefikEnv": { + "post": { + "operationId": "settings-writeTraefikEnv", "tags": [ "settings" ], @@ -43222,6 +43264,104 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "env": { + "type": "string" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "env" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/settings.haveTraefikDashboardPortEnabled": { + "get": { + "operationId": "settings-haveTraefikDashboardPortEnabled", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -43288,9 +43428,9 @@ } } }, - "/settings.checkInfrastructureHealth": { + "/settings.haveActivateRequests": { "get": { - "operationId": "settings-checkInfrastructureHealth", + "operationId": "settings-haveActivateRequests", "tags": [ "settings" ], @@ -43365,9 +43505,9 @@ } } }, - "/settings.setupGPU": { + "/settings.toggleRequests": { "post": { - "operationId": "settings-setupGPU", + "operationId": "settings-toggleRequests", "tags": [ "settings" ], @@ -43384,10 +43524,13 @@ "schema": { "type": "object", "properties": { - "serverId": { - "type": "string" + "enable": { + "type": "boolean" } - } + }, + "required": [ + "enable" + ] } } } @@ -43448,9 +43591,9 @@ } } }, - "/settings.checkGPUStatus": { + "/settings.isCloud": { "get": { - "operationId": "settings-checkGPUStatus", + "operationId": "settings-isCloud", "tags": [ "settings" ], @@ -43459,15 +43602,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -43534,9 +43668,9 @@ } } }, - "/settings.updateTraefikPorts": { - "post": { - "operationId": "settings-updateTraefikPorts", + "/settings.isUserSubscribed": { + "get": { + "operationId": "settings-isUserSubscribed", "tags": [ "settings" ], @@ -43545,52 +43679,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - }, - "additionalPorts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "targetPort": { - "type": "number" - }, - "publishedPort": { - "type": "number" - }, - "protocol": { - "type": "string", - "enum": [ - "tcp", - "udp", - "sctp" - ] - } - }, - "required": [ - "targetPort", - "publishedPort", - "protocol" - ] - } - } - }, - "required": [ - "additionalPorts" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -43634,6 +43722,16 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -43647,9 +43745,9 @@ } } }, - "/settings.getTraefikPorts": { + "/settings.health": { "get": { - "operationId": "settings-getTraefikPorts", + "operationId": "settings-health", "tags": [ "settings" ], @@ -43658,15 +43756,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -43733,9 +43822,9 @@ } } }, - "/settings.updateLogCleanup": { - "post": { - "operationId": "settings-updateLogCleanup", + "/settings.checkInfrastructureHealth": { + "get": { + "operationId": "settings-checkInfrastructureHealth", "tags": [ "settings" ], @@ -43744,32 +43833,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "cronExpression": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "cronExpression" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -43813,6 +43876,16 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -43826,9 +43899,9 @@ } } }, - "/settings.getLogCleanupStatus": { - "get": { - "operationId": "settings-getLogCleanupStatus", + "/settings.setupGPU": { + "post": { + "operationId": "settings-setupGPU", "tags": [ "settings" ], @@ -43837,6 +43910,22 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "type": "string" + } + } + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -43880,16 +43969,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -43903,9 +43982,9 @@ } } }, - "/settings.getDokployCloudIps": { + "/settings.checkGPUStatus": { "get": { - "operationId": "settings-getDokployCloudIps", + "operationId": "settings-checkGPUStatus", "tags": [ "settings" ], @@ -43914,6 +43993,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -43980,11 +44068,11 @@ } } }, - "/sshKey.create": { + "/settings.updateTraefikPorts": { "post": { - "operationId": "sshKey-create", + "operationId": "settings-updateTraefikPorts", "tags": [ - "sshKey" + "settings" ], "security": [ { @@ -43999,35 +44087,39 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "privateKey": { - "type": "string" - }, - "publicKey": { + "serverId": { "type": "string" }, - "organizationId": { - "type": "string" + "additionalPorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "targetPort": { + "type": "number" + }, + "publishedPort": { + "type": "number" + }, + "protocol": { + "type": "string", + "enum": [ + "tcp", + "udp", + "sctp" + ] + } + }, + "required": [ + "targetPort", + "publishedPort", + "protocol" + ] + } } }, "required": [ - "name", - "privateKey", - "publicKey", - "organizationId" + "additionalPorts" ] } } @@ -44089,11 +44181,97 @@ } } }, - "/sshKey.remove": { + "/settings.getTraefikPorts": { + "get": { + "operationId": "settings-getTraefikPorts", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/settings.updateLogCleanup": { "post": { - "operationId": "sshKey-remove", + "operationId": "settings-updateLogCleanup", "tags": [ - "sshKey" + "settings" ], "security": [ { @@ -44108,12 +44286,19 @@ "schema": { "type": "object", "properties": { - "sshKeyId": { - "type": "string" + "cronExpression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ - "sshKeyId" + "cronExpression" ] } } @@ -44175,28 +44360,17 @@ } } }, - "/sshKey.one": { + "/settings.getLogCleanupStatus": { "get": { - "operationId": "sshKey-one", + "operationId": "settings-getLogCleanupStatus", "tags": [ - "sshKey" + "settings" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "sshKeyId", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -44263,11 +44437,11 @@ } } }, - "/sshKey.all": { + "/settings.getDokployCloudIps": { "get": { - "operationId": "sshKey-all", + "operationId": "settings-getDokployCloudIps", "tags": [ - "sshKey" + "settings" ], "security": [ { @@ -44340,9 +44514,9 @@ } } }, - "/sshKey.allForApps": { - "get": { - "operationId": "sshKey-allForApps", + "/sshKey.create": { + "post": { + "operationId": "sshKey-create", "tags": [ "sshKey" ], @@ -44351,6 +44525,48 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "privateKey": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + }, + "required": [ + "name", + "privateKey", + "publicKey", + "organizationId" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -44394,16 +44610,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -44417,9 +44623,9 @@ } } }, - "/sshKey.generate": { + "/sshKey.remove": { "post": { - "operationId": "sshKey-generate", + "operationId": "sshKey-remove", "tags": [ "sshKey" ], @@ -44436,14 +44642,13 @@ "schema": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "rsa", - "ed25519" - ] + "sshKeyId": { + "type": "string" } - } + }, + "required": [ + "sshKeyId" + ] } } } @@ -44504,9 +44709,9 @@ } } }, - "/sshKey.update": { - "post": { - "operationId": "sshKey-update", + "/sshKey.one": { + "get": { + "operationId": "sshKey-one", "tags": [ "sshKey" ], @@ -44515,49 +44720,17 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "lastUsedAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "sshKeyId": { - "type": "string" - } - }, - "required": [ - "sshKeyId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "sshKeyId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -44601,6 +44774,16 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -44614,11 +44797,11 @@ } } }, - "/stripe.getCurrentPlan": { + "/sshKey.all": { "get": { - "operationId": "stripe-getCurrentPlan", + "operationId": "sshKey-all", "tags": [ - "stripe" + "sshKey" ], "security": [ { @@ -44691,11 +44874,11 @@ } } }, - "/stripe.getProducts": { + "/sshKey.allForApps": { "get": { - "operationId": "stripe-getProducts", + "operationId": "sshKey-allForApps", "tags": [ - "stripe" + "sshKey" ], "security": [ { @@ -44768,11 +44951,11 @@ } } }, - "/stripe.createCheckoutSession": { + "/sshKey.generate": { "post": { - "operationId": "stripe-createCheckoutSession", + "operationId": "sshKey-generate", "tags": [ - "stripe" + "sshKey" ], "security": [ { @@ -44787,31 +44970,14 @@ "schema": { "type": "object", "properties": { - "tier": { + "type": { "type": "string", "enum": [ - "legacy", - "hobby", - "startup" + "rsa", + "ed25519" ] - }, - "productId": { - "type": "string" - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" } - }, - "required": [ - "tier", - "productId", - "serverQuantity", - "isAnnual" - ] + } } } } @@ -44872,17 +45038,60 @@ } } }, - "/stripe.createCustomerPortalSession": { + "/sshKey.update": { "post": { - "operationId": "stripe-createCustomerPortalSession", + "operationId": "sshKey-update", "tags": [ - "stripe" + "sshKey" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "lastUsedAt": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sshKeyId": { + "type": "string" + } + }, + "required": [ + "sshKeyId" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -44939,9 +45148,9 @@ } } }, - "/stripe.upgradeSubscription": { - "post": { - "operationId": "stripe-upgradeSubscription", + "/stripe.getCurrentPlan": { + "get": { + "operationId": "stripe-getCurrentPlan", "tags": [ "stripe" ], @@ -44950,38 +45159,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "tier": { - "type": "string", - "enum": [ - "hobby", - "startup" - ] - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" - } - }, - "required": [ - "tier", - "serverQuantity", - "isAnnual" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -45025,6 +45202,16 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -45038,9 +45225,9 @@ } } }, - "/stripe.canCreateMoreServers": { + "/stripe.getProducts": { "get": { - "operationId": "stripe-canCreateMoreServers", + "operationId": "stripe-getProducts", "tags": [ "stripe" ], @@ -45115,9 +45302,9 @@ } } }, - "/stripe.updateInvoiceNotifications": { + "/stripe.createCheckoutSession": { "post": { - "operationId": "stripe-updateInvoiceNotifications", + "operationId": "stripe-createCheckoutSession", "tags": [ "stripe" ], @@ -45134,12 +45321,30 @@ "schema": { "type": "object", "properties": { - "enabled": { + "tier": { + "type": "string", + "enum": [ + "legacy", + "hobby", + "startup" + ] + }, + "productId": { + "type": "string" + }, + "serverQuantity": { + "type": "number", + "minimum": 1 + }, + "isAnnual": { "type": "boolean" } }, "required": [ - "enabled" + "tier", + "productId", + "serverQuantity", + "isAnnual" ] } } @@ -45201,9 +45406,9 @@ } } }, - "/stripe.getInvoices": { - "get": { - "operationId": "stripe-getInvoices", + "/stripe.createCustomerPortalSession": { + "post": { + "operationId": "stripe-createCustomerPortalSession", "tags": [ "stripe" ], @@ -45255,16 +45460,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -45278,26 +45473,49 @@ } } }, - "/swarm.getNodes": { - "get": { - "operationId": "swarm-getNodes", + "/stripe.upgradeSubscription": { + "post": { + "operationId": "stripe-upgradeSubscription", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tier": { + "type": "string", + "enum": [ + "hobby", + "startup" + ] + }, + "serverQuantity": { + "type": "number", + "minimum": 1 + }, + "isAnnual": { + "type": "boolean" + } + }, + "required": [ + "tier", + "serverQuantity", + "isAnnual" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -45341,16 +45559,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -45364,34 +45572,17 @@ } } }, - "/swarm.getNodeInfo": { + "/stripe.canCreateMoreServers": { "get": { - "operationId": "swarm-getNodeInfo", + "operationId": "stripe-canCreateMoreServers", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "nodeId", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -45458,26 +45649,36 @@ } } }, - "/swarm.getNodeApps": { - "get": { - "operationId": "swarm-getNodeApps", + "/stripe.updateInvoiceNotifications": { + "post": { + "operationId": "stripe-updateInvoiceNotifications", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "required": [ + "enabled" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -45521,16 +45722,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -45544,26 +45735,17 @@ } } }, - "/swarm.getContainerStats": { + "/stripe.getInvoices": { "get": { - "operationId": "swarm-getContainerStats", + "operationId": "stripe-getInvoices", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -45630,17 +45812,26 @@ } } }, - "/user.all": { + "/swarm.getNodes": { "get": { - "operationId": "user-all", + "operationId": "swarm-getNodes", "tags": [ - "user" + "swarm" ], "security": [ { "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -45707,11 +45898,11 @@ } } }, - "/user.one": { + "/swarm.getNodeInfo": { "get": { - "operationId": "user-one", + "operationId": "swarm-getNodeInfo", "tags": [ - "user" + "swarm" ], "security": [ { @@ -45721,11 +45912,18 @@ "parameters": [ { "in": "query", - "name": "userId", + "name": "nodeId", "schema": { "type": "string" }, "required": true + }, + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } } ], "responses": { @@ -45794,92 +45992,24 @@ } } }, - "/user.session": { + "/swarm.getNodeApps": { "get": { - "operationId": "user-session", + "operationId": "swarm-getNodeApps", "tags": [ - "user" + "swarm" ], "security": [ { "Authorization": [] } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/user.get": { - "get": { - "operationId": "user-get", - "tags": [ - "user" - ], - "security": [ + "parameters": [ { - "Authorization": [] + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } } ], "responses": { @@ -45948,92 +46078,496 @@ } } }, - "/user.getPermissions": { + "/swarm.getContainerStats": { "get": { - "operationId": "user-getPermissions", + "operationId": "swarm-getContainerStats", "tags": [ - "user" + "swarm" ], "security": [ { "Authorization": [] } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.BAD_REQUEST" - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.UNAUTHORIZED" - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.FORBIDDEN" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.NOT_FOUND" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" - } - } - } - } - } - } - }, - "/user.haveRootAccess": { - "get": { - "operationId": "user-haveRootAccess", - "tags": [ - "user" - ], - "security": [ + "parameters": [ { - "Authorization": [] + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.all": { + "get": { + "operationId": "user-all", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.one": { + "get": { + "operationId": "user-one", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "userId", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.session": { + "get": { + "operationId": "user-session", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.get": { + "get": { + "operationId": "user-get", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.getPermissions": { + "get": { + "operationId": "user-getPermissions", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/user.haveRootAccess": { + "get": { + "operationId": "user-haveRootAccess", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] } ], "responses": { @@ -50448,6 +50982,83 @@ } } }, + "/sso.enforceSSO": { + "get": { + "operationId": "sso-enforceSSO", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, "/sso.listProviders": { "get": { "operationId": "sso-listProviders", @@ -51739,6 +52350,1168 @@ } } }, + "/scim.listProviders": { + "get": { + "operationId": "scim-listProviders", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/scim.generateToken": { + "post": { + "operationId": "scim-generateToken", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[a-z0-9][a-z0-9-]*$" + } + }, + "required": [ + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/scim.deleteProvider": { + "post": { + "operationId": "scim-deleteProvider", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[a-z0-9][a-z0-9-]*$" + } + }, + "required": [ + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.getAuthDomain": { + "get": { + "operationId": "forwardAuth-getAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.setAuthDomain": { + "post": { + "operationId": "forwardAuth-setAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "authDomain": { + "type": "string" + }, + "https": { + "default": true, + "type": "boolean" + }, + "certificateType": { + "default": "letsencrypt", + "type": "string", + "enum": [ + "none", + "letsencrypt", + "custom" + ] + }, + "customCertResolver": { + "type": "string" + } + }, + "required": [ + "serverId", + "authDomain" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.removeAuthDomain": { + "post": { + "operationId": "forwardAuth-removeAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "serverId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.listProviders": { + "get": { + "operationId": "forwardAuth-listProviders", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.serverStatus": { + "get": { + "operationId": "forwardAuth-serverStatus", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.deployOnServer": { + "post": { + "operationId": "forwardAuth-deployOnServer", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "providerId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "serverId", + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.removeOnServer": { + "post": { + "operationId": "forwardAuth-removeOnServer", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "serverId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.status": { + "get": { + "operationId": "forwardAuth-status", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "domainId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.NOT_FOUND" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.enable": { + "post": { + "operationId": "forwardAuth-enable", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "domainId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "domainId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, + "/forwardAuth.disable": { + "post": { + "operationId": "forwardAuth-disable", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "domainId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "domainId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.BAD_REQUEST" + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.UNAUTHORIZED" + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.FORBIDDEN" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR" + } + } + } + } + } + } + }, "/whitelabeling.get": { "get": { "operationId": "whitelabeling-get", @@ -52916,6 +54689,16 @@ "name": { "type": "string" }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "cronExpression": { "type": "string" }, @@ -52991,7 +54774,7 @@ } ] }, - "userId": { + "organizationId": { "anyOf": [ { "type": "string" @@ -53109,6 +54892,16 @@ "name": { "type": "string" }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "cronExpression": { "type": "string" }, @@ -53184,7 +54977,7 @@ } ] }, - "userId": { + "organizationId": { "anyOf": [ { "type": "string" diff --git a/src/codemode/catalog-overrides/runtime-hints.ts b/src/codemode/catalog-overrides/runtime-hints.ts index 61a99bf..621885d 100644 --- a/src/codemode/catalog-overrides/runtime-hints.ts +++ b/src/codemode/catalog-overrides/runtime-hints.ts @@ -6,6 +6,7 @@ export const runtimeCatalogResponseHints: Record = [ 'application.readLogs', 'compose.readLogs', + 'deployment.readLogs', 'libsql.readLogs', 'mariadb.readLogs', 'mongo.readLogs', diff --git a/src/codemode/context/execute-context-types.ts b/src/codemode/context/execute-context-types.ts index 720538b..626c53f 100644 --- a/src/codemode/context/execute-context-types.ts +++ b/src/codemode/context/execute-context-types.ts @@ -45,6 +45,11 @@ export type TailManyRequest = since?: string search?: string } + | { + kind: 'deployment' + deploymentId: string + tail?: number + } | { kind: 'libsql' libsqlId: string diff --git a/src/codemode/procedure-overrides/logs.ts b/src/codemode/procedure-overrides/logs.ts index 062f687..c09148f 100644 --- a/src/codemode/procedure-overrides/logs.ts +++ b/src/codemode/procedure-overrides/logs.ts @@ -10,6 +10,7 @@ const LOG_OUTPUT_BYTE_CAP = 16 * 1024 export const logProcedureNames = [ 'application.readLogs', 'compose.readLogs', + 'deployment.readLogs', 'libsql.readLogs', 'mariadb.readLogs', 'mongo.readLogs', diff --git a/src/codemode/virtual-procedures/batch.ts b/src/codemode/virtual-procedures/batch.ts index d471c75..86caa24 100644 --- a/src/codemode/virtual-procedures/batch.ts +++ b/src/codemode/virtual-procedures/batch.ts @@ -188,6 +188,7 @@ function createTailManyInputSchema() { applicationId: { type: 'string' }, composeId: { type: 'string' }, containerId: { type: 'string' }, + deploymentId: { type: 'string' }, libsqlId: { type: 'string' }, mariadbId: { type: 'string' }, mongoId: { type: 'string' }, diff --git a/src/codemode/virtual-procedures/shared.ts b/src/codemode/virtual-procedures/shared.ts index 3fd1f72..f38adbe 100644 --- a/src/codemode/virtual-procedures/shared.ts +++ b/src/codemode/virtual-procedures/shared.ts @@ -1,13 +1,16 @@ -const logRequestKinds = new Set([ - 'application', - 'compose', - 'libsql', - 'mariadb', - 'mongo', - 'mysql', - 'postgres', - 'redis', -]) +const logRequestIdFields: Record = { + application: ['applicationId'], + compose: ['composeId', 'containerId'], + deployment: ['deploymentId'], + libsql: ['libsqlId'], + mariadb: ['mariadbId'], + mongo: ['mongoId'], + mysql: ['mysqlId'], + postgres: ['postgresId'], + redis: ['redisId'], +} + +const logRequestKinds = new Set(Object.keys(logRequestIdFields)) export const DATABASE_KINDS = [ { @@ -174,50 +177,10 @@ export function validateLogRequestRequiredIds( ) { const errors: string[] = [] - switch (kind) { - case 'application': - if (!getStringOrNull(request.applicationId)) { - errors.push(`requests[${index}].applicationId is required`) - } - break - case 'compose': - if (!getStringOrNull(request.composeId)) { - errors.push(`requests[${index}].composeId is required`) - } - if (!getStringOrNull(request.containerId)) { - errors.push(`requests[${index}].containerId is required`) - } - break - case 'libsql': - if (!getStringOrNull(request.libsqlId)) { - errors.push(`requests[${index}].libsqlId is required`) - } - break - case 'mariadb': - if (!getStringOrNull(request.mariadbId)) { - errors.push(`requests[${index}].mariadbId is required`) - } - break - case 'mongo': - if (!getStringOrNull(request.mongoId)) { - errors.push(`requests[${index}].mongoId is required`) - } - break - case 'mysql': - if (!getStringOrNull(request.mysqlId)) { - errors.push(`requests[${index}].mysqlId is required`) - } - break - case 'postgres': - if (!getStringOrNull(request.postgresId)) { - errors.push(`requests[${index}].postgresId is required`) - } - break - case 'redis': - if (!getStringOrNull(request.redisId)) { - errors.push(`requests[${index}].redisId is required`) - } - break + for (const idField of logRequestIdFields[kind] ?? []) { + if (!getStringOrNull(request[idField])) { + errors.push(`requests[${index}].${idField} is required`) + } } return errors @@ -268,6 +231,15 @@ export function buildLogRequestProcedure(request: Record) { search: request.search, }, } + case 'deployment': + // deployment.readLogs only accepts deploymentId and tail; since/search are not forwarded. + return { + procedure: 'deployment.readLogs', + input: { + deploymentId: String(request.deploymentId), + tail: request.tail, + }, + } case 'libsql': return { procedure: 'libsql.readLogs', diff --git a/src/generated/dokploy-schemas.ts b/src/generated/dokploy-schemas.ts index 460a141..0e6301b 100644 --- a/src/generated/dokploy-schemas.ts +++ b/src/generated/dokploy-schemas.ts @@ -10,6 +10,6 @@ export interface ProcedureSchema { outputSchema: JsonSchema } -export const procedureSchemas = JSON.parse('{"admin.setupMonitoring":{"method":"POST","path":"/admin.setupMonitoring","tag":"admin","inputKind":"body","inputSchema":{"type":"object","properties":{"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.create":{"method":"POST","path":"/application.create","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.one":{"method":"GET","path":"/application.one","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.reload":{"method":"POST","path":"/application.reload","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"applicationId":{"type":"string"}},"required":["appName","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.delete":{"method":"POST","path":"/application.delete","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.stop":{"method":"POST","path":"/application.stop","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.start":{"method":"POST","path":"/application.start","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.redeploy":{"method":"POST","path":"/application.redeploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveEnvironment":{"method":"POST","path":"/application.saveEnvironment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"createEnvFile":{"type":"boolean"}},"required":["applicationId","env","buildArgs","buildSecrets","createEnvFile"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBuildType":{"method":"POST","path":"/application.saveBuildType","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["applicationId","buildType","dockerfile","dockerContextPath","dockerBuildStage","herokuVersion","railpackVersion"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGithubProvider":{"method":"POST","path":"/application.saveGithubProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"default":"push","type":"string","enum":["push","tag"]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","repository","branch","owner","buildPath","githubId","triggerType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitlabProvider":{"method":"POST","path":"/application.saveGitlabProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","gitlabBranch","gitlabBuildPath","gitlabOwner","gitlabRepository","gitlabId","gitlabProjectId","gitlabPathNamespace"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBitbucketProvider":{"method":"POST","path":"/application.saveBitbucketProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["bitbucketBranch","bitbucketBuildPath","bitbucketOwner","bitbucketRepository","bitbucketRepositorySlug","bitbucketId","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGiteaProvider":{"method":"POST","path":"/application.saveGiteaProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","giteaBranch","giteaBuildPath","giteaOwner","giteaRepository","giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveDockerProvider":{"method":"POST","path":"/application.saveDockerProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dockerImage","applicationId","username","password","registryUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitProvider":{"method":"POST","path":"/application.saveGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["customGitBranch","applicationId","customGitBuildPath","customGitUrl","watchPaths"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.disconnectGitProvider":{"method":"POST","path":"/application.disconnectGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.markRunning":{"method":"POST","path":"/application.markRunning","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.update":{"method":"POST","path":"/application.update","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewEnv":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewBuildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewBuildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLabels":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewWildcard":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"previewHttps":{"type":"boolean"},"previewPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewCertificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"previewCustomCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"isPreviewDeploymentsActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"previewRequireCollaboratorPermissions":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"rollbackActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"icon":{"anyOf":[{"anyOf":[{"type":"string","maxLength":2097152},{"type":"null"}]},{"type":"null"}]},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["github","docker","git","gitlab","bitbucket","gitea","drop"]},"cleanCache":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"dropBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createEnvFile":{"type":"boolean"},"createdAt":{"type":"string"},"registryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"rollbackRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildServerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.refreshToken":{"method":"POST","path":"/application.refreshToken","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.deploy":{"method":"POST","path":"/application.deploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cleanQueues":{"method":"POST","path":"/application.cleanQueues","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.clearDeployments":{"method":"POST","path":"/application.clearDeployments","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.killBuild":{"method":"POST","path":"/application.killBuild","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readTraefikConfig":{"method":"GET","path":"/application.readTraefikConfig","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.dropDeployment":{"method":"POST","path":"/application.dropDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.updateTraefikConfig":{"method":"POST","path":"/application.updateTraefikConfig","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"traefikConfig":{"type":"string"}},"required":["applicationId","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readAppMonitoring":{"method":"GET","path":"/application.readAppMonitoring","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.move":{"method":"POST","path":"/application.move","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["applicationId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cancelDeployment":{"method":"POST","path":"/application.cancelDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.search":{"method":"GET","path":"/application.search","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"repository":{"type":"string"},"owner":{"type":"string"},"dockerImage":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readLogs":{"method":"GET","path":"/application.readLogs","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.create":{"method":"POST","path":"/backup.create","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"destinationId":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"database":{"type":"string","minLength":1},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"backupType":{"type":"string","enum":["database","compose"]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]}},"required":["schedule","prefix","destinationId","database","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.one":{"method":"GET","path":"/backup.one","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.update":{"method":"POST","path":"/backup.update","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"backupId":{"type":"string"},"destinationId":{"type":"string"},"database":{"type":"string","minLength":1},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]}},"required":["schedule","enabled","prefix","backupId","destinationId","database","keepLatestCount","serviceName","metadata","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.remove":{"method":"POST","path":"/backup.remove","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string"}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupPostgres":{"method":"POST","path":"/backup.manualBackupPostgres","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMySql":{"method":"POST","path":"/backup.manualBackupMySql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMariadb":{"method":"POST","path":"/backup.manualBackupMariadb","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupCompose":{"method":"POST","path":"/backup.manualBackupCompose","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMongo":{"method":"POST","path":"/backup.manualBackupMongo","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupLibsql":{"method":"POST","path":"/backup.manualBackupLibsql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupWebServer":{"method":"POST","path":"/backup.manualBackupWebServer","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.listBackupFiles":{"method":"GET","path":"/backup.listBackupFiles","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"},"search":{"type":"string"},"serverId":{"type":"string"}},"required":["destinationId","search"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.create":{"method":"POST","path":"/bitbucket.create","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string"},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["authId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.one":{"method":"GET","path":"/bitbucket.one","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.bitbucketProviders":{"method":"GET","path":"/bitbucket.bitbucketProviders","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketRepositories":{"method":"GET","path":"/bitbucket.getBitbucketRepositories","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketBranches":{"method":"GET","path":"/bitbucket.getBitbucketBranches","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string"},"repo":{"type":"string"},"bitbucketId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.testConnection":{"method":"POST","path":"/bitbucket.testConnection","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"workspaceName":{"type":"string"},"apiToken":{"type":"string"},"appPassword":{"type":"string"}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.update":{"method":"POST","path":"/bitbucket.update","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"name":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["bitbucketId","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.create":{"method":"POST","path":"/certificates.create","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string"},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1},"certificatePath":{"type":"string"},"autoRenew":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"organizationId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","certificateData","privateKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.one":{"method":"GET","path":"/certificates.one","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.remove":{"method":"POST","path":"/certificates.remove","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.all":{"method":"GET","path":"/certificates.all","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.update":{"method":"POST","path":"/certificates.update","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.getNodes":{"method":"GET","path":"/cluster.getNodes","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.removeWorker":{"method":"POST","path":"/cluster.removeWorker","tag":"cluster","inputKind":"body","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addWorker":{"method":"GET","path":"/cluster.addWorker","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addManager":{"method":"GET","path":"/cluster.addManager","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.create":{"method":"POST","path":"/compose.create","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"composeType":{"type":"string","enum":["docker-compose","stack"]},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.one":{"method":"GET","path":"/compose.one","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.update":{"method":"POST","path":"/compose.update","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["git","github","gitlab","bitbucket","gitea","raw"]},"composeType":{"type":"string","enum":["docker-compose","stack"]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"type":"string"},"enableSubmodules":{"type":"boolean"},"composePath":{"type":"string","minLength":1},"suffix":{"type":"string"},"randomize":{"type":"boolean"},"isolatedDeployment":{"type":"boolean"},"isolatedDeploymentsVolume":{"type":"boolean"},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"composeStatus":{"type":"string","enum":["idle","running","done","error"]},"environmentId":{"type":"string"},"createdAt":{"type":"string"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.saveEnvironment":{"method":"POST","path":"/compose.saveEnvironment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.delete":{"method":"POST","path":"/compose.delete","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"deleteVolumes":{"type":"boolean"}},"required":["composeId","deleteVolumes"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cleanQueues":{"method":"POST","path":"/compose.cleanQueues","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.clearDeployments":{"method":"POST","path":"/compose.clearDeployments","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.killBuild":{"method":"POST","path":"/compose.killBuild","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadServices":{"method":"GET","path":"/compose.loadServices","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"type":{"default":"cache","type":"string","enum":["fetch","cache"]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadMountsByService":{"method":"GET","path":"/compose.loadMountsByService","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"serviceName":{"type":"string","minLength":1}},"required":["composeId","serviceName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.fetchSourceType":{"method":"POST","path":"/compose.fetchSourceType","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.randomizeCompose":{"method":"POST","path":"/compose.randomizeCompose","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.isolatedDeployment":{"method":"POST","path":"/compose.isolatedDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getConvertedCompose":{"method":"GET","path":"/compose.getConvertedCompose","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deploy":{"method":"POST","path":"/compose.deploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.redeploy":{"method":"POST","path":"/compose.redeploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.stop":{"method":"POST","path":"/compose.stop","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.start":{"method":"POST","path":"/compose.start","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getDefaultCommand":{"method":"GET","path":"/compose.getDefaultCommand","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.refreshToken":{"method":"POST","path":"/compose.refreshToken","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deployTemplate":{"method":"POST","path":"/compose.deployTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string"},"serverId":{"type":"string"},"id":{"type":"string"},"baseUrl":{"type":"string"}},"required":["environmentId","id"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.templates":{"method":"GET","path":"/compose.templates","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getTags":{"method":"GET","path":"/compose.getTags","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.disconnectGitProvider":{"method":"POST","path":"/compose.disconnectGitProvider","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.move":{"method":"POST","path":"/compose.move","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["composeId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.processTemplate":{"method":"POST","path":"/compose.processTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.import":{"method":"POST","path":"/compose.import","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cancelDeployment":{"method":"POST","path":"/compose.cancelDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.search":{"method":"GET","path":"/compose.search","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.readLogs":{"method":"GET","path":"/compose.readLogs","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["composeId","containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.all":{"method":"GET","path":"/deployment.all","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByCompose":{"method":"GET","path":"/deployment.allByCompose","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByServer":{"method":"GET","path":"/deployment.allByServer","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allCentralized":{"method":"GET","path":"/deployment.allCentralized","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.queueList":{"method":"GET","path":"/deployment.queueList","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByType":{"method":"GET","path":"/deployment.allByType","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose","server","schedule","previewDeployment","backup","volumeBackup"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.killProcess":{"method":"POST","path":"/deployment.killProcess","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.removeDeployment":{"method":"POST","path":"/deployment.removeDeployment","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.create":{"method":"POST","path":"/destination.create","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.testConnection":{"method":"POST","path":"/destination.testConnection","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.one":{"method":"GET","path":"/destination.one","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string","minLength":1}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.all":{"method":"GET","path":"/destination.all","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.remove":{"method":"POST","path":"/destination.remove","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.update":{"method":"POST","path":"/destination.update","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"destinationId":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","accessKey","bucket","region","endpoint","secretAccessKey","destinationId","provider","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainers":{"method":"GET","path":"/docker.getContainers","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.restartContainer":{"method":"POST","path":"/docker.restartContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.startContainer":{"method":"POST","path":"/docker.startContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.stopContainer":{"method":"POST","path":"/docker.stopContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.killContainer":{"method":"POST","path":"/docker.killContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.removeContainer":{"method":"POST","path":"/docker.removeContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getConfig":{"method":"GET","path":"/docker.getConfig","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppNameMatch":{"method":"GET","path":"/docker.getContainersByAppNameMatch","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appType":{"type":"string","enum":["stack","docker-compose"]},"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppLabel":{"method":"GET","path":"/docker.getContainersByAppLabel","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"},"type":{"type":"string","enum":["standalone","swarm"]}},"required":["appName","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getStackContainersByAppName":{"method":"GET","path":"/docker.getStackContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getServiceContainersByAppName":{"method":"GET","path":"/docker.getServiceContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.uploadFileToContainer":{"method":"POST","path":"/docker.uploadFileToContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.create":{"method":"POST","path":"/domain.create","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"previewDeploymentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["host"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byApplicationId":{"method":"GET","path":"/domain.byApplicationId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byComposeId":{"method":"GET","path":"/domain.byComposeId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.generateDomain":{"method":"POST","path":"/domain.generateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.canGenerateTraefikMeDomains":{"method":"GET","path":"/domain.canGenerateTraefikMeDomains","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.update":{"method":"POST","path":"/domain.update","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"domainId":{"type":"string"}},"required":["host","domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.one":{"method":"GET","path":"/domain.one","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.delete":{"method":"POST","path":"/domain.delete","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.validateDomain":{"method":"POST","path":"/domain.validateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domain":{"type":"string"},"serverIp":{"type":"string"}},"required":["domain"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.create":{"method":"POST","path":"/gitea.create","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaUrl","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.one":{"method":"GET","path":"/gitea.one","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.giteaProviders":{"method":"GET","path":"/gitea.giteaProviders","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaRepositories":{"method":"GET","path":"/gitea.getGiteaRepositories","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaBranches":{"method":"GET","path":"/gitea.getGiteaBranches","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string","minLength":1},"repositoryName":{"type":"string","minLength":1},"giteaId":{"type":"string"}},"required":["owner","repositoryName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.testConnection":{"method":"POST","path":"/gitea.testConnection","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"organizationName":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.update":{"method":"POST","path":"/gitea.update","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaId","giteaUrl","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaUrl":{"method":"GET","path":"/gitea.getGiteaUrl","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.getAll":{"method":"GET","path":"/gitProvider.getAll","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.toggleShare":{"method":"POST","path":"/gitProvider.toggleShare","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1},"sharedWithOrganization":{"type":"boolean"}},"required":["gitProviderId","sharedWithOrganization"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.allForPermissions":{"method":"GET","path":"/gitProvider.allForPermissions","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.remove":{"method":"POST","path":"/gitProvider.remove","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1}},"required":["gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.one":{"method":"GET","path":"/github.one","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubRepositories":{"method":"GET","path":"/github.getGithubRepositories","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubBranches":{"method":"GET","path":"/github.getGithubBranches","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"repo":{"type":"string","minLength":1},"owner":{"type":"string","minLength":1},"githubId":{"type":"string"}},"required":["repo","owner"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.githubProviders":{"method":"GET","path":"/github.githubProviders","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.testConnection":{"method":"POST","path":"/github.testConnection","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.update":{"method":"POST","path":"/github.update","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"githubAppName":{"type":"string","minLength":1}},"required":["githubId","name","gitProviderId","githubAppName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.create":{"method":"POST","path":"/gitlab.create","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"gitProviderId":{"type":"string"},"redirectUri":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["authId","name","gitlabUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.one":{"method":"GET","path":"/gitlab.one","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.gitlabProviders":{"method":"GET","path":"/gitlab.gitlabProviders","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabRepositories":{"method":"GET","path":"/gitlab.getGitlabRepositories","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabBranches":{"method":"GET","path":"/gitlab.getGitlabBranches","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"number"},"owner":{"type":"string"},"repo":{"type":"string"},"gitlabId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.testConnection":{"method":"POST","path":"/gitlab.testConnection","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1},"groupName":{"type":"string"}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.update":{"method":"POST","path":"/gitlab.update","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"redirectUri":{"type":"string"},"name":{"type":"string","minLength":1},"gitlabId":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","gitlabId","gitlabUrl","gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.create":{"method":"POST","path":"/libsql.create","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","appName","dockerImage","environmentId","description","databaseUser","databasePassword","sqldNode","sqldPrimaryUrl","enableNamespaces","serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.one":{"method":"GET","path":"/libsql.one","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.start":{"method":"POST","path":"/libsql.start","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.stop":{"method":"POST","path":"/libsql.stop","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveExternalPorts":{"method":"POST","path":"/libsql.saveExternalPorts","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.deploy":{"method":"POST","path":"/libsql.deploy","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.changeStatus":{"method":"POST","path":"/libsql.changeStatus","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["libsqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.remove":{"method":"POST","path":"/libsql.remove","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveEnvironment":{"method":"POST","path":"/libsql.saveEnvironment","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["libsqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.reload":{"method":"POST","path":"/libsql.reload","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"appName":{"type":"string","minLength":1}},"required":["libsqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.update":{"method":"POST","path":"/libsql.update","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.move":{"method":"POST","path":"/libsql.move","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["libsqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.rebuild":{"method":"POST","path":"/libsql.rebuild","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.readLogs":{"method":"GET","path":"/libsql.readLogs","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.create":{"method":"POST","path":"/mariadb.create","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mariadb:6","type":"string"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.one":{"method":"GET","path":"/mariadb.one","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.start":{"method":"POST","path":"/mariadb.start","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.stop":{"method":"POST","path":"/mariadb.stop","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveExternalPort":{"method":"POST","path":"/mariadb.saveExternalPort","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mariadbId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.deploy":{"method":"POST","path":"/mariadb.deploy","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changeStatus":{"method":"POST","path":"/mariadb.changeStatus","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mariadbId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.remove":{"method":"POST","path":"/mariadb.remove","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveEnvironment":{"method":"POST","path":"/mariadb.saveEnvironment","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mariadbId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.reload":{"method":"POST","path":"/mariadb.reload","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mariadbId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.update":{"method":"POST","path":"/mariadb.update","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changePassword":{"method":"POST","path":"/mariadb.changePassword","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mariadbId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.move":{"method":"POST","path":"/mariadb.move","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mariadbId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.rebuild":{"method":"POST","path":"/mariadb.rebuild","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.search":{"method":"GET","path":"/mariadb.search","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.readLogs":{"method":"GET","path":"/mariadb.readLogs","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.create":{"method":"POST","path":"/mongo.create","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mongo:15","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["name","environmentId","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.one":{"method":"GET","path":"/mongo.one","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.start":{"method":"POST","path":"/mongo.start","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.stop":{"method":"POST","path":"/mongo.stop","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveExternalPort":{"method":"POST","path":"/mongo.saveExternalPort","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mongoId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.deploy":{"method":"POST","path":"/mongo.deploy","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changeStatus":{"method":"POST","path":"/mongo.changeStatus","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mongoId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.reload":{"method":"POST","path":"/mongo.reload","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mongoId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.remove":{"method":"POST","path":"/mongo.remove","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveEnvironment":{"method":"POST","path":"/mongo.saveEnvironment","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mongoId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.update":{"method":"POST","path":"/mongo.update","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changePassword":{"method":"POST","path":"/mongo.changePassword","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["mongoId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.move":{"method":"POST","path":"/mongo.move","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mongoId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.rebuild":{"method":"POST","path":"/mongo.rebuild","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.search":{"method":"GET","path":"/mongo.search","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.readLogs":{"method":"GET","path":"/mongo.readLogs","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.create":{"method":"POST","path":"/mounts.create","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"mountPath":{"type":"string","minLength":1},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"serviceId":{"type":"string","minLength":1}},"required":["type","mountPath","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.remove":{"method":"POST","path":"/mounts.remove","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string"}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.one":{"method":"GET","path":"/mounts.one","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.update":{"method":"POST","path":"/mounts.update","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1},"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"mountPath":{"type":"string","minLength":1},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.allNamedByApplicationId":{"method":"GET","path":"/mounts.allNamedByApplicationId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.listByServiceId":{"method":"GET","path":"/mounts.listByServiceId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"serviceType":{"type":"string","minLength":1},"serviceId":{"type":"string","minLength":1}},"required":["serviceType","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.create":{"method":"POST","path":"/mysql.create","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mysql:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.one":{"method":"GET","path":"/mysql.one","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.start":{"method":"POST","path":"/mysql.start","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.stop":{"method":"POST","path":"/mysql.stop","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveExternalPort":{"method":"POST","path":"/mysql.saveExternalPort","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mysqlId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.deploy":{"method":"POST","path":"/mysql.deploy","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changeStatus":{"method":"POST","path":"/mysql.changeStatus","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mysqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.reload":{"method":"POST","path":"/mysql.reload","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mysqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.remove":{"method":"POST","path":"/mysql.remove","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveEnvironment":{"method":"POST","path":"/mysql.saveEnvironment","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mysqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.update":{"method":"POST","path":"/mysql.update","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changePassword":{"method":"POST","path":"/mysql.changePassword","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mysqlId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.move":{"method":"POST","path":"/mysql.move","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mysqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.rebuild":{"method":"POST","path":"/mysql.rebuild","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.search":{"method":"GET","path":"/mysql.search","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.readLogs":{"method":"GET","path":"/mysql.readLogs","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createSlack":{"method":"POST","path":"/notification.createSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateSlack":{"method":"POST","path":"/notification.updateSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"},"notificationId":{"type":"string","minLength":1},"slackId":{"type":"string"},"organizationId":{"type":"string"}},"required":["notificationId","slackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testSlackConnection":{"method":"POST","path":"/notification.testSlackConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTelegram":{"method":"POST","path":"/notification.createTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTelegram":{"method":"POST","path":"/notification.updateTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"},"notificationId":{"type":"string","minLength":1},"telegramId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","telegramId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTelegramConnection":{"method":"POST","path":"/notification.testTelegramConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createDiscord":{"method":"POST","path":"/notification.createDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateDiscord":{"method":"POST","path":"/notification.updateDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"discordId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","discordId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testDiscordConnection":{"method":"POST","path":"/notification.testDiscordConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createEmail":{"method":"POST","path":"/notification.createEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","smtpServer","smtpPort","username","password","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateEmail":{"method":"POST","path":"/notification.updateEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"emailId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","emailId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testEmailConnection":{"method":"POST","path":"/notification.testEmailConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"fromAddress":{"type":"string","minLength":1}},"required":["smtpServer","smtpPort","username","password","toAddresses","fromAddress"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createResend":{"method":"POST","path":"/notification.createResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateResend":{"method":"POST","path":"/notification.updateResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"resendId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","resendId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testResendConnection":{"method":"POST","path":"/notification.testResendConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.remove":{"method":"POST","path":"/notification.remove","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.one":{"method":"GET","path":"/notification.one","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.all":{"method":"GET","path":"/notification.all","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.receiveNotification":{"method":"POST","path":"/notification.receiveNotification","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"ServerType":{"default":"Dokploy","type":"string","enum":["Dokploy","Remote"]},"Type":{"type":"string","enum":["Memory","CPU"]},"Value":{"type":"number"},"Threshold":{"type":"number"},"Message":{"type":"string"},"Timestamp":{"type":"string"},"Token":{"type":"string"}},"required":["Type","Value","Threshold","Message","Timestamp","Token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createGotify":{"method":"POST","path":"/notification.createGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","appToken","priority","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateGotify":{"method":"POST","path":"/notification.updateGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"gotifyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","gotifyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testGotifyConnection":{"method":"POST","path":"/notification.testGotifyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["serverUrl","appToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createNtfy":{"method":"POST","path":"/notification.createNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateNtfy":{"method":"POST","path":"/notification.updateNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1},"notificationId":{"type":"string","minLength":1},"ntfyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","ntfyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testNtfyConnection":{"method":"POST","path":"/notification.testNtfyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createMattermost":{"method":"POST","path":"/notification.createMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateMattermost":{"method":"POST","path":"/notification.updateMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"},"notificationId":{"type":"string","minLength":1},"mattermostId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","mattermostId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testMattermostConnection":{"method":"POST","path":"/notification.testMattermostConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createCustom":{"method":"POST","path":"/notification.createCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["name","endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateCustom":{"method":"POST","path":"/notification.updateCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"customId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","customId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testCustomConnection":{"method":"POST","path":"/notification.testCustomConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createLark":{"method":"POST","path":"/notification.createLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateLark":{"method":"POST","path":"/notification.updateLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"larkId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","larkId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testLarkConnection":{"method":"POST","path":"/notification.testLarkConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTeams":{"method":"POST","path":"/notification.createTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTeams":{"method":"POST","path":"/notification.updateTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"teamsId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","teamsId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTeamsConnection":{"method":"POST","path":"/notification.testTeamsConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createPushover":{"method":"POST","path":"/notification.createPushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"default":0,"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["name","userKey","apiToken"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updatePushover":{"method":"POST","path":"/notification.updatePushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1},"pushoverId":{"type":"string","minLength":1},"organizationId":{"type":"string"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]},"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"}},"required":["notificationId","pushoverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testPushoverConnection":{"method":"POST","path":"/notification.testPushoverConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["userKey","apiToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.getEmailProviders":{"method":"GET","path":"/notification.getEmailProviders","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.create":{"method":"POST","path":"/port.create","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]},"applicationId":{"type":"string","minLength":1}},"required":["publishedPort","publishMode","targetPort","protocol","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.one":{"method":"GET","path":"/port.one","tag":"port","inputKind":"query","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.delete":{"method":"POST","path":"/port.delete","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.update":{"method":"POST","path":"/port.update","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1},"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]}},"required":["portId","publishedPort","publishMode","targetPort","protocol"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.create":{"method":"POST","path":"/postgres.create","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"default":"postgres:18","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databaseName","databaseUser","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.one":{"method":"GET","path":"/postgres.one","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.start":{"method":"POST","path":"/postgres.start","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.stop":{"method":"POST","path":"/postgres.stop","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveExternalPort":{"method":"POST","path":"/postgres.saveExternalPort","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["postgresId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.deploy":{"method":"POST","path":"/postgres.deploy","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changeStatus":{"method":"POST","path":"/postgres.changeStatus","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["postgresId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.remove":{"method":"POST","path":"/postgres.remove","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveEnvironment":{"method":"POST","path":"/postgres.saveEnvironment","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["postgresId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.reload":{"method":"POST","path":"/postgres.reload","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["postgresId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.update":{"method":"POST","path":"/postgres.update","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changePassword":{"method":"POST","path":"/postgres.changePassword","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["postgresId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.move":{"method":"POST","path":"/postgres.move","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["postgresId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.rebuild":{"method":"POST","path":"/postgres.rebuild","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.search":{"method":"GET","path":"/postgres.search","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.readLogs":{"method":"GET","path":"/postgres.readLogs","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.all":{"method":"GET","path":"/previewDeployment.all","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.one":{"method":"GET","path":"/previewDeployment.one","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.delete":{"method":"POST","path":"/previewDeployment.delete","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.redeploy":{"method":"POST","path":"/previewDeployment.redeploy","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.create":{"method":"POST","path":"/project.create","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.one":{"method":"GET","path":"/project.one","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.all":{"method":"GET","path":"/project.all","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.allForPermissions":{"method":"GET","path":"/project.allForPermissions","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.homeStats":{"method":"GET","path":"/project.homeStats","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.search":{"method":"GET","path":"/project.search","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.remove":{"method":"POST","path":"/project.remove","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.update":{"method":"POST","path":"/project.update","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"},"env":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.duplicate":{"method":"POST","path":"/project.duplicate","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"sourceEnvironmentId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"includeServices":{"default":true,"type":"boolean"},"selectedServices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose","libsql","mariadb","mongo","mysql","postgres","redis"]}},"required":["id","type"]}},"duplicateInSameProject":{"default":false,"type":"boolean"}},"required":["sourceEnvironmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.create":{"method":"POST","path":"/redirects.create","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"},"applicationId":{"type":"string"}},"required":["regex","replacement","permanent","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.one":{"method":"GET","path":"/redirects.one","tag":"redirects","inputKind":"query","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.delete":{"method":"POST","path":"/redirects.delete","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.update":{"method":"POST","path":"/redirects.update","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1},"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"}},"required":["redirectId","regex","replacement","permanent"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.create":{"method":"POST","path":"/redis.create","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databasePassword":{"type":"string"},"dockerImage":{"default":"redis:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.one":{"method":"GET","path":"/redis.one","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.start":{"method":"POST","path":"/redis.start","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.reload":{"method":"POST","path":"/redis.reload","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["redisId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.stop":{"method":"POST","path":"/redis.stop","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveExternalPort":{"method":"POST","path":"/redis.saveExternalPort","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["redisId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.deploy":{"method":"POST","path":"/redis.deploy","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changeStatus":{"method":"POST","path":"/redis.changeStatus","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["redisId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.remove":{"method":"POST","path":"/redis.remove","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveEnvironment":{"method":"POST","path":"/redis.saveEnvironment","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["redisId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.update":{"method":"POST","path":"/redis.update","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databasePassword":{"type":"string"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"environmentId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changePassword":{"method":"POST","path":"/redis.changePassword","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["redisId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.move":{"method":"POST","path":"/redis.move","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["redisId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.rebuild":{"method":"POST","path":"/redis.rebuild","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.search":{"method":"GET","path":"/redis.search","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.readLogs":{"method":"GET","path":"/redis.readLogs","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.create":{"method":"POST","path":"/registry.create","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["registryName","username","password","registryUrl","registryType","imagePrefix"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.remove":{"method":"POST","path":"/registry.remove","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.update":{"method":"POST","path":"/registry.update","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"registryName":{"type":"string","minLength":1},"imagePrefix":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"createdAt":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"organizationId":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.all":{"method":"GET","path":"/registry.all","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.one":{"method":"GET","path":"/registry.one","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistry":{"method":"POST","path":"/registry.testRegistry","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["username","password","registryUrl","registryType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistryById":{"method":"POST","path":"/registry.testRegistryById","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.create":{"method":"POST","path":"/security.create","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["applicationId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.one":{"method":"GET","path":"/security.one","tag":"security","inputKind":"query","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.delete":{"method":"POST","path":"/security.delete","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.update":{"method":"POST","path":"/security.update","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["securityId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.create":{"method":"POST","path":"/server.create","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]}},"required":["name","description","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.one":{"method":"GET","path":"/server.one","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getDefaultCommand":{"method":"GET","path":"/server.getDefaultCommand","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.all":{"method":"GET","path":"/server.all","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.allForPermissions":{"method":"GET","path":"/server.allForPermissions","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.count":{"method":"GET","path":"/server.count","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.withSSHKey":{"method":"GET","path":"/server.withSSHKey","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.buildServers":{"method":"GET","path":"/server.buildServers","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setup":{"method":"POST","path":"/server.setup","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.validate":{"method":"GET","path":"/server.validate","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.security":{"method":"GET","path":"/server.security","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setupMonitoring":{"method":"POST","path":"/server.setupMonitoring","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1},"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["serverId","metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.remove":{"method":"POST","path":"/server.remove","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.update":{"method":"POST","path":"/server.update","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string","minLength":1},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]},"command":{"type":"string"}},"required":["name","description","serverId","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.publicIp":{"method":"GET","path":"/server.publicIp","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerTime":{"method":"GET","path":"/server.getServerTime","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerMetrics":{"method":"GET","path":"/server.getServerMetrics","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getWebServerSettings":{"method":"GET","path":"/settings.getWebServerSettings","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadServer":{"method":"POST","path":"/settings.reloadServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanRedis":{"method":"POST","path":"/settings.cleanRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadRedis":{"method":"POST","path":"/settings.reloadRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAllDeploymentQueue":{"method":"POST","path":"/settings.cleanAllDeploymentQueue","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadTraefik":{"method":"POST","path":"/settings.reloadTraefik","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleDashboard":{"method":"POST","path":"/settings.toggleDashboard","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDashboard":{"type":"boolean"},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedImages":{"method":"POST","path":"/settings.cleanUnusedImages","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedVolumes":{"method":"POST","path":"/settings.cleanUnusedVolumes","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanStoppedContainers":{"method":"POST","path":"/settings.cleanStoppedContainers","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerBuilder":{"method":"POST","path":"/settings.cleanDockerBuilder","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerPrune":{"method":"POST","path":"/settings.cleanDockerPrune","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAll":{"method":"POST","path":"/settings.cleanAll","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanMonitoring":{"method":"POST","path":"/settings.cleanMonitoring","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDockerDiskUsage":{"method":"GET","path":"/settings.getDockerDiskUsage","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.saveSSHPrivateKey":{"method":"POST","path":"/settings.saveSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"sshPrivateKey":{"type":"string"}},"required":["sshPrivateKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.assignDomainServer":{"method":"POST","path":"/settings.assignDomainServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"letsEncryptEmail":{"anyOf":[{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},{"type":"string","const":""}]},{"type":"null"}]},"https":{"type":"boolean"}},"required":["host","certificateType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanSSHPrivateKey":{"method":"POST","path":"/settings.cleanSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateDockerCleanup":{"method":"POST","path":"/settings.updateDockerCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDockerCleanup":{"type":"boolean"},"serverId":{"type":"string"}},"required":["enableDockerCleanup"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikConfig":{"method":"GET","path":"/settings.readTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikConfig":{"method":"POST","path":"/settings.updateTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readWebServerTraefikConfig":{"method":"GET","path":"/settings.readWebServerTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateWebServerTraefikConfig":{"method":"POST","path":"/settings.updateWebServerTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readMiddlewareTraefikConfig":{"method":"GET","path":"/settings.readMiddlewareTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateMiddlewareTraefikConfig":{"method":"POST","path":"/settings.updateMiddlewareTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getUpdateData":{"method":"POST","path":"/settings.getUpdateData","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServer":{"method":"POST","path":"/settings.updateServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployVersion":{"method":"GET","path":"/settings.getDokployVersion","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getReleaseTag":{"method":"GET","path":"/settings.getReleaseTag","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readDirectories":{"method":"GET","path":"/settings.readDirectories","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikFile":{"method":"POST","path":"/settings.updateTraefikFile","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"traefikConfig":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikFile":{"method":"GET","path":"/settings.readTraefikFile","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getIp":{"method":"GET","path":"/settings.getIp","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServerIp":{"method":"POST","path":"/settings.updateServerIp","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverIp":{"type":"string"}},"required":["serverIp"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getOpenApiDocument":{"method":"GET","path":"/settings.getOpenApiDocument","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikEnv":{"method":"GET","path":"/settings.readTraefikEnv","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.writeTraefikEnv":{"method":"POST","path":"/settings.writeTraefikEnv","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"env":{"type":"string"},"serverId":{"type":"string"}},"required":["env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveTraefikDashboardPortEnabled":{"method":"GET","path":"/settings.haveTraefikDashboardPortEnabled","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveActivateRequests":{"method":"GET","path":"/settings.haveActivateRequests","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleRequests":{"method":"POST","path":"/settings.toggleRequests","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enable":{"type":"boolean"}},"required":["enable"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isCloud":{"method":"GET","path":"/settings.isCloud","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isUserSubscribed":{"method":"GET","path":"/settings.isUserSubscribed","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.health":{"method":"GET","path":"/settings.health","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkInfrastructureHealth":{"method":"GET","path":"/settings.checkInfrastructureHealth","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.setupGPU":{"method":"POST","path":"/settings.setupGPU","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkGPUStatus":{"method":"GET","path":"/settings.checkGPUStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikPorts":{"method":"POST","path":"/settings.updateTraefikPorts","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"},"additionalPorts":{"type":"array","items":{"type":"object","properties":{"targetPort":{"type":"number"},"publishedPort":{"type":"number"},"protocol":{"type":"string","enum":["tcp","udp","sctp"]}},"required":["targetPort","publishedPort","protocol"]}}},"required":["additionalPorts"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getTraefikPorts":{"method":"GET","path":"/settings.getTraefikPorts","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateLogCleanup":{"method":"POST","path":"/settings.updateLogCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"cronExpression":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["cronExpression"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getLogCleanupStatus":{"method":"GET","path":"/settings.getLogCleanupStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployCloudIps":{"method":"GET","path":"/settings.getDokployCloudIps","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.create":{"method":"POST","path":"/sshKey.create","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"privateKey":{"type":"string"},"publicKey":{"type":"string"},"organizationId":{"type":"string"}},"required":["name","privateKey","publicKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.remove":{"method":"POST","path":"/sshKey.remove","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.one":{"method":"GET","path":"/sshKey.one","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string","minLength":1}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.all":{"method":"GET","path":"/sshKey.all","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.allForApps":{"method":"GET","path":"/sshKey.allForApps","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.generate":{"method":"POST","path":"/sshKey.generate","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["rsa","ed25519"]}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.update":{"method":"POST","path":"/sshKey.update","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getCurrentPlan":{"method":"GET","path":"/stripe.getCurrentPlan","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getProducts":{"method":"GET","path":"/stripe.getProducts","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCheckoutSession":{"method":"POST","path":"/stripe.createCheckoutSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["legacy","hobby","startup"]},"productId":{"type":"string"},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","productId","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCustomerPortalSession":{"method":"POST","path":"/stripe.createCustomerPortalSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.upgradeSubscription":{"method":"POST","path":"/stripe.upgradeSubscription","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["hobby","startup"]},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.canCreateMoreServers":{"method":"GET","path":"/stripe.canCreateMoreServers","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.updateInvoiceNotifications":{"method":"POST","path":"/stripe.updateInvoiceNotifications","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getInvoices":{"method":"GET","path":"/stripe.getInvoices","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodes":{"method":"GET","path":"/swarm.getNodes","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeInfo":{"method":"GET","path":"/swarm.getNodeInfo","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeApps":{"method":"GET","path":"/swarm.getNodeApps","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getContainerStats":{"method":"GET","path":"/swarm.getContainerStats","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.all":{"method":"GET","path":"/user.all","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.one":{"method":"GET","path":"/user.one","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.session":{"method":"GET","path":"/user.session","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.get":{"method":"GET","path":"/user.get","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getPermissions":{"method":"GET","path":"/user.getPermissions","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.haveRootAccess":{"method":"GET","path":"/user.haveRootAccess","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBackups":{"method":"GET","path":"/user.getBackups","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getServerMetrics":{"method":"GET","path":"/user.getServerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.update":{"method":"POST","path":"/user.update","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"firstName":{"type":"string"},"lastName":{"type":"string"},"isRegistered":{"type":"boolean"},"expirationDate":{"type":"string"},"createdAt2":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"twoFactorEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"email":{"type":"string","minLength":1,"format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"emailVerified":{"type":"boolean"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"banned":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"banReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"banExpires":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"},"enablePaidFeatures":{"type":"boolean"},"allowImpersonation":{"type":"boolean"},"enableEnterpriseFeatures":{"type":"boolean"},"licenseKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeCustomerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeSubscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serversQuantity":{"type":"number"},"sendInvoiceNotifications":{"type":"boolean"},"password":{"type":"string"},"currentPassword":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getUserByToken":{"method":"GET","path":"/user.getUserByToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getMetricsToken":{"method":"GET","path":"/user.getMetricsToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.remove":{"method":"POST","path":"/user.remove","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.assignPermissions":{"method":"POST","path":"/user.assignPermissions","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"accessedProjects":{"type":"array","items":{"type":"string"}},"accessedEnvironments":{"type":"array","items":{"type":"string"}},"accessedServices":{"type":"array","items":{"type":"string"}},"accessedGitProviders":{"type":"array","items":{"type":"string"}},"accessedServers":{"type":"array","items":{"type":"string"}},"canCreateProjects":{"type":"boolean"},"canCreateServices":{"type":"boolean"},"canDeleteProjects":{"type":"boolean"},"canDeleteServices":{"type":"boolean"},"canAccessToDocker":{"type":"boolean"},"canAccessToTraefikFiles":{"type":"boolean"},"canAccessToAPI":{"type":"boolean"},"canAccessToSSHKeys":{"type":"boolean"},"canAccessToGitProviders":{"type":"boolean"},"canDeleteEnvironments":{"type":"boolean"},"canCreateEnvironments":{"type":"boolean"}},"required":["id","accessedProjects","accessedEnvironments","accessedServices","accessedGitProviders","accessedServers","canCreateProjects","canCreateServices","canDeleteProjects","canDeleteServices","canAccessToDocker","canAccessToTraefikFiles","canAccessToAPI","canAccessToSSHKeys","canAccessToGitProviders","canDeleteEnvironments","canCreateEnvironments"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getInvitations":{"method":"GET","path":"/user.getInvitations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getContainerMetrics":{"method":"GET","path":"/user.getContainerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"appName":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","appName","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.generateToken":{"method":"POST","path":"/user.generateToken","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.deleteApiKey":{"method":"POST","path":"/user.deleteApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKeyId":{"type":"string"}},"required":["apiKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createApiKey":{"method":"POST","path":"/user.createApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"prefix":{"type":"string"},"expiresIn":{"type":"number"},"metadata":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"rateLimitEnabled":{"type":"boolean"},"rateLimitTimeWindow":{"type":"number"},"rateLimitMax":{"type":"number"},"remaining":{"type":"number"},"refillAmount":{"type":"number"},"refillInterval":{"type":"number"}},"required":["name","metadata"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.checkUserOrganizations":{"method":"GET","path":"/user.checkUserOrganizations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createUserWithCredentials":{"method":"POST","path":"/user.createUserWithCredentials","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8},"role":{"type":"string","minLength":1}},"required":["email","password","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.sendInvitation":{"method":"POST","path":"/user.sendInvitation","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1}},"required":["invitationId","notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBookmarkedTemplates":{"method":"GET","path":"/user.getBookmarkedTemplates","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.toggleTemplateBookmark":{"method":"POST","path":"/user.toggleTemplateBookmark","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"templateId":{"type":"string","minLength":1}},"required":["templateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.one":{"method":"GET","path":"/ai.one","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getModels":{"method":"GET","path":"/ai.getModels","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"}},"required":["apiUrl","apiKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.create":{"method":"POST","path":"/ai.create","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"}},"required":["name","apiUrl","apiKey","model","isEnabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.update":{"method":"POST","path":"/ai.update","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getAll":{"method":"GET","path":"/ai.getAll","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.get":{"method":"GET","path":"/ai.get","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.delete":{"method":"POST","path":"/ai.delete","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getEnabledProviders":{"method":"GET","path":"/ai.getEnabledProviders","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.analyzeLogs":{"method":"POST","path":"/ai.analyzeLogs","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"logs":{"type":"string","minLength":1},"context":{"type":"string","enum":["build","runtime"]}},"required":["aiId","logs","context"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.testConnection":{"method":"POST","path":"/ai.testConnection","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1}},"required":["apiUrl","apiKey","model"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.suggest":{"method":"POST","path":"/ai.suggest","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"},"input":{"type":"string"},"serverId":{"type":"string"}},"required":["aiId","input"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.deploy":{"method":"POST","path":"/ai.deploy","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"dockerCompose":{"type":"string","minLength":1},"envVariables":{"type":"string"},"serverId":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"domains":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number","minimum":1},"serviceName":{"type":"string","minLength":1}},"required":["host","port","serviceName"]}},"configFiles":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string","minLength":1}},"required":["filePath","content"]}}},"required":["environmentId","id","dockerCompose","envVariables","name","description"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.create":{"method":"POST","path":"/organization.create","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.all":{"method":"GET","path":"/organization.all","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.one":{"method":"GET","path":"/organization.one","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.update":{"method":"POST","path":"/organization.update","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string"},"logo":{"type":"string"}},"required":["organizationId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.delete":{"method":"POST","path":"/organization.delete","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.inviteMember":{"method":"POST","path":"/organization.inviteMember","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","minLength":1}},"required":["email","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.allInvitations":{"method":"GET","path":"/organization.allInvitations","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.removeInvitation":{"method":"POST","path":"/organization.removeInvitation","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string"}},"required":["invitationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.updateMemberRole":{"method":"POST","path":"/organization.updateMemberRole","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"memberId":{"type":"string"},"role":{"type":"string","minLength":1}},"required":["memberId","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.setDefault":{"method":"POST","path":"/organization.setDefault","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.active":{"method":"GET","path":"/organization.active","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.activate":{"method":"POST","path":"/licenseKey.activate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"licenseKey":{"type":"string","minLength":1}},"required":["licenseKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.validate":{"method":"POST","path":"/licenseKey.validate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.deactivate":{"method":"POST","path":"/licenseKey.deactivate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.getEnterpriseSettings":{"method":"GET","path":"/licenseKey.getEnterpriseSettings","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.haveValidLicenseKey":{"method":"GET","path":"/licenseKey.haveValidLicenseKey","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.updateEnterpriseSettings":{"method":"POST","path":"/licenseKey.updateEnterpriseSettings","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"enableEnterpriseFeatures":{"type":"boolean"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.showSignInWithSSO":{"method":"GET","path":"/sso.showSignInWithSSO","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.listProviders":{"method":"GET","path":"/sso.listProviders","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.getTrustedOrigins":{"method":"GET","path":"/sso.getTrustedOrigins","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.one":{"method":"GET","path":"/sso.one","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.update":{"method":"POST","path":"/sso.update","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.deleteProvider":{"method":"POST","path":"/sso.deleteProvider","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.register":{"method":"POST","path":"/sso.register","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.addTrustedOrigin":{"method":"POST","path":"/sso.addTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.removeTrustedOrigin":{"method":"POST","path":"/sso.removeTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.updateTrustedOrigin":{"method":"POST","path":"/sso.updateTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"oldOrigin":{"type":"string","minLength":1},"newOrigin":{"type":"string","minLength":1}},"required":["oldOrigin","newOrigin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.get":{"method":"GET","path":"/whitelabeling.get","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.update":{"method":"POST","path":"/whitelabeling.update","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{"whitelabelingConfig":{"type":"object","properties":{"appName":{"anyOf":[{"type":"string"},{"type":"null"}]},"appDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customCss":{"anyOf":[{"type":"string"},{"type":"null"}]},"loginLogoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"docsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"footerText":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["appName","appDescription","logoUrl","faviconUrl","customCss","loginLogoUrl","supportUrl","docsUrl","errorPageTitle","errorPageDescription","metaTitle","footerText"]}},"required":["whitelabelingConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.reset":{"method":"POST","path":"/whitelabeling.reset","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.getPublic":{"method":"GET","path":"/whitelabeling.getPublic","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.all":{"method":"GET","path":"/customRole.all","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.create":{"method":"POST","path":"/customRole.create","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.update":{"method":"POST","path":"/customRole.update","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1},"newRoleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.remove":{"method":"POST","path":"/customRole.remove","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.membersByRole":{"method":"GET","path":"/customRole.membersByRole","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.getStatements":{"method":"GET","path":"/customRole.getStatements","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"auditLog.all":{"method":"GET","path":"/auditLog.all","tag":"auditLog","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"},"userEmail":{"type":"string"},"resourceName":{"type":"string"},"action":{"type":"string","enum":["create","update","delete","deploy","cancel","redeploy","login","logout"]},"resourceType":{"type":"string","enum":["project","service","environment","deployment","user","customRole","domain","certificate","registry","server","sshKey","gitProvider","notification","settings","session"]},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"number","minimum":1,"maximum":500},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.create":{"method":"POST","path":"/schedule.create","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"},"name":{"type":"string"},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.update":{"method":"POST","path":"/schedule.update","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1},"name":{"type":"string"},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["scheduleId","name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.delete":{"method":"POST","path":"/schedule.delete","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.list":{"method":"GET","path":"/schedule.list","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]}},"required":["id","scheduleType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.one":{"method":"GET","path":"/schedule.one","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.runManually":{"method":"POST","path":"/schedule.runManually","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.delete":{"method":"POST","path":"/rollback.delete","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.rollback":{"method":"POST","path":"/rollback.rollback","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.list":{"method":"GET","path":"/volumeBackups.list","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"volumeBackupType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]}},"required":["id","volumeBackupType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.create":{"method":"POST","path":"/volumeBackups.create","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"}},"required":["name","volumeName","prefix","cronExpression","destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.one":{"method":"GET","path":"/volumeBackups.one","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.delete":{"method":"POST","path":"/volumeBackups.delete","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.update":{"method":"POST","path":"/volumeBackups.update","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"},"volumeBackupId":{"type":"string","minLength":1}},"required":["name","volumeName","prefix","cronExpression","destinationId","volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.runManually":{"method":"POST","path":"/volumeBackups.runManually","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.create":{"method":"POST","path":"/environment.create","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string","minLength":1}},"required":["name","projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.one":{"method":"GET","path":"/environment.one","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.byProjectId":{"method":"GET","path":"/environment.byProjectId","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.remove":{"method":"POST","path":"/environment.remove","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.update":{"method":"POST","path":"/environment.update","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string"},"env":{"type":"string"}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.duplicate":{"method":"POST","path":"/environment.duplicate","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"}},"required":["environmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.search":{"method":"GET","path":"/environment.search","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.create":{"method":"POST","path":"/tag.create","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.all":{"method":"GET","path":"/tag.all","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.one":{"method":"GET","path":"/tag.one","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.update":{"method":"POST","path":"/tag.update","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.remove":{"method":"POST","path":"/tag.remove","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.assignToProject":{"method":"POST","path":"/tag.assignToProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.removeFromProject":{"method":"POST","path":"/tag.removeFromProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.bulkAssign":{"method":"POST","path":"/tag.bulkAssign","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["projectId","tagIds"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.create":{"method":"POST","path":"/patch.create","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string"},"type":{"type":"string","enum":["create","update","delete"]},"enabled":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.one":{"method":"GET","path":"/patch.one","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.byEntityId":{"method":"GET","path":"/patch.byEntityId","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.update":{"method":"POST","path":"/patch.update","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"type":{"type":"string","enum":["create","update","delete"]},"filePath":{"type":"string","minLength":1},"enabled":{"type":"boolean"},"content":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.delete":{"method":"POST","path":"/patch.delete","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.toggleEnabled":{"method":"POST","path":"/patch.toggleEnabled","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"required":["patchId","enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.ensureRepo":{"method":"POST","path":"/patch.ensureRepo","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoDirectories":{"method":"GET","path":"/patch.readRepoDirectories","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"repoPath":{"type":"string"}},"required":["id","type","repoPath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoFile":{"method":"GET","path":"/patch.readRepoFile","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.saveFileAsPatch":{"method":"POST","path":"/patch.saveFileAsPatch","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"},"content":{"type":"string"},"patchType":{"default":"update","type":"string","enum":["create","update"]}},"required":["id","type","filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.markFileForDeletion":{"method":"POST","path":"/patch.markFileForDeletion","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.cleanPatchRepos":{"method":"POST","path":"/patch.cleanPatchRepos","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}}}') as Record +export const procedureSchemas = JSON.parse('{"admin.setupMonitoring":{"method":"POST","path":"/admin.setupMonitoring","tag":"admin","inputKind":"body","inputSchema":{"type":"object","properties":{"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.create":{"method":"POST","path":"/application.create","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.one":{"method":"GET","path":"/application.one","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.reload":{"method":"POST","path":"/application.reload","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"applicationId":{"type":"string"}},"required":["appName","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.delete":{"method":"POST","path":"/application.delete","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.stop":{"method":"POST","path":"/application.stop","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.start":{"method":"POST","path":"/application.start","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.redeploy":{"method":"POST","path":"/application.redeploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveEnvironment":{"method":"POST","path":"/application.saveEnvironment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"createEnvFile":{"type":"boolean"}},"required":["applicationId","env","buildArgs","buildSecrets","createEnvFile"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBuildType":{"method":"POST","path":"/application.saveBuildType","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["applicationId","buildType","dockerfile","dockerContextPath","dockerBuildStage","herokuVersion","railpackVersion"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGithubProvider":{"method":"POST","path":"/application.saveGithubProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9._\\\\-/#]+$"},"triggerType":{"default":"push","type":"string","enum":["push","tag"]},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","repository","owner","buildPath","githubId","branch","triggerType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitlabProvider":{"method":"POST","path":"/application.saveGitlabProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9._\\\\-/#]+$"},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","gitlabBuildPath","gitlabOwner","gitlabRepository","gitlabId","gitlabProjectId","gitlabPathNamespace","gitlabBranch"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveBitbucketProvider":{"method":"POST","path":"/application.saveBitbucketProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"bitbucketBranch":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9._\\\\-/#]+$"},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["bitbucketBuildPath","bitbucketOwner","bitbucketRepository","bitbucketRepositorySlug","bitbucketId","applicationId","bitbucketBranch"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGiteaProvider":{"method":"POST","path":"/application.saveGiteaProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9._\\\\-/#]+$"},"enableSubmodules":{"type":"boolean"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationId","giteaBuildPath","giteaOwner","giteaRepository","giteaId","giteaBranch"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveDockerProvider":{"method":"POST","path":"/application.saveDockerProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["dockerImage","applicationId","username","password","registryUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.saveGitProvider":{"method":"POST","path":"/application.saveGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"customGitBranch":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9._\\\\-/#]+$"},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["applicationId","customGitBuildPath","customGitUrl","watchPaths","customGitBranch"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.disconnectGitProvider":{"method":"POST","path":"/application.disconnectGitProvider","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.markRunning":{"method":"POST","path":"/application.markRunning","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.update":{"method":"POST","path":"/application.update","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewEnv":{"anyOf":[{"type":"string"},{"type":"null"}]},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewBuildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewBuildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLabels":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previewWildcard":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"previewHttps":{"type":"boolean"},"previewPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewCertificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"previewCustomCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"previewLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"isPreviewDeploymentsActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"previewRequireCollaboratorPermissions":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"rollbackActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"buildArgs":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildSecrets":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"icon":{"anyOf":[{"anyOf":[{"type":"string","maxLength":2097152},{"type":"null"}]},{"type":"null"}]},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["github","docker","git","gitlab","bitbucket","gitea","drop"]},"cleanCache":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"password":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"anyOf":[{"type":"string"},{"type":"null"}]},"registryUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enableSubmodules":{"type":"boolean"},"dockerfile":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerContextPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerBuildStage":{"anyOf":[{"type":"string"},{"type":"null"}]},"dropBuildPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"buildType":{"type":"string","enum":["dockerfile","heroku_buildpacks","paketo_buildpacks","nixpacks","static","railpack"]},"railpackVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"herokuVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishDirectory":{"anyOf":[{"type":"string"},{"type":"null"}]},"isStaticSpa":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createEnvFile":{"type":"boolean"},"createdAt":{"type":"string"},"registryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"rollbackRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildServerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"buildRegistryId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.refreshToken":{"method":"POST","path":"/application.refreshToken","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.deploy":{"method":"POST","path":"/application.deploy","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cleanQueues":{"method":"POST","path":"/application.cleanQueues","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.clearDeployments":{"method":"POST","path":"/application.clearDeployments","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.killBuild":{"method":"POST","path":"/application.killBuild","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readTraefikConfig":{"method":"GET","path":"/application.readTraefikConfig","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.dropDeployment":{"method":"POST","path":"/application.dropDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.updateTraefikConfig":{"method":"POST","path":"/application.updateTraefikConfig","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"traefikConfig":{"type":"string"}},"required":["applicationId","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readAppMonitoring":{"method":"GET","path":"/application.readAppMonitoring","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.move":{"method":"POST","path":"/application.move","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["applicationId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.cancelDeployment":{"method":"POST","path":"/application.cancelDeployment","tag":"application","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.search":{"method":"GET","path":"/application.search","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"repository":{"type":"string"},"owner":{"type":"string"},"dockerImage":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"application.readLogs":{"method":"GET","path":"/application.readLogs","tag":"application","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.create":{"method":"POST","path":"/backup.create","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"destinationId":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"database":{"type":"string","minLength":1},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"backupType":{"type":"string","enum":["database","compose"]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]}},"required":["schedule","prefix","destinationId","database","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.one":{"method":"GET","path":"/backup.one","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.update":{"method":"POST","path":"/backup.update","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"schedule":{"type":"string"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"prefix":{"type":"string","minLength":1},"backupId":{"type":"string"},"destinationId":{"type":"string"},"database":{"type":"string","minLength":1},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{},{"type":"null"}]},"databaseType":{"type":"string","enum":["postgres","mariadb","mysql","mongo","web-server","libsql"]}},"required":["schedule","enabled","prefix","backupId","destinationId","database","keepLatestCount","serviceName","metadata","databaseType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.remove":{"method":"POST","path":"/backup.remove","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string"}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupPostgres":{"method":"POST","path":"/backup.manualBackupPostgres","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMySql":{"method":"POST","path":"/backup.manualBackupMySql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMariadb":{"method":"POST","path":"/backup.manualBackupMariadb","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupCompose":{"method":"POST","path":"/backup.manualBackupCompose","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupMongo":{"method":"POST","path":"/backup.manualBackupMongo","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupLibsql":{"method":"POST","path":"/backup.manualBackupLibsql","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.manualBackupWebServer":{"method":"POST","path":"/backup.manualBackupWebServer","tag":"backup","inputKind":"body","inputSchema":{"type":"object","properties":{"backupId":{"type":"string","minLength":1}},"required":["backupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"backup.listBackupFiles":{"method":"GET","path":"/backup.listBackupFiles","tag":"backup","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"},"search":{"type":"string"},"serverId":{"type":"string"}},"required":["destinationId","search"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.create":{"method":"POST","path":"/bitbucket.create","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string"},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["authId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.one":{"method":"GET","path":"/bitbucket.one","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.bitbucketProviders":{"method":"GET","path":"/bitbucket.bitbucketProviders","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketRepositories":{"method":"GET","path":"/bitbucket.getBitbucketRepositories","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.getBitbucketBranches":{"method":"GET","path":"/bitbucket.getBitbucketBranches","tag":"bitbucket","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string"},"repo":{"type":"string"},"bitbucketId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.testConnection":{"method":"POST","path":"/bitbucket.testConnection","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"workspaceName":{"type":"string"},"apiToken":{"type":"string"},"appPassword":{"type":"string"}},"required":["bitbucketId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"bitbucket.update":{"method":"POST","path":"/bitbucket.update","tag":"bitbucket","inputKind":"body","inputSchema":{"type":"object","properties":{"bitbucketId":{"type":"string","minLength":1},"bitbucketUsername":{"type":"string"},"bitbucketEmail":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"appPassword":{"type":"string"},"apiToken":{"type":"string"},"bitbucketWorkspaceName":{"type":"string"},"gitProviderId":{"type":"string"},"name":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["bitbucketId","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.create":{"method":"POST","path":"/certificates.create","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string"},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1},"certificatePath":{"type":"string"},"autoRenew":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"organizationId":{"type":"string"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","certificateData","privateKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.one":{"method":"GET","path":"/certificates.one","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.remove":{"method":"POST","path":"/certificates.remove","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.all":{"method":"GET","path":"/certificates.all","tag":"certificates","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"certificates.update":{"method":"POST","path":"/certificates.update","tag":"certificates","inputKind":"body","inputSchema":{"type":"object","properties":{"certificateId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"certificateData":{"type":"string","minLength":1},"privateKey":{"type":"string","minLength":1}},"required":["certificateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.getNodes":{"method":"GET","path":"/cluster.getNodes","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.removeWorker":{"method":"POST","path":"/cluster.removeWorker","tag":"cluster","inputKind":"body","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addWorker":{"method":"GET","path":"/cluster.addWorker","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"cluster.addManager":{"method":"GET","path":"/cluster.addManager","tag":"cluster","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.create":{"method":"POST","path":"/compose.create","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environmentId":{"type":"string"},"composeType":{"type":"string","enum":["docker-compose","stack"]},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"}},"required":["name","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.one":{"method":"GET","path":"/compose.one","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.update":{"method":"POST","path":"/compose.update","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeFile":{"type":"string"},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","enum":["git","github","gitlab","bitbucket","gitea","raw"]},"composeType":{"type":"string","enum":["docker-compose","stack"]},"repository":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"anyOf":[{"type":"string"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoDeploy":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"gitlabProjectId":{"anyOf":[{"type":"number"},{"type":"null"}]},"gitlabRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabPathNamespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketRepositorySlug":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaRepository":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaOwner":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitBranch":{"anyOf":[{"type":"string"},{"type":"null"}]},"customGitSSHKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"command":{"type":"string"},"enableSubmodules":{"type":"boolean"},"composePath":{"type":"string","minLength":1},"suffix":{"type":"string"},"randomize":{"type":"boolean"},"isolatedDeployment":{"type":"boolean"},"isolatedDeploymentsVolume":{"type":"boolean"},"triggerType":{"anyOf":[{"type":"string","enum":["push","tag"]},{"type":"null"}]},"composeStatus":{"type":"string","enum":["idle","running","done","error"]},"environmentId":{"type":"string"},"createdAt":{"type":"string"},"watchPaths":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"githubId":{"anyOf":[{"type":"string"},{"type":"null"}]},"gitlabId":{"anyOf":[{"type":"string"},{"type":"null"}]},"bitbucketId":{"anyOf":[{"type":"string"},{"type":"null"}]},"giteaId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.saveEnvironment":{"method":"POST","path":"/compose.saveEnvironment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["composeId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.delete":{"method":"POST","path":"/compose.delete","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"deleteVolumes":{"type":"boolean"}},"required":["composeId","deleteVolumes"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cleanQueues":{"method":"POST","path":"/compose.cleanQueues","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.clearDeployments":{"method":"POST","path":"/compose.clearDeployments","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.killBuild":{"method":"POST","path":"/compose.killBuild","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadServices":{"method":"GET","path":"/compose.loadServices","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"type":{"default":"cache","type":"string","enum":["fetch","cache"]}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.loadMountsByService":{"method":"GET","path":"/compose.loadMountsByService","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"serviceName":{"type":"string","minLength":1}},"required":["composeId","serviceName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.fetchSourceType":{"method":"POST","path":"/compose.fetchSourceType","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.randomizeCompose":{"method":"POST","path":"/compose.randomizeCompose","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.isolatedDeployment":{"method":"POST","path":"/compose.isolatedDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"suffix":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getConvertedCompose":{"method":"GET","path":"/compose.getConvertedCompose","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deploy":{"method":"POST","path":"/compose.deploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.redeploy":{"method":"POST","path":"/compose.redeploy","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"title":{"type":"string"},"description":{"type":"string"}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.stop":{"method":"POST","path":"/compose.stop","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.start":{"method":"POST","path":"/compose.start","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getDefaultCommand":{"method":"GET","path":"/compose.getDefaultCommand","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.refreshToken":{"method":"POST","path":"/compose.refreshToken","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.deployTemplate":{"method":"POST","path":"/compose.deployTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string"},"serverId":{"type":"string"},"id":{"type":"string"},"baseUrl":{"type":"string"}},"required":["environmentId","id"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.templates":{"method":"GET","path":"/compose.templates","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.getTags":{"method":"GET","path":"/compose.getTags","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"baseUrl":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.disconnectGitProvider":{"method":"POST","path":"/compose.disconnectGitProvider","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.move":{"method":"POST","path":"/compose.move","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["composeId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.processTemplate":{"method":"POST","path":"/compose.processTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.previewTemplate":{"method":"POST","path":"/compose.previewTemplate","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"appName":{"type":"string"},"serverId":{"type":"string"}},"required":["base64","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.import":{"method":"POST","path":"/compose.import","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"base64":{"type":"string"},"composeId":{"type":"string","minLength":1}},"required":["base64","composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.cancelDeployment":{"method":"POST","path":"/compose.cancelDeployment","tag":"compose","inputKind":"body","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.search":{"method":"GET","path":"/compose.search","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"compose.readLogs":{"method":"GET","path":"/compose.readLogs","tag":"compose","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1},"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["composeId","containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.all":{"method":"GET","path":"/deployment.all","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByCompose":{"method":"GET","path":"/deployment.allByCompose","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByServer":{"method":"GET","path":"/deployment.allByServer","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allCentralized":{"method":"GET","path":"/deployment.allCentralized","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.queueList":{"method":"GET","path":"/deployment.queueList","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.allByType":{"method":"GET","path":"/deployment.allByType","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose","server","schedule","previewDeployment","backup","volumeBackup"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.killProcess":{"method":"POST","path":"/deployment.killProcess","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.removeDeployment":{"method":"POST","path":"/deployment.removeDeployment","tag":"deployment","inputKind":"body","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"deployment.readLogs":{"method":"GET","path":"/deployment.readLogs","tag":"deployment","inputKind":"query","inputSchema":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000}},"required":["deploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.create":{"method":"POST","path":"/destination.create","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.testConnection":{"method":"POST","path":"/destination.testConnection","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","provider","accessKey","bucket","region","endpoint","secretAccessKey","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.one":{"method":"GET","path":"/destination.one","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string","minLength":1}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.all":{"method":"GET","path":"/destination.all","tag":"destination","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.remove":{"method":"POST","path":"/destination.remove","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"destinationId":{"type":"string"}},"required":["destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"destination.update":{"method":"POST","path":"/destination.update","tag":"destination","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"accessKey":{"type":"string"},"bucket":{"type":"string"},"region":{"type":"string"},"endpoint":{"type":"string"},"secretAccessKey":{"type":"string"},"destinationId":{"type":"string"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"additionalFlags":{"anyOf":[{"default":[],"type":"array","items":{"type":"string","pattern":"^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$"}},{"type":"null"}]},"serverId":{"type":"string"}},"required":["name","accessKey","bucket","region","endpoint","secretAccessKey","destinationId","provider","additionalFlags"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainers":{"method":"GET","path":"/docker.getContainers","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.restartContainer":{"method":"POST","path":"/docker.restartContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.startContainer":{"method":"POST","path":"/docker.startContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.stopContainer":{"method":"POST","path":"/docker.stopContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.killContainer":{"method":"POST","path":"/docker.killContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.removeContainer":{"method":"POST","path":"/docker.removeContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getConfig":{"method":"GET","path":"/docker.getConfig","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["containerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppNameMatch":{"method":"GET","path":"/docker.getContainersByAppNameMatch","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appType":{"type":"string","enum":["stack","docker-compose"]},"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getContainersByAppLabel":{"method":"GET","path":"/docker.getContainersByAppLabel","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"},"type":{"type":"string","enum":["standalone","swarm"]}},"required":["appName","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getStackContainersByAppName":{"method":"GET","path":"/docker.getStackContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.getServiceContainersByAppName":{"method":"GET","path":"/docker.getServiceContainersByAppName","tag":"docker","inputKind":"query","inputSchema":{"type":"object","properties":{"appName":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9.\\\\-_]+$"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"docker.uploadFileToContainer":{"method":"POST","path":"/docker.uploadFileToContainer","tag":"docker","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.create":{"method":"POST","path":"/domain.create","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"previewDeploymentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"forwardAuthEnabled":{"type":"boolean"}},"required":["host"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byApplicationId":{"method":"GET","path":"/domain.byApplicationId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.byComposeId":{"method":"GET","path":"/domain.byComposeId","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"composeId":{"type":"string","minLength":1}},"required":["composeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.generateDomain":{"method":"POST","path":"/domain.generateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"appName":{"type":"string"},"serverId":{"type":"string"}},"required":["appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.canGenerateTraefikMeDomains":{"method":"GET","path":"/domain.canGenerateTraefikMeDomains","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.update":{"method":"POST","path":"/domain.update","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string","minLength":1},"path":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"port":{"anyOf":[{"type":"number","minimum":1,"maximum":65535},{"type":"null"}]},"customEntrypoint":{"anyOf":[{"type":"string"},{"type":"null"}]},"https":{"type":"boolean"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"customCertResolver":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainType":{"anyOf":[{"type":"string","enum":["compose","application","preview"]},{"type":"null"}]},"internalPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripPath":{"type":"boolean"},"middlewares":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"forwardAuthEnabled":{"type":"boolean"},"domainId":{"type":"string"}},"required":["host","domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.one":{"method":"GET","path":"/domain.one","tag":"domain","inputKind":"query","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.delete":{"method":"POST","path":"/domain.delete","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"domain.validateDomain":{"method":"POST","path":"/domain.validateDomain","tag":"domain","inputKind":"body","inputSchema":{"type":"object","properties":{"domain":{"type":"string"},"serverIp":{"type":"string"}},"required":["domain"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.create":{"method":"POST","path":"/gitea.create","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaUrl","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.one":{"method":"GET","path":"/gitea.one","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.giteaProviders":{"method":"GET","path":"/gitea.giteaProviders","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaRepositories":{"method":"GET","path":"/gitea.getGiteaRepositories","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaBranches":{"method":"GET","path":"/gitea.getGiteaBranches","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"owner":{"type":"string","minLength":1},"repositoryName":{"type":"string","minLength":1},"giteaId":{"type":"string"}},"required":["owner","repositoryName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.testConnection":{"method":"POST","path":"/gitea.testConnection","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string"},"organizationName":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.update":{"method":"POST","path":"/gitea.update","tag":"gitea","inputKind":"body","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1},"giteaUrl":{"type":"string","minLength":1},"giteaInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"redirectUri":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"gitProviderId":{"type":"string"},"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresAt":{"type":"number"},"scopes":{"type":"string"},"lastAuthenticatedAt":{"type":"number"},"name":{"type":"string","minLength":1},"giteaUsername":{"type":"string"},"organizationName":{"type":"string"}},"required":["giteaId","giteaUrl","gitProviderId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitea.getGiteaUrl":{"method":"GET","path":"/gitea.getGiteaUrl","tag":"gitea","inputKind":"query","inputSchema":{"type":"object","properties":{"giteaId":{"type":"string","minLength":1}},"required":["giteaId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.getAll":{"method":"GET","path":"/gitProvider.getAll","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.toggleShare":{"method":"POST","path":"/gitProvider.toggleShare","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1},"sharedWithOrganization":{"type":"boolean"}},"required":["gitProviderId","sharedWithOrganization"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.allForPermissions":{"method":"GET","path":"/gitProvider.allForPermissions","tag":"gitProvider","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitProvider.remove":{"method":"POST","path":"/gitProvider.remove","tag":"gitProvider","inputKind":"body","inputSchema":{"type":"object","properties":{"gitProviderId":{"type":"string","minLength":1}},"required":["gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.one":{"method":"GET","path":"/github.one","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubRepositories":{"method":"GET","path":"/github.getGithubRepositories","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.getGithubBranches":{"method":"GET","path":"/github.getGithubBranches","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{"repo":{"type":"string","minLength":1},"owner":{"type":"string","minLength":1},"githubId":{"type":"string"}},"required":["repo","owner"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.githubProviders":{"method":"GET","path":"/github.githubProviders","tag":"github","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.testConnection":{"method":"POST","path":"/github.testConnection","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1}},"required":["githubId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"github.update":{"method":"POST","path":"/github.update","tag":"github","inputKind":"body","inputSchema":{"type":"object","properties":{"githubId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"githubAppName":{"type":"string","minLength":1}},"required":["githubId","name","gitProviderId","githubAppName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.create":{"method":"POST","path":"/gitlab.create","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"gitProviderId":{"type":"string"},"redirectUri":{"type":"string"},"authId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["authId","name","gitlabUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.one":{"method":"GET","path":"/gitlab.one","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.gitlabProviders":{"method":"GET","path":"/gitlab.gitlabProviders","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabRepositories":{"method":"GET","path":"/gitlab.getGitlabRepositories","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.getGitlabBranches":{"method":"GET","path":"/gitlab.getGitlabBranches","tag":"gitlab","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"number"},"owner":{"type":"string"},"repo":{"type":"string"},"gitlabId":{"type":"string"}},"required":["owner","repo"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.testConnection":{"method":"POST","path":"/gitlab.testConnection","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"gitlabId":{"type":"string","minLength":1},"groupName":{"type":"string"}},"required":["gitlabId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"gitlab.update":{"method":"POST","path":"/gitlab.update","tag":"gitlab","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"secret":{"type":"string"},"groupName":{"type":"string"},"redirectUri":{"type":"string"},"name":{"type":"string","minLength":1},"gitlabId":{"type":"string","minLength":1},"gitlabUrl":{"type":"string","minLength":1},"gitProviderId":{"type":"string","minLength":1},"gitlabInternalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","gitlabId","gitlabUrl","gitProviderId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.create":{"method":"POST","path":"/libsql.create","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","appName","dockerImage","environmentId","description","databaseUser","databasePassword","sqldNode","sqldPrimaryUrl","enableNamespaces","serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.one":{"method":"GET","path":"/libsql.one","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.start":{"method":"POST","path":"/libsql.start","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.stop":{"method":"POST","path":"/libsql.stop","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveExternalPorts":{"method":"POST","path":"/libsql.saveExternalPorts","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.deploy":{"method":"POST","path":"/libsql.deploy","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.changeStatus":{"method":"POST","path":"/libsql.changeStatus","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["libsqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.remove":{"method":"POST","path":"/libsql.remove","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.saveEnvironment":{"method":"POST","path":"/libsql.saveEnvironment","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["libsqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.reload":{"method":"POST","path":"/libsql.reload","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"appName":{"type":"string","minLength":1}},"required":["libsqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.update":{"method":"POST","path":"/libsql.update","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"sqldNode":{"type":"string","enum":["primary","replica"]},"sqldPrimaryUrl":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"enableNamespaces":{"default":false,"type":"boolean"},"dockerImage":{"default":"ghcr.io/tursodatabase/libsql-server:v0.24.32","type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalGRPCPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"externalAdminPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.move":{"method":"POST","path":"/libsql.move","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["libsqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.rebuild":{"method":"POST","path":"/libsql.rebuild","tag":"libsql","inputKind":"body","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"libsql.readLogs":{"method":"GET","path":"/libsql.readLogs","tag":"libsql","inputKind":"query","inputSchema":{"type":"object","properties":{"libsqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["libsqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.create":{"method":"POST","path":"/mariadb.create","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mariadb:6","type":"string"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.one":{"method":"GET","path":"/mariadb.one","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.start":{"method":"POST","path":"/mariadb.start","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.stop":{"method":"POST","path":"/mariadb.stop","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveExternalPort":{"method":"POST","path":"/mariadb.saveExternalPort","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mariadbId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.deploy":{"method":"POST","path":"/mariadb.deploy","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changeStatus":{"method":"POST","path":"/mariadb.changeStatus","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mariadbId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.remove":{"method":"POST","path":"/mariadb.remove","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.saveEnvironment":{"method":"POST","path":"/mariadb.saveEnvironment","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mariadbId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.reload":{"method":"POST","path":"/mariadb.reload","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mariadbId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.update":{"method":"POST","path":"/mariadb.update","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.changePassword":{"method":"POST","path":"/mariadb.changePassword","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mariadbId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.move":{"method":"POST","path":"/mariadb.move","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mariadbId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.rebuild":{"method":"POST","path":"/mariadb.rebuild","tag":"mariadb","inputKind":"body","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.search":{"method":"GET","path":"/mariadb.search","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mariadb.readLogs":{"method":"GET","path":"/mariadb.readLogs","tag":"mariadb","inputKind":"query","inputSchema":{"type":"object","properties":{"mariadbId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mariadbId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.create":{"method":"POST","path":"/mongo.create","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mongo:15","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["name","environmentId","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.one":{"method":"GET","path":"/mongo.one","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.start":{"method":"POST","path":"/mongo.start","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.stop":{"method":"POST","path":"/mongo.stop","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveExternalPort":{"method":"POST","path":"/mongo.saveExternalPort","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mongoId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.deploy":{"method":"POST","path":"/mongo.deploy","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changeStatus":{"method":"POST","path":"/mongo.changeStatus","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mongoId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.reload":{"method":"POST","path":"/mongo.reload","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mongoId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.remove":{"method":"POST","path":"/mongo.remove","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.saveEnvironment":{"method":"POST","path":"/mongo.saveEnvironment","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mongoId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.update":{"method":"POST","path":"/mongo.update","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"},"replicaSets":{"anyOf":[{"default":false,"type":"boolean"},{"type":"null"}]}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.changePassword":{"method":"POST","path":"/mongo.changePassword","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["mongoId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.move":{"method":"POST","path":"/mongo.move","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mongoId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.rebuild":{"method":"POST","path":"/mongo.rebuild","tag":"mongo","inputKind":"body","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.search":{"method":"GET","path":"/mongo.search","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mongo.readLogs":{"method":"GET","path":"/mongo.readLogs","tag":"mongo","inputKind":"query","inputSchema":{"type":"object","properties":{"mongoId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mongoId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.create":{"method":"POST","path":"/mounts.create","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"mountPath":{"type":"string","minLength":1},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"serviceId":{"type":"string","minLength":1}},"required":["type","mountPath","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.remove":{"method":"POST","path":"/mounts.remove","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string"}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.one":{"method":"GET","path":"/mounts.one","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.update":{"method":"POST","path":"/mounts.update","tag":"mounts","inputKind":"body","inputSchema":{"type":"object","properties":{"mountId":{"type":"string","minLength":1},"type":{"type":"string","enum":["bind","volume","file"]},"hostPath":{"anyOf":[{"type":"string"},{"type":"null"}]},"volumeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"mountPath":{"type":"string","minLength":1},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mountId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.allNamedByApplicationId":{"method":"GET","path":"/mounts.allNamedByApplicationId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mounts.listByServiceId":{"method":"GET","path":"/mounts.listByServiceId","tag":"mounts","inputKind":"query","inputSchema":{"type":"object","properties":{"serviceType":{"type":"string","minLength":1},"serviceId":{"type":"string","minLength":1}},"required":["serviceType","serviceId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.create":{"method":"POST","path":"/mysql.create","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"dockerImage":{"default":"mysql:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","environmentId","databaseName","databaseUser","databasePassword"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.one":{"method":"GET","path":"/mysql.one","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.start":{"method":"POST","path":"/mysql.start","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.stop":{"method":"POST","path":"/mysql.stop","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveExternalPort":{"method":"POST","path":"/mysql.saveExternalPort","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mysqlId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.deploy":{"method":"POST","path":"/mysql.deploy","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changeStatus":{"method":"POST","path":"/mysql.changeStatus","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["mysqlId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.reload":{"method":"POST","path":"/mysql.reload","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["mysqlId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.remove":{"method":"POST","path":"/mysql.remove","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.saveEnvironment":{"method":"POST","path":"/mysql.saveEnvironment","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mysqlId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.update":{"method":"POST","path":"/mysql.update","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"databaseRootPassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.changePassword":{"method":"POST","path":"/mysql.changePassword","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"type":{"default":"user","type":"string","enum":["user","root"]}},"required":["mysqlId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.move":{"method":"POST","path":"/mysql.move","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["mysqlId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.rebuild":{"method":"POST","path":"/mysql.rebuild","tag":"mysql","inputKind":"body","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.search":{"method":"GET","path":"/mysql.search","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"mysql.readLogs":{"method":"GET","path":"/mysql.readLogs","tag":"mysql","inputKind":"query","inputSchema":{"type":"object","properties":{"mysqlId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["mysqlId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createSlack":{"method":"POST","path":"/notification.createSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateSlack":{"method":"POST","path":"/notification.updateSlack","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"},"notificationId":{"type":"string","minLength":1},"slackId":{"type":"string"},"organizationId":{"type":"string"}},"required":["notificationId","slackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testSlackConnection":{"method":"POST","path":"/notification.testSlackConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"channel":{"type":"string"}},"required":["webhookUrl","channel"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTelegram":{"method":"POST","path":"/notification.createTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTelegram":{"method":"POST","path":"/notification.updateTelegram","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"},"notificationId":{"type":"string","minLength":1},"telegramId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","telegramId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTelegramConnection":{"method":"POST","path":"/notification.testTelegramConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"botToken":{"type":"string","minLength":1},"chatId":{"type":"string","minLength":1},"messageThreadId":{"type":"string"}},"required":["botToken","chatId","messageThreadId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createDiscord":{"method":"POST","path":"/notification.createDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateDiscord":{"method":"POST","path":"/notification.updateDiscord","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"discordId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","discordId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testDiscordConnection":{"method":"POST","path":"/notification.testDiscordConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"decoration":{"type":"boolean"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createEmail":{"method":"POST","path":"/notification.createEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","smtpServer","smtpPort","username","password","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateEmail":{"method":"POST","path":"/notification.updateEmail","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"emailId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","emailId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testEmailConnection":{"method":"POST","path":"/notification.testEmailConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"smtpServer":{"type":"string","minLength":1},"smtpPort":{"type":"number","minimum":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"fromAddress":{"type":"string","minLength":1}},"required":["smtpServer","smtpPort","username","password","toAddresses","fromAddress"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createResend":{"method":"POST","path":"/notification.createResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateResend":{"method":"POST","path":"/notification.updateResend","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"resendId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","resendId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testResendConnection":{"method":"POST","path":"/notification.testResendConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":1},"fromAddress":{"type":"string","minLength":1},"toAddresses":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["apiKey","fromAddress","toAddresses"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.remove":{"method":"POST","path":"/notification.remove","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.one":{"method":"GET","path":"/notification.one","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1}},"required":["notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.all":{"method":"GET","path":"/notification.all","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.receiveNotification":{"method":"POST","path":"/notification.receiveNotification","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"ServerType":{"default":"Dokploy","type":"string","enum":["Dokploy","Remote"]},"Type":{"type":"string","enum":["Memory","CPU"]},"Value":{"type":"number"},"Threshold":{"type":"number"},"Message":{"type":"string"},"Timestamp":{"type":"string"},"Token":{"type":"string"}},"required":["Type","Value","Threshold","Message","Timestamp","Token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createGotify":{"method":"POST","path":"/notification.createGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","appToken","priority","decoration"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateGotify":{"method":"POST","path":"/notification.updateGotify","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"},"notificationId":{"type":"string","minLength":1},"gotifyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","gotifyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testGotifyConnection":{"method":"POST","path":"/notification.testGotifyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"appToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":1},"decoration":{"type":"boolean"}},"required":["serverUrl","appToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createNtfy":{"method":"POST","path":"/notification.createNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateNtfy":{"method":"POST","path":"/notification.updateNtfy","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1},"notificationId":{"type":"string","minLength":1},"ntfyId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","ntfyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testNtfyConnection":{"method":"POST","path":"/notification.testNtfyConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"serverUrl":{"type":"string","minLength":1},"topic":{"type":"string","minLength":1},"accessToken":{"type":"string"},"priority":{"type":"number","minimum":1}},"required":["serverUrl","topic","accessToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createMattermost":{"method":"POST","path":"/notification.createMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateMattermost":{"method":"POST","path":"/notification.updateMattermost","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"},"notificationId":{"type":"string","minLength":1},"mattermostId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","mattermostId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testMattermostConnection":{"method":"POST","path":"/notification.testMattermostConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","format":"uri"},"channel":{"type":"string"},"username":{"type":"string"}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createCustom":{"method":"POST","path":"/notification.createCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["name","endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateCustom":{"method":"POST","path":"/notification.updateCustom","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"notificationId":{"type":"string","minLength":1},"customId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","customId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testCustomConnection":{"method":"POST","path":"/notification.testCustomConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"endpoint":{"type":"string","minLength":1},"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["endpoint"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createLark":{"method":"POST","path":"/notification.createLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateLark":{"method":"POST","path":"/notification.updateLark","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"larkId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","larkId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testLarkConnection":{"method":"POST","path":"/notification.testLarkConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createTeams":{"method":"POST","path":"/notification.createTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1}},"required":["appBuildError","databaseBackup","dokployBackup","volumeBackup","dokployRestart","name","appDeploy","dockerCleanup","serverThreshold","webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updateTeams":{"method":"POST","path":"/notification.updateTeams","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"webhookUrl":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1},"teamsId":{"type":"string","minLength":1},"organizationId":{"type":"string"}},"required":["notificationId","teamsId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testTeamsConnection":{"method":"POST","path":"/notification.testTeamsConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1}},"required":["webhookUrl"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.createPushover":{"method":"POST","path":"/notification.createPushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"default":0,"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["name","userKey","apiToken"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.updatePushover":{"method":"POST","path":"/notification.updatePushover","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"notificationId":{"type":"string","minLength":1},"pushoverId":{"type":"string","minLength":1},"organizationId":{"type":"string"},"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]},"appBuildError":{"type":"boolean"},"databaseBackup":{"type":"boolean"},"dokployBackup":{"type":"boolean"},"volumeBackup":{"type":"boolean"},"dokployRestart":{"type":"boolean"},"name":{"type":"string"},"appDeploy":{"type":"boolean"},"dockerCleanup":{"type":"boolean"},"serverThreshold":{"type":"boolean"}},"required":["notificationId","pushoverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.testPushoverConnection":{"method":"POST","path":"/notification.testPushoverConnection","tag":"notification","inputKind":"body","inputSchema":{"type":"object","properties":{"userKey":{"type":"string","minLength":1},"apiToken":{"type":"string","minLength":1},"priority":{"type":"number","minimum":-2,"maximum":2},"retry":{"anyOf":[{"type":"number","minimum":30},{"type":"null"}]},"expire":{"anyOf":[{"type":"number","minimum":1,"maximum":10800},{"type":"null"}]}},"required":["userKey","apiToken","priority"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"notification.getEmailProviders":{"method":"GET","path":"/notification.getEmailProviders","tag":"notification","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.create":{"method":"POST","path":"/port.create","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]},"applicationId":{"type":"string","minLength":1}},"required":["publishedPort","publishMode","targetPort","protocol","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.one":{"method":"GET","path":"/port.one","tag":"port","inputKind":"query","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.delete":{"method":"POST","path":"/port.delete","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1}},"required":["portId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"port.update":{"method":"POST","path":"/port.update","tag":"port","inputKind":"body","inputSchema":{"type":"object","properties":{"portId":{"type":"string","minLength":1},"publishedPort":{"type":"number"},"publishMode":{"default":"ingress","type":"string","enum":["ingress","host"]},"targetPort":{"type":"number"},"protocol":{"default":"tcp","type":"string","enum":["tcp","udp"]}},"required":["portId","publishedPort","publishMode","targetPort","protocol"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.create":{"method":"POST","path":"/postgres.create","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"dockerImage":{"default":"postgres:18","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databaseName","databaseUser","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.one":{"method":"GET","path":"/postgres.one","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.start":{"method":"POST","path":"/postgres.start","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.stop":{"method":"POST","path":"/postgres.stop","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveExternalPort":{"method":"POST","path":"/postgres.saveExternalPort","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["postgresId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.deploy":{"method":"POST","path":"/postgres.deploy","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changeStatus":{"method":"POST","path":"/postgres.changeStatus","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["postgresId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.remove":{"method":"POST","path":"/postgres.remove","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.saveEnvironment":{"method":"POST","path":"/postgres.saveEnvironment","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["postgresId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.reload":{"method":"POST","path":"/postgres.reload","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["postgresId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.update":{"method":"POST","path":"/postgres.update","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databaseName":{"type":"string","minLength":1},"databaseUser":{"type":"string","minLength":1},"databasePassword":{"type":"string","pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"createdAt":{"type":"string"},"environmentId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.changePassword":{"method":"POST","path":"/postgres.changePassword","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["postgresId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.move":{"method":"POST","path":"/postgres.move","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["postgresId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.rebuild":{"method":"POST","path":"/postgres.rebuild","tag":"postgres","inputKind":"body","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.search":{"method":"GET","path":"/postgres.search","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"postgres.readLogs":{"method":"GET","path":"/postgres.readLogs","tag":"postgres","inputKind":"query","inputSchema":{"type":"object","properties":{"postgresId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["postgresId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.all":{"method":"GET","path":"/previewDeployment.all","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1}},"required":["applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.one":{"method":"GET","path":"/previewDeployment.one","tag":"previewDeployment","inputKind":"query","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.delete":{"method":"POST","path":"/previewDeployment.delete","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"previewDeployment.redeploy":{"method":"POST","path":"/previewDeployment.redeploy","tag":"previewDeployment","inputKind":"body","inputSchema":{"type":"object","properties":{"previewDeploymentId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"required":["previewDeploymentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.create":{"method":"POST","path":"/project.create","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.one":{"method":"GET","path":"/project.one","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.all":{"method":"GET","path":"/project.all","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.allForPermissions":{"method":"GET","path":"/project.allForPermissions","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.homeStats":{"method":"GET","path":"/project.homeStats","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.search":{"method":"GET","path":"/project.search","tag":"project","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.remove":{"method":"POST","path":"/project.remove","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.update":{"method":"POST","path":"/project.update","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"},"env":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"project.duplicate":{"method":"POST","path":"/project.duplicate","tag":"project","inputKind":"body","inputSchema":{"type":"object","properties":{"sourceEnvironmentId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"includeServices":{"default":true,"type":"boolean"},"selectedServices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose","libsql","mariadb","mongo","mysql","postgres","redis"]}},"required":["id","type"]}},"duplicateInSameProject":{"default":false,"type":"boolean"}},"required":["sourceEnvironmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.create":{"method":"POST","path":"/redirects.create","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"},"applicationId":{"type":"string"}},"required":["regex","replacement","permanent","applicationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.one":{"method":"GET","path":"/redirects.one","tag":"redirects","inputKind":"query","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.delete":{"method":"POST","path":"/redirects.delete","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1}},"required":["redirectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redirects.update":{"method":"POST","path":"/redirects.update","tag":"redirects","inputKind":"body","inputSchema":{"type":"object","properties":{"redirectId":{"type":"string","minLength":1},"regex":{"type":"string","minLength":1},"replacement":{"type":"string","minLength":1},"permanent":{"type":"boolean"}},"required":["redirectId","regex","replacement","permanent"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.create":{"method":"POST","path":"/redis.create","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"databasePassword":{"type":"string"},"dockerImage":{"default":"redis:8","type":"string"},"environmentId":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","databasePassword","environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.one":{"method":"GET","path":"/redis.one","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.start":{"method":"POST","path":"/redis.start","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.reload":{"method":"POST","path":"/redis.reload","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["redisId","appName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.stop":{"method":"POST","path":"/redis.stop","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveExternalPort":{"method":"POST","path":"/redis.saveExternalPort","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["redisId","externalPort"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.deploy":{"method":"POST","path":"/redis.deploy","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changeStatus":{"method":"POST","path":"/redis.changeStatus","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]}},"required":["redisId","applicationStatus"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.remove":{"method":"POST","path":"/redis.remove","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.saveEnvironment":{"method":"POST","path":"/redis.saveEnvironment","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"env":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["redisId","env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.update":{"method":"POST","path":"/redis.update","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"appName":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-zA-Z0-9._-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"databasePassword":{"type":"string"},"dockerImage":{"type":"string"},"command":{"anyOf":[{"type":"string"},{"type":"null"}]},"args":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"env":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"memoryLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuReservation":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpuLimit":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalPort":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"type":"string"},"applicationStatus":{"type":"string","enum":["idle","running","done","error"]},"healthCheckSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Test":{"type":"array","items":{"type":"string"}},"Interval":{"type":"number"},"Timeout":{"type":"number"},"StartPeriod":{"type":"number"},"Retries":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"restartPolicySwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Condition":{"type":"string"},"Delay":{"type":"number"},"MaxAttempts":{"type":"number"},"Window":{"type":"number"}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"placementSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Constraints":{"type":"array","items":{"type":"string"}},"Preferences":{"type":"array","items":{"type":"object","properties":{"Spread":{"type":"object","properties":{"SpreadDescriptor":{"type":"string"}},"required":["SpreadDescriptor"]}},"required":["Spread"],"additionalProperties":false}},"MaxReplicas":{"type":"number"},"Platforms":{"type":"array","items":{"type":"object","properties":{"Architecture":{"type":"string"},"OS":{"type":"string"}},"required":["Architecture","OS"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"updateConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"rollbackConfigSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Parallelism":{"type":"number"},"Delay":{"type":"number"},"FailureAction":{"type":"string"},"Monitor":{"type":"number"},"MaxFailureRatio":{"type":"number"},"Order":{"type":"string"}},"required":["Parallelism","Order"],"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"modeSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Replicated":{"type":"object","properties":{"Replicas":{"type":"number"}},"additionalProperties":false},"Global":{"type":"object","properties":{}},"ReplicatedJob":{"type":"object","properties":{"MaxConcurrent":{"type":"number"},"TotalCompletions":{"type":"number"}},"additionalProperties":false},"GlobalJob":{"type":"object","properties":{}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"labelsSwarm":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},{"type":"null"}]},{"type":"null"}]},"networkSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Target":{"type":"string"},"Aliases":{"type":"array","items":{"type":"string"}},"DriverOpts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"stopGracePeriodSwarm":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"null"}]},{"type":"null"}]},"endpointSpecSwarm":{"anyOf":[{"anyOf":[{"type":"object","properties":{"Mode":{"type":"string"},"Ports":{"type":"array","items":{"type":"object","properties":{"Protocol":{"type":"string"},"TargetPort":{"type":"number"},"PublishedPort":{"type":"number"},"PublishMode":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},{"type":"null"}]},"ulimitsSwarm":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","minLength":1},"Soft":{"type":"integer","minimum":-1,"maximum":9007199254740991},"Hard":{"type":"integer","minimum":-1,"maximum":9007199254740991}},"required":["Name","Soft","Hard"],"additionalProperties":false}},{"type":"null"}]},{"type":"null"}]},"replicas":{"type":"number"},"environmentId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.changePassword":{"method":"POST","path":"/redis.changePassword","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"password":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9@#%^&*()_+\\\\-=[\\\\]{}|;:,.<>?~`]*$"}},"required":["redisId","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.move":{"method":"POST","path":"/redis.move","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"},"targetEnvironmentId":{"type":"string"}},"required":["redisId","targetEnvironmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.rebuild":{"method":"POST","path":"/redis.rebuild","tag":"redis","inputKind":"body","inputSchema":{"type":"object","properties":{"redisId":{"type":"string"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.search":{"method":"GET","path":"/redis.search","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"appName":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"redis.readLogs":{"method":"GET","path":"/redis.readLogs","tag":"redis","inputKind":"query","inputSchema":{"type":"object","properties":{"redisId":{"type":"string","minLength":1},"tail":{"default":100,"type":"integer","minimum":1,"maximum":10000},"since":{"default":"all","type":"string","pattern":"^(all|\\\\d+[smhd])$"},"search":{"type":"string","pattern":"^[a-zA-Z0-9 ._-]{0,500}$"}},"required":["redisId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.create":{"method":"POST","path":"/registry.create","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["registryName","username","password","registryUrl","registryType","imagePrefix"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.remove":{"method":"POST","path":"/registry.remove","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.update":{"method":"POST","path":"/registry.update","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"registryName":{"type":"string","minLength":1},"imagePrefix":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"type":"null"}]},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"createdAt":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"organizationId":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.all":{"method":"GET","path":"/registry.all","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.one":{"method":"GET","path":"/registry.one","tag":"registry","inputKind":"query","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1}},"required":["registryId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistry":{"method":"POST","path":"/registry.testRegistry","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryName":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"registryUrl":{"type":"string"},"registryType":{"type":"string","enum":["cloud"]},"imagePrefix":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string"}},"required":["username","password","registryUrl","registryType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"registry.testRegistryById":{"method":"POST","path":"/registry.testRegistryById","tag":"registry","inputKind":"body","inputSchema":{"type":"object","properties":{"registryId":{"type":"string","minLength":1},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.create":{"method":"POST","path":"/security.create","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"applicationId":{"type":"string"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["applicationId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.one":{"method":"GET","path":"/security.one","tag":"security","inputKind":"query","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.delete":{"method":"POST","path":"/security.delete","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1}},"required":["securityId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"security.update":{"method":"POST","path":"/security.update","tag":"security","inputKind":"body","inputSchema":{"type":"object","properties":{"securityId":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1}},"required":["securityId","username","password"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.create":{"method":"POST","path":"/server.create","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]},"enableDockerCleanup":{"default":true,"type":"boolean"}},"required":["name","description","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.one":{"method":"GET","path":"/server.one","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getDefaultCommand":{"method":"GET","path":"/server.getDefaultCommand","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.all":{"method":"GET","path":"/server.all","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.allForPermissions":{"method":"GET","path":"/server.allForPermissions","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.count":{"method":"GET","path":"/server.count","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.withSSHKey":{"method":"GET","path":"/server.withSSHKey","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.buildServers":{"method":"GET","path":"/server.buildServers","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setup":{"method":"POST","path":"/server.setup","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.validate":{"method":"GET","path":"/server.validate","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.security":{"method":"GET","path":"/server.security","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.setupMonitoring":{"method":"POST","path":"/server.setupMonitoring","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1},"metricsConfig":{"type":"object","properties":{"server":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"port":{"type":"number","minimum":1},"token":{"type":"string"},"urlCallback":{"type":"string","format":"uri"},"retentionDays":{"type":"number","minimum":1},"cronJob":{"type":"string","minLength":1},"thresholds":{"type":"object","properties":{"cpu":{"type":"number","minimum":0},"memory":{"type":"number","minimum":0}},"required":["cpu","memory"]}},"required":["refreshRate","port","token","urlCallback","retentionDays","cronJob","thresholds"]},"containers":{"type":"object","properties":{"refreshRate":{"type":"number","minimum":2},"services":{"type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}},"required":["refreshRate","services"]}},"required":["server","containers"]}},"required":["serverId","metricsConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.remove":{"method":"POST","path":"/server.remove","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.update":{"method":"POST","path":"/server.update","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"type":"string","minLength":1},"ipAddress":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"sshKeyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverType":{"type":"string","enum":["deploy","build"]},"enableDockerCleanup":{"default":true,"type":"boolean"},"command":{"type":"string"}},"required":["name","description","serverId","ipAddress","port","username","sshKeyId","serverType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.updateBuildsConcurrency":{"method":"POST","path":"/server.updateBuildsConcurrency","tag":"server","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string","minLength":1},"buildsConcurrency":{"type":"integer","minimum":1,"maximum":100}},"required":["serverId","buildsConcurrency"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.publicIp":{"method":"GET","path":"/server.publicIp","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerTime":{"method":"GET","path":"/server.getServerTime","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"server.getServerMetrics":{"method":"GET","path":"/server.getServerMetrics","tag":"server","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getWebServerSettings":{"method":"GET","path":"/settings.getWebServerSettings","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadServer":{"method":"POST","path":"/settings.reloadServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanRedis":{"method":"POST","path":"/settings.cleanRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadRedis":{"method":"POST","path":"/settings.reloadRedis","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAllDeploymentQueue":{"method":"POST","path":"/settings.cleanAllDeploymentQueue","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.reloadTraefik":{"method":"POST","path":"/settings.reloadTraefik","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleDashboard":{"method":"POST","path":"/settings.toggleDashboard","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDashboard":{"type":"boolean"},"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedImages":{"method":"POST","path":"/settings.cleanUnusedImages","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanUnusedVolumes":{"method":"POST","path":"/settings.cleanUnusedVolumes","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanStoppedContainers":{"method":"POST","path":"/settings.cleanStoppedContainers","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerBuilder":{"method":"POST","path":"/settings.cleanDockerBuilder","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanDockerPrune":{"method":"POST","path":"/settings.cleanDockerPrune","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanAll":{"method":"POST","path":"/settings.cleanAll","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanMonitoring":{"method":"POST","path":"/settings.cleanMonitoring","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDockerDiskUsage":{"method":"GET","path":"/settings.getDockerDiskUsage","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.saveSSHPrivateKey":{"method":"POST","path":"/settings.saveSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"sshPrivateKey":{"type":"string"}},"required":["sshPrivateKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.assignDomainServer":{"method":"POST","path":"/settings.assignDomainServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"host":{"type":"string"},"certificateType":{"type":"string","enum":["letsencrypt","none","custom"]},"letsEncryptEmail":{"anyOf":[{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},{"type":"string","const":""}]},{"type":"null"}]},"https":{"type":"boolean"}},"required":["host","certificateType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.cleanSSHPrivateKey":{"method":"POST","path":"/settings.cleanSSHPrivateKey","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateDockerCleanup":{"method":"POST","path":"/settings.updateDockerCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enableDockerCleanup":{"type":"boolean"},"serverId":{"type":"string"}},"required":["enableDockerCleanup"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateRemoteServersOnly":{"method":"POST","path":"/settings.updateRemoteServersOnly","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"remoteServersOnly":{"type":"boolean"}},"required":["remoteServersOnly"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateBuildsConcurrency":{"method":"POST","path":"/settings.updateBuildsConcurrency","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"buildsConcurrency":{"type":"integer","minimum":1,"maximum":100}},"required":["buildsConcurrency"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateEnforceSSO":{"method":"POST","path":"/settings.updateEnforceSSO","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enforceSSO":{"type":"boolean"}},"required":["enforceSSO"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikConfig":{"method":"GET","path":"/settings.readTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikConfig":{"method":"POST","path":"/settings.updateTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readWebServerTraefikConfig":{"method":"GET","path":"/settings.readWebServerTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateWebServerTraefikConfig":{"method":"POST","path":"/settings.updateWebServerTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readMiddlewareTraefikConfig":{"method":"GET","path":"/settings.readMiddlewareTraefikConfig","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateMiddlewareTraefikConfig":{"method":"POST","path":"/settings.updateMiddlewareTraefikConfig","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"traefikConfig":{"type":"string","minLength":1}},"required":["traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getUpdateData":{"method":"POST","path":"/settings.getUpdateData","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServer":{"method":"POST","path":"/settings.updateServer","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployVersion":{"method":"GET","path":"/settings.getDokployVersion","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getReleaseTag":{"method":"GET","path":"/settings.getReleaseTag","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readDirectories":{"method":"GET","path":"/settings.readDirectories","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikFile":{"method":"POST","path":"/settings.updateTraefikFile","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"traefikConfig":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path","traefikConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikFile":{"method":"GET","path":"/settings.readTraefikFile","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"path":{"type":"string","minLength":1},"serverId":{"type":"string"}},"required":["path"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getIp":{"method":"GET","path":"/settings.getIp","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateServerIp":{"method":"POST","path":"/settings.updateServerIp","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverIp":{"type":"string"}},"required":["serverIp"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getOpenApiDocument":{"method":"GET","path":"/settings.getOpenApiDocument","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.readTraefikEnv":{"method":"GET","path":"/settings.readTraefikEnv","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.writeTraefikEnv":{"method":"POST","path":"/settings.writeTraefikEnv","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"env":{"type":"string"},"serverId":{"type":"string"}},"required":["env"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveTraefikDashboardPortEnabled":{"method":"GET","path":"/settings.haveTraefikDashboardPortEnabled","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.haveActivateRequests":{"method":"GET","path":"/settings.haveActivateRequests","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.toggleRequests":{"method":"POST","path":"/settings.toggleRequests","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"enable":{"type":"boolean"}},"required":["enable"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isCloud":{"method":"GET","path":"/settings.isCloud","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.isUserSubscribed":{"method":"GET","path":"/settings.isUserSubscribed","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.health":{"method":"GET","path":"/settings.health","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkInfrastructureHealth":{"method":"GET","path":"/settings.checkInfrastructureHealth","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.setupGPU":{"method":"POST","path":"/settings.setupGPU","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.checkGPUStatus":{"method":"GET","path":"/settings.checkGPUStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateTraefikPorts":{"method":"POST","path":"/settings.updateTraefikPorts","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"},"additionalPorts":{"type":"array","items":{"type":"object","properties":{"targetPort":{"type":"number"},"publishedPort":{"type":"number"},"protocol":{"type":"string","enum":["tcp","udp","sctp"]}},"required":["targetPort","publishedPort","protocol"]}}},"required":["additionalPorts"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getTraefikPorts":{"method":"GET","path":"/settings.getTraefikPorts","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.updateLogCleanup":{"method":"POST","path":"/settings.updateLogCleanup","tag":"settings","inputKind":"body","inputSchema":{"type":"object","properties":{"cronExpression":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["cronExpression"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getLogCleanupStatus":{"method":"GET","path":"/settings.getLogCleanupStatus","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"settings.getDokployCloudIps":{"method":"GET","path":"/settings.getDokployCloudIps","tag":"settings","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.create":{"method":"POST","path":"/sshKey.create","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"privateKey":{"type":"string"},"publicKey":{"type":"string"},"organizationId":{"type":"string"}},"required":["name","privateKey","publicKey","organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.remove":{"method":"POST","path":"/sshKey.remove","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.one":{"method":"GET","path":"/sshKey.one","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{"sshKeyId":{"type":"string","minLength":1}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.all":{"method":"GET","path":"/sshKey.all","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.allForApps":{"method":"GET","path":"/sshKey.allForApps","tag":"sshKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.generate":{"method":"POST","path":"/sshKey.generate","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"type":{"type":"string","enum":["rsa","ed25519"]}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sshKey.update":{"method":"POST","path":"/sshKey.update","tag":"sshKey","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"sshKeyId":{"type":"string"}},"required":["sshKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getCurrentPlan":{"method":"GET","path":"/stripe.getCurrentPlan","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getProducts":{"method":"GET","path":"/stripe.getProducts","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCheckoutSession":{"method":"POST","path":"/stripe.createCheckoutSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["legacy","hobby","startup"]},"productId":{"type":"string"},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","productId","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.createCustomerPortalSession":{"method":"POST","path":"/stripe.createCustomerPortalSession","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.upgradeSubscription":{"method":"POST","path":"/stripe.upgradeSubscription","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"tier":{"type":"string","enum":["hobby","startup"]},"serverQuantity":{"type":"number","minimum":1},"isAnnual":{"type":"boolean"}},"required":["tier","serverQuantity","isAnnual"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.canCreateMoreServers":{"method":"GET","path":"/stripe.canCreateMoreServers","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.updateInvoiceNotifications":{"method":"POST","path":"/stripe.updateInvoiceNotifications","tag":"stripe","inputKind":"body","inputSchema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"stripe.getInvoices":{"method":"GET","path":"/stripe.getInvoices","tag":"stripe","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodes":{"method":"GET","path":"/swarm.getNodes","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeInfo":{"method":"GET","path":"/swarm.getNodeInfo","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"nodeId":{"type":"string"},"serverId":{"type":"string"}},"required":["nodeId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getNodeApps":{"method":"GET","path":"/swarm.getNodeApps","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"swarm.getContainerStats":{"method":"GET","path":"/swarm.getContainerStats","tag":"swarm","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.all":{"method":"GET","path":"/user.all","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.one":{"method":"GET","path":"/user.one","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.session":{"method":"GET","path":"/user.session","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.get":{"method":"GET","path":"/user.get","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getPermissions":{"method":"GET","path":"/user.getPermissions","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.haveRootAccess":{"method":"GET","path":"/user.haveRootAccess","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBackups":{"method":"GET","path":"/user.getBackups","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getServerMetrics":{"method":"GET","path":"/user.getServerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.update":{"method":"POST","path":"/user.update","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"firstName":{"type":"string"},"lastName":{"type":"string"},"isRegistered":{"type":"boolean"},"expirationDate":{"type":"string"},"createdAt2":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"twoFactorEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"email":{"type":"string","minLength":1,"format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"emailVerified":{"type":"boolean"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"banned":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"banReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"banExpires":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"},"enablePaidFeatures":{"type":"boolean"},"allowImpersonation":{"type":"boolean"},"enableEnterpriseFeatures":{"type":"boolean"},"licenseKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeCustomerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripeSubscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serversQuantity":{"type":"number"},"sendInvoiceNotifications":{"type":"boolean"},"password":{"type":"string"},"currentPassword":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getUserByToken":{"method":"GET","path":"/user.getUserByToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getMetricsToken":{"method":"GET","path":"/user.getMetricsToken","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.remove":{"method":"POST","path":"/user.remove","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.assignPermissions":{"method":"POST","path":"/user.assignPermissions","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"accessedProjects":{"type":"array","items":{"type":"string"}},"accessedEnvironments":{"type":"array","items":{"type":"string"}},"accessedServices":{"type":"array","items":{"type":"string"}},"accessedGitProviders":{"type":"array","items":{"type":"string"}},"accessedServers":{"type":"array","items":{"type":"string"}},"canCreateProjects":{"type":"boolean"},"canCreateServices":{"type":"boolean"},"canDeleteProjects":{"type":"boolean"},"canDeleteServices":{"type":"boolean"},"canAccessToDocker":{"type":"boolean"},"canAccessToTraefikFiles":{"type":"boolean"},"canAccessToAPI":{"type":"boolean"},"canAccessToSSHKeys":{"type":"boolean"},"canAccessToGitProviders":{"type":"boolean"},"canDeleteEnvironments":{"type":"boolean"},"canCreateEnvironments":{"type":"boolean"}},"required":["id","accessedProjects","accessedEnvironments","accessedServices","accessedGitProviders","accessedServers","canCreateProjects","canCreateServices","canDeleteProjects","canDeleteServices","canAccessToDocker","canAccessToTraefikFiles","canAccessToAPI","canAccessToSSHKeys","canAccessToGitProviders","canDeleteEnvironments","canCreateEnvironments"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getInvitations":{"method":"GET","path":"/user.getInvitations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getContainerMetrics":{"method":"GET","path":"/user.getContainerMetrics","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"appName":{"type":"string"},"dataPoints":{"type":"string"}},"required":["url","token","appName","dataPoints"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.generateToken":{"method":"POST","path":"/user.generateToken","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.deleteApiKey":{"method":"POST","path":"/user.deleteApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"apiKeyId":{"type":"string"}},"required":["apiKeyId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createApiKey":{"method":"POST","path":"/user.createApiKey","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"prefix":{"type":"string"},"expiresIn":{"type":"number"},"metadata":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"rateLimitEnabled":{"type":"boolean"},"rateLimitTimeWindow":{"type":"number"},"rateLimitMax":{"type":"number"},"remaining":{"type":"number"},"refillAmount":{"type":"number"},"refillInterval":{"type":"number"}},"required":["name","metadata"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.checkUserOrganizations":{"method":"GET","path":"/user.checkUserOrganizations","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.createUserWithCredentials":{"method":"POST","path":"/user.createUserWithCredentials","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8},"role":{"type":"string","minLength":1}},"required":["email","password","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.sendInvitation":{"method":"POST","path":"/user.sendInvitation","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string","minLength":1},"notificationId":{"type":"string","minLength":1}},"required":["invitationId","notificationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.getBookmarkedTemplates":{"method":"GET","path":"/user.getBookmarkedTemplates","tag":"user","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"user.toggleTemplateBookmark":{"method":"POST","path":"/user.toggleTemplateBookmark","tag":"user","inputKind":"body","inputSchema":{"type":"object","properties":{"templateId":{"type":"string","minLength":1}},"required":["templateId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.one":{"method":"GET","path":"/ai.one","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getModels":{"method":"GET","path":"/ai.getModels","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"}},"required":["apiUrl","apiKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.create":{"method":"POST","path":"/ai.create","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"}},"required":["name","apiUrl","apiKey","model","isEnabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.update":{"method":"POST","path":"/ai.update","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"apiUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1},"isEnabled":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getAll":{"method":"GET","path":"/ai.getAll","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.get":{"method":"GET","path":"/ai.get","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.delete":{"method":"POST","path":"/ai.delete","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"}},"required":["aiId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.getEnabledProviders":{"method":"GET","path":"/ai.getEnabledProviders","tag":"ai","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.analyzeLogs":{"method":"POST","path":"/ai.analyzeLogs","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string","minLength":1},"logs":{"type":"string","minLength":1},"context":{"type":"string","enum":["build","runtime"]}},"required":["aiId","logs","context"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.testConnection":{"method":"POST","path":"/ai.testConnection","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"apiUrl":{"type":"string","minLength":1},"apiKey":{"type":"string"},"model":{"type":"string","minLength":1}},"required":["apiUrl","apiKey","model"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.suggest":{"method":"POST","path":"/ai.suggest","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"aiId":{"type":"string"},"input":{"type":"string"},"serverId":{"type":"string"}},"required":["aiId","input"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"ai.deploy":{"method":"POST","path":"/ai.deploy","tag":"ai","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"dockerCompose":{"type":"string","minLength":1},"envVariables":{"type":"string"},"serverId":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"domains":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number","minimum":1},"serviceName":{"type":"string","minLength":1}},"required":["host","port","serviceName"]}},"configFiles":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string","minLength":1}},"required":["filePath","content"]}}},"required":["environmentId","id","dockerCompose","envVariables","name","description"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.create":{"method":"POST","path":"/organization.create","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.all":{"method":"GET","path":"/organization.all","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.one":{"method":"GET","path":"/organization.one","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.update":{"method":"POST","path":"/organization.update","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string"},"logo":{"type":"string"}},"required":["organizationId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.delete":{"method":"POST","path":"/organization.delete","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.inviteMember":{"method":"POST","path":"/organization.inviteMember","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Za-z0-9_\'+\\\\-\\\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\\\-]*\\\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","minLength":1}},"required":["email","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.allInvitations":{"method":"GET","path":"/organization.allInvitations","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.removeInvitation":{"method":"POST","path":"/organization.removeInvitation","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"invitationId":{"type":"string"}},"required":["invitationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.updateMemberRole":{"method":"POST","path":"/organization.updateMemberRole","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"memberId":{"type":"string"},"role":{"type":"string","minLength":1}},"required":["memberId","role"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.setDefault":{"method":"POST","path":"/organization.setDefault","tag":"organization","inputKind":"body","inputSchema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"organization.active":{"method":"GET","path":"/organization.active","tag":"organization","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.activate":{"method":"POST","path":"/licenseKey.activate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"licenseKey":{"type":"string","minLength":1}},"required":["licenseKey"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.validate":{"method":"POST","path":"/licenseKey.validate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.deactivate":{"method":"POST","path":"/licenseKey.deactivate","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.getEnterpriseSettings":{"method":"GET","path":"/licenseKey.getEnterpriseSettings","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.haveValidLicenseKey":{"method":"GET","path":"/licenseKey.haveValidLicenseKey","tag":"licenseKey","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"licenseKey.updateEnterpriseSettings":{"method":"POST","path":"/licenseKey.updateEnterpriseSettings","tag":"licenseKey","inputKind":"body","inputSchema":{"type":"object","properties":{"enableEnterpriseFeatures":{"type":"boolean"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.showSignInWithSSO":{"method":"GET","path":"/sso.showSignInWithSSO","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.enforceSSO":{"method":"GET","path":"/sso.enforceSSO","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.listProviders":{"method":"GET","path":"/sso.listProviders","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.getTrustedOrigins":{"method":"GET","path":"/sso.getTrustedOrigins","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.one":{"method":"GET","path":"/sso.one","tag":"sso","inputKind":"query","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.update":{"method":"POST","path":"/sso.update","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.deleteProvider":{"method":"POST","path":"/sso.deleteProvider","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.register":{"method":"POST","path":"/sso.register","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string"},"issuer":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"oidcConfig":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"authorizationEndpoint":{"type":"string"},"tokenEndpoint":{"type":"string"},"userInfoEndpoint":{"type":"string"},"tokenEndpointAuthentication":{"type":"string","enum":["client_secret_post","client_secret_basic"]},"jwksEndpoint":{"type":"string"},"discoveryEndpoint":{"type":"string"},"skipDiscovery":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"pkce":{"default":true,"type":"boolean"},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"image":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["clientId","clientSecret"]},"samlConfig":{"type":"object","properties":{"entryPoint":{"type":"string"},"cert":{"type":"string"},"callbackUrl":{"type":"string"},"audience":{"type":"string"},"idpMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"cert":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"},"singleSignOnService":{"type":"array","items":{"type":"object","properties":{"Binding":{"type":"string"},"Location":{"type":"string"}},"required":["Binding","Location"]}}}},"spMetadata":{"type":"object","properties":{"metadata":{"type":"string"},"entityID":{"type":"string"},"binding":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPass":{"type":"string"},"isAssertionEncrypted":{"type":"boolean"},"encPrivateKey":{"type":"string"},"encPrivateKeyPass":{"type":"string"}}},"wantAssertionsSigned":{"type":"boolean"},"authnRequestsSigned":{"type":"boolean"},"signatureAlgorithm":{"type":"string"},"digestAlgorithm":{"type":"string"},"identifierFormat":{"type":"string"},"privateKey":{"type":"string"},"decryptionPvk":{"type":"string"},"additionalParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"mapping":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"string"},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"extraFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","email","name"]}},"required":["entryPoint","cert","callbackUrl","spMetadata"]},"organizationId":{"type":"string"},"overrideUserInfo":{"default":false,"type":"boolean"}},"required":["providerId","issuer","domains"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.addTrustedOrigin":{"method":"POST","path":"/sso.addTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.removeTrustedOrigin":{"method":"POST","path":"/sso.removeTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"origin":{"type":"string","minLength":1}},"required":["origin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"sso.updateTrustedOrigin":{"method":"POST","path":"/sso.updateTrustedOrigin","tag":"sso","inputKind":"body","inputSchema":{"type":"object","properties":{"oldOrigin":{"type":"string","minLength":1},"newOrigin":{"type":"string","minLength":1}},"required":["oldOrigin","newOrigin"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"scim.listProviders":{"method":"GET","path":"/scim.listProviders","tag":"scim","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"scim.generateToken":{"method":"POST","path":"/scim.generateToken","tag":"scim","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9][a-z0-9-]*$"}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"scim.deleteProvider":{"method":"POST","path":"/scim.deleteProvider","tag":"scim","inputKind":"body","inputSchema":{"type":"object","properties":{"providerId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9][a-z0-9-]*$"}},"required":["providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.getAuthDomain":{"method":"GET","path":"/forwardAuth.getAuthDomain","tag":"forwardAuth","inputKind":"query","inputSchema":{"type":"object","properties":{"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.setAuthDomain":{"method":"POST","path":"/forwardAuth.setAuthDomain","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authDomain":{"type":"string"},"https":{"default":true,"type":"boolean"},"certificateType":{"default":"letsencrypt","type":"string","enum":["none","letsencrypt","custom"]},"customCertResolver":{"type":"string"}},"required":["serverId","authDomain"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.removeAuthDomain":{"method":"POST","path":"/forwardAuth.removeAuthDomain","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.listProviders":{"method":"GET","path":"/forwardAuth.listProviders","tag":"forwardAuth","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.serverStatus":{"method":"GET","path":"/forwardAuth.serverStatus","tag":"forwardAuth","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.deployOnServer":{"method":"POST","path":"/forwardAuth.deployOnServer","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerId":{"type":"string","minLength":1}},"required":["serverId","providerId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.removeOnServer":{"method":"POST","path":"/forwardAuth.removeOnServer","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["serverId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.status":{"method":"GET","path":"/forwardAuth.status","tag":"forwardAuth","inputKind":"query","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.enable":{"method":"POST","path":"/forwardAuth.enable","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"forwardAuth.disable":{"method":"POST","path":"/forwardAuth.disable","tag":"forwardAuth","inputKind":"body","inputSchema":{"type":"object","properties":{"domainId":{"type":"string","minLength":1}},"required":["domainId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.get":{"method":"GET","path":"/whitelabeling.get","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.update":{"method":"POST","path":"/whitelabeling.update","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{"whitelabelingConfig":{"type":"object","properties":{"appName":{"anyOf":[{"type":"string"},{"type":"null"}]},"appDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customCss":{"anyOf":[{"type":"string"},{"type":"null"}]},"loginLogoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"docsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorPageDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"metaTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"footerText":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["appName","appDescription","logoUrl","faviconUrl","customCss","loginLogoUrl","supportUrl","docsUrl","errorPageTitle","errorPageDescription","metaTitle","footerText"]}},"required":["whitelabelingConfig"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.reset":{"method":"POST","path":"/whitelabeling.reset","tag":"whitelabeling","inputKind":"body","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"whitelabeling.getPublic":{"method":"GET","path":"/whitelabeling.getPublic","tag":"whitelabeling","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.all":{"method":"GET","path":"/customRole.all","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.create":{"method":"POST","path":"/customRole.create","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.update":{"method":"POST","path":"/customRole.update","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1},"newRoleName":{"type":"string","minLength":1,"maxLength":50},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["roleName","permissions"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.remove":{"method":"POST","path":"/customRole.remove","tag":"customRole","inputKind":"body","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.membersByRole":{"method":"GET","path":"/customRole.membersByRole","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{"roleName":{"type":"string","minLength":1}},"required":["roleName"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"customRole.getStatements":{"method":"GET","path":"/customRole.getStatements","tag":"customRole","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"auditLog.all":{"method":"GET","path":"/auditLog.all","tag":"auditLog","inputKind":"query","inputSchema":{"type":"object","properties":{"userId":{"type":"string"},"userEmail":{"type":"string"},"resourceName":{"type":"string"},"action":{"type":"string","enum":["create","update","delete","deploy","cancel","redeploy","login","logout"]},"resourceType":{"type":"string","enum":["project","service","environment","deployment","user","customRole","domain","certificate","registry","server","sshKey","gitProvider","notification","settings","session"]},"from":{"type":"string"},"to":{"type":"string"},"limit":{"default":50,"type":"number","minimum":1,"maximum":500},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.create":{"method":"POST","path":"/schedule.create","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.update":{"method":"POST","path":"/schedule.update","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"cronExpression":{"type":"string"},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"shellType":{"type":"string","enum":["bash","sh"]},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]},"command":{"type":"string"},"script":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"serverId":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["scheduleId","name","cronExpression","command"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.delete":{"method":"POST","path":"/schedule.delete","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.list":{"method":"GET","path":"/schedule.list","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"scheduleType":{"type":"string","enum":["application","compose","server","dokploy-server"]}},"required":["id","scheduleType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.one":{"method":"GET","path":"/schedule.one","tag":"schedule","inputKind":"query","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"schedule.runManually":{"method":"POST","path":"/schedule.runManually","tag":"schedule","inputKind":"body","inputSchema":{"type":"object","properties":{"scheduleId":{"type":"string","minLength":1}},"required":["scheduleId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.delete":{"method":"POST","path":"/rollback.delete","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"rollback.rollback":{"method":"POST","path":"/rollback.rollback","tag":"rollback","inputKind":"body","inputSchema":{"type":"object","properties":{"rollbackId":{"type":"string","minLength":1}},"required":["rollbackId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.list":{"method":"GET","path":"/volumeBackups.list","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"volumeBackupType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]}},"required":["id","volumeBackupType"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.create":{"method":"POST","path":"/volumeBackups.create","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"}},"required":["name","volumeName","prefix","cronExpression","destinationId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.one":{"method":"GET","path":"/volumeBackups.one","tag":"volumeBackups","inputKind":"query","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.delete":{"method":"POST","path":"/volumeBackups.delete","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.update":{"method":"POST","path":"/volumeBackups.update","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string"},"volumeName":{"type":"string"},"prefix":{"type":"string"},"serviceType":{"type":"string","enum":["application","postgres","mysql","mariadb","mongo","redis","compose","libsql"]},"appName":{"type":"string"},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}]},"turnOff":{"type":"boolean"},"cronExpression":{"type":"string"},"keepLatestCount":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"postgresId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mariadbId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mongoId":{"anyOf":[{"type":"string"},{"type":"null"}]},"mysqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"redisId":{"anyOf":[{"type":"string"},{"type":"null"}]},"libsqlId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"destinationId":{"type":"string"},"volumeBackupId":{"type":"string","minLength":1}},"required":["name","volumeName","prefix","cronExpression","destinationId","volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"volumeBackups.runManually":{"method":"POST","path":"/volumeBackups.runManually","tag":"volumeBackups","inputKind":"body","inputSchema":{"type":"object","properties":{"volumeBackupId":{"type":"string","minLength":1}},"required":["volumeBackupId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.create":{"method":"POST","path":"/environment.create","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string","minLength":1}},"required":["name","projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.one":{"method":"GET","path":"/environment.one","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.byProjectId":{"method":"GET","path":"/environment.byProjectId","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.remove":{"method":"POST","path":"/environment.remove","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.update":{"method":"POST","path":"/environment.update","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"},"projectId":{"type":"string"},"env":{"type":"string"}},"required":["environmentId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.duplicate":{"method":"POST","path":"/environment.duplicate","tag":"environment","inputKind":"body","inputSchema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"description":{"type":"string"}},"required":["environmentId","name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"environment.search":{"method":"GET","path":"/environment.search","tag":"environment","inputKind":"query","inputSchema":{"type":"object","properties":{"q":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"projectId":{"type":"string"},"limit":{"default":20,"type":"number","minimum":1,"maximum":100},"offset":{"default":0,"type":"number","minimum":0}},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.create":{"method":"POST","path":"/tag.create","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.all":{"method":"GET","path":"/tag.all","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{},"required":[]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.one":{"method":"GET","path":"/tag.one","tag":"tag","inputKind":"query","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.update":{"method":"POST","path":"/tag.update","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"organizationId":{"type":"string"}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.remove":{"method":"POST","path":"/tag.remove","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.assignToProject":{"method":"POST","path":"/tag.assignToProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.removeFromProject":{"method":"POST","path":"/tag.removeFromProject","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagId":{"type":"string","minLength":1}},"required":["projectId","tagId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"tag.bulkAssign":{"method":"POST","path":"/tag.bulkAssign","tag":"tag","inputKind":"body","inputSchema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1},"tagIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["projectId","tagIds"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.create":{"method":"POST","path":"/patch.create","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"filePath":{"type":"string","minLength":1},"content":{"type":"string"},"type":{"type":"string","enum":["create","update","delete"]},"enabled":{"type":"boolean"},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"composeId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.one":{"method":"GET","path":"/patch.one","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.byEntityId":{"method":"GET","path":"/patch.byEntityId","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.update":{"method":"POST","path":"/patch.update","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"type":{"type":"string","enum":["create","update","delete"]},"filePath":{"type":"string","minLength":1},"enabled":{"type":"boolean"},"content":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.delete":{"method":"POST","path":"/patch.delete","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1}},"required":["patchId"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.toggleEnabled":{"method":"POST","path":"/patch.toggleEnabled","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"patchId":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"required":["patchId","enabled"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.ensureRepo":{"method":"POST","path":"/patch.ensureRepo","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["application","compose"]}},"required":["id","type"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoDirectories":{"method":"GET","path":"/patch.readRepoDirectories","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"repoPath":{"type":"string"}},"required":["id","type","repoPath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.readRepoFile":{"method":"GET","path":"/patch.readRepoFile","tag":"patch","inputKind":"query","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.saveFileAsPatch":{"method":"POST","path":"/patch.saveFileAsPatch","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"},"content":{"type":"string"},"patchType":{"default":"update","type":"string","enum":["create","update"]}},"required":["id","type","filePath","content"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.markFileForDeletion":{"method":"POST","path":"/patch.markFileForDeletion","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"type":{"type":"string","enum":["application","compose"]},"filePath":{"type":"string"}},"required":["id","type","filePath"]},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}},"patch.cleanPatchRepos":{"method":"POST","path":"/patch.cleanPatchRepos","tag":"patch","inputKind":"body","inputSchema":{"type":"object","properties":{"serverId":{"type":"string"}}},"outputSchema":{"type":"object","properties":{},"additionalProperties":false}}}') as Record export type ProcedureSchemas = typeof procedureSchemas diff --git a/src/generated/dokploy-sdk.d.ts b/src/generated/dokploy-sdk.d.ts index 462214c..305d870 100644 --- a/src/generated/dokploy-sdk.d.ts +++ b/src/generated/dokploy-sdk.d.ts @@ -101,7 +101,7 @@ export type application_refreshToken_Output = Record export type application_reload_Input = { "appName": string; "applicationId": string } export type application_reload_Output = Record -export type application_saveBitbucketProvider_Input = { "bitbucketBranch": string | null; "bitbucketBuildPath": string | null; "bitbucketOwner": string | null; "bitbucketRepository": string | null; "bitbucketRepositorySlug": string | null; "bitbucketId": string | null; "applicationId": string; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } +export type application_saveBitbucketProvider_Input = { "bitbucketBuildPath": string | null; "bitbucketOwner": string | null; "bitbucketRepository": string | null; "bitbucketRepositorySlug": string | null; "bitbucketId": string | null; "applicationId": string; "bitbucketBranch": string; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } export type application_saveBitbucketProvider_Output = Record export type application_saveBuildType_Input = { "applicationId": string; "buildType": "dockerfile" | "heroku_buildpacks" | "paketo_buildpacks" | "nixpacks" | "static" | "railpack"; "dockerfile": string | null; "dockerContextPath": string | null; "dockerBuildStage": string | null; "herokuVersion": string | null; "railpackVersion": string | null; "publishDirectory"?: string | null; "isStaticSpa"?: boolean | null } @@ -113,16 +113,16 @@ export type application_saveDockerProvider_Output = Record export type application_saveEnvironment_Input = { "applicationId": string; "env": string | null; "buildArgs": string | null; "buildSecrets": string | null; "createEnvFile": boolean } export type application_saveEnvironment_Output = Record -export type application_saveGitProvider_Input = { "customGitBranch": string | null; "applicationId": string; "customGitBuildPath": string | null; "customGitUrl": string | null; "watchPaths": Array | null; "enableSubmodules"?: boolean; "customGitSSHKeyId"?: string | null } +export type application_saveGitProvider_Input = { "applicationId": string; "customGitBuildPath": string | null; "customGitUrl": string | null; "watchPaths": Array | null; "enableSubmodules"?: boolean; "customGitBranch": string; "customGitSSHKeyId"?: string | null } export type application_saveGitProvider_Output = Record -export type application_saveGiteaProvider_Input = { "applicationId": string; "giteaBranch": string | null; "giteaBuildPath": string | null; "giteaOwner": string | null; "giteaRepository": string | null; "giteaId": string | null; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } +export type application_saveGiteaProvider_Input = { "applicationId": string; "giteaBuildPath": string | null; "giteaOwner": string | null; "giteaRepository": string | null; "giteaId": string | null; "giteaBranch": string; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } export type application_saveGiteaProvider_Output = Record -export type application_saveGithubProvider_Input = { "applicationId": string; "repository": string | null; "branch": string | null; "owner": string | null; "buildPath": string | null; "githubId": string | null; "triggerType": "push" | "tag"; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } +export type application_saveGithubProvider_Input = { "applicationId": string; "repository": string | null; "owner": string | null; "buildPath": string | null; "githubId": string | null; "branch": string; "triggerType": "push" | "tag"; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } export type application_saveGithubProvider_Output = Record -export type application_saveGitlabProvider_Input = { "applicationId": string; "gitlabBranch": string | null; "gitlabBuildPath": string | null; "gitlabOwner": string | null; "gitlabRepository": string | null; "gitlabId": string | null; "gitlabProjectId": number | null; "gitlabPathNamespace": string | null; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } +export type application_saveGitlabProvider_Input = { "applicationId": string; "gitlabBuildPath": string | null; "gitlabOwner": string | null; "gitlabRepository": string | null; "gitlabId": string | null; "gitlabProjectId": number | null; "gitlabPathNamespace": string | null; "gitlabBranch": string; "enableSubmodules"?: boolean; "watchPaths"?: Array | null } export type application_saveGitlabProvider_Output = Record export type application_search_Input = { "q"?: string; "name"?: string; "appName"?: string; "description"?: string; "repository"?: string; "owner"?: string; "dockerImage"?: string; "projectId"?: string; "environmentId"?: string; "limit"?: number; "offset"?: number } @@ -284,6 +284,9 @@ export type compose_move_Output = Record export type compose_one_Input = { "composeId": string } export type compose_one_Output = Record +export type compose_previewTemplate_Input = { "base64": string; "appName": string; "serverId"?: string } +export type compose_previewTemplate_Output = Record + export type compose_processTemplate_Input = { "base64": string; "composeId": string } export type compose_processTemplate_Output = Record @@ -356,6 +359,9 @@ export type deployment_killProcess_Output = Record export type deployment_queueList_Input = Record export type deployment_queueList_Output = Record +export type deployment_readLogs_Input = { "deploymentId": string; "tail"?: number } +export type deployment_readLogs_Output = Record + export type deployment_removeDeployment_Input = { "deploymentId": string } export type deployment_removeDeployment_Output = Record @@ -422,7 +428,7 @@ export type domain_byComposeId_Output = Record export type domain_canGenerateTraefikMeDomains_Input = { "serverId": string } export type domain_canGenerateTraefikMeDomains_Output = Record -export type domain_create_Input = { "host": string; "path"?: string | null; "port"?: number | null; "customEntrypoint"?: string | null; "https"?: boolean; "applicationId"?: string | null; "certificateType"?: "letsencrypt" | "none" | "custom"; "customCertResolver"?: string | null; "composeId"?: string | null; "serviceName"?: string | null; "domainType"?: "compose" | "application" | "preview" | null; "previewDeploymentId"?: string | null; "internalPath"?: string | null; "stripPath"?: boolean; "middlewares"?: Array | null } +export type domain_create_Input = { "host": string; "path"?: string | null; "port"?: number | null; "customEntrypoint"?: string | null; "https"?: boolean; "applicationId"?: string | null; "certificateType"?: "letsencrypt" | "none" | "custom"; "customCertResolver"?: string | null; "composeId"?: string | null; "serviceName"?: string | null; "domainType"?: "compose" | "application" | "preview" | null; "previewDeploymentId"?: string | null; "internalPath"?: string | null; "stripPath"?: boolean; "middlewares"?: Array | null; "forwardAuthEnabled"?: boolean } export type domain_create_Output = Record export type domain_delete_Input = { "domainId": string } @@ -434,7 +440,7 @@ export type domain_generateDomain_Output = Record export type domain_one_Input = { "domainId": string } export type domain_one_Output = Record -export type domain_update_Input = { "host": string; "path"?: string | null; "port"?: number | null; "customEntrypoint"?: string | null; "https"?: boolean; "certificateType"?: "letsencrypt" | "none" | "custom"; "customCertResolver"?: string | null; "serviceName"?: string | null; "domainType"?: "compose" | "application" | "preview" | null; "internalPath"?: string | null; "stripPath"?: boolean; "middlewares"?: Array | null; "domainId": string } +export type domain_update_Input = { "host": string; "path"?: string | null; "port"?: number | null; "customEntrypoint"?: string | null; "https"?: boolean; "certificateType"?: "letsencrypt" | "none" | "custom"; "customCertResolver"?: string | null; "serviceName"?: string | null; "domainType"?: "compose" | "application" | "preview" | null; "internalPath"?: string | null; "stripPath"?: boolean; "middlewares"?: Array | null; "forwardAuthEnabled"?: boolean; "domainId": string } export type domain_update_Output = Record export type domain_validateDomain_Input = { "domain": string; "serverIp"?: string } @@ -461,6 +467,36 @@ export type environment_search_Output = Record export type environment_update_Input = { "environmentId": string; "name"?: string; "description"?: string; "projectId"?: string; "env"?: string } export type environment_update_Output = Record +export type forwardAuth_deployOnServer_Input = { "serverId": string | null; "providerId": string } +export type forwardAuth_deployOnServer_Output = Record + +export type forwardAuth_disable_Input = { "domainId": string } +export type forwardAuth_disable_Output = Record + +export type forwardAuth_enable_Input = { "domainId": string } +export type forwardAuth_enable_Output = Record + +export type forwardAuth_getAuthDomain_Input = { "serverId": string | null } +export type forwardAuth_getAuthDomain_Output = Record + +export type forwardAuth_listProviders_Input = Record +export type forwardAuth_listProviders_Output = Record + +export type forwardAuth_removeAuthDomain_Input = { "serverId": string | null } +export type forwardAuth_removeAuthDomain_Output = Record + +export type forwardAuth_removeOnServer_Input = { "serverId": string | null } +export type forwardAuth_removeOnServer_Output = Record + +export type forwardAuth_serverStatus_Input = Record +export type forwardAuth_serverStatus_Output = Record + +export type forwardAuth_setAuthDomain_Input = { "serverId": string | null; "authDomain": string; "https"?: boolean; "certificateType"?: "none" | "letsencrypt" | "custom"; "customCertResolver"?: string } +export type forwardAuth_setAuthDomain_Output = Record + +export type forwardAuth_status_Input = { "domainId": string } +export type forwardAuth_status_Output = Record + export type gitProvider_allForPermissions_Input = Record export type gitProvider_allForPermissions_Output = Record @@ -1136,7 +1172,7 @@ export type rollback_delete_Output = Record export type rollback_rollback_Input = { "rollbackId": string } export type rollback_rollback_Output = Record -export type schedule_create_Input = { "scheduleId"?: string; "name": string; "cronExpression": string; "appName"?: string; "serviceName"?: string | null; "shellType"?: "bash" | "sh"; "scheduleType"?: "application" | "compose" | "server" | "dokploy-server"; "command": string; "script"?: string | null; "applicationId"?: string | null; "composeId"?: string | null; "serverId"?: string | null; "userId"?: string | null; "enabled"?: boolean; "timezone"?: string | null; "createdAt"?: string } +export type schedule_create_Input = { "scheduleId"?: string; "name": string; "description"?: string | null; "cronExpression": string; "appName"?: string; "serviceName"?: string | null; "shellType"?: "bash" | "sh"; "scheduleType"?: "application" | "compose" | "server" | "dokploy-server"; "command": string; "script"?: string | null; "applicationId"?: string | null; "composeId"?: string | null; "serverId"?: string | null; "organizationId"?: string | null; "enabled"?: boolean; "timezone"?: string | null; "createdAt"?: string } export type schedule_create_Output = Record export type schedule_delete_Input = { "scheduleId": string } @@ -1151,9 +1187,18 @@ export type schedule_one_Output = Record export type schedule_runManually_Input = { "scheduleId": string } export type schedule_runManually_Output = Record -export type schedule_update_Input = { "scheduleId": string; "name": string; "cronExpression": string; "appName"?: string; "serviceName"?: string | null; "shellType"?: "bash" | "sh"; "scheduleType"?: "application" | "compose" | "server" | "dokploy-server"; "command": string; "script"?: string | null; "applicationId"?: string | null; "composeId"?: string | null; "serverId"?: string | null; "userId"?: string | null; "enabled"?: boolean; "timezone"?: string | null; "createdAt"?: string } +export type schedule_update_Input = { "scheduleId": string; "name": string; "description"?: string | null; "cronExpression": string; "appName"?: string; "serviceName"?: string | null; "shellType"?: "bash" | "sh"; "scheduleType"?: "application" | "compose" | "server" | "dokploy-server"; "command": string; "script"?: string | null; "applicationId"?: string | null; "composeId"?: string | null; "serverId"?: string | null; "organizationId"?: string | null; "enabled"?: boolean; "timezone"?: string | null; "createdAt"?: string } export type schedule_update_Output = Record +export type scim_deleteProvider_Input = { "providerId": string } +export type scim_deleteProvider_Output = Record + +export type scim_generateToken_Input = { "providerId": string } +export type scim_generateToken_Output = Record + +export type scim_listProviders_Input = Record +export type scim_listProviders_Output = Record + export type security_create_Input = { "applicationId": string; "username": string; "password": string } export type security_create_Output = Record @@ -1178,7 +1223,7 @@ export type server_buildServers_Output = Record export type server_count_Input = Record export type server_count_Output = Record -export type server_create_Input = { "name": string; "description": string | null; "ipAddress": string; "port": number; "username": string; "sshKeyId": string | null; "serverType": "deploy" | "build" } +export type server_create_Input = { "name": string; "description": string | null; "ipAddress": string; "port": number; "username": string; "sshKeyId": string | null; "serverType": "deploy" | "build"; "enableDockerCleanup"?: boolean } export type server_create_Output = Record export type server_getDefaultCommand_Input = { "serverId": string } @@ -1208,9 +1253,12 @@ export type server_setup_Output = Record export type server_setupMonitoring_Input = { "serverId": string; "metricsConfig": { "server": { "refreshRate": number; "port": number; "token": string; "urlCallback": string; "retentionDays": number; "cronJob": string; "thresholds": { "cpu": number; "memory": number } }; "containers": { "refreshRate": number; "services": { "include"?: Array; "exclude"?: Array } } } } export type server_setupMonitoring_Output = Record -export type server_update_Input = { "name": string; "description": string | null; "serverId": string; "ipAddress": string; "port": number; "username": string; "sshKeyId": string | null; "serverType": "deploy" | "build"; "command"?: string } +export type server_update_Input = { "name": string; "description": string | null; "serverId": string; "ipAddress": string; "port": number; "username": string; "sshKeyId": string | null; "serverType": "deploy" | "build"; "enableDockerCleanup"?: boolean; "command"?: string } export type server_update_Output = Record +export type server_updateBuildsConcurrency_Input = { "serverId": string; "buildsConcurrency": number } +export type server_updateBuildsConcurrency_Output = Record + export type server_validate_Input = { "serverId": string } export type server_validate_Output = Record @@ -1340,15 +1388,24 @@ export type settings_toggleDashboard_Output = Record export type settings_toggleRequests_Input = { "enable": boolean } export type settings_toggleRequests_Output = Record +export type settings_updateBuildsConcurrency_Input = { "buildsConcurrency": number } +export type settings_updateBuildsConcurrency_Output = Record + export type settings_updateDockerCleanup_Input = { "enableDockerCleanup": boolean; "serverId"?: string } export type settings_updateDockerCleanup_Output = Record +export type settings_updateEnforceSSO_Input = { "enforceSSO": boolean } +export type settings_updateEnforceSSO_Output = Record + export type settings_updateLogCleanup_Input = { "cronExpression": string | null } export type settings_updateLogCleanup_Output = Record export type settings_updateMiddlewareTraefikConfig_Input = { "traefikConfig": string } export type settings_updateMiddlewareTraefikConfig_Output = Record +export type settings_updateRemoteServersOnly_Input = { "remoteServersOnly": boolean } +export type settings_updateRemoteServersOnly_Output = Record + export type settings_updateServer_Input = Record export type settings_updateServer_Output = Record @@ -1397,6 +1454,9 @@ export type sso_addTrustedOrigin_Output = Record export type sso_deleteProvider_Input = { "providerId": string } export type sso_deleteProvider_Output = Record +export type sso_enforceSSO_Input = Record +export type sso_enforceSSO_Output = Record + export type sso_getTrustedOrigins_Input = Record export type sso_getTrustedOrigins_Output = Record @@ -1673,6 +1733,7 @@ export interface DokployProcedureMap { "compose.loadServices": { input: compose_loadServices_Input; output: compose_loadServices_Output } "compose.move": { input: compose_move_Input; output: compose_move_Output } "compose.one": { input: compose_one_Input; output: compose_one_Output } + "compose.previewTemplate": { input: compose_previewTemplate_Input; output: compose_previewTemplate_Output } "compose.processTemplate": { input: compose_processTemplate_Input; output: compose_processTemplate_Output } "compose.randomizeCompose": { input: compose_randomizeCompose_Input; output: compose_randomizeCompose_Output } "compose.readLogs": { input: compose_readLogs_Input; output: compose_readLogs_Output } @@ -1697,6 +1758,7 @@ export interface DokployProcedureMap { "deployment.allCentralized": { input: deployment_allCentralized_Input; output: deployment_allCentralized_Output } "deployment.killProcess": { input: deployment_killProcess_Input; output: deployment_killProcess_Output } "deployment.queueList": { input: deployment_queueList_Input; output: deployment_queueList_Output } + "deployment.readLogs": { input: deployment_readLogs_Input; output: deployment_readLogs_Output } "deployment.removeDeployment": { input: deployment_removeDeployment_Input; output: deployment_removeDeployment_Output } "destination.all": { input: destination_all_Input; output: destination_all_Output } "destination.create": { input: destination_create_Input; output: destination_create_Output } @@ -1732,6 +1794,16 @@ export interface DokployProcedureMap { "environment.remove": { input: environment_remove_Input; output: environment_remove_Output } "environment.search": { input: environment_search_Input; output: environment_search_Output } "environment.update": { input: environment_update_Input; output: environment_update_Output } + "forwardAuth.deployOnServer": { input: forwardAuth_deployOnServer_Input; output: forwardAuth_deployOnServer_Output } + "forwardAuth.disable": { input: forwardAuth_disable_Input; output: forwardAuth_disable_Output } + "forwardAuth.enable": { input: forwardAuth_enable_Input; output: forwardAuth_enable_Output } + "forwardAuth.getAuthDomain": { input: forwardAuth_getAuthDomain_Input; output: forwardAuth_getAuthDomain_Output } + "forwardAuth.listProviders": { input: forwardAuth_listProviders_Input; output: forwardAuth_listProviders_Output } + "forwardAuth.removeAuthDomain": { input: forwardAuth_removeAuthDomain_Input; output: forwardAuth_removeAuthDomain_Output } + "forwardAuth.removeOnServer": { input: forwardAuth_removeOnServer_Input; output: forwardAuth_removeOnServer_Output } + "forwardAuth.serverStatus": { input: forwardAuth_serverStatus_Input; output: forwardAuth_serverStatus_Output } + "forwardAuth.setAuthDomain": { input: forwardAuth_setAuthDomain_Input; output: forwardAuth_setAuthDomain_Output } + "forwardAuth.status": { input: forwardAuth_status_Input; output: forwardAuth_status_Output } "gitProvider.allForPermissions": { input: gitProvider_allForPermissions_Input; output: gitProvider_allForPermissions_Output } "gitProvider.getAll": { input: gitProvider_getAll_Input; output: gitProvider_getAll_Output } "gitProvider.remove": { input: gitProvider_remove_Input; output: gitProvider_remove_Output } @@ -1963,6 +2035,9 @@ export interface DokployProcedureMap { "schedule.one": { input: schedule_one_Input; output: schedule_one_Output } "schedule.runManually": { input: schedule_runManually_Input; output: schedule_runManually_Output } "schedule.update": { input: schedule_update_Input; output: schedule_update_Output } + "scim.deleteProvider": { input: scim_deleteProvider_Input; output: scim_deleteProvider_Output } + "scim.generateToken": { input: scim_generateToken_Input; output: scim_generateToken_Output } + "scim.listProviders": { input: scim_listProviders_Input; output: scim_listProviders_Output } "security.create": { input: security_create_Input; output: security_create_Output } "security.delete": { input: security_delete_Input; output: security_delete_Output } "security.one": { input: security_one_Input; output: security_one_Output } @@ -1982,6 +2057,7 @@ export interface DokployProcedureMap { "server.setup": { input: server_setup_Input; output: server_setup_Output } "server.setupMonitoring": { input: server_setupMonitoring_Input; output: server_setupMonitoring_Output } "server.update": { input: server_update_Input; output: server_update_Output } + "server.updateBuildsConcurrency": { input: server_updateBuildsConcurrency_Input; output: server_updateBuildsConcurrency_Output } "server.validate": { input: server_validate_Input; output: server_validate_Output } "server.withSSHKey": { input: server_withSSHKey_Input; output: server_withSSHKey_Output } "settings.assignDomainServer": { input: settings_assignDomainServer_Input; output: settings_assignDomainServer_Output } @@ -2025,9 +2101,12 @@ export interface DokployProcedureMap { "settings.setupGPU": { input: settings_setupGPU_Input; output: settings_setupGPU_Output } "settings.toggleDashboard": { input: settings_toggleDashboard_Input; output: settings_toggleDashboard_Output } "settings.toggleRequests": { input: settings_toggleRequests_Input; output: settings_toggleRequests_Output } + "settings.updateBuildsConcurrency": { input: settings_updateBuildsConcurrency_Input; output: settings_updateBuildsConcurrency_Output } "settings.updateDockerCleanup": { input: settings_updateDockerCleanup_Input; output: settings_updateDockerCleanup_Output } + "settings.updateEnforceSSO": { input: settings_updateEnforceSSO_Input; output: settings_updateEnforceSSO_Output } "settings.updateLogCleanup": { input: settings_updateLogCleanup_Input; output: settings_updateLogCleanup_Output } "settings.updateMiddlewareTraefikConfig": { input: settings_updateMiddlewareTraefikConfig_Input; output: settings_updateMiddlewareTraefikConfig_Output } + "settings.updateRemoteServersOnly": { input: settings_updateRemoteServersOnly_Input; output: settings_updateRemoteServersOnly_Output } "settings.updateServer": { input: settings_updateServer_Input; output: settings_updateServer_Output } "settings.updateServerIp": { input: settings_updateServerIp_Input; output: settings_updateServerIp_Output } "settings.updateTraefikConfig": { input: settings_updateTraefikConfig_Input; output: settings_updateTraefikConfig_Output } @@ -2044,6 +2123,7 @@ export interface DokployProcedureMap { "sshKey.update": { input: sshKey_update_Input; output: sshKey_update_Output } "sso.addTrustedOrigin": { input: sso_addTrustedOrigin_Input; output: sso_addTrustedOrigin_Output } "sso.deleteProvider": { input: sso_deleteProvider_Input; output: sso_deleteProvider_Output } + "sso.enforceSSO": { input: sso_enforceSSO_Input; output: sso_enforceSSO_Output } "sso.getTrustedOrigins": { input: sso_getTrustedOrigins_Input; output: sso_getTrustedOrigins_Output } "sso.listProviders": { input: sso_listProviders_Input; output: sso_listProviders_Output } "sso.one": { input: sso_one_Input; output: sso_one_Output } @@ -2218,6 +2298,7 @@ export interface DokploySdk { loadServices(input: compose_loadServices_Input): Promise move(input: compose_move_Input): Promise one(input: compose_one_Input): Promise + previewTemplate(input: compose_previewTemplate_Input): Promise processTemplate(input: compose_processTemplate_Input): Promise randomizeCompose(input: compose_randomizeCompose_Input): Promise readLogs(input: compose_readLogs_Input): Promise @@ -2246,6 +2327,7 @@ export interface DokploySdk { allCentralized(input: deployment_allCentralized_Input): Promise killProcess(input: deployment_killProcess_Input): Promise queueList(input: deployment_queueList_Input): Promise + readLogs(input: deployment_readLogs_Input): Promise removeDeployment(input: deployment_removeDeployment_Input): Promise } destination: { @@ -2290,6 +2372,18 @@ export interface DokploySdk { search(input: environment_search_Input): Promise update(input: environment_update_Input): Promise } + forwardAuth: { + deployOnServer(input: forwardAuth_deployOnServer_Input): Promise + disable(input: forwardAuth_disable_Input): Promise + enable(input: forwardAuth_enable_Input): Promise + getAuthDomain(input: forwardAuth_getAuthDomain_Input): Promise + listProviders(input: forwardAuth_listProviders_Input): Promise + removeAuthDomain(input: forwardAuth_removeAuthDomain_Input): Promise + removeOnServer(input: forwardAuth_removeOnServer_Input): Promise + serverStatus(input: forwardAuth_serverStatus_Input): Promise + setAuthDomain(input: forwardAuth_setAuthDomain_Input): Promise + status(input: forwardAuth_status_Input): Promise + } gitea: { create(input: gitea_create_Input): Promise getGiteaBranches(input: gitea_getGiteaBranches_Input): Promise @@ -2565,6 +2659,11 @@ export interface DokploySdk { runManually(input: schedule_runManually_Input): Promise update(input: schedule_update_Input): Promise } + scim: { + deleteProvider(input: scim_deleteProvider_Input): Promise + generateToken(input: scim_generateToken_Input): Promise + listProviders(input: scim_listProviders_Input): Promise + } security: { create(input: security_create_Input): Promise delete(input: security_delete_Input): Promise @@ -2587,6 +2686,7 @@ export interface DokploySdk { setup(input: server_setup_Input): Promise setupMonitoring(input: server_setupMonitoring_Input): Promise update(input: server_update_Input): Promise + updateBuildsConcurrency(input: server_updateBuildsConcurrency_Input): Promise validate(input: server_validate_Input): Promise withSSHKey(input: server_withSSHKey_Input): Promise } @@ -2632,9 +2732,12 @@ export interface DokploySdk { setupGPU(input: settings_setupGPU_Input): Promise toggleDashboard(input: settings_toggleDashboard_Input): Promise toggleRequests(input: settings_toggleRequests_Input): Promise + updateBuildsConcurrency(input: settings_updateBuildsConcurrency_Input): Promise updateDockerCleanup(input: settings_updateDockerCleanup_Input): Promise + updateEnforceSSO(input: settings_updateEnforceSSO_Input): Promise updateLogCleanup(input: settings_updateLogCleanup_Input): Promise updateMiddlewareTraefikConfig(input: settings_updateMiddlewareTraefikConfig_Input): Promise + updateRemoteServersOnly(input: settings_updateRemoteServersOnly_Input): Promise updateServer(input: settings_updateServer_Input): Promise updateServerIp(input: settings_updateServerIp_Input): Promise updateTraefikConfig(input: settings_updateTraefikConfig_Input): Promise @@ -2655,6 +2758,7 @@ export interface DokploySdk { sso: { addTrustedOrigin(input: sso_addTrustedOrigin_Input): Promise deleteProvider(input: sso_deleteProvider_Input): Promise + enforceSSO(input: sso_enforceSSO_Input): Promise getTrustedOrigins(input: sso_getTrustedOrigins_Input): Promise listProviders(input: sso_listProviders_Input): Promise one(input: sso_one_Input): Promise diff --git a/src/generated/dokploy-sdk.ts b/src/generated/dokploy-sdk.ts index 346ff10..60b914f 100644 --- a/src/generated/dokploy-sdk.ts +++ b/src/generated/dokploy-sdk.ts @@ -112,6 +112,7 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: loadServices: (input = {}) => call("compose.loadServices", input), move: (input = {}) => call("compose.move", input), one: (input = {}) => call("compose.one", input), + previewTemplate: (input = {}) => call("compose.previewTemplate", input), processTemplate: (input = {}) => call("compose.processTemplate", input), randomizeCompose: (input = {}) => call("compose.randomizeCompose", input), readLogs: (input = {}) => call("compose.readLogs", input), @@ -140,6 +141,7 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: allCentralized: (input = {}) => call("deployment.allCentralized", input), killProcess: (input = {}) => call("deployment.killProcess", input), queueList: (input = {}) => call("deployment.queueList", input), + readLogs: (input = {}) => call("deployment.readLogs", input), removeDeployment: (input = {}) => call("deployment.removeDeployment", input), }, destination: { @@ -184,6 +186,18 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: search: (input = {}) => call("environment.search", input), update: (input = {}) => call("environment.update", input), }, + forwardAuth: { + deployOnServer: (input = {}) => call("forwardAuth.deployOnServer", input), + disable: (input = {}) => call("forwardAuth.disable", input), + enable: (input = {}) => call("forwardAuth.enable", input), + getAuthDomain: (input = {}) => call("forwardAuth.getAuthDomain", input), + listProviders: (input = {}) => call("forwardAuth.listProviders", input), + removeAuthDomain: (input = {}) => call("forwardAuth.removeAuthDomain", input), + removeOnServer: (input = {}) => call("forwardAuth.removeOnServer", input), + serverStatus: (input = {}) => call("forwardAuth.serverStatus", input), + setAuthDomain: (input = {}) => call("forwardAuth.setAuthDomain", input), + status: (input = {}) => call("forwardAuth.status", input), + }, gitea: { create: (input = {}) => call("gitea.create", input), getGiteaBranches: (input = {}) => call("gitea.getGiteaBranches", input), @@ -459,6 +473,11 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: runManually: (input = {}) => call("schedule.runManually", input), update: (input = {}) => call("schedule.update", input), }, + scim: { + deleteProvider: (input = {}) => call("scim.deleteProvider", input), + generateToken: (input = {}) => call("scim.generateToken", input), + listProviders: (input = {}) => call("scim.listProviders", input), + }, security: { create: (input = {}) => call("security.create", input), delete: (input = {}) => call("security.delete", input), @@ -481,6 +500,7 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: setup: (input = {}) => call("server.setup", input), setupMonitoring: (input = {}) => call("server.setupMonitoring", input), update: (input = {}) => call("server.update", input), + updateBuildsConcurrency: (input = {}) => call("server.updateBuildsConcurrency", input), validate: (input = {}) => call("server.validate", input), withSSHKey: (input = {}) => call("server.withSSHKey", input), }, @@ -526,9 +546,12 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: setupGPU: (input = {}) => call("settings.setupGPU", input), toggleDashboard: (input = {}) => call("settings.toggleDashboard", input), toggleRequests: (input = {}) => call("settings.toggleRequests", input), + updateBuildsConcurrency: (input = {}) => call("settings.updateBuildsConcurrency", input), updateDockerCleanup: (input = {}) => call("settings.updateDockerCleanup", input), + updateEnforceSSO: (input = {}) => call("settings.updateEnforceSSO", input), updateLogCleanup: (input = {}) => call("settings.updateLogCleanup", input), updateMiddlewareTraefikConfig: (input = {}) => call("settings.updateMiddlewareTraefikConfig", input), + updateRemoteServersOnly: (input = {}) => call("settings.updateRemoteServersOnly", input), updateServer: (input = {}) => call("settings.updateServer", input), updateServerIp: (input = {}) => call("settings.updateServerIp", input), updateTraefikConfig: (input = {}) => call("settings.updateTraefikConfig", input), @@ -549,6 +572,7 @@ export function createGeneratedDokployRuntime(call: (procedure: string, input?: sso: { addTrustedOrigin: (input = {}) => call("sso.addTrustedOrigin", input), deleteProvider: (input = {}) => call("sso.deleteProvider", input), + enforceSSO: (input = {}) => call("sso.enforceSSO", input), getTrustedOrigins: (input = {}) => call("sso.getTrustedOrigins", input), listProviders: (input = {}) => call("sso.listProviders", input), one: (input = {}) => call("sso.one", input), diff --git a/src/generated/openapi-index.json b/src/generated/openapi-index.json index 1be7dfc..11da314 100644 --- a/src/generated/openapi-index.json +++ b/src/generated/openapi-index.json @@ -1,7 +1,7 @@ { "version": "1.0.0", - "endpointCount": 524, - "tagCount": 48, + "endpointCount": 544, + "tagCount": 50, "endpoints": [ { "procedure": "admin.setupMonitoring", @@ -206,10 +206,10 @@ "requiredInputs": [ "applicationId", "repository", - "branch", "owner", "buildPath", "githubId", + "branch", "triggerType" ], "optionalInputs": [ @@ -231,13 +231,13 @@ "inputKind": "body", "requiredInputs": [ "applicationId", - "gitlabBranch", "gitlabBuildPath", "gitlabOwner", "gitlabRepository", "gitlabId", "gitlabProjectId", - "gitlabPathNamespace" + "gitlabPathNamespace", + "gitlabBranch" ], "optionalInputs": [ "enableSubmodules", @@ -257,13 +257,13 @@ "description": null, "inputKind": "body", "requiredInputs": [ - "bitbucketBranch", "bitbucketBuildPath", "bitbucketOwner", "bitbucketRepository", "bitbucketRepositorySlug", "bitbucketId", - "applicationId" + "applicationId", + "bitbucketBranch" ], "optionalInputs": [ "enableSubmodules", @@ -284,11 +284,11 @@ "inputKind": "body", "requiredInputs": [ "applicationId", - "giteaBranch", "giteaBuildPath", "giteaOwner", "giteaRepository", - "giteaId" + "giteaId", + "giteaBranch" ], "optionalInputs": [ "enableSubmodules", @@ -329,11 +329,11 @@ "description": null, "inputKind": "body", "requiredInputs": [ - "customGitBranch", "applicationId", "customGitBuildPath", "customGitUrl", - "watchPaths" + "watchPaths", + "customGitBranch" ], "optionalInputs": [ "enableSubmodules", @@ -1787,6 +1787,26 @@ "keys": [] } }, + { + "procedure": "compose.previewTemplate", + "method": "POST", + "path": "/compose.previewTemplate", + "tag": "compose", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "base64", + "appName" + ], + "optionalInputs": [ + "serverId" + ], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "compose.import", "method": "POST", @@ -2001,6 +2021,25 @@ "keys": [] } }, + { + "procedure": "deployment.readLogs", + "method": "GET", + "path": "/deployment.readLogs", + "tag": "deployment", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [ + "deploymentId" + ], + "optionalInputs": [ + "tail" + ], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "destination.create", "method": "POST", @@ -2378,7 +2417,8 @@ "previewDeploymentId", "internalPath", "stripPath", - "middlewares" + "middlewares", + "forwardAuthEnabled" ], "response": { "type": "object", @@ -2478,7 +2518,8 @@ "domainType", "internalPath", "stripPath", - "middlewares" + "middlewares", + "forwardAuthEnabled" ], "response": { "type": "object", @@ -6745,7 +6786,9 @@ "sshKeyId", "serverType" ], - "optionalInputs": [], + "optionalInputs": [ + "enableDockerCleanup" + ], "response": { "type": "object", "keys": [] @@ -6965,6 +7008,7 @@ "serverType" ], "optionalInputs": [ + "enableDockerCleanup", "command" ], "response": { @@ -6972,6 +7016,24 @@ "keys": [] } }, + { + "procedure": "server.updateBuildsConcurrency", + "method": "POST", + "path": "/server.updateBuildsConcurrency", + "tag": "server", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "serverId", + "buildsConcurrency" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "server.publicIp", "method": "GET", @@ -7335,6 +7397,57 @@ "keys": [] } }, + { + "procedure": "settings.updateRemoteServersOnly", + "method": "POST", + "path": "/settings.updateRemoteServersOnly", + "tag": "settings", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "remoteServersOnly" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "settings.updateBuildsConcurrency", + "method": "POST", + "path": "/settings.updateBuildsConcurrency", + "tag": "settings", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "buildsConcurrency" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "settings.updateEnforceSSO", + "method": "POST", + "path": "/settings.updateEnforceSSO", + "tag": "settings", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "enforceSSO" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "settings.readTraefikConfig", "method": "GET", @@ -9131,6 +9244,21 @@ "keys": [] } }, + { + "procedure": "sso.enforceSSO", + "method": "GET", + "path": "/sso.enforceSSO", + "tag": "sso", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "sso.listProviders", "method": "GET", @@ -9295,6 +9423,227 @@ "keys": [] } }, + { + "procedure": "scim.listProviders", + "method": "GET", + "path": "/scim.listProviders", + "tag": "scim", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "scim.generateToken", + "method": "POST", + "path": "/scim.generateToken", + "tag": "scim", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "providerId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "scim.deleteProvider", + "method": "POST", + "path": "/scim.deleteProvider", + "tag": "scim", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "providerId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.getAuthDomain", + "method": "GET", + "path": "/forwardAuth.getAuthDomain", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [ + "serverId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.setAuthDomain", + "method": "POST", + "path": "/forwardAuth.setAuthDomain", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "serverId", + "authDomain" + ], + "optionalInputs": [ + "https", + "certificateType", + "customCertResolver" + ], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.removeAuthDomain", + "method": "POST", + "path": "/forwardAuth.removeAuthDomain", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "serverId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.listProviders", + "method": "GET", + "path": "/forwardAuth.listProviders", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.serverStatus", + "method": "GET", + "path": "/forwardAuth.serverStatus", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.deployOnServer", + "method": "POST", + "path": "/forwardAuth.deployOnServer", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "serverId", + "providerId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.removeOnServer", + "method": "POST", + "path": "/forwardAuth.removeOnServer", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "serverId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.status", + "method": "GET", + "path": "/forwardAuth.status", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "query", + "requiredInputs": [ + "domainId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.enable", + "method": "POST", + "path": "/forwardAuth.enable", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "domainId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, + { + "procedure": "forwardAuth.disable", + "method": "POST", + "path": "/forwardAuth.disable", + "tag": "forwardAuth", + "summary": null, + "description": null, + "inputKind": "body", + "requiredInputs": [ + "domainId" + ], + "optionalInputs": [], + "response": { + "type": "object", + "keys": [] + } + }, { "procedure": "whitelabeling.get", "method": "GET", @@ -9499,6 +9848,7 @@ ], "optionalInputs": [ "scheduleId", + "description", "appName", "serviceName", "shellType", @@ -9507,7 +9857,7 @@ "applicationId", "composeId", "serverId", - "userId", + "organizationId", "enabled", "timezone", "createdAt" @@ -9532,6 +9882,7 @@ "command" ], "optionalInputs": [ + "description", "appName", "serviceName", "shellType", @@ -9540,7 +9891,7 @@ "applicationId", "composeId", "serverId", - "userId", + "organizationId", "enabled", "timezone", "createdAt" @@ -10411,29 +10762,29 @@ 86, 87, 88, - 89 + 89, + 90 ], "deployment": [ - 90, 91, 92, 93, 94, 95, 96, - 97 + 97, + 98, + 99 ], "destination": [ - 98, - 99, 100, 101, 102, - 103 + 103, + 104, + 105 ], "docker": [ - 104, - 105, 106, 107, 108, @@ -10443,55 +10794,55 @@ 112, 113, 114, - 115 + 115, + 116, + 117 ], "domain": [ - 116, - 117, 118, 119, 120, 121, 122, 123, - 124 + 124, + 125, + 126 ], "gitea": [ - 125, - 126, 127, 128, 129, 130, 131, - 132 + 132, + 133, + 134 ], "gitProvider": [ - 133, - 134, 135, - 136 + 136, + 137, + 138 ], "github": [ - 137, - 138, 139, 140, 141, - 142 + 142, + 143, + 144 ], "gitlab": [ - 143, - 144, 145, 146, 147, 148, - 149 + 149, + 150, + 151 ], "libsql": [ - 150, - 151, 152, 153, 154, @@ -10503,11 +10854,11 @@ 160, 161, 162, - 163 + 163, + 164, + 165 ], "mariadb": [ - 164, - 165, 166, 167, 168, @@ -10521,11 +10872,11 @@ 176, 177, 178, - 179 + 179, + 180, + 181 ], "mongo": [ - 180, - 181, 182, 183, 184, @@ -10539,19 +10890,19 @@ 192, 193, 194, - 195 + 195, + 196, + 197 ], "mounts": [ - 196, - 197, 198, 199, 200, - 201 + 201, + 202, + 203 ], "mysql": [ - 202, - 203, 204, 205, 206, @@ -10565,11 +10916,11 @@ 214, 215, 216, - 217 + 217, + 218, + 219 ], "notification": [ - 218, - 219, 220, 221, 222, @@ -10608,17 +10959,17 @@ 255, 256, 257, - 258 + 258, + 259, + 260 ], "port": [ - 259, - 260, 261, - 262 + 262, + 263, + 264 ], "postgres": [ - 263, - 264, 265, 266, 267, @@ -10632,34 +10983,34 @@ 275, 276, 277, - 278 + 278, + 279, + 280 ], "previewDeployment": [ - 279, - 280, 281, - 282 + 282, + 283, + 284 ], "project": [ - 283, - 284, 285, 286, 287, 288, 289, 290, - 291 + 291, + 292, + 293 ], "redirects": [ - 292, - 293, 294, - 295 + 295, + 296, + 297 ], "redis": [ - 296, - 297, 298, 299, 300, @@ -10673,26 +11024,26 @@ 308, 309, 310, - 311 + 311, + 312, + 313 ], "registry": [ - 312, - 313, 314, 315, 316, 317, - 318 + 318, + 319, + 320 ], "security": [ - 319, - 320, 321, - 322 + 322, + 323, + 324 ], "server": [ - 323, - 324, 325, 326, 327, @@ -10707,12 +11058,12 @@ 336, 337, 338, - 339 - ], - "settings": [ + 339, 340, 341, - 342, + 342 + ], + "settings": [ 343, 344, 345, @@ -10760,40 +11111,40 @@ 387, 388, 389, - 390 - ], - "sshKey": [ + 390, 391, 392, 393, 394, 395, - 396, - 397 + 396 ], - "stripe": [ + "sshKey": [ + 397, 398, 399, 400, 401, 402, - 403, - 404, - 405 + 403 ], - "swarm": [ + "stripe": [ + 404, + 405, 406, 407, 408, - 409 - ], - "user": [ + 409, 410, - 411, + 411 + ], + "swarm": [ 412, 413, 414, - 415, + 415 + ], + "user": [ 416, 417, 418, @@ -10810,36 +11161,34 @@ 429, 430, 431, - 432 - ], - "ai": [ + 432, 433, 434, 435, 436, 437, - 438, + 438 + ], + "ai": [ 439, 440, 441, 442, 443, - 444 - ], - "organization": [ + 444, 445, 446, 447, 448, 449, - 450, + 450 + ], + "organization": [ 451, 452, 453, 454, - 455 - ], - "licenseKey": [ + 455, 456, 457, 458, @@ -10847,80 +11196,82 @@ 460, 461 ], - "sso": [ + "licenseKey": [ 462, 463, 464, 465, 466, - 467, + 467 + ], + "sso": [ 468, 469, 470, - 471 - ], - "whitelabeling": [ + 471, 472, 473, 474, - 475 - ], - "customRole": [ + 475, 476, 477, - 478, + 478 + ], + "scim": [ 479, 480, 481 ], - "auditLog": [ - 482 - ], - "schedule": [ + "forwardAuth": [ + 482, 483, 484, 485, 486, 487, - 488 - ], - "rollback": [ + 488, 489, - 490 + 490, + 491 ], - "volumeBackups": [ - 491, + "whitelabeling": [ 492, 493, 494, - 495, - 496 + 495 ], - "environment": [ + "customRole": [ + 496, 497, 498, 499, 500, - 501, - 502, - 503 + 501 ], - "tag": [ + "auditLog": [ + 502 + ], + "schedule": [ + 503, 504, 505, 506, 507, - 508, + 508 + ], + "rollback": [ 509, - 510, - 511 + 510 ], - "patch": [ + "volumeBackups": [ + 511, 512, 513, 514, 515, - 516, + 516 + ], + "environment": [ 517, 518, 519, @@ -10928,6 +11279,30 @@ 521, 522, 523 + ], + "tag": [ + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531 + ], + "patch": [ + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543 ] }, "byProcedure": { @@ -11017,444 +11392,464 @@ "compose.disconnectGitProvider": 83, "compose.move": 84, "compose.processTemplate": 85, - "compose.import": 86, - "compose.cancelDeployment": 87, - "compose.search": 88, - "compose.readLogs": 89, - "deployment.all": 90, - "deployment.allByCompose": 91, - "deployment.allByServer": 92, - "deployment.allCentralized": 93, - "deployment.queueList": 94, - "deployment.allByType": 95, - "deployment.killProcess": 96, - "deployment.removeDeployment": 97, - "destination.create": 98, - "destination.testConnection": 99, - "destination.one": 100, - "destination.all": 101, - "destination.remove": 102, - "destination.update": 103, - "docker.getContainers": 104, - "docker.restartContainer": 105, - "docker.startContainer": 106, - "docker.stopContainer": 107, - "docker.killContainer": 108, - "docker.removeContainer": 109, - "docker.getConfig": 110, - "docker.getContainersByAppNameMatch": 111, - "docker.getContainersByAppLabel": 112, - "docker.getStackContainersByAppName": 113, - "docker.getServiceContainersByAppName": 114, - "docker.uploadFileToContainer": 115, - "domain.create": 116, - "domain.byApplicationId": 117, - "domain.byComposeId": 118, - "domain.generateDomain": 119, - "domain.canGenerateTraefikMeDomains": 120, - "domain.update": 121, - "domain.one": 122, - "domain.delete": 123, - "domain.validateDomain": 124, - "gitea.create": 125, - "gitea.one": 126, - "gitea.giteaProviders": 127, - "gitea.getGiteaRepositories": 128, - "gitea.getGiteaBranches": 129, - "gitea.testConnection": 130, - "gitea.update": 131, - "gitea.getGiteaUrl": 132, - "gitProvider.getAll": 133, - "gitProvider.toggleShare": 134, - "gitProvider.allForPermissions": 135, - "gitProvider.remove": 136, - "github.one": 137, - "github.getGithubRepositories": 138, - "github.getGithubBranches": 139, - "github.githubProviders": 140, - "github.testConnection": 141, - "github.update": 142, - "gitlab.create": 143, - "gitlab.one": 144, - "gitlab.gitlabProviders": 145, - "gitlab.getGitlabRepositories": 146, - "gitlab.getGitlabBranches": 147, - "gitlab.testConnection": 148, - "gitlab.update": 149, - "libsql.create": 150, - "libsql.one": 151, - "libsql.start": 152, - "libsql.stop": 153, - "libsql.saveExternalPorts": 154, - "libsql.deploy": 155, - "libsql.changeStatus": 156, - "libsql.remove": 157, - "libsql.saveEnvironment": 158, - "libsql.reload": 159, - "libsql.update": 160, - "libsql.move": 161, - "libsql.rebuild": 162, - "libsql.readLogs": 163, - "mariadb.create": 164, - "mariadb.one": 165, - "mariadb.start": 166, - "mariadb.stop": 167, - "mariadb.saveExternalPort": 168, - "mariadb.deploy": 169, - "mariadb.changeStatus": 170, - "mariadb.remove": 171, - "mariadb.saveEnvironment": 172, - "mariadb.reload": 173, - "mariadb.update": 174, - "mariadb.changePassword": 175, - "mariadb.move": 176, - "mariadb.rebuild": 177, - "mariadb.search": 178, - "mariadb.readLogs": 179, - "mongo.create": 180, - "mongo.one": 181, - "mongo.start": 182, - "mongo.stop": 183, - "mongo.saveExternalPort": 184, - "mongo.deploy": 185, - "mongo.changeStatus": 186, - "mongo.reload": 187, - "mongo.remove": 188, - "mongo.saveEnvironment": 189, - "mongo.update": 190, - "mongo.changePassword": 191, - "mongo.move": 192, - "mongo.rebuild": 193, - "mongo.search": 194, - "mongo.readLogs": 195, - "mounts.create": 196, - "mounts.remove": 197, - "mounts.one": 198, - "mounts.update": 199, - "mounts.allNamedByApplicationId": 200, - "mounts.listByServiceId": 201, - "mysql.create": 202, - "mysql.one": 203, - "mysql.start": 204, - "mysql.stop": 205, - "mysql.saveExternalPort": 206, - "mysql.deploy": 207, - "mysql.changeStatus": 208, - "mysql.reload": 209, - "mysql.remove": 210, - "mysql.saveEnvironment": 211, - "mysql.update": 212, - "mysql.changePassword": 213, - "mysql.move": 214, - "mysql.rebuild": 215, - "mysql.search": 216, - "mysql.readLogs": 217, - "notification.createSlack": 218, - "notification.updateSlack": 219, - "notification.testSlackConnection": 220, - "notification.createTelegram": 221, - "notification.updateTelegram": 222, - "notification.testTelegramConnection": 223, - "notification.createDiscord": 224, - "notification.updateDiscord": 225, - "notification.testDiscordConnection": 226, - "notification.createEmail": 227, - "notification.updateEmail": 228, - "notification.testEmailConnection": 229, - "notification.createResend": 230, - "notification.updateResend": 231, - "notification.testResendConnection": 232, - "notification.remove": 233, - "notification.one": 234, - "notification.all": 235, - "notification.receiveNotification": 236, - "notification.createGotify": 237, - "notification.updateGotify": 238, - "notification.testGotifyConnection": 239, - "notification.createNtfy": 240, - "notification.updateNtfy": 241, - "notification.testNtfyConnection": 242, - "notification.createMattermost": 243, - "notification.updateMattermost": 244, - "notification.testMattermostConnection": 245, - "notification.createCustom": 246, - "notification.updateCustom": 247, - "notification.testCustomConnection": 248, - "notification.createLark": 249, - "notification.updateLark": 250, - "notification.testLarkConnection": 251, - "notification.createTeams": 252, - "notification.updateTeams": 253, - "notification.testTeamsConnection": 254, - "notification.createPushover": 255, - "notification.updatePushover": 256, - "notification.testPushoverConnection": 257, - "notification.getEmailProviders": 258, - "port.create": 259, - "port.one": 260, - "port.delete": 261, - "port.update": 262, - "postgres.create": 263, - "postgres.one": 264, - "postgres.start": 265, - "postgres.stop": 266, - "postgres.saveExternalPort": 267, - "postgres.deploy": 268, - "postgres.changeStatus": 269, - "postgres.remove": 270, - "postgres.saveEnvironment": 271, - "postgres.reload": 272, - "postgres.update": 273, - "postgres.changePassword": 274, - "postgres.move": 275, - "postgres.rebuild": 276, - "postgres.search": 277, - "postgres.readLogs": 278, - "previewDeployment.all": 279, - "previewDeployment.one": 280, - "previewDeployment.delete": 281, - "previewDeployment.redeploy": 282, - "project.create": 283, - "project.one": 284, - "project.all": 285, - "project.allForPermissions": 286, - "project.homeStats": 287, - "project.search": 288, - "project.remove": 289, - "project.update": 290, - "project.duplicate": 291, - "redirects.create": 292, - "redirects.one": 293, - "redirects.delete": 294, - "redirects.update": 295, - "redis.create": 296, - "redis.one": 297, - "redis.start": 298, - "redis.reload": 299, - "redis.stop": 300, - "redis.saveExternalPort": 301, - "redis.deploy": 302, - "redis.changeStatus": 303, - "redis.remove": 304, - "redis.saveEnvironment": 305, - "redis.update": 306, - "redis.changePassword": 307, - "redis.move": 308, - "redis.rebuild": 309, - "redis.search": 310, - "redis.readLogs": 311, - "registry.create": 312, - "registry.remove": 313, - "registry.update": 314, - "registry.all": 315, - "registry.one": 316, - "registry.testRegistry": 317, - "registry.testRegistryById": 318, - "security.create": 319, - "security.one": 320, - "security.delete": 321, - "security.update": 322, - "server.create": 323, - "server.one": 324, - "server.getDefaultCommand": 325, - "server.all": 326, - "server.allForPermissions": 327, - "server.count": 328, - "server.withSSHKey": 329, - "server.buildServers": 330, - "server.setup": 331, - "server.validate": 332, - "server.security": 333, - "server.setupMonitoring": 334, - "server.remove": 335, - "server.update": 336, - "server.publicIp": 337, - "server.getServerTime": 338, - "server.getServerMetrics": 339, - "settings.getWebServerSettings": 340, - "settings.reloadServer": 341, - "settings.cleanRedis": 342, - "settings.reloadRedis": 343, - "settings.cleanAllDeploymentQueue": 344, - "settings.reloadTraefik": 345, - "settings.toggleDashboard": 346, - "settings.cleanUnusedImages": 347, - "settings.cleanUnusedVolumes": 348, - "settings.cleanStoppedContainers": 349, - "settings.cleanDockerBuilder": 350, - "settings.cleanDockerPrune": 351, - "settings.cleanAll": 352, - "settings.cleanMonitoring": 353, - "settings.getDockerDiskUsage": 354, - "settings.saveSSHPrivateKey": 355, - "settings.assignDomainServer": 356, - "settings.cleanSSHPrivateKey": 357, - "settings.updateDockerCleanup": 358, - "settings.readTraefikConfig": 359, - "settings.updateTraefikConfig": 360, - "settings.readWebServerTraefikConfig": 361, - "settings.updateWebServerTraefikConfig": 362, - "settings.readMiddlewareTraefikConfig": 363, - "settings.updateMiddlewareTraefikConfig": 364, - "settings.getUpdateData": 365, - "settings.updateServer": 366, - "settings.getDokployVersion": 367, - "settings.getReleaseTag": 368, - "settings.readDirectories": 369, - "settings.updateTraefikFile": 370, - "settings.readTraefikFile": 371, - "settings.getIp": 372, - "settings.updateServerIp": 373, - "settings.getOpenApiDocument": 374, - "settings.readTraefikEnv": 375, - "settings.writeTraefikEnv": 376, - "settings.haveTraefikDashboardPortEnabled": 377, - "settings.haveActivateRequests": 378, - "settings.toggleRequests": 379, - "settings.isCloud": 380, - "settings.isUserSubscribed": 381, - "settings.health": 382, - "settings.checkInfrastructureHealth": 383, - "settings.setupGPU": 384, - "settings.checkGPUStatus": 385, - "settings.updateTraefikPorts": 386, - "settings.getTraefikPorts": 387, - "settings.updateLogCleanup": 388, - "settings.getLogCleanupStatus": 389, - "settings.getDokployCloudIps": 390, - "sshKey.create": 391, - "sshKey.remove": 392, - "sshKey.one": 393, - "sshKey.all": 394, - "sshKey.allForApps": 395, - "sshKey.generate": 396, - "sshKey.update": 397, - "stripe.getCurrentPlan": 398, - "stripe.getProducts": 399, - "stripe.createCheckoutSession": 400, - "stripe.createCustomerPortalSession": 401, - "stripe.upgradeSubscription": 402, - "stripe.canCreateMoreServers": 403, - "stripe.updateInvoiceNotifications": 404, - "stripe.getInvoices": 405, - "swarm.getNodes": 406, - "swarm.getNodeInfo": 407, - "swarm.getNodeApps": 408, - "swarm.getContainerStats": 409, - "user.all": 410, - "user.one": 411, - "user.session": 412, - "user.get": 413, - "user.getPermissions": 414, - "user.haveRootAccess": 415, - "user.getBackups": 416, - "user.getServerMetrics": 417, - "user.update": 418, - "user.getUserByToken": 419, - "user.getMetricsToken": 420, - "user.remove": 421, - "user.assignPermissions": 422, - "user.getInvitations": 423, - "user.getContainerMetrics": 424, - "user.generateToken": 425, - "user.deleteApiKey": 426, - "user.createApiKey": 427, - "user.checkUserOrganizations": 428, - "user.createUserWithCredentials": 429, - "user.sendInvitation": 430, - "user.getBookmarkedTemplates": 431, - "user.toggleTemplateBookmark": 432, - "ai.one": 433, - "ai.getModels": 434, - "ai.create": 435, - "ai.update": 436, - "ai.getAll": 437, - "ai.get": 438, - "ai.delete": 439, - "ai.getEnabledProviders": 440, - "ai.analyzeLogs": 441, - "ai.testConnection": 442, - "ai.suggest": 443, - "ai.deploy": 444, - "organization.create": 445, - "organization.all": 446, - "organization.one": 447, - "organization.update": 448, - "organization.delete": 449, - "organization.inviteMember": 450, - "organization.allInvitations": 451, - "organization.removeInvitation": 452, - "organization.updateMemberRole": 453, - "organization.setDefault": 454, - "organization.active": 455, - "licenseKey.activate": 456, - "licenseKey.validate": 457, - "licenseKey.deactivate": 458, - "licenseKey.getEnterpriseSettings": 459, - "licenseKey.haveValidLicenseKey": 460, - "licenseKey.updateEnterpriseSettings": 461, - "sso.showSignInWithSSO": 462, - "sso.listProviders": 463, - "sso.getTrustedOrigins": 464, - "sso.one": 465, - "sso.update": 466, - "sso.deleteProvider": 467, - "sso.register": 468, - "sso.addTrustedOrigin": 469, - "sso.removeTrustedOrigin": 470, - "sso.updateTrustedOrigin": 471, - "whitelabeling.get": 472, - "whitelabeling.update": 473, - "whitelabeling.reset": 474, - "whitelabeling.getPublic": 475, - "customRole.all": 476, - "customRole.create": 477, - "customRole.update": 478, - "customRole.remove": 479, - "customRole.membersByRole": 480, - "customRole.getStatements": 481, - "auditLog.all": 482, - "schedule.create": 483, - "schedule.update": 484, - "schedule.delete": 485, - "schedule.list": 486, - "schedule.one": 487, - "schedule.runManually": 488, - "rollback.delete": 489, - "rollback.rollback": 490, - "volumeBackups.list": 491, - "volumeBackups.create": 492, - "volumeBackups.one": 493, - "volumeBackups.delete": 494, - "volumeBackups.update": 495, - "volumeBackups.runManually": 496, - "environment.create": 497, - "environment.one": 498, - "environment.byProjectId": 499, - "environment.remove": 500, - "environment.update": 501, - "environment.duplicate": 502, - "environment.search": 503, - "tag.create": 504, - "tag.all": 505, - "tag.one": 506, - "tag.update": 507, - "tag.remove": 508, - "tag.assignToProject": 509, - "tag.removeFromProject": 510, - "tag.bulkAssign": 511, - "patch.create": 512, - "patch.one": 513, - "patch.byEntityId": 514, - "patch.update": 515, - "patch.delete": 516, - "patch.toggleEnabled": 517, - "patch.ensureRepo": 518, - "patch.readRepoDirectories": 519, - "patch.readRepoFile": 520, - "patch.saveFileAsPatch": 521, - "patch.markFileForDeletion": 522, - "patch.cleanPatchRepos": 523 + "compose.previewTemplate": 86, + "compose.import": 87, + "compose.cancelDeployment": 88, + "compose.search": 89, + "compose.readLogs": 90, + "deployment.all": 91, + "deployment.allByCompose": 92, + "deployment.allByServer": 93, + "deployment.allCentralized": 94, + "deployment.queueList": 95, + "deployment.allByType": 96, + "deployment.killProcess": 97, + "deployment.removeDeployment": 98, + "deployment.readLogs": 99, + "destination.create": 100, + "destination.testConnection": 101, + "destination.one": 102, + "destination.all": 103, + "destination.remove": 104, + "destination.update": 105, + "docker.getContainers": 106, + "docker.restartContainer": 107, + "docker.startContainer": 108, + "docker.stopContainer": 109, + "docker.killContainer": 110, + "docker.removeContainer": 111, + "docker.getConfig": 112, + "docker.getContainersByAppNameMatch": 113, + "docker.getContainersByAppLabel": 114, + "docker.getStackContainersByAppName": 115, + "docker.getServiceContainersByAppName": 116, + "docker.uploadFileToContainer": 117, + "domain.create": 118, + "domain.byApplicationId": 119, + "domain.byComposeId": 120, + "domain.generateDomain": 121, + "domain.canGenerateTraefikMeDomains": 122, + "domain.update": 123, + "domain.one": 124, + "domain.delete": 125, + "domain.validateDomain": 126, + "gitea.create": 127, + "gitea.one": 128, + "gitea.giteaProviders": 129, + "gitea.getGiteaRepositories": 130, + "gitea.getGiteaBranches": 131, + "gitea.testConnection": 132, + "gitea.update": 133, + "gitea.getGiteaUrl": 134, + "gitProvider.getAll": 135, + "gitProvider.toggleShare": 136, + "gitProvider.allForPermissions": 137, + "gitProvider.remove": 138, + "github.one": 139, + "github.getGithubRepositories": 140, + "github.getGithubBranches": 141, + "github.githubProviders": 142, + "github.testConnection": 143, + "github.update": 144, + "gitlab.create": 145, + "gitlab.one": 146, + "gitlab.gitlabProviders": 147, + "gitlab.getGitlabRepositories": 148, + "gitlab.getGitlabBranches": 149, + "gitlab.testConnection": 150, + "gitlab.update": 151, + "libsql.create": 152, + "libsql.one": 153, + "libsql.start": 154, + "libsql.stop": 155, + "libsql.saveExternalPorts": 156, + "libsql.deploy": 157, + "libsql.changeStatus": 158, + "libsql.remove": 159, + "libsql.saveEnvironment": 160, + "libsql.reload": 161, + "libsql.update": 162, + "libsql.move": 163, + "libsql.rebuild": 164, + "libsql.readLogs": 165, + "mariadb.create": 166, + "mariadb.one": 167, + "mariadb.start": 168, + "mariadb.stop": 169, + "mariadb.saveExternalPort": 170, + "mariadb.deploy": 171, + "mariadb.changeStatus": 172, + "mariadb.remove": 173, + "mariadb.saveEnvironment": 174, + "mariadb.reload": 175, + "mariadb.update": 176, + "mariadb.changePassword": 177, + "mariadb.move": 178, + "mariadb.rebuild": 179, + "mariadb.search": 180, + "mariadb.readLogs": 181, + "mongo.create": 182, + "mongo.one": 183, + "mongo.start": 184, + "mongo.stop": 185, + "mongo.saveExternalPort": 186, + "mongo.deploy": 187, + "mongo.changeStatus": 188, + "mongo.reload": 189, + "mongo.remove": 190, + "mongo.saveEnvironment": 191, + "mongo.update": 192, + "mongo.changePassword": 193, + "mongo.move": 194, + "mongo.rebuild": 195, + "mongo.search": 196, + "mongo.readLogs": 197, + "mounts.create": 198, + "mounts.remove": 199, + "mounts.one": 200, + "mounts.update": 201, + "mounts.allNamedByApplicationId": 202, + "mounts.listByServiceId": 203, + "mysql.create": 204, + "mysql.one": 205, + "mysql.start": 206, + "mysql.stop": 207, + "mysql.saveExternalPort": 208, + "mysql.deploy": 209, + "mysql.changeStatus": 210, + "mysql.reload": 211, + "mysql.remove": 212, + "mysql.saveEnvironment": 213, + "mysql.update": 214, + "mysql.changePassword": 215, + "mysql.move": 216, + "mysql.rebuild": 217, + "mysql.search": 218, + "mysql.readLogs": 219, + "notification.createSlack": 220, + "notification.updateSlack": 221, + "notification.testSlackConnection": 222, + "notification.createTelegram": 223, + "notification.updateTelegram": 224, + "notification.testTelegramConnection": 225, + "notification.createDiscord": 226, + "notification.updateDiscord": 227, + "notification.testDiscordConnection": 228, + "notification.createEmail": 229, + "notification.updateEmail": 230, + "notification.testEmailConnection": 231, + "notification.createResend": 232, + "notification.updateResend": 233, + "notification.testResendConnection": 234, + "notification.remove": 235, + "notification.one": 236, + "notification.all": 237, + "notification.receiveNotification": 238, + "notification.createGotify": 239, + "notification.updateGotify": 240, + "notification.testGotifyConnection": 241, + "notification.createNtfy": 242, + "notification.updateNtfy": 243, + "notification.testNtfyConnection": 244, + "notification.createMattermost": 245, + "notification.updateMattermost": 246, + "notification.testMattermostConnection": 247, + "notification.createCustom": 248, + "notification.updateCustom": 249, + "notification.testCustomConnection": 250, + "notification.createLark": 251, + "notification.updateLark": 252, + "notification.testLarkConnection": 253, + "notification.createTeams": 254, + "notification.updateTeams": 255, + "notification.testTeamsConnection": 256, + "notification.createPushover": 257, + "notification.updatePushover": 258, + "notification.testPushoverConnection": 259, + "notification.getEmailProviders": 260, + "port.create": 261, + "port.one": 262, + "port.delete": 263, + "port.update": 264, + "postgres.create": 265, + "postgres.one": 266, + "postgres.start": 267, + "postgres.stop": 268, + "postgres.saveExternalPort": 269, + "postgres.deploy": 270, + "postgres.changeStatus": 271, + "postgres.remove": 272, + "postgres.saveEnvironment": 273, + "postgres.reload": 274, + "postgres.update": 275, + "postgres.changePassword": 276, + "postgres.move": 277, + "postgres.rebuild": 278, + "postgres.search": 279, + "postgres.readLogs": 280, + "previewDeployment.all": 281, + "previewDeployment.one": 282, + "previewDeployment.delete": 283, + "previewDeployment.redeploy": 284, + "project.create": 285, + "project.one": 286, + "project.all": 287, + "project.allForPermissions": 288, + "project.homeStats": 289, + "project.search": 290, + "project.remove": 291, + "project.update": 292, + "project.duplicate": 293, + "redirects.create": 294, + "redirects.one": 295, + "redirects.delete": 296, + "redirects.update": 297, + "redis.create": 298, + "redis.one": 299, + "redis.start": 300, + "redis.reload": 301, + "redis.stop": 302, + "redis.saveExternalPort": 303, + "redis.deploy": 304, + "redis.changeStatus": 305, + "redis.remove": 306, + "redis.saveEnvironment": 307, + "redis.update": 308, + "redis.changePassword": 309, + "redis.move": 310, + "redis.rebuild": 311, + "redis.search": 312, + "redis.readLogs": 313, + "registry.create": 314, + "registry.remove": 315, + "registry.update": 316, + "registry.all": 317, + "registry.one": 318, + "registry.testRegistry": 319, + "registry.testRegistryById": 320, + "security.create": 321, + "security.one": 322, + "security.delete": 323, + "security.update": 324, + "server.create": 325, + "server.one": 326, + "server.getDefaultCommand": 327, + "server.all": 328, + "server.allForPermissions": 329, + "server.count": 330, + "server.withSSHKey": 331, + "server.buildServers": 332, + "server.setup": 333, + "server.validate": 334, + "server.security": 335, + "server.setupMonitoring": 336, + "server.remove": 337, + "server.update": 338, + "server.updateBuildsConcurrency": 339, + "server.publicIp": 340, + "server.getServerTime": 341, + "server.getServerMetrics": 342, + "settings.getWebServerSettings": 343, + "settings.reloadServer": 344, + "settings.cleanRedis": 345, + "settings.reloadRedis": 346, + "settings.cleanAllDeploymentQueue": 347, + "settings.reloadTraefik": 348, + "settings.toggleDashboard": 349, + "settings.cleanUnusedImages": 350, + "settings.cleanUnusedVolumes": 351, + "settings.cleanStoppedContainers": 352, + "settings.cleanDockerBuilder": 353, + "settings.cleanDockerPrune": 354, + "settings.cleanAll": 355, + "settings.cleanMonitoring": 356, + "settings.getDockerDiskUsage": 357, + "settings.saveSSHPrivateKey": 358, + "settings.assignDomainServer": 359, + "settings.cleanSSHPrivateKey": 360, + "settings.updateDockerCleanup": 361, + "settings.updateRemoteServersOnly": 362, + "settings.updateBuildsConcurrency": 363, + "settings.updateEnforceSSO": 364, + "settings.readTraefikConfig": 365, + "settings.updateTraefikConfig": 366, + "settings.readWebServerTraefikConfig": 367, + "settings.updateWebServerTraefikConfig": 368, + "settings.readMiddlewareTraefikConfig": 369, + "settings.updateMiddlewareTraefikConfig": 370, + "settings.getUpdateData": 371, + "settings.updateServer": 372, + "settings.getDokployVersion": 373, + "settings.getReleaseTag": 374, + "settings.readDirectories": 375, + "settings.updateTraefikFile": 376, + "settings.readTraefikFile": 377, + "settings.getIp": 378, + "settings.updateServerIp": 379, + "settings.getOpenApiDocument": 380, + "settings.readTraefikEnv": 381, + "settings.writeTraefikEnv": 382, + "settings.haveTraefikDashboardPortEnabled": 383, + "settings.haveActivateRequests": 384, + "settings.toggleRequests": 385, + "settings.isCloud": 386, + "settings.isUserSubscribed": 387, + "settings.health": 388, + "settings.checkInfrastructureHealth": 389, + "settings.setupGPU": 390, + "settings.checkGPUStatus": 391, + "settings.updateTraefikPorts": 392, + "settings.getTraefikPorts": 393, + "settings.updateLogCleanup": 394, + "settings.getLogCleanupStatus": 395, + "settings.getDokployCloudIps": 396, + "sshKey.create": 397, + "sshKey.remove": 398, + "sshKey.one": 399, + "sshKey.all": 400, + "sshKey.allForApps": 401, + "sshKey.generate": 402, + "sshKey.update": 403, + "stripe.getCurrentPlan": 404, + "stripe.getProducts": 405, + "stripe.createCheckoutSession": 406, + "stripe.createCustomerPortalSession": 407, + "stripe.upgradeSubscription": 408, + "stripe.canCreateMoreServers": 409, + "stripe.updateInvoiceNotifications": 410, + "stripe.getInvoices": 411, + "swarm.getNodes": 412, + "swarm.getNodeInfo": 413, + "swarm.getNodeApps": 414, + "swarm.getContainerStats": 415, + "user.all": 416, + "user.one": 417, + "user.session": 418, + "user.get": 419, + "user.getPermissions": 420, + "user.haveRootAccess": 421, + "user.getBackups": 422, + "user.getServerMetrics": 423, + "user.update": 424, + "user.getUserByToken": 425, + "user.getMetricsToken": 426, + "user.remove": 427, + "user.assignPermissions": 428, + "user.getInvitations": 429, + "user.getContainerMetrics": 430, + "user.generateToken": 431, + "user.deleteApiKey": 432, + "user.createApiKey": 433, + "user.checkUserOrganizations": 434, + "user.createUserWithCredentials": 435, + "user.sendInvitation": 436, + "user.getBookmarkedTemplates": 437, + "user.toggleTemplateBookmark": 438, + "ai.one": 439, + "ai.getModels": 440, + "ai.create": 441, + "ai.update": 442, + "ai.getAll": 443, + "ai.get": 444, + "ai.delete": 445, + "ai.getEnabledProviders": 446, + "ai.analyzeLogs": 447, + "ai.testConnection": 448, + "ai.suggest": 449, + "ai.deploy": 450, + "organization.create": 451, + "organization.all": 452, + "organization.one": 453, + "organization.update": 454, + "organization.delete": 455, + "organization.inviteMember": 456, + "organization.allInvitations": 457, + "organization.removeInvitation": 458, + "organization.updateMemberRole": 459, + "organization.setDefault": 460, + "organization.active": 461, + "licenseKey.activate": 462, + "licenseKey.validate": 463, + "licenseKey.deactivate": 464, + "licenseKey.getEnterpriseSettings": 465, + "licenseKey.haveValidLicenseKey": 466, + "licenseKey.updateEnterpriseSettings": 467, + "sso.showSignInWithSSO": 468, + "sso.enforceSSO": 469, + "sso.listProviders": 470, + "sso.getTrustedOrigins": 471, + "sso.one": 472, + "sso.update": 473, + "sso.deleteProvider": 474, + "sso.register": 475, + "sso.addTrustedOrigin": 476, + "sso.removeTrustedOrigin": 477, + "sso.updateTrustedOrigin": 478, + "scim.listProviders": 479, + "scim.generateToken": 480, + "scim.deleteProvider": 481, + "forwardAuth.getAuthDomain": 482, + "forwardAuth.setAuthDomain": 483, + "forwardAuth.removeAuthDomain": 484, + "forwardAuth.listProviders": 485, + "forwardAuth.serverStatus": 486, + "forwardAuth.deployOnServer": 487, + "forwardAuth.removeOnServer": 488, + "forwardAuth.status": 489, + "forwardAuth.enable": 490, + "forwardAuth.disable": 491, + "whitelabeling.get": 492, + "whitelabeling.update": 493, + "whitelabeling.reset": 494, + "whitelabeling.getPublic": 495, + "customRole.all": 496, + "customRole.create": 497, + "customRole.update": 498, + "customRole.remove": 499, + "customRole.membersByRole": 500, + "customRole.getStatements": 501, + "auditLog.all": 502, + "schedule.create": 503, + "schedule.update": 504, + "schedule.delete": 505, + "schedule.list": 506, + "schedule.one": 507, + "schedule.runManually": 508, + "rollback.delete": 509, + "rollback.rollback": 510, + "volumeBackups.list": 511, + "volumeBackups.create": 512, + "volumeBackups.one": 513, + "volumeBackups.delete": 514, + "volumeBackups.update": 515, + "volumeBackups.runManually": 516, + "environment.create": 517, + "environment.one": 518, + "environment.byProjectId": 519, + "environment.remove": 520, + "environment.update": 521, + "environment.duplicate": 522, + "environment.search": 523, + "tag.create": 524, + "tag.all": 525, + "tag.one": 526, + "tag.update": 527, + "tag.remove": 528, + "tag.assignToProject": 529, + "tag.removeFromProject": 530, + "tag.bulkAssign": 531, + "patch.create": 532, + "patch.one": 533, + "patch.byEntityId": 534, + "patch.update": 535, + "patch.delete": 536, + "patch.toggleEnabled": 537, + "patch.ensureRepo": 538, + "patch.readRepoDirectories": 539, + "patch.readRepoFile": 540, + "patch.saveFileAsPatch": 541, + "patch.markFileForDeletion": 542, + "patch.cleanPatchRepos": 543 }, "byPath": { "/admin.setupMonitoring": 0, @@ -11543,443 +11938,463 @@ "/compose.disconnectGitProvider": 83, "/compose.move": 84, "/compose.processTemplate": 85, - "/compose.import": 86, - "/compose.cancelDeployment": 87, - "/compose.search": 88, - "/compose.readLogs": 89, - "/deployment.all": 90, - "/deployment.allByCompose": 91, - "/deployment.allByServer": 92, - "/deployment.allCentralized": 93, - "/deployment.queueList": 94, - "/deployment.allByType": 95, - "/deployment.killProcess": 96, - "/deployment.removeDeployment": 97, - "/destination.create": 98, - "/destination.testConnection": 99, - "/destination.one": 100, - "/destination.all": 101, - "/destination.remove": 102, - "/destination.update": 103, - "/docker.getContainers": 104, - "/docker.restartContainer": 105, - "/docker.startContainer": 106, - "/docker.stopContainer": 107, - "/docker.killContainer": 108, - "/docker.removeContainer": 109, - "/docker.getConfig": 110, - "/docker.getContainersByAppNameMatch": 111, - "/docker.getContainersByAppLabel": 112, - "/docker.getStackContainersByAppName": 113, - "/docker.getServiceContainersByAppName": 114, - "/docker.uploadFileToContainer": 115, - "/domain.create": 116, - "/domain.byApplicationId": 117, - "/domain.byComposeId": 118, - "/domain.generateDomain": 119, - "/domain.canGenerateTraefikMeDomains": 120, - "/domain.update": 121, - "/domain.one": 122, - "/domain.delete": 123, - "/domain.validateDomain": 124, - "/gitea.create": 125, - "/gitea.one": 126, - "/gitea.giteaProviders": 127, - "/gitea.getGiteaRepositories": 128, - "/gitea.getGiteaBranches": 129, - "/gitea.testConnection": 130, - "/gitea.update": 131, - "/gitea.getGiteaUrl": 132, - "/gitProvider.getAll": 133, - "/gitProvider.toggleShare": 134, - "/gitProvider.allForPermissions": 135, - "/gitProvider.remove": 136, - "/github.one": 137, - "/github.getGithubRepositories": 138, - "/github.getGithubBranches": 139, - "/github.githubProviders": 140, - "/github.testConnection": 141, - "/github.update": 142, - "/gitlab.create": 143, - "/gitlab.one": 144, - "/gitlab.gitlabProviders": 145, - "/gitlab.getGitlabRepositories": 146, - "/gitlab.getGitlabBranches": 147, - "/gitlab.testConnection": 148, - "/gitlab.update": 149, - "/libsql.create": 150, - "/libsql.one": 151, - "/libsql.start": 152, - "/libsql.stop": 153, - "/libsql.saveExternalPorts": 154, - "/libsql.deploy": 155, - "/libsql.changeStatus": 156, - "/libsql.remove": 157, - "/libsql.saveEnvironment": 158, - "/libsql.reload": 159, - "/libsql.update": 160, - "/libsql.move": 161, - "/libsql.rebuild": 162, - "/libsql.readLogs": 163, - "/mariadb.create": 164, - "/mariadb.one": 165, - "/mariadb.start": 166, - "/mariadb.stop": 167, - "/mariadb.saveExternalPort": 168, - "/mariadb.deploy": 169, - "/mariadb.changeStatus": 170, - "/mariadb.remove": 171, - "/mariadb.saveEnvironment": 172, - "/mariadb.reload": 173, - "/mariadb.update": 174, - "/mariadb.changePassword": 175, - "/mariadb.move": 176, - "/mariadb.rebuild": 177, - "/mariadb.search": 178, - "/mariadb.readLogs": 179, - "/mongo.create": 180, - "/mongo.one": 181, - "/mongo.start": 182, - "/mongo.stop": 183, - "/mongo.saveExternalPort": 184, - "/mongo.deploy": 185, - "/mongo.changeStatus": 186, - "/mongo.reload": 187, - "/mongo.remove": 188, - "/mongo.saveEnvironment": 189, - "/mongo.update": 190, - "/mongo.changePassword": 191, - "/mongo.move": 192, - "/mongo.rebuild": 193, - "/mongo.search": 194, - "/mongo.readLogs": 195, - "/mounts.create": 196, - "/mounts.remove": 197, - "/mounts.one": 198, - "/mounts.update": 199, - "/mounts.allNamedByApplicationId": 200, - "/mounts.listByServiceId": 201, - "/mysql.create": 202, - "/mysql.one": 203, - "/mysql.start": 204, - "/mysql.stop": 205, - "/mysql.saveExternalPort": 206, - "/mysql.deploy": 207, - "/mysql.changeStatus": 208, - "/mysql.reload": 209, - "/mysql.remove": 210, - "/mysql.saveEnvironment": 211, - "/mysql.update": 212, - "/mysql.changePassword": 213, - "/mysql.move": 214, - "/mysql.rebuild": 215, - "/mysql.search": 216, - "/mysql.readLogs": 217, - "/notification.createSlack": 218, - "/notification.updateSlack": 219, - "/notification.testSlackConnection": 220, - "/notification.createTelegram": 221, - "/notification.updateTelegram": 222, - "/notification.testTelegramConnection": 223, - "/notification.createDiscord": 224, - "/notification.updateDiscord": 225, - "/notification.testDiscordConnection": 226, - "/notification.createEmail": 227, - "/notification.updateEmail": 228, - "/notification.testEmailConnection": 229, - "/notification.createResend": 230, - "/notification.updateResend": 231, - "/notification.testResendConnection": 232, - "/notification.remove": 233, - "/notification.one": 234, - "/notification.all": 235, - "/notification.receiveNotification": 236, - "/notification.createGotify": 237, - "/notification.updateGotify": 238, - "/notification.testGotifyConnection": 239, - "/notification.createNtfy": 240, - "/notification.updateNtfy": 241, - "/notification.testNtfyConnection": 242, - "/notification.createMattermost": 243, - "/notification.updateMattermost": 244, - "/notification.testMattermostConnection": 245, - "/notification.createCustom": 246, - "/notification.updateCustom": 247, - "/notification.testCustomConnection": 248, - "/notification.createLark": 249, - "/notification.updateLark": 250, - "/notification.testLarkConnection": 251, - "/notification.createTeams": 252, - "/notification.updateTeams": 253, - "/notification.testTeamsConnection": 254, - "/notification.createPushover": 255, - "/notification.updatePushover": 256, - "/notification.testPushoverConnection": 257, - "/notification.getEmailProviders": 258, - "/port.create": 259, - "/port.one": 260, - "/port.delete": 261, - "/port.update": 262, - "/postgres.create": 263, - "/postgres.one": 264, - "/postgres.start": 265, - "/postgres.stop": 266, - "/postgres.saveExternalPort": 267, - "/postgres.deploy": 268, - "/postgres.changeStatus": 269, - "/postgres.remove": 270, - "/postgres.saveEnvironment": 271, - "/postgres.reload": 272, - "/postgres.update": 273, - "/postgres.changePassword": 274, - "/postgres.move": 275, - "/postgres.rebuild": 276, - "/postgres.search": 277, - "/postgres.readLogs": 278, - "/previewDeployment.all": 279, - "/previewDeployment.one": 280, - "/previewDeployment.delete": 281, - "/previewDeployment.redeploy": 282, - "/project.create": 283, - "/project.one": 284, - "/project.all": 285, - "/project.allForPermissions": 286, - "/project.homeStats": 287, - "/project.search": 288, - "/project.remove": 289, - "/project.update": 290, - "/project.duplicate": 291, - "/redirects.create": 292, - "/redirects.one": 293, - "/redirects.delete": 294, - "/redirects.update": 295, - "/redis.create": 296, - "/redis.one": 297, - "/redis.start": 298, - "/redis.reload": 299, - "/redis.stop": 300, - "/redis.saveExternalPort": 301, - "/redis.deploy": 302, - "/redis.changeStatus": 303, - "/redis.remove": 304, - "/redis.saveEnvironment": 305, - "/redis.update": 306, - "/redis.changePassword": 307, - "/redis.move": 308, - "/redis.rebuild": 309, - "/redis.search": 310, - "/redis.readLogs": 311, - "/registry.create": 312, - "/registry.remove": 313, - "/registry.update": 314, - "/registry.all": 315, - "/registry.one": 316, - "/registry.testRegistry": 317, - "/registry.testRegistryById": 318, - "/security.create": 319, - "/security.one": 320, - "/security.delete": 321, - "/security.update": 322, - "/server.create": 323, - "/server.one": 324, - "/server.getDefaultCommand": 325, - "/server.all": 326, - "/server.allForPermissions": 327, - "/server.count": 328, - "/server.withSSHKey": 329, - "/server.buildServers": 330, - "/server.setup": 331, - "/server.validate": 332, - "/server.security": 333, - "/server.setupMonitoring": 334, - "/server.remove": 335, - "/server.update": 336, - "/server.publicIp": 337, - "/server.getServerTime": 338, - "/server.getServerMetrics": 339, - "/settings.getWebServerSettings": 340, - "/settings.reloadServer": 341, - "/settings.cleanRedis": 342, - "/settings.reloadRedis": 343, - "/settings.cleanAllDeploymentQueue": 344, - "/settings.reloadTraefik": 345, - "/settings.toggleDashboard": 346, - "/settings.cleanUnusedImages": 347, - "/settings.cleanUnusedVolumes": 348, - "/settings.cleanStoppedContainers": 349, - "/settings.cleanDockerBuilder": 350, - "/settings.cleanDockerPrune": 351, - "/settings.cleanAll": 352, - "/settings.cleanMonitoring": 353, - "/settings.getDockerDiskUsage": 354, - "/settings.saveSSHPrivateKey": 355, - "/settings.assignDomainServer": 356, - "/settings.cleanSSHPrivateKey": 357, - "/settings.updateDockerCleanup": 358, - "/settings.readTraefikConfig": 359, - "/settings.updateTraefikConfig": 360, - "/settings.readWebServerTraefikConfig": 361, - "/settings.updateWebServerTraefikConfig": 362, - "/settings.readMiddlewareTraefikConfig": 363, - "/settings.updateMiddlewareTraefikConfig": 364, - "/settings.getUpdateData": 365, - "/settings.updateServer": 366, - "/settings.getDokployVersion": 367, - "/settings.getReleaseTag": 368, - "/settings.readDirectories": 369, - "/settings.updateTraefikFile": 370, - "/settings.readTraefikFile": 371, - "/settings.getIp": 372, - "/settings.updateServerIp": 373, - "/settings.getOpenApiDocument": 374, - "/settings.readTraefikEnv": 375, - "/settings.writeTraefikEnv": 376, - "/settings.haveTraefikDashboardPortEnabled": 377, - "/settings.haveActivateRequests": 378, - "/settings.toggleRequests": 379, - "/settings.isCloud": 380, - "/settings.isUserSubscribed": 381, - "/settings.health": 382, - "/settings.checkInfrastructureHealth": 383, - "/settings.setupGPU": 384, - "/settings.checkGPUStatus": 385, - "/settings.updateTraefikPorts": 386, - "/settings.getTraefikPorts": 387, - "/settings.updateLogCleanup": 388, - "/settings.getLogCleanupStatus": 389, - "/settings.getDokployCloudIps": 390, - "/sshKey.create": 391, - "/sshKey.remove": 392, - "/sshKey.one": 393, - "/sshKey.all": 394, - "/sshKey.allForApps": 395, - "/sshKey.generate": 396, - "/sshKey.update": 397, - "/stripe.getCurrentPlan": 398, - "/stripe.getProducts": 399, - "/stripe.createCheckoutSession": 400, - "/stripe.createCustomerPortalSession": 401, - "/stripe.upgradeSubscription": 402, - "/stripe.canCreateMoreServers": 403, - "/stripe.updateInvoiceNotifications": 404, - "/stripe.getInvoices": 405, - "/swarm.getNodes": 406, - "/swarm.getNodeInfo": 407, - "/swarm.getNodeApps": 408, - "/swarm.getContainerStats": 409, - "/user.all": 410, - "/user.one": 411, - "/user.session": 412, - "/user.get": 413, - "/user.getPermissions": 414, - "/user.haveRootAccess": 415, - "/user.getBackups": 416, - "/user.getServerMetrics": 417, - "/user.update": 418, - "/user.getUserByToken": 419, - "/user.getMetricsToken": 420, - "/user.remove": 421, - "/user.assignPermissions": 422, - "/user.getInvitations": 423, - "/user.getContainerMetrics": 424, - "/user.generateToken": 425, - "/user.deleteApiKey": 426, - "/user.createApiKey": 427, - "/user.checkUserOrganizations": 428, - "/user.createUserWithCredentials": 429, - "/user.sendInvitation": 430, - "/user.getBookmarkedTemplates": 431, - "/user.toggleTemplateBookmark": 432, - "/ai.one": 433, - "/ai.getModels": 434, - "/ai.create": 435, - "/ai.update": 436, - "/ai.getAll": 437, - "/ai.get": 438, - "/ai.delete": 439, - "/ai.getEnabledProviders": 440, - "/ai.analyzeLogs": 441, - "/ai.testConnection": 442, - "/ai.suggest": 443, - "/ai.deploy": 444, - "/organization.create": 445, - "/organization.all": 446, - "/organization.one": 447, - "/organization.update": 448, - "/organization.delete": 449, - "/organization.inviteMember": 450, - "/organization.allInvitations": 451, - "/organization.removeInvitation": 452, - "/organization.updateMemberRole": 453, - "/organization.setDefault": 454, - "/organization.active": 455, - "/licenseKey.activate": 456, - "/licenseKey.validate": 457, - "/licenseKey.deactivate": 458, - "/licenseKey.getEnterpriseSettings": 459, - "/licenseKey.haveValidLicenseKey": 460, - "/licenseKey.updateEnterpriseSettings": 461, - "/sso.showSignInWithSSO": 462, - "/sso.listProviders": 463, - "/sso.getTrustedOrigins": 464, - "/sso.one": 465, - "/sso.update": 466, - "/sso.deleteProvider": 467, - "/sso.register": 468, - "/sso.addTrustedOrigin": 469, - "/sso.removeTrustedOrigin": 470, - "/sso.updateTrustedOrigin": 471, - "/whitelabeling.get": 472, - "/whitelabeling.update": 473, - "/whitelabeling.reset": 474, - "/whitelabeling.getPublic": 475, - "/customRole.all": 476, - "/customRole.create": 477, - "/customRole.update": 478, - "/customRole.remove": 479, - "/customRole.membersByRole": 480, - "/customRole.getStatements": 481, - "/auditLog.all": 482, - "/schedule.create": 483, - "/schedule.update": 484, - "/schedule.delete": 485, - "/schedule.list": 486, - "/schedule.one": 487, - "/schedule.runManually": 488, - "/rollback.delete": 489, - "/rollback.rollback": 490, - "/volumeBackups.list": 491, - "/volumeBackups.create": 492, - "/volumeBackups.one": 493, - "/volumeBackups.delete": 494, - "/volumeBackups.update": 495, - "/volumeBackups.runManually": 496, - "/environment.create": 497, - "/environment.one": 498, - "/environment.byProjectId": 499, - "/environment.remove": 500, - "/environment.update": 501, - "/environment.duplicate": 502, - "/environment.search": 503, - "/tag.create": 504, - "/tag.all": 505, - "/tag.one": 506, - "/tag.update": 507, - "/tag.remove": 508, - "/tag.assignToProject": 509, - "/tag.removeFromProject": 510, - "/tag.bulkAssign": 511, - "/patch.create": 512, - "/patch.one": 513, - "/patch.byEntityId": 514, - "/patch.update": 515, - "/patch.delete": 516, - "/patch.toggleEnabled": 517, - "/patch.ensureRepo": 518, - "/patch.readRepoDirectories": 519, - "/patch.readRepoFile": 520, - "/patch.saveFileAsPatch": 521, - "/patch.markFileForDeletion": 522, - "/patch.cleanPatchRepos": 523 + "/compose.previewTemplate": 86, + "/compose.import": 87, + "/compose.cancelDeployment": 88, + "/compose.search": 89, + "/compose.readLogs": 90, + "/deployment.all": 91, + "/deployment.allByCompose": 92, + "/deployment.allByServer": 93, + "/deployment.allCentralized": 94, + "/deployment.queueList": 95, + "/deployment.allByType": 96, + "/deployment.killProcess": 97, + "/deployment.removeDeployment": 98, + "/deployment.readLogs": 99, + "/destination.create": 100, + "/destination.testConnection": 101, + "/destination.one": 102, + "/destination.all": 103, + "/destination.remove": 104, + "/destination.update": 105, + "/docker.getContainers": 106, + "/docker.restartContainer": 107, + "/docker.startContainer": 108, + "/docker.stopContainer": 109, + "/docker.killContainer": 110, + "/docker.removeContainer": 111, + "/docker.getConfig": 112, + "/docker.getContainersByAppNameMatch": 113, + "/docker.getContainersByAppLabel": 114, + "/docker.getStackContainersByAppName": 115, + "/docker.getServiceContainersByAppName": 116, + "/docker.uploadFileToContainer": 117, + "/domain.create": 118, + "/domain.byApplicationId": 119, + "/domain.byComposeId": 120, + "/domain.generateDomain": 121, + "/domain.canGenerateTraefikMeDomains": 122, + "/domain.update": 123, + "/domain.one": 124, + "/domain.delete": 125, + "/domain.validateDomain": 126, + "/gitea.create": 127, + "/gitea.one": 128, + "/gitea.giteaProviders": 129, + "/gitea.getGiteaRepositories": 130, + "/gitea.getGiteaBranches": 131, + "/gitea.testConnection": 132, + "/gitea.update": 133, + "/gitea.getGiteaUrl": 134, + "/gitProvider.getAll": 135, + "/gitProvider.toggleShare": 136, + "/gitProvider.allForPermissions": 137, + "/gitProvider.remove": 138, + "/github.one": 139, + "/github.getGithubRepositories": 140, + "/github.getGithubBranches": 141, + "/github.githubProviders": 142, + "/github.testConnection": 143, + "/github.update": 144, + "/gitlab.create": 145, + "/gitlab.one": 146, + "/gitlab.gitlabProviders": 147, + "/gitlab.getGitlabRepositories": 148, + "/gitlab.getGitlabBranches": 149, + "/gitlab.testConnection": 150, + "/gitlab.update": 151, + "/libsql.create": 152, + "/libsql.one": 153, + "/libsql.start": 154, + "/libsql.stop": 155, + "/libsql.saveExternalPorts": 156, + "/libsql.deploy": 157, + "/libsql.changeStatus": 158, + "/libsql.remove": 159, + "/libsql.saveEnvironment": 160, + "/libsql.reload": 161, + "/libsql.update": 162, + "/libsql.move": 163, + "/libsql.rebuild": 164, + "/libsql.readLogs": 165, + "/mariadb.create": 166, + "/mariadb.one": 167, + "/mariadb.start": 168, + "/mariadb.stop": 169, + "/mariadb.saveExternalPort": 170, + "/mariadb.deploy": 171, + "/mariadb.changeStatus": 172, + "/mariadb.remove": 173, + "/mariadb.saveEnvironment": 174, + "/mariadb.reload": 175, + "/mariadb.update": 176, + "/mariadb.changePassword": 177, + "/mariadb.move": 178, + "/mariadb.rebuild": 179, + "/mariadb.search": 180, + "/mariadb.readLogs": 181, + "/mongo.create": 182, + "/mongo.one": 183, + "/mongo.start": 184, + "/mongo.stop": 185, + "/mongo.saveExternalPort": 186, + "/mongo.deploy": 187, + "/mongo.changeStatus": 188, + "/mongo.reload": 189, + "/mongo.remove": 190, + "/mongo.saveEnvironment": 191, + "/mongo.update": 192, + "/mongo.changePassword": 193, + "/mongo.move": 194, + "/mongo.rebuild": 195, + "/mongo.search": 196, + "/mongo.readLogs": 197, + "/mounts.create": 198, + "/mounts.remove": 199, + "/mounts.one": 200, + "/mounts.update": 201, + "/mounts.allNamedByApplicationId": 202, + "/mounts.listByServiceId": 203, + "/mysql.create": 204, + "/mysql.one": 205, + "/mysql.start": 206, + "/mysql.stop": 207, + "/mysql.saveExternalPort": 208, + "/mysql.deploy": 209, + "/mysql.changeStatus": 210, + "/mysql.reload": 211, + "/mysql.remove": 212, + "/mysql.saveEnvironment": 213, + "/mysql.update": 214, + "/mysql.changePassword": 215, + "/mysql.move": 216, + "/mysql.rebuild": 217, + "/mysql.search": 218, + "/mysql.readLogs": 219, + "/notification.createSlack": 220, + "/notification.updateSlack": 221, + "/notification.testSlackConnection": 222, + "/notification.createTelegram": 223, + "/notification.updateTelegram": 224, + "/notification.testTelegramConnection": 225, + "/notification.createDiscord": 226, + "/notification.updateDiscord": 227, + "/notification.testDiscordConnection": 228, + "/notification.createEmail": 229, + "/notification.updateEmail": 230, + "/notification.testEmailConnection": 231, + "/notification.createResend": 232, + "/notification.updateResend": 233, + "/notification.testResendConnection": 234, + "/notification.remove": 235, + "/notification.one": 236, + "/notification.all": 237, + "/notification.receiveNotification": 238, + "/notification.createGotify": 239, + "/notification.updateGotify": 240, + "/notification.testGotifyConnection": 241, + "/notification.createNtfy": 242, + "/notification.updateNtfy": 243, + "/notification.testNtfyConnection": 244, + "/notification.createMattermost": 245, + "/notification.updateMattermost": 246, + "/notification.testMattermostConnection": 247, + "/notification.createCustom": 248, + "/notification.updateCustom": 249, + "/notification.testCustomConnection": 250, + "/notification.createLark": 251, + "/notification.updateLark": 252, + "/notification.testLarkConnection": 253, + "/notification.createTeams": 254, + "/notification.updateTeams": 255, + "/notification.testTeamsConnection": 256, + "/notification.createPushover": 257, + "/notification.updatePushover": 258, + "/notification.testPushoverConnection": 259, + "/notification.getEmailProviders": 260, + "/port.create": 261, + "/port.one": 262, + "/port.delete": 263, + "/port.update": 264, + "/postgres.create": 265, + "/postgres.one": 266, + "/postgres.start": 267, + "/postgres.stop": 268, + "/postgres.saveExternalPort": 269, + "/postgres.deploy": 270, + "/postgres.changeStatus": 271, + "/postgres.remove": 272, + "/postgres.saveEnvironment": 273, + "/postgres.reload": 274, + "/postgres.update": 275, + "/postgres.changePassword": 276, + "/postgres.move": 277, + "/postgres.rebuild": 278, + "/postgres.search": 279, + "/postgres.readLogs": 280, + "/previewDeployment.all": 281, + "/previewDeployment.one": 282, + "/previewDeployment.delete": 283, + "/previewDeployment.redeploy": 284, + "/project.create": 285, + "/project.one": 286, + "/project.all": 287, + "/project.allForPermissions": 288, + "/project.homeStats": 289, + "/project.search": 290, + "/project.remove": 291, + "/project.update": 292, + "/project.duplicate": 293, + "/redirects.create": 294, + "/redirects.one": 295, + "/redirects.delete": 296, + "/redirects.update": 297, + "/redis.create": 298, + "/redis.one": 299, + "/redis.start": 300, + "/redis.reload": 301, + "/redis.stop": 302, + "/redis.saveExternalPort": 303, + "/redis.deploy": 304, + "/redis.changeStatus": 305, + "/redis.remove": 306, + "/redis.saveEnvironment": 307, + "/redis.update": 308, + "/redis.changePassword": 309, + "/redis.move": 310, + "/redis.rebuild": 311, + "/redis.search": 312, + "/redis.readLogs": 313, + "/registry.create": 314, + "/registry.remove": 315, + "/registry.update": 316, + "/registry.all": 317, + "/registry.one": 318, + "/registry.testRegistry": 319, + "/registry.testRegistryById": 320, + "/security.create": 321, + "/security.one": 322, + "/security.delete": 323, + "/security.update": 324, + "/server.create": 325, + "/server.one": 326, + "/server.getDefaultCommand": 327, + "/server.all": 328, + "/server.allForPermissions": 329, + "/server.count": 330, + "/server.withSSHKey": 331, + "/server.buildServers": 332, + "/server.setup": 333, + "/server.validate": 334, + "/server.security": 335, + "/server.setupMonitoring": 336, + "/server.remove": 337, + "/server.update": 338, + "/server.updateBuildsConcurrency": 339, + "/server.publicIp": 340, + "/server.getServerTime": 341, + "/server.getServerMetrics": 342, + "/settings.getWebServerSettings": 343, + "/settings.reloadServer": 344, + "/settings.cleanRedis": 345, + "/settings.reloadRedis": 346, + "/settings.cleanAllDeploymentQueue": 347, + "/settings.reloadTraefik": 348, + "/settings.toggleDashboard": 349, + "/settings.cleanUnusedImages": 350, + "/settings.cleanUnusedVolumes": 351, + "/settings.cleanStoppedContainers": 352, + "/settings.cleanDockerBuilder": 353, + "/settings.cleanDockerPrune": 354, + "/settings.cleanAll": 355, + "/settings.cleanMonitoring": 356, + "/settings.getDockerDiskUsage": 357, + "/settings.saveSSHPrivateKey": 358, + "/settings.assignDomainServer": 359, + "/settings.cleanSSHPrivateKey": 360, + "/settings.updateDockerCleanup": 361, + "/settings.updateRemoteServersOnly": 362, + "/settings.updateBuildsConcurrency": 363, + "/settings.updateEnforceSSO": 364, + "/settings.readTraefikConfig": 365, + "/settings.updateTraefikConfig": 366, + "/settings.readWebServerTraefikConfig": 367, + "/settings.updateWebServerTraefikConfig": 368, + "/settings.readMiddlewareTraefikConfig": 369, + "/settings.updateMiddlewareTraefikConfig": 370, + "/settings.getUpdateData": 371, + "/settings.updateServer": 372, + "/settings.getDokployVersion": 373, + "/settings.getReleaseTag": 374, + "/settings.readDirectories": 375, + "/settings.updateTraefikFile": 376, + "/settings.readTraefikFile": 377, + "/settings.getIp": 378, + "/settings.updateServerIp": 379, + "/settings.getOpenApiDocument": 380, + "/settings.readTraefikEnv": 381, + "/settings.writeTraefikEnv": 382, + "/settings.haveTraefikDashboardPortEnabled": 383, + "/settings.haveActivateRequests": 384, + "/settings.toggleRequests": 385, + "/settings.isCloud": 386, + "/settings.isUserSubscribed": 387, + "/settings.health": 388, + "/settings.checkInfrastructureHealth": 389, + "/settings.setupGPU": 390, + "/settings.checkGPUStatus": 391, + "/settings.updateTraefikPorts": 392, + "/settings.getTraefikPorts": 393, + "/settings.updateLogCleanup": 394, + "/settings.getLogCleanupStatus": 395, + "/settings.getDokployCloudIps": 396, + "/sshKey.create": 397, + "/sshKey.remove": 398, + "/sshKey.one": 399, + "/sshKey.all": 400, + "/sshKey.allForApps": 401, + "/sshKey.generate": 402, + "/sshKey.update": 403, + "/stripe.getCurrentPlan": 404, + "/stripe.getProducts": 405, + "/stripe.createCheckoutSession": 406, + "/stripe.createCustomerPortalSession": 407, + "/stripe.upgradeSubscription": 408, + "/stripe.canCreateMoreServers": 409, + "/stripe.updateInvoiceNotifications": 410, + "/stripe.getInvoices": 411, + "/swarm.getNodes": 412, + "/swarm.getNodeInfo": 413, + "/swarm.getNodeApps": 414, + "/swarm.getContainerStats": 415, + "/user.all": 416, + "/user.one": 417, + "/user.session": 418, + "/user.get": 419, + "/user.getPermissions": 420, + "/user.haveRootAccess": 421, + "/user.getBackups": 422, + "/user.getServerMetrics": 423, + "/user.update": 424, + "/user.getUserByToken": 425, + "/user.getMetricsToken": 426, + "/user.remove": 427, + "/user.assignPermissions": 428, + "/user.getInvitations": 429, + "/user.getContainerMetrics": 430, + "/user.generateToken": 431, + "/user.deleteApiKey": 432, + "/user.createApiKey": 433, + "/user.checkUserOrganizations": 434, + "/user.createUserWithCredentials": 435, + "/user.sendInvitation": 436, + "/user.getBookmarkedTemplates": 437, + "/user.toggleTemplateBookmark": 438, + "/ai.one": 439, + "/ai.getModels": 440, + "/ai.create": 441, + "/ai.update": 442, + "/ai.getAll": 443, + "/ai.get": 444, + "/ai.delete": 445, + "/ai.getEnabledProviders": 446, + "/ai.analyzeLogs": 447, + "/ai.testConnection": 448, + "/ai.suggest": 449, + "/ai.deploy": 450, + "/organization.create": 451, + "/organization.all": 452, + "/organization.one": 453, + "/organization.update": 454, + "/organization.delete": 455, + "/organization.inviteMember": 456, + "/organization.allInvitations": 457, + "/organization.removeInvitation": 458, + "/organization.updateMemberRole": 459, + "/organization.setDefault": 460, + "/organization.active": 461, + "/licenseKey.activate": 462, + "/licenseKey.validate": 463, + "/licenseKey.deactivate": 464, + "/licenseKey.getEnterpriseSettings": 465, + "/licenseKey.haveValidLicenseKey": 466, + "/licenseKey.updateEnterpriseSettings": 467, + "/sso.showSignInWithSSO": 468, + "/sso.enforceSSO": 469, + "/sso.listProviders": 470, + "/sso.getTrustedOrigins": 471, + "/sso.one": 472, + "/sso.update": 473, + "/sso.deleteProvider": 474, + "/sso.register": 475, + "/sso.addTrustedOrigin": 476, + "/sso.removeTrustedOrigin": 477, + "/sso.updateTrustedOrigin": 478, + "/scim.listProviders": 479, + "/scim.generateToken": 480, + "/scim.deleteProvider": 481, + "/forwardAuth.getAuthDomain": 482, + "/forwardAuth.setAuthDomain": 483, + "/forwardAuth.removeAuthDomain": 484, + "/forwardAuth.listProviders": 485, + "/forwardAuth.serverStatus": 486, + "/forwardAuth.deployOnServer": 487, + "/forwardAuth.removeOnServer": 488, + "/forwardAuth.status": 489, + "/forwardAuth.enable": 490, + "/forwardAuth.disable": 491, + "/whitelabeling.get": 492, + "/whitelabeling.update": 493, + "/whitelabeling.reset": 494, + "/whitelabeling.getPublic": 495, + "/customRole.all": 496, + "/customRole.create": 497, + "/customRole.update": 498, + "/customRole.remove": 499, + "/customRole.membersByRole": 500, + "/customRole.getStatements": 501, + "/auditLog.all": 502, + "/schedule.create": 503, + "/schedule.update": 504, + "/schedule.delete": 505, + "/schedule.list": 506, + "/schedule.one": 507, + "/schedule.runManually": 508, + "/rollback.delete": 509, + "/rollback.rollback": 510, + "/volumeBackups.list": 511, + "/volumeBackups.create": 512, + "/volumeBackups.one": 513, + "/volumeBackups.delete": 514, + "/volumeBackups.update": 515, + "/volumeBackups.runManually": 516, + "/environment.create": 517, + "/environment.one": 518, + "/environment.byProjectId": 519, + "/environment.remove": 520, + "/environment.update": 521, + "/environment.duplicate": 522, + "/environment.search": 523, + "/tag.create": 524, + "/tag.all": 525, + "/tag.one": 526, + "/tag.update": 527, + "/tag.remove": 528, + "/tag.assignToProject": 529, + "/tag.removeFromProject": 530, + "/tag.bulkAssign": 531, + "/patch.create": 532, + "/patch.one": 533, + "/patch.byEntityId": 534, + "/patch.update": 535, + "/patch.delete": 536, + "/patch.toggleEnabled": 537, + "/patch.ensureRepo": 538, + "/patch.readRepoDirectories": 539, + "/patch.readRepoFile": 540, + "/patch.saveFileAsPatch": 541, + "/patch.markFileForDeletion": 542, + "/patch.cleanPatchRepos": 543 } } diff --git a/src/generated/openapi-resolved.json b/src/generated/openapi-resolved.json index 50aa909..be565cb 100644 --- a/src/generated/openapi-resolved.json +++ b/src/generated/openapi-resolved.json @@ -2973,16 +2973,6 @@ } ] }, - "branch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "owner": { "anyOf": [ { @@ -3013,6 +3003,11 @@ } ] }, + "branch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "triggerType": { "default": "push", "type": "string", @@ -3041,10 +3036,10 @@ "required": [ "applicationId", "repository", - "branch", "owner", "buildPath", "githubId", + "branch", "triggerType" ] } @@ -3293,16 +3288,6 @@ "applicationId": { "type": "string" }, - "gitlabBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "gitlabBuildPath": { "anyOf": [ { @@ -3363,6 +3348,11 @@ } ] }, + "gitlabBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -3382,13 +3372,13 @@ }, "required": [ "applicationId", - "gitlabBranch", "gitlabBuildPath", "gitlabOwner", "gitlabRepository", "gitlabId", "gitlabProjectId", - "gitlabPathNamespace" + "gitlabPathNamespace", + "gitlabBranch" ] } } @@ -3633,16 +3623,6 @@ "schema": { "type": "object", "properties": { - "bitbucketBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "bitbucketBuildPath": { "anyOf": [ { @@ -3696,6 +3676,11 @@ "applicationId": { "type": "string" }, + "bitbucketBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -3714,13 +3699,13 @@ } }, "required": [ - "bitbucketBranch", "bitbucketBuildPath", "bitbucketOwner", "bitbucketRepository", "bitbucketRepositorySlug", "bitbucketId", - "applicationId" + "applicationId", + "bitbucketBranch" ] } } @@ -3968,16 +3953,6 @@ "applicationId": { "type": "string" }, - "giteaBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "giteaBuildPath": { "anyOf": [ { @@ -4018,6 +3993,11 @@ } ] }, + "giteaBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "enableSubmodules": { "type": "boolean" }, @@ -4037,11 +4017,11 @@ }, "required": [ "applicationId", - "giteaBranch", "giteaBuildPath", "giteaOwner", "giteaRepository", - "giteaId" + "giteaId", + "giteaBranch" ] } } @@ -4580,16 +4560,6 @@ "schema": { "type": "object", "properties": { - "customGitBranch": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "applicationId": { "type": "string" }, @@ -4629,6 +4599,11 @@ "enableSubmodules": { "type": "boolean" }, + "customGitBranch": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9._\\-/#]+$" + }, "customGitSSHKeyId": { "anyOf": [ { @@ -4641,11 +4616,11 @@ } }, "required": [ - "customGitBranch", "applicationId", "customGitBuildPath", "customGitUrl", - "watchPaths" + "watchPaths", + "customGitBranch" ] } } @@ -25551,9 +25526,9 @@ } } }, - "/compose.import": { + "/compose.previewTemplate": { "post": { - "operationId": "compose-import", + "operationId": "compose-previewTemplate", "tags": [ "compose" ], @@ -25573,14 +25548,16 @@ "base64": { "type": "string" }, - "composeId": { - "type": "string", - "minLength": 1 + "appName": { + "type": "string" + }, + "serverId": { + "type": "string" } }, "required": [ "base64", - "composeId" + "appName" ] } } @@ -25806,9 +25783,9 @@ } } }, - "/compose.cancelDeployment": { + "/compose.import": { "post": { - "operationId": "compose-cancelDeployment", + "operationId": "compose-import", "tags": [ "compose" ], @@ -25825,12 +25802,16 @@ "schema": { "type": "object", "properties": { + "base64": { + "type": "string" + }, "composeId": { "type": "string", "minLength": 1 } }, "required": [ + "base64", "composeId" ] } @@ -26057,9 +26038,9 @@ } } }, - "/compose.search": { - "get": { - "operationId": "compose-search", + "/compose.cancelDeployment": { + "post": { + "operationId": "compose-cancelDeployment", "tags": [ "compose" ], @@ -26068,69 +26049,26 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "q", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "name", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "appName", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "description", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "projectId", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "environmentId", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "limit", - "schema": { - "default": 20, - "type": "number", - "minimum": 1, - "maximum": 100 - } - }, - { - "in": "query", - "name": "offset", - "schema": { - "default": 0, - "type": "number", - "minimum": 0 + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "composeId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "composeId" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -26297,8 +26235,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -26307,12 +26245,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -26337,19 +26275,109 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/compose.search": { + "get": { + "operationId": "compose-search", + "tags": [ + "compose" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "q", + "schema": { + "type": "string" + } }, - "500": { - "description": "Internal server error", + { + "in": "query", + "name": "name", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "appName", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "description", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "projectId", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "environmentId", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "schema": { + "default": 20, + "type": "number", + "minimum": 1, + "maximum": 100 + } + }, + { + "in": "query", + "name": "offset", + "schema": { + "default": 0, + "type": "number", + "minimum": 0 + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -26358,138 +26386,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Internal server error error (500)", - "description": "The error information", - "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", - "issues": [] - } - } - } - } - } - } - } - }, - "/compose.readLogs": { - "get": { - "operationId": "compose-readLogs", - "tags": [ - "compose" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "composeId", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - }, - { - "in": "query", - "name": "containerId", - "schema": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "required": true - }, - { - "in": "query", - "name": "tail", - "schema": { - "default": 100, - "type": "integer", - "minimum": 1, - "maximum": 10000 - } - }, - { - "in": "query", - "name": "since", - "schema": { - "default": "all", - "type": "string", - "pattern": "^(all|\\d+[smhd])$" - } - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string", - "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Invalid input data" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "BAD_REQUEST" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -26732,11 +26634,11 @@ } } }, - "/deployment.all": { + "/compose.readLogs": { "get": { - "operationId": "deployment-all", + "operationId": "compose-readLogs", "tags": [ - "deployment" + "compose" ], "security": [ { @@ -26746,12 +26648,49 @@ "parameters": [ { "in": "query", - "name": "applicationId", + "name": "composeId", "schema": { "type": "string", "minLength": 1 }, "required": true + }, + { + "in": "query", + "name": "containerId", + "schema": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "required": true + }, + { + "in": "query", + "name": "tail", + "schema": { + "default": 100, + "type": "integer", + "minimum": 1, + "maximum": 10000 + } + }, + { + "in": "query", + "name": "since", + "schema": { + "default": "all", + "type": "string", + "pattern": "^(all|\\d+[smhd])$" + } + }, + { + "in": "query", + "name": "search", + "schema": { + "type": "string", + "pattern": "^[a-zA-Z0-9 ._-]{0,500}$" + } } ], "responses": { @@ -27025,9 +26964,9 @@ } } }, - "/deployment.allByCompose": { + "/deployment.all": { "get": { - "operationId": "deployment-allByCompose", + "operationId": "deployment-all", "tags": [ "deployment" ], @@ -27039,7 +26978,7 @@ "parameters": [ { "in": "query", - "name": "composeId", + "name": "applicationId", "schema": { "type": "string", "minLength": 1 @@ -27318,9 +27257,9 @@ } } }, - "/deployment.allByServer": { + "/deployment.allByCompose": { "get": { - "operationId": "deployment-allByServer", + "operationId": "deployment-allByCompose", "tags": [ "deployment" ], @@ -27332,7 +27271,7 @@ "parameters": [ { "in": "query", - "name": "serverId", + "name": "composeId", "schema": { "type": "string", "minLength": 1 @@ -27611,9 +27550,9 @@ } } }, - "/deployment.allCentralized": { + "/deployment.allByServer": { "get": { - "operationId": "deployment-allCentralized", + "operationId": "deployment-allByServer", "tags": [ "deployment" ], @@ -27622,6 +27561,17 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + } + ], "responses": { "200": { "description": "Successful response", @@ -27893,9 +27843,9 @@ } } }, - "/deployment.queueList": { + "/deployment.allCentralized": { "get": { - "operationId": "deployment-queueList", + "operationId": "deployment-allCentralized", "tags": [ "deployment" ], @@ -28175,9 +28125,9 @@ } } }, - "/deployment.allByType": { + "/deployment.queueList": { "get": { - "operationId": "deployment-allByType", + "operationId": "deployment-queueList", "tags": [ "deployment" ], @@ -28186,34 +28136,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "id", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - }, - { - "in": "query", - "name": "type", - "schema": { - "type": "string", - "enum": [ - "application", - "compose", - "server", - "schedule", - "previewDeployment", - "backup", - "volumeBackup" - ] - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -28485,9 +28407,9 @@ } } }, - "/deployment.killProcess": { - "post": { - "operationId": "deployment-killProcess", + "/deployment.allByType": { + "get": { + "operationId": "deployment-allByType", "tags": [ "deployment" ], @@ -28496,26 +28418,34 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "deploymentId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "deploymentId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "id", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, + { + "in": "query", + "name": "type", + "schema": { + "type": "string", + "enum": [ + "application", + "compose", + "server", + "schedule", + "previewDeployment", + "backup", + "volumeBackup" + ] + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -28682,6 +28612,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -28736,9 +28717,9 @@ } } }, - "/deployment.removeDeployment": { + "/deployment.killProcess": { "post": { - "operationId": "deployment-removeDeployment", + "operationId": "deployment-killProcess", "tags": [ "deployment" ], @@ -28987,11 +28968,11 @@ } } }, - "/destination.create": { + "/deployment.removeDeployment": { "post": { - "operationId": "destination-create", + "operationId": "deployment-removeDeployment", "tags": [ - "destination" + "deployment" ], "security": [ { @@ -29006,63 +28987,13 @@ "schema": { "type": "object", "properties": { - "name": { + "deploymentId": { "type": "string", "minLength": 1 - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" } }, "required": [ - "name", - "provider", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "additionalFlags" + "deploymentId" ] } } @@ -29288,87 +29219,38 @@ } } }, - "/destination.testConnection": { - "post": { - "operationId": "destination-testConnection", + "/deployment.readLogs": { + "get": { + "operationId": "deployment-readLogs", "tags": [ - "destination" + "deployment" ], "security": [ { "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "provider", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "additionalFlags" - ] - } + "parameters": [ + { + "in": "query", + "name": "deploymentId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, + { + "in": "query", + "name": "tail", + "schema": { + "default": 100, + "type": "integer", + "minimum": 1, + "maximum": 10000 } } - }, + ], "responses": { "200": { "description": "Successful response", @@ -29535,6 +29417,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -29589,9 +29522,9 @@ } } }, - "/destination.one": { - "get": { - "operationId": "destination-one", + "/destination.create": { + "post": { + "operationId": "destination-create", "tags": [ "destination" ], @@ -29600,17 +29533,76 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "destinationId", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "accessKey": { + "type": "string" + }, + "bucket": { + "type": "string" + }, + "region": { + "type": "string" + }, + "endpoint": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "additionalFlags": { + "anyOf": [ + { + "default": [], + "type": "array", + "items": { + "type": "string", + "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" + } + }, + { + "type": "null" + } + ] + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "name", + "provider", + "accessKey", + "bucket", + "region", + "endpoint", + "secretAccessKey", + "additionalFlags" + ] + } + } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -29777,57 +29769,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -29882,9 +29823,9 @@ } } }, - "/destination.all": { - "get": { - "operationId": "destination-all", + "/destination.testConnection": { + "post": { + "operationId": "destination-testConnection", "tags": [ "destination" ], @@ -29893,6 +29834,76 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "accessKey": { + "type": "string" + }, + "bucket": { + "type": "string" + }, + "region": { + "type": "string" + }, + "endpoint": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "additionalFlags": { + "anyOf": [ + { + "default": [], + "type": "array", + "items": { + "type": "string", + "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" + } + }, + { + "type": "null" + } + ] + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "name", + "provider", + "accessKey", + "bucket", + "region", + "endpoint", + "secretAccessKey", + "additionalFlags" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -30059,57 +30070,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -30164,9 +30124,9 @@ } } }, - "/destination.remove": { - "post": { - "operationId": "destination-remove", + "/destination.one": { + "get": { + "operationId": "destination-one", "tags": [ "destination" ], @@ -30175,25 +30135,17 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "destinationId": { - "type": "string" - } - }, - "required": [ - "destinationId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "destinationId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -30360,6 +30312,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -30414,9 +30417,9 @@ } } }, - "/destination.update": { - "post": { - "operationId": "destination-update", + "/destination.all": { + "get": { + "operationId": "destination-all", "tags": [ "destination" ], @@ -30425,80 +30428,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "accessKey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "region": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "secretAccessKey": { - "type": "string" - }, - "destinationId": { - "type": "string" - }, - "provider": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "additionalFlags": { - "anyOf": [ - { - "default": [], - "type": "array", - "items": { - "type": "string", - "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" - } - }, - { - "type": "null" - } - ] - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "name", - "accessKey", - "bucket", - "region", - "endpoint", - "secretAccessKey", - "destinationId", - "provider", - "additionalFlags" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -30665,8 +30594,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -30675,12 +30604,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -30705,55 +30634,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/docker.getContainers": { - "get": { - "operationId": "docker-getContainers", - "tags": [ - "docker" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -30762,12 +30655,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -30792,19 +30685,65 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/destination.remove": { + "post": { + "operationId": "destination-remove", + "tags": [ + "destination" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "destinationId": { + "type": "string" + } + }, + "required": [ + "destinationId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -30813,12 +30752,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -30843,19 +30782,19 @@ "code" ], "additionalProperties": false, - "title": "Authorization not provided error (401)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } }, - "403": { - "description": "Insufficient access", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -30864,12 +30803,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -30894,19 +30833,19 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "404": { - "description": "Not found", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -30915,12 +30854,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -30945,11 +30884,11 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Insufficient access error (403)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } @@ -31010,11 +30949,11 @@ } } }, - "/docker.restartContainer": { + "/destination.update": { "post": { - "operationId": "docker-restartContainer", + "operationId": "destination-update", "tags": [ - "docker" + "destination" ], "security": [ { @@ -31029,17 +30968,67 @@ "schema": { "type": "object", "properties": { - "containerId": { + "name": { "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" + "minLength": 1 + }, + "accessKey": { + "type": "string" + }, + "bucket": { + "type": "string" + }, + "region": { + "type": "string" + }, + "endpoint": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "destinationId": { + "type": "string" + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "additionalFlags": { + "anyOf": [ + { + "default": [], + "type": "array", + "items": { + "type": "string", + "pattern": "^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$" + } + }, + { + "type": "null" + } + ] }, "serverId": { "type": "string" } }, "required": [ - "containerId" + "name", + "accessKey", + "bucket", + "region", + "endpoint", + "secretAccessKey", + "destinationId", + "provider", + "additionalFlags" ] } } @@ -31265,9 +31254,9 @@ } } }, - "/docker.startContainer": { - "post": { - "operationId": "docker-startContainer", + "/docker.getContainers": { + "get": { + "operationId": "docker-getContainers", "tags": [ "docker" ], @@ -31276,30 +31265,15 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId" - ] - } + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", @@ -31466,6 +31440,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -31520,9 +31545,9 @@ } } }, - "/docker.stopContainer": { + "/docker.restartContainer": { "post": { - "operationId": "docker-stopContainer", + "operationId": "docker-restartContainer", "tags": [ "docker" ], @@ -31775,9 +31800,9 @@ } } }, - "/docker.killContainer": { + "/docker.startContainer": { "post": { - "operationId": "docker-killContainer", + "operationId": "docker-startContainer", "tags": [ "docker" ], @@ -32030,9 +32055,9 @@ } } }, - "/docker.removeContainer": { + "/docker.stopContainer": { "post": { - "operationId": "docker-removeContainer", + "operationId": "docker-stopContainer", "tags": [ "docker" ], @@ -32285,9 +32310,9 @@ } } }, - "/docker.getConfig": { - "get": { - "operationId": "docker-getConfig", + "/docker.killContainer": { + "post": { + "operationId": "docker-killContainer", "tags": [ "docker" ], @@ -32296,25 +32321,30 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "containerId", - "schema": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "required": true - }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "containerId": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "containerId" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -32481,57 +32511,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -32586,9 +32565,9 @@ } } }, - "/docker.getContainersByAppNameMatch": { - "get": { - "operationId": "docker-getContainersByAppNameMatch", + "/docker.removeContainer": { + "post": { + "operationId": "docker-removeContainer", "tags": [ "docker" ], @@ -32597,36 +32576,30 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "appType", - "schema": { - "type": "string", - "enum": [ - "stack", - "docker-compose" - ] - } - }, - { - "in": "query", - "name": "appName", - "schema": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "required": true - }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "containerId": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "containerId" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -32793,57 +32766,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -32898,9 +32820,9 @@ } } }, - "/docker.getContainersByAppLabel": { + "/docker.getConfig": { "get": { - "operationId": "docker-getContainersByAppLabel", + "operationId": "docker-getConfig", "tags": [ "docker" ], @@ -32912,7 +32834,7 @@ "parameters": [ { "in": "query", - "name": "appName", + "name": "containerId", "schema": { "type": "string", "minLength": 1, @@ -32926,18 +32848,6 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "type", - "schema": { - "type": "string", - "enum": [ - "standalone", - "swarm" - ] - }, - "required": true } ], "responses": { @@ -33211,9 +33121,9 @@ } } }, - "/docker.getStackContainersByAppName": { + "/docker.getContainersByAppNameMatch": { "get": { - "operationId": "docker-getStackContainersByAppName", + "operationId": "docker-getContainersByAppNameMatch", "tags": [ "docker" ], @@ -33223,6 +33133,17 @@ } ], "parameters": [ + { + "in": "query", + "name": "appType", + "schema": { + "type": "string", + "enum": [ + "stack", + "docker-compose" + ] + } + }, { "in": "query", "name": "appName", @@ -33512,9 +33433,9 @@ } } }, - "/docker.getServiceContainersByAppName": { + "/docker.getContainersByAppLabel": { "get": { - "operationId": "docker-getServiceContainersByAppName", + "operationId": "docker-getContainersByAppLabel", "tags": [ "docker" ], @@ -33540,6 +33461,18 @@ "schema": { "type": "string" } + }, + { + "in": "query", + "name": "type", + "schema": { + "type": "string", + "enum": [ + "standalone", + "swarm" + ] + }, + "required": true } ], "responses": { @@ -33813,9 +33746,9 @@ } } }, - "/docker.uploadFileToContainer": { - "post": { - "operationId": "docker-uploadFileToContainer", + "/docker.getStackContainersByAppName": { + "get": { + "operationId": "docker-getStackContainersByAppName", "tags": [ "docker" ], @@ -33824,40 +33757,643 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "containerId": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9.\\-_]+$" - }, - "file": { - "type": "string", - "format": "binary" - }, - "destinationPath": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "containerId", - "file", - "destinationPath" - ] - } + "parameters": [ + { + "in": "query", + "name": "appName", + "schema": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "required": true + }, + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" } } - }, + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/docker.getServiceContainersByAppName": { + "get": { + "operationId": "docker-getServiceContainersByAppName", + "tags": [ + "docker" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "appName", + "schema": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "required": true + }, + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/docker.uploadFileToContainer": { + "post": { + "operationId": "docker-uploadFileToContainer", + "tags": [ + "docker" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "containerId": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_]+$" + }, + "file": { + "type": "string", + "format": "binary" + }, + "destinationPath": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9.\\-_/]+$" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "containerId", + "file", + "destinationPath" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -34235,6 +34771,9 @@ "type": "null" } ] + }, + "forwardAuthEnabled": { + "type": "boolean" } }, "required": [ @@ -35723,6 +36262,9 @@ } ] }, + "forwardAuthEnabled": { + "type": "boolean" + }, "domainId": { "type": "string" } @@ -95049,6 +95591,10 @@ "deploy", "build" ] + }, + "enableDockerCleanup": { + "default": true, + "type": "boolean" } }, "required": [ @@ -98776,6 +99322,10 @@ "build" ] }, + "enableDockerCleanup": { + "default": true, + "type": "boolean" + }, "command": { "type": "string" } @@ -99014,9 +99564,9 @@ } } }, - "/server.publicIp": { - "get": { - "operationId": "server-publicIp", + "/server.updateBuildsConcurrency": { + "post": { + "operationId": "server-updateBuildsConcurrency", "tags": [ "server" ], @@ -99025,6 +99575,32 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "type": "string", + "minLength": 1 + }, + "buildsConcurrency": { + "type": "integer", + "minimum": 1, + "maximum": 100 + } + }, + "required": [ + "serverId", + "buildsConcurrency" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -99191,57 +99767,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -99296,9 +99821,9 @@ } } }, - "/server.getServerTime": { + "/server.publicIp": { "get": { - "operationId": "server-getServerTime", + "operationId": "server-publicIp", "tags": [ "server" ], @@ -99578,9 +100103,9 @@ } } }, - "/server.getServerMetrics": { + "/server.getServerTime": { "get": { - "operationId": "server-getServerMetrics", + "operationId": "server-getServerTime", "tags": [ "server" ], @@ -99589,32 +100114,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "url", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "token", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "dataPoints", - "schema": { - "type": "string" - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -99886,17 +100385,43 @@ } } }, - "/settings.getWebServerSettings": { + "/server.getServerMetrics": { "get": { - "operationId": "settings-getWebServerSettings", + "operationId": "server-getServerMetrics", "tags": [ - "settings" + "server" ], "security": [ { "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "url", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "token", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "dataPoints", + "schema": { + "type": "string" + }, + "required": true + } + ], "responses": { "200": { "description": "Successful response", @@ -100168,9 +100693,9 @@ } } }, - "/settings.reloadServer": { - "post": { - "operationId": "settings-reloadServer", + "/settings.getWebServerSettings": { + "get": { + "operationId": "settings-getWebServerSettings", "tags": [ "settings" ], @@ -100345,6 +100870,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -100399,9 +100975,9 @@ } } }, - "/settings.cleanRedis": { + "/settings.reloadServer": { "post": { - "operationId": "settings-cleanRedis", + "operationId": "settings-reloadServer", "tags": [ "settings" ], @@ -100630,9 +101206,9 @@ } } }, - "/settings.reloadRedis": { + "/settings.cleanRedis": { "post": { - "operationId": "settings-reloadRedis", + "operationId": "settings-cleanRedis", "tags": [ "settings" ], @@ -100861,9 +101437,9 @@ } } }, - "/settings.cleanAllDeploymentQueue": { + "/settings.reloadRedis": { "post": { - "operationId": "settings-cleanAllDeploymentQueue", + "operationId": "settings-reloadRedis", "tags": [ "settings" ], @@ -101092,9 +101668,9 @@ } } }, - "/settings.reloadTraefik": { + "/settings.cleanAllDeploymentQueue": { "post": { - "operationId": "settings-reloadTraefik", + "operationId": "settings-cleanAllDeploymentQueue", "tags": [ "settings" ], @@ -101103,22 +101679,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - } - } - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -101339,9 +101899,9 @@ } } }, - "/settings.toggleDashboard": { + "/settings.reloadTraefik": { "post": { - "operationId": "settings-toggleDashboard", + "operationId": "settings-reloadTraefik", "tags": [ "settings" ], @@ -101352,15 +101912,12 @@ ], "parameters": [], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { - "enableDashboard": { - "type": "boolean" - }, "serverId": { "type": "string" } @@ -101589,9 +102146,9 @@ } } }, - "/settings.cleanUnusedImages": { + "/settings.toggleDashboard": { "post": { - "operationId": "settings-cleanUnusedImages", + "operationId": "settings-toggleDashboard", "tags": [ "settings" ], @@ -101602,12 +102159,15 @@ ], "parameters": [], "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { + "enableDashboard": { + "type": "boolean" + }, "serverId": { "type": "string" } @@ -101836,9 +102396,9 @@ } } }, - "/settings.cleanUnusedVolumes": { + "/settings.cleanUnusedImages": { "post": { - "operationId": "settings-cleanUnusedVolumes", + "operationId": "settings-cleanUnusedImages", "tags": [ "settings" ], @@ -102083,9 +102643,9 @@ } } }, - "/settings.cleanStoppedContainers": { + "/settings.cleanUnusedVolumes": { "post": { - "operationId": "settings-cleanStoppedContainers", + "operationId": "settings-cleanUnusedVolumes", "tags": [ "settings" ], @@ -102330,9 +102890,9 @@ } } }, - "/settings.cleanDockerBuilder": { + "/settings.cleanStoppedContainers": { "post": { - "operationId": "settings-cleanDockerBuilder", + "operationId": "settings-cleanStoppedContainers", "tags": [ "settings" ], @@ -102577,9 +103137,9 @@ } } }, - "/settings.cleanDockerPrune": { + "/settings.cleanDockerBuilder": { "post": { - "operationId": "settings-cleanDockerPrune", + "operationId": "settings-cleanDockerBuilder", "tags": [ "settings" ], @@ -102824,9 +103384,9 @@ } } }, - "/settings.cleanAll": { + "/settings.cleanDockerPrune": { "post": { - "operationId": "settings-cleanAll", + "operationId": "settings-cleanDockerPrune", "tags": [ "settings" ], @@ -103071,9 +103631,9 @@ } } }, - "/settings.cleanMonitoring": { + "/settings.cleanAll": { "post": { - "operationId": "settings-cleanMonitoring", + "operationId": "settings-cleanAll", "tags": [ "settings" ], @@ -103082,237 +103642,22 @@ "Authorization": [] } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Invalid input data" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "BAD_REQUEST" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Invalid input data error (400)", - "description": "The error information", - "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", - "issues": [] - } - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Authorization not provided" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Insufficient access" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "FORBIDDEN" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Insufficient access error (403)", - "description": "The error information", - "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", - "issues": [] - } - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Internal server error" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Internal server error error (500)", - "description": "The error information", - "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", - "issues": [] + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "type": "string" } } } } } - } - } - }, - "/settings.getDockerDiskUsage": { - "get": { - "operationId": "settings-getDockerDiskUsage", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], + }, "responses": { "200": { "description": "Successful response", @@ -103479,57 +103824,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -103584,9 +103878,9 @@ } } }, - "/settings.saveSSHPrivateKey": { + "/settings.cleanMonitoring": { "post": { - "operationId": "settings-saveSSHPrivateKey", + "operationId": "settings-cleanMonitoring", "tags": [ "settings" ], @@ -103595,25 +103889,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sshPrivateKey": { - "type": "string" - } - }, - "required": [ - "sshPrivateKey" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -103834,9 +104109,9 @@ } } }, - "/settings.assignDomainServer": { - "post": { - "operationId": "settings-assignDomainServer", + "/settings.getDockerDiskUsage": { + "get": { + "operationId": "settings-getDockerDiskUsage", "tags": [ "settings" ], @@ -103845,57 +104120,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "host": { - "type": "string" - }, - "certificateType": { - "type": "string", - "enum": [ - "letsencrypt", - "none", - "custom" - ] - }, - "letsEncryptEmail": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - { - "type": "string", - "const": "" - } - ] - }, - { - "type": "null" - } - ] - }, - "https": { - "type": "boolean" - } - }, - "required": [ - "host", - "certificateType" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -104062,6 +104286,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -104116,9 +104391,9 @@ } } }, - "/settings.cleanSSHPrivateKey": { + "/settings.saveSSHPrivateKey": { "post": { - "operationId": "settings-cleanSSHPrivateKey", + "operationId": "settings-saveSSHPrivateKey", "tags": [ "settings" ], @@ -104127,6 +104402,25 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sshPrivateKey": { + "type": "string" + } + }, + "required": [ + "sshPrivateKey" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -104347,9 +104641,9 @@ } } }, - "/settings.updateDockerCleanup": { + "/settings.assignDomainServer": { "post": { - "operationId": "settings-updateDockerCleanup", + "operationId": "settings-assignDomainServer", "tags": [ "settings" ], @@ -104366,15 +104660,44 @@ "schema": { "type": "object", "properties": { - "enableDockerCleanup": { - "type": "boolean" - }, - "serverId": { + "host": { "type": "string" + }, + "certificateType": { + "type": "string", + "enum": [ + "letsencrypt", + "none", + "custom" + ] + }, + "letsEncryptEmail": { + "anyOf": [ + { + "anyOf": [ + { + "type": "string", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" + }, + { + "type": "string", + "const": "" + } + ] + }, + { + "type": "null" + } + ] + }, + "https": { + "type": "boolean" } }, "required": [ - "enableDockerCleanup" + "host", + "certificateType" ] } } @@ -104600,9 +104923,9 @@ } } }, - "/settings.readTraefikConfig": { - "get": { - "operationId": "settings-readTraefikConfig", + "/settings.cleanSSHPrivateKey": { + "post": { + "operationId": "settings-cleanSSHPrivateKey", "tags": [ "settings" ], @@ -104777,8 +105100,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -104787,63 +105110,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Internal server error" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -104882,9 +105154,9 @@ } } }, - "/settings.updateTraefikConfig": { + "/settings.updateDockerCleanup": { "post": { - "operationId": "settings-updateTraefikConfig", + "operationId": "settings-updateDockerCleanup", "tags": [ "settings" ], @@ -104901,13 +105173,15 @@ "schema": { "type": "object", "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 + "enableDockerCleanup": { + "type": "boolean" + }, + "serverId": { + "type": "string" } }, "required": [ - "traefikConfig" + "enableDockerCleanup" ] } } @@ -105133,9 +105407,9 @@ } } }, - "/settings.readWebServerTraefikConfig": { - "get": { - "operationId": "settings-readWebServerTraefikConfig", + "/settings.updateRemoteServersOnly": { + "post": { + "operationId": "settings-updateRemoteServersOnly", "tags": [ "settings" ], @@ -105144,6 +105418,25 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "remoteServersOnly": { + "type": "boolean" + } + }, + "required": [ + "remoteServersOnly" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -105310,57 +105603,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -105415,9 +105657,9 @@ } } }, - "/settings.updateWebServerTraefikConfig": { + "/settings.updateBuildsConcurrency": { "post": { - "operationId": "settings-updateWebServerTraefikConfig", + "operationId": "settings-updateBuildsConcurrency", "tags": [ "settings" ], @@ -105434,13 +105676,14 @@ "schema": { "type": "object", "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 + "buildsConcurrency": { + "type": "integer", + "minimum": 1, + "maximum": 100 } }, "required": [ - "traefikConfig" + "buildsConcurrency" ] } } @@ -105666,9 +105909,9 @@ } } }, - "/settings.readMiddlewareTraefikConfig": { - "get": { - "operationId": "settings-readMiddlewareTraefikConfig", + "/settings.updateEnforceSSO": { + "post": { + "operationId": "settings-updateEnforceSSO", "tags": [ "settings" ], @@ -105677,6 +105920,25 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enforceSSO": { + "type": "boolean" + } + }, + "required": [ + "enforceSSO" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -105843,8 +106105,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -105853,12 +106115,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -105883,19 +106145,46 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/settings.readTraefikConfig": { + "get": { + "operationId": "settings-readTraefikConfig", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -105904,12 +106193,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -105934,66 +106223,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/settings.updateMiddlewareTraefikConfig": { - "post": { - "operationId": "settings-updateMiddlewareTraefikConfig", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "traefikConfig": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "traefikConfig" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -106002,12 +106244,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -106032,19 +106274,19 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "401": { - "description": "Authorization not provided", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -106053,12 +106295,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -106083,19 +106325,19 @@ "code" ], "additionalProperties": false, - "title": "Authorization not provided error (401)", + "title": "Insufficient access error (403)", "description": "The error information", "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } } } }, - "403": { - "description": "Insufficient access", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -106104,12 +106346,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -106134,11 +106376,11 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } @@ -106199,9 +106441,9 @@ } } }, - "/settings.getUpdateData": { + "/settings.updateTraefikConfig": { "post": { - "operationId": "settings-getUpdateData", + "operationId": "settings-updateTraefikConfig", "tags": [ "settings" ], @@ -106210,6 +106452,26 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "traefikConfig": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "traefikConfig" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -106430,9 +106692,9 @@ } } }, - "/settings.updateServer": { - "post": { - "operationId": "settings-updateServer", + "/settings.readWebServerTraefikConfig": { + "get": { + "operationId": "settings-readWebServerTraefikConfig", "tags": [ "settings" ], @@ -106607,6 +106869,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -106661,9 +106974,9 @@ } } }, - "/settings.getDokployVersion": { - "get": { - "operationId": "settings-getDokployVersion", + "/settings.updateWebServerTraefikConfig": { + "post": { + "operationId": "settings-updateWebServerTraefikConfig", "tags": [ "settings" ], @@ -106672,6 +106985,26 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "traefikConfig": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "traefikConfig" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -106838,8 +107171,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -106848,12 +107181,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -106878,19 +107211,46 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/settings.readMiddlewareTraefikConfig": { + "get": { + "operationId": "settings-readMiddlewareTraefikConfig", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -106899,12 +107259,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -106929,46 +107289,70 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/settings.getReleaseTag": { - "get": { - "operationId": "settings-getReleaseTag", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", + }, + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { "type": "object", - "properties": {}, - "additionalProperties": false + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } } } } }, - "400": { - "description": "Invalid input data", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -106977,114 +107361,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Invalid input data error (400)", - "description": "The error information", - "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", - "issues": [] - } - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Authorization not provided" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Insufficient access" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "FORBIDDEN" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -107225,9 +107507,9 @@ } } }, - "/settings.readDirectories": { - "get": { - "operationId": "settings-readDirectories", + "/settings.updateMiddlewareTraefikConfig": { + "post": { + "operationId": "settings-updateMiddlewareTraefikConfig", "tags": [ "settings" ], @@ -107236,15 +107518,26 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "traefikConfig": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "traefikConfig" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -107411,8 +107704,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -107421,12 +107714,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -107451,19 +107744,46 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/settings.getUpdateData": { + "post": { + "operationId": "settings-getUpdateData", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -107472,12 +107792,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -107502,74 +107822,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/settings.updateTraefikFile": { - "post": { - "operationId": "settings-updateTraefikFile", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "path": { - "type": "string", - "minLength": 1 - }, - "traefikConfig": { - "type": "string", - "minLength": 1 - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "path", - "traefikConfig" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -107578,12 +107843,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -107608,19 +107873,19 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "401": { - "description": "Authorization not provided", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -107629,63 +107894,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Insufficient access" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "FORBIDDEN" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -107775,9 +107989,9 @@ } } }, - "/settings.readTraefikFile": { - "get": { - "operationId": "settings-readTraefikFile", + "/settings.updateServer": { + "post": { + "operationId": "settings-updateServer", "tags": [ "settings" ], @@ -107786,24 +108000,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "path", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -107970,57 +108166,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -108075,9 +108220,9 @@ } } }, - "/settings.getIp": { + "/settings.getDokployVersion": { "get": { - "operationId": "settings-getIp", + "operationId": "settings-getDokployVersion", "tags": [ "settings" ], @@ -108357,9 +108502,9 @@ } } }, - "/settings.updateServerIp": { - "post": { - "operationId": "settings-updateServerIp", + "/settings.getReleaseTag": { + "get": { + "operationId": "settings-getReleaseTag", "tags": [ "settings" ], @@ -108368,25 +108513,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "serverIp": { - "type": "string" - } - }, - "required": [ - "serverIp" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -108553,6 +108679,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -108607,9 +108784,9 @@ } } }, - "/settings.getOpenApiDocument": { + "/settings.readDirectories": { "get": { - "operationId": "settings-getOpenApiDocument", + "operationId": "settings-readDirectories", "tags": [ "settings" ], @@ -108618,6 +108795,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -108889,9 +109075,9 @@ } } }, - "/settings.readTraefikEnv": { - "get": { - "operationId": "settings-readTraefikEnv", + "/settings.updateTraefikFile": { + "post": { + "operationId": "settings-updateTraefikFile", "tags": [ "settings" ], @@ -108900,15 +109086,34 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "path": { + "type": "string", + "minLength": 1 + }, + "traefikConfig": { + "type": "string", + "minLength": 1 + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "path", + "traefikConfig" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -109075,57 +109280,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -109180,9 +109334,9 @@ } } }, - "/settings.writeTraefikEnv": { - "post": { - "operationId": "settings-writeTraefikEnv", + "/settings.readTraefikFile": { + "get": { + "operationId": "settings-readTraefikFile", "tags": [ "settings" ], @@ -109191,28 +109345,24 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "env": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "env" - ] - } + "parameters": [ + { + "in": "query", + "name": "path", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", @@ -109379,8 +109529,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -109389,12 +109539,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109419,55 +109569,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/settings.haveTraefikDashboardPortEnabled": { - "get": { - "operationId": "settings-haveTraefikDashboardPortEnabled", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -109476,12 +109590,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109506,70 +109620,46 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } - }, - "401": { - "description": "Authorization not provided", + } + } + } + }, + "/settings.getIp": { + "get": { + "operationId": "settings-getIp", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Authorization not provided" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } + "properties": {}, + "additionalProperties": false } } } }, - "403": { - "description": "Insufficient access", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -109578,12 +109668,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109608,19 +109698,19 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } }, - "404": { - "description": "Not found", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -109629,12 +109719,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109659,19 +109749,19 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "500": { - "description": "Internal server error", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -109680,12 +109770,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109710,46 +109800,70 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Insufficient access error (403)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } } } - } - } - } - }, - "/settings.haveActivateRequests": { - "get": { - "operationId": "settings-haveActivateRequests", - "tags": [ - "settings" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", + }, + "404": { + "description": "Not found", "content": { "application/json": { "schema": { "type": "object", - "properties": {}, - "additionalProperties": false + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } } } } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -109758,12 +109872,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109788,19 +109902,65 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/settings.updateServerIp": { + "post": { + "operationId": "settings-updateServerIp", + "tags": [ + "settings" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverIp": { + "type": "string" + } + }, + "required": [ + "serverIp" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -109809,12 +109969,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109839,19 +109999,19 @@ "code" ], "additionalProperties": false, - "title": "Authorization not provided error (401)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } }, - "403": { - "description": "Insufficient access", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -109860,12 +110020,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109890,19 +110050,19 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "404": { - "description": "Not found", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -109911,12 +110071,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -109941,11 +110101,11 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Insufficient access error (403)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } @@ -110006,9 +110166,9 @@ } } }, - "/settings.toggleRequests": { - "post": { - "operationId": "settings-toggleRequests", + "/settings.getOpenApiDocument": { + "get": { + "operationId": "settings-getOpenApiDocument", "tags": [ "settings" ], @@ -110017,25 +110177,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "enable": { - "type": "boolean" - } - }, - "required": [ - "enable" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -110202,6 +110343,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -110256,9 +110448,9 @@ } } }, - "/settings.isCloud": { + "/settings.readTraefikEnv": { "get": { - "operationId": "settings-isCloud", + "operationId": "settings-readTraefikEnv", "tags": [ "settings" ], @@ -110267,6 +110459,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -110538,9 +110739,9 @@ } } }, - "/settings.isUserSubscribed": { - "get": { - "operationId": "settings-isUserSubscribed", + "/settings.writeTraefikEnv": { + "post": { + "operationId": "settings-writeTraefikEnv", "tags": [ "settings" ], @@ -110549,6 +110750,28 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "env": { + "type": "string" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "env" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -110715,57 +110938,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -110820,9 +110992,9 @@ } } }, - "/settings.health": { + "/settings.haveTraefikDashboardPortEnabled": { "get": { - "operationId": "settings-health", + "operationId": "settings-haveTraefikDashboardPortEnabled", "tags": [ "settings" ], @@ -110831,6 +111003,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -111102,9 +111283,9 @@ } } }, - "/settings.checkInfrastructureHealth": { + "/settings.haveActivateRequests": { "get": { - "operationId": "settings-checkInfrastructureHealth", + "operationId": "settings-haveActivateRequests", "tags": [ "settings" ], @@ -111384,9 +111565,9 @@ } } }, - "/settings.setupGPU": { + "/settings.toggleRequests": { "post": { - "operationId": "settings-setupGPU", + "operationId": "settings-toggleRequests", "tags": [ "settings" ], @@ -111403,10 +111584,13 @@ "schema": { "type": "object", "properties": { - "serverId": { - "type": "string" + "enable": { + "type": "boolean" } - } + }, + "required": [ + "enable" + ] } } } @@ -111631,9 +111815,9 @@ } } }, - "/settings.checkGPUStatus": { + "/settings.isCloud": { "get": { - "operationId": "settings-checkGPUStatus", + "operationId": "settings-isCloud", "tags": [ "settings" ], @@ -111642,15 +111826,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -111922,9 +112097,9 @@ } } }, - "/settings.updateTraefikPorts": { - "post": { - "operationId": "settings-updateTraefikPorts", + "/settings.isUserSubscribed": { + "get": { + "operationId": "settings-isUserSubscribed", "tags": [ "settings" ], @@ -111933,52 +112108,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "serverId": { - "type": "string" - }, - "additionalPorts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "targetPort": { - "type": "number" - }, - "publishedPort": { - "type": "number" - }, - "protocol": { - "type": "string", - "enum": [ - "tcp", - "udp", - "sctp" - ] - } - }, - "required": [ - "targetPort", - "publishedPort", - "protocol" - ] - } - } - }, - "required": [ - "additionalPorts" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -112145,6 +112274,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -112199,9 +112379,9 @@ } } }, - "/settings.getTraefikPorts": { + "/settings.health": { "get": { - "operationId": "settings-getTraefikPorts", + "operationId": "settings-health", "tags": [ "settings" ], @@ -112210,15 +112390,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -112490,9 +112661,9 @@ } } }, - "/settings.updateLogCleanup": { - "post": { - "operationId": "settings-updateLogCleanup", + "/settings.checkInfrastructureHealth": { + "get": { + "operationId": "settings-checkInfrastructureHealth", "tags": [ "settings" ], @@ -112501,32 +112672,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "cronExpression": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "cronExpression" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -112693,6 +112838,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -112747,9 +112943,9 @@ } } }, - "/settings.getLogCleanupStatus": { - "get": { - "operationId": "settings-getLogCleanupStatus", + "/settings.setupGPU": { + "post": { + "operationId": "settings-setupGPU", "tags": [ "settings" ], @@ -112758,6 +112954,22 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "type": "string" + } + } + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -112924,57 +113136,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -113029,9 +113190,9 @@ } } }, - "/settings.getDokployCloudIps": { + "/settings.checkGPUStatus": { "get": { - "operationId": "settings-getDokployCloudIps", + "operationId": "settings-checkGPUStatus", "tags": [ "settings" ], @@ -113040,6 +113201,15 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -113311,11 +113481,11 @@ } } }, - "/sshKey.create": { + "/settings.updateTraefikPorts": { "post": { - "operationId": "sshKey-create", + "operationId": "settings-updateTraefikPorts", "tags": [ - "sshKey" + "settings" ], "security": [ { @@ -113330,35 +113500,39 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "privateKey": { - "type": "string" - }, - "publicKey": { + "serverId": { "type": "string" }, - "organizationId": { - "type": "string" + "additionalPorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "targetPort": { + "type": "number" + }, + "publishedPort": { + "type": "number" + }, + "protocol": { + "type": "string", + "enum": [ + "tcp", + "udp", + "sctp" + ] + } + }, + "required": [ + "targetPort", + "publishedPort", + "protocol" + ] + } } }, "required": [ - "name", - "privateKey", - "publicKey", - "organizationId" + "additionalPorts" ] } } @@ -113584,36 +113758,26 @@ } } }, - "/sshKey.remove": { - "post": { - "operationId": "sshKey-remove", + "/settings.getTraefikPorts": { + "get": { + "operationId": "settings-getTraefikPorts", "tags": [ - "sshKey" + "settings" ], "security": [ { "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sshKeyId": { - "type": "string" - } - }, - "required": [ - "sshKeyId" - ] - } + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", @@ -113780,6 +113944,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -113834,26 +114049,272 @@ } } }, - "/sshKey.one": { - "get": { - "operationId": "sshKey-one", + "/settings.updateLogCleanup": { + "post": { + "operationId": "settings-updateLogCleanup", "tags": [ - "sshKey" + "settings" ], "security": [ { "Authorization": [] } ], - "parameters": [ + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cronExpression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "cronExpression" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/settings.getLogCleanupStatus": { + "get": { + "operationId": "settings-getLogCleanupStatus", + "tags": [ + "settings" + ], + "security": [ { - "in": "query", - "name": "sshKeyId", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true + "Authorization": [] } ], "responses": { @@ -114127,11 +114588,11 @@ } } }, - "/sshKey.all": { + "/settings.getDokployCloudIps": { "get": { - "operationId": "sshKey-all", + "operationId": "settings-getDokployCloudIps", "tags": [ - "sshKey" + "settings" ], "security": [ { @@ -114409,9 +114870,9 @@ } } }, - "/sshKey.allForApps": { - "get": { - "operationId": "sshKey-allForApps", + "/sshKey.create": { + "post": { + "operationId": "sshKey-create", "tags": [ "sshKey" ], @@ -114420,6 +114881,48 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "privateKey": { + "type": "string" + }, + "publicKey": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + }, + "required": [ + "name", + "privateKey", + "publicKey", + "organizationId" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -114586,57 +115089,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -114691,9 +115143,9 @@ } } }, - "/sshKey.generate": { + "/sshKey.remove": { "post": { - "operationId": "sshKey-generate", + "operationId": "sshKey-remove", "tags": [ "sshKey" ], @@ -114710,14 +115162,13 @@ "schema": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "rsa", - "ed25519" - ] + "sshKeyId": { + "type": "string" } - } + }, + "required": [ + "sshKeyId" + ] } } } @@ -114942,9 +115393,9 @@ } } }, - "/sshKey.update": { - "post": { - "operationId": "sshKey-update", + "/sshKey.one": { + "get": { + "operationId": "sshKey-one", "tags": [ "sshKey" ], @@ -114953,49 +115404,17 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "lastUsedAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "sshKeyId": { - "type": "string" - } - }, - "required": [ - "sshKeyId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "sshKeyId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -115162,8 +115581,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -115172,12 +115591,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -115202,46 +115621,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/stripe.getCurrentPlan": { - "get": { - "operationId": "stripe-getCurrentPlan", - "tags": [ - "stripe" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -115250,12 +115642,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -115280,19 +115672,46 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/sshKey.all": { + "get": { + "operationId": "sshKey-all", + "tags": [ + "sshKey" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -115301,12 +115720,63 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -115498,11 +115968,11 @@ } } }, - "/stripe.getProducts": { + "/sshKey.allForApps": { "get": { - "operationId": "stripe-getProducts", + "operationId": "sshKey-allForApps", "tags": [ - "stripe" + "sshKey" ], "security": [ { @@ -115780,11 +116250,11 @@ } } }, - "/stripe.createCheckoutSession": { + "/sshKey.generate": { "post": { - "operationId": "stripe-createCheckoutSession", + "operationId": "sshKey-generate", "tags": [ - "stripe" + "sshKey" ], "security": [ { @@ -115799,31 +116269,14 @@ "schema": { "type": "object", "properties": { - "tier": { + "type": { "type": "string", "enum": [ - "legacy", - "hobby", - "startup" + "rsa", + "ed25519" ] - }, - "productId": { - "type": "string" - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" } - }, - "required": [ - "tier", - "productId", - "serverQuantity", - "isAnnual" - ] + } } } } @@ -116048,17 +116501,60 @@ } } }, - "/stripe.createCustomerPortalSession": { + "/sshKey.update": { "post": { - "operationId": "stripe-createCustomerPortalSession", + "operationId": "sshKey-update", "tags": [ - "stripe" + "sshKey" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "lastUsedAt": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sshKeyId": { + "type": "string" + } + }, + "required": [ + "sshKeyId" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -116279,9 +116775,9 @@ } } }, - "/stripe.upgradeSubscription": { - "post": { - "operationId": "stripe-upgradeSubscription", + "/stripe.getCurrentPlan": { + "get": { + "operationId": "stripe-getCurrentPlan", "tags": [ "stripe" ], @@ -116290,38 +116786,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "tier": { - "type": "string", - "enum": [ - "hobby", - "startup" - ] - }, - "serverQuantity": { - "type": "number", - "minimum": 1 - }, - "isAnnual": { - "type": "boolean" - } - }, - "required": [ - "tier", - "serverQuantity", - "isAnnual" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -116488,6 +116952,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -116542,9 +117057,9 @@ } } }, - "/stripe.canCreateMoreServers": { + "/stripe.getProducts": { "get": { - "operationId": "stripe-canCreateMoreServers", + "operationId": "stripe-getProducts", "tags": [ "stripe" ], @@ -116824,9 +117339,9 @@ } } }, - "/stripe.updateInvoiceNotifications": { + "/stripe.createCheckoutSession": { "post": { - "operationId": "stripe-updateInvoiceNotifications", + "operationId": "stripe-createCheckoutSession", "tags": [ "stripe" ], @@ -116843,12 +117358,30 @@ "schema": { "type": "object", "properties": { - "enabled": { + "tier": { + "type": "string", + "enum": [ + "legacy", + "hobby", + "startup" + ] + }, + "productId": { + "type": "string" + }, + "serverQuantity": { + "type": "number", + "minimum": 1 + }, + "isAnnual": { "type": "boolean" } }, "required": [ - "enabled" + "tier", + "productId", + "serverQuantity", + "isAnnual" ] } } @@ -117074,9 +117607,9 @@ } } }, - "/stripe.getInvoices": { - "get": { - "operationId": "stripe-getInvoices", + "/stripe.createCustomerPortalSession": { + "post": { + "operationId": "stripe-createCustomerPortalSession", "tags": [ "stripe" ], @@ -117251,57 +117784,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -117356,26 +117838,49 @@ } } }, - "/swarm.getNodes": { - "get": { - "operationId": "swarm-getNodes", + "/stripe.upgradeSubscription": { + "post": { + "operationId": "stripe-upgradeSubscription", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tier": { + "type": "string", + "enum": [ + "hobby", + "startup" + ] + }, + "serverQuantity": { + "type": "number", + "minimum": 1 + }, + "isAnnual": { + "type": "boolean" + } + }, + "required": [ + "tier", + "serverQuantity", + "isAnnual" + ] + } } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -117542,8 +118047,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -117552,12 +118057,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117582,19 +118087,46 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/stripe.canCreateMoreServers": { + "get": { + "operationId": "stripe-canCreateMoreServers", + "tags": [ + "stripe" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -117603,12 +118135,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117633,63 +118165,70 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/swarm.getNodeInfo": { - "get": { - "operationId": "swarm-getNodeInfo", - "tags": [ - "swarm" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "nodeId", - "schema": { - "type": "string" - }, - "required": true }, - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { "type": "object", - "properties": {}, - "additionalProperties": false + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } } } } }, - "400": { - "description": "Invalid input data", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -117698,12 +118237,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117728,19 +118267,19 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Insufficient access error (403)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } } } }, - "401": { - "description": "Authorization not provided", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -117749,12 +118288,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117779,19 +118318,19 @@ "code" ], "additionalProperties": false, - "title": "Authorization not provided error (401)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } }, - "403": { - "description": "Insufficient access", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -117800,12 +118339,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117830,19 +118369,65 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/stripe.updateInvoiceNotifications": { + "post": { + "operationId": "stripe-updateInvoiceNotifications", + "tags": [ + "stripe" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "required": [ + "enabled" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "404": { - "description": "Not found", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -117851,12 +118436,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -117881,11 +118466,113 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", "issues": [] } } @@ -117946,26 +118633,17 @@ } } }, - "/swarm.getNodeApps": { + "/stripe.getInvoices": { "get": { - "operationId": "swarm-getNodeApps", + "operationId": "stripe-getInvoices", "tags": [ - "swarm" + "stripe" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "serverId", - "schema": { - "type": "string" - } - } - ], "responses": { "200": { "description": "Successful response", @@ -118237,9 +118915,9 @@ } } }, - "/swarm.getContainerStats": { + "/swarm.getNodes": { "get": { - "operationId": "swarm-getContainerStats", + "operationId": "swarm-getNodes", "tags": [ "swarm" ], @@ -118528,17 +119206,34 @@ } } }, - "/user.all": { + "/swarm.getNodeInfo": { "get": { - "operationId": "user-all", + "operationId": "swarm-getNodeInfo", "tags": [ - "user" + "swarm" ], "security": [ { "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "nodeId", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -118810,11 +119505,11 @@ } } }, - "/user.one": { + "/swarm.getNodeApps": { "get": { - "operationId": "user-one", + "operationId": "swarm-getNodeApps", "tags": [ - "user" + "swarm" ], "security": [ { @@ -118824,11 +119519,10 @@ "parameters": [ { "in": "query", - "name": "userId", + "name": "serverId", "schema": { "type": "string" - }, - "required": true + } } ], "responses": { @@ -119102,17 +119796,26 @@ } } }, - "/user.session": { + "/swarm.getContainerStats": { "get": { - "operationId": "user-session", + "operationId": "swarm-getContainerStats", "tags": [ - "user" + "swarm" ], "security": [ { "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", @@ -119384,9 +120087,9 @@ } } }, - "/user.get": { + "/user.all": { "get": { - "operationId": "user-get", + "operationId": "user-all", "tags": [ "user" ], @@ -119666,9 +120369,9 @@ } } }, - "/user.getPermissions": { + "/user.one": { "get": { - "operationId": "user-getPermissions", + "operationId": "user-one", "tags": [ "user" ], @@ -119677,6 +120380,16 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "userId", + "schema": { + "type": "string" + }, + "required": true + } + ], "responses": { "200": { "description": "Successful response", @@ -119948,9 +120661,9 @@ } } }, - "/user.haveRootAccess": { + "/user.session": { "get": { - "operationId": "user-haveRootAccess", + "operationId": "user-session", "tags": [ "user" ], @@ -120230,9 +120943,9 @@ } } }, - "/user.getBackups": { + "/user.get": { "get": { - "operationId": "user-getBackups", + "operationId": "user-get", "tags": [ "user" ], @@ -120512,9 +121225,9 @@ } } }, - "/user.getServerMetrics": { + "/user.getPermissions": { "get": { - "operationId": "user-getServerMetrics", + "operationId": "user-getPermissions", "tags": [ "user" ], @@ -120794,9 +121507,9 @@ } } }, - "/user.update": { - "post": { - "operationId": "user-update", + "/user.haveRootAccess": { + "get": { + "operationId": "user-haveRootAccess", "tags": [ "user" ], @@ -120805,161 +121518,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "isRegistered": { - "type": "boolean" - }, - "expirationDate": { - "type": "string" - }, - "createdAt2": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "twoFactorEnabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "email": { - "type": "string", - "minLength": 1, - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "emailVerified": { - "type": "boolean" - }, - "image": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "banned": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "banReason": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "banExpires": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updatedAt": { - "type": "string" - }, - "enablePaidFeatures": { - "type": "boolean" - }, - "allowImpersonation": { - "type": "boolean" - }, - "enableEnterpriseFeatures": { - "type": "boolean" - }, - "licenseKey": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripeCustomerId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "stripeSubscriptionId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "serversQuantity": { - "type": "number" - }, - "sendInvoiceNotifications": { - "type": "boolean" - }, - "password": { - "type": "string" - }, - "currentPassword": { - "type": "string" - } - } - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -121126,8 +121684,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -121136,12 +121694,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -121166,57 +121724,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/user.getUserByToken": { - "get": { - "operationId": "user-getUserByToken", - "tags": [ - "user" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "token", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -121225,12 +121745,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -121255,19 +121775,46 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/user.getBackups": { + "get": { + "operationId": "user-getBackups", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -121276,12 +121823,63 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -121473,9 +122071,9 @@ } } }, - "/user.getMetricsToken": { + "/user.getServerMetrics": { "get": { - "operationId": "user-getMetricsToken", + "operationId": "user-getServerMetrics", "tags": [ "user" ], @@ -121755,9 +122353,9 @@ } } }, - "/user.remove": { + "/user.update": { "post": { - "operationId": "user-remove", + "operationId": "user-update", "tags": [ "user" ], @@ -121774,13 +122372,149 @@ "schema": { "type": "object", "properties": { - "userId": { + "id": { + "type": "string", + "minLength": 1 + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "isRegistered": { + "type": "boolean" + }, + "expirationDate": { + "type": "string" + }, + "createdAt2": { + "type": "string" + }, + "createdAt": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "twoFactorEnabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "email": { + "type": "string", + "minLength": 1, + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" + }, + "emailVerified": { + "type": "boolean" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "banReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banExpires": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string" + }, + "enablePaidFeatures": { + "type": "boolean" + }, + "allowImpersonation": { + "type": "boolean" + }, + "enableEnterpriseFeatures": { + "type": "boolean" + }, + "licenseKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "stripeCustomerId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "stripeSubscriptionId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "serversQuantity": { + "type": "number" + }, + "sendInvoiceNotifications": { + "type": "boolean" + }, + "password": { + "type": "string" + }, + "currentPassword": { "type": "string" } - }, - "required": [ - "userId" - ] + } } } } @@ -122005,9 +122739,9 @@ } } }, - "/user.assignPermissions": { - "post": { - "operationId": "user-assignPermissions", + "/user.getUserByToken": { + "get": { + "operationId": "user-getUserByToken", "tags": [ "user" ], @@ -122016,105 +122750,17 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "accessedProjects": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedEnvironments": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedServices": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedGitProviders": { - "type": "array", - "items": { - "type": "string" - } - }, - "accessedServers": { - "type": "array", - "items": { - "type": "string" - } - }, - "canCreateProjects": { - "type": "boolean" - }, - "canCreateServices": { - "type": "boolean" - }, - "canDeleteProjects": { - "type": "boolean" - }, - "canDeleteServices": { - "type": "boolean" - }, - "canAccessToDocker": { - "type": "boolean" - }, - "canAccessToTraefikFiles": { - "type": "boolean" - }, - "canAccessToAPI": { - "type": "boolean" - }, - "canAccessToSSHKeys": { - "type": "boolean" - }, - "canAccessToGitProviders": { - "type": "boolean" - }, - "canDeleteEnvironments": { - "type": "boolean" - }, - "canCreateEnvironments": { - "type": "boolean" - } - }, - "required": [ - "id", - "accessedProjects", - "accessedEnvironments", - "accessedServices", - "accessedGitProviders", - "accessedServers", - "canCreateProjects", - "canCreateServices", - "canDeleteProjects", - "canDeleteServices", - "canAccessToDocker", - "canAccessToTraefikFiles", - "canAccessToAPI", - "canAccessToSSHKeys", - "canAccessToGitProviders", - "canDeleteEnvironments", - "canCreateEnvironments" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "token", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -122281,6 +122927,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -122335,9 +123032,9 @@ } } }, - "/user.getInvitations": { + "/user.getMetricsToken": { "get": { - "operationId": "user-getInvitations", + "operationId": "user-getMetricsToken", "tags": [ "user" ], @@ -122617,9 +123314,9 @@ } } }, - "/user.getContainerMetrics": { - "get": { - "operationId": "user-getContainerMetrics", + "/user.remove": { + "post": { + "operationId": "user-remove", "tags": [ "user" ], @@ -122628,40 +123325,25 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "url", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "token", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "appName", - "schema": { - "type": "string" - }, - "required": true - }, - { - "in": "query", - "name": "dataPoints", - "schema": { - "type": "string" - }, - "required": true + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "userId": { + "type": "string" + } + }, + "required": [ + "userId" + ] + } + } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -122828,8 +123510,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -122838,12 +123520,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -122868,19 +123550,145 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/user.assignPermissions": { + "post": { + "operationId": "user-assignPermissions", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "minLength": 1 + }, + "accessedProjects": { + "type": "array", + "items": { + "type": "string" + } + }, + "accessedEnvironments": { + "type": "array", + "items": { + "type": "string" + } + }, + "accessedServices": { + "type": "array", + "items": { + "type": "string" + } + }, + "accessedGitProviders": { + "type": "array", + "items": { + "type": "string" + } + }, + "accessedServers": { + "type": "array", + "items": { + "type": "string" + } + }, + "canCreateProjects": { + "type": "boolean" + }, + "canCreateServices": { + "type": "boolean" + }, + "canDeleteProjects": { + "type": "boolean" + }, + "canDeleteServices": { + "type": "boolean" + }, + "canAccessToDocker": { + "type": "boolean" + }, + "canAccessToTraefikFiles": { + "type": "boolean" + }, + "canAccessToAPI": { + "type": "boolean" + }, + "canAccessToSSHKeys": { + "type": "boolean" + }, + "canAccessToGitProviders": { + "type": "boolean" + }, + "canDeleteEnvironments": { + "type": "boolean" + }, + "canCreateEnvironments": { + "type": "boolean" + } + }, + "required": [ + "id", + "accessedProjects", + "accessedEnvironments", + "accessedServices", + "accessedGitProviders", + "accessedServers", + "canCreateProjects", + "canCreateServices", + "canDeleteProjects", + "canDeleteServices", + "canAccessToDocker", + "canAccessToTraefikFiles", + "canAccessToAPI", + "canAccessToSSHKeys", + "canAccessToGitProviders", + "canDeleteEnvironments", + "canCreateEnvironments" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -122889,90 +123697,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Internal server error error (500)", - "description": "The error information", - "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", - "issues": [] - } - } - } - } - } - } - } - }, - "/user.generateToken": { - "post": { - "operationId": "user-generateToken", - "tags": [ - "user" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Invalid input data" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "BAD_REQUEST" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -123164,9 +123894,9 @@ } } }, - "/user.deleteApiKey": { - "post": { - "operationId": "user-deleteApiKey", + "/user.getInvitations": { + "get": { + "operationId": "user-getInvitations", "tags": [ "user" ], @@ -123175,25 +123905,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "apiKeyId": { - "type": "string" - } - }, - "required": [ - "apiKeyId" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -123360,8 +124071,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -123370,12 +124081,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -123400,102 +124111,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/user.createApiKey": { - "post": { - "operationId": "user-createApiKey", - "tags": [ - "user" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "prefix": { - "type": "string" - }, - "expiresIn": { - "type": "number" - }, - "metadata": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - } - }, - "required": [ - "organizationId" - ] - }, - "rateLimitEnabled": { - "type": "boolean" - }, - "rateLimitTimeWindow": { - "type": "number" - }, - "rateLimitMax": { - "type": "number" - }, - "remaining": { - "type": "number" - }, - "refillAmount": { - "type": "number" - }, - "refillInterval": { - "type": "number" - } - }, - "required": [ - "name", - "metadata" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -123504,12 +124132,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -123534,19 +124162,80 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/user.getContainerMetrics": { + "get": { + "operationId": "user-getContainerMetrics", + "tags": [ + "user" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "url", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "token", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "appName", + "schema": { + "type": "string" + }, + "required": true + }, + { + "in": "query", + "name": "dataPoints", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -123555,12 +124244,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -123585,19 +124274,19 @@ "code" ], "additionalProperties": false, - "title": "Authorization not provided error (401)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } }, - "403": { - "description": "Insufficient access", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -123606,12 +124295,63 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -123647,6 +124387,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -123701,9 +124492,9 @@ } } }, - "/user.checkUserOrganizations": { - "get": { - "operationId": "user-checkUserOrganizations", + "/user.generateToken": { + "post": { + "operationId": "user-generateToken", "tags": [ "user" ], @@ -123712,16 +124503,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "userId", - "schema": { - "type": "string" - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -123888,57 +124669,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -123993,9 +124723,9 @@ } } }, - "/user.createUserWithCredentials": { + "/user.deleteApiKey": { "post": { - "operationId": "user-createUserWithCredentials", + "operationId": "user-deleteApiKey", "tags": [ "user" ], @@ -124012,24 +124742,12 @@ "schema": { "type": "object", "properties": { - "email": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "password": { - "type": "string", - "minLength": 8 - }, - "role": { - "type": "string", - "minLength": 1 + "apiKeyId": { + "type": "string" } }, "required": [ - "email", - "password", - "role" + "apiKeyId" ] } } @@ -124255,9 +124973,9 @@ } } }, - "/user.sendInvitation": { + "/user.createApiKey": { "post": { - "operationId": "user-sendInvitation", + "operationId": "user-createApiKey", "tags": [ "user" ], @@ -124274,18 +124992,49 @@ "schema": { "type": "object", "properties": { - "invitationId": { + "name": { "type": "string", "minLength": 1 }, - "notificationId": { - "type": "string", - "minLength": 1 + "prefix": { + "type": "string" + }, + "expiresIn": { + "type": "number" + }, + "metadata": { + "type": "object", + "properties": { + "organizationId": { + "type": "string" + } + }, + "required": [ + "organizationId" + ] + }, + "rateLimitEnabled": { + "type": "boolean" + }, + "rateLimitTimeWindow": { + "type": "number" + }, + "rateLimitMax": { + "type": "number" + }, + "remaining": { + "type": "number" + }, + "refillAmount": { + "type": "number" + }, + "refillInterval": { + "type": "number" } }, "required": [ - "invitationId", - "notificationId" + "name", + "metadata" ] } } @@ -124511,9 +125260,9 @@ } } }, - "/user.getBookmarkedTemplates": { + "/user.checkUserOrganizations": { "get": { - "operationId": "user-getBookmarkedTemplates", + "operationId": "user-checkUserOrganizations", "tags": [ "user" ], @@ -124522,6 +125271,16 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "userId", + "schema": { + "type": "string" + }, + "required": true + } + ], "responses": { "200": { "description": "Successful response", @@ -124793,9 +125552,9 @@ } } }, - "/user.toggleTemplateBookmark": { + "/user.createUserWithCredentials": { "post": { - "operationId": "user-toggleTemplateBookmark", + "operationId": "user-createUserWithCredentials", "tags": [ "user" ], @@ -124812,13 +125571,24 @@ "schema": { "type": "object", "properties": { - "templateId": { + "email": { + "type": "string", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" + }, + "password": { + "type": "string", + "minLength": 8 + }, + "role": { "type": "string", "minLength": 1 } }, "required": [ - "templateId" + "email", + "password", + "role" ] } } @@ -125044,27 +125814,42 @@ } } }, - "/ai.one": { - "get": { - "operationId": "ai-one", + "/user.sendInvitation": { + "post": { + "operationId": "user-sendInvitation", "tags": [ - "ai" + "user" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "aiId", - "schema": { - "type": "string" - }, - "required": true + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "invitationId": { + "type": "string", + "minLength": 1 + }, + "notificationId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "invitationId", + "notificationId" + ] + } + } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -125231,57 +126016,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -125336,36 +126070,17 @@ } } }, - "/ai.getModels": { + "/user.getBookmarkedTemplates": { "get": { - "operationId": "ai-getModels", + "operationId": "user-getBookmarkedTemplates", "tags": [ - "ai" + "user" ], "security": [ { "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "apiUrl", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - }, - { - "in": "query", - "name": "apiKey", - "schema": { - "type": "string" - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -125637,11 +126352,11 @@ } } }, - "/ai.create": { + "/user.toggleTemplateBookmark": { "post": { - "operationId": "ai-create", + "operationId": "user-toggleTemplateBookmark", "tags": [ - "ai" + "user" ], "security": [ { @@ -125656,31 +126371,13 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string", - "minLength": 1 - }, - "apiUrl": { - "type": "string", - "format": "uri" - }, - "apiKey": { - "type": "string" - }, - "model": { + "templateId": { "type": "string", "minLength": 1 - }, - "isEnabled": { - "type": "boolean" } }, "required": [ - "name", - "apiUrl", - "apiKey", - "model", - "isEnabled" + "templateId" ] } } @@ -125906,9 +126603,9 @@ } } }, - "/ai.update": { - "post": { - "operationId": "ai-update", + "/ai.one": { + "get": { + "operationId": "ai-one", "tags": [ "ai" ], @@ -125917,47 +126614,16 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "aiId": { - "type": "string", - "minLength": 1 - }, - "name": { - "type": "string", - "minLength": 1 - }, - "apiUrl": { - "type": "string", - "format": "uri" - }, - "apiKey": { - "type": "string" - }, - "model": { - "type": "string", - "minLength": 1 - }, - "isEnabled": { - "type": "boolean" - }, - "createdAt": { - "type": "string" - } - }, - "required": [ - "aiId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "aiId", + "schema": { + "type": "string" + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -126124,6 +126790,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -126178,9 +126895,9 @@ } } }, - "/ai.getAll": { + "/ai.getModels": { "get": { - "operationId": "ai-getAll", + "operationId": "ai-getModels", "tags": [ "ai" ], @@ -126189,6 +126906,25 @@ "Authorization": [] } ], + "parameters": [ + { + "in": "query", + "name": "apiUrl", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true + } + ], "responses": { "200": { "description": "Successful response", @@ -126460,9 +127196,9 @@ } } }, - "/ai.get": { - "get": { - "operationId": "ai-get", + "/ai.create": { + "post": { + "operationId": "ai-create", "tags": [ "ai" ], @@ -126471,16 +127207,44 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "aiId", - "schema": { - "type": "string" - }, - "required": true + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "apiUrl": { + "type": "string", + "format": "uri" + }, + "apiKey": { + "type": "string" + }, + "model": { + "type": "string", + "minLength": 1 + }, + "isEnabled": { + "type": "boolean" + } + }, + "required": [ + "name", + "apiUrl", + "apiKey", + "model", + "isEnabled" + ] + } + } } - ], + }, "responses": { "200": { "description": "Successful response", @@ -126647,57 +127411,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -126752,9 +127465,9 @@ } } }, - "/ai.delete": { + "/ai.update": { "post": { - "operationId": "ai-delete", + "operationId": "ai-update", "tags": [ "ai" ], @@ -126772,6 +127485,28 @@ "type": "object", "properties": { "aiId": { + "type": "string", + "minLength": 1 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "apiUrl": { + "type": "string", + "format": "uri" + }, + "apiKey": { + "type": "string" + }, + "model": { + "type": "string", + "minLength": 1 + }, + "isEnabled": { + "type": "boolean" + }, + "createdAt": { "type": "string" } }, @@ -127002,9 +127737,9 @@ } } }, - "/ai.getEnabledProviders": { + "/ai.getAll": { "get": { - "operationId": "ai-getEnabledProviders", + "operationId": "ai-getAll", "tags": [ "ai" ], @@ -127284,9 +128019,9 @@ } } }, - "/ai.analyzeLogs": { - "post": { - "operationId": "ai-analyzeLogs", + "/ai.get": { + "get": { + "operationId": "ai-get", "tags": [ "ai" ], @@ -127295,39 +128030,16 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "aiId": { - "type": "string", - "minLength": 1 - }, - "logs": { - "type": "string", - "minLength": 1 - }, - "context": { - "type": "string", - "enum": [ - "build", - "runtime" - ] - } - }, - "required": [ - "aiId", - "logs", - "context" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "aiId", + "schema": { + "type": "string" + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -127494,8 +128206,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -127504,12 +128216,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -127534,75 +128246,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/ai.testConnection": { - "post": { - "operationId": "ai-testConnection", - "tags": [ - "ai" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "apiUrl": { - "type": "string", - "minLength": 1 - }, - "apiKey": { - "type": "string" - }, - "model": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "apiUrl", - "apiKey", - "model" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -127611,12 +128267,109 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/ai.delete": { + "post": { + "operationId": "ai-delete", + "tags": [ + "ai" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "aiId": { + "type": "string" + } + }, + "required": [ + "aiId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -127808,9 +128561,9 @@ } } }, - "/ai.suggest": { - "post": { - "operationId": "ai-suggest", + "/ai.getEnabledProviders": { + "get": { + "operationId": "ai-getEnabledProviders", "tags": [ "ai" ], @@ -127819,32 +128572,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "aiId": { - "type": "string" - }, - "input": { - "type": "string" - }, - "serverId": { - "type": "string" - } - }, - "required": [ - "aiId", - "input" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -128011,6 +128738,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -128065,9 +128843,9 @@ } } }, - "/ai.deploy": { + "/ai.analyzeLogs": { "post": { - "operationId": "ai-deploy", + "operationId": "ai-analyzeLogs", "tags": [ "ai" ], @@ -128084,84 +128862,26 @@ "schema": { "type": "object", "properties": { - "environmentId": { - "type": "string", - "minLength": 1 - }, - "id": { + "aiId": { "type": "string", "minLength": 1 }, - "dockerCompose": { + "logs": { "type": "string", "minLength": 1 }, - "envVariables": { - "type": "string" - }, - "serverId": { - "type": "string" - }, - "name": { + "context": { "type": "string", - "minLength": 1 - }, - "description": { - "type": "string" - }, - "domains": { - "type": "array", - "items": { - "type": "object", - "properties": { - "host": { - "type": "string", - "minLength": 1 - }, - "port": { - "type": "number", - "minimum": 1 - }, - "serviceName": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "host", - "port", - "serviceName" - ] - } - }, - "configFiles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "filePath": { - "type": "string", - "minLength": 1 - }, - "content": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "filePath", - "content" - ] - } + "enum": [ + "build", + "runtime" + ] } }, "required": [ - "environmentId", - "id", - "dockerCompose", - "envVariables", - "name", - "description" + "aiId", + "logs", + "context" ] } } @@ -128387,11 +129107,11 @@ } } }, - "/organization.create": { + "/ai.testConnection": { "post": { - "operationId": "organization-create", + "operationId": "ai-testConnection", "tags": [ - "organization" + "ai" ], "security": [ { @@ -128406,15 +129126,22 @@ "schema": { "type": "object", "properties": { - "name": { - "type": "string" + "apiUrl": { + "type": "string", + "minLength": 1 }, - "logo": { + "apiKey": { "type": "string" + }, + "model": { + "type": "string", + "minLength": 1 } }, "required": [ - "name" + "apiUrl", + "apiKey", + "model" ] } } @@ -128640,17 +129367,43 @@ } } }, - "/organization.all": { - "get": { - "operationId": "organization-all", + "/ai.suggest": { + "post": { + "operationId": "ai-suggest", "tags": [ - "organization" + "ai" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "aiId": { + "type": "string" + }, + "input": { + "type": "string" + }, + "serverId": { + "type": "string" + } + }, + "required": [ + "aiId", + "input" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -128817,8 +129570,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -128827,12 +129580,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -128857,19 +129610,137 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/ai.deploy": { + "post": { + "operationId": "ai-deploy", + "tags": [ + "ai" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "environmentId": { + "type": "string", + "minLength": 1 + }, + "id": { + "type": "string", + "minLength": 1 + }, + "dockerCompose": { + "type": "string", + "minLength": 1 + }, + "envVariables": { + "type": "string" + }, + "serverId": { + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "description": { + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "type": "object", + "properties": { + "host": { + "type": "string", + "minLength": 1 + }, + "port": { + "type": "number", + "minimum": 1 + }, + "serviceName": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "host", + "port", + "serviceName" + ] + } + }, + "configFiles": { + "type": "array", + "items": { + "type": "object", + "properties": { + "filePath": { + "type": "string", + "minLength": 1 + }, + "content": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "filePath", + "content" + ] + } + } + }, + "required": [ + "environmentId", + "id", + "dockerCompose", + "envVariables", + "name", + "description" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -128878,12 +129749,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -128908,56 +129779,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/organization.one": { - "get": { - "operationId": "organization-one", - "tags": [ - "organization" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [ - { - "in": "query", - "name": "organizationId", - "schema": { - "type": "string" - }, - "required": true - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { @@ -128966,12 +129800,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Authorization not provided" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "UNAUTHORIZED" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -128996,19 +129830,19 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Authorization not provided error (401)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "UNAUTHORIZED", + "message": "Authorization not provided", "issues": [] } } } } }, - "401": { - "description": "Authorization not provided", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -129017,63 +129851,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Insufficient access" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "FORBIDDEN" + "example": "FORBIDDEN" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -129109,57 +129892,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -129214,9 +129946,9 @@ } } }, - "/organization.update": { + "/organization.create": { "post": { - "operationId": "organization-update", + "operationId": "organization-create", "tags": [ "organization" ], @@ -129233,9 +129965,6 @@ "schema": { "type": "object", "properties": { - "organizationId": { - "type": "string" - }, "name": { "type": "string" }, @@ -129244,7 +129973,6 @@ } }, "required": [ - "organizationId", "name" ] } @@ -129471,9 +130199,9 @@ } } }, - "/organization.delete": { - "post": { - "operationId": "organization-delete", + "/organization.all": { + "get": { + "operationId": "organization-all", "tags": [ "organization" ], @@ -129482,25 +130210,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "organizationId": { - "type": "string" - } - }, - "required": [ - "organizationId" - ] - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -129667,8 +130376,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -129677,12 +130386,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -129707,72 +130416,19 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } } } - } - } - } - }, - "/organization.inviteMember": { - "post": { - "operationId": "organization-inviteMember", - "tags": [ - "organization" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email", - "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" - }, - "role": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "email", - "role" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } }, - "400": { - "description": "Invalid input data", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -129781,12 +130437,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -129811,19 +130467,56 @@ "code" ], "additionalProperties": false, - "title": "Invalid input data error (400)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/organization.one": { + "get": { + "operationId": "organization-one", + "tags": [ + "organization" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "organizationId", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "401": { - "description": "Authorization not provided", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -129832,192 +130525,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Authorization not provided" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Insufficient access" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "FORBIDDEN" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Insufficient access error (403)", - "description": "The error information", - "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", - "issues": [] - } - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Internal server error" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Internal server error error (500)", - "description": "The error information", - "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", - "issues": [] - } - } - } - } - } - } - } - }, - "/organization.allInvitations": { - "get": { - "operationId": "organization-allInvitations", - "tags": [ - "organization" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Invalid input data" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "BAD_REQUEST" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -130260,9 +130773,9 @@ } } }, - "/organization.removeInvitation": { + "/organization.update": { "post": { - "operationId": "organization-removeInvitation", + "operationId": "organization-update", "tags": [ "organization" ], @@ -130279,12 +130792,19 @@ "schema": { "type": "object", "properties": { - "invitationId": { + "organizationId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "logo": { "type": "string" } }, "required": [ - "invitationId" + "organizationId", + "name" ] } } @@ -130510,9 +131030,9 @@ } } }, - "/organization.updateMemberRole": { + "/organization.delete": { "post": { - "operationId": "organization-updateMemberRole", + "operationId": "organization-delete", "tags": [ "organization" ], @@ -130529,17 +131049,12 @@ "schema": { "type": "object", "properties": { - "memberId": { + "organizationId": { "type": "string" - }, - "role": { - "type": "string", - "minLength": 1 } }, "required": [ - "memberId", - "role" + "organizationId" ] } } @@ -130765,9 +131280,9 @@ } } }, - "/organization.setDefault": { + "/organization.inviteMember": { "post": { - "operationId": "organization-setDefault", + "operationId": "organization-inviteMember", "tags": [ "organization" ], @@ -130784,13 +131299,19 @@ "schema": { "type": "object", "properties": { - "organizationId": { + "email": { + "type": "string", + "format": "email", + "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" + }, + "role": { "type": "string", "minLength": 1 } }, "required": [ - "organizationId" + "email", + "role" ] } } @@ -131016,9 +131537,9 @@ } } }, - "/organization.active": { + "/organization.allInvitations": { "get": { - "operationId": "organization-active", + "operationId": "organization-allInvitations", "tags": [ "organization" ], @@ -131298,11 +131819,11 @@ } } }, - "/licenseKey.activate": { + "/organization.removeInvitation": { "post": { - "operationId": "licenseKey-activate", + "operationId": "organization-removeInvitation", "tags": [ - "licenseKey" + "organization" ], "security": [ { @@ -131317,13 +131838,12 @@ "schema": { "type": "object", "properties": { - "licenseKey": { - "type": "string", - "minLength": 1 + "invitationId": { + "type": "string" } }, "required": [ - "licenseKey" + "invitationId" ] } } @@ -131549,17 +132069,41 @@ } } }, - "/licenseKey.validate": { + "/organization.updateMemberRole": { "post": { - "operationId": "licenseKey-validate", + "operationId": "organization-updateMemberRole", "tags": [ - "licenseKey" + "organization" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "memberId": { + "type": "string" + }, + "role": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "memberId", + "role" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -131780,17 +132324,37 @@ } } }, - "/licenseKey.deactivate": { + "/organization.setDefault": { "post": { - "operationId": "licenseKey-deactivate", + "operationId": "organization-setDefault", "tags": [ - "licenseKey" + "organization" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "organizationId" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -132011,11 +132575,11 @@ } } }, - "/licenseKey.getEnterpriseSettings": { + "/organization.active": { "get": { - "operationId": "licenseKey-getEnterpriseSettings", + "operationId": "organization-active", "tags": [ - "licenseKey" + "organization" ], "security": [ { @@ -132293,9 +132857,9 @@ } } }, - "/licenseKey.haveValidLicenseKey": { - "get": { - "operationId": "licenseKey-haveValidLicenseKey", + "/licenseKey.activate": { + "post": { + "operationId": "licenseKey-activate", "tags": [ "licenseKey" ], @@ -132304,6 +132868,26 @@ "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "licenseKey": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "licenseKey" + ] + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -132470,57 +133054,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -132575,9 +133108,9 @@ } } }, - "/licenseKey.updateEnterpriseSettings": { + "/licenseKey.validate": { "post": { - "operationId": "licenseKey-updateEnterpriseSettings", + "operationId": "licenseKey-validate", "tags": [ "licenseKey" ], @@ -132586,22 +133119,6 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "enableEnterpriseFeatures": { - "type": "boolean" - } - } - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -132822,11 +133339,11 @@ } } }, - "/sso.showSignInWithSSO": { - "get": { - "operationId": "sso-showSignInWithSSO", + "/licenseKey.deactivate": { + "post": { + "operationId": "licenseKey-deactivate", "tags": [ - "sso" + "licenseKey" ], "security": [ { @@ -132999,8 +133516,8 @@ } } }, - "404": { - "description": "Not found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -133009,12 +133526,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Not found" + "example": "Internal server error" }, "code": { "type": "string", "description": "The error code", - "example": "NOT_FOUND" + "example": "INTERNAL_SERVER_ERROR" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -133039,19 +133556,46 @@ "code" ], "additionalProperties": false, - "title": "Not found error (404)", + "title": "Internal server error error (500)", "description": "The error information", "example": { - "code": "NOT_FOUND", - "message": "Not found", + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", "issues": [] } } } } + } + } + } + }, + "/licenseKey.getEnterpriseSettings": { + "get": { + "operationId": "licenseKey-getEnterpriseSettings", + "tags": [ + "licenseKey" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Invalid input data", "content": { "application/json": { "schema": { @@ -133060,12 +133604,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Internal server error" + "example": "Invalid input data" }, "code": { "type": "string", "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -133090,46 +133634,70 @@ "code" ], "additionalProperties": false, - "title": "Internal server error error (500)", + "title": "Invalid input data error (400)", "description": "The error information", "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", + "code": "BAD_REQUEST", + "message": "Invalid input data", "issues": [] } } } } - } - } - } - }, - "/sso.listProviders": { - "get": { - "operationId": "sso-listProviders", - "tags": [ - "sso" - ], - "security": [ - { - "Authorization": [] - } - ], - "responses": { - "200": { - "description": "Successful response", + }, + "401": { + "description": "Authorization not provided", "content": { "application/json": { "schema": { "type": "object", - "properties": {}, - "additionalProperties": false + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } } } } }, - "400": { - "description": "Invalid input data", + "403": { + "description": "Insufficient access", "content": { "application/json": { "schema": { @@ -133138,12 +133706,192 @@ "message": { "type": "string", "description": "The error message", - "example": "Invalid input data" + "example": "Insufficient access" }, "code": { "type": "string", "description": "The error code", - "example": "BAD_REQUEST" + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/licenseKey.haveValidLicenseKey": { + "get": { + "operationId": "licenseKey-haveValidLicenseKey", + "tags": [ + "licenseKey" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -133386,17 +134134,33 @@ } } }, - "/sso.getTrustedOrigins": { - "get": { - "operationId": "sso-getTrustedOrigins", + "/licenseKey.updateEnterpriseSettings": { + "post": { + "operationId": "licenseKey-updateEnterpriseSettings", "tags": [ - "sso" + "licenseKey" ], "security": [ { "Authorization": [] } ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enableEnterpriseFeatures": { + "type": "boolean" + } + } + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -133563,57 +134327,6 @@ } } }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Not found" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "NOT_FOUND" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Not found error (404)", - "description": "The error information", - "example": { - "code": "NOT_FOUND", - "message": "Not found", - "issues": [] - } - } - } - } - }, "500": { "description": "Internal server error", "content": { @@ -133668,9 +134381,9 @@ } } }, - "/sso.one": { + "/sso.showSignInWithSSO": { "get": { - "operationId": "sso-one", + "operationId": "sso-showSignInWithSSO", "tags": [ "sso" ], @@ -133679,17 +134392,6 @@ "Authorization": [] } ], - "parameters": [ - { - "in": "query", - "name": "providerId", - "schema": { - "type": "string", - "minLength": 1 - }, - "required": true - } - ], "responses": { "200": { "description": "Successful response", @@ -133961,9 +134663,9 @@ } } }, - "/sso.update": { - "post": { - "operationId": "sso-update", + "/sso.enforceSSO": { + "get": { + "operationId": "sso-enforceSSO", "tags": [ "sso" ], @@ -133972,287 +134674,570 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "providerId": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "domains": { - "type": "array", - "items": { - "type": "string" + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } } }, - "oidcConfig": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "authorizationEndpoint": { - "type": "string" - }, - "tokenEndpoint": { - "type": "string" - }, - "userInfoEndpoint": { - "type": "string" - }, - "tokenEndpointAuthentication": { - "type": "string", - "enum": [ - "client_secret_post", - "client_secret_basic" - ] - }, - "jwksEndpoint": { - "type": "string" - }, - "discoveryEndpoint": { - "type": "string" - }, - "skipDiscovery": { - "type": "boolean" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "pkce": { - "default": true, - "type": "boolean" - }, - "mapping": { + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "image": { + "message": { "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} } }, "required": [ - "id", - "email", - "name" - ] + "message" + ], + "additionalProperties": false } - }, - "required": [ - "clientId", - "clientSecret" - ] + } }, - "samlConfig": { - "type": "object", - "properties": { - "entryPoint": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "callbackUrl": { - "type": "string" - }, - "audience": { - "type": "string" - }, - "idpMetadata": { + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { "type": "object", "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "cert": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { + "message": { "type": "string" - }, - "singleSignOnService": { - "type": "array", - "items": { - "type": "object", - "properties": { - "Binding": { - "type": "string" - }, - "Location": { - "type": "string" - } - }, - "required": [ - "Binding", - "Location" - ] - } } - } - }, - "spMetadata": { + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { "type": "object", "properties": { - "metadata": { - "type": "string" - }, - "entityID": { - "type": "string" - }, - "binding": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "privateKeyPass": { - "type": "string" - }, - "isAssertionEncrypted": { - "type": "boolean" - }, - "encPrivateKey": { - "type": "string" - }, - "encPrivateKeyPass": { + "message": { "type": "string" } - } - }, - "wantAssertionsSigned": { - "type": "boolean" - }, - "authnRequestsSigned": { - "type": "boolean" - }, - "signatureAlgorithm": { - "type": "string" - }, - "digestAlgorithm": { - "type": "string" - }, - "identifierFormat": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "decryptionPvk": { - "type": "string" - }, - "additionalParams": { - "type": "object", - "propertyNames": { - "type": "string" }, - "additionalProperties": {} - }, - "mapping": { + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "emailVerified": { + "message": { "type": "string" - }, - "name": { + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.listProviders": { + "get": { + "operationId": "sso-listProviders", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { "type": "string" - }, - "firstName": { + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { "type": "string" - }, - "lastName": { + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { "type": "string" - }, - "extraFields": { - "type": "object", - "propertyNames": { - "type": "string" - }, - "additionalProperties": {} } }, "required": [ - "id", - "email", - "name" - ] + "message" + ], + "additionalProperties": false } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" }, - "required": [ - "entryPoint", - "cert", - "callbackUrl", - "spMetadata" - ] + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } }, - "organizationId": { - "type": "string" + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } }, - "overrideUserInfo": { - "default": false, - "type": "boolean" + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] } - }, - "required": [ - "providerId", - "issuer", - "domains" - ] + } } } } - }, + } + } + }, + "/sso.getTrustedOrigins": { + "get": { + "operationId": "sso-getTrustedOrigins", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], "responses": { "200": { "description": "Successful response", @@ -134419,6 +135404,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -134473,9 +135509,9 @@ } } }, - "/sso.deleteProvider": { - "post": { - "operationId": "sso-deleteProvider", + "/sso.one": { + "get": { + "operationId": "sso-one", "tags": [ "sso" ], @@ -134484,26 +135520,17 @@ "Authorization": [] } ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "providerId": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "providerId" - ] - } - } + "parameters": [ + { + "in": "query", + "name": "providerId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true } - }, + ], "responses": { "200": { "description": "Successful response", @@ -134670,6 +135697,57 @@ } } }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, "500": { "description": "Internal server error", "content": { @@ -134724,9 +135802,9 @@ } } }, - "/sso.register": { + "/sso.update": { "post": { - "operationId": "sso-register", + "operationId": "sso-update", "tags": [ "sso" ], @@ -135182,208 +136260,4475 @@ } } }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Internal server error" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "INTERNAL_SERVER_ERROR" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Internal server error error (500)", - "description": "The error information", - "example": { - "code": "INTERNAL_SERVER_ERROR", - "message": "Internal server error", - "issues": [] - } - } - } - } - } - } - } - }, - "/sso.addTrustedOrigin": { - "post": { - "operationId": "sso-addTrustedOrigin", - "tags": [ - "sso" - ], - "security": [ - { - "Authorization": [] - } - ], - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "origin": { - "type": "string", - "minLength": 1 - } - }, - "required": [ - "origin" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {}, - "additionalProperties": false - } - } - } - }, - "400": { - "description": "Invalid input data", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Invalid input data" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "BAD_REQUEST" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Invalid input data error (400)", - "description": "The error information", - "example": { - "code": "BAD_REQUEST", - "message": "Invalid input data", - "issues": [] - } - } - } - } - }, - "401": { - "description": "Authorization not provided", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The error message", - "example": "Authorization not provided" - }, - "code": { - "type": "string", - "description": "The error code", - "example": "UNAUTHORIZED" - }, - "issues": { - "description": "An array of issues that were responsible for the error", - "example": [], - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ], - "additionalProperties": false - } - } - }, - "required": [ - "message", - "code" - ], - "additionalProperties": false, - "title": "Authorization not provided error (401)", - "description": "The error information", - "example": { - "code": "UNAUTHORIZED", - "message": "Authorization not provided", - "issues": [] - } - } - } - } - }, - "403": { - "description": "Insufficient access", + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.deleteProvider": { + "post": { + "operationId": "sso-deleteProvider", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.register": { + "post": { + "operationId": "sso-register", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string" + }, + "issuer": { + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "type": "string" + } + }, + "oidcConfig": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "authorizationEndpoint": { + "type": "string" + }, + "tokenEndpoint": { + "type": "string" + }, + "userInfoEndpoint": { + "type": "string" + }, + "tokenEndpointAuthentication": { + "type": "string", + "enum": [ + "client_secret_post", + "client_secret_basic" + ] + }, + "jwksEndpoint": { + "type": "string" + }, + "discoveryEndpoint": { + "type": "string" + }, + "skipDiscovery": { + "type": "boolean" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "pkce": { + "default": true, + "type": "boolean" + }, + "mapping": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "string" + }, + "name": { + "type": "string" + }, + "image": { + "type": "string" + }, + "extraFields": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + }, + "required": [ + "id", + "email", + "name" + ] + } + }, + "required": [ + "clientId", + "clientSecret" + ] + }, + "samlConfig": { + "type": "object", + "properties": { + "entryPoint": { + "type": "string" + }, + "cert": { + "type": "string" + }, + "callbackUrl": { + "type": "string" + }, + "audience": { + "type": "string" + }, + "idpMetadata": { + "type": "object", + "properties": { + "metadata": { + "type": "string" + }, + "entityID": { + "type": "string" + }, + "cert": { + "type": "string" + }, + "privateKey": { + "type": "string" + }, + "privateKeyPass": { + "type": "string" + }, + "isAssertionEncrypted": { + "type": "boolean" + }, + "encPrivateKey": { + "type": "string" + }, + "encPrivateKeyPass": { + "type": "string" + }, + "singleSignOnService": { + "type": "array", + "items": { + "type": "object", + "properties": { + "Binding": { + "type": "string" + }, + "Location": { + "type": "string" + } + }, + "required": [ + "Binding", + "Location" + ] + } + } + } + }, + "spMetadata": { + "type": "object", + "properties": { + "metadata": { + "type": "string" + }, + "entityID": { + "type": "string" + }, + "binding": { + "type": "string" + }, + "privateKey": { + "type": "string" + }, + "privateKeyPass": { + "type": "string" + }, + "isAssertionEncrypted": { + "type": "boolean" + }, + "encPrivateKey": { + "type": "string" + }, + "encPrivateKeyPass": { + "type": "string" + } + } + }, + "wantAssertionsSigned": { + "type": "boolean" + }, + "authnRequestsSigned": { + "type": "boolean" + }, + "signatureAlgorithm": { + "type": "string" + }, + "digestAlgorithm": { + "type": "string" + }, + "identifierFormat": { + "type": "string" + }, + "privateKey": { + "type": "string" + }, + "decryptionPvk": { + "type": "string" + }, + "additionalParams": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + }, + "mapping": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "string" + }, + "name": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "extraFields": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + }, + "required": [ + "id", + "email", + "name" + ] + } + }, + "required": [ + "entryPoint", + "cert", + "callbackUrl", + "spMetadata" + ] + }, + "organizationId": { + "type": "string" + }, + "overrideUserInfo": { + "default": false, + "type": "boolean" + } + }, + "required": [ + "providerId", + "issuer", + "domains" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.addTrustedOrigin": { + "post": { + "operationId": "sso-addTrustedOrigin", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "origin": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "origin" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.removeTrustedOrigin": { + "post": { + "operationId": "sso-removeTrustedOrigin", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "origin": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "origin" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/sso.updateTrustedOrigin": { + "post": { + "operationId": "sso-updateTrustedOrigin", + "tags": [ + "sso" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "oldOrigin": { + "type": "string", + "minLength": 1 + }, + "newOrigin": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "oldOrigin", + "newOrigin" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/scim.listProviders": { + "get": { + "operationId": "scim-listProviders", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/scim.generateToken": { + "post": { + "operationId": "scim-generateToken", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[a-z0-9][a-z0-9-]*$" + } + }, + "required": [ + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/scim.deleteProvider": { + "post": { + "operationId": "scim-deleteProvider", + "tags": [ + "scim" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "providerId": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[a-z0-9][a-z0-9-]*$" + } + }, + "required": [ + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.getAuthDomain": { + "get": { + "operationId": "forwardAuth-getAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "serverId", + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.setAuthDomain": { + "post": { + "operationId": "forwardAuth-setAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "authDomain": { + "type": "string" + }, + "https": { + "default": true, + "type": "boolean" + }, + "certificateType": { + "default": "letsencrypt", + "type": "string", + "enum": [ + "none", + "letsencrypt", + "custom" + ] + }, + "customCertResolver": { + "type": "string" + } + }, + "required": [ + "serverId", + "authDomain" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.removeAuthDomain": { + "post": { + "operationId": "forwardAuth-removeAuthDomain", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "serverId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.listProviders": { + "get": { + "operationId": "forwardAuth-listProviders", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.serverStatus": { + "get": { + "operationId": "forwardAuth-serverStatus", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Not found" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "NOT_FOUND" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Not found error (404)", + "description": "The error information", + "example": { + "code": "NOT_FOUND", + "message": "Not found", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.deployOnServer": { + "post": { + "operationId": "forwardAuth-deployOnServer", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "providerId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "serverId", + "providerId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.removeOnServer": { + "post": { + "operationId": "forwardAuth-removeOnServer", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "serverId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "serverId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Internal server error" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "INTERNAL_SERVER_ERROR" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Internal server error error (500)", + "description": "The error information", + "example": { + "code": "INTERNAL_SERVER_ERROR", + "message": "Internal server error", + "issues": [] + } + } + } + } + } + } + } + }, + "/forwardAuth.status": { + "get": { + "operationId": "forwardAuth-status", + "tags": [ + "forwardAuth" + ], + "security": [ + { + "Authorization": [] + } + ], + "parameters": [ + { + "in": "query", + "name": "domainId", + "schema": { + "type": "string", + "minLength": 1 + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Invalid input data", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Invalid input data" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "BAD_REQUEST" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Invalid input data error (400)", + "description": "The error information", + "example": { + "code": "BAD_REQUEST", + "message": "Invalid input data", + "issues": [] + } + } + } + } + }, + "401": { + "description": "Authorization not provided", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Authorization not provided" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "UNAUTHORIZED" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Authorization not provided error (401)", + "description": "The error information", + "example": { + "code": "UNAUTHORIZED", + "message": "Authorization not provided", + "issues": [] + } + } + } + } + }, + "403": { + "description": "Insufficient access", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The error message", + "example": "Insufficient access" + }, + "code": { + "type": "string", + "description": "The error code", + "example": "FORBIDDEN" + }, + "issues": { + "description": "An array of issues that were responsible for the error", + "example": [], + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ], + "additionalProperties": false + } + } + }, + "required": [ + "message", + "code" + ], + "additionalProperties": false, + "title": "Insufficient access error (403)", + "description": "The error information", + "example": { + "code": "FORBIDDEN", + "message": "Insufficient access", + "issues": [] + } + } + } + } + }, + "404": { + "description": "Not found", "content": { "application/json": { "schema": { @@ -135392,12 +140737,12 @@ "message": { "type": "string", "description": "The error message", - "example": "Insufficient access" + "example": "Not found" }, "code": { "type": "string", "description": "The error code", - "example": "FORBIDDEN" + "example": "NOT_FOUND" }, "issues": { "description": "An array of issues that were responsible for the error", @@ -135422,11 +140767,11 @@ "code" ], "additionalProperties": false, - "title": "Insufficient access error (403)", + "title": "Not found error (404)", "description": "The error information", "example": { - "code": "FORBIDDEN", - "message": "Insufficient access", + "code": "NOT_FOUND", + "message": "Not found", "issues": [] } } @@ -135487,11 +140832,11 @@ } } }, - "/sso.removeTrustedOrigin": { + "/forwardAuth.enable": { "post": { - "operationId": "sso-removeTrustedOrigin", + "operationId": "forwardAuth-enable", "tags": [ - "sso" + "forwardAuth" ], "security": [ { @@ -135506,13 +140851,13 @@ "schema": { "type": "object", "properties": { - "origin": { + "domainId": { "type": "string", "minLength": 1 } }, "required": [ - "origin" + "domainId" ] } } @@ -135738,11 +141083,11 @@ } } }, - "/sso.updateTrustedOrigin": { + "/forwardAuth.disable": { "post": { - "operationId": "sso-updateTrustedOrigin", + "operationId": "forwardAuth-disable", "tags": [ - "sso" + "forwardAuth" ], "security": [ { @@ -135757,18 +141102,13 @@ "schema": { "type": "object", "properties": { - "oldOrigin": { - "type": "string", - "minLength": 1 - }, - "newOrigin": { + "domainId": { "type": "string", "minLength": 1 } }, "required": [ - "oldOrigin", - "newOrigin" + "domainId" ] } } @@ -139221,6 +144561,16 @@ "name": { "type": "string" }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "cronExpression": { "type": "string" }, @@ -139296,7 +144646,7 @@ } ] }, - "userId": { + "organizationId": { "anyOf": [ { "type": "string" @@ -139578,6 +144928,16 @@ "name": { "type": "string" }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "cronExpression": { "type": "string" }, @@ -139653,7 +145013,7 @@ } ] }, - "userId": { + "organizationId": { "anyOf": [ { "type": "string" diff --git a/tests/codemode-execute.integration.test.ts b/tests/codemode-execute.integration.test.ts index bf51011..973a786 100644 --- a/tests/codemode-execute.integration.test.ts +++ b/tests/codemode-execute.integration.test.ts @@ -1235,6 +1235,11 @@ describe('codemode execute integration', () => { data: { lines: ['libsql-line'], truncated: false }, trace: trace(procedure, 2), } + case 'deployment.readLogs': + return { + data: { lines: ['deployment-line'], truncated: false }, + trace: trace(procedure, 3), + } default: throw new Error(`Unexpected procedure ${procedure}`) } @@ -1270,15 +1275,25 @@ describe('codemode execute integration', () => { procedure: 'libsql.readLogs', result: { lines: ['libsql-line'], truncated: false }, }, + { + kind: 'deployment', + deploymentId: 'deployment-1', + tail: 15, + since: '1h', + search: 'error', + procedure: 'deployment.readLogs', + result: { lines: ['deployment-line'], truncated: false }, + }, ], - total: 3, + total: 4, }) expect(calls).toEqual([ 'application.readLogs:{"applicationId":"app-1","tail":20,"search":"error"}', 'compose.readLogs:{"composeId":"compose-1","containerId":"web","tail":10}', 'libsql.readLogs:{"libsqlId":"libsql-1","tail":5}', + 'deployment.readLogs:{"deploymentId":"deployment-1","tail":15}', ]) - expect(context.getCalls()).toHaveLength(3) + expect(context.getCalls()).toHaveLength(4) }) it('can execute virtual libsql.many while preserving input order', async () => { diff --git a/tests/codemode-procedure-overrides.test.ts b/tests/codemode-procedure-overrides.test.ts index 60027d0..7b1290c 100644 --- a/tests/codemode-procedure-overrides.test.ts +++ b/tests/codemode-procedure-overrides.test.ts @@ -342,6 +342,16 @@ describe('codemode procedure overrides', () => { containerId: 'container-1', tail: 20, }) + + expect( + mapProcedureInput('deployment.readLogs', { + deploymentId: 'deployment-1', + tail: 10000, + }), + ).toEqual({ + deploymentId: 'deployment-1', + tail: 200, + }) }) it('bounds multiline log text and redacts common secret patterns', () => { @@ -396,6 +406,34 @@ describe('codemode procedure overrides', () => { expect(shaped.logs).not.toContain('key-material') }) + it('bounds and redacts deployment log output', () => { + const logText = [ + ...Array.from({ length: 240 }, (_value, index) => `deploy line ${index + 1}`), + 'ACCESS_TOKEN=deploy-token', + 'image pulled', + 'https://deploy:super-secret@registry.example.com/v2/app', + ].join('\n') + + const shaped = transformProcedureResponse( + 'deployment.readLogs', + {}, + { + deploymentId: 'd1', + logs: logText, + }, + ) as { deploymentId: string; logs: string } + + expect(shaped.deploymentId).toBe('d1') + expect(shaped.logs).toContain('[TRUNCATED TO LAST 200 LINES]') + expect(shaped.logs).toContain('deploy line 240') + expect(shaped.logs).not.toContain('\ndeploy line 43\n') + expect(shaped.logs).toContain('ACCESS_TOKEN=[REDACTED]') + expect(shaped.logs).toContain('https://deploy:[REDACTED]@registry.example.com/v2/app') + expect(shaped.logs).toContain('image pulled') + expect(shaped.logs).not.toContain('deploy-token') + expect(shaped.logs).not.toContain('super-secret') + }) + it('redacts broader env and URI credential log patterns without over-redacting prose', () => { const logText = [ 'DATABASE_DSN=postgres://dokploy:super-secret@db.example.com:5432/app', diff --git a/tests/codemode.test.ts b/tests/codemode.test.ts index afff9bc..07d50f6 100644 --- a/tests/codemode.test.ts +++ b/tests/codemode.test.ts @@ -122,6 +122,26 @@ describe('codemode runtime', () => { ) }) + it('search catalog get marks deployment.readLogs as bounded and redacted log output', async () => { + const result = await searchTool.handler({ + code: "async ({ catalog }) => catalog.get('deployment.readLogs')", + }) + + const payload = result.structuredContent as { result?: unknown } + const contract = payload.result as Record + + expect(contract.procedure).toBe('deployment.readLogs') + expect(contract.commonResponseFields).toEqual( + expect.arrayContaining(['logs', 'timestamp', 'message', 'stream']), + ) + expect(contract.responseHints).toEqual( + expect.arrayContaining([expect.stringContaining('recent stdout')]), + ) + expect(contract.notes).toEqual( + expect.arrayContaining([expect.stringContaining('redacting common secret patterns')]), + ) + }) + it('search catalog get explains safe mount creation for mounts.create', async () => { const result = await searchTool.handler({ code: "async ({ catalog }) => catalog.get('mounts.create')", @@ -643,6 +663,9 @@ describe('codemode runtime', () => { expectTypeOf(context.dokploy.logs.tailMany).toBeCallableWith({ requests: [{ kind: 'application', applicationId: 'app-1', tail: 20 }], }) + expectTypeOf(context.dokploy.logs.tailMany).toBeCallableWith({ + requests: [{ kind: 'deployment', deploymentId: 'deployment-1', tail: 20 }], + }) expectTypeOf(context.dokploy.libsql.many).toBeCallableWith({ libsqlIds: ['libsql-1'], }) @@ -1291,6 +1314,38 @@ describe('codemode runtime', () => { expect(context.getCalls()).toHaveLength(0) }) + it('validates virtual logs.tailMany deployment requests before issuing upstream calls', async () => { + const context = buildExecuteContext(async (procedure, input = {}) => { + return { + data: { procedure, input }, + trace: { + procedure, + method: 'GET', + startedAt: 0, + finishedAt: 1, + durationMs: 1, + }, + } + }, 5) + + await expect( + runSandboxedFunction({ + code: ` + async ({ dokploy }) => { + return await dokploy.logs.tailMany({ + requests: [{ kind: 'deployment', tail: 10 }], + }) + } + `, + context: { + dokploy: context.dokploy, + }, + }), + ).rejects.toThrow('requests[0].deploymentId is required') + + expect(context.getCalls()).toHaveLength(0) + }) + it('keeps project.logsOverview usable when one log source errors', async () => { const context = buildExecuteContext(async (procedure, input = {}) => { if (procedure === 'project.one') { diff --git a/tests/codemode/fixtures/execute/logs-tail-many.js b/tests/codemode/fixtures/execute/logs-tail-many.js index 3dd36db..bfc5c7f 100644 --- a/tests/codemode/fixtures/execute/logs-tail-many.js +++ b/tests/codemode/fixtures/execute/logs-tail-many.js @@ -9,6 +9,13 @@ tail: 10, }, { kind: 'libsql', libsqlId: 'libsql-1', tail: 5 }, + { + kind: 'deployment', + deploymentId: 'deployment-1', + tail: 15, + since: '1h', + search: 'error', + }, ], }) } diff --git a/tests/http-server.test.ts b/tests/http-server.test.ts index e209ac0..38f36a3 100644 --- a/tests/http-server.test.ts +++ b/tests/http-server.test.ts @@ -1699,7 +1699,7 @@ describe('http server transport', () => { await Promise.allSettled([closeHttpClient(client), closeHttpClient(reconnect)]) } } - }, 20_000) + }, 60_000) it('applies managed shutdown semantics when callers use createHttpServer directly', async () => { const handle = await startCreatedTestHttpServer({ mode: 'codemode' })