PersistentAI API Documentation / @persistentai/fireflow-trpc / client / useTRPCClient
Variable: useTRPCClient()
useTRPCClient: () =>
TRPCClient<BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{edge:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{updateAnchors:MutationProcedure<{input: {anchors: ...;edgeId: ...;flowId: ...;version: ...; };meta:object;output: {anchors: ...;edgeId: ...;stale: ...;version: ...; }; }>; }>>;flow:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addFieldObjectPort:MutationProcedure<{input: {config?: ...;flowId: ...;key: ...;nodeId: ...;portId: ...; };meta:object;output: {flowId: ...;node: ...;nodeId: ...; }; }>;addNode:MutationProcedure<{input: {flowId: ...;metadata?: ...;nodeType: ...;portsConfig?: ...;position: ...; };meta:object;output:INode; }>;addNodeFromTemplate:MutationProcedure<{input: {flowId: ...;position: ...;targetNodeType: ...;templateRef: ...; };meta:object;output:INode; }>;appendElementArrayPort:MutationProcedure<{input: {flowId: ...;nodeId: ...;portId: ...;value?: ...; };meta:object;output: {flowId: ...;node: ...;nodeId: ...; }; }>;connectPorts:MutationProcedure<{input: {flowId: ...;metadata?: ...;sourceNodeId: ...;sourcePortId: ...;targetNodeId: ...;targetPortId: ...; };meta:object;output: {edgeId: ...;metadata: ...;sourceNodeId: ...;sourcePortId: ...;targetNodeId: ...;targetPortId: ...; }; }>;create:MutationProcedure<{input: {description?: ...;name: ...;tags?: ...; };meta:object;output:FlowMetadata; }>;createAtPath:MutationProcedure<{input: {branchName?: ...;description?: ...;name: ...;parentPath: ...;tags?: ...;workspaceId: ...; };meta:object;output: {createdAt: ...;description: ...;flowId: ...;name: ...;path: ...;updatedAt: ...; }; }>;delete:MutationProcedure<{input: {flowId: ...; };meta:object;output: {success: ...; }; }>;deleteAtPath:MutationProcedure<{input: {branchName?: ...;flowPath: ...;workspaceId: ...; };meta:object;output: {success: ...; }; }>;edit:MutationProcedure<{input: {description?: ...;flowId: ...;name?: ...;tags?: ...; };meta:object;output:Flow; }>;fork:MutationProcedure<{input: {flowId: ...;name?: ...; };meta:object;output:FlowMetadata; }>;get:QueryProcedure<{input: {flowId: ...; };meta:object;output:Flow; }>;getByRef:QueryProcedure<{input: {ref: ...; };meta:object;output:IFlow; }>;getMeta:QueryProcedure<{input: {flowId: ...; };meta:object;output: {canFork: ...;createdAt: ...;description?: ...;forkRule?: ...;id?: ...;isPublic?: ...;metadata?: ...;name: ...;ownerID?: ...;parentId?: ...;schemaVersion?: ...;tags?: ...;updatedAt: ...;version?: ...; }; }>;list:QueryProcedure<{input:void;meta:object;output: ...[]; }>;openFromVfs:MutationProcedure<{input: {ref: ...; };meta:object;output: {description: ...;flowId: ...;isNew: ...;name: ...;path: ...; }; }>;pasteNodes:MutationProcedure<{input: {clipboardData: ...;flowId: ...;pastePosition: ...;virtualOrigin?: ...; };meta:object;output: {createdEdges: ...;createdNodes: ...;edgeCount: ...;nodeCount: ...;nodeIdMapping: ...;skippedEdges: ...;success: ...; }; }>;removeEdge:MutationProcedure<{input: {edgeId: ...;flowId: ...; };meta:object;output: {removedEdgeId: ...;success: ...; }; }>;removeElementArrayPort:MutationProcedure<{input: {flowId: ...;index: ...;nodeId: ...;portId: ...; };meta:object;output: {flowId: ...;node: ...;nodeId: ...; }; }>;removeFieldObjectPort:MutationProcedure<{input: {flowId: ...;key: ...;nodeId: ...;portId: ...; };meta:object;output: {flowId: ...;node: ...;nodeId: ...; }; }>;removeNode:MutationProcedure<{input: {flowId: ...;nodeId: ...; };meta:object;output: {removedNodeId: ...;success: ...; }; }>;saveAtPath:MutationProcedure<{input: {branchName?: ...;description?: ...;flowId: ...;flowPath: ...;name?: ...;tags?: ...;workspaceId: ...; };meta:object;output: {derivedEventsCount: ...;description: ...;flowId: ...;name: ...;path: ...;updatedAt: ...; }; }>;setForkRule:MutationProcedure<{input: {flowId: ...;forkRule?: ...; };meta:object;output: {forkRule: ...;success: ...; }; }>;setPublic:MutationProcedure<{input: {flowId: ...;isPublic: ...; };meta:object;output: {isPublic: ...;success: ...; }; }>;subscribeToEvents:SubscriptionProcedure<{input: {eventTypes?: ...;flowId: ...;lastEventId?: ...; };meta:object;output:AsyncIterable<...>; }>;updateItemConfigArrayPort:MutationProcedure<{input: {flowId: ...;itemConfig?: ...;nodeId: ...;portId: ...; };meta:object;output: {flowId: ...;node: ...;nodeId: ...; }; }>;updateNodeParent:MutationProcedure<{input: {flowId: ...;nodeId: ...;parentNodeId?: ...;position: ...;version: ...; };meta:object;output: {flowId: ...;nodeId: ...;parentNodeId: ...;position: ...;version: ...; }; }>;updateNodePosition:MutationProcedure<{input: {flowId: ...;nodeId: ...;position: ...;version: ...; };meta:object;output: ... | ...; }>;updateNodeTitle:MutationProcedure<{input: {flowId: ...;nodeId: ...;title?: ...;version: ...; };meta:object;output: {flowId: ...;nodeId: ...;title: ...;version: ...; }; }>;updateNodeUI:MutationProcedure<{input: {flowId: ...;nodeId: ...;ui: ...;version: ...; };meta:object;output: {flowId: ...;nodeId: ...;ui: ...;version: ...; }; }>;updatePortUI:MutationProcedure<{input: {flowId: ...;nodeId: ...;nodeVersion: ...;portId: ...;ui: ...; };meta:object;output: {flowId: ...;nodeId: ...;port: ...; }; }>;updatePortValue:MutationProcedure<{input: {flowId: ...;nodeId: ...;nodeVersion: ...;portId: ...;value?: ...; };meta:object;output: {flowId: ...;nodeId: ...;port: ...; }; }>; }>>;mcp:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addPromptToFlow:MutationProcedure<{input: {flowId: ...;position: ...;promptName: ...;serverId: ...; };meta:object;output:INode; }>;addResourceToFlow:MutationProcedure<{input: {flowId: ...;position: ...;resourceName: ...;serverId: ...; };meta:object;output:INode; }>;addToolToFlow:MutationProcedure<{input: {flowId: ...;position: ...;serverId: ...;toolName: ...; };meta:object;output:INode; }>;buildPromptNode:QueryProcedure<{input: {promptName: ...;serverId: ...; };meta:object;output:INode; }>;buildResourceNode:QueryProcedure<{input: {resourceName: ...;serverId: ...; };meta:object;output:INode; }>;buildToolNode:QueryProcedure<{input: {serverId: ...;toolName: ...; };meta:object;output:INode; }>;createServer:MutationProcedure<{input: {authHeaders: ...;title: ...;url: ...; };meta:object;output:MCPServer; }>;deleteServer:MutationProcedure<{input: {id: ...; };meta:object;output: {success: ...; }; }>;getAllNodesForServer:QueryProcedure<{input: {serverId: ...; };meta:object;output:AllNodesResponse; }>;listServers:QueryProcedure<{input:void;meta:object;output: ...[]; }>;serverCapabilities:QueryProcedure<{input: {serverId: ...; };meta:object;output:ServerCapabilities; }>;updateServer:MutationProcedure<{input: {authHeaders: ...;id: ...;title: ...;url: ...; };meta:object;output:MCPServer; }>; }>>;nodeRegistry:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getCategories:QueryProcedure<{input:void;meta:object;output: ...[]; }>;getCategorizedNodes:QueryProcedure<{input:void;meta:object;output: ...[]; }>;getNodesByCategory:QueryProcedure<{input:string;meta:object;output: ... | ...; }>;getNodeType:QueryProcedure<{input:string;meta:object;output:INode; }>;listAvailableTypes:QueryProcedure<{input:void;meta:object;output: ...[]; }>;searchNodes:QueryProcedure<{input:string;meta:object;output: ...[]; }>; }>>;secrets:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getSecretTypes:QueryProcedure<{input:void;meta:object;output: {[k: ...]: ...; }; }>; }>>;users:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{demo:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{createDemoSession: ...; }>>;profile:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getDemoExpiration: ...;getProfile: ...;isDemo: ...;listExternalAccounts: ...; }>>; }>>;vfs:BuiltRouter<{ctx:AppContext;errorShape: {code:TRPC_ERROR_CODE_NUMBER;data: {code:"PARSE_ERROR"|"BAD_REQUEST"|"INTERNAL_SERVER_ERROR"|"NOT_IMPLEMENTED"|"BAD_GATEWAY"|"SERVICE_UNAVAILABLE"|"GATEWAY_TIMEOUT"|"UNAUTHORIZED"|"PAYMENT_REQUIRED"|"FORBIDDEN"|"NOT_FOUND"|"METHOD_NOT_SUPPORTED"|"TIMEOUT"|"CONFLICT"|"PRECONDITION_FAILED"|"PAYLOAD_TOO_LARGE"|"UNSUPPORTED_MEDIA_TYPE"|"UNPROCESSABLE_CONTENT"|"PRECONDITION_REQUIRED"|"TOO_MANY_REQUESTS"|"CLIENT_CLOSED_REQUEST";httpStatus:number;path?:string;stack?:string;zodError:typeToFlattenedError<..., ...> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{confirmation:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{respond: ...; }>>;file:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{commitFile: ...;createDirectory: ...;createTyped: ...;fileDelete: ...;getDownloadUrl: ...;getUploadUrl: ...;info: ...;list: ...;listChildren: ...;move: ...;write: ...; }>>;fileType:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{list: ...; }>>;git:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{checkout: ...;commit: ...;createBranch: ...;deleteBranch: ...;diff: ...;listBranches: ...;log: ...;merge: ...;status: ...; }>>;node:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{read: ...; }>>;subscription:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{events: ...; }>>;upload:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{abort: ...;complete: ...;initiate: ...; }>>;workspace:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addCollaborator: ...;create: ...;get: ...;getPersonal: ...;list: ...;listCollaborators: ...;removeCollaborator: ...;update: ...;workspaceDelete: ...; }>>; }>>; }>>>
Defined in: packages/fireflow-trpc/client/trpc.ts:112
Returns
TRPCClient<BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<any, string> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ edge: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ updateAnchors: MutationProcedure<{ input: { anchors: ...; edgeId: ...; flowId: ...; version: ...; }; meta: object; output: { anchors: ...; edgeId: ...; stale: ...; version: ...; }; }>; }>>; flow: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ addFieldObjectPort: MutationProcedure<{ input: { config?: ...; flowId: ...; key: ...; nodeId: ...; portId: ...; }; meta: object; output: { flowId: ...; node: ...; nodeId: ...; }; }>; addNode: MutationProcedure<{ input: { flowId: ...; metadata?: ...; nodeType: ...; portsConfig?: ...; position: ...; }; meta: object; output: INode; }>; addNodeFromTemplate: MutationProcedure<{ input: { flowId: ...; position: ...; targetNodeType: ...; templateRef: ...; }; meta: object; output: INode; }>; appendElementArrayPort: MutationProcedure<{ input: { flowId: ...; nodeId: ...; portId: ...; value?: ...; }; meta: object; output: { flowId: ...; node: ...; nodeId: ...; }; }>; connectPorts: MutationProcedure<{ input: { flowId: ...; metadata?: ...; sourceNodeId: ...; sourcePortId: ...; targetNodeId: ...; targetPortId: ...; }; meta: object; output: { edgeId: ...; metadata: ...; sourceNodeId: ...; sourcePortId: ...; targetNodeId: ...; targetPortId: ...; }; }>; create: MutationProcedure<{ input: { description?: ...; name: ...; tags?: ...; }; meta: object; output: FlowMetadata; }>; createAtPath: MutationProcedure<{ input: { branchName?: ...; description?: ...; name: ...; parentPath: ...; tags?: ...; workspaceId: ...; }; meta: object; output: { createdAt: ...; description: ...; flowId: ...; name: ...; path: ...; updatedAt: ...; }; }>; delete: MutationProcedure<{ input: { flowId: ...; }; meta: object; output: { success: ...; }; }>; deleteAtPath: MutationProcedure<{ input: { branchName?: ...; flowPath: ...; workspaceId: ...; }; meta: object; output: { success: ...; }; }>; edit: MutationProcedure<{ input: { description?: ...; flowId: ...; name?: ...; tags?: ...; }; meta: object; output: Flow; }>; fork: MutationProcedure<{ input: { flowId: ...; name?: ...; }; meta: object; output: FlowMetadata; }>; get: QueryProcedure<{ input: { flowId: ...; }; meta: object; output: Flow; }>; getByRef: QueryProcedure<{ input: { ref: ...; }; meta: object; output: IFlow; }>; getMeta: QueryProcedure<{ input: { flowId: ...; }; meta: object; output: { canFork: ...; createdAt: ...; description?: ...; forkRule?: ...; id?: ...; isPublic?: ...; metadata?: ...; name: ...; ownerID?: ...; parentId?: ...; schemaVersion?: ...; tags?: ...; updatedAt: ...; version?: ...; }; }>; list: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; openFromVfs: MutationProcedure<{ input: { ref: ...; }; meta: object; output: { description: ...; flowId: ...; isNew: ...; name: ...; path: ...; }; }>; pasteNodes: MutationProcedure<{ input: { clipboardData: ...; flowId: ...; pastePosition: ...; virtualOrigin?: ...; }; meta: object; output: { createdEdges: ...; createdNodes: ...; edgeCount: ...; nodeCount: ...; nodeIdMapping: ...; skippedEdges: ...; success: ...; }; }>; removeEdge: MutationProcedure<{ input: { edgeId: ...; flowId: ...; }; meta: object; output: { removedEdgeId: ...; success: ...; }; }>; removeElementArrayPort: MutationProcedure<{ input: { flowId: ...; index: ...; nodeId: ...; portId: ...; }; meta: object; output: { flowId: ...; node: ...; nodeId: ...; }; }>; removeFieldObjectPort: MutationProcedure<{ input: { flowId: ...; key: ...; nodeId: ...; portId: ...; }; meta: object; output: { flowId: ...; node: ...; nodeId: ...; }; }>; removeNode: MutationProcedure<{ input: { flowId: ...; nodeId: ...; }; meta: object; output: { removedNodeId: ...; success: ...; }; }>; saveAtPath: MutationProcedure<{ input: { branchName?: ...; description?: ...; flowId: ...; flowPath: ...; name?: ...; tags?: ...; workspaceId: ...; }; meta: object; output: { derivedEventsCount: ...; description: ...; flowId: ...; name: ...; path: ...; updatedAt: ...; }; }>; setForkRule: MutationProcedure<{ input: { flowId: ...; forkRule?: ...; }; meta: object; output: { forkRule: ...; success: ...; }; }>; setPublic: MutationProcedure<{ input: { flowId: ...; isPublic: ...; }; meta: object; output: { isPublic: ...; success: ...; }; }>; subscribeToEvents: SubscriptionProcedure<{ input: { eventTypes?: ...; flowId: ...; lastEventId?: ...; }; meta: object; output: AsyncIterable<...>; }>; updateItemConfigArrayPort: MutationProcedure<{ input: { flowId: ...; itemConfig?: ...; nodeId: ...; portId: ...; }; meta: object; output: { flowId: ...; node: ...; nodeId: ...; }; }>; updateNodeParent: MutationProcedure<{ input: { flowId: ...; nodeId: ...; parentNodeId?: ...; position: ...; version: ...; }; meta: object; output: { flowId: ...; nodeId: ...; parentNodeId: ...; position: ...; version: ...; }; }>; updateNodePosition: MutationProcedure<{ input: { flowId: ...; nodeId: ...; position: ...; version: ...; }; meta: object; output: ... | ...; }>; updateNodeTitle: MutationProcedure<{ input: { flowId: ...; nodeId: ...; title?: ...; version: ...; }; meta: object; output: { flowId: ...; nodeId: ...; title: ...; version: ...; }; }>; updateNodeUI: MutationProcedure<{ input: { flowId: ...; nodeId: ...; ui: ...; version: ...; }; meta: object; output: { flowId: ...; nodeId: ...; ui: ...; version: ...; }; }>; updatePortUI: MutationProcedure<{ input: { flowId: ...; nodeId: ...; nodeVersion: ...; portId: ...; ui: ...; }; meta: object; output: { flowId: ...; nodeId: ...; port: ...; }; }>; updatePortValue: MutationProcedure<{ input: { flowId: ...; nodeId: ...; nodeVersion: ...; portId: ...; value?: ...; }; meta: object; output: { flowId: ...; nodeId: ...; port: ...; }; }>; }>>; mcp: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ addPromptToFlow: MutationProcedure<{ input: { flowId: ...; position: ...; promptName: ...; serverId: ...; }; meta: object; output: INode; }>; addResourceToFlow: MutationProcedure<{ input: { flowId: ...; position: ...; resourceName: ...; serverId: ...; }; meta: object; output: INode; }>; addToolToFlow: MutationProcedure<{ input: { flowId: ...; position: ...; serverId: ...; toolName: ...; }; meta: object; output: INode; }>; buildPromptNode: QueryProcedure<{ input: { promptName: ...; serverId: ...; }; meta: object; output: INode; }>; buildResourceNode: QueryProcedure<{ input: { resourceName: ...; serverId: ...; }; meta: object; output: INode; }>; buildToolNode: QueryProcedure<{ input: { serverId: ...; toolName: ...; }; meta: object; output: INode; }>; createServer: MutationProcedure<{ input: { authHeaders: ...; title: ...; url: ...; }; meta: object; output: MCPServer; }>; deleteServer: MutationProcedure<{ input: { id: ...; }; meta: object; output: { success: ...; }; }>; getAllNodesForServer: QueryProcedure<{ input: { serverId: ...; }; meta: object; output: AllNodesResponse; }>; listServers: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; serverCapabilities: QueryProcedure<{ input: { serverId: ...; }; meta: object; output: ServerCapabilities; }>; updateServer: MutationProcedure<{ input: { authHeaders: ...; id: ...; title: ...; url: ...; }; meta: object; output: MCPServer; }>; }>>; nodeRegistry: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ getCategories: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; getCategorizedNodes: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; getNodesByCategory: QueryProcedure<{ input: string; meta: object; output: ... | ...; }>; getNodeType: QueryProcedure<{ input: string; meta: object; output: INode; }>; listAvailableTypes: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; searchNodes: QueryProcedure<{ input: string; meta: object; output: ...[]; }>; }>>; secrets: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ getSecretTypes: QueryProcedure<{ input: void; meta: object; output: {[k: ...]: ...; }; }>; }>>; users: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ demo: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ createDemoSession: ...; }>>; profile: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ getDemoExpiration: ...; getProfile: ...; isDemo: ...; listExternalAccounts: ...; }>>; }>>; vfs: BuiltRouter<{ ctx: AppContext; errorShape: { code: TRPC_ERROR_CODE_NUMBER; data: { code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "BAD_GATEWAY" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "UNAUTHORIZED" | "PAYMENT_REQUIRED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "PAYLOAD_TOO_LARGE" | "UNSUPPORTED_MEDIA_TYPE" | "UNPROCESSABLE_CONTENT" | "PRECONDITION_REQUIRED" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string; stack?: string; zodError: typeToFlattenedError<..., ...> | null; }; message: string; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ confirmation: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ respond: ...; }>>; file: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ commitFile: ...; createDirectory: ...; createTyped: ...; fileDelete: ...; getDownloadUrl: ...; getUploadUrl: ...; info: ...; list: ...; listChildren: ...; move: ...; write: ...; }>>; fileType: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ list: ...; }>>; git: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ checkout: ...; commit: ...; createBranch: ...; deleteBranch: ...; diff: ...; listBranches: ...; log: ...; merge: ...; status: ...; }>>; node: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ read: ...; }>>; subscription: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ events: ...; }>>; upload: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ abort: ...; complete: ...; initiate: ...; }>>; workspace: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ addCollaborator: ...; create: ...; get: ...; getPersonal: ...; list: ...; listCollaborators: ...; removeCollaborator: ...; update: ...; workspaceDelete: ...; }>>; }>>; }>>>