// 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(),
})

/**
 * 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 = z.record(z.string(), z.unknown())

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

/**
 * Binding deleted successfully
 */
export const zDeleteApiKeyAuthDataSourceByBindingIdResponse = z.record(z.string(), z.never())
