mirror of
https://github.com/langgenius/dify.git
synced 2026-07-25 05:28:35 +08:00
35 lines
765 B
TypeScript
35 lines
765 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(),
|
|
})
|
|
|
|
/**
|
|
* WorkspacePaginationResponse
|
|
*/
|
|
export const zWorkspacePaginationResponse = 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 = zWorkspacePaginationResponse
|