/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
import { z } from 'zod'

const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema = z.string()
const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema = z.string()
const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema = z.union([z.undefined(), z.string()])
const _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema = z.void()
const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema = z.string()
const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema = z.void()
const _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema = z.object({
  'presets': z.array(z.object({
  'id': z.string().readonly(),
  'trust': z.union([z.literal("system"), z.literal("user")]).readonly(),
  'isDefault': z.boolean().readonly(),
  'name': z.string().readonly().optional(),
  'description': z.string().readonly().optional(),
  'broken': z.string().readonly().optional(),
})).readonly(),
  'authorable': z.boolean().readonly(),
})
const _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema = z.string()
const _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema = z.object({
  'agentPreset': z.string().readonly(),
  'trust': z.union([z.literal("system"), z.literal("user")]).readonly(),
  'content': z.string().readonly(),
  'name': z.string().readonly().optional(),
  'description': z.string().readonly().optional(),
})
const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema = z.intersection(z.string(), z.unknown())
const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema = z.string()
const _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema = z.string()

export const TYPERT_REMOTE = {
  package: '@deepseek-ai/dsh-agent-presets',
  descriptors: [
    {
      id: '@deepseek-ai/dsh-agent-presets#agentPresets/copy',
      service: 'agentPresets',
      namespace: 'agentPresets',
      method: 'copy',
      implementation: 'remoteExportCopy',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'from',
          wire: 'from',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/copy:from',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema,
          },
        },
        {
          name: 'id',
          wire: 'id',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/copy:id',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema,
          },
        },
        {
          name: 'name',
          wire: 'name',
          source: 'json',
          acceptsUndefined: true,
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/copy:name',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/copy:result',
        schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema,
      },
      sourceLocation: {"file":"packages/preset/agent-presets/src/index.ts","line":560,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset',
      service: 'agentPresets',
      namespace: 'agentPresets',
      method: 'deletePreset',
      implementation: 'remoteExportDelete',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'id',
          wire: 'id',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:id',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:result',
        schema: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema,
      },
      sourceLocation: {"file":"packages/preset/agent-presets/src/index.ts","line":602,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-agent-presets#agentPresets/list',
      service: 'agentPresets',
      namespace: 'agentPresets',
      method: 'list',
      implementation: 'remoteExportList',
      invocation: { kind: 'direct' },
      parameters: [
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-agent-presets/types#AgentPresetRoster',
        schema: _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema,
      },
      sourceLocation: {"file":"packages/preset/agent-presets/src/index.ts","line":318,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-agent-presets#agentPresets/read',
      service: 'agentPresets',
      namespace: 'agentPresets',
      method: 'read',
      implementation: 'readDocument',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'agentPreset',
          wire: 'agentPreset',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/read:agentPreset',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-agent-presets/types#AgentPresetDocument',
        schema: _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema,
      },
      sourceLocation: {"file":"packages/preset/agent-presets/src/index.ts","line":504,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-agent-presets#agentPresets/select',
      service: 'agentPresets',
      namespace: 'agentPresets',
      method: 'select',
      invocation: { kind: 'direct' },
      scope: {
        context: 'agent',
        wire: 'agentId',
      },
      parameters: [
        {
          name: 'agent',
          wire: 'agentId',
          source: 'lookup',
          lookup: 'agent',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema,
          },
        },
        {
          name: 'agentPreset',
          wire: 'agentPreset',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/select:agentPreset',
            schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-agent-presets#agentPresets/select:result',
        schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema,
      },
      sourceLocation: {"file":"packages/preset/agent-presets/src/index.ts","line":698,"column":9},
    },
  ],
}

export default TYPERT_REMOTE
