mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 10:38:32 +08:00
41 lines
712 B
TypeScript
41 lines
712 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* SetupStatusResponse
|
|
*/
|
|
export const zSetupStatusResponse = z.object({
|
|
setup_at: z.string().nullish(),
|
|
step: z.enum(['finished', 'not_started']),
|
|
})
|
|
|
|
/**
|
|
* SetupRequestPayload
|
|
*/
|
|
export const zSetupRequestPayload = z.object({
|
|
email: z.string(),
|
|
language: z.string().nullish(),
|
|
name: z.string().max(30),
|
|
password: z.string(),
|
|
})
|
|
|
|
/**
|
|
* SetupResponse
|
|
*/
|
|
export const zSetupResponse = z.object({
|
|
result: z.string(),
|
|
})
|
|
|
|
/**
|
|
* OK
|
|
*/
|
|
export const zGetSetupResponse = zSetupStatusResponse
|
|
|
|
export const zPostSetupBody = zSetupRequestPayload
|
|
|
|
/**
|
|
* Created
|
|
*/
|
|
export const zPostSetupResponse = zSetupResponse
|