Skip to content

desktopOpsResponseSchema

const desktopOpsResponseSchema: ZodObject<{ desktop: ZodObject<{ actions: ZodArray<ZodObject<{ action: ZodString; actor: ZodObject<{ color: ZodOptional<ZodString>; id: ZodString; kind: ZodEnum<[…, …]>; name: ZodString; onBehalfOf: ZodOptional<ZodObject<…, …, …, …, …>>; }, "strip", ZodTypeAny, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: …; name: …; }; }, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: …; name: …; }; }>; at: ZodString; detail: ZodString; }, "strip", ZodTypeAny, { action: string; actor: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; at: string; detail: string; }, { action: string; actor: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; at: string; detail: string; }>, "many">; app: ZodString; controller: ZodNullable<ZodObject<{ color: ZodOptional<ZodString>; id: ZodString; kind: ZodEnum<["human", "agent"]>; name: ZodString; onBehalfOf: ZodOptional<ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>>; }, "strip", ZodTypeAny, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }>>; cursor: ZodNullable<ZodObject<{ x: ZodNumber; y: ZodNumber; }, "strip", ZodTypeAny, { x: number; y: number; }, { x: number; y: number; }>>; screen: ZodObject<{ height: ZodNumber; width: ZodNumber; }, "strip", ZodTypeAny, { height: number; width: number; }, { height: number; width: number; }>; screenshot: ZodOptional<ZodString>; status: ZodEnum<["starting", "running", "stopped", "unavailable"]>; }, "strip", ZodTypeAny, { actions: object[]; app: string; controller: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; } | null; cursor: { x: number; y: number; } | null; screen: { height: number; width: number; }; screenshot?: string; status: "starting" | "running" | "stopped" | "unavailable"; }, { actions: object[]; app: string; controller: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; } | null; cursor: { x: number; y: number; } | null; screen: { height: number; width: number; }; screenshot?: string; status: "starting" | "running" | "stopped" | "unavailable"; }>; results: ZodArray<ZodDiscriminatedUnion<"ok", [ZodObject<{ ok: ZodLiteral<true>; }, "strip", ZodTypeAny, { ok: true; }, { ok: true; }>, ZodObject<{ error: ZodString; heldBy: ZodOptional<ZodObject<{ color: ZodOptional<…>; id: ZodString; kind: ZodEnum<…>; name: ZodString; onBehalfOf: ZodOptional<…>; }, "strip", ZodTypeAny, { color?: … | …; id: string; kind: … | …; name: string; onBehalfOf?: … | …; }, { color?: … | …; id: string; kind: … | …; name: string; onBehalfOf?: … | …; }>>; ok: ZodLiteral<false>; }, "strip", ZodTypeAny, { error: string; heldBy?: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: …; name: …; }; }; ok: false; }, { error: string; heldBy?: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: …; name: …; }; }; ok: false; }>]>, "many">; }, "strip", ZodTypeAny, { desktop: { actions: object[]; app: string; controller: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; } | null; cursor: { x: number; y: number; } | null; screen: { height: number; width: number; }; screenshot?: string; status: "starting" | "running" | "stopped" | "unavailable"; }; results: ({ ok: true; } | { error: string; heldBy?: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; ok: false; })[]; }, { desktop: { actions: object[]; app: string; controller: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; } | null; cursor: { x: number; y: number; } | null; screen: { height: number; width: number; }; screenshot?: string; status: "starting" | "running" | "stopped" | "unavailable"; }; results: ({ ok: true; } | { error: string; heldBy?: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; ok: false; })[]; }>

Defined in: index.ts:1147