@stigmer/protos 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +35 -0
- package/ai/stigmer/agentic/agent/v1/api_pb.d.ts +53 -0
- package/ai/stigmer/agentic/agent/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/agent/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/command_connect.d.ts +60 -0
- package/ai/stigmer/agentic/agent/v1/command_connect.js +66 -0
- package/ai/stigmer/agentic/agent/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/command_pb.d.ts +60 -0
- package/ai/stigmer/agentic/agent/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/agent/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/io_pb.d.ts +22 -0
- package/ai/stigmer/agentic/agent/v1/io_pb.js +15 -0
- package/ai/stigmer/agentic/agent/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/query_connect.d.ts +32 -0
- package/ai/stigmer/agentic/agent/v1/query_connect.js +38 -0
- package/ai/stigmer/agentic/agent/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/query_pb.d.ts +35 -0
- package/ai/stigmer/agentic/agent/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/agent/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/spec_pb.d.ts +373 -0
- package/ai/stigmer/agentic/agent/v1/spec_pb.js +38 -0
- package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/agent/v1/status_pb.d.ts +34 -0
- package/ai/stigmer/agentic/agent/v1/status_pb.js +15 -0
- package/ai/stigmer/agentic/agent/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +296 -0
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +35 -0
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/approval_pb.d.ts +206 -0
- package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js +19 -0
- package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.d.ts +91 -0
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js +16 -0
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.d.ts +413 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +419 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +407 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +21 -0
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/context_pb.d.ts +403 -0
- package/ai/stigmer/agentic/agentexecution/v1/context_pb.js +30 -0
- package/ai/stigmer/agentic/agentexecution/v1/context_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +526 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +538 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +1335 -0
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +148 -0
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +316 -0
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +27 -0
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +146 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +152 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +142 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +19 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +562 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +31 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/subagent_pb.d.ts +129 -0
- package/ai/stigmer/agentic/agentexecution/v1/subagent_pb.js +20 -0
- package/ai/stigmer/agentic/agentexecution/v1/subagent_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +413 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +24 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/api_pb.d.ts +52 -0
- package/ai/stigmer/agentic/agentinstance/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/agentinstance/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_connect.d.ts +71 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_connect.js +77 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_pb.d.ts +71 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_pb.js +20 -0
- package/ai/stigmer/agentic/agentinstance/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.d.ts +74 -0
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js +27 -0
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.d.ts +46 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.js +52 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.d.ts +48 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.d.ts +42 -0
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js +16 -0
- package/ai/stigmer/agentic/agentinstance/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/api_pb.d.ts +54 -0
- package/ai/stigmer/agentic/environment/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/environment/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.d.ts +56 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.js +62 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/command_pb.d.ts +56 -0
- package/ai/stigmer/agentic/environment/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/environment/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/io_pb.d.ts +22 -0
- package/ai/stigmer/agentic/environment/v1/io_pb.js +15 -0
- package/ai/stigmer/agentic/environment/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/query_connect.d.ts +32 -0
- package/ai/stigmer/agentic/environment/v1/query_connect.js +38 -0
- package/ai/stigmer/agentic/environment/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/query_pb.d.ts +34 -0
- package/ai/stigmer/agentic/environment/v1/query_pb.js +19 -0
- package/ai/stigmer/agentic/environment/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/environment/v1/spec_pb.d.ts +79 -0
- package/ai/stigmer/agentic/environment/v1/spec_pb.js +19 -0
- package/ai/stigmer/agentic/environment/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/api_pb.d.ts +54 -0
- package/ai/stigmer/agentic/executioncontext/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/executioncontext/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_connect.d.ts +46 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_connect.js +52 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_pb.d.ts +47 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_pb.js +20 -0
- package/ai/stigmer/agentic/executioncontext/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/io_pb.d.ts +44 -0
- package/ai/stigmer/agentic/executioncontext/v1/io_pb.js +20 -0
- package/ai/stigmer/agentic/executioncontext/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.d.ts +54 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.js +60 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.d.ts +56 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/executioncontext/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/executioncontext/v1/spec_pb.d.ts +69 -0
- package/ai/stigmer/agentic/executioncontext/v1/spec_pb.js +20 -0
- package/ai/stigmer/agentic/executioncontext/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/api_pb.d.ts +129 -0
- package/ai/stigmer/agentic/mcpserver/v1/api_pb.js +23 -0
- package/ai/stigmer/agentic/mcpserver/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.d.ts +136 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js +142 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.d.ts +136 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.js +29 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.d.ts +62 -0
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js +21 -0
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.d.ts +59 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.js +65 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.d.ts +61 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.js +25 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.d.ts +332 -0
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js +31 -0
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.d.ts +290 -0
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.js +104 -0
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/api_pb.d.ts +52 -0
- package/ai/stigmer/agentic/session/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/session/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/command_connect.d.ts +57 -0
- package/ai/stigmer/agentic/session/v1/command_connect.js +63 -0
- package/ai/stigmer/agentic/session/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/command_pb.d.ts +57 -0
- package/ai/stigmer/agentic/session/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/session/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/io_pb.d.ts +123 -0
- package/ai/stigmer/agentic/session/v1/io_pb.js +36 -0
- package/ai/stigmer/agentic/session/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/query_connect.d.ts +43 -0
- package/ai/stigmer/agentic/session/v1/query_connect.js +49 -0
- package/ai/stigmer/agentic/session/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/query_pb.d.ts +44 -0
- package/ai/stigmer/agentic/session/v1/query_pb.js +19 -0
- package/ai/stigmer/agentic/session/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +66 -0
- package/ai/stigmer/agentic/session/v1/spec_pb.js +16 -0
- package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/session/v1/workspace_pb.d.ts +167 -0
- package/ai/stigmer/agentic/session/v1/workspace_pb.js +30 -0
- package/ai/stigmer/agentic/session/v1/workspace_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/api_pb.d.ts +85 -0
- package/ai/stigmer/agentic/skill/v1/api_pb.js +23 -0
- package/ai/stigmer/agentic/skill/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/command_connect.d.ts +50 -0
- package/ai/stigmer/agentic/skill/v1/command_connect.js +56 -0
- package/ai/stigmer/agentic/skill/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/command_pb.d.ts +52 -0
- package/ai/stigmer/agentic/skill/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/skill/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/io_pb.d.ts +118 -0
- package/ai/stigmer/agentic/skill/v1/io_pb.js +31 -0
- package/ai/stigmer/agentic/skill/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/query_connect.d.ts +57 -0
- package/ai/stigmer/agentic/skill/v1/query_connect.js +63 -0
- package/ai/stigmer/agentic/skill/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/query_pb.d.ts +59 -0
- package/ai/stigmer/agentic/skill/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/skill/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/spec_pb.d.ts +59 -0
- package/ai/stigmer/agentic/skill/v1/spec_pb.js +15 -0
- package/ai/stigmer/agentic/skill/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/status_pb.d.ts +146 -0
- package/ai/stigmer/agentic/skill/v1/status_pb.js +57 -0
- package/ai/stigmer/agentic/skill/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/skill/v1/synth_pb.d.ts +125 -0
- package/ai/stigmer/agentic/skill/v1/synth_pb.js +24 -0
- package/ai/stigmer/agentic/skill/v1/synth_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/api_pb.d.ts +53 -0
- package/ai/stigmer/agentic/workflow/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/workflow/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +60 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js +66 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +60 -0
- package/ai/stigmer/agentic/workflow/v1/command_pb.js +19 -0
- package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/enum_pb.d.ts +138 -0
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js +143 -0
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/io_pb.d.ts +22 -0
- package/ai/stigmer/agentic/workflow/v1/io_pb.js +15 -0
- package/ai/stigmer/agentic/workflow/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/query_connect.d.ts +32 -0
- package/ai/stigmer/agentic/workflow/v1/query_connect.js +38 -0
- package/ai/stigmer/agentic/workflow/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/query_pb.d.ts +35 -0
- package/ai/stigmer/agentic/workflow/v1/query_pb.js +20 -0
- package/ai/stigmer/agentic/workflow/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.d.ts +119 -0
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js +63 -0
- package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/spec_pb.d.ts +222 -0
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js +39 -0
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/status_pb.d.ts +48 -0
- package/ai/stigmer/agentic/workflow/v1/status_pb.js +16 -0
- package/ai/stigmer/agentic/workflow/v1/status_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +153 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/call_activity_pb.d.ts +45 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/call_activity_pb.js +17 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/call_activity_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.d.ts +58 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js +17 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/fork_pb.d.ts +77 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/fork_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/fork_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/grpc_call_pb.d.ts +53 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/grpc_call_pb.js +17 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/grpc_call_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/http_call_pb.d.ts +87 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/http_call_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/http_call_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/listen_pb.d.ts +90 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/listen_pb.js +26 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/listen_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/raise_pb.d.ts +41 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/raise_pb.js +16 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/raise_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/run_pb.d.ts +43 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/run_pb.js +17 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/run_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/set_pb.d.ts +39 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/set_pb.js +16 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/set_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/switch_pb.d.ts +71 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/switch_pb.js +21 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/switch_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.d.ts +80 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/wait_pb.d.ts +121 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/wait_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/wait_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +716 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +31 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +833 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +839 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +827 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +33 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.d.ts +693 -0
- package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.js +700 -0
- package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +1198 -0
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +211 -0
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.d.ts +391 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js +397 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.d.ts +391 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js +32 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.d.ts +332 -0
- package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.js +15 -0
- package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/api_pb.d.ts +82 -0
- package/ai/stigmer/agentic/workflowinstance/v1/api_pb.js +18 -0
- package/ai/stigmer/agentic/workflowinstance/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_connect.d.ts +139 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_connect.js +145 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_pb.d.ts +139 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js +29 -0
- package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.d.ts +119 -0
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.js +27 -0
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_connect.d.ts +142 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_connect.js +148 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_pb.d.ts +144 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_pb.js +30 -0
- package/ai/stigmer/agentic/workflowinstance/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.d.ts +97 -0
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.js +16 -0
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.d.ts +68 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.js +53 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +253 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +199 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.d.ts +257 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.js +128 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/enum_pb.d.ts +122 -0
- package/ai/stigmer/commons/apiresource/enum_pb.js +129 -0
- package/ai/stigmer/commons/apiresource/enum_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/field_options_pb.d.ts +48 -0
- package/ai/stigmer/commons/apiresource/field_options_pb.js +52 -0
- package/ai/stigmer/commons/apiresource/field_options_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/io_pb.d.ts +185 -0
- package/ai/stigmer/commons/apiresource/io_pb.js +37 -0
- package/ai/stigmer/commons/apiresource/io_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/metadata_pb.d.ts +115 -0
- package/ai/stigmer/commons/apiresource/metadata_pb.js +21 -0
- package/ai/stigmer/commons/apiresource/metadata_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/rpc_service_options_pb.d.ts +11 -0
- package/ai/stigmer/commons/apiresource/rpc_service_options_pb.js +15 -0
- package/ai/stigmer/commons/apiresource/rpc_service_options_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/status_pb.d.ts +115 -0
- package/ai/stigmer/commons/apiresource/status_pb.js +30 -0
- package/ai/stigmer/commons/apiresource/status_pb.js.map +1 -0
- package/ai/stigmer/commons/rpc/pagination_pb.d.ts +49 -0
- package/ai/stigmer/commons/rpc/pagination_pb.js +19 -0
- package/ai/stigmer/commons/rpc/pagination_pb.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/api_pb.d.ts +74 -0
- package/ai/stigmer/iam/apikey/v1/api_pb.js +24 -0
- package/ai/stigmer/iam/apikey/v1/api_pb.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/command_connect.d.ts +43 -0
- package/ai/stigmer/iam/apikey/v1/command_connect.js +49 -0
- package/ai/stigmer/iam/apikey/v1/command_connect.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/command_pb.d.ts +44 -0
- package/ai/stigmer/iam/apikey/v1/command_pb.js +19 -0
- package/ai/stigmer/iam/apikey/v1/command_pb.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/io_pb.d.ts +55 -0
- package/ai/stigmer/iam/apikey/v1/io_pb.js +26 -0
- package/ai/stigmer/iam/apikey/v1/io_pb.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/query_connect.d.ts +46 -0
- package/ai/stigmer/iam/apikey/v1/query_connect.js +52 -0
- package/ai/stigmer/iam/apikey/v1/query_connect.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/query_pb.d.ts +48 -0
- package/ai/stigmer/iam/apikey/v1/query_pb.js +20 -0
- package/ai/stigmer/iam/apikey/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/apikey/v1/spec_pb.d.ts +46 -0
- package/ai/stigmer/iam/apikey/v1/spec_pb.js +16 -0
- package/ai/stigmer/iam/apikey/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/api_pb.d.ts +81 -0
- package/ai/stigmer/iam/iampolicy/v1/api_pb.js +23 -0
- package/ai/stigmer/iam/iampolicy/v1/api_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/command_connect.d.ts +225 -0
- package/ai/stigmer/iam/iampolicy/v1/command_connect.js +231 -0
- package/ai/stigmer/iam/iampolicy/v1/command_connect.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/command_pb.d.ts +225 -0
- package/ai/stigmer/iam/iampolicy/v1/command_pb.js +34 -0
- package/ai/stigmer/iam/iampolicy/v1/command_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/io_pb.d.ts +555 -0
- package/ai/stigmer/iam/iampolicy/v1/io_pb.js +122 -0
- package/ai/stigmer/iam/iampolicy/v1/io_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/query_connect.d.ts +91 -0
- package/ai/stigmer/iam/iampolicy/v1/query_connect.js +97 -0
- package/ai/stigmer/iam/iampolicy/v1/query_connect.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/query_pb.d.ts +91 -0
- package/ai/stigmer/iam/iampolicy/v1/query_pb.js +19 -0
- package/ai/stigmer/iam/iampolicy/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.d.ts +171 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js +176 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/io_pb.d.ts +58 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/io_pb.js +16 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/io_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/method_options_pb.d.ts +19 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/method_options_pb.js +23 -0
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/method_options_pb.js.map +1 -0
- package/ai/stigmer/iam/iampolicy/v1/spec_pb.d.ts +105 -0
- package/ai/stigmer/iam/iampolicy/v1/spec_pb.js +20 -0
- package/ai/stigmer/iam/iampolicy/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/api_pb.d.ts +51 -0
- package/ai/stigmer/iam/identityaccount/v1/api_pb.js +18 -0
- package/ai/stigmer/iam/identityaccount/v1/api_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/command_connect.d.ts +59 -0
- package/ai/stigmer/iam/identityaccount/v1/command_connect.js +65 -0
- package/ai/stigmer/iam/identityaccount/v1/command_connect.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/command_pb.d.ts +60 -0
- package/ai/stigmer/iam/identityaccount/v1/command_pb.js +20 -0
- package/ai/stigmer/iam/identityaccount/v1/command_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/enum_pb.d.ts +40 -0
- package/ai/stigmer/iam/identityaccount/v1/enum_pb.js +45 -0
- package/ai/stigmer/iam/identityaccount/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/io_pb.d.ts +138 -0
- package/ai/stigmer/iam/identityaccount/v1/io_pb.js +47 -0
- package/ai/stigmer/iam/identityaccount/v1/io_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/query_connect.d.ts +79 -0
- package/ai/stigmer/iam/identityaccount/v1/query_connect.js +85 -0
- package/ai/stigmer/iam/identityaccount/v1/query_connect.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/query_pb.d.ts +80 -0
- package/ai/stigmer/iam/identityaccount/v1/query_pb.js +21 -0
- package/ai/stigmer/iam/identityaccount/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/spec_pb.d.ts +95 -0
- package/ai/stigmer/iam/identityaccount/v1/spec_pb.js +17 -0
- package/ai/stigmer/iam/identityaccount/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/webhook_pb.d.ts +50 -0
- package/ai/stigmer/iam/identityaccount/v1/webhook_pb.js +14 -0
- package/ai/stigmer/iam/identityaccount/v1/webhook_pb.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/api_pb.d.ts +72 -0
- package/ai/stigmer/iam/identityprovider/v1/api_pb.js +18 -0
- package/ai/stigmer/iam/identityprovider/v1/api_pb.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/command_connect.d.ts +59 -0
- package/ai/stigmer/iam/identityprovider/v1/command_connect.js +65 -0
- package/ai/stigmer/iam/identityprovider/v1/command_connect.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/command_pb.d.ts +59 -0
- package/ai/stigmer/iam/identityprovider/v1/command_pb.js +19 -0
- package/ai/stigmer/iam/identityprovider/v1/command_pb.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/io_pb.d.ts +65 -0
- package/ai/stigmer/iam/identityprovider/v1/io_pb.js +26 -0
- package/ai/stigmer/iam/identityprovider/v1/io_pb.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/query_connect.d.ts +32 -0
- package/ai/stigmer/iam/identityprovider/v1/query_connect.js +38 -0
- package/ai/stigmer/iam/identityprovider/v1/query_connect.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/query_pb.d.ts +34 -0
- package/ai/stigmer/iam/identityprovider/v1/query_pb.js +19 -0
- package/ai/stigmer/iam/identityprovider/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/identityprovider/v1/spec_pb.d.ts +106 -0
- package/ai/stigmer/iam/identityprovider/v1/spec_pb.js +15 -0
- package/ai/stigmer/iam/identityprovider/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/search/v1/io_pb.d.ts +320 -0
- package/ai/stigmer/search/v1/io_pb.js +29 -0
- package/ai/stigmer/search/v1/io_pb.js.map +1 -0
- package/ai/stigmer/search/v1/query_connect.d.ts +67 -0
- package/ai/stigmer/search/v1/query_connect.js +73 -0
- package/ai/stigmer/search/v1/query_connect.js.map +1 -0
- package/ai/stigmer/search/v1/query_pb.d.ts +69 -0
- package/ai/stigmer/search/v1/query_pb.js +40 -0
- package/ai/stigmer/search/v1/query_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/api_pb.d.ts +54 -0
- package/ai/stigmer/tenancy/organization/v1/api_pb.js +18 -0
- package/ai/stigmer/tenancy/organization/v1/api_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/command_connect.d.ts +61 -0
- package/ai/stigmer/tenancy/organization/v1/command_connect.js +67 -0
- package/ai/stigmer/tenancy/organization/v1/command_connect.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/command_pb.d.ts +61 -0
- package/ai/stigmer/tenancy/organization/v1/command_pb.js +19 -0
- package/ai/stigmer/tenancy/organization/v1/command_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/enum_pb.d.ts +34 -0
- package/ai/stigmer/tenancy/organization/v1/enum_pb.js +39 -0
- package/ai/stigmer/tenancy/organization/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/io_pb.d.ts +91 -0
- package/ai/stigmer/tenancy/organization/v1/io_pb.js +32 -0
- package/ai/stigmer/tenancy/organization/v1/io_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/query_connect.d.ts +61 -0
- package/ai/stigmer/tenancy/organization/v1/query_connect.js +67 -0
- package/ai/stigmer/tenancy/organization/v1/query_connect.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/query_pb.d.ts +63 -0
- package/ai/stigmer/tenancy/organization/v1/query_pb.js +21 -0
- package/ai/stigmer/tenancy/organization/v1/query_pb.js.map +1 -0
- package/ai/stigmer/tenancy/organization/v1/spec_pb.d.ts +61 -0
- package/ai/stigmer/tenancy/organization/v1/spec_pb.js +17 -0
- package/ai/stigmer/tenancy/organization/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/api_pb.d.ts +91 -0
- package/ai/stigmer/tenancy/project/v1/api_pb.js +18 -0
- package/ai/stigmer/tenancy/project/v1/api_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/command_connect.d.ts +60 -0
- package/ai/stigmer/tenancy/project/v1/command_connect.js +66 -0
- package/ai/stigmer/tenancy/project/v1/command_connect.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/command_pb.d.ts +60 -0
- package/ai/stigmer/tenancy/project/v1/command_pb.js +19 -0
- package/ai/stigmer/tenancy/project/v1/command_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/io_pb.d.ts +22 -0
- package/ai/stigmer/tenancy/project/v1/io_pb.js +15 -0
- package/ai/stigmer/tenancy/project/v1/io_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/query_connect.d.ts +33 -0
- package/ai/stigmer/tenancy/project/v1/query_connect.js +39 -0
- package/ai/stigmer/tenancy/project/v1/query_connect.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/query_pb.d.ts +36 -0
- package/ai/stigmer/tenancy/project/v1/query_pb.js +20 -0
- package/ai/stigmer/tenancy/project/v1/query_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/spec_pb.d.ts +84 -0
- package/ai/stigmer/tenancy/project/v1/spec_pb.js +15 -0
- package/ai/stigmer/tenancy/project/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/tenancy/project/v1/status_pb.d.ts +89 -0
- package/ai/stigmer/tenancy/project/v1/status_pb.js +21 -0
- package/ai/stigmer/tenancy/project/v1/status_pb.js.map +1 -0
- package/buf/validate/validate_pb.d.ts +4766 -0
- package/buf/validate/validate_pb.js +357 -0
- package/buf/validate/validate_pb.js.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/workflowexecution/v1/command.proto (package ai.stigmer.agentic.workflowexecution.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* WorkflowExecutionCommandController handles write operations (Create, Update, Delete) for WorkflowExecution resources.
|
|
8
|
+
*
|
|
9
|
+
* This service follows the Command-Query Separation (CQS) pattern:
|
|
10
|
+
* - CommandController: Write operations (create, update, delete)
|
|
11
|
+
* - QueryController: Read operations (get, list, search)
|
|
12
|
+
*
|
|
13
|
+
* Authorization:
|
|
14
|
+
* All RPCs use custom authorization logic implemented in middleware.
|
|
15
|
+
* Custom authorization is needed because:
|
|
16
|
+
* - create: Must verify user has "execute" permission on the referenced WorkflowInstance
|
|
17
|
+
* - update: Only the workflow runner (system) can update execution status, not users
|
|
18
|
+
*
|
|
19
|
+
* Service Options:
|
|
20
|
+
* - api_resource_kind: workflow_execution - Links this service to the WorkflowExecution resource
|
|
21
|
+
*
|
|
22
|
+
* @generated from service ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController
|
|
23
|
+
*/
|
|
24
|
+
export const WorkflowExecutionCommandController = {
|
|
25
|
+
typeName: "ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController",
|
|
26
|
+
methods: {
|
|
27
|
+
/**
|
|
28
|
+
* Create and trigger a new workflow execution.
|
|
29
|
+
*
|
|
30
|
+
* This RPC creates a WorkflowExecution resource and immediately triggers it for execution.
|
|
31
|
+
* The workflow execution engine (Temporal) picks up the execution and begins processing tasks.
|
|
32
|
+
*
|
|
33
|
+
* Input Validation:
|
|
34
|
+
* - metadata.org must be specified
|
|
35
|
+
* - spec.workflow_instance_id is required and must reference an existing WorkflowInstance
|
|
36
|
+
* - api_version must be exactly "agentic.stigmer.ai/v1"
|
|
37
|
+
* - kind must be exactly "WorkflowExecution"
|
|
38
|
+
*
|
|
39
|
+
* Authorization:
|
|
40
|
+
* Custom authorization verifies:
|
|
41
|
+
* 1. User has "execute" permission on the referenced WorkflowInstance
|
|
42
|
+
* 2. User has access to all referenced Environments (from WorkflowInstance)
|
|
43
|
+
* 3. User has access to all referenced Secrets (from runtime_env secret_refs)
|
|
44
|
+
*
|
|
45
|
+
* Execution Flow:
|
|
46
|
+
* 1. Validate input (proto validation + business rules)
|
|
47
|
+
* 2. Check authorization (user can execute WorkflowInstance)
|
|
48
|
+
* 3. Create WorkflowExecution resource in database
|
|
49
|
+
* 4. Set initial status.phase = EXECUTION_PENDING
|
|
50
|
+
* 5. Trigger workflow in execution engine (Temporal)
|
|
51
|
+
* 6. Return WorkflowExecution with status.phase = EXECUTION_PENDING or EXECUTION_IN_PROGRESS
|
|
52
|
+
*
|
|
53
|
+
* Status After Create:
|
|
54
|
+
* - status.phase: EXECUTION_PENDING (or EXECUTION_IN_PROGRESS if already picked up)
|
|
55
|
+
* - status.audit.created_at: Current timestamp
|
|
56
|
+
* - status.audit.created_by: Authenticated user ID
|
|
57
|
+
* - status.started_at: Not set yet (set when phase transitions to IN_PROGRESS)
|
|
58
|
+
*
|
|
59
|
+
* Use Cases:
|
|
60
|
+
*
|
|
61
|
+
* 1. API-Triggered Execution:
|
|
62
|
+
* - User calls API to execute a workflow
|
|
63
|
+
* - Input: WorkflowExecution with spec.workflow_instance_id and spec.trigger_message
|
|
64
|
+
* - Output: WorkflowExecution with generated ID and PENDING status
|
|
65
|
+
*
|
|
66
|
+
* 2. Webhook-Triggered Execution:
|
|
67
|
+
* - External system (Stripe, GitHub, etc.) sends webhook
|
|
68
|
+
* - Webhook handler creates WorkflowExecution with webhook payload in spec.trigger_message
|
|
69
|
+
* - spec.trigger_metadata captures webhook source, event type, timestamp
|
|
70
|
+
*
|
|
71
|
+
* 3. Scheduled Execution:
|
|
72
|
+
* - Scheduler service creates WorkflowExecution at scheduled time
|
|
73
|
+
* - spec.trigger_metadata includes schedule ID and cron expression
|
|
74
|
+
*
|
|
75
|
+
* 4. UI-Triggered Execution:
|
|
76
|
+
* - User clicks "Execute" button in web console
|
|
77
|
+
* - UI creates WorkflowExecution with user-provided inputs
|
|
78
|
+
*
|
|
79
|
+
* 5. Workflow Chaining (Workflow A triggers Workflow B):
|
|
80
|
+
* - Workflow A completes, creates WorkflowExecution for Workflow B
|
|
81
|
+
* - spec.trigger_message contains output from Workflow A
|
|
82
|
+
* - spec.trigger_metadata includes parent workflow execution ID
|
|
83
|
+
*
|
|
84
|
+
* Error Cases:
|
|
85
|
+
*
|
|
86
|
+
* - INVALID_ARGUMENT:
|
|
87
|
+
* - workflow_instance_id is missing or invalid
|
|
88
|
+
* - org is missing
|
|
89
|
+
* - api_version or kind is incorrect
|
|
90
|
+
*
|
|
91
|
+
* - PERMISSION_DENIED:
|
|
92
|
+
* - User doesn't have "execute" permission on WorkflowInstance
|
|
93
|
+
* - User doesn't have access to referenced Environments
|
|
94
|
+
* - User doesn't have access to referenced Secrets
|
|
95
|
+
*
|
|
96
|
+
* - NOT_FOUND:
|
|
97
|
+
* - Referenced WorkflowInstance doesn't exist
|
|
98
|
+
* - Referenced Environment doesn't exist
|
|
99
|
+
* - Referenced Secret doesn't exist
|
|
100
|
+
*
|
|
101
|
+
* - FAILED_PRECONDITION:
|
|
102
|
+
* - WorkflowInstance is in invalid state (e.g., archived, disabled)
|
|
103
|
+
* - Too many concurrent executions (quota exceeded)
|
|
104
|
+
*
|
|
105
|
+
* Example Request:
|
|
106
|
+
* {
|
|
107
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
108
|
+
* "kind": "WorkflowExecution",
|
|
109
|
+
* "metadata": {
|
|
110
|
+
* "name": "customer-onboarding-20250111-143022",
|
|
111
|
+
* "org": "acme"
|
|
112
|
+
* },
|
|
113
|
+
* "spec": {
|
|
114
|
+
* "workflow_instance_id": "wfi-customer-onboarding-prod",
|
|
115
|
+
* "trigger_message": "New signup: john.doe@example.com",
|
|
116
|
+
* "trigger_metadata": {
|
|
117
|
+
* "source": "api",
|
|
118
|
+
* "caller_id": "usr-jane-admin",
|
|
119
|
+
* "timestamp": "2025-01-11T14:30:22Z"
|
|
120
|
+
* },
|
|
121
|
+
* "runtime_env": {
|
|
122
|
+
* "CUSTOMER_EMAIL": { "value": "john.doe@example.com" }
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
125
|
+
* }
|
|
126
|
+
*
|
|
127
|
+
* Example Response:
|
|
128
|
+
* {
|
|
129
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
130
|
+
* "kind": "WorkflowExecution",
|
|
131
|
+
* "metadata": {
|
|
132
|
+
* "id": "wfx-abc123xyz456", // Auto-generated
|
|
133
|
+
* "name": "customer-onboarding-20250111-143022",
|
|
134
|
+
* "org": "acme"
|
|
135
|
+
* },
|
|
136
|
+
* "spec": { ... }, // Same as request
|
|
137
|
+
* "status": {
|
|
138
|
+
* "phase": 1, // EXECUTION_PENDING
|
|
139
|
+
* "audit": {
|
|
140
|
+
* "created_at": "2025-01-11T14:30:22Z",
|
|
141
|
+
* "created_by": "usr-jane-admin"
|
|
142
|
+
* }
|
|
143
|
+
* }
|
|
144
|
+
* }
|
|
145
|
+
*
|
|
146
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.create
|
|
147
|
+
*/
|
|
148
|
+
create: {
|
|
149
|
+
name: "create",
|
|
150
|
+
I: WorkflowExecution,
|
|
151
|
+
O: WorkflowExecution,
|
|
152
|
+
kind: MethodKind.Unary,
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Update execution with full state.
|
|
156
|
+
* Used by users to update execution configuration (spec fields).
|
|
157
|
+
* No individual field updates - always provide complete state.
|
|
158
|
+
*
|
|
159
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.update
|
|
160
|
+
*/
|
|
161
|
+
update: {
|
|
162
|
+
name: "update",
|
|
163
|
+
I: WorkflowExecution,
|
|
164
|
+
O: WorkflowExecution,
|
|
165
|
+
kind: MethodKind.Unary,
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Update execution status during workflow execution.
|
|
169
|
+
* Used by workflow-runner to send progressive status updates (messages, task states, phase, etc.)
|
|
170
|
+
* This RPC is optimized for frequent status updates and merges status fields with existing state.
|
|
171
|
+
*
|
|
172
|
+
* This RPC is used by the workflow execution engine (Temporal) to update the status
|
|
173
|
+
* of a running workflow execution. Users cannot call this RPC directly.
|
|
174
|
+
*
|
|
175
|
+
* What Can Be Updated:
|
|
176
|
+
* - status.phase (PENDING → IN_PROGRESS → COMPLETED/FAILED/CANCELLED)
|
|
177
|
+
* - status.tasks (update task statuses, outputs, errors)
|
|
178
|
+
* - status.output (set final workflow output when COMPLETED)
|
|
179
|
+
* - status.error (set error message when FAILED)
|
|
180
|
+
* - status.started_at (set when execution starts)
|
|
181
|
+
* - status.completed_at (set when execution finishes)
|
|
182
|
+
*
|
|
183
|
+
* What Cannot Be Updated:
|
|
184
|
+
* - spec.* (user inputs are immutable after creation)
|
|
185
|
+
* - metadata.id (resource ID is immutable)
|
|
186
|
+
* - status.audit.created_at (creation timestamp is immutable)
|
|
187
|
+
*
|
|
188
|
+
* Authorization:
|
|
189
|
+
* Custom authorization verifies:
|
|
190
|
+
* 1. Caller is the workflow runner service (system identity, not a user)
|
|
191
|
+
* 2. Only status fields are being modified (spec and metadata unchanged)
|
|
192
|
+
*
|
|
193
|
+
* Update Flow:
|
|
194
|
+
* 1. Workflow runner executes a task
|
|
195
|
+
* 2. Task completes/fails
|
|
196
|
+
* 3. Workflow runner calls updateStatus() with:
|
|
197
|
+
* - Updated status.tasks (new task status, output/error)
|
|
198
|
+
* - Updated status.phase (if all tasks done)
|
|
199
|
+
* 4. Backend validates and persists update
|
|
200
|
+
* 5. Backend broadcasts update via WebSocket (for real-time UI updates)
|
|
201
|
+
*
|
|
202
|
+
* Use Cases:
|
|
203
|
+
*
|
|
204
|
+
* 1. Task Started:
|
|
205
|
+
* - Workflow runner updates status.tasks[i].status = IN_PROGRESS
|
|
206
|
+
*
|
|
207
|
+
* 2. Task Completed:
|
|
208
|
+
* - Workflow runner updates status.tasks[i].status = COMPLETED
|
|
209
|
+
* - Workflow runner sets status.tasks[i].output
|
|
210
|
+
*
|
|
211
|
+
* 3. Task Failed:
|
|
212
|
+
* - Workflow runner updates status.tasks[i].status = FAILED
|
|
213
|
+
* - Workflow runner sets status.tasks[i].error
|
|
214
|
+
* - Workflow runner updates status.phase = EXECUTION_FAILED
|
|
215
|
+
* - Workflow runner sets status.error
|
|
216
|
+
* - Workflow runner sets status.completed_at
|
|
217
|
+
*
|
|
218
|
+
* 4. Workflow Completed:
|
|
219
|
+
* - Workflow runner updates status.phase = EXECUTION_COMPLETED
|
|
220
|
+
* - Workflow runner sets status.output
|
|
221
|
+
* - Workflow runner sets status.completed_at
|
|
222
|
+
*
|
|
223
|
+
* 5. Workflow Cancelled:
|
|
224
|
+
* - Workflow runner receives cancellation signal
|
|
225
|
+
* - Workflow runner updates status.phase = EXECUTION_CANCELLED
|
|
226
|
+
* - Workflow runner sets status.completed_at
|
|
227
|
+
*
|
|
228
|
+
* Error Cases:
|
|
229
|
+
*
|
|
230
|
+
* - PERMISSION_DENIED:
|
|
231
|
+
* - Caller is not the workflow runner service (users cannot update status)
|
|
232
|
+
*
|
|
233
|
+
* - INVALID_ARGUMENT:
|
|
234
|
+
* - Trying to modify spec or metadata (only status can be updated)
|
|
235
|
+
* - Invalid phase transition (e.g., COMPLETED → IN_PROGRESS)
|
|
236
|
+
*
|
|
237
|
+
* - NOT_FOUND:
|
|
238
|
+
* - WorkflowExecution with given ID doesn't exist
|
|
239
|
+
*
|
|
240
|
+
* Example Request (Task Completed):
|
|
241
|
+
* {
|
|
242
|
+
* "metadata": {
|
|
243
|
+
* "id": "wfx-abc123xyz456"
|
|
244
|
+
* },
|
|
245
|
+
* "status": {
|
|
246
|
+
* "phase": 2, // EXECUTION_IN_PROGRESS
|
|
247
|
+
* "completed_tasks": 1,
|
|
248
|
+
* "tasks": [
|
|
249
|
+
* {
|
|
250
|
+
* "task_id": "task-1",
|
|
251
|
+
* "task_name": "validate_email",
|
|
252
|
+
* "status": 3, // WORKFLOW_TASK_COMPLETED
|
|
253
|
+
* "output": { "valid": true },
|
|
254
|
+
* "completed_at": "2025-01-11T14:30:27Z"
|
|
255
|
+
* },
|
|
256
|
+
* {
|
|
257
|
+
* "task_id": "task-2",
|
|
258
|
+
* "task_name": "create_account",
|
|
259
|
+
* "status": 2, // WORKFLOW_TASK_IN_PROGRESS
|
|
260
|
+
* "timestamp": "2025-01-11T14:30:27Z"
|
|
261
|
+
* }
|
|
262
|
+
* ]
|
|
263
|
+
* }
|
|
264
|
+
* }
|
|
265
|
+
*
|
|
266
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.updateStatus
|
|
267
|
+
*/
|
|
268
|
+
updateStatus: {
|
|
269
|
+
name: "updateStatus",
|
|
270
|
+
I: WorkflowExecutionUpdateStatusInput,
|
|
271
|
+
O: WorkflowExecution,
|
|
272
|
+
kind: MethodKind.Unary,
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* Submit approval for a child agent's tool execution (HITL Phase 5.3).
|
|
276
|
+
*
|
|
277
|
+
* This RPC forwards the approval decision to the child AgentExecution that
|
|
278
|
+
* is waiting for approval. The child is identified by the child_agent_execution_id
|
|
279
|
+
* in status.pending_approval.
|
|
280
|
+
*
|
|
281
|
+
* ## Behavior
|
|
282
|
+
*
|
|
283
|
+
* When a workflow invokes an agent that requires tool approval, the approval
|
|
284
|
+
* request surfaces at the workflow level via status.pending_approval. Users can
|
|
285
|
+
* submit their decision through this RPC, which forwards it to the child agent.
|
|
286
|
+
*
|
|
287
|
+
* The approval is forwarded to the child via AgentExecution.submitApproval RPC,
|
|
288
|
+
* ensuring consistent validation and Temporal workflow signaling.
|
|
289
|
+
*
|
|
290
|
+
* ## Preconditions
|
|
291
|
+
*
|
|
292
|
+
* - status.pending_approval must be populated
|
|
293
|
+
* - tool_call_id must match status.pending_approval.tool_call_id
|
|
294
|
+
* - status.pending_approval.child_agent_execution_id must not be empty
|
|
295
|
+
* - User must have can_edit permission on the workflow execution
|
|
296
|
+
*
|
|
297
|
+
* ## State Transitions
|
|
298
|
+
*
|
|
299
|
+
* After successful approval:
|
|
300
|
+
* - Approval is forwarded to child AgentExecution
|
|
301
|
+
* - Child agent resumes execution based on action (APPROVE/SKIP/REJECT)
|
|
302
|
+
* - Child agent clears its pending_approval, which triggers signal to parent
|
|
303
|
+
* - WorkflowExecution.status.pending_approval is eventually cleared
|
|
304
|
+
* - Workflow task status returns from WAITING_APPROVAL to IN_PROGRESS
|
|
305
|
+
*
|
|
306
|
+
* ## Approval Actions
|
|
307
|
+
*
|
|
308
|
+
* - APPROVE: Tool executes with the provided arguments
|
|
309
|
+
* - SKIP: Tool execution is skipped, agent continues with skip message
|
|
310
|
+
* - REJECT: Agent execution fails with rejection error
|
|
311
|
+
*
|
|
312
|
+
* ## Error Cases
|
|
313
|
+
*
|
|
314
|
+
* - NOT_FOUND: Workflow execution doesn't exist
|
|
315
|
+
* - PERMISSION_DENIED: User doesn't have can_edit permission
|
|
316
|
+
* - FAILED_PRECONDITION: No pending approval, or child agent not waiting
|
|
317
|
+
* - INVALID_ARGUMENT: Tool call ID mismatch, or action is UNSPECIFIED
|
|
318
|
+
* - UNAVAILABLE: Failed to forward to child agent (transient error)
|
|
319
|
+
*
|
|
320
|
+
* ## Idempotency
|
|
321
|
+
*
|
|
322
|
+
* If the same approval is submitted twice (same workflow execution, tool_call_id,
|
|
323
|
+
* and action), the second call is a no-op if the approval was already processed.
|
|
324
|
+
*
|
|
325
|
+
* ## Alternative: Direct Agent Approval
|
|
326
|
+
*
|
|
327
|
+
* Users can also submit approvals directly via AgentExecution.submitApproval
|
|
328
|
+
* using the child_agent_execution_id. Both paths are equivalent and result
|
|
329
|
+
* in the same state transitions.
|
|
330
|
+
*
|
|
331
|
+
* @since Phase 5.3 (Approval Forwarding)
|
|
332
|
+
*
|
|
333
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.submitApproval
|
|
334
|
+
*/
|
|
335
|
+
submitApproval: {
|
|
336
|
+
name: "submitApproval",
|
|
337
|
+
I: SubmitWorkflowApprovalInput,
|
|
338
|
+
O: WorkflowExecution,
|
|
339
|
+
kind: MethodKind.Unary,
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Delete an execution.
|
|
343
|
+
*
|
|
344
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.delete
|
|
345
|
+
*/
|
|
346
|
+
delete: {
|
|
347
|
+
name: "delete",
|
|
348
|
+
I: ApiResourceId,
|
|
349
|
+
O: WorkflowExecution,
|
|
350
|
+
kind: MethodKind.Unary,
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* Send a signal to a running workflow execution.
|
|
354
|
+
*
|
|
355
|
+
* Delivers a signal to a workflow execution, typically to unblock a LISTEN task.
|
|
356
|
+
* Uses Temporal's SignalWithStart API internally for race-proof delivery.
|
|
357
|
+
*
|
|
358
|
+
* ## Behavior
|
|
359
|
+
*
|
|
360
|
+
* 1. Validates execution exists and is in a signalable phase
|
|
361
|
+
* 2. Uses Temporal SignalWithStart for atomic delivery:
|
|
362
|
+
* - If workflow exists → sends signal immediately
|
|
363
|
+
* - If workflow not started yet → starts workflow, then sends signal
|
|
364
|
+
* 3. Signal is delivered to workflow's signal channel
|
|
365
|
+
* 4. LISTEN task waiting for this signal will unblock and continue
|
|
366
|
+
* 5. Returns the current WorkflowExecution state
|
|
367
|
+
*
|
|
368
|
+
* ## Preconditions
|
|
369
|
+
*
|
|
370
|
+
* - Execution must be in EXECUTION_PENDING or EXECUTION_IN_PROGRESS phase
|
|
371
|
+
* - Cannot signal terminal executions (COMPLETED, FAILED, CANCELLED, TERMINATED)
|
|
372
|
+
* - User must have can_edit permission on the workflow execution
|
|
373
|
+
*
|
|
374
|
+
* ## Race-Proof Delivery (SignalWithStart)
|
|
375
|
+
*
|
|
376
|
+
* This RPC uses Temporal's SignalWithStart API to handle the race condition
|
|
377
|
+
* where a signal might arrive before the workflow is fully started:
|
|
378
|
+
* - Traditional SignalWorkflow fails with "WorkflowNotFound" if called too early
|
|
379
|
+
* - SignalWithStart atomically: starts workflow if needed, then sends signal
|
|
380
|
+
* - Guarantees signal delivery even in race conditions
|
|
381
|
+
*
|
|
382
|
+
* ## Signal Matching
|
|
383
|
+
*
|
|
384
|
+
* The signal_name must match the signal ID defined in the workflow's LISTEN task:
|
|
385
|
+
*
|
|
386
|
+
* Workflow YAML:
|
|
387
|
+
* - waitForPayment:
|
|
388
|
+
* listen:
|
|
389
|
+
* to:
|
|
390
|
+
* one:
|
|
391
|
+
* with:
|
|
392
|
+
* id: payment_confirmed # <-- signal_name must match this
|
|
393
|
+
* type: signal
|
|
394
|
+
*
|
|
395
|
+
* API Call:
|
|
396
|
+
* { "signal_name": "payment_confirmed", "payload": {...} }
|
|
397
|
+
*
|
|
398
|
+
* ## Error Cases
|
|
399
|
+
*
|
|
400
|
+
* - NOT_FOUND: Workflow execution doesn't exist
|
|
401
|
+
* - PERMISSION_DENIED: User doesn't have can_edit permission
|
|
402
|
+
* - FAILED_PRECONDITION: Execution is in a terminal phase
|
|
403
|
+
* - INVALID_ARGUMENT: execution_id or signal_name is empty
|
|
404
|
+
*
|
|
405
|
+
* ## Example Request
|
|
406
|
+
*
|
|
407
|
+
* {
|
|
408
|
+
* "execution_id": "wfx-abc123xyz456",
|
|
409
|
+
* "signal_name": "payment_confirmed",
|
|
410
|
+
* "payload": {
|
|
411
|
+
* "transaction_id": "txn_123",
|
|
412
|
+
* "amount": 99.99,
|
|
413
|
+
* "currency": "USD"
|
|
414
|
+
* }
|
|
415
|
+
* }
|
|
416
|
+
*
|
|
417
|
+
* ## Example Response
|
|
418
|
+
*
|
|
419
|
+
* Returns the current WorkflowExecution state (phase may still be IN_PROGRESS
|
|
420
|
+
* as the workflow continues after receiving the signal).
|
|
421
|
+
*
|
|
422
|
+
* @since Gap B1 (Signal-With-Start for race-proof event delivery)
|
|
423
|
+
*
|
|
424
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.sendSignal
|
|
425
|
+
*/
|
|
426
|
+
sendSignal: {
|
|
427
|
+
name: "sendSignal",
|
|
428
|
+
I: SendSignalInput,
|
|
429
|
+
O: WorkflowExecution,
|
|
430
|
+
kind: MethodKind.Unary,
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Cancel a running workflow execution gracefully.
|
|
434
|
+
*
|
|
435
|
+
* Sends a cancellation signal to the workflow via Temporal's CancelWorkflow API.
|
|
436
|
+
* The workflow code can handle the cancellation signal to perform cleanup
|
|
437
|
+
* (e.g., compensation logic, resource cleanup, notifications) before
|
|
438
|
+
* transitioning to the CANCELLED phase.
|
|
439
|
+
*
|
|
440
|
+
* Temporal Equivalent: `temporal workflow cancel --workflow-id <id>`
|
|
441
|
+
*
|
|
442
|
+
* ## Behavior
|
|
443
|
+
*
|
|
444
|
+
* 1. Validates execution exists and is in a cancellable phase
|
|
445
|
+
* 2. Sends cancellation signal to Temporal workflow
|
|
446
|
+
* 3. Workflow code receives the signal and can perform cleanup
|
|
447
|
+
* 4. Execution transitions to EXECUTION_CANCELLED phase
|
|
448
|
+
* 5. Returns updated WorkflowExecution with new phase
|
|
449
|
+
*
|
|
450
|
+
* ## Preconditions
|
|
451
|
+
*
|
|
452
|
+
* - Execution must be in EXECUTION_PENDING or EXECUTION_IN_PROGRESS phase
|
|
453
|
+
* - Cannot cancel already-terminal executions (COMPLETED, FAILED, CANCELLED, TERMINATED)
|
|
454
|
+
*
|
|
455
|
+
* ## State Transitions
|
|
456
|
+
*
|
|
457
|
+
* - status.phase: PENDING/IN_PROGRESS → CANCELLED
|
|
458
|
+
* - status.completed_at: Set to current timestamp
|
|
459
|
+
* - In-progress tasks: May complete cleanup or be interrupted
|
|
460
|
+
*
|
|
461
|
+
* ## Idempotency
|
|
462
|
+
*
|
|
463
|
+
* Cancelling an already-cancelled execution succeeds as a no-op.
|
|
464
|
+
* The call returns the current execution state without side effects.
|
|
465
|
+
* This ensures safe retry of cancel requests.
|
|
466
|
+
*
|
|
467
|
+
* ## Error Cases
|
|
468
|
+
*
|
|
469
|
+
* - NOT_FOUND: Execution with given ID doesn't exist
|
|
470
|
+
* - PERMISSION_DENIED: User lacks can_edit permission on the execution
|
|
471
|
+
* - FAILED_PRECONDITION: Execution is in a terminal phase (COMPLETED, FAILED, TERMINATED)
|
|
472
|
+
* - INVALID_ARGUMENT: ID is empty or malformed
|
|
473
|
+
*
|
|
474
|
+
* ## Example Request
|
|
475
|
+
*
|
|
476
|
+
* {
|
|
477
|
+
* "id": "wfx-abc123xyz456",
|
|
478
|
+
* "reason": "Customer requested cancellation - order no longer needed"
|
|
479
|
+
* }
|
|
480
|
+
*
|
|
481
|
+
* ## Example Response
|
|
482
|
+
*
|
|
483
|
+
* {
|
|
484
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
485
|
+
* "kind": "WorkflowExecution",
|
|
486
|
+
* "metadata": { "id": "wfx-abc123xyz456" },
|
|
487
|
+
* "status": {
|
|
488
|
+
* "phase": 5, // EXECUTION_CANCELLED
|
|
489
|
+
* "completed_at": "2026-02-07T18:30:00Z"
|
|
490
|
+
* }
|
|
491
|
+
* }
|
|
492
|
+
*
|
|
493
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.cancel
|
|
494
|
+
*/
|
|
495
|
+
cancel: {
|
|
496
|
+
name: "cancel",
|
|
497
|
+
I: CancelWorkflowExecutionInput,
|
|
498
|
+
O: WorkflowExecution,
|
|
499
|
+
kind: MethodKind.Unary,
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
* Terminate a workflow execution immediately.
|
|
503
|
+
*
|
|
504
|
+
* Force-stops the workflow via Temporal's TerminateWorkflow API without
|
|
505
|
+
* allowing cleanup. Unlike cancel, the workflow code cannot respond to
|
|
506
|
+
* termination - it is stopped immediately. Use this for stuck or
|
|
507
|
+
* unresponsive workflows that don't respond to cancellation.
|
|
508
|
+
*
|
|
509
|
+
* Temporal Equivalent: `temporal workflow terminate --workflow-id <id>`
|
|
510
|
+
*
|
|
511
|
+
* ## Behavior
|
|
512
|
+
*
|
|
513
|
+
* 1. Validates execution exists and is in a terminable phase
|
|
514
|
+
* 2. Force-kills workflow via Temporal (no signal sent to workflow)
|
|
515
|
+
* 3. Execution transitions to EXECUTION_TERMINATED phase immediately
|
|
516
|
+
* 4. No cleanup callbacks or defer blocks are executed
|
|
517
|
+
* 5. Returns updated WorkflowExecution with TERMINATED phase
|
|
518
|
+
*
|
|
519
|
+
* ## Preconditions
|
|
520
|
+
*
|
|
521
|
+
* - Execution must be in EXECUTION_PENDING or EXECUTION_IN_PROGRESS phase
|
|
522
|
+
* - Cannot terminate already-terminal executions
|
|
523
|
+
*
|
|
524
|
+
* ## State Transitions
|
|
525
|
+
*
|
|
526
|
+
* - status.phase: PENDING/IN_PROGRESS → TERMINATED
|
|
527
|
+
* - status.completed_at: Set to current timestamp
|
|
528
|
+
* - status.error: May contain termination reason
|
|
529
|
+
* - In-progress tasks: Stopped abruptly (no cleanup)
|
|
530
|
+
*
|
|
531
|
+
* ## Terminated vs Cancelled
|
|
532
|
+
*
|
|
533
|
+
* | Aspect | cancel | terminate |
|
|
534
|
+
* |--------|--------|-----------|
|
|
535
|
+
* | Signal to workflow | Yes (can handle) | No |
|
|
536
|
+
* | Cleanup opportunity | Yes | No |
|
|
537
|
+
* | Use case | Normal stop | Stuck workflows |
|
|
538
|
+
* | Can recover? | No | No |
|
|
539
|
+
*
|
|
540
|
+
* ## Idempotency
|
|
541
|
+
*
|
|
542
|
+
* Terminating an already-terminated execution succeeds as a no-op.
|
|
543
|
+
* The call returns the current execution state without side effects.
|
|
544
|
+
*
|
|
545
|
+
* ## Error Cases
|
|
546
|
+
*
|
|
547
|
+
* - NOT_FOUND: Execution with given ID doesn't exist
|
|
548
|
+
* - PERMISSION_DENIED: User lacks can_edit permission on the execution
|
|
549
|
+
* - FAILED_PRECONDITION: Execution is in a terminal phase
|
|
550
|
+
* - INVALID_ARGUMENT: ID is empty or malformed
|
|
551
|
+
*
|
|
552
|
+
* ## Example Request
|
|
553
|
+
*
|
|
554
|
+
* {
|
|
555
|
+
* "id": "wfx-abc123xyz456",
|
|
556
|
+
* "reason": "Workflow stuck for 2 hours, not responding to cancel"
|
|
557
|
+
* }
|
|
558
|
+
*
|
|
559
|
+
* ## Example Response
|
|
560
|
+
*
|
|
561
|
+
* {
|
|
562
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
563
|
+
* "kind": "WorkflowExecution",
|
|
564
|
+
* "metadata": { "id": "wfx-abc123xyz456" },
|
|
565
|
+
* "status": {
|
|
566
|
+
* "phase": 6, // EXECUTION_TERMINATED
|
|
567
|
+
* "completed_at": "2026-02-07T18:35:00Z",
|
|
568
|
+
* "error": "Terminated by operator: Workflow stuck for 2 hours"
|
|
569
|
+
* }
|
|
570
|
+
* }
|
|
571
|
+
*
|
|
572
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.terminate
|
|
573
|
+
*/
|
|
574
|
+
terminate: {
|
|
575
|
+
name: "terminate",
|
|
576
|
+
I: TerminateWorkflowExecutionInput,
|
|
577
|
+
O: WorkflowExecution,
|
|
578
|
+
kind: MethodKind.Unary,
|
|
579
|
+
},
|
|
580
|
+
/**
|
|
581
|
+
* Recover a failed workflow execution from the last checkpoint.
|
|
582
|
+
*
|
|
583
|
+
* Resumes execution from the last successful point using Temporal's
|
|
584
|
+
* ResetWorkflow API. Completed work is preserved - successful tasks
|
|
585
|
+
* are NOT re-executed. This enables "retry and resume" semantics
|
|
586
|
+
* without duplicating side effects.
|
|
587
|
+
*
|
|
588
|
+
* Temporal Equivalent: `temporal workflow reset --workflow-id <id> --type LastWorkflowTask`
|
|
589
|
+
*
|
|
590
|
+
* ## Behavior
|
|
591
|
+
*
|
|
592
|
+
* 1. Validates execution is in FAILED phase (recoverable)
|
|
593
|
+
* 2. Identifies the last successful checkpoint in workflow history
|
|
594
|
+
* 3. Creates new Temporal run from that checkpoint via ResetWorkflow
|
|
595
|
+
* 4. Execution transitions from FAILED to IN_PROGRESS phase
|
|
596
|
+
* 5. Workflow continues from where it failed
|
|
597
|
+
* 6. Returns updated WorkflowExecution with IN_PROGRESS phase
|
|
598
|
+
*
|
|
599
|
+
* ## Preconditions
|
|
600
|
+
*
|
|
601
|
+
* - Execution must be in EXECUTION_FAILED phase
|
|
602
|
+
* - TERMINATED executions cannot be recovered (intentional hard stop)
|
|
603
|
+
* - CANCELLED executions cannot be recovered (intentional user action)
|
|
604
|
+
* - COMPLETED executions don't need recovery
|
|
605
|
+
*
|
|
606
|
+
* ## State Transitions
|
|
607
|
+
*
|
|
608
|
+
* - status.phase: FAILED → IN_PROGRESS
|
|
609
|
+
* - status.completed_at: Cleared (execution is running again)
|
|
610
|
+
* - status.error: Cleared (no longer failed)
|
|
611
|
+
* - Completed tasks: Preserved (not re-executed)
|
|
612
|
+
* - Failed tasks: Reset to pending, will be retried
|
|
613
|
+
*
|
|
614
|
+
* ## Recovery vs Restart
|
|
615
|
+
*
|
|
616
|
+
* | Aspect | recover | Create new execution |
|
|
617
|
+
* |--------|---------|----------------------|
|
|
618
|
+
* | Completed work | Preserved | Lost (re-executed) |
|
|
619
|
+
* | Side effects | Not duplicated | May duplicate |
|
|
620
|
+
* | Execution ID | Same | New ID |
|
|
621
|
+
* | Use case | Resume after fix | Start fresh |
|
|
622
|
+
*
|
|
623
|
+
* ## Idempotency
|
|
624
|
+
*
|
|
625
|
+
* If recovery already succeeded (execution is now IN_PROGRESS from a
|
|
626
|
+
* previous recover call), the call succeeds as a no-op and returns
|
|
627
|
+
* the current execution state.
|
|
628
|
+
*
|
|
629
|
+
* ## Error Cases
|
|
630
|
+
*
|
|
631
|
+
* - NOT_FOUND: Execution with given ID doesn't exist
|
|
632
|
+
* - PERMISSION_DENIED: User lacks can_edit permission on the execution
|
|
633
|
+
* - FAILED_PRECONDITION:
|
|
634
|
+
* - Execution is not in FAILED phase
|
|
635
|
+
* - Execution is TERMINATED (cannot recover)
|
|
636
|
+
* - Execution is CANCELLED (cannot recover)
|
|
637
|
+
* - INVALID_ARGUMENT: ID is empty or malformed
|
|
638
|
+
*
|
|
639
|
+
* ## Example Request
|
|
640
|
+
*
|
|
641
|
+
* {
|
|
642
|
+
* "id": "wfx-abc123xyz456",
|
|
643
|
+
* "reason": "Stripe API recovered, resuming payment processing"
|
|
644
|
+
* }
|
|
645
|
+
*
|
|
646
|
+
* ## Example Response
|
|
647
|
+
*
|
|
648
|
+
* {
|
|
649
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
650
|
+
* "kind": "WorkflowExecution",
|
|
651
|
+
* "metadata": { "id": "wfx-abc123xyz456" },
|
|
652
|
+
* "status": {
|
|
653
|
+
* "phase": 2, // EXECUTION_IN_PROGRESS
|
|
654
|
+
* "started_at": "2026-02-07T10:00:00Z",
|
|
655
|
+
* "tasks": [
|
|
656
|
+
* { "task_id": "task-1", "status": 3 }, // COMPLETED (preserved)
|
|
657
|
+
* { "task_id": "task-2", "status": 2 } // IN_PROGRESS (resumed)
|
|
658
|
+
* ]
|
|
659
|
+
* }
|
|
660
|
+
* }
|
|
661
|
+
*
|
|
662
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.recover
|
|
663
|
+
*/
|
|
664
|
+
recover: {
|
|
665
|
+
name: "recover",
|
|
666
|
+
I: RecoverWorkflowExecutionInput,
|
|
667
|
+
O: WorkflowExecution,
|
|
668
|
+
kind: MethodKind.Unary,
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
* Pause a running workflow execution.
|
|
672
|
+
*
|
|
673
|
+
* Temporarily stops the workflow at its current checkpoint. Unlike cancel,
|
|
674
|
+
* the execution is NOT terminal and can be resumed later from where it left off.
|
|
675
|
+
* The workflow gracefully checkpoints and exits, preserving all progress.
|
|
676
|
+
*
|
|
677
|
+
* ## Behavior
|
|
678
|
+
*
|
|
679
|
+
* 1. Validates execution exists and is in a pausable phase
|
|
680
|
+
* 2. Sends "pause" signal to Temporal workflow
|
|
681
|
+
* 3. Workflow receives signal and sets pauseRequested flag
|
|
682
|
+
* 4. Running activities are gracefully cancelled (checkpoints saved)
|
|
683
|
+
* 5. Execution transitions to EXECUTION_PAUSED phase
|
|
684
|
+
* 6. Workflow waits for resume signal (no resources consumed)
|
|
685
|
+
* 7. Returns updated WorkflowExecution with PAUSED phase
|
|
686
|
+
*
|
|
687
|
+
* ## Preconditions
|
|
688
|
+
*
|
|
689
|
+
* - Execution must be in EXECUTION_PENDING or EXECUTION_IN_PROGRESS phase
|
|
690
|
+
* - Cannot pause already-terminal executions (COMPLETED, FAILED, CANCELLED, TERMINATED)
|
|
691
|
+
*
|
|
692
|
+
* ## State Transitions
|
|
693
|
+
*
|
|
694
|
+
* - status.phase: PENDING/IN_PROGRESS → PAUSED
|
|
695
|
+
* - status.completed_at: NOT set (execution is not finished)
|
|
696
|
+
* - Running activities: Gracefully cancelled, checkpoint saved
|
|
697
|
+
* - LangGraph state: Preserved via thread_id checkpoint
|
|
698
|
+
*
|
|
699
|
+
* ## Paused vs Cancelled
|
|
700
|
+
*
|
|
701
|
+
* | Aspect | pause | cancel |
|
|
702
|
+
* |--------|-------|--------|
|
|
703
|
+
* | Terminal state? | No | Yes |
|
|
704
|
+
* | Can resume? | Yes (via resume RPC) | No |
|
|
705
|
+
* | Checkpoint saved? | Yes | Best-effort |
|
|
706
|
+
* | Progress preserved? | Yes | No |
|
|
707
|
+
* | Use case | Temporary stop, maintenance | Permanent stop |
|
|
708
|
+
*
|
|
709
|
+
* ## Agent Activity Behavior
|
|
710
|
+
*
|
|
711
|
+
* When pause is signaled to a workflow running an agent:
|
|
712
|
+
* 1. Workflow cancels the running activity gracefully
|
|
713
|
+
* 2. Python activity catches CancelledError
|
|
714
|
+
* 3. LangGraph saves final checkpoint automatically
|
|
715
|
+
* 4. Activity returns with paused status
|
|
716
|
+
* 5. On resume, activity loads from checkpoint and continues
|
|
717
|
+
*
|
|
718
|
+
* ## Idempotency
|
|
719
|
+
*
|
|
720
|
+
* Pausing an already-paused execution succeeds as a no-op.
|
|
721
|
+
* The call returns the current execution state without side effects.
|
|
722
|
+
*
|
|
723
|
+
* ## Error Cases
|
|
724
|
+
*
|
|
725
|
+
* - NOT_FOUND: Execution with given ID doesn't exist
|
|
726
|
+
* - PERMISSION_DENIED: User lacks can_edit permission on the execution
|
|
727
|
+
* - FAILED_PRECONDITION: Execution is in a terminal phase
|
|
728
|
+
* - INVALID_ARGUMENT: ID is empty or malformed
|
|
729
|
+
*
|
|
730
|
+
* ## Example Request
|
|
731
|
+
*
|
|
732
|
+
* {
|
|
733
|
+
* "id": "wfx-abc123xyz456",
|
|
734
|
+
* "reason": "Pausing for scheduled maintenance window"
|
|
735
|
+
* }
|
|
736
|
+
*
|
|
737
|
+
* ## Example Response
|
|
738
|
+
*
|
|
739
|
+
* {
|
|
740
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
741
|
+
* "kind": "WorkflowExecution",
|
|
742
|
+
* "metadata": { "id": "wfx-abc123xyz456" },
|
|
743
|
+
* "status": {
|
|
744
|
+
* "phase": 7, // EXECUTION_PAUSED
|
|
745
|
+
* "started_at": "2026-02-07T10:00:00Z"
|
|
746
|
+
* // Note: completed_at is NOT set (execution can be resumed)
|
|
747
|
+
* }
|
|
748
|
+
* }
|
|
749
|
+
*
|
|
750
|
+
* @since Gap A3 (Pause/Resume Propagation)
|
|
751
|
+
*
|
|
752
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.pause
|
|
753
|
+
*/
|
|
754
|
+
pause: {
|
|
755
|
+
name: "pause",
|
|
756
|
+
I: PauseWorkflowExecutionInput,
|
|
757
|
+
O: WorkflowExecution,
|
|
758
|
+
kind: MethodKind.Unary,
|
|
759
|
+
},
|
|
760
|
+
/**
|
|
761
|
+
* Resume a paused workflow execution.
|
|
762
|
+
*
|
|
763
|
+
* Continues execution from the checkpoint where it was paused. The workflow
|
|
764
|
+
* re-invokes activities with the same thread_id, which loads from checkpoint
|
|
765
|
+
* and continues from where it left off.
|
|
766
|
+
*
|
|
767
|
+
* ## Behavior
|
|
768
|
+
*
|
|
769
|
+
* 1. Validates execution is in EXECUTION_PAUSED phase
|
|
770
|
+
* 2. Sends "resume" signal to Temporal workflow
|
|
771
|
+
* 3. Workflow receives signal and sets resumeSignalReceived flag
|
|
772
|
+
* 4. Workflow re-invokes activity with same execution context
|
|
773
|
+
* 5. Activity detects resume and loads from LangGraph checkpoint
|
|
774
|
+
* 6. Execution transitions back to EXECUTION_IN_PROGRESS phase
|
|
775
|
+
* 7. Returns updated WorkflowExecution with IN_PROGRESS phase
|
|
776
|
+
*
|
|
777
|
+
* ## Preconditions
|
|
778
|
+
*
|
|
779
|
+
* - Execution must be in EXECUTION_PAUSED phase
|
|
780
|
+
* - Cannot resume non-paused executions
|
|
781
|
+
*
|
|
782
|
+
* ## State Transitions
|
|
783
|
+
*
|
|
784
|
+
* - status.phase: PAUSED → IN_PROGRESS
|
|
785
|
+
* - Activities: Re-invoked, load from checkpoint
|
|
786
|
+
* - LangGraph state: Loaded from checkpoint via thread_id
|
|
787
|
+
*
|
|
788
|
+
* ## Resume Behavior
|
|
789
|
+
*
|
|
790
|
+
* When resume is signaled to a paused workflow:
|
|
791
|
+
* 1. Java workflow unblocks from Workflow.await()
|
|
792
|
+
* 2. Workflow re-invokes the activity with same parameters
|
|
793
|
+
* 3. Python activity reads thread_id from heartbeat_details
|
|
794
|
+
* 4. LangGraph loads checkpoint using thread_id
|
|
795
|
+
* 5. Agent continues from exact position where it was paused
|
|
796
|
+
*
|
|
797
|
+
* ## Idempotency
|
|
798
|
+
*
|
|
799
|
+
* Resuming an already-running execution succeeds as a no-op.
|
|
800
|
+
* The call returns the current execution state without side effects.
|
|
801
|
+
*
|
|
802
|
+
* ## Error Cases
|
|
803
|
+
*
|
|
804
|
+
* - NOT_FOUND: Execution with given ID doesn't exist
|
|
805
|
+
* - PERMISSION_DENIED: User lacks can_edit permission on the execution
|
|
806
|
+
* - FAILED_PRECONDITION: Execution is not in PAUSED phase
|
|
807
|
+
* - INVALID_ARGUMENT: ID is empty or malformed
|
|
808
|
+
*
|
|
809
|
+
* ## Example Request
|
|
810
|
+
*
|
|
811
|
+
* {
|
|
812
|
+
* "id": "wfx-abc123xyz456"
|
|
813
|
+
* }
|
|
814
|
+
*
|
|
815
|
+
* ## Example Response
|
|
816
|
+
*
|
|
817
|
+
* {
|
|
818
|
+
* "api_version": "agentic.stigmer.ai/v1",
|
|
819
|
+
* "kind": "WorkflowExecution",
|
|
820
|
+
* "metadata": { "id": "wfx-abc123xyz456" },
|
|
821
|
+
* "status": {
|
|
822
|
+
* "phase": 2, // EXECUTION_IN_PROGRESS
|
|
823
|
+
* "started_at": "2026-02-07T10:00:00Z"
|
|
824
|
+
* }
|
|
825
|
+
* }
|
|
826
|
+
*
|
|
827
|
+
* @since Gap A3 (Pause/Resume Propagation)
|
|
828
|
+
*
|
|
829
|
+
* @generated from rpc ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionCommandController.resume
|
|
830
|
+
*/
|
|
831
|
+
resume: {
|
|
832
|
+
name: "resume",
|
|
833
|
+
I: ResumeWorkflowExecutionInput,
|
|
834
|
+
O: WorkflowExecution,
|
|
835
|
+
kind: MethodKind.Unary,
|
|
836
|
+
},
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
//# sourceMappingURL=command_connect.js.map
|