/** * This file was generated by @pikku/cli@0.12.76 */ /** * This provides the structure needed for typescript to be aware of routes and their return types */ import type { StubCall } from '.bun/@pikku+core@0.12.57/node_modules/@pikku/core/dist/services/stub-tracker' import type { StreamWorkflowRunInput } from '.bun/@pikku+addon-console@0.12.26+8a6fcc78e6b267a5/node_modules/@pikku/addon-console/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen' import type { WorkflowRunStatus } from '.bun/@pikku+core@0.12.57/node_modules/@pikku/core/dist/wirings/workflow/workflow.types' 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 | undefined; } export type AuthHandlerOutput = Promise | Promise export type DeleteAgentThreadInput = { threadId: string; resourceId?: string | undefined; } export type DeleteAgentThreadOutput = { deleted: boolean; } export type GetAgentThreadMessagesInput = { threadId: string; resourceId?: string | undefined; } export type GetAgentThreadMessagesOutput = any[] export type GetAgentThreadRunsInput = { threadId: string; resourceId?: string | undefined; } export type GetAgentThreadRunsOutput = any[] export type GetAgentThreadsInput = { agentName?: string | undefined; resourceId?: string | undefined; limit?: number | undefined; offset?: number | undefined; } export type GetAgentThreadsOutput = any[] export type GetSessionInput = {} export type GetSessionOutput = { userId: string; email: string; name: string | null; } export type GraphStarterInput = { workflowName: string; nodeId: string; data?: unknown; } export type GraphStarterOutput = { runId: string; } 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 PikkuScenarioGetStubCallsInput = { service?: string | undefined; } export type PikkuScenarioGetStubCallsOutput = StubCall[] export type PikkuScenarioResetLiveCoverageOutput = { enabled: boolean; } export type PikkuScenarioResetStubsOutput = { enabled: boolean; } export type RealtimeEventStreamInput = { topic: string; } export type RealtimeSubscribeInput = { topic: string; } export type RealtimeUnsubscribeInput = { topic: string; } export type RpcCallerInput = { rpcName: string; data?: unknown; } export type SecretSchema_betterAuthSecret = string export type SessionHealthScenarioOutput = { email: string; userId: string; } export type WorkflowRunnerInput = { workflowName: string; data?: unknown; } export type WorkflowStarterInput = { workflowName: string; data?: unknown; } export type WorkflowStarterOutput = { runId: string; } export type WorkflowStatusCheckerInput = { workflowName: string; runId: string; } export type WorkflowStatusStreamFullInput = { workflowName: string; runId: string; } export type WorkflowStatusStreamInput = { workflowName: string; runId: string; } // The '& {}' is a workaround for not directly refering to a type since it confuses typescript 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 RealtimeEventStreamInputParams = Pick & {} export type RealtimeEventStreamInputBody = Omit & {} export type RpcCallerInputParams = Pick & {} export type RpcCallerInputBody = Omit & {} export type WorkflowStarterInputParams = Pick & {} export type WorkflowStarterInputBody = Omit & {} export type WorkflowRunnerInputParams = Pick & {} export type WorkflowRunnerInputBody = Omit & {} export type WorkflowStatusCheckerInputParams = Pick & {} export type WorkflowStatusCheckerInputBody = Omit & {} export type WorkflowStatusStreamInputParams = Pick & {} export type WorkflowStatusStreamInputBody = Omit & {} export type WorkflowStatusStreamFullInputParams = Pick & {} export type WorkflowStatusStreamFullInputBody = Omit & {} export type GraphStarterInputParams = Pick & {} export type GraphStarterInputBody = 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 '/events/:topic': { readonly GET: HTTPWiringHandler, }, readonly '/workflow/:workflowName/status/:runId': { readonly GET: HTTPWiringHandler, }, readonly '/workflow/:workflowName/status/:runId/stream': { readonly GET: HTTPWiringHandler, }, readonly '/workflow/:workflowName/status/:runId/stream/full': { readonly GET: 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 '/workflow/:workflowName/start': { readonly POST: HTTPWiringHandler, }, readonly '/workflow/:workflowName/run': { readonly POST: HTTPWiringHandler, }, readonly '/workflow/:workflowName/graph/:nodeId': { 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];