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

import * as z from 'zod'

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

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

/**
 * 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_ids: z.array(z.string()).min(1),
  target_id: z.string(),
  type: zTagType,
})

export const zPostTagBindingsBody = zTagBindingPayload

/**
 * Success
 */
export const zPostTagBindingsResponse = zSimpleResultResponse

export const zPostTagBindingsRemoveBody = zTagBindingRemovePayload

/**
 * Success
 */
export const zPostTagBindingsRemoveResponse = zSimpleResultResponse
