/** * sessions domain zod schemas (names derived from map keys: sessionListRequestSchema / * sessionListValueSchema). SessionEvent passthrough = strict envelope (type/seq/time) + wide * data: the merge-extensible event surface keeps an unknown-type branch at the union level, * with no field-level passthrough. SessionId brand cast point: sessionIdSchema, and only there. */ import { z } from 'zod'; import type { SessionEvent, SessionId } from '@deepseek-ai/dsh-session/types'; import type { MessageId } from '@deepseek-ai/dsh-llm/brand'; import type { RequestPayload, ResponseValue } from './rpc-map.ts'; import type { Wire } from './rpc.schema.ts'; import type { HistoryEntry, SessionProjectionsBlock, SessionSummary } from './sessions.ts'; import type { ToolEventView } from './events.ts'; import type { AttachmentIdType, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'; import type { WorkspaceId } from './workspace.ts'; /** SessionId: one brand cast after schema validation (the only cast point in this domain). */ export declare const sessionIdSchema: z.ZodType; /** MessageId: one brand cast after non-empty string validation. */ export declare const messageIdSchema: z.ZodType; /** * WorkspaceId: the workspace domain's one brand cast. Hosted here rather * than in workspace.schema because session.create references it while * workspace.schema references sessionIdSchema — schema modules must stay a * DAG (both casts used at module top level; a cycle is a load-time TDZ). */ export declare const workspaceIdSchema: z.ZodType; /** SessionEvent passthrough: strict envelope, wide data (the client fold handles unknown types via its documented default). */ export declare const sessionEventSchema: z.ZodType; /** SessionSummary row of session.list (`projections` reuses the history block's shape and schema). */ export declare const sessionSummarySchema: z.ZodType>; /** session.list request payload (cursor is a reserved seat, unimplemented in v1). */ export declare const sessionListRequestSchema: z.ZodObject<{ cursor: z.ZodOptional; }, z.core.$strip>; /** session.list response value. */ export declare const sessionListValueSchema: z.ZodType>>; /** session.search request payload. */ export declare const sessionSearchRequestSchema: z.ZodObject<{ query: z.ZodString; }, z.core.$strip>; /** One session.search result. */ export declare const sessionSearchItemSchema: z.ZodObject<{ sessionId: z.ZodType>; snippet: z.ZodString; }, z.core.$strip>; /** session.search response value. */ export declare const sessionSearchValueSchema: z.ZodObject<{ items: z.ZodArray>; snippet: z.ZodString; }, z.core.$strip>>; hasMore: z.ZodBoolean; }, z.core.$strip>; /** session.create request payload (at most one of workspaceId / cwd). */ export declare const sessionCreateRequestSchema: z.ZodObject<{ workspaceId: z.ZodOptional>>; cwd: z.ZodOptional; sessionId: z.ZodOptional>>; agentPreset: z.ZodOptional; }, z.core.$strip>; /** session.create response value. */ export declare const sessionCreateValueSchema: z.ZodObject<{ sessionId: z.ZodType>; agentPreset: z.ZodOptional; }, z.core.$strip>; /** session.rename request payload (raw title; host-side normalization decides acceptance). */ export declare const sessionRenameRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; title: z.ZodString; }, z.core.$strip>; /** session.rename response value (the normalized accepted title and its event seq). */ export declare const sessionRenameValueSchema: z.ZodObject<{ title: z.ZodString; seq: z.ZodNumber; }, z.core.$strip>; /** session.fork request payload (atSeq anchors the completed-turn cut). */ export declare const sessionForkRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; atSeq: z.ZodOptional; }, z.core.$strip>; /** session.fork response value (the child session id). */ export declare const sessionForkValueSchema: z.ZodObject<{ sessionId: z.ZodType>; }, z.core.$strip>; /** session.history request payload (beforeSeq/maxMessages page backwards from the window tail). */ export declare const sessionHistoryRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; beforeSeq: z.ZodOptional; maxMessages: z.ZodOptional; }, z.core.$strip>; /** Complete provider/model selection. */ export declare const modelSelectionSchema: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; reasoningEffort: z.ZodOptional; }, z.core.$strip>; /** One adapter-owned reasoning effort. */ export declare const modelReasoningEffortSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; /** Exact-model reasoning metadata. */ export declare const modelReasoningSchema: z.ZodObject<{ efforts: z.ZodArray; }, z.core.$strip>>; defaultEffort: z.ZodOptional; }, z.core.$strip>; /** One advisory model entry inside a provider group. */ export declare const modelCatalogModelSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>>; defaultEffort: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** One successfully loaded provider group. */ export declare const modelProviderGroupSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; models: z.ZodArray; reasoning: z.ZodOptional; }, z.core.$strip>>; defaultEffort: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; /** One provider-local catalog failure. */ export declare const modelCatalogFailureSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; message: z.ZodString; }, z.core.$strip>; /** * ToolEventView passthrough: lock only the `for` discriminant and the presence * of a card-tagged `view` object. The view interior is a host-computed product * the client reads without echoing back; deep-validating it would hand-copy * the dsh-tools vocabulary into this schema and drift with it. */ export declare const toolEventViewSchema: z.ZodType; /** One session.history item: the session event plus its optional host-computed tool view. */ export declare const historyEntrySchema: z.ZodType>; /** * Projection baseline passthrough: `values` stays a wide record — each value * was already parsed by its provider's own schema on the host side, and * deep-validating here would import every domain's schema into the carrier. */ export declare const sessionProjectionsBlockSchema: z.ZodType; /** session.history response value (projections rides the tail page only). */ export declare const sessionHistoryValueSchema: z.ZodType>>; /** session.models request payload. */ export declare const sessionModelsRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; }, z.core.$strip>; /** session.models response value. */ export declare const sessionModelsValueSchema: z.ZodObject<{ current: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; reasoningEffort: z.ZodOptional; }, z.core.$strip>; routable: z.ZodBoolean; groups: z.ZodArray; reasoning: z.ZodOptional; }, z.core.$strip>>; defaultEffort: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; failures: z.ZodArray>; }, z.core.$strip>; /** session.selectModel request payload. */ export declare const sessionSelectModelRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; provider: z.ZodString; model: z.ZodString; reasoningEffort: z.ZodOptional; }, z.core.$strip>; /** session.selectModel response value. */ export declare const sessionSelectModelValueSchema: z.ZodObject<{ selected: z.ZodObject<{ provider: z.ZodString; model: z.ZodString; reasoningEffort: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; /** ContentBlock passthrough: core is merge-extensible — the type discriminant envelope is strict, the rest stays wide. */ export declare const contentBlockSchema: z.ZodObject<{ type: z.ZodString; }, z.core.$loose>; /** Raster image media types accepted by the version-one browser wire. */ export declare const imageMediaTypeSchema: z.ZodUnion, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/webp">, z.ZodLiteral<"image/gif">]>; /** Prompt wire content is intentionally narrower than merge-extensible durable core content. */ export declare const promptContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; mediaType: z.ZodUnion, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/webp">, z.ZodLiteral<"image/gif">]>; data: z.ZodString; name: z.ZodOptional; }, z.core.$strip>], "type">; /** session.prompt request payload. */ export declare const sessionPromptRequestSchema: z.ZodType>; /** session.prompt response value (the command slot appears only when the prompt dispatched a slash command). */ export declare const sessionPromptValueSchema: z.ZodObject<{ accepted: z.ZodLiteral; command: z.ZodOptional; text: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** Opaque attachment id after string-shape validation. */ export declare const attachmentIdSchema: z.ZodType; /** Durable image reference returned from the authenticated session lookup. */ export declare const imageAttachmentRefSchema: z.ZodType; /** session.attachment request payload. */ export declare const sessionAttachmentRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; attachmentId: z.ZodType>; }, z.core.$strip>; /** session.attachment response value. */ export declare const sessionAttachmentValueSchema: z.ZodObject<{ attachment: z.ZodType>; data: z.ZodString; }, z.core.$strip>; /** session.updateQueue request payload. */ export declare const sessionUpdateQueueRequestSchema: z.ZodType>; /** session.updateQueue response value. */ export declare const sessionUpdateQueueValueSchema: z.ZodObject<{ accepted: z.ZodLiteral; }, z.core.$strip>; /** session.cancel request payload. */ export declare const sessionCancelRequestSchema: z.ZodObject<{ sessionId: z.ZodType>; }, z.core.$strip>; /** session.cancel response value. */ export declare const sessionCancelValueSchema: z.ZodObject<{ accepted: z.ZodLiteral; }, z.core.$strip>; //# sourceMappingURL=sessions.schema.d.ts.map