dify/packages/contracts/generated/api/console/login/orpc.gen.ts

37 lines
967 B
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import { zPostLoginBody, zPostLoginResponse } from './zod.gen'
/**
* Authenticate user and login
*
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
*
* @deprecated
*/
export const post = oc
.route({
deprecated: true,
description:
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
inputStructure: 'detailed',
method: 'POST',
operationId: 'postLogin',
path: '/login',
summary: 'Authenticate user and login',
tags: ['console'],
})
.input(z.object({ body: zPostLoginBody }))
.output(zPostLoginResponse)
export const login = {
post,
}
export const contract = {
login,
}