@stigmer/protos 0.5.1 → 1.0.1

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.
Files changed (139) hide show
  1. package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +7 -0
  2. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
  3. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
  4. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +54 -0
  5. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +56 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +149 -1
  8. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +50 -2
  9. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +31 -0
  11. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +32 -1
  12. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
  13. package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +31 -1
  14. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +16 -0
  17. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +2 -1
  18. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +68 -0
  20. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +6 -1
  21. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/artifact/v1/api_pb.d.ts +152 -0
  23. package/ai/stigmer/agentic/artifact/v1/api_pb.js +24 -0
  24. package/ai/stigmer/agentic/artifact/v1/api_pb.js.map +1 -0
  25. package/ai/stigmer/agentic/artifact/v1/command_connect.d.ts +83 -0
  26. package/ai/stigmer/agentic/artifact/v1/command_connect.js +92 -0
  27. package/ai/stigmer/agentic/artifact/v1/command_connect.js.map +1 -0
  28. package/ai/stigmer/agentic/artifact/v1/command_pb.d.ts +86 -0
  29. package/ai/stigmer/agentic/artifact/v1/command_pb.js +36 -0
  30. package/ai/stigmer/agentic/artifact/v1/command_pb.js.map +1 -0
  31. package/ai/stigmer/agentic/artifact/v1/enum_pb.d.ts +49 -0
  32. package/ai/stigmer/agentic/artifact/v1/enum_pb.js +54 -0
  33. package/ai/stigmer/agentic/artifact/v1/enum_pb.js.map +1 -0
  34. package/ai/stigmer/agentic/artifact/v1/io_pb.d.ts +205 -0
  35. package/ai/stigmer/agentic/artifact/v1/io_pb.js +37 -0
  36. package/ai/stigmer/agentic/artifact/v1/io_pb.js.map +1 -0
  37. package/ai/stigmer/agentic/artifact/v1/query_connect.d.ts +127 -0
  38. package/ai/stigmer/agentic/artifact/v1/query_connect.js +135 -0
  39. package/ai/stigmer/agentic/artifact/v1/query_connect.js.map +1 -0
  40. package/ai/stigmer/agentic/artifact/v1/query_pb.d.ts +128 -0
  41. package/ai/stigmer/agentic/artifact/v1/query_pb.js +32 -0
  42. package/ai/stigmer/agentic/artifact/v1/query_pb.js.map +1 -0
  43. package/ai/stigmer/agentic/artifact/v1/spec_pb.d.ts +161 -0
  44. package/ai/stigmer/agentic/artifact/v1/spec_pb.js +25 -0
  45. package/ai/stigmer/agentic/artifact/v1/spec_pb.js.map +1 -0
  46. package/ai/stigmer/agentic/runner/v1/api_pb.d.ts +33 -0
  47. package/ai/stigmer/agentic/runner/v1/api_pb.js +1 -1
  48. package/ai/stigmer/agentic/runner/v1/api_pb.js.map +1 -1
  49. package/ai/stigmer/agentic/runner/v1/io_pb.d.ts +15 -1
  50. package/ai/stigmer/agentic/runner/v1/io_pb.js +1 -1
  51. package/ai/stigmer/agentic/runner/v1/io_pb.js.map +1 -1
  52. package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +30 -0
  53. package/ai/stigmer/agentic/workflow/v1/command_connect.js +31 -0
  54. package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
  55. package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +30 -0
  56. package/ai/stigmer/agentic/workflow/v1/command_pb.js +2 -1
  57. package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
  58. package/ai/stigmer/agentic/workflow/v1/enum_pb.d.ts +141 -1
  59. package/ai/stigmer/agentic/workflow/v1/enum_pb.js +142 -1
  60. package/ai/stigmer/agentic/workflow/v1/enum_pb.js.map +1 -1
  61. package/ai/stigmer/agentic/workflow/v1/spec_pb.d.ts +132 -1
  62. package/ai/stigmer/agentic/workflow/v1/spec_pb.js +10 -5
  63. package/ai/stigmer/agentic/workflow/v1/spec_pb.js.map +1 -1
  64. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.d.ts +430 -0
  65. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js +172 -0
  66. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js.map +1 -0
  67. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.d.ts +39 -0
  68. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js +46 -0
  69. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js.map +1 -0
  70. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.d.ts +41 -0
  71. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js +28 -0
  72. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js.map +1 -0
  73. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +186 -4
  74. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +10 -2
  75. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -1
  76. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.d.ts +67 -0
  77. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js +72 -0
  78. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js.map +1 -0
  79. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.d.ts +147 -0
  80. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js +22 -0
  81. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js.map +1 -0
  82. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.d.ts +341 -0
  83. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js +128 -0
  84. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js.map +1 -0
  85. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.d.ts +129 -2
  86. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js +56 -2
  87. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js.map +1 -1
  88. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.d.ts +284 -0
  89. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js +80 -0
  90. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js.map +1 -0
  91. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.d.ts +186 -0
  92. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js +18 -0
  93. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js.map +1 -0
  94. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.d.ts +160 -0
  95. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js +16 -0
  96. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js.map +1 -0
  97. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.d.ts +124 -0
  98. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js +65 -0
  99. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js.map +1 -0
  100. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.d.ts +19 -0
  101. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js +1 -1
  102. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js.map +1 -1
  103. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.d.ts +257 -0
  104. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js +79 -0
  105. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js.map +1 -0
  106. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +96 -0
  107. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +1 -1
  108. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
  109. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +47 -0
  110. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +48 -1
  111. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
  112. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +47 -1
  113. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
  114. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
  115. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +1287 -0
  116. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +303 -0
  117. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -0
  118. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +578 -72
  119. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +82 -70
  120. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
  121. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.d.ts +182 -0
  122. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js +184 -1
  123. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js.map +1 -1
  124. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.d.ts +180 -1
  125. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js +2 -1
  126. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js.map +1 -1
  127. package/ai/stigmer/billing/v1/io_pb.d.ts +8 -0
  128. package/ai/stigmer/billing/v1/io_pb.js +1 -1
  129. package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
  130. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
  131. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
  132. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  133. package/ai/stigmer/platform/v1/server_info_connect.d.ts +29 -0
  134. package/ai/stigmer/platform/v1/server_info_connect.js +36 -0
  135. package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -0
  136. package/ai/stigmer/platform/v1/server_info_pb.d.ts +100 -0
  137. package/ai/stigmer/platform/v1/server_info_pb.js +65 -0
  138. package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -0
  139. package/package.json +1 -1
@@ -0,0 +1,1287 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { ApprovalAction, ExecutionPhase } from "../../agentexecution/v1/enum_pb.js";
3
+ import type { BudgetExceededPolicy, WorkflowTaskKind } from "../../workflow/v1/enum_pb.js";
4
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file ai/stigmer/agentic/workflowexecution/v1/event.proto.
7
+ */
8
+ export declare const file_ai_stigmer_agentic_workflowexecution_v1_event: GenFile;
9
+ /**
10
+ * WorkflowExecutionEvent represents a single timestamped event in the execution
11
+ * timeline of a workflow run.
12
+ *
13
+ * @internal
14
+ * Events form an append-only log that captures the full history of an execution:
15
+ * what happened, when, and in what order. This complements the existing
16
+ * WorkflowExecutionStatus snapshot model (which answers "what is the current state?")
17
+ * by adding the temporal dimension ("what happened?").
18
+ *
19
+ * The event log enables:
20
+ * - Execution viewer timeline (T09) — ordered sequence of task transitions
21
+ * - Retry visibility — task_started + task_failed + task_retrying + task_started
22
+ * tells the full story that a point-in-time snapshot cannot
23
+ * - Cost attribution — per-task cost/token breakdown over time
24
+ * - Audit trail — who approved what, when, with what decision
25
+ * - Agent subtrace context — lightweight progress summaries with child execution
26
+ * references for drill-down (full agent stream fetched separately)
27
+ *
28
+ * Ordering:
29
+ * Events are ordered by sequence_number (monotonic per execution, assigned by
30
+ * the workflow-runner). Wall-clock occurred_at is informational; sequence_number
31
+ * is the authoritative ordering key.
32
+ *
33
+ * Production:
34
+ * The workflow-runner appends events alongside status updates via the
35
+ * updateStatus RPC. Events are persisted atomically with the status update.
36
+ *
37
+ * Consumption:
38
+ * - getEventLog RPC: paginated fetch for completed or in-progress executions
39
+ * - subscribeEvents RPC: real-time server-stream of incremental events
40
+ *
41
+ * @since T06 (Execution Event Stream Model)
42
+ *
43
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionEvent
44
+ */
45
+ export type WorkflowExecutionEvent = Message<"ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionEvent"> & {
46
+ /**
47
+ * Unique event identifier.
48
+ *
49
+ * @internal
50
+ * Format: UUID v4, generated by the workflow-runner at event creation time.
51
+ * Used for deduplication on retries: (execution_id, event_id) is unique.
52
+ *
53
+ * @generated from field: string event_id = 1;
54
+ */
55
+ eventId: string;
56
+ /**
57
+ * Type of event that occurred.
58
+ *
59
+ * @internal
60
+ * Determines which oneof payload field is populated.
61
+ * Consumers should switch on event_type to extract the correct payload.
62
+ *
63
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.WorkflowEventType event_type = 2;
64
+ */
65
+ eventType: WorkflowEventType;
66
+ /**
67
+ * Monotonically increasing sequence number within this execution.
68
+ *
69
+ * @internal
70
+ * Assigned by the workflow-runner, starting at 1 for the first event.
71
+ * Provides total ordering within a single execution without relying on
72
+ * clock synchronization. Used as the cursor for paginated event queries
73
+ * (getEventLog) and live-tail positioning (subscribeEvents).
74
+ *
75
+ * If the runner crashes and restarts, it queries getEventLog to recover
76
+ * the last sequence number before emitting new events.
77
+ *
78
+ * @generated from field: uint64 sequence_number = 3;
79
+ */
80
+ sequenceNumber: bigint;
81
+ /**
82
+ * ISO 8601 timestamp when the event occurred.
83
+ *
84
+ * @internal
85
+ * Wall-clock time from the workflow-runner. Informational — do not use
86
+ * for ordering (use sequence_number instead). Useful for:
87
+ * - Displaying human-readable timestamps in the execution viewer
88
+ * - Calculating task durations (task_completed.occurred_at - task_started.occurred_at)
89
+ * - Correlating with external system logs
90
+ *
91
+ * Format: "YYYY-MM-DDTHH:MM:SS.sssZ" (UTC, millisecond precision)
92
+ *
93
+ * @generated from field: string occurred_at = 4;
94
+ */
95
+ occurredAt: string;
96
+ /**
97
+ * Name of the task this event relates to, if applicable.
98
+ *
99
+ * @internal
100
+ * Empty for execution-level events (execution_started, execution_completed, etc.).
101
+ * Populated for task-level events (task_started, task_completed, agent_call_progress, etc.).
102
+ * Matches WorkflowTask.task_name in the status snapshot.
103
+ *
104
+ * Enables filtering events by task: "show me everything that happened for task X."
105
+ *
106
+ * @generated from field: string task_name = 5;
107
+ */
108
+ taskName: string;
109
+ /**
110
+ * Event-specific payload, discriminated by event_type.
111
+ *
112
+ * @internal
113
+ * Exactly one payload field is populated per event, corresponding to the
114
+ * event_type. Consumers must check event_type before accessing the payload
115
+ * to avoid reading the wrong oneof branch.
116
+ *
117
+ * @generated from oneof ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionEvent.payload
118
+ */
119
+ payload: {
120
+ /**
121
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionStartedPayload execution_started = 10;
122
+ */
123
+ value: ExecutionStartedPayload;
124
+ case: "executionStarted";
125
+ } | {
126
+ /**
127
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionCompletedPayload execution_completed = 11;
128
+ */
129
+ value: ExecutionCompletedPayload;
130
+ case: "executionCompleted";
131
+ } | {
132
+ /**
133
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionFailedPayload execution_failed = 12;
134
+ */
135
+ value: ExecutionFailedPayload;
136
+ case: "executionFailed";
137
+ } | {
138
+ /**
139
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionPausedPayload execution_paused = 13;
140
+ */
141
+ value: ExecutionPausedPayload;
142
+ case: "executionPaused";
143
+ } | {
144
+ /**
145
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionResumedPayload execution_resumed = 14;
146
+ */
147
+ value: ExecutionResumedPayload;
148
+ case: "executionResumed";
149
+ } | {
150
+ /**
151
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionCancelledPayload execution_cancelled = 15;
152
+ */
153
+ value: ExecutionCancelledPayload;
154
+ case: "executionCancelled";
155
+ } | {
156
+ /**
157
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ExecutionTerminatedPayload execution_terminated = 16;
158
+ */
159
+ value: ExecutionTerminatedPayload;
160
+ case: "executionTerminated";
161
+ } | {
162
+ /**
163
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.TaskStartedPayload task_started = 20;
164
+ */
165
+ value: TaskStartedPayload;
166
+ case: "taskStarted";
167
+ } | {
168
+ /**
169
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.TaskCompletedPayload task_completed = 21;
170
+ */
171
+ value: TaskCompletedPayload;
172
+ case: "taskCompleted";
173
+ } | {
174
+ /**
175
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.TaskFailedPayload task_failed = 22;
176
+ */
177
+ value: TaskFailedPayload;
178
+ case: "taskFailed";
179
+ } | {
180
+ /**
181
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.TaskSkippedPayload task_skipped = 23;
182
+ */
183
+ value: TaskSkippedPayload;
184
+ case: "taskSkipped";
185
+ } | {
186
+ /**
187
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.TaskRetryingPayload task_retrying = 24;
188
+ */
189
+ value: TaskRetryingPayload;
190
+ case: "taskRetrying";
191
+ } | {
192
+ /**
193
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.AgentCallStartedPayload agent_call_started = 30;
194
+ */
195
+ value: AgentCallStartedPayload;
196
+ case: "agentCallStarted";
197
+ } | {
198
+ /**
199
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.AgentCallProgressPayload agent_call_progress = 31;
200
+ */
201
+ value: AgentCallProgressPayload;
202
+ case: "agentCallProgress";
203
+ } | {
204
+ /**
205
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.AgentCallCompletedPayload agent_call_completed = 32;
206
+ */
207
+ value: AgentCallCompletedPayload;
208
+ case: "agentCallCompleted";
209
+ } | {
210
+ /**
211
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ApprovalRequestedPayload approval_requested = 40;
212
+ */
213
+ value: ApprovalRequestedPayload;
214
+ case: "approvalRequested";
215
+ } | {
216
+ /**
217
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ApprovalResolvedPayload approval_resolved = 41;
218
+ */
219
+ value: ApprovalResolvedPayload;
220
+ case: "approvalResolved";
221
+ } | {
222
+ /**
223
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.BudgetCheckpointPayload budget_checkpoint = 50;
224
+ */
225
+ value: BudgetCheckpointPayload;
226
+ case: "budgetCheckpoint";
227
+ } | {
228
+ /**
229
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.SignalReceivedPayload signal_received = 60;
230
+ */
231
+ value: SignalReceivedPayload;
232
+ case: "signalReceived";
233
+ } | {
234
+ /**
235
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.EventEmittedPayload event_emitted = 61;
236
+ */
237
+ value: EventEmittedPayload;
238
+ case: "eventEmitted";
239
+ } | {
240
+ /**
241
+ * @generated from field: ai.stigmer.agentic.workflowexecution.v1.ArtifactCreatedPayload artifact_created = 70;
242
+ */
243
+ value: ArtifactCreatedPayload;
244
+ case: "artifactCreated";
245
+ } | {
246
+ case: undefined;
247
+ value?: undefined;
248
+ };
249
+ };
250
+ /**
251
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionEvent.
252
+ * Use `create(WorkflowExecutionEventSchema)` to create a new message.
253
+ */
254
+ export declare const WorkflowExecutionEventSchema: GenMessage<WorkflowExecutionEvent>;
255
+ /**
256
+ * Payload for execution_started events.
257
+ *
258
+ * @internal
259
+ * Emitted once per execution when the runner picks up the workflow and
260
+ * transitions phase from PENDING to IN_PROGRESS.
261
+ *
262
+ * @since T06
263
+ *
264
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionStartedPayload
265
+ */
266
+ export type ExecutionStartedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionStartedPayload"> & {
267
+ /**
268
+ * Total number of top-level tasks in the workflow definition.
269
+ * Enables progress calculation (completed_count / total_tasks).
270
+ *
271
+ * @generated from field: int32 total_tasks = 1;
272
+ */
273
+ totalTasks: number;
274
+ /**
275
+ * Workflow ID (wf_{slug}) resolved for this execution.
276
+ *
277
+ * @generated from field: string workflow_id = 2;
278
+ */
279
+ workflowId: string;
280
+ /**
281
+ * WorkflowInstance ID (wfi_{slug}) resolved for this execution.
282
+ *
283
+ * @generated from field: string workflow_instance_id = 3;
284
+ */
285
+ workflowInstanceId: string;
286
+ };
287
+ /**
288
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionStartedPayload.
289
+ * Use `create(ExecutionStartedPayloadSchema)` to create a new message.
290
+ */
291
+ export declare const ExecutionStartedPayloadSchema: GenMessage<ExecutionStartedPayload>;
292
+ /**
293
+ * Payload for execution_completed events.
294
+ *
295
+ * @internal
296
+ * Emitted when all tasks have reached terminal states and the workflow
297
+ * produces its final output. This is the last event for a successful execution.
298
+ *
299
+ * @since T06
300
+ *
301
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionCompletedPayload
302
+ */
303
+ export type ExecutionCompletedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionCompletedPayload"> & {
304
+ /**
305
+ * Final workflow output, truncated if exceeding size limits.
306
+ * The full output is available on WorkflowExecutionStatus.output.
307
+ *
308
+ * @generated from field: google.protobuf.Struct output_summary = 1;
309
+ */
310
+ outputSummary?: JsonObject;
311
+ /**
312
+ * Total wall-clock duration of the execution in milliseconds.
313
+ *
314
+ * @generated from field: int64 duration_ms = 2;
315
+ */
316
+ durationMs: bigint;
317
+ /**
318
+ * Aggregate cost across all tasks in micro-USD (1 USD = 1,000,000 micros).
319
+ *
320
+ * @generated from field: int64 total_cost_micros = 3;
321
+ */
322
+ totalCostMicros: bigint;
323
+ /**
324
+ * Aggregate token consumption across all LLM/agent tasks.
325
+ *
326
+ * @generated from field: int64 total_tokens = 4;
327
+ */
328
+ totalTokens: bigint;
329
+ };
330
+ /**
331
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionCompletedPayload.
332
+ * Use `create(ExecutionCompletedPayloadSchema)` to create a new message.
333
+ */
334
+ export declare const ExecutionCompletedPayloadSchema: GenMessage<ExecutionCompletedPayload>;
335
+ /**
336
+ * Payload for execution_failed events.
337
+ *
338
+ * @internal
339
+ * Emitted when the workflow transitions to EXECUTION_FAILED. Contains the
340
+ * top-level error and a reference to the task that caused the failure.
341
+ *
342
+ * @since T06
343
+ *
344
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionFailedPayload
345
+ */
346
+ export type ExecutionFailedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionFailedPayload"> & {
347
+ /**
348
+ * Human-readable error description.
349
+ * Same as WorkflowExecutionStatus.error.
350
+ *
351
+ * @generated from field: string error = 1;
352
+ */
353
+ error: string;
354
+ /**
355
+ * Name of the task that caused the failure, if applicable.
356
+ * Empty for workflow-level failures (e.g., budget exceeded, timeout).
357
+ *
358
+ * @generated from field: string failed_task_name = 2;
359
+ */
360
+ failedTaskName: string;
361
+ /**
362
+ * Total wall-clock duration before failure in milliseconds.
363
+ *
364
+ * @generated from field: int64 duration_ms = 3;
365
+ */
366
+ durationMs: bigint;
367
+ };
368
+ /**
369
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionFailedPayload.
370
+ * Use `create(ExecutionFailedPayloadSchema)` to create a new message.
371
+ */
372
+ export declare const ExecutionFailedPayloadSchema: GenMessage<ExecutionFailedPayload>;
373
+ /**
374
+ * Payload for execution_paused events.
375
+ *
376
+ * @internal
377
+ * @since T06
378
+ *
379
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionPausedPayload
380
+ */
381
+ export type ExecutionPausedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionPausedPayload"> & {
382
+ /**
383
+ * Human-readable reason for the pause, from PauseWorkflowExecutionInput.reason.
384
+ *
385
+ * @generated from field: string reason = 1;
386
+ */
387
+ reason: string;
388
+ /**
389
+ * Identity of the user or system that requested the pause.
390
+ *
391
+ * @generated from field: string paused_by = 2;
392
+ */
393
+ pausedBy: string;
394
+ };
395
+ /**
396
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionPausedPayload.
397
+ * Use `create(ExecutionPausedPayloadSchema)` to create a new message.
398
+ */
399
+ export declare const ExecutionPausedPayloadSchema: GenMessage<ExecutionPausedPayload>;
400
+ /**
401
+ * Payload for execution_resumed events.
402
+ *
403
+ * @internal
404
+ * @since T06
405
+ *
406
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionResumedPayload
407
+ */
408
+ export type ExecutionResumedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionResumedPayload"> & {
409
+ /**
410
+ * Identity of the user or system that resumed the execution.
411
+ *
412
+ * @generated from field: string resumed_by = 1;
413
+ */
414
+ resumedBy: string;
415
+ };
416
+ /**
417
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionResumedPayload.
418
+ * Use `create(ExecutionResumedPayloadSchema)` to create a new message.
419
+ */
420
+ export declare const ExecutionResumedPayloadSchema: GenMessage<ExecutionResumedPayload>;
421
+ /**
422
+ * Payload for execution_cancelled events.
423
+ *
424
+ * @internal
425
+ * @since T06
426
+ *
427
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionCancelledPayload
428
+ */
429
+ export type ExecutionCancelledPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionCancelledPayload"> & {
430
+ /**
431
+ * Human-readable reason for cancellation, from CancelWorkflowExecutionInput.reason.
432
+ *
433
+ * @generated from field: string reason = 1;
434
+ */
435
+ reason: string;
436
+ /**
437
+ * Identity of the user or system that cancelled the execution.
438
+ *
439
+ * @generated from field: string cancelled_by = 2;
440
+ */
441
+ cancelledBy: string;
442
+ };
443
+ /**
444
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionCancelledPayload.
445
+ * Use `create(ExecutionCancelledPayloadSchema)` to create a new message.
446
+ */
447
+ export declare const ExecutionCancelledPayloadSchema: GenMessage<ExecutionCancelledPayload>;
448
+ /**
449
+ * Payload for execution_terminated events.
450
+ *
451
+ * @internal
452
+ * @since T06
453
+ *
454
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ExecutionTerminatedPayload
455
+ */
456
+ export type ExecutionTerminatedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ExecutionTerminatedPayload"> & {
457
+ /**
458
+ * Human-readable reason for termination.
459
+ *
460
+ * @generated from field: string reason = 1;
461
+ */
462
+ reason: string;
463
+ /**
464
+ * Identity of the user or system that terminated the execution.
465
+ *
466
+ * @generated from field: string terminated_by = 2;
467
+ */
468
+ terminatedBy: string;
469
+ };
470
+ /**
471
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ExecutionTerminatedPayload.
472
+ * Use `create(ExecutionTerminatedPayloadSchema)` to create a new message.
473
+ */
474
+ export declare const ExecutionTerminatedPayloadSchema: GenMessage<ExecutionTerminatedPayload>;
475
+ /**
476
+ * Payload for task_started events.
477
+ *
478
+ * @internal
479
+ * Emitted when a task transitions from PENDING to IN_PROGRESS.
480
+ *
481
+ * @since T06
482
+ *
483
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.TaskStartedPayload
484
+ */
485
+ export type TaskStartedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.TaskStartedPayload"> & {
486
+ /**
487
+ * Task kind from the workflow definition (e.g., agent_call, llm_call, http_call).
488
+ *
489
+ * @generated from field: ai.stigmer.agentic.workflow.v1.WorkflowTaskKind task_kind = 1;
490
+ */
491
+ taskKind: WorkflowTaskKind;
492
+ /**
493
+ * Truncated summary of the task input configuration.
494
+ * Full input is available on WorkflowTask.input in the status snapshot.
495
+ * Truncated to prevent event bloat from large Struct payloads.
496
+ *
497
+ * @generated from field: google.protobuf.Struct input_summary = 2;
498
+ */
499
+ inputSummary?: JsonObject;
500
+ /**
501
+ * For retry attempts: which attempt number this is (1 = first attempt).
502
+ *
503
+ * @generated from field: int32 attempt_number = 3;
504
+ */
505
+ attemptNumber: number;
506
+ };
507
+ /**
508
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.TaskStartedPayload.
509
+ * Use `create(TaskStartedPayloadSchema)` to create a new message.
510
+ */
511
+ export declare const TaskStartedPayloadSchema: GenMessage<TaskStartedPayload>;
512
+ /**
513
+ * Payload for task_completed events.
514
+ *
515
+ * @internal
516
+ * Emitted when a task transitions to WORKFLOW_TASK_COMPLETED.
517
+ *
518
+ * @since T06
519
+ *
520
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.TaskCompletedPayload
521
+ */
522
+ export type TaskCompletedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.TaskCompletedPayload"> & {
523
+ /**
524
+ * Task kind for correlation with task_started.
525
+ *
526
+ * @generated from field: ai.stigmer.agentic.workflow.v1.WorkflowTaskKind task_kind = 1;
527
+ */
528
+ taskKind: WorkflowTaskKind;
529
+ /**
530
+ * Task execution duration in milliseconds.
531
+ *
532
+ * @generated from field: int64 duration_ms = 2;
533
+ */
534
+ durationMs: bigint;
535
+ /**
536
+ * Truncated summary of the task output.
537
+ * Full output is available on WorkflowTask.output in the status snapshot.
538
+ *
539
+ * @generated from field: google.protobuf.Struct output_summary = 3;
540
+ */
541
+ outputSummary?: JsonObject;
542
+ /**
543
+ * Cost incurred by this task in micro-USD (0 for non-LLM/non-agent tasks).
544
+ *
545
+ * @generated from field: int64 cost_micros = 4;
546
+ */
547
+ costMicros: bigint;
548
+ /**
549
+ * Tokens consumed by this task (0 for non-LLM/non-agent tasks).
550
+ *
551
+ * @generated from field: int64 tokens_used = 5;
552
+ */
553
+ tokensUsed: bigint;
554
+ };
555
+ /**
556
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.TaskCompletedPayload.
557
+ * Use `create(TaskCompletedPayloadSchema)` to create a new message.
558
+ */
559
+ export declare const TaskCompletedPayloadSchema: GenMessage<TaskCompletedPayload>;
560
+ /**
561
+ * Payload for task_failed events.
562
+ *
563
+ * @internal
564
+ * Emitted when a task transitions to WORKFLOW_TASK_FAILED.
565
+ * If the task will be retried, a task_retrying event follows this one.
566
+ *
567
+ * @since T06
568
+ *
569
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.TaskFailedPayload
570
+ */
571
+ export type TaskFailedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.TaskFailedPayload"> & {
572
+ /**
573
+ * Task kind for correlation.
574
+ *
575
+ * @generated from field: ai.stigmer.agentic.workflow.v1.WorkflowTaskKind task_kind = 1;
576
+ */
577
+ taskKind: WorkflowTaskKind;
578
+ /**
579
+ * Human-readable error description.
580
+ *
581
+ * @generated from field: string error = 2;
582
+ */
583
+ error: string;
584
+ /**
585
+ * Which attempt this failure occurred on (1 = first attempt).
586
+ *
587
+ * @generated from field: int32 attempt_number = 3;
588
+ */
589
+ attemptNumber: number;
590
+ /**
591
+ * Maximum retry attempts configured for this task.
592
+ * 0 means no retries configured.
593
+ *
594
+ * @generated from field: int32 max_attempts = 4;
595
+ */
596
+ maxAttempts: number;
597
+ /**
598
+ * Whether the runner will retry this task after this failure.
599
+ * When true, a task_retrying event will follow.
600
+ *
601
+ * @generated from field: bool will_retry = 5;
602
+ */
603
+ willRetry: boolean;
604
+ /**
605
+ * Task execution duration for this attempt in milliseconds.
606
+ *
607
+ * @generated from field: int64 duration_ms = 6;
608
+ */
609
+ durationMs: bigint;
610
+ };
611
+ /**
612
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.TaskFailedPayload.
613
+ * Use `create(TaskFailedPayloadSchema)` to create a new message.
614
+ */
615
+ export declare const TaskFailedPayloadSchema: GenMessage<TaskFailedPayload>;
616
+ /**
617
+ * Payload for task_skipped events.
618
+ *
619
+ * @internal
620
+ * Emitted when a task transitions to WORKFLOW_TASK_SKIPPED due to
621
+ * conditional logic (switch_case evaluated to a different branch).
622
+ *
623
+ * @since T06
624
+ *
625
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.TaskSkippedPayload
626
+ */
627
+ export type TaskSkippedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.TaskSkippedPayload"> & {
628
+ /**
629
+ * Task kind that was skipped.
630
+ *
631
+ * @generated from field: ai.stigmer.agentic.workflow.v1.WorkflowTaskKind task_kind = 1;
632
+ */
633
+ taskKind: WorkflowTaskKind;
634
+ /**
635
+ * Reason the task was skipped (e.g., "condition evaluated to false",
636
+ * "branch not selected").
637
+ *
638
+ * @generated from field: string reason = 2;
639
+ */
640
+ reason: string;
641
+ };
642
+ /**
643
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.TaskSkippedPayload.
644
+ * Use `create(TaskSkippedPayloadSchema)` to create a new message.
645
+ */
646
+ export declare const TaskSkippedPayloadSchema: GenMessage<TaskSkippedPayload>;
647
+ /**
648
+ * Payload for task_retrying events.
649
+ *
650
+ * @internal
651
+ * Emitted between a task_failed and the next task_started for the same task.
652
+ * Indicates the runner is scheduling a retry with optional backoff.
653
+ *
654
+ * @since T06
655
+ *
656
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.TaskRetryingPayload
657
+ */
658
+ export type TaskRetryingPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.TaskRetryingPayload"> & {
659
+ /**
660
+ * Which attempt failed, prompting this retry.
661
+ *
662
+ * @generated from field: int32 failed_attempt = 1;
663
+ */
664
+ failedAttempt: number;
665
+ /**
666
+ * Which attempt number will be tried next.
667
+ *
668
+ * @generated from field: int32 next_attempt = 2;
669
+ */
670
+ nextAttempt: number;
671
+ /**
672
+ * Delay before the retry starts, in milliseconds.
673
+ * 0 means immediate retry.
674
+ *
675
+ * @generated from field: int64 delay_ms = 3;
676
+ */
677
+ delayMs: bigint;
678
+ };
679
+ /**
680
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.TaskRetryingPayload.
681
+ * Use `create(TaskRetryingPayloadSchema)` to create a new message.
682
+ */
683
+ export declare const TaskRetryingPayloadSchema: GenMessage<TaskRetryingPayload>;
684
+ /**
685
+ * Payload for agent_call_started events.
686
+ *
687
+ * @internal
688
+ * Emitted when the workflow-runner creates a child AgentExecution for an
689
+ * agent_call task. The child_execution_id enables the UI to open a
690
+ * drill-down stream into the agent's execution.
691
+ *
692
+ * @since T06
693
+ *
694
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.AgentCallStartedPayload
695
+ */
696
+ export type AgentCallStartedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.AgentCallStartedPayload"> & {
697
+ /**
698
+ * ID of the child AgentExecution (format: "aex_{ulid}").
699
+ * Use this to subscribe to the agent's execution stream for full detail.
700
+ *
701
+ * @generated from field: string child_execution_id = 1;
702
+ */
703
+ childExecutionId: string;
704
+ /**
705
+ * Agent slug being invoked (e.g., "customer-support-agent").
706
+ *
707
+ * @generated from field: string agent_slug = 2;
708
+ */
709
+ agentSlug: string;
710
+ /**
711
+ * The prompt/message sent to the agent.
712
+ * Truncated if exceeding size limits.
713
+ *
714
+ * @generated from field: string message_summary = 3;
715
+ */
716
+ messageSummary: string;
717
+ };
718
+ /**
719
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.AgentCallStartedPayload.
720
+ * Use `create(AgentCallStartedPayloadSchema)` to create a new message.
721
+ */
722
+ export declare const AgentCallStartedPayloadSchema: GenMessage<AgentCallStartedPayload>;
723
+ /**
724
+ * Payload for agent_call_progress events.
725
+ *
726
+ * @internal
727
+ * Periodic lightweight summary emitted while the child agent is running.
728
+ * Frequency is a runtime decision (T13) — typically on agent phase transitions
729
+ * or at regular intervals. The full agent stream with messages and tool calls
730
+ * is available via AgentExecution.subscribe using child_execution_id.
731
+ *
732
+ * @since T06
733
+ *
734
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.AgentCallProgressPayload
735
+ */
736
+ export type AgentCallProgressPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.AgentCallProgressPayload"> & {
737
+ /**
738
+ * ID of the child AgentExecution.
739
+ *
740
+ * @generated from field: string child_execution_id = 1;
741
+ */
742
+ childExecutionId: string;
743
+ /**
744
+ * Current phase of the child agent execution.
745
+ *
746
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ExecutionPhase agent_phase = 2;
747
+ */
748
+ agentPhase: ExecutionPhase;
749
+ /**
750
+ * Name of the tool currently being executed, if any.
751
+ * Empty when the agent is generating text (not calling a tool).
752
+ *
753
+ * @generated from field: string current_tool_name = 3;
754
+ */
755
+ currentToolName: string;
756
+ /**
757
+ * Total tokens consumed by the agent so far.
758
+ *
759
+ * @generated from field: int64 tokens_consumed = 4;
760
+ */
761
+ tokensConsumed: bigint;
762
+ /**
763
+ * Total number of messages in the agent conversation so far.
764
+ *
765
+ * @generated from field: int32 messages_count = 5;
766
+ */
767
+ messagesCount: number;
768
+ /**
769
+ * Number of tool calls completed so far.
770
+ *
771
+ * @generated from field: int32 tool_calls_count = 6;
772
+ */
773
+ toolCallsCount: number;
774
+ };
775
+ /**
776
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.AgentCallProgressPayload.
777
+ * Use `create(AgentCallProgressPayloadSchema)` to create a new message.
778
+ */
779
+ export declare const AgentCallProgressPayloadSchema: GenMessage<AgentCallProgressPayload>;
780
+ /**
781
+ * Payload for agent_call_completed events.
782
+ *
783
+ * @internal
784
+ * Emitted when the child AgentExecution reaches a terminal phase.
785
+ *
786
+ * @since T06
787
+ *
788
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.AgentCallCompletedPayload
789
+ */
790
+ export type AgentCallCompletedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.AgentCallCompletedPayload"> & {
791
+ /**
792
+ * ID of the child AgentExecution.
793
+ *
794
+ * @generated from field: string child_execution_id = 1;
795
+ */
796
+ childExecutionId: string;
797
+ /**
798
+ * Terminal phase of the child agent execution.
799
+ *
800
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ExecutionPhase agent_phase = 2;
801
+ */
802
+ agentPhase: ExecutionPhase;
803
+ /**
804
+ * Duration of the agent execution in milliseconds.
805
+ *
806
+ * @generated from field: int64 duration_ms = 3;
807
+ */
808
+ durationMs: bigint;
809
+ /**
810
+ * Total tokens consumed by the agent.
811
+ *
812
+ * @generated from field: int64 tokens_consumed = 4;
813
+ */
814
+ tokensConsumed: bigint;
815
+ /**
816
+ * Cost incurred by the agent execution in micro-USD.
817
+ *
818
+ * @generated from field: int64 cost_micros = 5;
819
+ */
820
+ costMicros: bigint;
821
+ /**
822
+ * Error message if the agent failed. Empty on success.
823
+ *
824
+ * @generated from field: string error = 6;
825
+ */
826
+ error: string;
827
+ };
828
+ /**
829
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.AgentCallCompletedPayload.
830
+ * Use `create(AgentCallCompletedPayloadSchema)` to create a new message.
831
+ */
832
+ export declare const AgentCallCompletedPayloadSchema: GenMessage<AgentCallCompletedPayload>;
833
+ /**
834
+ * Payload for approval_requested events.
835
+ *
836
+ * @internal
837
+ * Emitted when a human_input task activates an approval gate, or when a
838
+ * child agent enters EXECUTION_WAITING_FOR_APPROVAL. Captures who can
839
+ * approve, the timeout, and the request context.
840
+ *
841
+ * @since T06
842
+ *
843
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ApprovalRequestedPayload
844
+ */
845
+ export type ApprovalRequestedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ApprovalRequestedPayload"> & {
846
+ /**
847
+ * Human-readable prompt explaining what needs approval.
848
+ *
849
+ * @generated from field: string prompt = 1;
850
+ */
851
+ prompt: string;
852
+ /**
853
+ * List of user/role identifiers who can approve.
854
+ * Empty means any user with can_edit permission can approve.
855
+ *
856
+ * @generated from field: repeated string approvers = 2;
857
+ */
858
+ approvers: string[];
859
+ /**
860
+ * Timeout in seconds after which the approval expires.
861
+ * 0 means no timeout (waits indefinitely).
862
+ *
863
+ * @generated from field: int32 timeout_seconds = 3;
864
+ */
865
+ timeoutSeconds: number;
866
+ /**
867
+ * For agent tool approvals: the tool_call_id requiring approval.
868
+ * Empty for workflow-level human_input tasks.
869
+ *
870
+ * @generated from field: string tool_call_id = 4;
871
+ */
872
+ toolCallId: string;
873
+ /**
874
+ * For agent tool approvals: the child AgentExecution ID.
875
+ * Empty for workflow-level human_input tasks.
876
+ *
877
+ * @generated from field: string child_execution_id = 5;
878
+ */
879
+ childExecutionId: string;
880
+ };
881
+ /**
882
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ApprovalRequestedPayload.
883
+ * Use `create(ApprovalRequestedPayloadSchema)` to create a new message.
884
+ */
885
+ export declare const ApprovalRequestedPayloadSchema: GenMessage<ApprovalRequestedPayload>;
886
+ /**
887
+ * Payload for approval_resolved events.
888
+ *
889
+ * @internal
890
+ * Emitted when an approval decision is made (approve, skip, or reject).
891
+ *
892
+ * @since T06
893
+ *
894
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ApprovalResolvedPayload
895
+ */
896
+ export type ApprovalResolvedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ApprovalResolvedPayload"> & {
897
+ /**
898
+ * The decision that was made.
899
+ *
900
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalAction action = 1;
901
+ */
902
+ action: ApprovalAction;
903
+ /**
904
+ * Identity of the user who made the decision.
905
+ *
906
+ * @generated from field: string resolved_by = 2;
907
+ */
908
+ resolvedBy: string;
909
+ /**
910
+ * Optional comment provided with the decision.
911
+ *
912
+ * @generated from field: string comment = 3;
913
+ */
914
+ comment: string;
915
+ /**
916
+ * Duration the approval was pending in milliseconds
917
+ * (from approval_requested to approval_resolved).
918
+ *
919
+ * @generated from field: int64 wait_duration_ms = 4;
920
+ */
921
+ waitDurationMs: bigint;
922
+ };
923
+ /**
924
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ApprovalResolvedPayload.
925
+ * Use `create(ApprovalResolvedPayloadSchema)` to create a new message.
926
+ */
927
+ export declare const ApprovalResolvedPayloadSchema: GenMessage<ApprovalResolvedPayload>;
928
+ /**
929
+ * Payload for budget_checkpoint events.
930
+ *
931
+ * @internal
932
+ * Periodic snapshot of budget consumption emitted at task boundaries
933
+ * (after each cost-incurring task completes). Enables the execution viewer
934
+ * to render a cost timeline and budget utilization gauge.
935
+ *
936
+ * Emission frequency is a runtime decision (T13). Typical triggers:
937
+ * - After every agent_call or llm_call task completes
938
+ * - When a budget threshold is breached (e.g., 50%, 80%, 100%)
939
+ *
940
+ * All cost values are in micro-USD (1 USD = 1,000,000 micros), consistent
941
+ * with the WorkflowBudget.max_cost_micros field (T05).
942
+ *
943
+ * @since T06
944
+ *
945
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.BudgetCheckpointPayload
946
+ */
947
+ export type BudgetCheckpointPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.BudgetCheckpointPayload"> & {
948
+ /**
949
+ * Cumulative cost consumed so far in micro-USD.
950
+ *
951
+ * @generated from field: int64 cost_consumed_micros = 1;
952
+ */
953
+ costConsumedMicros: bigint;
954
+ /**
955
+ * Remaining cost budget in micro-USD.
956
+ * -1 if no cost budget is configured.
957
+ *
958
+ * @generated from field: int64 cost_remaining_micros = 2;
959
+ */
960
+ costRemainingMicros: bigint;
961
+ /**
962
+ * Cumulative tokens consumed so far.
963
+ *
964
+ * @generated from field: int64 tokens_consumed = 3;
965
+ */
966
+ tokensConsumed: bigint;
967
+ /**
968
+ * Remaining token budget.
969
+ * -1 if no token budget is configured.
970
+ *
971
+ * @generated from field: int64 tokens_remaining = 4;
972
+ */
973
+ tokensRemaining: bigint;
974
+ /**
975
+ * Whether this checkpoint was triggered by a threshold breach.
976
+ *
977
+ * @generated from field: bool threshold_breached = 5;
978
+ */
979
+ thresholdBreached: boolean;
980
+ /**
981
+ * The BudgetExceededPolicy that will be applied if breached.
982
+ * Only meaningful when threshold_breached is true.
983
+ *
984
+ * @generated from field: ai.stigmer.agentic.workflow.v1.BudgetExceededPolicy on_exceeded_policy = 6;
985
+ */
986
+ onExceededPolicy: BudgetExceededPolicy;
987
+ };
988
+ /**
989
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.BudgetCheckpointPayload.
990
+ * Use `create(BudgetCheckpointPayloadSchema)` to create a new message.
991
+ */
992
+ export declare const BudgetCheckpointPayloadSchema: GenMessage<BudgetCheckpointPayload>;
993
+ /**
994
+ * Payload for signal_received events.
995
+ *
996
+ * @internal
997
+ * Emitted when a listen task receives an external signal (via the sendSignal
998
+ * RPC or from another workflow's emit_event). Documents the signal arrival
999
+ * in the execution timeline.
1000
+ *
1001
+ * @since T06
1002
+ *
1003
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.SignalReceivedPayload
1004
+ */
1005
+ export type SignalReceivedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.SignalReceivedPayload"> & {
1006
+ /**
1007
+ * Signal name matching the listen task's signal ID.
1008
+ *
1009
+ * @generated from field: string signal_name = 1;
1010
+ */
1011
+ signalName: string;
1012
+ /**
1013
+ * Signal payload (truncated if exceeding size limits).
1014
+ *
1015
+ * @generated from field: google.protobuf.Struct payload_summary = 2;
1016
+ */
1017
+ payloadSummary?: JsonObject;
1018
+ };
1019
+ /**
1020
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.SignalReceivedPayload.
1021
+ * Use `create(SignalReceivedPayloadSchema)` to create a new message.
1022
+ */
1023
+ export declare const SignalReceivedPayloadSchema: GenMessage<SignalReceivedPayload>;
1024
+ /**
1025
+ * Payload for event_emitted events.
1026
+ *
1027
+ * @internal
1028
+ * Emitted when an emit_event task publishes a CloudEvent. Documents the
1029
+ * emission in the execution timeline. The full CloudEvents envelope is
1030
+ * available in the task output.
1031
+ *
1032
+ * @since T06
1033
+ *
1034
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.EventEmittedPayload
1035
+ */
1036
+ export type EventEmittedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.EventEmittedPayload"> & {
1037
+ /**
1038
+ * CloudEvents type identifier from the EmitEventSpec.
1039
+ *
1040
+ * @generated from field: string event_type = 1;
1041
+ */
1042
+ eventType: string;
1043
+ /**
1044
+ * CloudEvents source identifier.
1045
+ *
1046
+ * @generated from field: string event_source = 2;
1047
+ */
1048
+ eventSource: string;
1049
+ /**
1050
+ * CloudEvents subject identifier.
1051
+ *
1052
+ * @generated from field: string event_subject = 3;
1053
+ */
1054
+ eventSubject: string;
1055
+ };
1056
+ /**
1057
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.EventEmittedPayload.
1058
+ * Use `create(EventEmittedPayloadSchema)` to create a new message.
1059
+ */
1060
+ export declare const EventEmittedPayloadSchema: GenMessage<EventEmittedPayload>;
1061
+ /**
1062
+ * Payload for artifact_created events.
1063
+ *
1064
+ * @internal
1065
+ * Emitted when a task output is persisted as an artifact, either because
1066
+ * it exceeded the auto-promotion size threshold (256KB) or because the
1067
+ * workflow author explicitly declared artifact persistence (Phase 1).
1068
+ *
1069
+ * The artifact_id can be used with the Artifact.get() and
1070
+ * Artifact.getDownloadUrl() RPCs to retrieve or download the content.
1071
+ *
1072
+ * @since T07 (Artifact Store)
1073
+ *
1074
+ * @generated from message ai.stigmer.agentic.workflowexecution.v1.ArtifactCreatedPayload
1075
+ */
1076
+ export type ArtifactCreatedPayload = Message<"ai.stigmer.agentic.workflowexecution.v1.ArtifactCreatedPayload"> & {
1077
+ /**
1078
+ * ID of the created artifact (format: "art_{unique-suffix}").
1079
+ * Use this to fetch metadata via Artifact.get() or download
1080
+ * content via Artifact.getDownloadUrl().
1081
+ *
1082
+ * @generated from field: string artifact_id = 1;
1083
+ */
1084
+ artifactId: string;
1085
+ /**
1086
+ * Human-readable name of the artifact.
1087
+ *
1088
+ * @generated from field: string display_name = 2;
1089
+ */
1090
+ displayName: string;
1091
+ /**
1092
+ * MIME content type of the artifact payload.
1093
+ *
1094
+ * @generated from field: string content_type = 3;
1095
+ */
1096
+ contentType: string;
1097
+ /**
1098
+ * Size of the artifact content in bytes.
1099
+ *
1100
+ * @generated from field: int64 size_bytes = 4;
1101
+ */
1102
+ sizeBytes: bigint;
1103
+ };
1104
+ /**
1105
+ * Describes the message ai.stigmer.agentic.workflowexecution.v1.ArtifactCreatedPayload.
1106
+ * Use `create(ArtifactCreatedPayloadSchema)` to create a new message.
1107
+ */
1108
+ export declare const ArtifactCreatedPayloadSchema: GenMessage<ArtifactCreatedPayload>;
1109
+ /**
1110
+ * WorkflowEventType categorizes execution events for filtering and dispatch.
1111
+ *
1112
+ * @internal
1113
+ * Values are grouped by concern with numeric gaps for future additions:
1114
+ * - 1–9: Execution lifecycle
1115
+ * - 11–19: Task lifecycle
1116
+ * - 21–29: Agent call
1117
+ * - 31–39: Human input / approval
1118
+ * - 41–49: Budget
1119
+ * - 51–59: Signals and emitted events
1120
+ *
1121
+ * @since T06 (Execution Event Stream Model)
1122
+ *
1123
+ * @generated from enum ai.stigmer.agentic.workflowexecution.v1.WorkflowEventType
1124
+ */
1125
+ export declare enum WorkflowEventType {
1126
+ /**
1127
+ * @generated from enum value: workflow_event_type_unspecified = 0;
1128
+ */
1129
+ workflow_event_type_unspecified = 0,
1130
+ /**
1131
+ * Workflow execution began processing.
1132
+ * Emitted when phase transitions from PENDING to IN_PROGRESS.
1133
+ * Payload: ExecutionStartedPayload.
1134
+ *
1135
+ * @generated from enum value: execution_started = 1;
1136
+ */
1137
+ execution_started = 1,
1138
+ /**
1139
+ * Workflow execution completed successfully.
1140
+ * Terminal event — no more events will follow for this execution.
1141
+ * Payload: ExecutionCompletedPayload.
1142
+ *
1143
+ * @generated from enum value: execution_completed = 2;
1144
+ */
1145
+ execution_completed = 2,
1146
+ /**
1147
+ * Workflow execution failed.
1148
+ * Terminal event — no more events will follow for this execution.
1149
+ * Payload: ExecutionFailedPayload.
1150
+ *
1151
+ * @generated from enum value: execution_failed = 3;
1152
+ */
1153
+ execution_failed = 3,
1154
+ /**
1155
+ * Workflow execution was paused by user or system.
1156
+ * Non-terminal — execution can be resumed.
1157
+ * Payload: ExecutionPausedPayload.
1158
+ *
1159
+ * @generated from enum value: execution_paused = 4;
1160
+ */
1161
+ execution_paused = 4,
1162
+ /**
1163
+ * Workflow execution was resumed after a pause.
1164
+ * Payload: ExecutionResumedPayload.
1165
+ *
1166
+ * @generated from enum value: execution_resumed = 5;
1167
+ */
1168
+ execution_resumed = 5,
1169
+ /**
1170
+ * Workflow execution was cancelled by user.
1171
+ * Terminal event.
1172
+ * Payload: ExecutionCancelledPayload.
1173
+ *
1174
+ * @generated from enum value: execution_cancelled = 6;
1175
+ */
1176
+ execution_cancelled = 6,
1177
+ /**
1178
+ * Workflow execution was force-terminated.
1179
+ * Terminal event.
1180
+ * Payload: ExecutionTerminatedPayload.
1181
+ *
1182
+ * @generated from enum value: execution_terminated = 7;
1183
+ */
1184
+ execution_terminated = 7,
1185
+ /**
1186
+ * A workflow task began execution.
1187
+ * Payload: TaskStartedPayload.
1188
+ *
1189
+ * @generated from enum value: task_started = 11;
1190
+ */
1191
+ task_started = 11,
1192
+ /**
1193
+ * A workflow task completed successfully.
1194
+ * Payload: TaskCompletedPayload.
1195
+ *
1196
+ * @generated from enum value: task_completed = 12;
1197
+ */
1198
+ task_completed = 12,
1199
+ /**
1200
+ * A workflow task failed.
1201
+ * Payload: TaskFailedPayload.
1202
+ *
1203
+ * @generated from enum value: task_failed = 13;
1204
+ */
1205
+ task_failed = 13,
1206
+ /**
1207
+ * A workflow task was skipped due to conditional logic.
1208
+ * Payload: TaskSkippedPayload.
1209
+ *
1210
+ * @generated from enum value: task_skipped = 14;
1211
+ */
1212
+ task_skipped = 14,
1213
+ /**
1214
+ * A workflow task is being retried after a failure.
1215
+ * Payload: TaskRetryingPayload.
1216
+ *
1217
+ * @generated from enum value: task_retrying = 15;
1218
+ */
1219
+ task_retrying = 15,
1220
+ /**
1221
+ * A child AgentExecution was created for an agent_call task.
1222
+ * Payload: AgentCallStartedPayload.
1223
+ *
1224
+ * @generated from enum value: agent_call_started = 21;
1225
+ */
1226
+ agent_call_started = 21,
1227
+ /**
1228
+ * Periodic progress summary for a running agent_call task.
1229
+ * Payload: AgentCallProgressPayload.
1230
+ *
1231
+ * @generated from enum value: agent_call_progress = 22;
1232
+ */
1233
+ agent_call_progress = 22,
1234
+ /**
1235
+ * The child AgentExecution for an agent_call task finished.
1236
+ * Payload: AgentCallCompletedPayload.
1237
+ *
1238
+ * @generated from enum value: agent_call_completed = 23;
1239
+ */
1240
+ agent_call_completed = 23,
1241
+ /**
1242
+ * An approval gate was activated (human_input task or agent tool approval).
1243
+ * Payload: ApprovalRequestedPayload.
1244
+ *
1245
+ * @generated from enum value: approval_requested = 31;
1246
+ */
1247
+ approval_requested = 31,
1248
+ /**
1249
+ * An approval decision was made.
1250
+ * Payload: ApprovalResolvedPayload.
1251
+ *
1252
+ * @generated from enum value: approval_resolved = 32;
1253
+ */
1254
+ approval_resolved = 32,
1255
+ /**
1256
+ * Periodic snapshot of budget consumption vs. remaining capacity.
1257
+ * Payload: BudgetCheckpointPayload.
1258
+ *
1259
+ * @generated from enum value: budget_checkpoint = 41;
1260
+ */
1261
+ budget_checkpoint = 41,
1262
+ /**
1263
+ * An external signal was received by a listen task.
1264
+ * Payload: SignalReceivedPayload.
1265
+ *
1266
+ * @generated from enum value: signal_received = 51;
1267
+ */
1268
+ signal_received = 51,
1269
+ /**
1270
+ * The workflow published a CloudEvent via an emit_event task.
1271
+ * Payload: EventEmittedPayload.
1272
+ *
1273
+ * @generated from enum value: event_emitted = 52;
1274
+ */
1275
+ event_emitted = 52,
1276
+ /**
1277
+ * A task output was persisted as an artifact (auto-promoted or explicit).
1278
+ * Payload: ArtifactCreatedPayload.
1279
+ *
1280
+ * @generated from enum value: artifact_created = 53;
1281
+ */
1282
+ artifact_created = 53
1283
+ }
1284
+ /**
1285
+ * Describes the enum ai.stigmer.agentic.workflowexecution.v1.WorkflowEventType.
1286
+ */
1287
+ export declare const WorkflowEventTypeSchema: GenEnum<WorkflowEventType>;