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

const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_0$schema = z.intersection(z.string(), z.unknown())
const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema = z.string()
const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema = z.array(z.object({
  'mention': z.string(),
  'sessionId': z.intersection(z.string(), z.unknown()),
  'label': z.string(),
  'cwd': z.string().optional(),
  'sameWorkspace': z.boolean(),
  'createdAt': z.number(),
}))

export const TYPERT_REMOTE = {
  package: '@deepseek-ai/dsh-session-reference',
  descriptors: [
    {
      id: '@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates',
      service: 'sessionReferenceResolver',
      namespace: 'sessionReferenceResolver',
      method: 'candidates',
      implementation: 'remoteExportCandidates',
      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_session_reference_sessionReferenceResolver_candidates_parameter_0$schema,
          },
        },
        {
          name: 'query',
          wire: 'query',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:query',
            schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema,
          },
        },
      ],
      cancellation: { parameter: 'signal' },
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:result',
        schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema,
      },
      sourceLocation: {"file":"packages/context/session-reference/src/index.ts","line":245,"column":9},
    },
  ],
}

export default TYPERT_REMOTE
