@dokploy/mcp 0.29.14 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -3
- package/build/generated/tools.js +783 -45
- package/build/server.js +85 -10
- package/build/utils/clientConfig.js +1 -1
- package/build/utils/redactSensitive.js +7 -6
- package/package.json +1 -1
package/build/generated/tools.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
|
|
2
|
-
// Generated from openapi.json on 2026-08-
|
|
2
|
+
// Generated from openapi.json on 2026-08-15
|
|
3
3
|
// Run `pnpm generate` to regenerate
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export const generatedTools = [
|
|
@@ -21,7 +21,7 @@ export const generatedTools = [
|
|
|
21
21
|
tag: "application",
|
|
22
22
|
method: "POST",
|
|
23
23
|
path: "/application.create",
|
|
24
|
-
schema: z.object({ "name": z.string().min(1), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "environmentId": z.string(), "serverId": z.union([z.string(), z.null()]).optional() }),
|
|
24
|
+
schema: z.object({ "name": z.string().min(1), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "environmentId": z.string(), "serverId": z.union([z.string(), z.null()]).optional(), "sourceType": z.enum(["github", "docker", "git", "gitlab", "bitbucket", "gitea", "drop"]).optional() }),
|
|
25
25
|
annotations: {
|
|
26
26
|
title: "Application Create",
|
|
27
27
|
...{ "openWorldHint": true },
|
|
@@ -225,7 +225,7 @@ export const generatedTools = [
|
|
|
225
225
|
tag: "application",
|
|
226
226
|
method: "POST",
|
|
227
227
|
path: "/application.update",
|
|
228
|
-
schema: z.object({ "applicationId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "previewEnv": z.union([z.string(), z.null()]).optional(), "watchPaths": z.union([z.array(z.string()), z.null()]).optional(), "previewBuildArgs": z.union([z.string(), z.null()]).optional(), "previewBuildSecrets": z.union([z.string(), z.null()]).optional(), "previewLabels": z.union([z.array(z.string()), z.null()]).optional(), "previewWildcard": z.union([z.string(), z.null()]).optional(), "previewPort": z.union([z.number(), z.null()]).optional(), "previewHttps": z.boolean().optional(), "previewPath": z.union([z.string(), z.null()]).optional(), "previewCertificateType": z.enum(["letsencrypt", "none", "custom"]).optional(), "previewCustomCertResolver": z.union([z.string(), z.null()]).optional(), "previewLimit": z.union([z.number(), z.null()]).optional(), "isPreviewDeploymentsActive": z.union([z.boolean(), z.null()]).optional(), "previewRequireCollaboratorPermissions": z.union([z.boolean(), z.null()]).optional(), "rollbackActive": z.union([z.boolean(), z.null()]).optional(), "buildArgs": z.union([z.string(), z.null()]).optional(), "buildSecrets": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "subtitle": z.union([z.string(), z.null()]).optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "icon": z.union([z.union([z.string().max(2097152), z.null()]), z.null()]).optional(), "refreshToken": z.union([z.string(), z.null()]).optional(), "sourceType": z.enum(["github", "docker", "git", "gitlab", "bitbucket", "gitea", "drop"]).optional(), "cleanCache": z.union([z.boolean(), z.null()]).optional(), "repository": z.union([z.string(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "buildPath": z.union([z.string(), z.null()]).optional(), "triggerType": z.union([z.enum(["push", "tag"]), z.null()]).optional(), "autoDeploy": z.union([z.boolean(), z.null()]).optional(), "gitlabProjectId": z.union([z.number(), z.null()]).optional(), "gitlabRepository": z.union([z.string(), z.null()]).optional(), "gitlabOwner": z.union([z.string(), z.null()]).optional(), "gitlabBranch": z.union([z.string(), z.null()]).optional(), "gitlabBuildPath": z.union([z.string(), z.null()]).optional(), "gitlabPathNamespace": z.union([z.string(), z.null()]).optional(), "giteaRepository": z.union([z.string(), z.null()]).optional(), "giteaOwner": z.union([z.string(), z.null()]).optional(), "giteaBranch": z.union([z.string(), z.null()]).optional(), "giteaBuildPath": z.union([z.string(), z.null()]).optional(), "bitbucketRepository": z.union([z.string(), z.null()]).optional(), "bitbucketRepositorySlug": z.union([z.string(), z.null()]).optional(), "bitbucketOwner": z.union([z.string(), z.null()]).optional(), "bitbucketBranch": z.union([z.string(), z.null()]).optional(), "bitbucketBuildPath": z.union([z.string(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional(), "password": z.union([z.string(), z.null()]).optional(), "dockerImage": z.union([z.string(), z.null()]).optional(), "registryUrl": z.union([z.string(), z.null()]).optional(), "customGitUrl": z.union([z.string(), z.null()]).optional(), "customGitBranch": z.union([z.string(), z.null()]).optional(), "customGitBuildPath": z.union([z.string(), z.null()]).optional(), "customGitSSHKeyId": z.union([z.string(), z.null()]).optional(), "enableSubmodules": z.boolean().optional(), "dockerfile": z.union([z.string(), z.null()]).optional(), "dockerContextPath": z.union([z.string(), z.null()]).optional(), "dockerBuildStage": z.union([z.string(), z.null()]).optional(), "dropBuildPath": z.union([z.string(), z.null()]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
228
|
+
schema: z.object({ "applicationId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "previewEnv": z.union([z.string(), z.null()]).optional(), "watchPaths": z.union([z.array(z.string()), z.null()]).optional(), "previewBuildArgs": z.union([z.string(), z.null()]).optional(), "previewBuildSecrets": z.union([z.string(), z.null()]).optional(), "previewLabels": z.union([z.array(z.string()), z.null()]).optional(), "previewWildcard": z.union([z.string(), z.null()]).optional(), "previewPort": z.union([z.number(), z.null()]).optional(), "previewHttps": z.boolean().optional(), "previewPath": z.union([z.string(), z.null()]).optional(), "previewCertificateType": z.enum(["letsencrypt", "none", "custom"]).optional(), "previewCustomCertResolver": z.union([z.string(), z.null()]).optional(), "previewLimit": z.union([z.number(), z.null()]).optional(), "isPreviewDeploymentsActive": z.union([z.boolean(), z.null()]).optional(), "previewRequireCollaboratorPermissions": z.union([z.boolean(), z.null()]).optional(), "rollbackActive": z.union([z.boolean(), z.null()]).optional(), "buildArgs": z.union([z.string(), z.null()]).optional(), "buildSecrets": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "subtitle": z.union([z.string(), z.null()]).optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "icon": z.union([z.union([z.string().max(2097152), z.null()]), z.null()]).optional(), "refreshToken": z.union([z.string(), z.null()]).optional(), "sourceType": z.enum(["github", "docker", "git", "gitlab", "bitbucket", "gitea", "drop"]).optional(), "cleanCache": z.union([z.boolean(), z.null()]).optional(), "repository": z.union([z.string(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "buildPath": z.union([z.string(), z.null()]).optional(), "triggerType": z.union([z.enum(["push", "tag"]), z.null()]).optional(), "autoDeploy": z.union([z.boolean(), z.null()]).optional(), "gitlabProjectId": z.union([z.number(), z.null()]).optional(), "gitlabRepository": z.union([z.string(), z.null()]).optional(), "gitlabOwner": z.union([z.string(), z.null()]).optional(), "gitlabBranch": z.union([z.string(), z.null()]).optional(), "gitlabBuildPath": z.union([z.string(), z.null()]).optional(), "gitlabPathNamespace": z.union([z.string(), z.null()]).optional(), "giteaRepository": z.union([z.string(), z.null()]).optional(), "giteaOwner": z.union([z.string(), z.null()]).optional(), "giteaBranch": z.union([z.string(), z.null()]).optional(), "giteaBuildPath": z.union([z.string(), z.null()]).optional(), "bitbucketRepository": z.union([z.string(), z.null()]).optional(), "bitbucketRepositorySlug": z.union([z.string(), z.null()]).optional(), "bitbucketOwner": z.union([z.string(), z.null()]).optional(), "bitbucketBranch": z.union([z.string(), z.null()]).optional(), "bitbucketBuildPath": z.union([z.string(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional(), "password": z.union([z.string(), z.null()]).optional(), "dockerImage": z.union([z.string(), z.null()]).optional(), "registryUrl": z.union([z.string(), z.null()]).optional(), "customGitUrl": z.union([z.string(), z.null()]).optional(), "customGitBranch": z.union([z.string(), z.null()]).optional(), "customGitBuildPath": z.union([z.string(), z.null()]).optional(), "customGitSSHKeyId": z.union([z.string(), z.null()]).optional(), "enableSubmodules": z.boolean().optional(), "dockerfile": z.union([z.string(), z.null()]).optional(), "dockerContextPath": z.union([z.string(), z.null()]).optional(), "dockerBuildStage": z.union([z.string(), z.null()]).optional(), "dropBuildPath": z.union([z.string(), z.null()]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "buildType": z.enum(["dockerfile", "heroku_buildpacks", "paketo_buildpacks", "nixpacks", "static", "railpack"]).optional(), "railpackVersion": z.union([z.string(), z.null()]).optional(), "herokuVersion": z.union([z.string(), z.null()]).optional(), "publishDirectory": z.union([z.string(), z.null()]).optional(), "isStaticSpa": z.union([z.boolean(), z.null()]).optional(), "createEnvFile": z.boolean().optional(), "createdAt": z.string().optional(), "registryId": z.union([z.string(), z.null()]).optional(), "rollbackRegistryId": z.union([z.string(), z.null()]).optional(), "environmentId": z.string().optional(), "githubId": z.union([z.string(), z.null()]).optional(), "gitlabId": z.union([z.string(), z.null()]).optional(), "giteaId": z.union([z.string(), z.null()]).optional(), "bitbucketId": z.union([z.string(), z.null()]).optional(), "buildServerId": z.union([z.string(), z.null()]).optional(), "buildRegistryId": z.union([z.string(), z.null()]).optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
229
229
|
annotations: {
|
|
230
230
|
title: "Application Update",
|
|
231
231
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -615,6 +615,102 @@ export const generatedTools = [
|
|
|
615
615
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
616
616
|
},
|
|
617
617
|
},
|
|
618
|
+
{
|
|
619
|
+
name: "network-all",
|
|
620
|
+
description: "GET /network.all",
|
|
621
|
+
tag: "network",
|
|
622
|
+
method: "GET",
|
|
623
|
+
path: "/network.all",
|
|
624
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
625
|
+
annotations: {
|
|
626
|
+
title: "Network All",
|
|
627
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: "network-one",
|
|
632
|
+
description: "GET /network.one",
|
|
633
|
+
tag: "network",
|
|
634
|
+
method: "GET",
|
|
635
|
+
path: "/network.one",
|
|
636
|
+
schema: z.object({ "networkId": z.string().min(1) }),
|
|
637
|
+
annotations: {
|
|
638
|
+
title: "Network One",
|
|
639
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: "network-create",
|
|
644
|
+
description: "POST /network.create",
|
|
645
|
+
tag: "network",
|
|
646
|
+
method: "POST",
|
|
647
|
+
path: "/network.create",
|
|
648
|
+
schema: z.object({ "name": z.string().min(1), "driver": z.enum(["bridge", "overlay"]).optional(), "internal": z.boolean().optional(), "attachable": z.boolean().optional(), "enableIPv4": z.boolean().optional(), "enableIPv6": z.boolean().optional(), "mtu": z.union([z.union([z.number().int().gte(68).lte(65535), z.null()]), z.null()]).optional(), "ipam": z.union([z.object({ "driver": z.string().optional(), "config": z.array(z.object({ "subnet": z.string().optional(), "gateway": z.string().optional(), "ipRange": z.string().optional() })).optional() }), z.null()]).optional(), "serverId": z.union([z.union([z.string(), z.null()]), z.null()]).optional() }),
|
|
649
|
+
annotations: {
|
|
650
|
+
title: "Network Create",
|
|
651
|
+
...{ "openWorldHint": true },
|
|
652
|
+
},
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: "network-networksToSync",
|
|
656
|
+
description: "GET /network.networksToSync",
|
|
657
|
+
tag: "network",
|
|
658
|
+
method: "GET",
|
|
659
|
+
path: "/network.networksToSync",
|
|
660
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
661
|
+
annotations: {
|
|
662
|
+
title: "Network NetworksToSync",
|
|
663
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "network-import",
|
|
668
|
+
description: "POST /network.import",
|
|
669
|
+
tag: "network",
|
|
670
|
+
method: "POST",
|
|
671
|
+
path: "/network.import",
|
|
672
|
+
schema: z.object({ "serverId": z.string().optional(), "names": z.array(z.string().min(1)).min(1) }),
|
|
673
|
+
annotations: {
|
|
674
|
+
title: "Network Import",
|
|
675
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
name: "network-inspect",
|
|
680
|
+
description: "GET /network.inspect",
|
|
681
|
+
tag: "network",
|
|
682
|
+
method: "GET",
|
|
683
|
+
path: "/network.inspect",
|
|
684
|
+
schema: z.object({ "networkId": z.string().min(1) }),
|
|
685
|
+
annotations: {
|
|
686
|
+
title: "Network Inspect",
|
|
687
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
688
|
+
},
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: "network-recreate",
|
|
692
|
+
description: "POST /network.recreate",
|
|
693
|
+
tag: "network",
|
|
694
|
+
method: "POST",
|
|
695
|
+
path: "/network.recreate",
|
|
696
|
+
schema: z.object({ "networkId": z.string().min(1) }),
|
|
697
|
+
annotations: {
|
|
698
|
+
title: "Network Recreate",
|
|
699
|
+
...{ "openWorldHint": true },
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: "network-remove",
|
|
704
|
+
description: "POST /network.remove",
|
|
705
|
+
tag: "network",
|
|
706
|
+
method: "POST",
|
|
707
|
+
path: "/network.remove",
|
|
708
|
+
schema: z.object({ "networkId": z.string().min(1) }),
|
|
709
|
+
annotations: {
|
|
710
|
+
title: "Network Remove",
|
|
711
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
712
|
+
},
|
|
713
|
+
},
|
|
618
714
|
{
|
|
619
715
|
name: "certificates-create",
|
|
620
716
|
description: "POST /certificates.create",
|
|
@@ -729,7 +825,7 @@ export const generatedTools = [
|
|
|
729
825
|
tag: "compose",
|
|
730
826
|
method: "POST",
|
|
731
827
|
path: "/compose.create",
|
|
732
|
-
schema: z.object({ "name": z.string().min(1), "description": z.union([z.string(), z.null()]).optional(), "environmentId": z.string(), "composeType": z.enum(["docker-compose", "stack"]).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "serverId": z.union([z.string(), z.null()]).optional(), "composeFile": z.string().optional() }),
|
|
828
|
+
schema: z.object({ "name": z.string().min(1), "description": z.union([z.string(), z.null()]).optional(), "environmentId": z.string(), "composeType": z.enum(["docker-compose", "stack"]).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "serverId": z.union([z.string(), z.null()]).optional(), "composeFile": z.string().optional(), "sourceType": z.enum(["git", "github", "gitlab", "bitbucket", "gitea", "raw"]).optional() }),
|
|
733
829
|
annotations: {
|
|
734
830
|
title: "Compose Create",
|
|
735
831
|
...{ "openWorldHint": true },
|
|
@@ -753,7 +849,7 @@ export const generatedTools = [
|
|
|
753
849
|
tag: "compose",
|
|
754
850
|
method: "POST",
|
|
755
851
|
path: "/compose.update",
|
|
756
|
-
schema: z.object({ "composeId": z.string(), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "composeFile": z.string().optional(), "refreshToken": z.union([z.string(), z.null()]).optional(), "sourceType": z.enum(["git", "github", "gitlab", "bitbucket", "gitea", "raw"]).optional(), "composeType": z.enum(["docker-compose", "stack"]).optional(), "repository": z.union([z.string(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "autoDeploy": z.union([z.boolean(), z.null()]).optional(), "gitlabProjectId": z.union([z.number(), z.null()]).optional(), "gitlabRepository": z.union([z.string(), z.null()]).optional(), "gitlabOwner": z.union([z.string(), z.null()]).optional(), "gitlabBranch": z.union([z.string(), z.null()]).optional(), "gitlabPathNamespace": z.union([z.string(), z.null()]).optional(), "bitbucketRepository": z.union([z.string(), z.null()]).optional(), "bitbucketRepositorySlug": z.union([z.string(), z.null()]).optional(), "bitbucketOwner": z.union([z.string(), z.null()]).optional(), "bitbucketBranch": z.union([z.string(), z.null()]).optional(), "giteaRepository": z.union([z.string(), z.null()]).optional(), "giteaOwner": z.union([z.string(), z.null()]).optional(), "giteaBranch": z.union([z.string(), z.null()]).optional(), "customGitUrl": z.union([z.string(), z.null()]).optional(), "customGitBranch": z.union([z.string(), z.null()]).optional(), "customGitSSHKeyId": z.union([z.string(), z.null()]).optional(), "command": z.string().optional(), "enableSubmodules": z.boolean().optional(), "composePath": z.string().min(1).optional(), "suffix": z.string().optional(), "randomize": z.boolean().optional(), "isolatedDeployment": z.boolean().optional(), "isolatedDeploymentsVolume": z.boolean().optional(), "triggerType": z.union([z.enum(["push", "tag"]), z.null()]).optional(), "composeStatus": z.enum(["idle", "running", "done", "error"]).optional(), "environmentId": z.string().optional(), "createdAt": z.string().optional(), "watchPaths": z.union([z.array(z.string()), z.null()]).optional(), "githubId": z.union([z.string(), z.null()]).optional(), "gitlabId": z.union([z.string(), z.null()]).optional(), "bitbucketId": z.union([z.string(), z.null()]).optional(), "giteaId": z.union([z.string(), z.null()]).optional() }),
|
|
852
|
+
schema: z.object({ "composeId": z.string(), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "composeFile": z.string().optional(), "refreshToken": z.union([z.string(), z.null()]).optional(), "sourceType": z.enum(["git", "github", "gitlab", "bitbucket", "gitea", "raw"]).optional(), "composeType": z.enum(["docker-compose", "stack"]).optional(), "repository": z.union([z.string(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "autoDeploy": z.union([z.boolean(), z.null()]).optional(), "gitlabProjectId": z.union([z.number(), z.null()]).optional(), "gitlabRepository": z.union([z.string(), z.null()]).optional(), "gitlabOwner": z.union([z.string(), z.null()]).optional(), "gitlabBranch": z.union([z.string(), z.null()]).optional(), "gitlabPathNamespace": z.union([z.string(), z.null()]).optional(), "bitbucketRepository": z.union([z.string(), z.null()]).optional(), "bitbucketRepositorySlug": z.union([z.string(), z.null()]).optional(), "bitbucketOwner": z.union([z.string(), z.null()]).optional(), "bitbucketBranch": z.union([z.string(), z.null()]).optional(), "giteaRepository": z.union([z.string(), z.null()]).optional(), "giteaOwner": z.union([z.string(), z.null()]).optional(), "giteaBranch": z.union([z.string(), z.null()]).optional(), "customGitUrl": z.union([z.string(), z.null()]).optional(), "customGitBranch": z.union([z.string(), z.null()]).optional(), "customGitSSHKeyId": z.union([z.string(), z.null()]).optional(), "command": z.string().optional(), "createEnvFile": z.boolean().optional(), "enableSubmodules": z.boolean().optional(), "composePath": z.string().min(1).optional(), "suffix": z.string().optional(), "randomize": z.boolean().optional(), "isolatedDeployment": z.boolean().optional(), "isolatedDeploymentsVolume": z.boolean().optional(), "triggerType": z.union([z.enum(["push", "tag"]), z.null()]).optional(), "composeStatus": z.enum(["idle", "running", "done", "error"]).optional(), "icon": z.union([z.union([z.string().max(2097152), z.null()]), z.null()]).optional(), "environmentId": z.string().optional(), "createdAt": z.string().optional(), "watchPaths": z.union([z.array(z.string()), z.null()]).optional(), "githubId": z.union([z.string(), z.null()]).optional(), "gitlabId": z.union([z.string(), z.null()]).optional(), "bitbucketId": z.union([z.string(), z.null()]).optional(), "giteaId": z.union([z.string(), z.null()]).optional(), "serviceNetworks": z.union([z.array(z.object({ "serviceName": z.string(), "networkIds": z.array(z.string()), "detachDokployNetwork": z.boolean() })), z.null()]).optional() }),
|
|
757
853
|
annotations: {
|
|
758
854
|
title: "Compose Update",
|
|
759
855
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -765,7 +861,7 @@ export const generatedTools = [
|
|
|
765
861
|
tag: "compose",
|
|
766
862
|
method: "POST",
|
|
767
863
|
path: "/compose.saveEnvironment",
|
|
768
|
-
schema: z.object({ "composeId": z.string(), "env": z.union([z.string(), z.null()]) }),
|
|
864
|
+
schema: z.object({ "composeId": z.string(), "env": z.union([z.string(), z.null()]), "createEnvFile": z.boolean().optional() }),
|
|
769
865
|
annotations: {
|
|
770
866
|
title: "Compose SaveEnvironment",
|
|
771
867
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -1275,6 +1371,201 @@ export const generatedTools = [
|
|
|
1275
1371
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1276
1372
|
},
|
|
1277
1373
|
},
|
|
1374
|
+
{
|
|
1375
|
+
name: "dnsProvider-create",
|
|
1376
|
+
description: "POST /dnsProvider.create",
|
|
1377
|
+
tag: "dnsProvider",
|
|
1378
|
+
method: "POST",
|
|
1379
|
+
path: "/dnsProvider.create",
|
|
1380
|
+
schema: z.object({ "name": z.string().regex(new RegExp("^[a-zA-Z0-9_-]+$")).min(1).max(64), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
1381
|
+
const schemas = [z.object({ "providerType": z.literal("cloudflare"), "apiToken": z.string().min(1) }), z.object({ "providerType": z.literal("route53"), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1) })];
|
|
1382
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1383
|
+
? {
|
|
1384
|
+
errors: [...errors, result.error],
|
|
1385
|
+
failed: failed + 1,
|
|
1386
|
+
}
|
|
1387
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
1388
|
+
const passed = schemas.length - failed;
|
|
1389
|
+
if (passed !== 1) {
|
|
1390
|
+
ctx.addIssue(errors.length ? {
|
|
1391
|
+
path: ctx.path,
|
|
1392
|
+
code: "invalid_union",
|
|
1393
|
+
unionErrors: errors,
|
|
1394
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1395
|
+
} : {
|
|
1396
|
+
path: ctx.path,
|
|
1397
|
+
code: "custom",
|
|
1398
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
})) }),
|
|
1402
|
+
annotations: {
|
|
1403
|
+
title: "DnsProvider Create",
|
|
1404
|
+
...{ "openWorldHint": true },
|
|
1405
|
+
},
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
name: "dnsProvider-update",
|
|
1409
|
+
description: "POST /dnsProvider.update",
|
|
1410
|
+
tag: "dnsProvider",
|
|
1411
|
+
method: "POST",
|
|
1412
|
+
path: "/dnsProvider.update",
|
|
1413
|
+
schema: z.object({ "dnsProviderId": z.string().min(1), "name": z.string().regex(new RegExp("^[a-zA-Z0-9_-]+$")).min(1).max(64), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
1414
|
+
const schemas = [z.object({ "providerType": z.literal("cloudflare"), "apiToken": z.string().min(1) }), z.object({ "providerType": z.literal("route53"), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1) })];
|
|
1415
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1416
|
+
? {
|
|
1417
|
+
errors: [...errors, result.error],
|
|
1418
|
+
failed: failed + 1,
|
|
1419
|
+
}
|
|
1420
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
1421
|
+
const passed = schemas.length - failed;
|
|
1422
|
+
if (passed !== 1) {
|
|
1423
|
+
ctx.addIssue(errors.length ? {
|
|
1424
|
+
path: ctx.path,
|
|
1425
|
+
code: "invalid_union",
|
|
1426
|
+
unionErrors: errors,
|
|
1427
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1428
|
+
} : {
|
|
1429
|
+
path: ctx.path,
|
|
1430
|
+
code: "custom",
|
|
1431
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
})) }),
|
|
1435
|
+
annotations: {
|
|
1436
|
+
title: "DnsProvider Update",
|
|
1437
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
name: "dnsProvider-remove",
|
|
1442
|
+
description: "POST /dnsProvider.remove",
|
|
1443
|
+
tag: "dnsProvider",
|
|
1444
|
+
method: "POST",
|
|
1445
|
+
path: "/dnsProvider.remove",
|
|
1446
|
+
schema: z.object({ "dnsProviderId": z.string().min(1) }),
|
|
1447
|
+
annotations: {
|
|
1448
|
+
title: "DnsProvider Remove",
|
|
1449
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1450
|
+
},
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
name: "dnsProvider-all",
|
|
1454
|
+
description: "GET /dnsProvider.all",
|
|
1455
|
+
tag: "dnsProvider",
|
|
1456
|
+
method: "GET",
|
|
1457
|
+
path: "/dnsProvider.all",
|
|
1458
|
+
schema: z.object({}),
|
|
1459
|
+
annotations: {
|
|
1460
|
+
title: "DnsProvider All",
|
|
1461
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1462
|
+
},
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "dnsProvider-one",
|
|
1466
|
+
description: "GET /dnsProvider.one",
|
|
1467
|
+
tag: "dnsProvider",
|
|
1468
|
+
method: "GET",
|
|
1469
|
+
path: "/dnsProvider.one",
|
|
1470
|
+
schema: z.object({ "dnsProviderId": z.string().min(1) }),
|
|
1471
|
+
annotations: {
|
|
1472
|
+
title: "DnsProvider One",
|
|
1473
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1474
|
+
},
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
name: "dnsProvider-testConnection",
|
|
1478
|
+
description: "POST /dnsProvider.testConnection",
|
|
1479
|
+
tag: "dnsProvider",
|
|
1480
|
+
method: "POST",
|
|
1481
|
+
path: "/dnsProvider.testConnection",
|
|
1482
|
+
schema: z.object({ "dnsProviderId": z.string().min(1).optional(), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
1483
|
+
const schemas = [z.object({ "providerType": z.literal("cloudflare"), "apiToken": z.string().min(1) }), z.object({ "providerType": z.literal("route53"), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1) })];
|
|
1484
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1485
|
+
? {
|
|
1486
|
+
errors: [...errors, result.error],
|
|
1487
|
+
failed: failed + 1,
|
|
1488
|
+
}
|
|
1489
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
1490
|
+
const passed = schemas.length - failed;
|
|
1491
|
+
if (passed !== 1) {
|
|
1492
|
+
ctx.addIssue(errors.length ? {
|
|
1493
|
+
path: ctx.path,
|
|
1494
|
+
code: "invalid_union",
|
|
1495
|
+
unionErrors: errors,
|
|
1496
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1497
|
+
} : {
|
|
1498
|
+
path: ctx.path,
|
|
1499
|
+
code: "custom",
|
|
1500
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
})).optional() }),
|
|
1504
|
+
annotations: {
|
|
1505
|
+
title: "DnsProvider TestConnection",
|
|
1506
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1507
|
+
},
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
name: "dnsProvider-listZones",
|
|
1511
|
+
description: "GET /dnsProvider.listZones",
|
|
1512
|
+
tag: "dnsProvider",
|
|
1513
|
+
method: "GET",
|
|
1514
|
+
path: "/dnsProvider.listZones",
|
|
1515
|
+
schema: z.object({ "dnsProviderId": z.string().min(1) }),
|
|
1516
|
+
annotations: {
|
|
1517
|
+
title: "DnsProvider ListZones",
|
|
1518
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1519
|
+
},
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
name: "dnsProvider-listRecords",
|
|
1523
|
+
description: "GET /dnsProvider.listRecords",
|
|
1524
|
+
tag: "dnsProvider",
|
|
1525
|
+
method: "GET",
|
|
1526
|
+
path: "/dnsProvider.listRecords",
|
|
1527
|
+
schema: z.object({ "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1) }),
|
|
1528
|
+
annotations: {
|
|
1529
|
+
title: "DnsProvider ListRecords",
|
|
1530
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1531
|
+
},
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
name: "dnsProvider-createRecord",
|
|
1535
|
+
description: "POST /dnsProvider.createRecord",
|
|
1536
|
+
tag: "dnsProvider",
|
|
1537
|
+
method: "POST",
|
|
1538
|
+
path: "/dnsProvider.createRecord",
|
|
1539
|
+
schema: z.object({ "type": z.enum(["A", "CNAME"]), "name": z.string().min(1), "content": z.string().min(1), "ttl": z.number().int().gt(0).lte(9007199254740991).optional(), "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1) }),
|
|
1540
|
+
annotations: {
|
|
1541
|
+
title: "DnsProvider CreateRecord",
|
|
1542
|
+
...{ "openWorldHint": true },
|
|
1543
|
+
},
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
name: "dnsProvider-updateRecord",
|
|
1547
|
+
description: "POST /dnsProvider.updateRecord",
|
|
1548
|
+
tag: "dnsProvider",
|
|
1549
|
+
method: "POST",
|
|
1550
|
+
path: "/dnsProvider.updateRecord",
|
|
1551
|
+
schema: z.object({ "type": z.enum(["A", "CNAME"]), "name": z.string().min(1), "content": z.string().min(1), "ttl": z.number().int().gt(0).lte(9007199254740991).optional(), "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1), "recordId": z.string().min(1) }),
|
|
1552
|
+
annotations: {
|
|
1553
|
+
title: "DnsProvider UpdateRecord",
|
|
1554
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1555
|
+
},
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
name: "dnsProvider-deleteRecord",
|
|
1559
|
+
description: "POST /dnsProvider.deleteRecord",
|
|
1560
|
+
tag: "dnsProvider",
|
|
1561
|
+
method: "POST",
|
|
1562
|
+
path: "/dnsProvider.deleteRecord",
|
|
1563
|
+
schema: z.object({ "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1), "recordId": z.string().min(1) }),
|
|
1564
|
+
annotations: {
|
|
1565
|
+
title: "DnsProvider DeleteRecord",
|
|
1566
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1567
|
+
},
|
|
1568
|
+
},
|
|
1278
1569
|
{
|
|
1279
1570
|
name: "docker-getContainers",
|
|
1280
1571
|
description: "GET /docker.getContainers",
|
|
@@ -1287,6 +1578,18 @@ export const generatedTools = [
|
|
|
1287
1578
|
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1288
1579
|
},
|
|
1289
1580
|
},
|
|
1581
|
+
{
|
|
1582
|
+
name: "docker-getServerHealth",
|
|
1583
|
+
description: "GET /docker.getServerHealth",
|
|
1584
|
+
tag: "docker",
|
|
1585
|
+
method: "GET",
|
|
1586
|
+
path: "/docker.getServerHealth",
|
|
1587
|
+
schema: z.object({ "serverId": z.string().optional(), "sinceHours": z.number().int().gte(1).lte(168).optional() }),
|
|
1588
|
+
annotations: {
|
|
1589
|
+
title: "Docker GetServerHealth",
|
|
1590
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1591
|
+
},
|
|
1592
|
+
},
|
|
1290
1593
|
{
|
|
1291
1594
|
name: "docker-restartContainer",
|
|
1292
1595
|
description: "POST /docker.restartContainer",
|
|
@@ -1419,6 +1722,234 @@ export const generatedTools = [
|
|
|
1419
1722
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1420
1723
|
},
|
|
1421
1724
|
},
|
|
1725
|
+
{
|
|
1726
|
+
name: "docker-listContainerFiles",
|
|
1727
|
+
description: "GET /docker.listContainerFiles",
|
|
1728
|
+
tag: "docker",
|
|
1729
|
+
method: "GET",
|
|
1730
|
+
path: "/docker.listContainerFiles",
|
|
1731
|
+
schema: z.object({ "containerId": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1732
|
+
annotations: {
|
|
1733
|
+
title: "Docker ListContainerFiles",
|
|
1734
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1735
|
+
},
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
name: "docker-readContainerFile",
|
|
1739
|
+
description: "GET /docker.readContainerFile",
|
|
1740
|
+
tag: "docker",
|
|
1741
|
+
method: "GET",
|
|
1742
|
+
path: "/docker.readContainerFile",
|
|
1743
|
+
schema: z.object({ "containerId": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1744
|
+
annotations: {
|
|
1745
|
+
title: "Docker ReadContainerFile",
|
|
1746
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1747
|
+
},
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
name: "docker-writeContainerFile",
|
|
1751
|
+
description: "POST /docker.writeContainerFile",
|
|
1752
|
+
tag: "docker",
|
|
1753
|
+
method: "POST",
|
|
1754
|
+
path: "/docker.writeContainerFile",
|
|
1755
|
+
schema: z.object({ "containerId": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "content": z.string(), "serverId": z.string().optional() }),
|
|
1756
|
+
annotations: {
|
|
1757
|
+
title: "Docker WriteContainerFile",
|
|
1758
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1759
|
+
},
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
name: "docker-deleteContainerFile",
|
|
1763
|
+
description: "POST /docker.deleteContainerFile",
|
|
1764
|
+
tag: "docker",
|
|
1765
|
+
method: "POST",
|
|
1766
|
+
path: "/docker.deleteContainerFile",
|
|
1767
|
+
schema: z.object({ "containerId": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1768
|
+
annotations: {
|
|
1769
|
+
title: "Docker DeleteContainerFile",
|
|
1770
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1771
|
+
},
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
name: "docker-getEvents",
|
|
1775
|
+
description: "GET /docker.getEvents",
|
|
1776
|
+
tag: "docker",
|
|
1777
|
+
method: "GET",
|
|
1778
|
+
path: "/docker.getEvents",
|
|
1779
|
+
schema: z.object({ "serverId": z.string().optional(), "minutes": z.number().gte(1).lte(1440).default(15) }),
|
|
1780
|
+
annotations: {
|
|
1781
|
+
title: "Docker GetEvents",
|
|
1782
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1783
|
+
},
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
name: "dockerDiskUsage-getDiskUsage",
|
|
1787
|
+
description: "GET /dockerDiskUsage.getDiskUsage",
|
|
1788
|
+
tag: "dockerDiskUsage",
|
|
1789
|
+
method: "GET",
|
|
1790
|
+
path: "/dockerDiskUsage.getDiskUsage",
|
|
1791
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1792
|
+
annotations: {
|
|
1793
|
+
title: "DockerDiskUsage GetDiskUsage",
|
|
1794
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1795
|
+
},
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
name: "dockerDiskUsage-getBuildCache",
|
|
1799
|
+
description: "GET /dockerDiskUsage.getBuildCache",
|
|
1800
|
+
tag: "dockerDiskUsage",
|
|
1801
|
+
method: "GET",
|
|
1802
|
+
path: "/dockerDiskUsage.getBuildCache",
|
|
1803
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1804
|
+
annotations: {
|
|
1805
|
+
title: "DockerDiskUsage GetBuildCache",
|
|
1806
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1807
|
+
},
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
name: "dockerDiskUsage-pruneBuildCache",
|
|
1811
|
+
description: "POST /dockerDiskUsage.pruneBuildCache",
|
|
1812
|
+
tag: "dockerDiskUsage",
|
|
1813
|
+
method: "POST",
|
|
1814
|
+
path: "/dockerDiskUsage.pruneBuildCache",
|
|
1815
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1816
|
+
annotations: {
|
|
1817
|
+
title: "DockerDiskUsage PruneBuildCache",
|
|
1818
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1819
|
+
},
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
name: "dockerImage-getImages",
|
|
1823
|
+
description: "GET /dockerImage.getImages",
|
|
1824
|
+
tag: "dockerImage",
|
|
1825
|
+
method: "GET",
|
|
1826
|
+
path: "/dockerImage.getImages",
|
|
1827
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1828
|
+
annotations: {
|
|
1829
|
+
title: "DockerImage GetImages",
|
|
1830
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1831
|
+
},
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
name: "dockerImage-getImageConfig",
|
|
1835
|
+
description: "GET /dockerImage.getImageConfig",
|
|
1836
|
+
tag: "dockerImage",
|
|
1837
|
+
method: "GET",
|
|
1838
|
+
path: "/dockerImage.getImageConfig",
|
|
1839
|
+
schema: z.object({ "imageRef": z.string().min(1), "serverId": z.string().optional() }),
|
|
1840
|
+
annotations: {
|
|
1841
|
+
title: "DockerImage GetImageConfig",
|
|
1842
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1843
|
+
},
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: "dockerImage-removeImage",
|
|
1847
|
+
description: "POST /dockerImage.removeImage",
|
|
1848
|
+
tag: "dockerImage",
|
|
1849
|
+
method: "POST",
|
|
1850
|
+
path: "/dockerImage.removeImage",
|
|
1851
|
+
schema: z.object({ "repository": z.string(), "tag": z.string(), "id": z.string().min(1), "force": z.boolean().optional(), "serverId": z.string().optional() }),
|
|
1852
|
+
annotations: {
|
|
1853
|
+
title: "DockerImage RemoveImage",
|
|
1854
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1855
|
+
},
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
name: "dockerVolume-getVolumes",
|
|
1859
|
+
description: "GET /dockerVolume.getVolumes",
|
|
1860
|
+
tag: "dockerVolume",
|
|
1861
|
+
method: "GET",
|
|
1862
|
+
path: "/dockerVolume.getVolumes",
|
|
1863
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1864
|
+
annotations: {
|
|
1865
|
+
title: "DockerVolume GetVolumes",
|
|
1866
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1867
|
+
},
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: "dockerVolume-getVolumesSize",
|
|
1871
|
+
description: "GET /dockerVolume.getVolumesSize",
|
|
1872
|
+
tag: "dockerVolume",
|
|
1873
|
+
method: "GET",
|
|
1874
|
+
path: "/dockerVolume.getVolumesSize",
|
|
1875
|
+
schema: z.object({ "serverId": z.string().optional() }),
|
|
1876
|
+
annotations: {
|
|
1877
|
+
title: "DockerVolume GetVolumesSize",
|
|
1878
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1879
|
+
},
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
name: "dockerVolume-listVolumeFiles",
|
|
1883
|
+
description: "GET /dockerVolume.listVolumeFiles",
|
|
1884
|
+
tag: "dockerVolume",
|
|
1885
|
+
method: "GET",
|
|
1886
|
+
path: "/dockerVolume.listVolumeFiles",
|
|
1887
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1888
|
+
annotations: {
|
|
1889
|
+
title: "DockerVolume ListVolumeFiles",
|
|
1890
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1891
|
+
},
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
name: "dockerVolume-readVolumeFile",
|
|
1895
|
+
description: "GET /dockerVolume.readVolumeFile",
|
|
1896
|
+
tag: "dockerVolume",
|
|
1897
|
+
method: "GET",
|
|
1898
|
+
path: "/dockerVolume.readVolumeFile",
|
|
1899
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1900
|
+
annotations: {
|
|
1901
|
+
title: "DockerVolume ReadVolumeFile",
|
|
1902
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1903
|
+
},
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
name: "dockerVolume-writeVolumeFile",
|
|
1907
|
+
description: "POST /dockerVolume.writeVolumeFile",
|
|
1908
|
+
tag: "dockerVolume",
|
|
1909
|
+
method: "POST",
|
|
1910
|
+
path: "/dockerVolume.writeVolumeFile",
|
|
1911
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "content": z.string(), "serverId": z.string().optional() }),
|
|
1912
|
+
annotations: {
|
|
1913
|
+
title: "DockerVolume WriteVolumeFile",
|
|
1914
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1915
|
+
},
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
name: "dockerVolume-deleteVolumeFile",
|
|
1919
|
+
description: "POST /dockerVolume.deleteVolumeFile",
|
|
1920
|
+
tag: "dockerVolume",
|
|
1921
|
+
method: "POST",
|
|
1922
|
+
path: "/dockerVolume.deleteVolumeFile",
|
|
1923
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "path": z.string().min(1).max(4096), "serverId": z.string().optional() }),
|
|
1924
|
+
annotations: {
|
|
1925
|
+
title: "DockerVolume DeleteVolumeFile",
|
|
1926
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1927
|
+
},
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
name: "dockerVolume-getVolumeConfig",
|
|
1931
|
+
description: "GET /dockerVolume.getVolumeConfig",
|
|
1932
|
+
tag: "dockerVolume",
|
|
1933
|
+
method: "GET",
|
|
1934
|
+
path: "/dockerVolume.getVolumeConfig",
|
|
1935
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "serverId": z.string().optional() }),
|
|
1936
|
+
annotations: {
|
|
1937
|
+
title: "DockerVolume GetVolumeConfig",
|
|
1938
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
1939
|
+
},
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
name: "dockerVolume-removeVolume",
|
|
1943
|
+
description: "POST /dockerVolume.removeVolume",
|
|
1944
|
+
tag: "dockerVolume",
|
|
1945
|
+
method: "POST",
|
|
1946
|
+
path: "/dockerVolume.removeVolume",
|
|
1947
|
+
schema: z.object({ "volumeName": z.string().regex(new RegExp("^[a-zA-Z0-9.\\-_]+$")).min(1), "serverId": z.string().optional() }),
|
|
1948
|
+
annotations: {
|
|
1949
|
+
title: "DockerVolume RemoveVolume",
|
|
1950
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
1951
|
+
},
|
|
1952
|
+
},
|
|
1422
1953
|
{
|
|
1423
1954
|
name: "domain-create",
|
|
1424
1955
|
description: "POST /domain.create",
|
|
@@ -1485,12 +2016,24 @@ export const generatedTools = [
|
|
|
1485
2016
|
tag: "domain",
|
|
1486
2017
|
method: "POST",
|
|
1487
2018
|
path: "/domain.update",
|
|
1488
|
-
schema: z.object({ "host": z.string().min(1), "path": z.union([z.string().min(1), z.null()]).optional(), "port": z.union([z.number().gte(1).lte(65535), z.null()]).optional(), "customEntrypoint": z.union([z.string(), z.null()]).optional(), "https": z.boolean().optional(), "certificateType": z.enum(["letsencrypt", "none", "custom"]).optional(), "customCertResolver": z.union([z.string(), z.null()]).optional(), "serviceName": z.union([z.string(), z.null()]).optional(), "domainType": z.union([z.enum(["compose", "application", "preview"]), z.null()]).optional(), "internalPath": z.union([z.string(), z.null()]).optional(), "stripPath": z.boolean().optional(), "middlewares": z.union([z.array(z.string()), z.null()]).optional(), "forwardAuthEnabled": z.boolean().optional(), "domainId": z.string() }),
|
|
2019
|
+
schema: z.object({ "host": z.string().min(1), "path": z.union([z.string().min(1), z.null()]).optional(), "port": z.union([z.number().gte(1).lte(65535), z.null()]).optional(), "customEntrypoint": z.union([z.string(), z.null()]).optional(), "https": z.boolean().optional(), "certificateType": z.enum(["letsencrypt", "none", "custom"]).optional(), "customCertResolver": z.union([z.string(), z.null()]).optional(), "serviceName": z.union([z.string(), z.null()]).optional(), "domainType": z.union([z.enum(["compose", "application", "preview"]), z.null()]).optional(), "internalPath": z.union([z.string(), z.null()]).optional(), "stripPath": z.boolean().optional(), "middlewares": z.union([z.array(z.string()), z.null()]).optional(), "forwardAuthEnabled": z.boolean().optional(), "enabled": z.boolean().optional(), "domainId": z.string() }),
|
|
1489
2020
|
annotations: {
|
|
1490
2021
|
title: "Domain Update",
|
|
1491
2022
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
1492
2023
|
},
|
|
1493
2024
|
},
|
|
2025
|
+
{
|
|
2026
|
+
name: "domain-toggleEnable",
|
|
2027
|
+
description: "POST /domain.toggleEnable",
|
|
2028
|
+
tag: "domain",
|
|
2029
|
+
method: "POST",
|
|
2030
|
+
path: "/domain.toggleEnable",
|
|
2031
|
+
schema: z.object({ "domainId": z.string().min(1) }),
|
|
2032
|
+
annotations: {
|
|
2033
|
+
title: "Domain ToggleEnable",
|
|
2034
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
2035
|
+
},
|
|
2036
|
+
},
|
|
1494
2037
|
{
|
|
1495
2038
|
name: "domain-one",
|
|
1496
2039
|
description: "GET /domain.one",
|
|
@@ -1953,7 +2496,7 @@ export const generatedTools = [
|
|
|
1953
2496
|
tag: "libsql",
|
|
1954
2497
|
method: "POST",
|
|
1955
2498
|
path: "/libsql.update",
|
|
1956
|
-
schema: z.object({ "libsqlId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().min(1).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "sqldNode": z.enum(["primary", "replica"]).optional(), "sqldPrimaryUrl": z.union([z.union([z.string(), z.null()]), z.null()]).optional(), "enableNamespaces": z.boolean().default(false), "dockerImage": z.string().default("ghcr.io/tursodatabase/libsql-server:v0.24.32"), "command": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "externalGRPCPort": z.union([z.number(), z.null()]).optional(), "externalAdminPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
2499
|
+
schema: z.object({ "libsqlId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().min(1).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "sqldNode": z.enum(["primary", "replica"]).optional(), "sqldPrimaryUrl": z.union([z.union([z.string(), z.null()]), z.null()]).optional(), "enableNamespaces": z.boolean().default(false), "dockerImage": z.string().default("ghcr.io/tursodatabase/libsql-server:v0.24.32"), "command": z.union([z.string(), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "externalGRPCPort": z.union([z.number(), z.null()]).optional(), "externalAdminPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional(), "createdAt": z.string().optional(), "environmentId": z.string().optional() }),
|
|
1957
2500
|
annotations: {
|
|
1958
2501
|
title: "Libsql Update",
|
|
1959
2502
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -2121,7 +2664,7 @@ export const generatedTools = [
|
|
|
2121
2664
|
tag: "mariadb",
|
|
2122
2665
|
method: "POST",
|
|
2123
2666
|
path: "/mariadb.update",
|
|
2124
|
-
schema: z.object({ "mariadbId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "databaseRootPassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
2667
|
+
schema: z.object({ "mariadbId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "databaseRootPassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "createdAt": z.string().optional(), "environmentId": z.string().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
2125
2668
|
annotations: {
|
|
2126
2669
|
title: "Mariadb Update",
|
|
2127
2670
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -2313,7 +2856,7 @@ export const generatedTools = [
|
|
|
2313
2856
|
tag: "mongo",
|
|
2314
2857
|
method: "POST",
|
|
2315
2858
|
path: "/mongo.update",
|
|
2316
|
-
schema: z.object({ "mongoId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
2859
|
+
schema: z.object({ "mongoId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "createdAt": z.string().optional(), "environmentId": z.string().optional(), "replicaSets": z.boolean().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
2317
2860
|
annotations: {
|
|
2318
2861
|
title: "Mongo Update",
|
|
2319
2862
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -2577,7 +3120,7 @@ export const generatedTools = [
|
|
|
2577
3120
|
tag: "mysql",
|
|
2578
3121
|
method: "POST",
|
|
2579
3122
|
path: "/mysql.update",
|
|
2580
|
-
schema: z.object({ "mysqlId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "databaseRootPassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
3123
|
+
schema: z.object({ "mysqlId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "databaseRootPassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "createdAt": z.string().optional(), "environmentId": z.string().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
2581
3124
|
annotations: {
|
|
2582
3125
|
title: "Mysql Update",
|
|
2583
3126
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -2985,7 +3528,7 @@ export const generatedTools = [
|
|
|
2985
3528
|
tag: "notification",
|
|
2986
3529
|
method: "POST",
|
|
2987
3530
|
path: "/notification.createCustom",
|
|
2988
|
-
schema: z.object({ "appBuildError": z.boolean().optional(), "databaseBackup": z.boolean().optional(), "dokployBackup": z.boolean().optional(), "volumeBackup": z.boolean().optional(), "dokployRestart": z.boolean().optional(), "name": z.string(), "appDeploy": z.boolean().optional(), "dockerCleanup": z.boolean().optional(), "serverThreshold": z.boolean().optional(), "endpoint": z.string().min(1), "headers": z.record(z.string()
|
|
3531
|
+
schema: z.object({ "appBuildError": z.boolean().optional(), "databaseBackup": z.boolean().optional(), "dokployBackup": z.boolean().optional(), "volumeBackup": z.boolean().optional(), "dokployRestart": z.boolean().optional(), "name": z.string(), "appDeploy": z.boolean().optional(), "dockerCleanup": z.boolean().optional(), "serverThreshold": z.boolean().optional(), "endpoint": z.string().min(1), "headers": z.record(z.string()).optional() }),
|
|
2989
3532
|
annotations: {
|
|
2990
3533
|
title: "Notification CreateCustom",
|
|
2991
3534
|
...{ "openWorldHint": true },
|
|
@@ -2997,7 +3540,7 @@ export const generatedTools = [
|
|
|
2997
3540
|
tag: "notification",
|
|
2998
3541
|
method: "POST",
|
|
2999
3542
|
path: "/notification.updateCustom",
|
|
3000
|
-
schema: z.object({ "appBuildError": z.boolean().optional(), "databaseBackup": z.boolean().optional(), "dokployBackup": z.boolean().optional(), "volumeBackup": z.boolean().optional(), "dokployRestart": z.boolean().optional(), "name": z.string().optional(), "appDeploy": z.boolean().optional(), "dockerCleanup": z.boolean().optional(), "serverThreshold": z.boolean().optional(), "endpoint": z.string().min(1).optional(), "headers": z.record(z.string()
|
|
3543
|
+
schema: z.object({ "appBuildError": z.boolean().optional(), "databaseBackup": z.boolean().optional(), "dokployBackup": z.boolean().optional(), "volumeBackup": z.boolean().optional(), "dokployRestart": z.boolean().optional(), "name": z.string().optional(), "appDeploy": z.boolean().optional(), "dockerCleanup": z.boolean().optional(), "serverThreshold": z.boolean().optional(), "endpoint": z.string().min(1).optional(), "headers": z.record(z.string()).optional(), "notificationId": z.string().min(1), "customId": z.string().min(1), "organizationId": z.string().optional() }),
|
|
3001
3544
|
annotations: {
|
|
3002
3545
|
title: "Notification UpdateCustom",
|
|
3003
3546
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -3009,7 +3552,7 @@ export const generatedTools = [
|
|
|
3009
3552
|
tag: "notification",
|
|
3010
3553
|
method: "POST",
|
|
3011
3554
|
path: "/notification.testCustomConnection",
|
|
3012
|
-
schema: z.object({ "endpoint": z.string().min(1), "headers": z.record(z.string()
|
|
3555
|
+
schema: z.object({ "endpoint": z.string().min(1), "headers": z.record(z.string()).optional() }),
|
|
3013
3556
|
annotations: {
|
|
3014
3557
|
title: "Notification TestCustomConnection",
|
|
3015
3558
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -3309,7 +3852,7 @@ export const generatedTools = [
|
|
|
3309
3852
|
tag: "postgres",
|
|
3310
3853
|
method: "POST",
|
|
3311
3854
|
path: "/postgres.update",
|
|
3312
|
-
schema: z.object({ "postgresId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "description": z.union([z.string(), z.null()]).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
3855
|
+
schema: z.object({ "postgresId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "databaseName": z.string().min(1).optional(), "databaseUser": z.string().min(1).optional(), "databasePassword": z.string().regex(new RegExp("^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$")).optional(), "description": z.union([z.string(), z.null()]).optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "createdAt": z.string().optional(), "environmentId": z.string().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
3313
3856
|
annotations: {
|
|
3314
3857
|
title: "Postgres Update",
|
|
3315
3858
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -3705,7 +4248,7 @@ export const generatedTools = [
|
|
|
3705
4248
|
tag: "redis",
|
|
3706
4249
|
method: "POST",
|
|
3707
4250
|
path: "/redis.update",
|
|
3708
|
-
schema: z.object({ "redisId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databasePassword": z.string().optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "createdAt": z.string().optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()
|
|
4251
|
+
schema: z.object({ "redisId": z.string().min(1), "name": z.string().min(1).optional(), "appName": z.string().regex(new RegExp("^[a-zA-Z0-9._-]+$")).min(1).max(63).optional(), "description": z.union([z.string(), z.null()]).optional(), "databasePassword": z.string().optional(), "dockerImage": z.string().optional(), "command": z.union([z.string(), z.null()]).optional(), "args": z.union([z.array(z.string()), z.null()]).optional(), "env": z.union([z.string(), z.null()]).optional(), "memoryReservation": z.union([z.string(), z.null()]).optional(), "memoryLimit": z.union([z.string(), z.null()]).optional(), "cpuReservation": z.union([z.string(), z.null()]).optional(), "cpuLimit": z.union([z.string(), z.null()]).optional(), "externalPort": z.union([z.number(), z.null()]).optional(), "createdAt": z.string().optional(), "applicationStatus": z.enum(["idle", "running", "done", "error"]).optional(), "healthCheckSwarm": z.union([z.union([z.object({ "Test": z.array(z.string()).optional(), "Interval": z.number().optional(), "Timeout": z.number().optional(), "StartPeriod": z.number().optional(), "Retries": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "restartPolicySwarm": z.union([z.union([z.object({ "Condition": z.string().optional(), "Delay": z.number().optional(), "MaxAttempts": z.number().optional(), "Window": z.number().optional() }).strict(), z.null()]), z.null()]).optional(), "placementSwarm": z.union([z.union([z.object({ "Constraints": z.array(z.string()).optional(), "Preferences": z.array(z.object({ "Spread": z.object({ "SpreadDescriptor": z.string() }) }).strict()).optional(), "MaxReplicas": z.number().optional(), "Platforms": z.array(z.object({ "Architecture": z.string(), "OS": z.string() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "updateConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "rollbackConfigSwarm": z.union([z.union([z.object({ "Parallelism": z.number(), "Delay": z.number().optional(), "FailureAction": z.string().optional(), "Monitor": z.number().optional(), "MaxFailureRatio": z.number().optional(), "Order": z.string() }).strict(), z.null()]), z.null()]).optional(), "modeSwarm": z.union([z.union([z.object({ "Replicated": z.object({ "Replicas": z.number().optional() }).strict().optional(), "Global": z.object({}).optional(), "ReplicatedJob": z.object({ "MaxConcurrent": z.number().optional(), "TotalCompletions": z.number().optional() }).strict().optional(), "GlobalJob": z.object({}).optional() }).strict(), z.null()]), z.null()]).optional(), "labelsSwarm": z.union([z.union([z.record(z.string()), z.null()]), z.null()]).optional(), "networkSwarm": z.union([z.union([z.array(z.object({ "Target": z.string().optional(), "Aliases": z.array(z.string()).optional(), "DriverOpts": z.record(z.string()).optional() }).strict()), z.null()]), z.null()]).optional(), "stopGracePeriodSwarm": z.union([z.union([z.number(), z.null()]), z.null()]).optional(), "endpointSpecSwarm": z.union([z.union([z.object({ "Mode": z.string().optional(), "Ports": z.array(z.object({ "Protocol": z.string().optional(), "TargetPort": z.number().optional(), "PublishedPort": z.number().optional(), "PublishMode": z.string().optional() }).strict()).optional() }).strict(), z.null()]), z.null()]).optional(), "ulimitsSwarm": z.union([z.union([z.array(z.object({ "Name": z.string().min(1), "Soft": z.number().int().gte(-1).lte(9007199254740991), "Hard": z.number().int().gte(-1).lte(9007199254740991) }).strict()), z.null()]), z.null()]).optional(), "replicas": z.number().optional(), "environmentId": z.string().optional(), "networkIds": z.union([z.array(z.string()), z.null()]).optional(), "detachDokployNetwork": z.boolean().optional() }),
|
|
3709
4252
|
annotations: {
|
|
3710
4253
|
title: "Redis Update",
|
|
3711
4254
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -4143,30 +4686,6 @@ export const generatedTools = [
|
|
|
4143
4686
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
4144
4687
|
},
|
|
4145
4688
|
},
|
|
4146
|
-
{
|
|
4147
|
-
name: "settings-cleanRedis",
|
|
4148
|
-
description: "POST /settings.cleanRedis",
|
|
4149
|
-
tag: "settings",
|
|
4150
|
-
method: "POST",
|
|
4151
|
-
path: "/settings.cleanRedis",
|
|
4152
|
-
schema: z.object({}),
|
|
4153
|
-
annotations: {
|
|
4154
|
-
title: "Settings CleanRedis",
|
|
4155
|
-
...{ "idempotentHint": true, "openWorldHint": true },
|
|
4156
|
-
},
|
|
4157
|
-
},
|
|
4158
|
-
{
|
|
4159
|
-
name: "settings-reloadRedis",
|
|
4160
|
-
description: "POST /settings.reloadRedis",
|
|
4161
|
-
tag: "settings",
|
|
4162
|
-
method: "POST",
|
|
4163
|
-
path: "/settings.reloadRedis",
|
|
4164
|
-
schema: z.object({}),
|
|
4165
|
-
annotations: {
|
|
4166
|
-
title: "Settings ReloadRedis",
|
|
4167
|
-
...{ "idempotentHint": true, "openWorldHint": true },
|
|
4168
|
-
},
|
|
4169
|
-
},
|
|
4170
4689
|
{
|
|
4171
4690
|
name: "settings-cleanAllDeploymentQueue",
|
|
4172
4691
|
description: "POST /settings.cleanAllDeploymentQueue",
|
|
@@ -5055,6 +5574,18 @@ export const generatedTools = [
|
|
|
5055
5574
|
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5056
5575
|
},
|
|
5057
5576
|
},
|
|
5577
|
+
{
|
|
5578
|
+
name: "user-listPasskeys",
|
|
5579
|
+
description: "GET /user.listPasskeys",
|
|
5580
|
+
tag: "user",
|
|
5581
|
+
method: "GET",
|
|
5582
|
+
path: "/user.listPasskeys",
|
|
5583
|
+
schema: z.object({}),
|
|
5584
|
+
annotations: {
|
|
5585
|
+
title: "User ListPasskeys",
|
|
5586
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5587
|
+
},
|
|
5588
|
+
},
|
|
5058
5589
|
{
|
|
5059
5590
|
name: "user-haveRootAccess",
|
|
5060
5591
|
description: "GET /user.haveRootAccess",
|
|
@@ -5103,6 +5634,30 @@ export const generatedTools = [
|
|
|
5103
5634
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
5104
5635
|
},
|
|
5105
5636
|
},
|
|
5637
|
+
{
|
|
5638
|
+
name: "user-listSessions",
|
|
5639
|
+
description: "GET /user.listSessions",
|
|
5640
|
+
tag: "user",
|
|
5641
|
+
method: "GET",
|
|
5642
|
+
path: "/user.listSessions",
|
|
5643
|
+
schema: z.object({}),
|
|
5644
|
+
annotations: {
|
|
5645
|
+
title: "User ListSessions",
|
|
5646
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5647
|
+
},
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
name: "user-revokeSession",
|
|
5651
|
+
description: "POST /user.revokeSession",
|
|
5652
|
+
tag: "user",
|
|
5653
|
+
method: "POST",
|
|
5654
|
+
path: "/user.revokeSession",
|
|
5655
|
+
schema: z.object({ "sessionId": z.string() }),
|
|
5656
|
+
annotations: {
|
|
5657
|
+
title: "User RevokeSession",
|
|
5658
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
5659
|
+
},
|
|
5660
|
+
},
|
|
5106
5661
|
{
|
|
5107
5662
|
name: "user-getUserByToken",
|
|
5108
5663
|
description: "GET /user.getUserByToken",
|
|
@@ -5271,6 +5826,153 @@ export const generatedTools = [
|
|
|
5271
5826
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
5272
5827
|
},
|
|
5273
5828
|
},
|
|
5829
|
+
{
|
|
5830
|
+
name: "vaultProvider-create",
|
|
5831
|
+
description: "POST /vaultProvider.create",
|
|
5832
|
+
tag: "vaultProvider",
|
|
5833
|
+
method: "POST",
|
|
5834
|
+
path: "/vaultProvider.create",
|
|
5835
|
+
schema: z.object({ "name": z.string().regex(new RegExp("^[a-zA-Z0-9_-]+$")).min(1).max(64), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
5836
|
+
const schemas = [z.object({ "providerType": z.literal("hashicorp"), "url": z.string().url(), "token": z.string().min(1), "namespace": z.string().optional(), "mount": z.string().min(1).default("secret") }), z.object({ "providerType": z.literal("infisical"), "siteUrl": z.string().url().default("https://app.infisical.com"), "clientId": z.string().min(1), "clientSecret": z.string().min(1), "projectId": z.string().min(1), "environmentSlug": z.string().min(1), "secretPath": z.string().default("/") }), z.object({ "providerType": z.literal("aws"), "region": z.string().min(1), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1), "endpoint": z.string().url().optional() }), z.object({ "providerType": z.literal("doppler"), "serviceToken": z.string().min(1), "project": z.string().optional(), "config": z.string().optional() }), z.object({ "providerType": z.literal("azure"), "vaultUri": z.string().url(), "tenantId": z.string().min(1), "clientId": z.string().min(1), "clientSecret": z.string().min(1) }), z.object({ "providerType": z.literal("scaleway"), "region": z.string().min(1).default("fr-par"), "projectId": z.string().min(1), "secretKey": z.string().min(1), "apiUrl": z.string().url().default("https://api.scaleway.com") })];
|
|
5837
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5838
|
+
? {
|
|
5839
|
+
errors: [...errors, result.error],
|
|
5840
|
+
failed: failed + 1,
|
|
5841
|
+
}
|
|
5842
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
5843
|
+
const passed = schemas.length - failed;
|
|
5844
|
+
if (passed !== 1) {
|
|
5845
|
+
ctx.addIssue(errors.length ? {
|
|
5846
|
+
path: ctx.path,
|
|
5847
|
+
code: "invalid_union",
|
|
5848
|
+
unionErrors: errors,
|
|
5849
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5850
|
+
} : {
|
|
5851
|
+
path: ctx.path,
|
|
5852
|
+
code: "custom",
|
|
5853
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5854
|
+
});
|
|
5855
|
+
}
|
|
5856
|
+
})), "assignments": z.array(z.object({ "projectId": z.string().min(1), "environmentIds": z.array(z.string().min(1)).default([]) })) }),
|
|
5857
|
+
annotations: {
|
|
5858
|
+
title: "VaultProvider Create",
|
|
5859
|
+
...{ "openWorldHint": true },
|
|
5860
|
+
},
|
|
5861
|
+
},
|
|
5862
|
+
{
|
|
5863
|
+
name: "vaultProvider-update",
|
|
5864
|
+
description: "POST /vaultProvider.update",
|
|
5865
|
+
tag: "vaultProvider",
|
|
5866
|
+
method: "POST",
|
|
5867
|
+
path: "/vaultProvider.update",
|
|
5868
|
+
schema: z.object({ "vaultProviderId": z.string().min(1), "name": z.string().regex(new RegExp("^[a-zA-Z0-9_-]+$")).min(1).max(64), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
5869
|
+
const schemas = [z.object({ "providerType": z.literal("hashicorp"), "url": z.string().url(), "token": z.string().min(1), "namespace": z.string().optional(), "mount": z.string().min(1).default("secret") }), z.object({ "providerType": z.literal("infisical"), "siteUrl": z.string().url().default("https://app.infisical.com"), "clientId": z.string().min(1), "clientSecret": z.string().min(1), "projectId": z.string().min(1), "environmentSlug": z.string().min(1), "secretPath": z.string().default("/") }), z.object({ "providerType": z.literal("aws"), "region": z.string().min(1), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1), "endpoint": z.string().url().optional() }), z.object({ "providerType": z.literal("doppler"), "serviceToken": z.string().min(1), "project": z.string().optional(), "config": z.string().optional() }), z.object({ "providerType": z.literal("azure"), "vaultUri": z.string().url(), "tenantId": z.string().min(1), "clientId": z.string().min(1), "clientSecret": z.string().min(1) }), z.object({ "providerType": z.literal("scaleway"), "region": z.string().min(1).default("fr-par"), "projectId": z.string().min(1), "secretKey": z.string().min(1), "apiUrl": z.string().url().default("https://api.scaleway.com") })];
|
|
5870
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5871
|
+
? {
|
|
5872
|
+
errors: [...errors, result.error],
|
|
5873
|
+
failed: failed + 1,
|
|
5874
|
+
}
|
|
5875
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
5876
|
+
const passed = schemas.length - failed;
|
|
5877
|
+
if (passed !== 1) {
|
|
5878
|
+
ctx.addIssue(errors.length ? {
|
|
5879
|
+
path: ctx.path,
|
|
5880
|
+
code: "invalid_union",
|
|
5881
|
+
unionErrors: errors,
|
|
5882
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5883
|
+
} : {
|
|
5884
|
+
path: ctx.path,
|
|
5885
|
+
code: "custom",
|
|
5886
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5887
|
+
});
|
|
5888
|
+
}
|
|
5889
|
+
})), "assignments": z.array(z.object({ "projectId": z.string().min(1), "environmentIds": z.array(z.string().min(1)).default([]) })) }),
|
|
5890
|
+
annotations: {
|
|
5891
|
+
title: "VaultProvider Update",
|
|
5892
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
5893
|
+
},
|
|
5894
|
+
},
|
|
5895
|
+
{
|
|
5896
|
+
name: "vaultProvider-remove",
|
|
5897
|
+
description: "POST /vaultProvider.remove",
|
|
5898
|
+
tag: "vaultProvider",
|
|
5899
|
+
method: "POST",
|
|
5900
|
+
path: "/vaultProvider.remove",
|
|
5901
|
+
schema: z.object({ "vaultProviderId": z.string().min(1) }),
|
|
5902
|
+
annotations: {
|
|
5903
|
+
title: "VaultProvider Remove",
|
|
5904
|
+
...{ "destructiveHint": true, "openWorldHint": true },
|
|
5905
|
+
},
|
|
5906
|
+
},
|
|
5907
|
+
{
|
|
5908
|
+
name: "vaultProvider-all",
|
|
5909
|
+
description: "GET /vaultProvider.all",
|
|
5910
|
+
tag: "vaultProvider",
|
|
5911
|
+
method: "GET",
|
|
5912
|
+
path: "/vaultProvider.all",
|
|
5913
|
+
schema: z.object({}),
|
|
5914
|
+
annotations: {
|
|
5915
|
+
title: "VaultProvider All",
|
|
5916
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5917
|
+
},
|
|
5918
|
+
},
|
|
5919
|
+
{
|
|
5920
|
+
name: "vaultProvider-one",
|
|
5921
|
+
description: "GET /vaultProvider.one",
|
|
5922
|
+
tag: "vaultProvider",
|
|
5923
|
+
method: "GET",
|
|
5924
|
+
path: "/vaultProvider.one",
|
|
5925
|
+
schema: z.object({ "vaultProviderId": z.string().min(1) }),
|
|
5926
|
+
annotations: {
|
|
5927
|
+
title: "VaultProvider One",
|
|
5928
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5929
|
+
},
|
|
5930
|
+
},
|
|
5931
|
+
{
|
|
5932
|
+
name: "vaultProvider-testConnection",
|
|
5933
|
+
description: "POST /vaultProvider.testConnection",
|
|
5934
|
+
tag: "vaultProvider",
|
|
5935
|
+
method: "POST",
|
|
5936
|
+
path: "/vaultProvider.testConnection",
|
|
5937
|
+
schema: z.object({ "vaultProviderId": z.string().min(1).optional(), "config": z.record(z.any()).and(z.any().superRefine((x, ctx) => {
|
|
5938
|
+
const schemas = [z.object({ "providerType": z.literal("hashicorp"), "url": z.string().url(), "token": z.string().min(1), "namespace": z.string().optional(), "mount": z.string().min(1).default("secret") }), z.object({ "providerType": z.literal("infisical"), "siteUrl": z.string().url().default("https://app.infisical.com"), "clientId": z.string().min(1), "clientSecret": z.string().min(1), "projectId": z.string().min(1), "environmentSlug": z.string().min(1), "secretPath": z.string().default("/") }), z.object({ "providerType": z.literal("aws"), "region": z.string().min(1), "accessKeyId": z.string().min(1), "secretAccessKey": z.string().min(1), "endpoint": z.string().url().optional() }), z.object({ "providerType": z.literal("doppler"), "serviceToken": z.string().min(1), "project": z.string().optional(), "config": z.string().optional() }), z.object({ "providerType": z.literal("azure"), "vaultUri": z.string().url(), "tenantId": z.string().min(1), "clientId": z.string().min(1), "clientSecret": z.string().min(1) }), z.object({ "providerType": z.literal("scaleway"), "region": z.string().min(1).default("fr-par"), "projectId": z.string().min(1), "secretKey": z.string().min(1), "apiUrl": z.string().url().default("https://api.scaleway.com") })];
|
|
5939
|
+
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5940
|
+
? {
|
|
5941
|
+
errors: [...errors, result.error],
|
|
5942
|
+
failed: failed + 1,
|
|
5943
|
+
}
|
|
5944
|
+
: { errors, failed })(schema.safeParse(x)), { errors: [], failed: 0 });
|
|
5945
|
+
const passed = schemas.length - failed;
|
|
5946
|
+
if (passed !== 1) {
|
|
5947
|
+
ctx.addIssue(errors.length ? {
|
|
5948
|
+
path: ctx.path,
|
|
5949
|
+
code: "invalid_union",
|
|
5950
|
+
unionErrors: errors,
|
|
5951
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5952
|
+
} : {
|
|
5953
|
+
path: ctx.path,
|
|
5954
|
+
code: "custom",
|
|
5955
|
+
message: "Invalid input: Should pass single schema. Passed " + passed,
|
|
5956
|
+
});
|
|
5957
|
+
}
|
|
5958
|
+
})).optional() }),
|
|
5959
|
+
annotations: {
|
|
5960
|
+
title: "VaultProvider TestConnection",
|
|
5961
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
5962
|
+
},
|
|
5963
|
+
},
|
|
5964
|
+
{
|
|
5965
|
+
name: "vaultProvider-listSecretNames",
|
|
5966
|
+
description: "GET /vaultProvider.listSecretNames",
|
|
5967
|
+
tag: "vaultProvider",
|
|
5968
|
+
method: "GET",
|
|
5969
|
+
path: "/vaultProvider.listSecretNames",
|
|
5970
|
+
schema: z.object({ "vaultProviderId": z.string().min(1), "projectId": z.string().min(1), "environmentId": z.string().optional() }),
|
|
5971
|
+
annotations: {
|
|
5972
|
+
title: "VaultProvider ListSecretNames",
|
|
5973
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
5974
|
+
},
|
|
5975
|
+
},
|
|
5274
5976
|
{
|
|
5275
5977
|
name: "ai-one",
|
|
5276
5978
|
description: "GET /ai.one",
|
|
@@ -5481,7 +6183,7 @@ export const generatedTools = [
|
|
|
5481
6183
|
tag: "organization",
|
|
5482
6184
|
method: "POST",
|
|
5483
6185
|
path: "/organization.update",
|
|
5484
|
-
schema: z.object({ "organizationId": z.string(), "name": z.string(), "logo": z.string().optional() }),
|
|
6186
|
+
schema: z.object({ "organizationId": z.string(), "name": z.string(), "logo": z.string().optional(), "defaultRole": z.union([z.string().min(1), z.null()]).optional() }),
|
|
5485
6187
|
annotations: {
|
|
5486
6188
|
title: "Organization Update",
|
|
5487
6189
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -5709,7 +6411,7 @@ export const generatedTools = [
|
|
|
5709
6411
|
tag: "sso",
|
|
5710
6412
|
method: "POST",
|
|
5711
6413
|
path: "/sso.update",
|
|
5712
|
-
schema: z.object({ "providerId": z.string(), "issuer": z.string(), "domains": z.array(z.string()), "oidcConfig": z.object({ "clientId": z.string(), "clientSecret": z.string(), "authorizationEndpoint": z.string().optional(), "tokenEndpoint": z.string().optional(), "userInfoEndpoint": z.string().optional(), "tokenEndpointAuthentication": z.enum(["client_secret_post", "client_secret_basic"]).optional(), "jwksEndpoint": z.string().optional(), "discoveryEndpoint": z.string().optional(), "skipDiscovery": z.boolean().optional(), "scopes": z.array(z.string()).optional(), "pkce": z.boolean().default(true), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "image": z.string().optional(), "extraFields": z.record(z.
|
|
6414
|
+
schema: z.object({ "providerId": z.string(), "issuer": z.string(), "domains": z.array(z.string()), "oidcConfig": z.object({ "clientId": z.string(), "clientSecret": z.string(), "authorizationEndpoint": z.string().optional(), "tokenEndpoint": z.string().optional(), "userInfoEndpoint": z.string().optional(), "tokenEndpointAuthentication": z.enum(["client_secret_post", "client_secret_basic"]).optional(), "jwksEndpoint": z.string().optional(), "discoveryEndpoint": z.string().optional(), "skipDiscovery": z.boolean().optional(), "scopes": z.array(z.string()).optional(), "pkce": z.boolean().default(true), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "image": z.string().optional(), "extraFields": z.record(z.any()).optional() }).optional() }).optional(), "samlConfig": z.object({ "entryPoint": z.string(), "cert": z.string(), "callbackUrl": z.string(), "audience": z.string().optional(), "idpMetadata": z.object({ "metadata": z.string().optional(), "entityID": z.string().optional(), "cert": z.string().optional(), "privateKey": z.string().optional(), "privateKeyPass": z.string().optional(), "isAssertionEncrypted": z.boolean().optional(), "encPrivateKey": z.string().optional(), "encPrivateKeyPass": z.string().optional(), "singleSignOnService": z.array(z.object({ "Binding": z.string(), "Location": z.string() })).optional() }).optional(), "spMetadata": z.object({ "metadata": z.string().optional(), "entityID": z.string().optional(), "binding": z.string().optional(), "privateKey": z.string().optional(), "privateKeyPass": z.string().optional(), "isAssertionEncrypted": z.boolean().optional(), "encPrivateKey": z.string().optional(), "encPrivateKeyPass": z.string().optional() }), "wantAssertionsSigned": z.boolean().optional(), "authnRequestsSigned": z.boolean().optional(), "signatureAlgorithm": z.string().optional(), "digestAlgorithm": z.string().optional(), "identifierFormat": z.string().optional(), "privateKey": z.string().optional(), "decryptionPvk": z.string().optional(), "additionalParams": z.record(z.any()).optional(), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "firstName": z.string().optional(), "lastName": z.string().optional(), "extraFields": z.record(z.any()).optional() }).optional() }).optional(), "organizationId": z.string().optional(), "overrideUserInfo": z.boolean().default(false) }),
|
|
5713
6415
|
annotations: {
|
|
5714
6416
|
title: "Sso Update",
|
|
5715
6417
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -5733,7 +6435,7 @@ export const generatedTools = [
|
|
|
5733
6435
|
tag: "sso",
|
|
5734
6436
|
method: "POST",
|
|
5735
6437
|
path: "/sso.register",
|
|
5736
|
-
schema: z.object({ "providerId": z.string(), "issuer": z.string(), "domains": z.array(z.string()), "oidcConfig": z.object({ "clientId": z.string(), "clientSecret": z.string(), "authorizationEndpoint": z.string().optional(), "tokenEndpoint": z.string().optional(), "userInfoEndpoint": z.string().optional(), "tokenEndpointAuthentication": z.enum(["client_secret_post", "client_secret_basic"]).optional(), "jwksEndpoint": z.string().optional(), "discoveryEndpoint": z.string().optional(), "skipDiscovery": z.boolean().optional(), "scopes": z.array(z.string()).optional(), "pkce": z.boolean().default(true), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "image": z.string().optional(), "extraFields": z.record(z.
|
|
6438
|
+
schema: z.object({ "providerId": z.string(), "issuer": z.string(), "domains": z.array(z.string()), "oidcConfig": z.object({ "clientId": z.string(), "clientSecret": z.string(), "authorizationEndpoint": z.string().optional(), "tokenEndpoint": z.string().optional(), "userInfoEndpoint": z.string().optional(), "tokenEndpointAuthentication": z.enum(["client_secret_post", "client_secret_basic"]).optional(), "jwksEndpoint": z.string().optional(), "discoveryEndpoint": z.string().optional(), "skipDiscovery": z.boolean().optional(), "scopes": z.array(z.string()).optional(), "pkce": z.boolean().default(true), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "image": z.string().optional(), "extraFields": z.record(z.any()).optional() }).optional() }).optional(), "samlConfig": z.object({ "entryPoint": z.string(), "cert": z.string(), "callbackUrl": z.string(), "audience": z.string().optional(), "idpMetadata": z.object({ "metadata": z.string().optional(), "entityID": z.string().optional(), "cert": z.string().optional(), "privateKey": z.string().optional(), "privateKeyPass": z.string().optional(), "isAssertionEncrypted": z.boolean().optional(), "encPrivateKey": z.string().optional(), "encPrivateKeyPass": z.string().optional(), "singleSignOnService": z.array(z.object({ "Binding": z.string(), "Location": z.string() })).optional() }).optional(), "spMetadata": z.object({ "metadata": z.string().optional(), "entityID": z.string().optional(), "binding": z.string().optional(), "privateKey": z.string().optional(), "privateKeyPass": z.string().optional(), "isAssertionEncrypted": z.boolean().optional(), "encPrivateKey": z.string().optional(), "encPrivateKeyPass": z.string().optional() }), "wantAssertionsSigned": z.boolean().optional(), "authnRequestsSigned": z.boolean().optional(), "signatureAlgorithm": z.string().optional(), "digestAlgorithm": z.string().optional(), "identifierFormat": z.string().optional(), "privateKey": z.string().optional(), "decryptionPvk": z.string().optional(), "additionalParams": z.record(z.any()).optional(), "mapping": z.object({ "id": z.string(), "email": z.string(), "emailVerified": z.string().optional(), "name": z.string(), "firstName": z.string().optional(), "lastName": z.string().optional(), "extraFields": z.record(z.any()).optional() }).optional() }).optional(), "organizationId": z.string().optional(), "overrideUserInfo": z.boolean().default(false) }),
|
|
5737
6439
|
annotations: {
|
|
5738
6440
|
title: "Sso Register",
|
|
5739
6441
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -5997,7 +6699,7 @@ export const generatedTools = [
|
|
|
5997
6699
|
tag: "customRole",
|
|
5998
6700
|
method: "POST",
|
|
5999
6701
|
path: "/customRole.create",
|
|
6000
|
-
schema: z.object({ "roleName": z.string().min(1).max(50), "permissions": z.record(z.
|
|
6702
|
+
schema: z.object({ "roleName": z.string().min(1).max(50), "permissions": z.record(z.array(z.string())) }),
|
|
6001
6703
|
annotations: {
|
|
6002
6704
|
title: "CustomRole Create",
|
|
6003
6705
|
...{ "openWorldHint": true },
|
|
@@ -6009,7 +6711,7 @@ export const generatedTools = [
|
|
|
6009
6711
|
tag: "customRole",
|
|
6010
6712
|
method: "POST",
|
|
6011
6713
|
path: "/customRole.update",
|
|
6012
|
-
schema: z.object({ "roleName": z.string().min(1), "newRoleName": z.string().min(1).max(50).optional(), "permissions": z.record(z.
|
|
6714
|
+
schema: z.object({ "roleName": z.string().min(1), "newRoleName": z.string().min(1).max(50).optional(), "permissions": z.record(z.array(z.string())) }),
|
|
6013
6715
|
annotations: {
|
|
6014
6716
|
title: "CustomRole Update",
|
|
6015
6717
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -6555,4 +7257,40 @@ export const generatedTools = [
|
|
|
6555
7257
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
6556
7258
|
},
|
|
6557
7259
|
},
|
|
7260
|
+
{
|
|
7261
|
+
name: "overview-services",
|
|
7262
|
+
description: "GET /overview.services",
|
|
7263
|
+
tag: "overview",
|
|
7264
|
+
method: "GET",
|
|
7265
|
+
path: "/overview.services",
|
|
7266
|
+
schema: z.object({}),
|
|
7267
|
+
annotations: {
|
|
7268
|
+
title: "Overview Services",
|
|
7269
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
7270
|
+
},
|
|
7271
|
+
},
|
|
7272
|
+
{
|
|
7273
|
+
name: "overview-backups",
|
|
7274
|
+
description: "GET /overview.backups",
|
|
7275
|
+
tag: "overview",
|
|
7276
|
+
method: "GET",
|
|
7277
|
+
path: "/overview.backups",
|
|
7278
|
+
schema: z.object({}),
|
|
7279
|
+
annotations: {
|
|
7280
|
+
title: "Overview Backups",
|
|
7281
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
7282
|
+
},
|
|
7283
|
+
},
|
|
7284
|
+
{
|
|
7285
|
+
name: "overview-domains",
|
|
7286
|
+
description: "GET /overview.domains",
|
|
7287
|
+
tag: "overview",
|
|
7288
|
+
method: "GET",
|
|
7289
|
+
path: "/overview.domains",
|
|
7290
|
+
schema: z.object({}),
|
|
7291
|
+
annotations: {
|
|
7292
|
+
title: "Overview Domains",
|
|
7293
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
7294
|
+
},
|
|
7295
|
+
},
|
|
6558
7296
|
];
|