mirror of
https://github.com/langgenius/dify.git
synced 2026-05-07 06:01:13 -04:00
26 lines
563 B
TypeScript
26 lines
563 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import { zGetAllWorkspacesQuery, zGetAllWorkspacesResponse } from './zod.gen'
|
|
|
|
export const get = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAllWorkspaces',
|
|
path: '/all-workspaces',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetAllWorkspacesQuery.optional() }))
|
|
.output(zGetAllWorkspacesResponse)
|
|
|
|
export const allWorkspaces = {
|
|
get,
|
|
}
|
|
|
|
export const contract = {
|
|
allWorkspaces,
|
|
}
|