/** * This file was generated by @pikku/cli@0.12.54 */ /** * This provides the structure needed for typescript to be aware of routes and their return types */ import type { StreamWorkflowRunInput, StreamFunctionTestsOutput } from '@pikku/addon-console/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen' export type AgentApproveCallerInput = { agentName: string; runId: string; approvals: { toolCallId: string; approved: boolean; }[]; } export type AgentCallerInput = { agentName: string; message: string; threadId: string; resourceId: string; } export type AgentResumeCallerInput = { agentName: string; runId: string; toolCallId: string; approved: boolean; } export type AgentStreamCallerInput = { agentName: string; message: string; threadId: string; resourceId: string; context?: string; } export type AuthHandlerOutput = Promise | Promise export type DeleteAgentThreadInput = { threadId: string; resourceId?: string; } export type DeleteAgentThreadOutput = { deleted: boolean; } export type EdgeEchoInput = { message: string; } export type EdgeEchoOutput = { echoed: string; serverless: boolean; } export type GetAgentThreadMessagesInput = { threadId: string; resourceId?: string; } export type GetAgentThreadMessagesOutput = any[] export type GetAgentThreadRunsInput = { threadId: string; resourceId?: string; } export type GetAgentThreadRunsOutput = any[] export type GetAgentThreadsInput = { agentName?: string; resourceId?: string; limit?: number; offset?: number; } export type GetAgentThreadsOutput = any[] export type GetMessageInput = {} export type GetMessageOutput = { message: string; updatedAt: string; updatedBy: { email: string; name: string | null; } | null; } export type GetSessionInput = {} export type GetSessionOutput = { userId: string; email: string; name: string | null; } export type PikkuConsoleGetSecretInput = { secretId: string; } export type PikkuConsoleGetSecretOutput = { exists: boolean; value: unknown; } export type PikkuConsoleGetVariableInput = { variableId: string; } export type PikkuConsoleGetVariableOutput = { exists: boolean; value: unknown; } export type PikkuConsoleHasSecretInput = { secretId: string; } export type PikkuConsoleHasSecretOutput = { exists: boolean; } export type PikkuConsoleSetSecretInput = { secretId: string; value: unknown; } export type PikkuConsoleSetSecretOutput = { success: boolean; } export type PikkuConsoleSetVariableInput = { variableId: string; value: unknown; } export type PikkuConsoleSetVariableOutput = { success: boolean; } export type RemoteRPCHandlerInput = { rpcName: string; data?: unknown; } export type RpcCallerInput = { rpcName: string; data?: unknown; } export type SecretSchema_betterAuthSecret = string export type ServerCounterInput = {} export type ServerCounterOutput = { count: number; pid: number; } export type ServerUptimeInput = {} export type ServerUptimeOutput = { uptimeSeconds: number; nodeVersion: string; rssMb: number; } export type UpdateMessageInput = { message: string; } export type UpdateMessageOutput = { message: string; updatedAt: string; updatedBy: { email: string; name: string | null; } | null; } // The '& {}' is a workaround for not directly refering to a type since it confuses typescript export type ServerUptimeInputBody = ServerUptimeInput & {} export type ServerCounterInputBody = ServerCounterInput & {} export type AgentCallerInputParams = Pick & {} export type AgentCallerInputBody = Omit & {} export type AgentStreamCallerInputParams = Pick & {} export type AgentStreamCallerInputBody = Omit & {} export type AgentApproveCallerInputParams = Pick & {} export type AgentApproveCallerInputBody = Omit & {} export type AgentResumeCallerInputParams = Pick & {} export type AgentResumeCallerInputBody = Omit & {} export type StreamWorkflowRunInputParams = Pick & {} export type StreamWorkflowRunInputBody = Omit & {} export type RpcCallerInputParams = Pick & {} export type RpcCallerInputBody = Omit & {} export type RemoteRPCHandlerInputParams = Pick & {} export type RemoteRPCHandlerInputBody = Omit & {} interface HTTPWiringHandler { input: I; output: O; } export type HTTPWiringsMap = { readonly '/api/auth{/*splat}': { readonly GET: HTTPWiringHandler, readonly POST: HTTPWiringHandler, }, readonly '/workflow-run/:runId/stream': { readonly GET: HTTPWiringHandler, }, readonly '/function-tests/stream': { readonly GET: HTTPWiringHandler, }, readonly '/server/uptime': { readonly POST: HTTPWiringHandler, }, readonly '/server/counter': { readonly POST: HTTPWiringHandler, }, readonly '/rpc/agent/:agentName': { readonly POST: HTTPWiringHandler, }, readonly '/rpc/agent/:agentName/stream': { readonly POST: HTTPWiringHandler, }, readonly '/rpc/agent/:agentName/approve': { readonly POST: HTTPWiringHandler, }, readonly '/rpc/agent/:agentName/resume': { readonly POST: HTTPWiringHandler, }, readonly '/rpc/:rpcName': { readonly POST: HTTPWiringHandler, }, readonly '/remote/rpc/:rpcName': { readonly POST: HTTPWiringHandler, }, }; export type HTTPWiringHandlerOf = HTTPWiringsMap[HTTPWiring][Method] extends { input: infer I; output: infer O } ? HTTPWiringHandler : never; export type HTTPWiringsWithMethod = { [HTTPWiring in keyof HTTPWiringsMap]: Method extends keyof HTTPWiringsMap[HTTPWiring] ? HTTPWiring : never; }[keyof HTTPWiringsMap];