// 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
 */
export const post = oc
  .route({
    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,
}
