mirror of
https://github.com/langgenius/dify.git
synced 2026-06-14 12:51:07 +08:00
35 lines
747 B
TypeScript
35 lines
747 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* WorkspaceListItemResponse
|
|
*/
|
|
export const zWorkspaceListItemResponse = z.object({
|
|
created_at: z.int().nullish(),
|
|
id: z.string(),
|
|
name: z.string().nullish(),
|
|
status: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* WorkspaceListResponse
|
|
*/
|
|
export const zWorkspaceListResponse = z.object({
|
|
data: z.array(zWorkspaceListItemResponse),
|
|
has_more: z.boolean(),
|
|
limit: z.int(),
|
|
page: z.int(),
|
|
total: z.int(),
|
|
})
|
|
|
|
export const zGetAllWorkspacesQuery = z.object({
|
|
limit: z.int().gte(1).lte(100).optional().default(20),
|
|
page: z.int().gte(1).lte(99999).optional().default(1),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetAllWorkspacesResponse = zWorkspaceListResponse
|