ChainGraph API Documentation / @badaitech/chaingraph-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<{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; }>;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?: ...;folderId?: ...;name: ...;tags?: ...; };meta:object;output:FlowMetadata; }>;delete:MutationProcedure<{input: {flowId: ...; };meta:object;output: {success: ...; }; }>;edit:MutationProcedure<{input: {description?: ...;flowId: ...;name?: ...;tags?: ...; };meta:object;output:Flow; }>;fork:MutationProcedure<{input: {flowId: ...;folderId?: ...;name?: ...; };meta:object;output:FlowMetadata; }>;get:QueryProcedure<{input: {flowId: ...; };meta:object;output:Flow; }>;getMeta:QueryProcedure<{input: {flowId: ...; };meta:object;output: {canFork: ...;createdAt: ...;description?: ...;folderId?: ...;forkRule?: ...;id?: ...;isPublic?: ...;metadata?: ...;name: ...;order?: ...;ownerID?: ...;parentId?: ...;schemaVersion?: ...;tags?: ...;updatedAt: ...;version?: ...; }; }>;list:QueryProcedure<{input:void;meta:object;output: ...[]; }>;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: ...; }; }>;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: ...; }; }>; }>>;folder: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<{create:MutationProcedure<{input: {color?: ...;description?: ...;name: ...;parentFolderId?: ...; };meta:object;output:FlowFolder; }>;delete:MutationProcedure<{input: {folderId: ...; };meta:object;output: {success: ...; }; }>;edit:MutationProcedure<{input: {color?: ...;description?: ...;folderId: ...;name?: ...; };meta:object;output:FlowFolder; }>;list:QueryProcedure<{input: ... | ...;meta:object;output: ...[]; }>;listWithFlows:QueryProcedure<{input: ... | ...;meta:object;output: {flows: ...;folders: ...;rootFolderId: ...; }; }>;move:MutationProcedure<{input: {folderId: ...;newOrder: ...;newParentFolderId: ...; };meta:object;output:FlowFolder; }>;moveFlow:MutationProcedure<{input: {flowId: ...;newFolderId: ...;newOrder: ...; };meta:object;output:FlowMetadata; }>; }>>;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: ...]: ...; }; }>; }>>; }>>>
Defined in: packages/chaingraph-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<{ 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; }>; 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?: ...; folderId?: ...; name: ...; tags?: ...; }; meta: object; output: FlowMetadata; }>; delete: MutationProcedure<{ input: { flowId: ...; }; meta: object; output: { success: ...; }; }>; edit: MutationProcedure<{ input: { description?: ...; flowId: ...; name?: ...; tags?: ...; }; meta: object; output: Flow; }>; fork: MutationProcedure<{ input: { flowId: ...; folderId?: ...; name?: ...; }; meta: object; output: FlowMetadata; }>; get: QueryProcedure<{ input: { flowId: ...; }; meta: object; output: Flow; }>; getMeta: QueryProcedure<{ input: { flowId: ...; }; meta: object; output: { canFork: ...; createdAt: ...; description?: ...; folderId?: ...; forkRule?: ...; id?: ...; isPublic?: ...; metadata?: ...; name: ...; order?: ...; ownerID?: ...; parentId?: ...; schemaVersion?: ...; tags?: ...; updatedAt: ...; version?: ...; }; }>; list: QueryProcedure<{ input: void; meta: object; output: ...[]; }>; 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: ...; }; }>; 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: ...; }; }>; }>>; folder: 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<{ create: MutationProcedure<{ input: { color?: ...; description?: ...; name: ...; parentFolderId?: ...; }; meta: object; output: FlowFolder; }>; delete: MutationProcedure<{ input: { folderId: ...; }; meta: object; output: { success: ...; }; }>; edit: MutationProcedure<{ input: { color?: ...; description?: ...; folderId: ...; name?: ...; }; meta: object; output: FlowFolder; }>; list: QueryProcedure<{ input: ... | ...; meta: object; output: ...[]; }>; listWithFlows: QueryProcedure<{ input: ... | ...; meta: object; output: { flows: ...; folders: ...; rootFolderId: ...; }; }>; move: MutationProcedure<{ input: { folderId: ...; newOrder: ...; newParentFolderId: ...; }; meta: object; output: FlowFolder; }>; moveFlow: MutationProcedure<{ input: { flowId: ...; newFolderId: ...; newOrder: ...; }; meta: object; output: FlowMetadata; }>; }>>; 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: ...]: ...; }; }>; }>>; }>>>