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

const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_0$schema = z.string()
const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_1$schema = z.string()
const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_result$schema = z.string()
const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_parameter_0$schema = z.union([z.undefined(), z.string()])
const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_result$schema = z.object({
  'path': z.string(),
  'home': z.string(),
  'crumbs': z.array(z.object({
  'name': z.string(),
  'path': z.string(),
  'hidden': z.boolean(),
})),
  'entries': z.array(z.object({
  'name': z.string(),
  'path': z.string(),
  'hidden': z.boolean(),
})),
  'truncated': z.boolean(),
})
const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema = z.union([z.literal(null), z.string()])
const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema = z.object({
  'sessionId': z.intersection(z.string(), z.unknown()).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema = z.object({
  'archivedSessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema = z.object({
  'path': z.string().readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_create_result$schema = z.object({
  'workspace': z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'path': z.string().readonly(),
  'title': z.string().readonly(),
  'sessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
  'createdAt': z.string().readonly(),
  'updatedAt': z.string().readonly(),
}).readonly(),
  'created': z.boolean().readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_delete_parameter_0$schema = z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_delete_result$schema = z.object({
  'deleted': z.literal(true).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_follow_result$schema = z.union([z.object({
  'type': z.literal("baseline").readonly(),
  'value': z.object({
  'items': z.array(z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'path': z.string().readonly(),
  'title': z.string().readonly(),
  'sessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
  'createdAt': z.string().readonly(),
  'updatedAt': z.string().readonly(),
})).readonly(),
  'archivedSessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
}).readonly(),
}), z.object({
  'type': z.literal("upsert").readonly(),
  'workspace': z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'path': z.string().readonly(),
  'title': z.string().readonly(),
  'sessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
  'createdAt': z.string().readonly(),
  'updatedAt': z.string().readonly(),
}).readonly(),
}), z.object({
  'type': z.literal("remove").readonly(),
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
}), z.object({
  'type': z.literal("order").readonly(),
  'workspaceIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
}), z.object({
  'type': z.literal("archived").readonly(),
  'archivedSessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
})])
const _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema = z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'beforeWorkspaceId': z.intersection(z.string(), z.unknown()).readonly().optional(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_result$schema = z.object({
  'workspaceIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_parameter_0$schema = z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'sessionId': z.intersection(z.string(), z.unknown()).readonly(),
  'beforeSessionId': z.intersection(z.string(), z.unknown()).readonly().optional(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_result$schema = z.object({
  'workspace': z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'path': z.string().readonly(),
  'title': z.string().readonly(),
  'sessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
  'createdAt': z.string().readonly(),
  'updatedAt': z.string().readonly(),
}).readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema = z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'title': z.string().readonly(),
})
const _deepseek_ai_dsh_api_workspace_controller_workspace_rename_result$schema = z.object({
  'workspace': z.object({
  'workspaceId': z.intersection(z.string(), z.unknown()).readonly(),
  'path': z.string().readonly(),
  'title': z.string().readonly(),
  'sessionIds': z.array(z.intersection(z.string(), z.unknown())).readonly(),
  'createdAt': z.string().readonly(),
  'updatedAt': z.string().readonly(),
}).readonly(),
})

export const TYPERT_REMOTE = {
  package: '@deepseek-ai/dsh-api-workspace-controller',
  descriptors: [
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory',
      service: 'directoryPickerController',
      namespace: 'directoryPicker',
      method: 'createDirectory',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'path',
          wire: 'path',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:path',
            schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_0$schema,
          },
        },
        {
          name: 'name',
          wire: 'name',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:name',
            schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_1$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:result',
        schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/directory-picker.ts","line":86,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/list',
      service: 'directoryPickerController',
      namespace: 'directoryPicker',
      method: 'list',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'path',
          wire: 'path',
          source: 'json',
          acceptsUndefined: true,
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/list:path',
            schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_parameter_0$schema,
          },
        },
      ],
      cancellation: { parameter: 'signal' },
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-host-directory-picker/types#DirectoryListing',
        schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/directory-picker.ts","line":70,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/pick',
      service: 'directoryPickerController',
      namespace: 'directoryPicker',
      method: 'pick',
      invocation: { kind: 'direct' },
      parameters: [
      ],
      cancellation: { parameter: 'signal' },
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller#directoryPicker/pick:result',
        schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/directory-picker.ts","line":53,"column":9},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/archiveSession',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'archiveSession',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceArchiveSessionRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceArchiveValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":108,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/create',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'create',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceCreateRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceCreateValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_create_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":58,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/delete',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'delete',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceDeleteRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_delete_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceDeleteValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_delete_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":78,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/follow',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'follow',
      mode: 'stream',
      invocation: { kind: 'direct' },
      parameters: [
      ],
      cancellation: { parameter: 'signal' },
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceFollowFrame',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_follow_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":118,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/insertBefore',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'insertBefore',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInsertBeforeRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceOrderValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":88,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/insertSessionBefore',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'insertSessionBefore',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInsertSessionBeforeRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":98,"column":3},
    },
    {
      id: '@deepseek-ai/dsh-api-workspace-controller#workspace/rename',
      service: 'workspaceController',
      namespace: 'workspace',
      method: 'rename',
      invocation: { kind: 'direct' },
      parameters: [
        {
          name: 'request',
          wire: 'request',
          source: 'json',
          codec: {
            mode: 'strict',
            typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceRenameRequest',
            schema: _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema,
          },
        },
      ],
      result: {
        mode: 'strict',
        typeSymbol: '@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceValue',
        schema: _deepseek_ai_dsh_api_workspace_controller_workspace_rename_result$schema,
      },
      sourceLocation: {"file":"packages/api/workspace-controller/src/index.ts","line":68,"column":3},
    },
  ],
}

export default TYPERT_REMOTE
