Defines Zod schemas for Gitea integration, repository, and import result objects.
// Source: https://github.com/usekaneo/kaneo | License: MIT | Copyright 2024 Andrej Acevski
// Provided via justclaw.it.com; keep this notice with the code.
import { responseTimestamp, z } from "../openapi";
// Credentials are only ever returned masked; the webhook secret goes only to
// callers holding workspace:manage_settings.
export const giteaIntegrationSchema = z
.object({
id: z.string(),
projectId: z.string(),
baseUrl: z
.string()
.openapi({ description: "Root URL of the Gitea instance." }),
repositoryOwner: z.string(),
repositoryName: z.string(),
maskedAccessToken: z.string(),
webhookUrl: z.string().optional().openapi({
description: "Where Gitea should POST events for this project.",
}),
webhookSecret: z.string().optional().o
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key