// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'

import {
  zPostEmailRegisterResponse,
  zPostEmailRegisterSendEmailResponse,
  zPostEmailRegisterValidityResponse,
} from './zod.gen'

/**
 * 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: 'postEmailRegisterSendEmail',
    path: '/email-register/send-email',
    tags: ['console'],
  })
  .output(zPostEmailRegisterSendEmailResponse)

export const sendEmail = {
  post,
}

/**
 * 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 post2 = 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: 'postEmailRegisterValidity',
    path: '/email-register/validity',
    tags: ['console'],
  })
  .output(zPostEmailRegisterValidityResponse)

export const validity = {
  post: post2,
}

/**
 * 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 post3 = 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: 'postEmailRegister',
    path: '/email-register',
    tags: ['console'],
  })
  .output(zPostEmailRegisterResponse)

export const emailRegister = {
  post: post3,
  sendEmail,
  validity,
}

export const contract = {
  emailRegister,
}
