PersistentAI API Documentation / @persistent-ai/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<{app: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<{authTelegramSession:MutationProcedure<{input: {appId: ...;initData: ...; };meta:object;output: {token: ...;userId: ...; }; }>;createAtPath:MutationProcedure<{input: {authMode?: ...;branchName?: ...;description?: ...;name: ...;parentPath: ...;workspaceId: ...; };meta:object;output: {appId: ...;createdAt: ...;flowId: ...;name: ...;path: ...; }; }>;issueAuthCode:MutationProcedure<{input: {appId: ...;codeChallenge: ...;codeChallengeMethod?: ...;redirectUri: ...; };meta:object;output: {code: ...; }; }>;issueToken:MutationProcedure<{input: {path: ...;ref: ...;workspaceId: ...; };meta:object;output: {token: ...;userId: ...; }; }>;resolve:QueryProcedure<{input: {path: ...;ref: ...;workspaceId: ...; };meta:object;output: {flowId: ...;manifest: ...;ownerId: ...;workspaceVisibility: ...; }; }>;resolveById:QueryProcedure<{input: {appId: ...; };meta:object;output: {flowId: ...;manifest: ...;path: ...;ref: ...;workspaceId: ...;workspaceVisibility: ...; }; }>;updateManifest:MutationProcedure<{input: {branch?: ...;path: ...;updates: ...;workspaceId: ...; };meta:object;output: {manifest: ...; }; }>; }>>;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; }>;addSecretNodeFromVfs:MutationProcedure<{input: {flowId: ...;position: ...;secretRef: ...; };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: ...; }; }>;setNodeToolMode:MutationProcedure<{input: {flowId: ...;nodeId: ...;toolMode: ...;version: ...; };meta:object;output: {flowId: ...;nodeId: ...;toolMode: ...;version: ...; }; }>;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: ...]: ...; }; }>;vault:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{create: ...;delete: ...;exists: ...;get: ...;list: ...;update: ...; }>>; }>>;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<{auth:BuiltRouter<{ctx:AppContext;errorShape: {code: ...;data: ...;message: ...; };meta:object;transformer:true; },DecorateCreateRouterOptions<{getNonce: ...;getProviders: ...;verifyEvm: ...;verifyTelegram: ...;verifyTelegramMiniApp: ...;verifyTon: ...; }>>;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:212
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<{ app: 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<{ authTelegramSession: MutationProcedure<{ input: { appId: ...; initData: ...; }; meta: object; output: { token: ...; userId: ...; }; }>; createAtPath: MutationProcedure<{ input: { authMode?: ...; branchName?: ...; description?: ...; name: ...; parentPath: ...; workspaceId: ...; }; meta: object; output: { appId: ...; createdAt: ...; flowId: ...; name: ...; path: ...; }; }>; issueAuthCode: MutationProcedure<{ input: { appId: ...; codeChallenge: ...; codeChallengeMethod?: ...; redirectUri: ...; }; meta: object; output: { code: ...; }; }>; issueToken: MutationProcedure<{ input: { path: ...; ref: ...; workspaceId: ...; }; meta: object; output: { token: ...; userId: ...; }; }>; resolve: QueryProcedure<{ input: { path: ...; ref: ...; workspaceId: ...; }; meta: object; output: { flowId: ...; manifest: ...; ownerId: ...; workspaceVisibility: ...; }; }>; resolveById: QueryProcedure<{ input: { appId: ...; }; meta: object; output: { flowId: ...; manifest: ...; path: ...; ref: ...; workspaceId: ...; workspaceVisibility: ...; }; }>; updateManifest: MutationProcedure<{ input: { branch?: ...; path: ...; updates: ...; workspaceId: ...; }; meta: object; output: { manifest: ...; }; }>; }>>; 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; }>; addSecretNodeFromVfs: MutationProcedure<{ input: { flowId: ...; position: ...; secretRef: ...; }; 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: ...; }; }>; setNodeToolMode: MutationProcedure<{ input: { flowId: ...; nodeId: ...; toolMode: ...; version: ...; }; meta: object; output: { flowId: ...; nodeId: ...; toolMode: ...; version: ...; }; }>; 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: ...]: ...; }; }>; vault: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ create: ...; delete: ...; exists: ...; get: ...; list: ...; update: ...; }>>; }>>; 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<{ auth: BuiltRouter<{ ctx: AppContext; errorShape: { code: ...; data: ...; message: ...; }; meta: object; transformer: true; }, DecorateCreateRouterOptions<{ getNonce: ...; getProviders: ...; verifyEvm: ...; verifyTelegram: ...; verifyTelegramMiniApp: ...; verifyTon: ...; }>>; 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: ...; }>>; }>>; }>>>