2
0

📝 Migrate from Docusaurus to Mintlify (#1115)

Closes #868
This commit is contained in:
Baptiste Arnaud
2023-12-22 09:13:53 +01:00
committed by GitHub
parent 512bb09282
commit 1e5fa5a575
450 changed files with 49522 additions and 104787 deletions

View File

@@ -1,5 +1,8 @@
import { CustomDomain as CustomDomainInDb } from '@typebot.io/prisma'
import { z } from 'zod'
import { z } from '../zod'
import { extendZodWithOpenApi } from 'zod-openapi'
extendZodWithOpenApi(z)
export const domainVerificationStatusSchema = z.enum([
'Valid Configuration',
@@ -41,6 +44,9 @@ export const customDomainSchema = z.object({
name: z
.string()
.transform((name) => name.toLowerCase())
.openapi({
effectType: 'input',
})
.refine((name) => domainNameRegex.test(name)),
workspaceId: z.string(),
createdAt: z.date(),