Path: blob/master/src/packages/next/lib/api/schema/projects/common.ts
1451 views
import { z } from "../../framework";12export const ProjectIdSchema = z.string().uuid().describe("Project id.");34export type ProjectId = z.infer<typeof ProjectIdSchema>;56export const ProjectTitleSchema = z7.string()8.describe(9"The short title of the project. Should use no special formatting, except hashtags.",10);1112export type ProjectTitle = z.infer<typeof ProjectTitleSchema>;1314export const ProjectDescriptionSchema = z.string().describe(15`A longer textual description of the project. This can include hashtags and should16be formatted using markdown.`,17);1819export type ProjectDescription = z.infer<typeof ProjectDescriptionSchema>;2021export const ProjectNameSchema = z.string().describe(22`The optional name of this project. Must be globally unique (up to case) across all23projects with a given *owner*. It can be between 1 and 100 characters from a-z, A-Z,240-9, period, and dash.`,25);2627export type ProjectName = z.infer<typeof ProjectNameSchema>;282930