ChainGraph API Documentation / @badaitech/chaingraph-trpc / client / trpcReact
Variable: trpcReact
consttrpcReact:CreateTRPCReactBase<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: ...]: ...; }; }>; }>>; }>>,unknown> &DecorateRouterRecord<{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<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addFieldObjectPort:MutationProcedure<{input: {config?:any;flowId:string;key:string;nodeId:string;portId:string; };meta:object;output: {flowId:string;node:INode;nodeId:string; }; }>;addNode:MutationProcedure<{input: {flowId:string;metadata?: ... | ...;nodeType:string;portsConfig?: ... | ...;position: {x: ...;y: ...; }; };meta:object;output:INode; }>;appendElementArrayPort:MutationProcedure<{input: {flowId:string;nodeId:string;portId:string;value?:any; };meta:object;output: {flowId:string;node:INode;nodeId:string; }; }>;connectPorts:MutationProcedure<{input: {flowId:string;metadata?: ... | ...;sourceNodeId:string;sourcePortId:string;targetNodeId:string;targetPortId:string; };meta:object;output: {edgeId:string;metadata:EdgeMetadata;sourceNodeId:string;sourcePortId:string;targetNodeId:string;targetPortId:string; }; }>;create:MutationProcedure<{input: {description?: ... | ...;folderId?: ... | ... | ...;name:string;tags?: ... | ...; };meta:object;output:FlowMetadata; }>;delete:MutationProcedure<{input: {flowId:string; };meta:object;output: {success:boolean; }; }>;edit:MutationProcedure<{input: {description?: ... | ...;flowId:string;name?: ... | ...;tags?: ... | ...; };meta:object;output:Flow; }>;fork:MutationProcedure<{input: {flowId:string;folderId?: ... | ... | ...;name?: ... | ...; };meta:object;output:FlowMetadata; }>;get:QueryProcedure<{input: {flowId:string; };meta:object;output:Flow; }>;getMeta:QueryProcedure<{input: {flowId:string; };meta:object;output: {canFork:boolean;createdAt:Date;description?: ... | ...;folderId?: ... | ... | ...;forkRule?: ... | ...;id?: ... | ...;isPublic?: ... | ... | ...;metadata?: ... | ...;name:string;order?: ... | ...;ownerID?: ... | ...;parentId?: ... | ...;schemaVersion?: ... | ...;tags?: ... | ...;updatedAt:Date;version?: ... | ...; }; }>;list:QueryProcedure<{input:void;meta:object;output:object[]; }>;pasteNodes:MutationProcedure<{input: {clipboardData: {edges: ...;nodes: ...;timestamp?: ...; };flowId:string;pastePosition: {x: ...;y: ...; };virtualOrigin?: ... | ...; };meta:object;output: {createdEdges: ...[];createdNodes: ...[];edgeCount:number;nodeCount:number;nodeIdMapping: {[k: ...]: ...; };skippedEdges: ...[];success:boolean; }; }>;removeEdge:MutationProcedure<{input: {edgeId:string;flowId:string; };meta:object;output: {removedEdgeId:string;success:boolean; }; }>;removeElementArrayPort:MutationProcedure<{input: {flowId:string;index:number;nodeId:string;portId:string; };meta:object;output: {flowId:string;node:INode;nodeId:string; }; }>;removeFieldObjectPort:MutationProcedure<{input: {flowId:string;key:string;nodeId:string;portId:string; };meta:object;output: {flowId:string;node:INode;nodeId:string; }; }>;removeNode:MutationProcedure<{input: {flowId:string;nodeId:string; };meta:object;output: {removedNodeId:string;success:boolean; }; }>;setForkRule:MutationProcedure<{input: {flowId:string;forkRule?: ... | ...; };meta:object;output: {forkRule:Record<..., ...>;success:boolean; }; }>;setPublic:MutationProcedure<{input: {flowId:string;isPublic:boolean; };meta:object;output: {isPublic:boolean;success:boolean; }; }>;subscribeToEvents:SubscriptionProcedure<{input: {eventTypes?: ... | ...;flowId:string;lastEventId?: ... | ... | ...; };meta:object;output:AsyncIterable<TrackedData<...>>; }>;updateItemConfigArrayPort:MutationProcedure<{input: {flowId:string;itemConfig?:any;nodeId:string;portId:string; };meta:object;output: {flowId:string;node:INode;nodeId:string; }; }>;updateNodeParent:MutationProcedure<{input: {flowId:string;nodeId:string;parentNodeId?: ... | ...;position: {x: ...;y: ...; };version:number; };meta:object;output: {flowId:string;nodeId:string;parentNodeId: ... | ...;position: {x: ...;y: ...; };version:number; }; }>;updateNodePosition:MutationProcedure<{input: {flowId:string;nodeId:string;position: {x: ...;y: ...; };version:number; };meta:object;output: {flowId: ...;nodeId: ...;position: ...;requestedVersion?: ...;version: ...; } | {flowId: ...;nodeId: ...;position: ...;requestedVersion: ...;version: ...; }; }>;updateNodeTitle:MutationProcedure<{input: {flowId:string;nodeId:string;title?: ... | ...;version:number; };meta:object;output: {flowId:string;nodeId:string;title:string;version:number; }; }>;updateNodeUI:MutationProcedure<{input: {flowId:string;nodeId:string;ui: {dimensions?: ...;position?: ...;state?: ...;style?: ...;title?: ...; };version:number; };meta:object;output: {flowId:string;nodeId:string;ui: ... | ...;version:number; }; }>;updatePortUI:MutationProcedure<{input: {flowId:string;nodeId:string;nodeVersion:number;portId:string;ui:Record<..., ...>; };meta:object;output: {flowId:string;nodeId:string;port:IPort<...>; }; }>;updatePortValue:MutationProcedure<{input: {flowId:string;nodeId:string;nodeVersion:number;portId:string;value?:any; };meta:object;output: {flowId:string;nodeId:string;port:IPort<...>; }; }>; }>>;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<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{create:MutationProcedure<{input: {color?: ... | ...;description?: ... | ...;name:string;parentFolderId?: ... | ... | ...; };meta:object;output:FlowFolder; }>;delete:MutationProcedure<{input: {folderId:string; };meta:object;output: {success:boolean; }; }>;edit:MutationProcedure<{input: {color?: ... | ...;description?: ... | ...;folderId:string;name?: ... | ...; };meta:object;output:FlowFolder; }>;list:QueryProcedure<{input: {rootFolderId?: ...; } |undefined;meta:object;output:FlowFolder[]; }>;listWithFlows:QueryProcedure<{input: {rootFolderId?: ...; } |undefined;meta:object;output: {flows:any;folders: ...[];rootFolderId: ... | ...; }; }>;move:MutationProcedure<{input: {folderId:string;newOrder:number;newParentFolderId: ... | ...; };meta:object;output:FlowFolder; }>;moveFlow:MutationProcedure<{input: {flowId:string;newFolderId: ... | ...;newOrder:number; };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<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{addPromptToFlow:MutationProcedure<{input: {flowId:string;position: {x: ...;y: ...; };promptName:string;serverId:string; };meta:object;output:INode; }>;addResourceToFlow:MutationProcedure<{input: {flowId:string;position: {x: ...;y: ...; };resourceName:string;serverId:string; };meta:object;output:INode; }>;addToolToFlow:MutationProcedure<{input: {flowId:string;position: {x: ...;y: ...; };serverId:string;toolName:string; };meta:object;output:INode; }>;buildPromptNode:QueryProcedure<{input: {promptName:string;serverId:string; };meta:object;output:INode; }>;buildResourceNode:QueryProcedure<{input: {resourceName:string;serverId:string; };meta:object;output:INode; }>;buildToolNode:QueryProcedure<{input: {serverId:string;toolName:string; };meta:object;output:INode; }>;createServer:MutationProcedure<{input: {authHeaders: ...[];title:string;url:string; };meta:object;output:MCPServer; }>;deleteServer:MutationProcedure<{input: {id:string; };meta:object;output: {success:true; }; }>;getAllNodesForServer:QueryProcedure<{input: {serverId:string; };meta:object;output:AllNodesResponse; }>;listServers:QueryProcedure<{input:void;meta:object;output:MCPServer[]; }>;serverCapabilities:QueryProcedure<{input: {serverId:string; };meta:object;output:ServerCapabilities; }>;updateServer:MutationProcedure<{input: {authHeaders: ...[];id:string;title:string;url:string; };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<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getCategories:QueryProcedure<{input:void;meta:object;output:string[]; }>;getCategorizedNodes:QueryProcedure<{input:void;meta:object;output:CategorizedNodes[]; }>;getNodesByCategory:QueryProcedure<{input:string;meta:object;output:CategorizedNodes|undefined; }>;getNodeType:QueryProcedure<{input:string;meta:object;output:INode; }>;listAvailableTypes:QueryProcedure<{input:void;meta:object;output:NodeMetadataWithPorts[]; }>;searchNodes:QueryProcedure<{input:string;meta:object;output:CategorizedNodes[]; }>; }>>;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<any,string> |null; };message:string; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getSecretTypes:QueryProcedure<{input:void;meta:object;output: {[k:string]:object; }; }>; }>>; }>>
Defined in: packages/chaingraph-trpc/client/index.ts:21