@dokploy/mcp 0.30.2 → 0.30.4
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/build/generated/tools.js +38 -14
- 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-
|
|
2
|
+
// Generated from openapi.json on 2026-09-01
|
|
3
3
|
// Run `pnpm generate` to regenerate
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export const generatedTools = [
|
|
@@ -699,6 +699,18 @@ export const generatedTools = [
|
|
|
699
699
|
...{ "openWorldHint": true },
|
|
700
700
|
},
|
|
701
701
|
},
|
|
702
|
+
{
|
|
703
|
+
name: "network-resync",
|
|
704
|
+
description: "POST /network.resync",
|
|
705
|
+
tag: "network",
|
|
706
|
+
method: "POST",
|
|
707
|
+
path: "/network.resync",
|
|
708
|
+
schema: z.object({ "networkId": z.string().min(1) }),
|
|
709
|
+
annotations: {
|
|
710
|
+
title: "Network Resync",
|
|
711
|
+
...{ "idempotentHint": true, "openWorldHint": true },
|
|
712
|
+
},
|
|
713
|
+
},
|
|
702
714
|
{
|
|
703
715
|
name: "network-remove",
|
|
704
716
|
description: "POST /network.remove",
|
|
@@ -1378,7 +1390,7 @@ export const generatedTools = [
|
|
|
1378
1390
|
method: "POST",
|
|
1379
1391
|
path: "/dnsProvider.create",
|
|
1380
1392
|
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) })];
|
|
1393
|
+
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) }), z.object({ "providerType": z.literal("porkbun"), "apiKey": z.string().min(1), "secretApiKey": z.string().min(1) })];
|
|
1382
1394
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1383
1395
|
? {
|
|
1384
1396
|
errors: [...errors, result.error],
|
|
@@ -1411,7 +1423,7 @@ export const generatedTools = [
|
|
|
1411
1423
|
method: "POST",
|
|
1412
1424
|
path: "/dnsProvider.update",
|
|
1413
1425
|
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) })];
|
|
1426
|
+
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) }), z.object({ "providerType": z.literal("porkbun"), "apiKey": z.string().min(1), "secretApiKey": z.string().min(1) })];
|
|
1415
1427
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1416
1428
|
? {
|
|
1417
1429
|
errors: [...errors, result.error],
|
|
@@ -1480,7 +1492,7 @@ export const generatedTools = [
|
|
|
1480
1492
|
method: "POST",
|
|
1481
1493
|
path: "/dnsProvider.testConnection",
|
|
1482
1494
|
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) })];
|
|
1495
|
+
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) }), z.object({ "providerType": z.literal("porkbun"), "apiKey": z.string().min(1), "secretApiKey": z.string().min(1) })];
|
|
1484
1496
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
1485
1497
|
? {
|
|
1486
1498
|
errors: [...errors, result.error],
|
|
@@ -1536,7 +1548,7 @@ export const generatedTools = [
|
|
|
1536
1548
|
tag: "dnsProvider",
|
|
1537
1549
|
method: "POST",
|
|
1538
1550
|
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) }),
|
|
1551
|
+
schema: z.object({ "type": z.enum(["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SRV", "CAA", "PTR"]), "name": z.string().min(1), "content": z.string().min(1), "ttl": z.number().int().gt(0).lte(9007199254740991).optional(), "proxied": z.boolean().optional(), "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1) }),
|
|
1540
1552
|
annotations: {
|
|
1541
1553
|
title: "DnsProvider CreateRecord",
|
|
1542
1554
|
...{ "openWorldHint": true },
|
|
@@ -1548,7 +1560,7 @@ export const generatedTools = [
|
|
|
1548
1560
|
tag: "dnsProvider",
|
|
1549
1561
|
method: "POST",
|
|
1550
1562
|
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) }),
|
|
1563
|
+
schema: z.object({ "type": z.enum(["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SRV", "CAA", "PTR"]), "name": z.string().min(1), "content": z.string().min(1), "ttl": z.number().int().gt(0).lte(9007199254740991).optional(), "proxied": z.boolean().optional(), "dnsProviderId": z.string().min(1), "zoneId": z.string().min(1), "recordId": z.string().min(1) }),
|
|
1552
1564
|
annotations: {
|
|
1553
1565
|
title: "DnsProvider UpdateRecord",
|
|
1554
1566
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -2064,7 +2076,7 @@ export const generatedTools = [
|
|
|
2064
2076
|
tag: "domain",
|
|
2065
2077
|
method: "POST",
|
|
2066
2078
|
path: "/domain.validateDomain",
|
|
2067
|
-
schema: z.object({ "domain": z.string(), "
|
|
2079
|
+
schema: z.object({ "domain": z.string(), "serverId": z.string().optional() }),
|
|
2068
2080
|
annotations: {
|
|
2069
2081
|
title: "Domain ValidateDomain",
|
|
2070
2082
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -3420,7 +3432,7 @@ export const generatedTools = [
|
|
|
3420
3432
|
tag: "notification",
|
|
3421
3433
|
method: "POST",
|
|
3422
3434
|
path: "/notification.createGotify",
|
|
3423
|
-
schema: z.object({ "appBuildError": z.boolean(), "databaseBackup": z.boolean(), "dokployBackup": z.boolean(), "volumeBackup": z.boolean(), "dokployRestart": z.boolean(), "name": z.string(), "appDeploy": z.boolean(), "dockerCleanup": z.boolean(), "serverUrl": z.string().min(1), "appToken": z.string().min(1), "priority": z.number().gte(1), "decoration": z.boolean() }),
|
|
3435
|
+
schema: z.object({ "appBuildError": z.boolean(), "databaseBackup": z.boolean(), "dokployBackup": z.boolean(), "volumeBackup": z.boolean(), "dokployRestart": z.boolean(), "name": z.string(), "appDeploy": z.boolean(), "dockerCleanup": z.boolean(), "serverThreshold": z.boolean(), "serverUrl": z.string().min(1), "appToken": z.string().min(1), "priority": z.number().gte(1), "decoration": z.boolean() }),
|
|
3424
3436
|
annotations: {
|
|
3425
3437
|
title: "Notification CreateGotify",
|
|
3426
3438
|
...{ "openWorldHint": true },
|
|
@@ -3432,7 +3444,7 @@ export const generatedTools = [
|
|
|
3432
3444
|
tag: "notification",
|
|
3433
3445
|
method: "POST",
|
|
3434
3446
|
path: "/notification.updateGotify",
|
|
3435
|
-
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(), "serverUrl": z.string().min(1).optional(), "appToken": z.string().min(1).optional(), "priority": z.number().gte(1).optional(), "decoration": z.boolean().optional(), "notificationId": z.string().min(1), "gotifyId": z.string().min(1), "organizationId": z.string().optional() }),
|
|
3447
|
+
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(), "serverUrl": z.string().min(1).optional(), "appToken": z.string().min(1).optional(), "priority": z.number().gte(1).optional(), "decoration": z.boolean().optional(), "notificationId": z.string().min(1), "gotifyId": z.string().min(1), "organizationId": z.string().optional() }),
|
|
3436
3448
|
annotations: {
|
|
3437
3449
|
title: "Notification UpdateGotify",
|
|
3438
3450
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -3456,7 +3468,7 @@ export const generatedTools = [
|
|
|
3456
3468
|
tag: "notification",
|
|
3457
3469
|
method: "POST",
|
|
3458
3470
|
path: "/notification.createNtfy",
|
|
3459
|
-
schema: z.object({ "appBuildError": z.boolean(), "databaseBackup": z.boolean(), "dokployBackup": z.boolean(), "volumeBackup": z.boolean(), "dokployRestart": z.boolean(), "name": z.string(), "appDeploy": z.boolean(), "dockerCleanup": z.boolean(), "serverUrl": z.string().min(1), "topic": z.string().min(1), "accessToken": z.string(), "priority": z.number().gte(1) }),
|
|
3471
|
+
schema: z.object({ "appBuildError": z.boolean(), "databaseBackup": z.boolean(), "dokployBackup": z.boolean(), "volumeBackup": z.boolean(), "dokployRestart": z.boolean(), "name": z.string(), "appDeploy": z.boolean(), "dockerCleanup": z.boolean(), "serverThreshold": z.boolean(), "serverUrl": z.string().min(1), "topic": z.string().min(1), "accessToken": z.string(), "priority": z.number().gte(1) }),
|
|
3460
3472
|
annotations: {
|
|
3461
3473
|
title: "Notification CreateNtfy",
|
|
3462
3474
|
...{ "openWorldHint": true },
|
|
@@ -3468,7 +3480,7 @@ export const generatedTools = [
|
|
|
3468
3480
|
tag: "notification",
|
|
3469
3481
|
method: "POST",
|
|
3470
3482
|
path: "/notification.updateNtfy",
|
|
3471
|
-
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(), "serverUrl": z.string().min(1).optional(), "topic": z.string().min(1).optional(), "accessToken": z.string().optional(), "priority": z.number().gte(1).optional(), "notificationId": z.string().min(1), "ntfyId": z.string().min(1), "organizationId": z.string().optional() }),
|
|
3483
|
+
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(), "serverUrl": z.string().min(1).optional(), "topic": z.string().min(1).optional(), "accessToken": z.string().optional(), "priority": z.number().gte(1).optional(), "notificationId": z.string().min(1), "ntfyId": z.string().min(1), "organizationId": z.string().optional() }),
|
|
3472
3484
|
annotations: {
|
|
3473
3485
|
title: "Notification UpdateNtfy",
|
|
3474
3486
|
...{ "idempotentHint": true, "openWorldHint": true },
|
|
@@ -4482,6 +4494,18 @@ export const generatedTools = [
|
|
|
4482
4494
|
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
4483
4495
|
},
|
|
4484
4496
|
},
|
|
4497
|
+
{
|
|
4498
|
+
name: "server-getServices",
|
|
4499
|
+
description: "GET /server.getServices",
|
|
4500
|
+
tag: "server",
|
|
4501
|
+
method: "GET",
|
|
4502
|
+
path: "/server.getServices",
|
|
4503
|
+
schema: z.object({ "serverId": z.string().min(1) }),
|
|
4504
|
+
annotations: {
|
|
4505
|
+
title: "Server GetServices",
|
|
4506
|
+
...{ "readOnlyHint": true, "idempotentHint": true, "openWorldHint": true },
|
|
4507
|
+
},
|
|
4508
|
+
},
|
|
4485
4509
|
{
|
|
4486
4510
|
name: "server-all",
|
|
4487
4511
|
description: "GET /server.all",
|
|
@@ -5833,7 +5857,7 @@ export const generatedTools = [
|
|
|
5833
5857
|
method: "POST",
|
|
5834
5858
|
path: "/vaultProvider.create",
|
|
5835
5859
|
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") })];
|
|
5860
|
+
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") }), z.object({ "providerType": z.literal("phase"), "token": z.string().min(1), "appId": z.string().min(1), "env": z.string().min(1), "path": z.string().default("/"), "apiUrl": z.string().url().default("https://api.phase.dev") })];
|
|
5837
5861
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5838
5862
|
? {
|
|
5839
5863
|
errors: [...errors, result.error],
|
|
@@ -5866,7 +5890,7 @@ export const generatedTools = [
|
|
|
5866
5890
|
method: "POST",
|
|
5867
5891
|
path: "/vaultProvider.update",
|
|
5868
5892
|
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") })];
|
|
5893
|
+
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") }), z.object({ "providerType": z.literal("phase"), "token": z.string().min(1), "appId": z.string().min(1), "env": z.string().min(1), "path": z.string().default("/"), "apiUrl": z.string().url().default("https://api.phase.dev") })];
|
|
5870
5894
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5871
5895
|
? {
|
|
5872
5896
|
errors: [...errors, result.error],
|
|
@@ -5935,7 +5959,7 @@ export const generatedTools = [
|
|
|
5935
5959
|
method: "POST",
|
|
5936
5960
|
path: "/vaultProvider.testConnection",
|
|
5937
5961
|
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") })];
|
|
5962
|
+
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") }), z.object({ "providerType": z.literal("phase"), "token": z.string().min(1), "appId": z.string().min(1), "env": z.string().min(1), "path": z.string().default("/"), "apiUrl": z.string().url().default("https://api.phase.dev") })];
|
|
5939
5963
|
const { errors, failed } = schemas.reduce(({ errors, failed }, schema) => ((result) => result.error
|
|
5940
5964
|
? {
|
|
5941
5965
|
errors: [...errors, result.error],
|