import { PiFragmentConfig, PiWorkflowsService } from "./pi/types.js"; import "./index.js"; import * as _fragno_dev_core0 from "@fragno-dev/core"; import * as _fragno_dev_db0 from "@fragno-dev/db"; import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema"; import { z } from "zod"; import * as _standard_schema_spec0 from "@standard-schema/spec"; //#region src/routes.d.ts declare const piRoutesFactory: _fragno_dev_core0.RouteFactory & Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"agent", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"workflowInstanceId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"steeringMode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"metadata", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"tags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (_fragno_dev_db0.DbNow | Date) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (_fragno_dev_db0.DbNow | Date) | null, Date>>, Record, Record> & Record<"idx_session_status", _fragno_dev_db_schema0.Index] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"idx_session_created", _fragno_dev_db_schema0.Index] & _fragno_dev_db_schema0.AnyColumn[], readonly ["createdAt"]>>>>>>, _fragno_dev_core0.BoundServices<{}>, { workflows: PiWorkflowsService; }, readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/sessions", z.ZodObject<{ agent: z.ZodString; name: z.ZodOptional; metadata: z.ZodOptional; tags: z.ZodOptional>; steeringMode: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; name: z.ZodNullable; status: z.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: z.ZodString; workflowInstanceId: z.ZodNullable; steeringMode: z.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: z.ZodNullable; tags: z.ZodArray; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, z.core.$strip>, "AGENT_NOT_FOUND" | "WORKFLOWS_REQUIRED" | "WORKFLOW_CREATE_FAILED", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/sessions", _standard_schema_spec0.StandardSchemaV1 | undefined, z.ZodArray; status: z.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: z.ZodString; workflowInstanceId: z.ZodNullable; steeringMode: z.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: z.ZodNullable; tags: z.ZodArray; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, z.core.$strip>>, string, "limit", _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/sessions/:sessionId", _standard_schema_spec0.StandardSchemaV1 | undefined, z.ZodObject<{ id: z.ZodString; name: z.ZodNullable; status: z.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: z.ZodString; workflowInstanceId: z.ZodNullable; steeringMode: z.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: z.ZodNullable; tags: z.ZodArray; createdAt: z.ZodDate; updatedAt: z.ZodDate; workflow: z.ZodObject<{ status: z.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; error: z.ZodOptional>; output: z.ZodOptional; }, z.core.$strip>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; textSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; thinkingSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"toolCall">; id: z.ZodString; name: z.ZodString; arguments: z.ZodRecord; thoughtSignature: z.ZodOptional; }, z.core.$strip>]>>]>; timestamp: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodArray; text: z.ZodString; textSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; thinkingSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"toolCall">; id: z.ZodString; name: z.ZodString; arguments: z.ZodRecord; thoughtSignature: z.ZodOptional; }, z.core.$strip>]>>; api: z.ZodString; provider: z.ZodString; model: z.ZodString; usage: z.ZodObject<{ input: z.ZodNumber; output: z.ZodNumber; cacheRead: z.ZodNumber; cacheWrite: z.ZodNumber; totalTokens: z.ZodNumber; cost: z.ZodObject<{ input: z.ZodNumber; output: z.ZodNumber; cacheRead: z.ZodNumber; cacheWrite: z.ZodNumber; total: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; stopReason: z.ZodString; errorMessage: z.ZodOptional; timestamp: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"toolResult">; toolCallId: z.ZodString; toolName: z.ZodString; content: z.ZodArray; text: z.ZodString; textSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; thinkingSignature: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"toolCall">; id: z.ZodString; name: z.ZodString; arguments: z.ZodRecord; thoughtSignature: z.ZodOptional; }, z.core.$strip>]>>; details: z.ZodOptional; isError: z.ZodBoolean; timestamp: z.ZodNumber; }, z.core.$strip>]>>; trace: z.ZodArray; }, z.core.$strip>>; summaries: z.ZodArray; summary: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/sessions/:sessionId/messages", z.ZodObject<{ text: z.ZodString; done: z.ZodOptional; steeringMode: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; }, z.core.$strip>, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string, _fragno_dev_db0.DatabaseRequestContext<_fragno_dev_db0.HooksMap>>]>; //#endregion export { piRoutesFactory }; //# sourceMappingURL=routes.d.ts.map