Provides Zod schemas for import connections across multiple sources and request bodies.
// Source: https://github.com/usekaneo/kaneo | License: MIT | Copyright 2024 Andrej Acevski
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "../openapi";
const NEVER_STORED = "Used only for this import and never stored or logged.";
function sourceUrl(
description: string,
example = "https://planka.example.com",
) {
return z.string().trim().min(1).max(2048).openapi({ description, example });
}
function secret(description: string) {
return z
.string()
.trim()
.min(1)
.max(4096)
.openapi({ description: `${description} ${NEVER_STORED}` });
}
const plankaConnection = z
.object({
source: z.literal("planka"),
url: sourceUrl("Address of the PLANKA instance."),
apiKey: secret(
"A PLANKA API key. Send it, or usern
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key