Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

724 B
Raw Blame
import { integrationEventsSchema } from "../integrations/response";
import { responseTimestamp, z } from "../openapi";

// The webhook URL is a bearer credential, so only a masked form is returned.
export const slackIntegrationSchema = z
  .object({
    id: z.string(),
    projectId: z.string(),
    channelName: z.string().nullable(),
    webhookConfigured: z.boolean(),
    maskedWebhookUrl: z.string().openapi({
      description:
        "The webhook URL with its secret path segment masked, or an empty string when none is set.",
    }),
    events: integrationEventsSchema,
    isActive: z.boolean().nullable(),
    createdAt: responseTimestamp,
    updatedAt: responseTimestamp,
  })
  .openapi("SlackIntegration");