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

import * as z from 'zod'

/**
 * ApiKeyAuthBindingPayload
 */
export const zApiKeyAuthBindingPayload = z.object({
  category: z.string(),
  credentials: z.record(z.string(), z.unknown()),
  provider: z.string(),
})

/**
 * SimpleResultResponse
 */
export const zSimpleResultResponse = z.object({
  result: z.string(),
})

/**
 * ApiKeyAuthDataSourceItem
 */
export const zApiKeyAuthDataSourceItem = z.object({
  category: z.string(),
  created_at: z.int(),
  disabled: z.boolean(),
  id: z.string(),
  provider: z.string(),
  updated_at: z.int(),
})

/**
 * ApiKeyAuthDataSourceListResponse
 */
export const zApiKeyAuthDataSourceListResponse = z.object({
  sources: z.array(zApiKeyAuthDataSourceItem),
})

/**
 * Success
 */
export const zGetApiKeyAuthDataSourceResponse = zApiKeyAuthDataSourceListResponse

export const zPostApiKeyAuthDataSourceBindingBody = zApiKeyAuthBindingPayload

/**
 * Success
 */
export const zPostApiKeyAuthDataSourceBindingResponse = zSimpleResultResponse

export const zDeleteApiKeyAuthDataSourceByBindingIdPath = z.object({
  binding_id: z.uuid(),
})

/**
 * Binding deleted successfully
 */
export const zDeleteApiKeyAuthDataSourceByBindingIdResponse = z.void()
