Variable serverMessageSchemaConst
serverMessageSchema: z.ZodDiscriminatedUnion<
[
z.ZodObject<
{
backend: z.ZodOptional<z.ZodString>;
elevation: z.ZodOptional<z.ZodBoolean>;
hostControl: z.ZodOptional<z.ZodArray<z.ZodString>>;
protocolVersion: z.ZodNumber;
session: z.ZodString;
stack: z.ZodOptional<
z.ZodObject<
{
brasa: z.ZodOptional<z.ZodString>;
build: z.ZodString;
calypso: z.ZodString;
chell: z.ZodString;
chili: z.ZodOptional<z.ZodString>;
cumin: z.ZodOptional<z.ZodString>;
salsa: z.ZodOptional<z.ZodString>;
surface: z.ZodOptional<
z.ZodObject<
{ built: z.ZodString; git: z.ZodString },
z.core.$strip,
>,
>;
},
z.core.$strip,
>,
>;
stale: z.ZodOptional<z.ZodBoolean>;
surface: z.ZodOptional<z.ZodString>;
terminals: z.ZodOptional<z.ZodBoolean>;
type: z.ZodLiteral<"attached">;
},
z.core.$strip,
>,
z.ZodObject<
{
granted: z.ZodBoolean;
reason: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"elevated">;
},
z.core.$strip,
>,
z.ZodObject<
{
envelopes: z.ZodArray<
z.ZodObject<
{
errors: z.ZodOptional<
z.ZodArray<
z.ZodObject<{ message: ...; type: ... }, z.core.$strip>,
>,
>;
model: z.ZodOptional<
z.ZodObject<
{ data: z.ZodUnknown; kind: z.ZodString },
z.core.$strip,
>,
>;
rendered: z.ZodString;
renderedErr: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<{ error: "error"; ok: "ok" }>;
trace: z.ZodOptional<
z.ZodObject<
{
executed: z.ZodOptional<(...)>;
input: z.ZodString;
proposed: z.ZodString;
validated: z.ZodBoolean;
},
z.core.$strip,
>,
>;
},
z.core.$strip,
>,
>;
id: z.ZodString;
type: z.ZodLiteral<"result">;
},
z.core.$strip,
>,
z.ZodObject<
{
candidates: z.ZodArray<z.ZodString>;
id: z.ZodString;
prefix: z.ZodString;
type: z.ZodLiteral<"complete">;
},
z.core.$strip,
>,
z.ZodObject<
{
channel: z.ZodEnum<{ data: "data"; err: "err"; status: "status" }>;
chunk: z.ZodString;
id: z.ZodString;
type: z.ZodLiteral<"output">;
},
z.core.$strip,
>,
z.ZodObject<
{
current: z.ZodOptional<z.ZodNumber>;
id: z.ZodString;
itemId: z.ZodOptional<z.ZodString>;
kind: z.ZodOptional<
z.ZodCatch<
z.ZodEnum<
{
inspection: "inspection";
retrieve: "retrieve";
transfer: "transfer";
workflow: "workflow";
},
>,
>,
>;
label: z.ZodOptional<z.ZodString>;
operation: z.ZodCatch<
z.ZodEnum<
{
download: "download";
group: "group";
pipeline: "pipeline";
pull: "pull";
task: "task";
upload: "upload";
workflow: "workflow";
},
>,
>;
path: z.ZodOptional<z.ZodString>;
percent: z.ZodOptional<z.ZodNumber>;
phase: z.ZodCatch<
z.ZodEnum<
{
complete: "complete";
failed: "failed";
reading: "reading";
retrying: "retrying";
scanning: "scanning";
transferring: "transferring";
watching: "watching";
working: "working";
},
>,
>;
reason: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<
z.ZodCatch<
z.ZodEnum<
{
done: "done";
error: "error";
running: "running";
stalled: "stalled";
timeout: "timeout";
unconfirmed: "unconfirmed";
unknown: "unknown";
},
>,
>,
>;
total: z.ZodOptional<z.ZodNumber>;
type: z.ZodLiteral<"progress">;
unit: z.ZodOptional<
z.ZodCatch<
z.ZodEnum<
{
bytes: "bytes";
files: "files";
jobs: "jobs";
nodes: "nodes";
series: "series";
},
>,
>,
>;
},
z.core.$strip,
>,
z.ZodObject<
{
data: z.ZodUnknown;
id: z.ZodString;
kind: z.ZodString;
type: z.ZodLiteral<"event">;
},
z.core.$strip,
>,
z.ZodObject<
{
envelope: z.ZodObject<
{
errors: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{ message: z.ZodString; type: z.ZodEnum<(...)> },
z.core.$strip,
>,
>,
>;
model: z.ZodOptional<
z.ZodObject<
{ data: z.ZodUnknown; kind: z.ZodString },
z.core.$strip,
>,
>;
rendered: z.ZodString;
renderedErr: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<{ error: "error"; ok: "ok" }>;
trace: z.ZodOptional<
z.ZodObject<
{
executed: z.ZodOptional<z.ZodString>;
input: z.ZodString;
proposed: z.ZodString;
validated: z.ZodBoolean;
},
z.core.$strip,
>,
>;
},
z.core.$strip,
>;
surface: z.ZodString;
terminal: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"session">;
},
z.core.$strip,
>,
z.ZodObject<
{
id: z.ZodOptional<z.ZodString>;
reason: z.ZodString;
type: z.ZodLiteral<"error">;
},
z.core.$strip,
>,
z.ZodObject<
{
commit: z.ZodOptional<z.ZodString>;
hidden: z.ZodBoolean;
message: z.ZodString;
path: z.ZodOptional<
z.ZodObject<
{
anchor: z.ZodOptional<z.ZodString>;
suggest: z.ZodOptional<z.ZodString>;
wantsDirectory: z.ZodBoolean;
},
z.core.$strip,
>,
>;
promptId: z.ZodString;
type: z.ZodLiteral<"prompt">;
wants: z.ZodOptional<
z.ZodCatch<
z.ZodEnum<
{
confirm: "confirm";
path: "path";
secret: "secret";
text: "text";
},
>,
>,
>;
},
z.core.$strip,
>,
z.ZodObject<
{
context: z.ZodObject<
{
cwd: z.ZodString;
lastCommandDurationMs: z.ZodNumber;
lastExitCode: z.ZodNumber;
pacsserver: z.ZodNullable<z.ZodString>;
physicalMode: z.ZodBoolean;
procIndex: z.ZodOptional<
z.ZodObject<
{ feeds: z.ZodNumber; jobs: z.ZodNumber },
z.core.$strip,
>,
>;
procWarmup: z.ZodOptional<
z.ZodObject<
{
arrived: z.ZodOptional<z.ZodArray<(...)>>;
feed: z.ZodOptional<z.ZodObject<(...), (...)>>;
feeds: z.ZodOptional<z.ZodArray<(...)>>;
landed: z.ZodOptional<z.ZodArray<(...)>>;
loaded: z.ZodNumber;
restored: z.ZodOptional<z.ZodBoolean>;
roster: z.ZodOptional<z.ZodEnum<(...)>>;
state: z.ZodOptional<z.ZodEnum<(...)>>;
sweeping: z.ZodOptional<z.ZodBoolean>;
total: z.ZodOptional<z.ZodNumber>;
},
z.core.$strip,
>,
>;
questions: z.ZodOptional<z.ZodNumber>;
segments: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{
key: z.ZodString;
label: z.ZodString;
tone: z.ZodEnum<(...)>;
value: z.ZodString;
},
z.core.$strip,
>,
>,
>;
uri: z.ZodString;
user: z.ZodString;
warmupFailures: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{ label: z.ZodString; message: z.ZodString },
z.core.$strip,
>,
>,
>;
},
z.core.$strip,
>;
type: z.ZodLiteral<"promptline">;
},
z.core.$strip,
>,
z.ZodObject<
{
cube: z.ZodOptional<
z.ZodObject<
{ msPerPage: z.ZodNumber; samples: z.ZodNumber },
z.core.$strip,
>,
>;
index: z.ZodObject<
{ feeds: z.ZodNumber; jobs: z.ZodNumber },
z.core.$strip,
>;
lane: z.ZodOptional<
z.ZodObject<
{
joblets: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{ line: ...; number: ...; waiting: ... },
z.core.$strip,
>,
>,
>;
questions: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{ message: ...; sinceMs: ...; surface: ... },
z.core.$strip,
>,
>,
>;
running: z.ZodNullable<
z.ZodObject<
{
line: z.ZodString;
sinceMs: z.ZodNumber;
surface: z.ZodString;
},
z.core.$strip,
>,
>;
waiting: z.ZodNumber;
},
z.core.$strip,
>,
>;
state: z.ZodOptional<
z.ZodObject<
{
errored: z.ZodNumber;
erroredFeeds: z.ZodNumber;
running: z.ZodNumber;
runningFeeds: z.ZodNumber;
scheduled: z.ZodNumber;
},
z.core.$strip,
>,
>;
surfaces: z.ZodOptional<
z.ZodArray<
z.ZodObject<
{
id: z.ZodString;
kind: z.ZodEnum<{ browser: "browser"; chell: "chell" }>;
},
z.core.$strip,
>,
>,
>;
type: z.ZodLiteral<"telemetry">;
},
z.core.$strip,
>,
z.ZodObject<
{
command: z.ZodString;
input: z.ZodString;
pipeId: z.ZodString;
type: z.ZodLiteral<"pipe">;
},
z.core.$strip,
>,
z.ZodObject<
{
command: z.ZodString;
shellId: z.ZodString;
type: z.ZodLiteral<"shell">;
},
z.core.$strip,
>,
z.ZodObject<
{
content: z.ZodString;
editId: z.ZodString;
extension: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"edit">;
},
z.core.$strip,
>,
z.ZodObject<
{
contentType: z.ZodOptional<z.ZodString>;
deliverId: z.ZodString;
destination: z.ZodOptional<z.ZodString>;
filename: z.ZodString;
path: z.ZodString;
size: z.ZodOptional<z.ZodNumber>;
type: z.ZodLiteral<"deliver">;
},
z.core.$strip,
>,
z.ZodObject<
{
regard: z.ZodObject<
{
address: z.ZodString;
groupId: z.ZodString;
modelKind: z.ZodOptional<z.ZodString>;
paneId: z.ZodString;
},
z.core.$strip,
>;
type: z.ZodLiteral<"regard">;
},
z.core.$strip,
>,
z.ZodObject<
{
state: z.ZodEnum<
{ live: "live"; settled: "settled"; stale: "stale" },
>;
subject: z.ZodString;
type: z.ZodLiteral<"watched">;
},
z.core.$strip,
>,
z.ZodObject<
{ stale: z.ZodBoolean; type: z.ZodLiteral<"stale"> },
z.core.$strip,
>,
z.ZodObject<
{
cause: z.ZodEnum<{ end: "end"; restart: "restart"; stop: "stop" }>;
type: z.ZodLiteral<"closing">;
},
z.core.$strip,
>,
z.ZodObject<
{
handles: z.ZodArray<
z.ZodObject<
{ address: z.ZodString; kind: z.ZodString; ordinal: z.ZodNumber },
z.core.$strip,
>,
>;
id: z.ZodNumber;
rows: z.ZodNumber;
source: z.ZodString;
type: z.ZodLiteral<"numbered">;
},
z.core.$strip,
>,
z.ZodObject<
{
refused: z.ZodOptional<z.ZodString>;
replay: z.ZodString;
terminalId: z.ZodString;
type: z.ZodLiteral<"terminalOpened">;
},
z.core.$strip,
>,
z.ZodObject<
{
data: z.ZodString;
terminalId: z.ZodString;
type: z.ZodLiteral<"terminalData">;
},
z.core.$strip,
>,
z.ZodObject<
{
code: z.ZodNumber;
terminalId: z.ZodString;
type: z.ZodLiteral<"terminalExit">;
},
z.core.$strip,
>,
z.ZodObject<
{
line: z.ZodString;
lineId: z.ZodString;
terminal: z.ZodOptional<z.ZodString>;
type: z.ZodLiteral<"surfaceLine">;
},
z.core.$strip,
>,
z.ZodObject<
{ text: z.ZodString; type: z.ZodLiteral<"consoleNote"> },
z.core.$strip,
>,
],
"type",
>
Any message the daemon may send to a surface.