@evalops/sdk-ts 0.1.13

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 (116) hide show
  1. package/README.md +15 -0
  2. package/dist/agentregistry/v1/service_pb.d.ts +458 -0
  3. package/dist/agentregistry/v1/service_pb.js +100 -0
  4. package/dist/agentruntime/v1/runtime_pb.d.ts +1809 -0
  5. package/dist/agentruntime/v1/runtime_pb.js +480 -0
  6. package/dist/agents/v1/agents_pb.d.ts +1151 -0
  7. package/dist/agents/v1/agents_pb.js +256 -0
  8. package/dist/approvals/v1/approvals_pb.d.ts +788 -0
  9. package/dist/approvals/v1/approvals_pb.js +212 -0
  10. package/dist/artifacts/v1/artifacts_pb.d.ts +1079 -0
  11. package/dist/artifacts/v1/artifacts_pb.js +292 -0
  12. package/dist/attestation/v1/attestation_pb.d.ts +359 -0
  13. package/dist/attestation/v1/attestation_pb.js +84 -0
  14. package/dist/attribution/v1/attribution_pb.d.ts +1312 -0
  15. package/dist/attribution/v1/attribution_pb.js +285 -0
  16. package/dist/audit/v1/audit_pb.d.ts +1151 -0
  17. package/dist/audit/v1/audit_pb.js +262 -0
  18. package/dist/buf/validate/validate_pb.d.ts +4827 -0
  19. package/dist/buf/validate/validate_pb.js +356 -0
  20. package/dist/catalogs/v1/catalogs_pb.d.ts +150 -0
  21. package/dist/catalogs/v1/catalogs_pb.js +38 -0
  22. package/dist/common/v1/analytics_pb.d.ts +134 -0
  23. package/dist/common/v1/analytics_pb.js +72 -0
  24. package/dist/common/v1/authz_pb.d.ts +23 -0
  25. package/dist/common/v1/authz_pb.js +26 -0
  26. package/dist/common/v1/delivery_pb.d.ts +36 -0
  27. package/dist/common/v1/delivery_pb.js +40 -0
  28. package/dist/common/v1/entity_pb.d.ts +44 -0
  29. package/dist/common/v1/entity_pb.js +48 -0
  30. package/dist/common/v1/risk_pb.d.ts +36 -0
  31. package/dist/common/v1/risk_pb.js +40 -0
  32. package/dist/compliance/v1/compliance_pb.d.ts +866 -0
  33. package/dist/compliance/v1/compliance_pb.js +240 -0
  34. package/dist/config/v1/config_pb.d.ts +589 -0
  35. package/dist/config/v1/config_pb.js +164 -0
  36. package/dist/connectors/v1/connectors_pb.d.ts +653 -0
  37. package/dist/connectors/v1/connectors_pb.js +236 -0
  38. package/dist/entities/v1/entities_pb.d.ts +784 -0
  39. package/dist/entities/v1/entities_pb.js +197 -0
  40. package/dist/evalpipeline/v1/evalpipeline_pb.d.ts +943 -0
  41. package/dist/evalpipeline/v1/evalpipeline_pb.js +227 -0
  42. package/dist/events/v1/change_pb.d.ts +60 -0
  43. package/dist/events/v1/change_pb.js +14 -0
  44. package/dist/events/v1/cloudevent_pb.d.ts +63 -0
  45. package/dist/events/v1/cloudevent_pb.js +14 -0
  46. package/dist/events/v1/evaluation_pb.d.ts +124 -0
  47. package/dist/events/v1/evaluation_pb.js +24 -0
  48. package/dist/fermata/v1/fermata_pb.d.ts +1869 -0
  49. package/dist/fermata/v1/fermata_pb.js +515 -0
  50. package/dist/fermata/v1/worker_pb.d.ts +223 -0
  51. package/dist/fermata/v1/worker_pb.js +55 -0
  52. package/dist/gate/v1/audit_pb.d.ts +243 -0
  53. package/dist/gate/v1/audit_pb.js +60 -0
  54. package/dist/gate/v1/connector_pb.d.ts +360 -0
  55. package/dist/gate/v1/connector_pb.js +91 -0
  56. package/dist/gate/v1/controlplane_pb.d.ts +345 -0
  57. package/dist/gate/v1/controlplane_pb.js +19 -0
  58. package/dist/gate/v1/identity_group_pb.d.ts +255 -0
  59. package/dist/gate/v1/identity_group_pb.js +90 -0
  60. package/dist/gate/v1/recording_pb.d.ts +93 -0
  61. package/dist/gate/v1/recording_pb.js +35 -0
  62. package/dist/gate/v1/resource_policy_pb.d.ts +541 -0
  63. package/dist/gate/v1/resource_policy_pb.js +145 -0
  64. package/dist/gate/v1/tenant_pb.d.ts +273 -0
  65. package/dist/gate/v1/tenant_pb.js +101 -0
  66. package/dist/gate/v1/webhook_access_pb.d.ts +359 -0
  67. package/dist/gate/v1/webhook_access_pb.js +105 -0
  68. package/dist/google/api/annotations_pb.d.ts +13 -0
  69. package/dist/google/api/annotations_pb.js +26 -0
  70. package/dist/google/api/http_pb.d.ts +440 -0
  71. package/dist/google/api/http_pb.js +33 -0
  72. package/dist/governance/v1/governance_pb.d.ts +1219 -0
  73. package/dist/governance/v1/governance_pb.js +376 -0
  74. package/dist/identity/v1/organizations_pb.d.ts +621 -0
  75. package/dist/identity/v1/organizations_pb.js +166 -0
  76. package/dist/identity/v1/sessions_pb.d.ts +78 -0
  77. package/dist/identity/v1/sessions_pb.js +19 -0
  78. package/dist/identity/v1/tokens_pb.d.ts +332 -0
  79. package/dist/identity/v1/tokens_pb.js +56 -0
  80. package/dist/ingest/v1/admin_pb.d.ts +471 -0
  81. package/dist/ingest/v1/admin_pb.js +112 -0
  82. package/dist/ingest/v1/event_pb.d.ts +155 -0
  83. package/dist/ingest/v1/event_pb.js +24 -0
  84. package/dist/keys/v1/keys_pb.d.ts +241 -0
  85. package/dist/keys/v1/keys_pb.js +52 -0
  86. package/dist/llmgateway/v1/gateway_pb.d.ts +393 -0
  87. package/dist/llmgateway/v1/gateway_pb.js +79 -0
  88. package/dist/memory/v1/memory_pb.d.ts +1260 -0
  89. package/dist/memory/v1/memory_pb.js +243 -0
  90. package/dist/meter/v1/meter_pb.d.ts +1691 -0
  91. package/dist/meter/v1/meter_pb.js +263 -0
  92. package/dist/notifications/v1/notifications_pb.d.ts +777 -0
  93. package/dist/notifications/v1/notifications_pb.js +257 -0
  94. package/dist/objectives/v1/objectives_pb.d.ts +1000 -0
  95. package/dist/objectives/v1/objectives_pb.js +340 -0
  96. package/dist/posture/v1/posture_pb.d.ts +357 -0
  97. package/dist/posture/v1/posture_pb.js +88 -0
  98. package/dist/prompts/v1/prompts_pb.d.ts +864 -0
  99. package/dist/prompts/v1/prompts_pb.js +156 -0
  100. package/dist/relationships/v1/relationships_pb.d.ts +367 -0
  101. package/dist/relationships/v1/relationships_pb.js +96 -0
  102. package/dist/secretbroker/v1/broker_pb.d.ts +888 -0
  103. package/dist/secretbroker/v1/broker_pb.js +168 -0
  104. package/dist/skills/v1/skills_pb.d.ts +652 -0
  105. package/dist/skills/v1/skills_pb.js +164 -0
  106. package/dist/tap/v1/admin_pb.d.ts +530 -0
  107. package/dist/tap/v1/admin_pb.js +132 -0
  108. package/dist/tap/v1/event_pb.d.ts +141 -0
  109. package/dist/tap/v1/event_pb.js +27 -0
  110. package/dist/toolexecution/v1/toolexecution_pb.d.ts +994 -0
  111. package/dist/toolexecution/v1/toolexecution_pb.js +315 -0
  112. package/dist/traces/v1/traces_pb.d.ts +633 -0
  113. package/dist/traces/v1/traces_pb.js +163 -0
  114. package/dist/workflows/v1/workflows_pb.d.ts +1784 -0
  115. package/dist/workflows/v1/workflows_pb.js +431 -0
  116. package/package.json +272 -0
@@ -0,0 +1,1809 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Agent, AgentConfig } from "../../agents/v1/agents_pb.js";
3
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import type { Objective } from "../../objectives/v1/objectives_pb.js";
5
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file agentruntime/v1/runtime.proto.
8
+ */
9
+ export declare const file_agentruntime_v1_runtime: GenFile;
10
+ /**
11
+ * NormalizedTrigger is the source-neutral trigger contract. Channel and
12
+ * surface are generic strings so Slack, web, email, and future surfaces stay
13
+ * outside the core runtime.
14
+ *
15
+ * @generated from message agentruntime.v1.NormalizedTrigger
16
+ */
17
+ export type NormalizedTrigger = Message<"agentruntime.v1.NormalizedTrigger"> & {
18
+ /**
19
+ * @generated from field: string workspace_id = 1;
20
+ */
21
+ workspaceId: string;
22
+ /**
23
+ * @generated from field: string agent_id = 2;
24
+ */
25
+ agentId: string;
26
+ /**
27
+ * @generated from field: string surface = 3;
28
+ */
29
+ surface: string;
30
+ /**
31
+ * @generated from field: string channel_id = 4;
32
+ */
33
+ channelId: string;
34
+ /**
35
+ * @generated from field: string idempotency_key = 5;
36
+ */
37
+ idempotencyKey: string;
38
+ /**
39
+ * @generated from field: string source_event_id = 6;
40
+ */
41
+ sourceEventId: string;
42
+ /**
43
+ * @generated from field: string source_event_type = 7;
44
+ */
45
+ sourceEventType: string;
46
+ /**
47
+ * @generated from field: string actor_id = 8;
48
+ */
49
+ actorId: string;
50
+ /**
51
+ * @generated from field: string correlation_id = 9;
52
+ */
53
+ correlationId: string;
54
+ /**
55
+ * @generated from field: google.protobuf.Struct payload = 10;
56
+ */
57
+ payload?: JsonObject;
58
+ /**
59
+ * @generated from field: google.protobuf.Timestamp received_at = 11;
60
+ */
61
+ receivedAt?: Timestamp;
62
+ };
63
+ /**
64
+ * Describes the message agentruntime.v1.NormalizedTrigger.
65
+ * Use `create(NormalizedTriggerSchema)` to create a new message.
66
+ */
67
+ export declare const NormalizedTriggerSchema: GenMessage<NormalizedTrigger>;
68
+ /**
69
+ * RuntimeContext captures the boundary decisions used to construct a run.
70
+ *
71
+ * @generated from message agentruntime.v1.RuntimeContext
72
+ */
73
+ export type RuntimeContext = Message<"agentruntime.v1.RuntimeContext"> & {
74
+ /**
75
+ * @generated from field: repeated agentruntime.v1.RuntimeDependency dependencies = 1;
76
+ */
77
+ dependencies: RuntimeDependency[];
78
+ /**
79
+ * @generated from field: map<string, string> attributes = 2;
80
+ */
81
+ attributes: {
82
+ [key: string]: string;
83
+ };
84
+ };
85
+ /**
86
+ * Describes the message agentruntime.v1.RuntimeContext.
87
+ * Use `create(RuntimeContextSchema)` to create a new message.
88
+ */
89
+ export declare const RuntimeContextSchema: GenMessage<RuntimeContext>;
90
+ /**
91
+ * RuntimeDependency names one platform service boundary the runtime depends on.
92
+ *
93
+ * @generated from message agentruntime.v1.RuntimeDependency
94
+ */
95
+ export type RuntimeDependency = Message<"agentruntime.v1.RuntimeDependency"> & {
96
+ /**
97
+ * @generated from field: string service = 1;
98
+ */
99
+ service: string;
100
+ /**
101
+ * @generated from field: string purpose = 2;
102
+ */
103
+ purpose: string;
104
+ /**
105
+ * @generated from field: bool required = 3;
106
+ */
107
+ required: boolean;
108
+ /**
109
+ * @generated from field: string status = 4;
110
+ */
111
+ status: string;
112
+ /**
113
+ * @generated from field: string reference_id = 5;
114
+ */
115
+ referenceId: string;
116
+ };
117
+ /**
118
+ * Describes the message agentruntime.v1.RuntimeDependency.
119
+ * Use `create(RuntimeDependencySchema)` to create a new message.
120
+ */
121
+ export declare const RuntimeDependencySchema: GenMessage<RuntimeDependency>;
122
+ /**
123
+ * AgentRunLinkage carries the shared identifiers every durable run record uses
124
+ * for partitioning, authorization, and audit joins.
125
+ *
126
+ * @generated from message agentruntime.v1.AgentRunLinkage
127
+ */
128
+ export type AgentRunLinkage = Message<"agentruntime.v1.AgentRunLinkage"> & {
129
+ /**
130
+ * @generated from field: string run_id = 1;
131
+ */
132
+ runId: string;
133
+ /**
134
+ * @generated from field: string workspace_id = 2;
135
+ */
136
+ workspaceId: string;
137
+ /**
138
+ * @generated from field: string agent_id = 3;
139
+ */
140
+ agentId: string;
141
+ /**
142
+ * @generated from field: string objective_id = 4;
143
+ */
144
+ objectiveId: string;
145
+ };
146
+ /**
147
+ * Describes the message agentruntime.v1.AgentRunLinkage.
148
+ * Use `create(AgentRunLinkageSchema)` to create a new message.
149
+ */
150
+ export declare const AgentRunLinkageSchema: GenMessage<AgentRunLinkage>;
151
+ /**
152
+ * AgentRun is the canonical agent runtime execution record. It owns the
153
+ * durable child records needed to resume from checkpoints and audit each
154
+ * attempt without replaying model/tool side effects.
155
+ *
156
+ * @generated from message agentruntime.v1.AgentRun
157
+ */
158
+ export type AgentRun = Message<"agentruntime.v1.AgentRun"> & {
159
+ /**
160
+ * @generated from field: string id = 1;
161
+ */
162
+ id: string;
163
+ /**
164
+ * @generated from field: agentruntime.v1.NormalizedTrigger trigger = 2;
165
+ */
166
+ trigger?: NormalizedTrigger;
167
+ /**
168
+ * @generated from field: agentruntime.v1.AgentRunState state = 3;
169
+ */
170
+ state: AgentRunState;
171
+ /**
172
+ * @generated from field: agents.v1.Agent agent = 4;
173
+ */
174
+ agent?: Agent;
175
+ /**
176
+ * @generated from field: agents.v1.AgentConfig agent_config = 5;
177
+ */
178
+ agentConfig?: AgentConfig;
179
+ /**
180
+ * @generated from field: objectives.v1.Objective objective = 6;
181
+ */
182
+ objective?: Objective;
183
+ /**
184
+ * @generated from field: agentruntime.v1.RuntimeContext context = 7;
185
+ */
186
+ context?: RuntimeContext;
187
+ /**
188
+ * @generated from field: string worker_queue = 8;
189
+ */
190
+ workerQueue: string;
191
+ /**
192
+ * @generated from field: string error_message = 9;
193
+ */
194
+ errorMessage: string;
195
+ /**
196
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
197
+ */
198
+ createdAt?: Timestamp;
199
+ /**
200
+ * @generated from field: google.protobuf.Timestamp updated_at = 11;
201
+ */
202
+ updatedAt?: Timestamp;
203
+ /**
204
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 12;
205
+ */
206
+ linkage?: AgentRunLinkage;
207
+ /**
208
+ * @generated from field: int32 attempt = 15;
209
+ */
210
+ attempt: number;
211
+ /**
212
+ * @generated from field: int32 max_attempts = 16;
213
+ */
214
+ maxAttempts: number;
215
+ /**
216
+ * @generated from field: agentruntime.v1.AgentRunLease lease = 17;
217
+ */
218
+ lease?: AgentRunLease;
219
+ /**
220
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint latest_checkpoint = 18;
221
+ */
222
+ latestCheckpoint?: AgentRunCheckpoint;
223
+ /**
224
+ * @generated from field: repeated agentruntime.v1.AgentRunStep steps = 19;
225
+ */
226
+ steps: AgentRunStep[];
227
+ /**
228
+ * @generated from field: repeated agentruntime.v1.AgentRunWait waits = 20;
229
+ */
230
+ waits: AgentRunWait[];
231
+ /**
232
+ * @generated from field: repeated agentruntime.v1.AgentRunArtifact artifacts = 21;
233
+ */
234
+ artifacts: AgentRunArtifact[];
235
+ /**
236
+ * @generated from field: repeated agentruntime.v1.AgentRunCost costs = 22;
237
+ */
238
+ costs: AgentRunCost[];
239
+ /**
240
+ * @generated from field: repeated agentruntime.v1.AgentRunStreamCursor stream_cursors = 23;
241
+ */
242
+ streamCursors: AgentRunStreamCursor[];
243
+ /**
244
+ * @generated from field: google.protobuf.Timestamp queued_at = 24;
245
+ */
246
+ queuedAt?: Timestamp;
247
+ /**
248
+ * @generated from field: google.protobuf.Timestamp started_at = 25;
249
+ */
250
+ startedAt?: Timestamp;
251
+ /**
252
+ * @generated from field: google.protobuf.Timestamp waiting_at = 26;
253
+ */
254
+ waitingAt?: Timestamp;
255
+ /**
256
+ * @generated from field: google.protobuf.Timestamp completed_at = 27;
257
+ */
258
+ completedAt?: Timestamp;
259
+ /**
260
+ * @generated from field: google.protobuf.Timestamp cancelled_at = 28;
261
+ */
262
+ cancelledAt?: Timestamp;
263
+ /**
264
+ * @generated from field: google.protobuf.Timestamp next_retry_at = 29;
265
+ */
266
+ nextRetryAt?: Timestamp;
267
+ /**
268
+ * @generated from field: google.protobuf.Timestamp dead_lettered_at = 30;
269
+ */
270
+ deadLetteredAt?: Timestamp;
271
+ /**
272
+ * @generated from field: string cancellation_reason = 31;
273
+ */
274
+ cancellationReason: string;
275
+ /**
276
+ * @generated from field: string dead_letter_reason = 32;
277
+ */
278
+ deadLetterReason: string;
279
+ /**
280
+ * @generated from field: repeated agentruntime.v1.AgentRunCheckpoint checkpoints = 33;
281
+ */
282
+ checkpoints: AgentRunCheckpoint[];
283
+ };
284
+ /**
285
+ * Describes the message agentruntime.v1.AgentRun.
286
+ * Use `create(AgentRunSchema)` to create a new message.
287
+ */
288
+ export declare const AgentRunSchema: GenMessage<AgentRun>;
289
+ /**
290
+ * AgentRunLease is the claim token a worker must present while mutating a run.
291
+ *
292
+ * @generated from message agentruntime.v1.AgentRunLease
293
+ */
294
+ export type AgentRunLease = Message<"agentruntime.v1.AgentRunLease"> & {
295
+ /**
296
+ * @generated from field: string id = 1;
297
+ */
298
+ id: string;
299
+ /**
300
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
301
+ */
302
+ linkage?: AgentRunLinkage;
303
+ /**
304
+ * @generated from field: string worker_id = 6;
305
+ */
306
+ workerId: string;
307
+ /**
308
+ * @generated from field: string token = 7;
309
+ */
310
+ token: string;
311
+ /**
312
+ * @generated from field: string worker_queue = 8;
313
+ */
314
+ workerQueue: string;
315
+ /**
316
+ * @generated from field: int32 attempt = 9;
317
+ */
318
+ attempt: number;
319
+ /**
320
+ * @generated from field: google.protobuf.Timestamp claimed_at = 10;
321
+ */
322
+ claimedAt?: Timestamp;
323
+ /**
324
+ * @generated from field: google.protobuf.Timestamp heartbeat_at = 11;
325
+ */
326
+ heartbeatAt?: Timestamp;
327
+ /**
328
+ * @generated from field: google.protobuf.Timestamp expires_at = 12;
329
+ */
330
+ expiresAt?: Timestamp;
331
+ };
332
+ /**
333
+ * Describes the message agentruntime.v1.AgentRunLease.
334
+ * Use `create(AgentRunLeaseSchema)` to create a new message.
335
+ */
336
+ export declare const AgentRunLeaseSchema: GenMessage<AgentRunLease>;
337
+ /**
338
+ * AgentRunStep is one durable unit of work within a run.
339
+ *
340
+ * @generated from message agentruntime.v1.AgentRunStep
341
+ */
342
+ export type AgentRunStep = Message<"agentruntime.v1.AgentRunStep"> & {
343
+ /**
344
+ * @generated from field: string id = 1;
345
+ */
346
+ id: string;
347
+ /**
348
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
349
+ */
350
+ linkage?: AgentRunLinkage;
351
+ /**
352
+ * @generated from field: string name = 6;
353
+ */
354
+ name: string;
355
+ /**
356
+ * @generated from field: string kind = 7;
357
+ */
358
+ kind: string;
359
+ /**
360
+ * @generated from field: agentruntime.v1.AgentRunStepState state = 8;
361
+ */
362
+ state: AgentRunStepState;
363
+ /**
364
+ * @generated from field: int32 attempt = 9;
365
+ */
366
+ attempt: number;
367
+ /**
368
+ * @generated from field: google.protobuf.Struct input = 10;
369
+ */
370
+ input?: JsonObject;
371
+ /**
372
+ * @generated from field: google.protobuf.Struct output = 11;
373
+ */
374
+ output?: JsonObject;
375
+ /**
376
+ * @generated from field: string error_message = 12;
377
+ */
378
+ errorMessage: string;
379
+ /**
380
+ * @generated from field: string checkpoint_id = 13;
381
+ */
382
+ checkpointId: string;
383
+ /**
384
+ * @generated from field: google.protobuf.Timestamp started_at = 14;
385
+ */
386
+ startedAt?: Timestamp;
387
+ /**
388
+ * @generated from field: google.protobuf.Timestamp ended_at = 15;
389
+ */
390
+ endedAt?: Timestamp;
391
+ };
392
+ /**
393
+ * Describes the message agentruntime.v1.AgentRunStep.
394
+ * Use `create(AgentRunStepSchema)` to create a new message.
395
+ */
396
+ export declare const AgentRunStepSchema: GenMessage<AgentRunStep>;
397
+ /**
398
+ * AgentRunCheckpoint is an opaque resume snapshot. Workers can deserialize the
399
+ * payload they own, restore local state, and continue from the next step.
400
+ *
401
+ * @generated from message agentruntime.v1.AgentRunCheckpoint
402
+ */
403
+ export type AgentRunCheckpoint = Message<"agentruntime.v1.AgentRunCheckpoint"> & {
404
+ /**
405
+ * @generated from field: string id = 1;
406
+ */
407
+ id: string;
408
+ /**
409
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
410
+ */
411
+ linkage?: AgentRunLinkage;
412
+ /**
413
+ * @generated from field: string step_id = 6;
414
+ */
415
+ stepId: string;
416
+ /**
417
+ * @generated from field: int64 sequence = 7;
418
+ */
419
+ sequence: bigint;
420
+ /**
421
+ * @generated from field: string resume_token = 8;
422
+ */
423
+ resumeToken: string;
424
+ /**
425
+ * @generated from field: google.protobuf.Struct payload = 9;
426
+ */
427
+ payload?: JsonObject;
428
+ /**
429
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
430
+ */
431
+ createdAt?: Timestamp;
432
+ };
433
+ /**
434
+ * Describes the message agentruntime.v1.AgentRunCheckpoint.
435
+ * Use `create(AgentRunCheckpointSchema)` to create a new message.
436
+ */
437
+ export declare const AgentRunCheckpointSchema: GenMessage<AgentRunCheckpoint>;
438
+ /**
439
+ * AgentRunWait records a parked run. While active, the run has no lease and no
440
+ * worker compute should be held.
441
+ *
442
+ * @generated from message agentruntime.v1.AgentRunWait
443
+ */
444
+ export type AgentRunWait = Message<"agentruntime.v1.AgentRunWait"> & {
445
+ /**
446
+ * @generated from field: string id = 1;
447
+ */
448
+ id: string;
449
+ /**
450
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
451
+ */
452
+ linkage?: AgentRunLinkage;
453
+ /**
454
+ * @generated from field: string step_id = 6;
455
+ */
456
+ stepId: string;
457
+ /**
458
+ * @generated from field: agentruntime.v1.AgentRunWaitType type = 7;
459
+ */
460
+ type: AgentRunWaitType;
461
+ /**
462
+ * @generated from field: string external_ref = 8;
463
+ */
464
+ externalRef: string;
465
+ /**
466
+ * @generated from field: string reason = 9;
467
+ */
468
+ reason: string;
469
+ /**
470
+ * @generated from field: google.protobuf.Struct payload = 10;
471
+ */
472
+ payload?: JsonObject;
473
+ /**
474
+ * @generated from field: google.protobuf.Timestamp created_at = 11;
475
+ */
476
+ createdAt?: Timestamp;
477
+ /**
478
+ * @generated from field: google.protobuf.Timestamp resume_after = 12;
479
+ */
480
+ resumeAfter?: Timestamp;
481
+ /**
482
+ * @generated from field: google.protobuf.Timestamp expires_at = 13;
483
+ */
484
+ expiresAt?: Timestamp;
485
+ /**
486
+ * @generated from field: google.protobuf.Timestamp resolved_at = 14;
487
+ */
488
+ resolvedAt?: Timestamp;
489
+ /**
490
+ * @generated from field: string resolved_by_event_id = 15;
491
+ */
492
+ resolvedByEventId: string;
493
+ };
494
+ /**
495
+ * Describes the message agentruntime.v1.AgentRunWait.
496
+ * Use `create(AgentRunWaitSchema)` to create a new message.
497
+ */
498
+ export declare const AgentRunWaitSchema: GenMessage<AgentRunWait>;
499
+ /**
500
+ * AgentRunArtifact records durable output produced by a run or step.
501
+ *
502
+ * @generated from message agentruntime.v1.AgentRunArtifact
503
+ */
504
+ export type AgentRunArtifact = Message<"agentruntime.v1.AgentRunArtifact"> & {
505
+ /**
506
+ * @generated from field: string id = 1;
507
+ */
508
+ id: string;
509
+ /**
510
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
511
+ */
512
+ linkage?: AgentRunLinkage;
513
+ /**
514
+ * @generated from field: string step_id = 6;
515
+ */
516
+ stepId: string;
517
+ /**
518
+ * @generated from field: string artifact_type = 7;
519
+ */
520
+ artifactType: string;
521
+ /**
522
+ * @generated from field: string uri = 8;
523
+ */
524
+ uri: string;
525
+ /**
526
+ * @generated from field: string content_type = 9;
527
+ */
528
+ contentType: string;
529
+ /**
530
+ * @generated from field: string digest = 10;
531
+ */
532
+ digest: string;
533
+ /**
534
+ * @generated from field: google.protobuf.Struct metadata = 11;
535
+ */
536
+ metadata?: JsonObject;
537
+ /**
538
+ * @generated from field: google.protobuf.Timestamp created_at = 12;
539
+ */
540
+ createdAt?: Timestamp;
541
+ };
542
+ /**
543
+ * Describes the message agentruntime.v1.AgentRunArtifact.
544
+ * Use `create(AgentRunArtifactSchema)` to create a new message.
545
+ */
546
+ export declare const AgentRunArtifactSchema: GenMessage<AgentRunArtifact>;
547
+ /**
548
+ * AgentRunCost records metering information associated with a run or step.
549
+ *
550
+ * @generated from message agentruntime.v1.AgentRunCost
551
+ */
552
+ export type AgentRunCost = Message<"agentruntime.v1.AgentRunCost"> & {
553
+ /**
554
+ * @generated from field: string id = 1;
555
+ */
556
+ id: string;
557
+ /**
558
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
559
+ */
560
+ linkage?: AgentRunLinkage;
561
+ /**
562
+ * @generated from field: string step_id = 6;
563
+ */
564
+ stepId: string;
565
+ /**
566
+ * @generated from field: string meter_ref = 7;
567
+ */
568
+ meterRef: string;
569
+ /**
570
+ * @generated from field: string provider = 8;
571
+ */
572
+ provider: string;
573
+ /**
574
+ * @generated from field: string model = 9;
575
+ */
576
+ model: string;
577
+ /**
578
+ * @generated from field: int64 input_tokens = 10;
579
+ */
580
+ inputTokens: bigint;
581
+ /**
582
+ * @generated from field: int64 output_tokens = 11;
583
+ */
584
+ outputTokens: bigint;
585
+ /**
586
+ * @generated from field: int64 total_tokens = 12;
587
+ */
588
+ totalTokens: bigint;
589
+ /**
590
+ * @generated from field: string currency = 13;
591
+ */
592
+ currency: string;
593
+ /**
594
+ * @generated from field: int64 estimated_cost_micros = 14;
595
+ */
596
+ estimatedCostMicros: bigint;
597
+ /**
598
+ * @generated from field: google.protobuf.Timestamp recorded_at = 15;
599
+ */
600
+ recordedAt?: Timestamp;
601
+ };
602
+ /**
603
+ * Describes the message agentruntime.v1.AgentRunCost.
604
+ * Use `create(AgentRunCostSchema)` to create a new message.
605
+ */
606
+ export declare const AgentRunCostSchema: GenMessage<AgentRunCost>;
607
+ /**
608
+ * AgentRunStreamCursor stores a consumer cursor into the append-only event log.
609
+ *
610
+ * @generated from message agentruntime.v1.AgentRunStreamCursor
611
+ */
612
+ export type AgentRunStreamCursor = Message<"agentruntime.v1.AgentRunStreamCursor"> & {
613
+ /**
614
+ * @generated from field: string id = 1;
615
+ */
616
+ id: string;
617
+ /**
618
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 2;
619
+ */
620
+ linkage?: AgentRunLinkage;
621
+ /**
622
+ * @generated from field: string consumer = 4;
623
+ */
624
+ consumer: string;
625
+ /**
626
+ * @generated from field: int64 next_sequence = 5;
627
+ */
628
+ nextSequence: bigint;
629
+ /**
630
+ * @generated from field: google.protobuf.Timestamp updated_at = 6;
631
+ */
632
+ updatedAt?: Timestamp;
633
+ };
634
+ /**
635
+ * Describes the message agentruntime.v1.AgentRunStreamCursor.
636
+ * Use `create(AgentRunStreamCursorSchema)` to create a new message.
637
+ */
638
+ export declare const AgentRunStreamCursorSchema: GenMessage<AgentRunStreamCursor>;
639
+ /**
640
+ * RuntimeEvent is appended, never mutated, for AgentRun state transitions and
641
+ * runtime orchestration decisions.
642
+ *
643
+ * @generated from message agentruntime.v1.RuntimeEvent
644
+ */
645
+ export type RuntimeEvent = Message<"agentruntime.v1.RuntimeEvent"> & {
646
+ /**
647
+ * @generated from field: string id = 1;
648
+ */
649
+ id: string;
650
+ /**
651
+ * @generated from field: string run_id = 2;
652
+ */
653
+ runId: string;
654
+ /**
655
+ * @generated from field: int64 sequence = 3;
656
+ */
657
+ sequence: bigint;
658
+ /**
659
+ * @generated from field: agentruntime.v1.RuntimeEventType type = 4;
660
+ */
661
+ type: RuntimeEventType;
662
+ /**
663
+ * @generated from field: string message = 5;
664
+ */
665
+ message: string;
666
+ /**
667
+ * @generated from field: google.protobuf.Struct attributes = 6;
668
+ */
669
+ attributes?: JsonObject;
670
+ /**
671
+ * @generated from field: google.protobuf.Timestamp occurred_at = 7;
672
+ */
673
+ occurredAt?: Timestamp;
674
+ /**
675
+ * @generated from field: string step_id = 11;
676
+ */
677
+ stepId: string;
678
+ /**
679
+ * @generated from field: string checkpoint_id = 12;
680
+ */
681
+ checkpointId: string;
682
+ /**
683
+ * @generated from field: string artifact_id = 13;
684
+ */
685
+ artifactId: string;
686
+ /**
687
+ * @generated from field: string cost_id = 14;
688
+ */
689
+ costId: string;
690
+ /**
691
+ * @generated from field: string wait_id = 15;
692
+ */
693
+ waitId: string;
694
+ /**
695
+ * @generated from field: agentruntime.v1.AgentRunLinkage linkage = 16;
696
+ */
697
+ linkage?: AgentRunLinkage;
698
+ };
699
+ /**
700
+ * Describes the message agentruntime.v1.RuntimeEvent.
701
+ * Use `create(RuntimeEventSchema)` to create a new message.
702
+ */
703
+ export declare const RuntimeEventSchema: GenMessage<RuntimeEvent>;
704
+ /**
705
+ * @generated from message agentruntime.v1.HandleTriggerRequest
706
+ */
707
+ export type HandleTriggerRequest = Message<"agentruntime.v1.HandleTriggerRequest"> & {
708
+ /**
709
+ * @generated from field: agentruntime.v1.NormalizedTrigger trigger = 1;
710
+ */
711
+ trigger?: NormalizedTrigger;
712
+ };
713
+ /**
714
+ * Describes the message agentruntime.v1.HandleTriggerRequest.
715
+ * Use `create(HandleTriggerRequestSchema)` to create a new message.
716
+ */
717
+ export declare const HandleTriggerRequestSchema: GenMessage<HandleTriggerRequest>;
718
+ /**
719
+ * @generated from message agentruntime.v1.HandleTriggerResponse
720
+ */
721
+ export type HandleTriggerResponse = Message<"agentruntime.v1.HandleTriggerResponse"> & {
722
+ /**
723
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
724
+ */
725
+ run?: AgentRun;
726
+ /**
727
+ * @generated from field: repeated agentruntime.v1.RuntimeEvent events = 2;
728
+ */
729
+ events: RuntimeEvent[];
730
+ /**
731
+ * @generated from field: bool idempotent_replay = 3;
732
+ */
733
+ idempotentReplay: boolean;
734
+ };
735
+ /**
736
+ * Describes the message agentruntime.v1.HandleTriggerResponse.
737
+ * Use `create(HandleTriggerResponseSchema)` to create a new message.
738
+ */
739
+ export declare const HandleTriggerResponseSchema: GenMessage<HandleTriggerResponse>;
740
+ /**
741
+ * @generated from message agentruntime.v1.ClaimNextRunRequest
742
+ */
743
+ export type ClaimNextRunRequest = Message<"agentruntime.v1.ClaimNextRunRequest"> & {
744
+ /**
745
+ * @generated from field: string worker_id = 1;
746
+ */
747
+ workerId: string;
748
+ /**
749
+ * @generated from field: string worker_queue = 2;
750
+ */
751
+ workerQueue: string;
752
+ /**
753
+ * @generated from field: int32 lease_seconds = 3;
754
+ */
755
+ leaseSeconds: number;
756
+ };
757
+ /**
758
+ * Describes the message agentruntime.v1.ClaimNextRunRequest.
759
+ * Use `create(ClaimNextRunRequestSchema)` to create a new message.
760
+ */
761
+ export declare const ClaimNextRunRequestSchema: GenMessage<ClaimNextRunRequest>;
762
+ /**
763
+ * @generated from message agentruntime.v1.ClaimNextRunResponse
764
+ */
765
+ export type ClaimNextRunResponse = Message<"agentruntime.v1.ClaimNextRunResponse"> & {
766
+ /**
767
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
768
+ */
769
+ run?: AgentRun;
770
+ /**
771
+ * @generated from field: agentruntime.v1.AgentRunLease lease = 2;
772
+ */
773
+ lease?: AgentRunLease;
774
+ /**
775
+ * @generated from field: repeated agentruntime.v1.RuntimeEvent events = 3;
776
+ */
777
+ events: RuntimeEvent[];
778
+ };
779
+ /**
780
+ * Describes the message agentruntime.v1.ClaimNextRunResponse.
781
+ * Use `create(ClaimNextRunResponseSchema)` to create a new message.
782
+ */
783
+ export declare const ClaimNextRunResponseSchema: GenMessage<ClaimNextRunResponse>;
784
+ /**
785
+ * @generated from message agentruntime.v1.HeartbeatRunRequest
786
+ */
787
+ export type HeartbeatRunRequest = Message<"agentruntime.v1.HeartbeatRunRequest"> & {
788
+ /**
789
+ * @generated from field: string run_id = 1;
790
+ */
791
+ runId: string;
792
+ /**
793
+ * @generated from field: string lease_token = 2;
794
+ */
795
+ leaseToken: string;
796
+ /**
797
+ * @generated from field: int32 extend_seconds = 3;
798
+ */
799
+ extendSeconds: number;
800
+ };
801
+ /**
802
+ * Describes the message agentruntime.v1.HeartbeatRunRequest.
803
+ * Use `create(HeartbeatRunRequestSchema)` to create a new message.
804
+ */
805
+ export declare const HeartbeatRunRequestSchema: GenMessage<HeartbeatRunRequest>;
806
+ /**
807
+ * @generated from message agentruntime.v1.HeartbeatRunResponse
808
+ */
809
+ export type HeartbeatRunResponse = Message<"agentruntime.v1.HeartbeatRunResponse"> & {
810
+ /**
811
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
812
+ */
813
+ run?: AgentRun;
814
+ /**
815
+ * @generated from field: agentruntime.v1.AgentRunLease lease = 2;
816
+ */
817
+ lease?: AgentRunLease;
818
+ /**
819
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
820
+ */
821
+ event?: RuntimeEvent;
822
+ };
823
+ /**
824
+ * Describes the message agentruntime.v1.HeartbeatRunResponse.
825
+ * Use `create(HeartbeatRunResponseSchema)` to create a new message.
826
+ */
827
+ export declare const HeartbeatRunResponseSchema: GenMessage<HeartbeatRunResponse>;
828
+ /**
829
+ * @generated from message agentruntime.v1.RecordRunStepRequest
830
+ */
831
+ export type RecordRunStepRequest = Message<"agentruntime.v1.RecordRunStepRequest"> & {
832
+ /**
833
+ * @generated from field: string run_id = 1;
834
+ */
835
+ runId: string;
836
+ /**
837
+ * @generated from field: string lease_token = 2;
838
+ */
839
+ leaseToken: string;
840
+ /**
841
+ * @generated from field: agentruntime.v1.AgentRunStep step = 3;
842
+ */
843
+ step?: AgentRunStep;
844
+ };
845
+ /**
846
+ * Describes the message agentruntime.v1.RecordRunStepRequest.
847
+ * Use `create(RecordRunStepRequestSchema)` to create a new message.
848
+ */
849
+ export declare const RecordRunStepRequestSchema: GenMessage<RecordRunStepRequest>;
850
+ /**
851
+ * @generated from message agentruntime.v1.RecordRunStepResponse
852
+ */
853
+ export type RecordRunStepResponse = Message<"agentruntime.v1.RecordRunStepResponse"> & {
854
+ /**
855
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
856
+ */
857
+ run?: AgentRun;
858
+ /**
859
+ * @generated from field: agentruntime.v1.AgentRunStep step = 2;
860
+ */
861
+ step?: AgentRunStep;
862
+ /**
863
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
864
+ */
865
+ event?: RuntimeEvent;
866
+ };
867
+ /**
868
+ * Describes the message agentruntime.v1.RecordRunStepResponse.
869
+ * Use `create(RecordRunStepResponseSchema)` to create a new message.
870
+ */
871
+ export declare const RecordRunStepResponseSchema: GenMessage<RecordRunStepResponse>;
872
+ /**
873
+ * @generated from message agentruntime.v1.RecordRunCheckpointRequest
874
+ */
875
+ export type RecordRunCheckpointRequest = Message<"agentruntime.v1.RecordRunCheckpointRequest"> & {
876
+ /**
877
+ * @generated from field: string run_id = 1;
878
+ */
879
+ runId: string;
880
+ /**
881
+ * @generated from field: string lease_token = 2;
882
+ */
883
+ leaseToken: string;
884
+ /**
885
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 3;
886
+ */
887
+ checkpoint?: AgentRunCheckpoint;
888
+ };
889
+ /**
890
+ * Describes the message agentruntime.v1.RecordRunCheckpointRequest.
891
+ * Use `create(RecordRunCheckpointRequestSchema)` to create a new message.
892
+ */
893
+ export declare const RecordRunCheckpointRequestSchema: GenMessage<RecordRunCheckpointRequest>;
894
+ /**
895
+ * @generated from message agentruntime.v1.RecordRunCheckpointResponse
896
+ */
897
+ export type RecordRunCheckpointResponse = Message<"agentruntime.v1.RecordRunCheckpointResponse"> & {
898
+ /**
899
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
900
+ */
901
+ run?: AgentRun;
902
+ /**
903
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 2;
904
+ */
905
+ checkpoint?: AgentRunCheckpoint;
906
+ /**
907
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
908
+ */
909
+ event?: RuntimeEvent;
910
+ };
911
+ /**
912
+ * Describes the message agentruntime.v1.RecordRunCheckpointResponse.
913
+ * Use `create(RecordRunCheckpointResponseSchema)` to create a new message.
914
+ */
915
+ export declare const RecordRunCheckpointResponseSchema: GenMessage<RecordRunCheckpointResponse>;
916
+ /**
917
+ * @generated from message agentruntime.v1.RecordRunArtifactRequest
918
+ */
919
+ export type RecordRunArtifactRequest = Message<"agentruntime.v1.RecordRunArtifactRequest"> & {
920
+ /**
921
+ * @generated from field: string run_id = 1;
922
+ */
923
+ runId: string;
924
+ /**
925
+ * @generated from field: string lease_token = 2;
926
+ */
927
+ leaseToken: string;
928
+ /**
929
+ * @generated from field: agentruntime.v1.AgentRunArtifact artifact = 3;
930
+ */
931
+ artifact?: AgentRunArtifact;
932
+ };
933
+ /**
934
+ * Describes the message agentruntime.v1.RecordRunArtifactRequest.
935
+ * Use `create(RecordRunArtifactRequestSchema)` to create a new message.
936
+ */
937
+ export declare const RecordRunArtifactRequestSchema: GenMessage<RecordRunArtifactRequest>;
938
+ /**
939
+ * @generated from message agentruntime.v1.RecordRunArtifactResponse
940
+ */
941
+ export type RecordRunArtifactResponse = Message<"agentruntime.v1.RecordRunArtifactResponse"> & {
942
+ /**
943
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
944
+ */
945
+ run?: AgentRun;
946
+ /**
947
+ * @generated from field: agentruntime.v1.AgentRunArtifact artifact = 2;
948
+ */
949
+ artifact?: AgentRunArtifact;
950
+ /**
951
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
952
+ */
953
+ event?: RuntimeEvent;
954
+ };
955
+ /**
956
+ * Describes the message agentruntime.v1.RecordRunArtifactResponse.
957
+ * Use `create(RecordRunArtifactResponseSchema)` to create a new message.
958
+ */
959
+ export declare const RecordRunArtifactResponseSchema: GenMessage<RecordRunArtifactResponse>;
960
+ /**
961
+ * @generated from message agentruntime.v1.RecordRunCostRequest
962
+ */
963
+ export type RecordRunCostRequest = Message<"agentruntime.v1.RecordRunCostRequest"> & {
964
+ /**
965
+ * @generated from field: string run_id = 1;
966
+ */
967
+ runId: string;
968
+ /**
969
+ * @generated from field: string lease_token = 2;
970
+ */
971
+ leaseToken: string;
972
+ /**
973
+ * @generated from field: agentruntime.v1.AgentRunCost cost = 3;
974
+ */
975
+ cost?: AgentRunCost;
976
+ };
977
+ /**
978
+ * Describes the message agentruntime.v1.RecordRunCostRequest.
979
+ * Use `create(RecordRunCostRequestSchema)` to create a new message.
980
+ */
981
+ export declare const RecordRunCostRequestSchema: GenMessage<RecordRunCostRequest>;
982
+ /**
983
+ * @generated from message agentruntime.v1.RecordRunCostResponse
984
+ */
985
+ export type RecordRunCostResponse = Message<"agentruntime.v1.RecordRunCostResponse"> & {
986
+ /**
987
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
988
+ */
989
+ run?: AgentRun;
990
+ /**
991
+ * @generated from field: agentruntime.v1.AgentRunCost cost = 2;
992
+ */
993
+ cost?: AgentRunCost;
994
+ /**
995
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
996
+ */
997
+ event?: RuntimeEvent;
998
+ };
999
+ /**
1000
+ * Describes the message agentruntime.v1.RecordRunCostResponse.
1001
+ * Use `create(RecordRunCostResponseSchema)` to create a new message.
1002
+ */
1003
+ export declare const RecordRunCostResponseSchema: GenMessage<RecordRunCostResponse>;
1004
+ /**
1005
+ * @generated from message agentruntime.v1.RecordRunStreamCursorRequest
1006
+ */
1007
+ export type RecordRunStreamCursorRequest = Message<"agentruntime.v1.RecordRunStreamCursorRequest"> & {
1008
+ /**
1009
+ * @generated from field: string run_id = 1;
1010
+ */
1011
+ runId: string;
1012
+ /**
1013
+ * @generated from field: agentruntime.v1.AgentRunStreamCursor cursor = 2;
1014
+ */
1015
+ cursor?: AgentRunStreamCursor;
1016
+ };
1017
+ /**
1018
+ * Describes the message agentruntime.v1.RecordRunStreamCursorRequest.
1019
+ * Use `create(RecordRunStreamCursorRequestSchema)` to create a new message.
1020
+ */
1021
+ export declare const RecordRunStreamCursorRequestSchema: GenMessage<RecordRunStreamCursorRequest>;
1022
+ /**
1023
+ * @generated from message agentruntime.v1.RecordRunStreamCursorResponse
1024
+ */
1025
+ export type RecordRunStreamCursorResponse = Message<"agentruntime.v1.RecordRunStreamCursorResponse"> & {
1026
+ /**
1027
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1028
+ */
1029
+ run?: AgentRun;
1030
+ /**
1031
+ * @generated from field: agentruntime.v1.AgentRunStreamCursor cursor = 2;
1032
+ */
1033
+ cursor?: AgentRunStreamCursor;
1034
+ /**
1035
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
1036
+ */
1037
+ event?: RuntimeEvent;
1038
+ };
1039
+ /**
1040
+ * Describes the message agentruntime.v1.RecordRunStreamCursorResponse.
1041
+ * Use `create(RecordRunStreamCursorResponseSchema)` to create a new message.
1042
+ */
1043
+ export declare const RecordRunStreamCursorResponseSchema: GenMessage<RecordRunStreamCursorResponse>;
1044
+ /**
1045
+ * @generated from message agentruntime.v1.WaitRunRequest
1046
+ */
1047
+ export type WaitRunRequest = Message<"agentruntime.v1.WaitRunRequest"> & {
1048
+ /**
1049
+ * @generated from field: string run_id = 1;
1050
+ */
1051
+ runId: string;
1052
+ /**
1053
+ * @generated from field: string lease_token = 2;
1054
+ */
1055
+ leaseToken: string;
1056
+ /**
1057
+ * @generated from field: agentruntime.v1.AgentRunWait wait = 3;
1058
+ */
1059
+ wait?: AgentRunWait;
1060
+ /**
1061
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 4;
1062
+ */
1063
+ checkpoint?: AgentRunCheckpoint;
1064
+ };
1065
+ /**
1066
+ * Describes the message agentruntime.v1.WaitRunRequest.
1067
+ * Use `create(WaitRunRequestSchema)` to create a new message.
1068
+ */
1069
+ export declare const WaitRunRequestSchema: GenMessage<WaitRunRequest>;
1070
+ /**
1071
+ * @generated from message agentruntime.v1.WaitRunResponse
1072
+ */
1073
+ export type WaitRunResponse = Message<"agentruntime.v1.WaitRunResponse"> & {
1074
+ /**
1075
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1076
+ */
1077
+ run?: AgentRun;
1078
+ /**
1079
+ * @generated from field: agentruntime.v1.AgentRunWait wait = 2;
1080
+ */
1081
+ wait?: AgentRunWait;
1082
+ /**
1083
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 3;
1084
+ */
1085
+ checkpoint?: AgentRunCheckpoint;
1086
+ /**
1087
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 4;
1088
+ */
1089
+ event?: RuntimeEvent;
1090
+ };
1091
+ /**
1092
+ * Describes the message agentruntime.v1.WaitRunResponse.
1093
+ * Use `create(WaitRunResponseSchema)` to create a new message.
1094
+ */
1095
+ export declare const WaitRunResponseSchema: GenMessage<WaitRunResponse>;
1096
+ /**
1097
+ * @generated from message agentruntime.v1.ResumeRunRequest
1098
+ */
1099
+ export type ResumeRunRequest = Message<"agentruntime.v1.ResumeRunRequest"> & {
1100
+ /**
1101
+ * @generated from field: string run_id = 1;
1102
+ */
1103
+ runId: string;
1104
+ /**
1105
+ * @generated from field: string wait_id = 2;
1106
+ */
1107
+ waitId: string;
1108
+ /**
1109
+ * @generated from field: string resume_event_id = 3;
1110
+ */
1111
+ resumeEventId: string;
1112
+ /**
1113
+ * @generated from field: google.protobuf.Struct payload = 4;
1114
+ */
1115
+ payload?: JsonObject;
1116
+ };
1117
+ /**
1118
+ * Describes the message agentruntime.v1.ResumeRunRequest.
1119
+ * Use `create(ResumeRunRequestSchema)` to create a new message.
1120
+ */
1121
+ export declare const ResumeRunRequestSchema: GenMessage<ResumeRunRequest>;
1122
+ /**
1123
+ * @generated from message agentruntime.v1.ResumeRunResponse
1124
+ */
1125
+ export type ResumeRunResponse = Message<"agentruntime.v1.ResumeRunResponse"> & {
1126
+ /**
1127
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1128
+ */
1129
+ run?: AgentRun;
1130
+ /**
1131
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 2;
1132
+ */
1133
+ event?: RuntimeEvent;
1134
+ };
1135
+ /**
1136
+ * Describes the message agentruntime.v1.ResumeRunResponse.
1137
+ * Use `create(ResumeRunResponseSchema)` to create a new message.
1138
+ */
1139
+ export declare const ResumeRunResponseSchema: GenMessage<ResumeRunResponse>;
1140
+ /**
1141
+ * @generated from message agentruntime.v1.CompleteRunRequest
1142
+ */
1143
+ export type CompleteRunRequest = Message<"agentruntime.v1.CompleteRunRequest"> & {
1144
+ /**
1145
+ * @generated from field: string run_id = 1;
1146
+ */
1147
+ runId: string;
1148
+ /**
1149
+ * @generated from field: string lease_token = 2;
1150
+ */
1151
+ leaseToken: string;
1152
+ /**
1153
+ * @generated from field: google.protobuf.Struct result = 3;
1154
+ */
1155
+ result?: JsonObject;
1156
+ /**
1157
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 4;
1158
+ */
1159
+ checkpoint?: AgentRunCheckpoint;
1160
+ };
1161
+ /**
1162
+ * Describes the message agentruntime.v1.CompleteRunRequest.
1163
+ * Use `create(CompleteRunRequestSchema)` to create a new message.
1164
+ */
1165
+ export declare const CompleteRunRequestSchema: GenMessage<CompleteRunRequest>;
1166
+ /**
1167
+ * @generated from message agentruntime.v1.CompleteRunResponse
1168
+ */
1169
+ export type CompleteRunResponse = Message<"agentruntime.v1.CompleteRunResponse"> & {
1170
+ /**
1171
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1172
+ */
1173
+ run?: AgentRun;
1174
+ /**
1175
+ * @generated from field: agentruntime.v1.AgentRunCheckpoint checkpoint = 2;
1176
+ */
1177
+ checkpoint?: AgentRunCheckpoint;
1178
+ /**
1179
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 3;
1180
+ */
1181
+ event?: RuntimeEvent;
1182
+ };
1183
+ /**
1184
+ * Describes the message agentruntime.v1.CompleteRunResponse.
1185
+ * Use `create(CompleteRunResponseSchema)` to create a new message.
1186
+ */
1187
+ export declare const CompleteRunResponseSchema: GenMessage<CompleteRunResponse>;
1188
+ /**
1189
+ * @generated from message agentruntime.v1.FailRunRequest
1190
+ */
1191
+ export type FailRunRequest = Message<"agentruntime.v1.FailRunRequest"> & {
1192
+ /**
1193
+ * @generated from field: string run_id = 1;
1194
+ */
1195
+ runId: string;
1196
+ /**
1197
+ * @generated from field: string lease_token = 2;
1198
+ */
1199
+ leaseToken: string;
1200
+ /**
1201
+ * @generated from field: string error_message = 3;
1202
+ */
1203
+ errorMessage: string;
1204
+ /**
1205
+ * @generated from field: bool retryable = 4;
1206
+ */
1207
+ retryable: boolean;
1208
+ /**
1209
+ * @generated from field: int32 retry_delay_seconds = 5;
1210
+ */
1211
+ retryDelaySeconds: number;
1212
+ };
1213
+ /**
1214
+ * Describes the message agentruntime.v1.FailRunRequest.
1215
+ * Use `create(FailRunRequestSchema)` to create a new message.
1216
+ */
1217
+ export declare const FailRunRequestSchema: GenMessage<FailRunRequest>;
1218
+ /**
1219
+ * @generated from message agentruntime.v1.FailRunResponse
1220
+ */
1221
+ export type FailRunResponse = Message<"agentruntime.v1.FailRunResponse"> & {
1222
+ /**
1223
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1224
+ */
1225
+ run?: AgentRun;
1226
+ /**
1227
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 2;
1228
+ */
1229
+ event?: RuntimeEvent;
1230
+ };
1231
+ /**
1232
+ * Describes the message agentruntime.v1.FailRunResponse.
1233
+ * Use `create(FailRunResponseSchema)` to create a new message.
1234
+ */
1235
+ export declare const FailRunResponseSchema: GenMessage<FailRunResponse>;
1236
+ /**
1237
+ * @generated from message agentruntime.v1.CancelRunRequest
1238
+ */
1239
+ export type CancelRunRequest = Message<"agentruntime.v1.CancelRunRequest"> & {
1240
+ /**
1241
+ * @generated from field: string run_id = 1;
1242
+ */
1243
+ runId: string;
1244
+ /**
1245
+ * @generated from field: string reason = 2;
1246
+ */
1247
+ reason: string;
1248
+ };
1249
+ /**
1250
+ * Describes the message agentruntime.v1.CancelRunRequest.
1251
+ * Use `create(CancelRunRequestSchema)` to create a new message.
1252
+ */
1253
+ export declare const CancelRunRequestSchema: GenMessage<CancelRunRequest>;
1254
+ /**
1255
+ * @generated from message agentruntime.v1.CancelRunResponse
1256
+ */
1257
+ export type CancelRunResponse = Message<"agentruntime.v1.CancelRunResponse"> & {
1258
+ /**
1259
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1260
+ */
1261
+ run?: AgentRun;
1262
+ /**
1263
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 2;
1264
+ */
1265
+ event?: RuntimeEvent;
1266
+ };
1267
+ /**
1268
+ * Describes the message agentruntime.v1.CancelRunResponse.
1269
+ * Use `create(CancelRunResponseSchema)` to create a new message.
1270
+ */
1271
+ export declare const CancelRunResponseSchema: GenMessage<CancelRunResponse>;
1272
+ /**
1273
+ * @generated from message agentruntime.v1.RetryRunRequest
1274
+ */
1275
+ export type RetryRunRequest = Message<"agentruntime.v1.RetryRunRequest"> & {
1276
+ /**
1277
+ * @generated from field: string run_id = 1;
1278
+ */
1279
+ runId: string;
1280
+ /**
1281
+ * @generated from field: int32 retry_delay_seconds = 2;
1282
+ */
1283
+ retryDelaySeconds: number;
1284
+ /**
1285
+ * @generated from field: string reason = 3;
1286
+ */
1287
+ reason: string;
1288
+ };
1289
+ /**
1290
+ * Describes the message agentruntime.v1.RetryRunRequest.
1291
+ * Use `create(RetryRunRequestSchema)` to create a new message.
1292
+ */
1293
+ export declare const RetryRunRequestSchema: GenMessage<RetryRunRequest>;
1294
+ /**
1295
+ * @generated from message agentruntime.v1.RetryRunResponse
1296
+ */
1297
+ export type RetryRunResponse = Message<"agentruntime.v1.RetryRunResponse"> & {
1298
+ /**
1299
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1300
+ */
1301
+ run?: AgentRun;
1302
+ /**
1303
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 2;
1304
+ */
1305
+ event?: RuntimeEvent;
1306
+ };
1307
+ /**
1308
+ * Describes the message agentruntime.v1.RetryRunResponse.
1309
+ * Use `create(RetryRunResponseSchema)` to create a new message.
1310
+ */
1311
+ export declare const RetryRunResponseSchema: GenMessage<RetryRunResponse>;
1312
+ /**
1313
+ * @generated from message agentruntime.v1.DeadLetterRunRequest
1314
+ */
1315
+ export type DeadLetterRunRequest = Message<"agentruntime.v1.DeadLetterRunRequest"> & {
1316
+ /**
1317
+ * @generated from field: string run_id = 1;
1318
+ */
1319
+ runId: string;
1320
+ /**
1321
+ * @generated from field: string reason = 2;
1322
+ */
1323
+ reason: string;
1324
+ };
1325
+ /**
1326
+ * Describes the message agentruntime.v1.DeadLetterRunRequest.
1327
+ * Use `create(DeadLetterRunRequestSchema)` to create a new message.
1328
+ */
1329
+ export declare const DeadLetterRunRequestSchema: GenMessage<DeadLetterRunRequest>;
1330
+ /**
1331
+ * @generated from message agentruntime.v1.DeadLetterRunResponse
1332
+ */
1333
+ export type DeadLetterRunResponse = Message<"agentruntime.v1.DeadLetterRunResponse"> & {
1334
+ /**
1335
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1336
+ */
1337
+ run?: AgentRun;
1338
+ /**
1339
+ * @generated from field: agentruntime.v1.RuntimeEvent event = 2;
1340
+ */
1341
+ event?: RuntimeEvent;
1342
+ };
1343
+ /**
1344
+ * Describes the message agentruntime.v1.DeadLetterRunResponse.
1345
+ * Use `create(DeadLetterRunResponseSchema)` to create a new message.
1346
+ */
1347
+ export declare const DeadLetterRunResponseSchema: GenMessage<DeadLetterRunResponse>;
1348
+ /**
1349
+ * @generated from message agentruntime.v1.GetRunRequest
1350
+ */
1351
+ export type GetRunRequest = Message<"agentruntime.v1.GetRunRequest"> & {
1352
+ /**
1353
+ * @generated from field: string id = 1;
1354
+ */
1355
+ id: string;
1356
+ };
1357
+ /**
1358
+ * Describes the message agentruntime.v1.GetRunRequest.
1359
+ * Use `create(GetRunRequestSchema)` to create a new message.
1360
+ */
1361
+ export declare const GetRunRequestSchema: GenMessage<GetRunRequest>;
1362
+ /**
1363
+ * @generated from message agentruntime.v1.GetRunResponse
1364
+ */
1365
+ export type GetRunResponse = Message<"agentruntime.v1.GetRunResponse"> & {
1366
+ /**
1367
+ * @generated from field: agentruntime.v1.AgentRun run = 1;
1368
+ */
1369
+ run?: AgentRun;
1370
+ };
1371
+ /**
1372
+ * Describes the message agentruntime.v1.GetRunResponse.
1373
+ * Use `create(GetRunResponseSchema)` to create a new message.
1374
+ */
1375
+ export declare const GetRunResponseSchema: GenMessage<GetRunResponse>;
1376
+ /**
1377
+ * @generated from message agentruntime.v1.ListRunEventsRequest
1378
+ */
1379
+ export type ListRunEventsRequest = Message<"agentruntime.v1.ListRunEventsRequest"> & {
1380
+ /**
1381
+ * @generated from field: string run_id = 1;
1382
+ */
1383
+ runId: string;
1384
+ };
1385
+ /**
1386
+ * Describes the message agentruntime.v1.ListRunEventsRequest.
1387
+ * Use `create(ListRunEventsRequestSchema)` to create a new message.
1388
+ */
1389
+ export declare const ListRunEventsRequestSchema: GenMessage<ListRunEventsRequest>;
1390
+ /**
1391
+ * @generated from message agentruntime.v1.ListRunEventsResponse
1392
+ */
1393
+ export type ListRunEventsResponse = Message<"agentruntime.v1.ListRunEventsResponse"> & {
1394
+ /**
1395
+ * @generated from field: repeated agentruntime.v1.RuntimeEvent events = 1;
1396
+ */
1397
+ events: RuntimeEvent[];
1398
+ };
1399
+ /**
1400
+ * Describes the message agentruntime.v1.ListRunEventsResponse.
1401
+ * Use `create(ListRunEventsResponseSchema)` to create a new message.
1402
+ */
1403
+ export declare const ListRunEventsResponseSchema: GenMessage<ListRunEventsResponse>;
1404
+ /**
1405
+ * AgentRunState describes the runtime lifecycle of one durable attempt.
1406
+ *
1407
+ * @generated from enum agentruntime.v1.AgentRunState
1408
+ */
1409
+ export declare enum AgentRunState {
1410
+ /**
1411
+ * @generated from enum value: AGENT_RUN_STATE_UNSPECIFIED = 0;
1412
+ */
1413
+ UNSPECIFIED = 0,
1414
+ /**
1415
+ * @generated from enum value: AGENT_RUN_STATE_ACCEPTED = 1;
1416
+ */
1417
+ ACCEPTED = 1,
1418
+ /**
1419
+ * @generated from enum value: AGENT_RUN_STATE_QUEUED = 2;
1420
+ */
1421
+ QUEUED = 2,
1422
+ /**
1423
+ * @generated from enum value: AGENT_RUN_STATE_RUNNING = 3;
1424
+ */
1425
+ RUNNING = 3,
1426
+ /**
1427
+ * @generated from enum value: AGENT_RUN_STATE_WAITING = 4;
1428
+ */
1429
+ WAITING = 4,
1430
+ /**
1431
+ * @generated from enum value: AGENT_RUN_STATE_SUCCEEDED = 5;
1432
+ */
1433
+ SUCCEEDED = 5,
1434
+ /**
1435
+ * @generated from enum value: AGENT_RUN_STATE_FAILED = 6;
1436
+ */
1437
+ FAILED = 6,
1438
+ /**
1439
+ * @generated from enum value: AGENT_RUN_STATE_CANCELLED = 7;
1440
+ */
1441
+ CANCELLED = 7,
1442
+ /**
1443
+ * @generated from enum value: AGENT_RUN_STATE_RETRYING = 8;
1444
+ */
1445
+ RETRYING = 8,
1446
+ /**
1447
+ * @generated from enum value: AGENT_RUN_STATE_DEAD_LETTERED = 9;
1448
+ */
1449
+ DEAD_LETTERED = 9
1450
+ }
1451
+ /**
1452
+ * Describes the enum agentruntime.v1.AgentRunState.
1453
+ */
1454
+ export declare const AgentRunStateSchema: GenEnum<AgentRunState>;
1455
+ /**
1456
+ * AgentRunStepState describes progress for a single durable step record.
1457
+ *
1458
+ * @generated from enum agentruntime.v1.AgentRunStepState
1459
+ */
1460
+ export declare enum AgentRunStepState {
1461
+ /**
1462
+ * @generated from enum value: AGENT_RUN_STEP_STATE_UNSPECIFIED = 0;
1463
+ */
1464
+ UNSPECIFIED = 0,
1465
+ /**
1466
+ * @generated from enum value: AGENT_RUN_STEP_STATE_PENDING = 1;
1467
+ */
1468
+ PENDING = 1,
1469
+ /**
1470
+ * @generated from enum value: AGENT_RUN_STEP_STATE_RUNNING = 2;
1471
+ */
1472
+ RUNNING = 2,
1473
+ /**
1474
+ * @generated from enum value: AGENT_RUN_STEP_STATE_WAITING = 3;
1475
+ */
1476
+ WAITING = 3,
1477
+ /**
1478
+ * @generated from enum value: AGENT_RUN_STEP_STATE_SUCCEEDED = 4;
1479
+ */
1480
+ SUCCEEDED = 4,
1481
+ /**
1482
+ * @generated from enum value: AGENT_RUN_STEP_STATE_FAILED = 5;
1483
+ */
1484
+ FAILED = 5,
1485
+ /**
1486
+ * @generated from enum value: AGENT_RUN_STEP_STATE_CANCELLED = 6;
1487
+ */
1488
+ CANCELLED = 6,
1489
+ /**
1490
+ * @generated from enum value: AGENT_RUN_STEP_STATE_SKIPPED = 7;
1491
+ */
1492
+ SKIPPED = 7
1493
+ }
1494
+ /**
1495
+ * Describes the enum agentruntime.v1.AgentRunStepState.
1496
+ */
1497
+ export declare const AgentRunStepStateSchema: GenEnum<AgentRunStepState>;
1498
+ /**
1499
+ * AgentRunWaitType describes why a run released its worker lease.
1500
+ *
1501
+ * @generated from enum agentruntime.v1.AgentRunWaitType
1502
+ */
1503
+ export declare enum AgentRunWaitType {
1504
+ /**
1505
+ * @generated from enum value: AGENT_RUN_WAIT_TYPE_UNSPECIFIED = 0;
1506
+ */
1507
+ UNSPECIFIED = 0,
1508
+ /**
1509
+ * @generated from enum value: AGENT_RUN_WAIT_TYPE_APPROVAL = 1;
1510
+ */
1511
+ APPROVAL = 1,
1512
+ /**
1513
+ * @generated from enum value: AGENT_RUN_WAIT_TYPE_INPUT = 2;
1514
+ */
1515
+ INPUT = 2,
1516
+ /**
1517
+ * @generated from enum value: AGENT_RUN_WAIT_TYPE_EVENT = 3;
1518
+ */
1519
+ EVENT = 3,
1520
+ /**
1521
+ * @generated from enum value: AGENT_RUN_WAIT_TYPE_TIMER = 4;
1522
+ */
1523
+ TIMER = 4
1524
+ }
1525
+ /**
1526
+ * Describes the enum agentruntime.v1.AgentRunWaitType.
1527
+ */
1528
+ export declare const AgentRunWaitTypeSchema: GenEnum<AgentRunWaitType>;
1529
+ /**
1530
+ * RuntimeEventType classifies append-only AgentRun events.
1531
+ *
1532
+ * @generated from enum agentruntime.v1.RuntimeEventType
1533
+ */
1534
+ export declare enum RuntimeEventType {
1535
+ /**
1536
+ * @generated from enum value: RUNTIME_EVENT_TYPE_UNSPECIFIED = 0;
1537
+ */
1538
+ UNSPECIFIED = 0,
1539
+ /**
1540
+ * @generated from enum value: RUNTIME_EVENT_TYPE_TRIGGER_ACCEPTED = 1;
1541
+ */
1542
+ TRIGGER_ACCEPTED = 1,
1543
+ /**
1544
+ * @generated from enum value: RUNTIME_EVENT_TYPE_AGENT_CONFIG_RESOLVED = 2;
1545
+ */
1546
+ AGENT_CONFIG_RESOLVED = 2,
1547
+ /**
1548
+ * @generated from enum value: RUNTIME_EVENT_TYPE_OBJECTIVE_RESOLVED = 3;
1549
+ */
1550
+ OBJECTIVE_RESOLVED = 3,
1551
+ /**
1552
+ * @generated from enum value: RUNTIME_EVENT_TYPE_CONTEXT_BUILT = 4;
1553
+ */
1554
+ CONTEXT_BUILT = 4,
1555
+ /**
1556
+ * @generated from enum value: RUNTIME_EVENT_TYPE_WORKER_DISPATCHED = 5;
1557
+ */
1558
+ WORKER_DISPATCHED = 5,
1559
+ /**
1560
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_FAILED = 6;
1561
+ */
1562
+ RUN_FAILED = 6,
1563
+ /**
1564
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_QUEUED = 7;
1565
+ */
1566
+ RUN_QUEUED = 7,
1567
+ /**
1568
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_CLAIMED = 8;
1569
+ */
1570
+ RUN_CLAIMED = 8,
1571
+ /**
1572
+ * @generated from enum value: RUNTIME_EVENT_TYPE_LEASE_HEARTBEAT = 9;
1573
+ */
1574
+ LEASE_HEARTBEAT = 9,
1575
+ /**
1576
+ * @generated from enum value: RUNTIME_EVENT_TYPE_STEP_RECORDED = 10;
1577
+ */
1578
+ STEP_RECORDED = 10,
1579
+ /**
1580
+ * @generated from enum value: RUNTIME_EVENT_TYPE_CHECKPOINT_RECORDED = 11;
1581
+ */
1582
+ CHECKPOINT_RECORDED = 11,
1583
+ /**
1584
+ * @generated from enum value: RUNTIME_EVENT_TYPE_ARTIFACT_RECORDED = 12;
1585
+ */
1586
+ ARTIFACT_RECORDED = 12,
1587
+ /**
1588
+ * @generated from enum value: RUNTIME_EVENT_TYPE_COST_RECORDED = 13;
1589
+ */
1590
+ COST_RECORDED = 13,
1591
+ /**
1592
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_WAITING = 14;
1593
+ */
1594
+ RUN_WAITING = 14,
1595
+ /**
1596
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_RESUMED = 15;
1597
+ */
1598
+ RUN_RESUMED = 15,
1599
+ /**
1600
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_SUCCEEDED = 16;
1601
+ */
1602
+ RUN_SUCCEEDED = 16,
1603
+ /**
1604
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_CANCELLED = 17;
1605
+ */
1606
+ RUN_CANCELLED = 17,
1607
+ /**
1608
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_RETRY_SCHEDULED = 18;
1609
+ */
1610
+ RUN_RETRY_SCHEDULED = 18,
1611
+ /**
1612
+ * @generated from enum value: RUNTIME_EVENT_TYPE_RUN_DEAD_LETTERED = 19;
1613
+ */
1614
+ RUN_DEAD_LETTERED = 19,
1615
+ /**
1616
+ * @generated from enum value: RUNTIME_EVENT_TYPE_STREAM_CURSOR_RECORDED = 20;
1617
+ */
1618
+ STREAM_CURSOR_RECORDED = 20
1619
+ }
1620
+ /**
1621
+ * Describes the enum agentruntime.v1.RuntimeEventType.
1622
+ */
1623
+ export declare const RuntimeEventTypeSchema: GenEnum<RuntimeEventType>;
1624
+ /**
1625
+ * AgentRuntimeService accepts normalized triggers and manages durable
1626
+ * AgentRun execution attempts. Workers claim runs by lease, checkpoint their
1627
+ * progress, release compute while waiting for human/input/event gates, and
1628
+ * resume from checkpoints rather than replaying LLM or tool calls.
1629
+ *
1630
+ * @generated from service agentruntime.v1.AgentRuntimeService
1631
+ */
1632
+ export declare const AgentRuntimeService: GenService<{
1633
+ /**
1634
+ * HandleTrigger receives a normalized product or integration trigger,
1635
+ * resolves agent/objective context, records an AgentRun, and dispatches it.
1636
+ *
1637
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.HandleTrigger
1638
+ */
1639
+ handleTrigger: {
1640
+ methodKind: "unary";
1641
+ input: typeof HandleTriggerRequestSchema;
1642
+ output: typeof HandleTriggerResponseSchema;
1643
+ };
1644
+ /**
1645
+ * ClaimNextRun atomically leases the next queued or retry-ready run for a
1646
+ * worker. A claim transitions the run to RUNNING and increments attempt.
1647
+ *
1648
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.ClaimNextRun
1649
+ */
1650
+ claimNextRun: {
1651
+ methodKind: "unary";
1652
+ input: typeof ClaimNextRunRequestSchema;
1653
+ output: typeof ClaimNextRunResponseSchema;
1654
+ };
1655
+ /**
1656
+ * HeartbeatRun extends an active worker lease. Expired leases are eligible
1657
+ * to be reclaimed by another worker from the last checkpoint.
1658
+ *
1659
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.HeartbeatRun
1660
+ */
1661
+ heartbeatRun: {
1662
+ methodKind: "unary";
1663
+ input: typeof HeartbeatRunRequestSchema;
1664
+ output: typeof HeartbeatRunResponseSchema;
1665
+ };
1666
+ /**
1667
+ * RecordRunStep upserts the durable record for one execution step.
1668
+ *
1669
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RecordRunStep
1670
+ */
1671
+ recordRunStep: {
1672
+ methodKind: "unary";
1673
+ input: typeof RecordRunStepRequestSchema;
1674
+ output: typeof RecordRunStepResponseSchema;
1675
+ };
1676
+ /**
1677
+ * RecordRunCheckpoint stores an opaque resume snapshot. Checkpoints are the
1678
+ * source of truth for resuming work; deterministic replay is not required.
1679
+ *
1680
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RecordRunCheckpoint
1681
+ */
1682
+ recordRunCheckpoint: {
1683
+ methodKind: "unary";
1684
+ input: typeof RecordRunCheckpointRequestSchema;
1685
+ output: typeof RecordRunCheckpointResponseSchema;
1686
+ };
1687
+ /**
1688
+ * RecordRunArtifact links a produced artifact to the run and optional step.
1689
+ *
1690
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RecordRunArtifact
1691
+ */
1692
+ recordRunArtifact: {
1693
+ methodKind: "unary";
1694
+ input: typeof RecordRunArtifactRequestSchema;
1695
+ output: typeof RecordRunArtifactResponseSchema;
1696
+ };
1697
+ /**
1698
+ * RecordRunCost links metering/cost data to the run and optional step.
1699
+ *
1700
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RecordRunCost
1701
+ */
1702
+ recordRunCost: {
1703
+ methodKind: "unary";
1704
+ input: typeof RecordRunCostRequestSchema;
1705
+ output: typeof RecordRunCostResponseSchema;
1706
+ };
1707
+ /**
1708
+ * RecordRunStreamCursor stores a consumer cursor into the run event stream.
1709
+ *
1710
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RecordRunStreamCursor
1711
+ */
1712
+ recordRunStreamCursor: {
1713
+ methodKind: "unary";
1714
+ input: typeof RecordRunStreamCursorRequestSchema;
1715
+ output: typeof RecordRunStreamCursorResponseSchema;
1716
+ };
1717
+ /**
1718
+ * WaitRun parks the run on an approval, input, timer, or event wait and
1719
+ * clears the worker lease so no compute is held while blocked.
1720
+ *
1721
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.WaitRun
1722
+ */
1723
+ waitRun: {
1724
+ methodKind: "unary";
1725
+ input: typeof WaitRunRequestSchema;
1726
+ output: typeof WaitRunResponseSchema;
1727
+ };
1728
+ /**
1729
+ * ResumeRun resolves a wait and requeues the run from its latest checkpoint.
1730
+ *
1731
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.ResumeRun
1732
+ */
1733
+ resumeRun: {
1734
+ methodKind: "unary";
1735
+ input: typeof ResumeRunRequestSchema;
1736
+ output: typeof ResumeRunResponseSchema;
1737
+ };
1738
+ /**
1739
+ * CompleteRun marks the run successful and releases any active lease.
1740
+ *
1741
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.CompleteRun
1742
+ */
1743
+ completeRun: {
1744
+ methodKind: "unary";
1745
+ input: typeof CompleteRunRequestSchema;
1746
+ output: typeof CompleteRunResponseSchema;
1747
+ };
1748
+ /**
1749
+ * FailRun records a failed attempt. Retryable failures can move to RETRYING;
1750
+ * exhausted attempts stay FAILED until they are moved to the dead letter set.
1751
+ *
1752
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.FailRun
1753
+ */
1754
+ failRun: {
1755
+ methodKind: "unary";
1756
+ input: typeof FailRunRequestSchema;
1757
+ output: typeof FailRunResponseSchema;
1758
+ };
1759
+ /**
1760
+ * CancelRun cancels a run before it reaches a terminal success/failure.
1761
+ *
1762
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.CancelRun
1763
+ */
1764
+ cancelRun: {
1765
+ methodKind: "unary";
1766
+ input: typeof CancelRunRequestSchema;
1767
+ output: typeof CancelRunResponseSchema;
1768
+ };
1769
+ /**
1770
+ * RetryRun explicitly schedules a failed run for another attempt.
1771
+ *
1772
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.RetryRun
1773
+ */
1774
+ retryRun: {
1775
+ methodKind: "unary";
1776
+ input: typeof RetryRunRequestSchema;
1777
+ output: typeof RetryRunResponseSchema;
1778
+ };
1779
+ /**
1780
+ * DeadLetterRun moves an exhausted or poison run out of normal scheduling.
1781
+ *
1782
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.DeadLetterRun
1783
+ */
1784
+ deadLetterRun: {
1785
+ methodKind: "unary";
1786
+ input: typeof DeadLetterRunRequestSchema;
1787
+ output: typeof DeadLetterRunResponseSchema;
1788
+ };
1789
+ /**
1790
+ * GetRun retrieves an AgentRun by ID.
1791
+ *
1792
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.GetRun
1793
+ */
1794
+ getRun: {
1795
+ methodKind: "unary";
1796
+ input: typeof GetRunRequestSchema;
1797
+ output: typeof GetRunResponseSchema;
1798
+ };
1799
+ /**
1800
+ * ListRunEvents returns the append-only event log for an AgentRun.
1801
+ *
1802
+ * @generated from rpc agentruntime.v1.AgentRuntimeService.ListRunEvents
1803
+ */
1804
+ listRunEvents: {
1805
+ methodKind: "unary";
1806
+ input: typeof ListRunEventsRequestSchema;
1807
+ output: typeof ListRunEventsResponseSchema;
1808
+ };
1809
+ }>;