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

import * as z from 'zod'

/**
 * TagType
 *
 * Tag type
 */
export const zTagType = z.enum(['knowledge', 'app'])

/**
 * TagBindingPayload
 */
export const zTagBindingPayload = z.object({
  tag_ids: z.array(z.string()),
  target_id: z.string(),
  type: zTagType,
})

/**
 * TagBindingRemovePayload
 */
export const zTagBindingRemovePayload = z.object({
  tag_id: z.string(),
  target_id: z.string(),
  type: zTagType,
})

/**
 * TagBindingItemDeletePayload
 */
export const zTagBindingItemDeletePayload = z.object({
  target_id: z.string(),
  type: zTagType,
})

export const zPostTagBindingsBody = zTagBindingPayload

/**
 * Success
 */
export const zPostTagBindingsResponse = z.record(z.string(), z.unknown())

export const zPostTagBindingsCreateBody = zTagBindingPayload

/**
 * Success
 */
export const zPostTagBindingsCreateResponse = z.record(z.string(), z.unknown())

export const zPostTagBindingsRemoveBody = zTagBindingRemovePayload

/**
 * Success
 */
export const zPostTagBindingsRemoveResponse = z.record(z.string(), z.unknown())

export const zDeleteTagBindingsByIdBody = zTagBindingItemDeletePayload

export const zDeleteTagBindingsByIdPath = z.object({
  id: z.string(),
})

/**
 * Success
 */
export const zDeleteTagBindingsByIdResponse = z.record(z.string(), z.unknown())
