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

import { oc } from '@orpc/contract'
import * as z from 'zod'

import { zGetCodeBasedExtensionQuery, zGetCodeBasedExtensionResponse } from './zod.gen'

/**
 * Get code-based extension data by module name
 */
export const get = oc
  .route({
    description: 'Get code-based extension data by module name',
    inputStructure: 'detailed',
    method: 'GET',
    operationId: 'getCodeBasedExtension',
    path: '/code-based-extension',
    tags: ['console'],
  })
  .input(z.object({ query: zGetCodeBasedExtensionQuery }))
  .output(zGetCodeBasedExtensionResponse)

export const codeBasedExtension = {
  get,
}

export const contract = {
  codeBasedExtension,
}
