@relayfx/sdk 0.0.50 → 0.2.0

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 (155) hide show
  1. package/README.md +5 -0
  2. package/dist/ai.js +42 -17222
  3. package/dist/index-2xztzkfr.js +20596 -0
  4. package/dist/index-bcbbm5wt.js +137 -0
  5. package/dist/index-qgt9z94q.js +2443 -0
  6. package/dist/index.js +830 -18839
  7. package/dist/migrations/20260712120000_durable_inbox/migration.sql +9 -0
  8. package/dist/migrations/20260712140000_execution_state/migration.sql +5 -0
  9. package/dist/migrations/20260712150000_durable_entities/migration.sql +15 -0
  10. package/dist/migrations/20260712160000_ephemeral_presence/migration.sql +13 -0
  11. package/dist/migrations/20260712170000_topic_subscriptions/migration.sql +3 -0
  12. package/dist/migrations/20260712180000_child_fan_out/migration.sql +27 -0
  13. package/dist/migrations/20260712190000_workflow_definitions/migration.sql +3 -0
  14. package/dist/migrations/20260712200000_workflow_runtime/migration.sql +2 -0
  15. package/dist/migrations/mysql/0003_durable_inbox.sql +3 -0
  16. package/dist/migrations/mysql/0004_execution_state.sql +3 -0
  17. package/dist/migrations/mysql/0005_durable_entities.sql +13 -0
  18. package/dist/migrations/mysql/0006_ephemeral_presence.sql +12 -0
  19. package/dist/migrations/mysql/0007_topic_subscriptions.sql +1 -0
  20. package/dist/migrations/mysql/0008_child_fan_out.sql +26 -0
  21. package/dist/migrations/mysql/0009_workflow_definitions.sql +3 -0
  22. package/dist/migrations/mysql/0010_workflow_runtime.sql +3 -0
  23. package/dist/migrations/pg/20260712120000_durable_inbox/migration.sql +9 -0
  24. package/dist/migrations/pg/20260712140000_execution_state/migration.sql +5 -0
  25. package/dist/migrations/pg/20260712150000_durable_entities/migration.sql +15 -0
  26. package/dist/migrations/pg/20260712160000_ephemeral_presence/migration.sql +13 -0
  27. package/dist/migrations/pg/20260712170000_topic_subscriptions/migration.sql +3 -0
  28. package/dist/migrations/pg/20260712180000_child_fan_out/migration.sql +27 -0
  29. package/dist/migrations/pg/20260712190000_workflow_definitions/migration.sql +3 -0
  30. package/dist/migrations/pg/20260712200000_workflow_runtime/migration.sql +2 -0
  31. package/dist/migrations/sqlite/0003_durable_inbox.sql +9 -0
  32. package/dist/migrations/sqlite/0004_execution_state.sql +3 -0
  33. package/dist/migrations/sqlite/0005_durable_entities.sql +15 -0
  34. package/dist/migrations/sqlite/0006_ephemeral_presence.sql +12 -0
  35. package/dist/migrations/sqlite/0007_topic_subscriptions.sql +3 -0
  36. package/dist/migrations/sqlite/0008_child_fan_out.sql +27 -0
  37. package/dist/migrations/sqlite/0009_workflow_definitions.sql +3 -0
  38. package/dist/migrations/sqlite/0010_workflow_runtime.sql +3 -0
  39. package/dist/sqlite.js +737 -0
  40. package/dist/types/relay/adapter-outbox.d.ts +3 -3
  41. package/dist/types/relay/client.d.ts +335 -25
  42. package/dist/types/relay/command.d.ts +41 -0
  43. package/dist/types/relay/database.d.ts +1 -0
  44. package/dist/types/relay/index.d.ts +3 -2
  45. package/dist/types/relay/operation.d.ts +1082 -7
  46. package/dist/types/relay/sqlite-migrations.d.ts +54 -0
  47. package/dist/types/relay/sqlite-runtime.d.ts +10 -0
  48. package/dist/types/relay/sqlite.d.ts +29 -0
  49. package/dist/types/runtime/address/address-book-service.d.ts +4 -4
  50. package/dist/types/runtime/address/address-resolution-service.d.ts +1 -1
  51. package/dist/types/runtime/agent/agent-loop-service.d.ts +2 -2
  52. package/dist/types/runtime/agent/agent-registry-service.d.ts +1 -1
  53. package/dist/types/runtime/agent/relay-compaction.d.ts +1 -1
  54. package/dist/types/runtime/agent/relay-permissions.d.ts +1 -1
  55. package/dist/types/runtime/agent/relay-steering.d.ts +1 -1
  56. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +30 -0
  57. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +34 -0
  58. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +25 -0
  59. package/dist/types/runtime/child/child-run-service.d.ts +1 -1
  60. package/dist/types/runtime/child/parent-notifier-service.d.ts +1 -1
  61. package/dist/types/runtime/cluster/execution-entity.d.ts +5 -3
  62. package/dist/types/runtime/entity/entity-instance-service.d.ts +67 -0
  63. package/dist/types/runtime/entity/entity-registry-service.d.ts +35 -0
  64. package/dist/types/runtime/envelope/envelope-service.d.ts +7 -3
  65. package/dist/types/runtime/execution/active-execution-registry.d.ts +12 -0
  66. package/dist/types/runtime/execution/event-log-service.d.ts +1 -1
  67. package/dist/types/runtime/execution/execution-service.d.ts +2 -1
  68. package/dist/types/runtime/execution/execution-watch-service.d.ts +32 -0
  69. package/dist/types/runtime/execution/session-stream-service.d.ts +33 -0
  70. package/dist/types/runtime/inbox/inbox-service.d.ts +76 -0
  71. package/dist/types/runtime/inbox/send-message-tool.d.ts +27 -0
  72. package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +34 -0
  73. package/dist/types/runtime/index.d.ts +18 -0
  74. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  75. package/dist/types/runtime/presence/presence-service.d.ts +30 -0
  76. package/dist/types/runtime/presence/presence-tool.d.ts +20 -0
  77. package/dist/types/runtime/runner/runner-runtime-service.d.ts +18 -18
  78. package/dist/types/runtime/schedule/scheduler-service.d.ts +1 -1
  79. package/dist/types/runtime/session/session-store-service.d.ts +1 -1
  80. package/dist/types/runtime/skill/skill-registry-service.d.ts +1 -1
  81. package/dist/types/runtime/state/execution-state-service.d.ts +57 -0
  82. package/dist/types/runtime/state/state-tools.d.ts +5 -0
  83. package/dist/types/runtime/tool/tool-runtime-service.d.ts +1 -1
  84. package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +24 -0
  85. package/dist/types/runtime/topic/topic-service.d.ts +50 -0
  86. package/dist/types/runtime/wait/wait-service.d.ts +2 -1
  87. package/dist/types/runtime/wait/wait-signal.d.ts +1 -1
  88. package/dist/types/runtime/workflow/definition-runtime.d.ts +78 -0
  89. package/dist/types/runtime/workflow/execution-workflow.d.ts +7 -7
  90. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +1 -1
  91. package/dist/types/schema/address-schema.d.ts +6 -6
  92. package/dist/types/schema/child-orchestration-schema.d.ts +393 -0
  93. package/dist/types/schema/entity-schema.d.ts +40 -0
  94. package/dist/types/schema/envelope-schema.d.ts +1 -0
  95. package/dist/types/schema/execution-schema.d.ts +2 -2
  96. package/dist/types/schema/ids-schema.d.ts +20 -0
  97. package/dist/types/schema/inbox-schema.d.ts +81 -0
  98. package/dist/types/schema/index.d.ts +7 -0
  99. package/dist/types/schema/presence-schema.d.ts +28 -0
  100. package/dist/types/schema/state-schema.d.ts +35 -0
  101. package/dist/types/schema/wait-schema.d.ts +98 -0
  102. package/dist/types/schema/workflow-schema.d.ts +2062 -0
  103. package/dist/types/store-sql/address/address-book-repository.d.ts +1 -1
  104. package/dist/types/store-sql/child/child-fan-out-repository.d.ts +53 -0
  105. package/dist/types/store-sql/database/database-service.d.ts +4 -18
  106. package/dist/types/store-sql/database/notification-bus.d.ts +2 -0
  107. package/dist/types/store-sql/database/sql-dialect.d.ts +13 -0
  108. package/dist/types/store-sql/entity/entity-repository.d.ts +36 -0
  109. package/dist/types/store-sql/envelope/envelope-repository.d.ts +1 -0
  110. package/dist/types/store-sql/execution/execution-event-repository.d.ts +2 -1
  111. package/dist/types/store-sql/execution/execution-repository.d.ts +12 -2
  112. package/dist/types/store-sql/inbox/inbox-repository.d.ts +56 -0
  113. package/dist/types/store-sql/index.d.ts +8 -0
  114. package/dist/types/store-sql/portable.d.ts +29 -0
  115. package/dist/types/store-sql/presence/presence-repository.d.ts +51 -0
  116. package/dist/types/store-sql/schema/relay-schema.d.ts +3064 -587
  117. package/dist/types/store-sql/state/execution-state-repository.d.ts +80 -0
  118. package/dist/types/store-sql/tenant/tenant-id.d.ts +0 -2
  119. package/dist/types/store-sql/topic/topic-repository.d.ts +44 -0
  120. package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +29 -0
  121. package/package.json +26 -4
  122. package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +0 -1971
  123. package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +0 -2372
  124. package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +0 -2442
  125. package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +0 -2495
  126. package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +0 -2821
  127. package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +0 -2821
  128. package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +0 -2954
  129. package/dist/migrations/20260705012626_common_stryfe/snapshot.json +0 -3378
  130. package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +0 -3485
  131. package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +0 -3753
  132. package/dist/migrations/20260705030344_short_patriot/snapshot.json +0 -3873
  133. package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +0 -4193
  134. package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +0 -4844
  135. package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +0 -4883
  136. package/dist/migrations/20260709030349_agent_id_rename/snapshot.json +0 -4883
  137. package/dist/migrations/20260709214238_faithful_black_widow/snapshot.json +0 -5426
  138. package/dist/migrations/20260709220016_fearless_aaron_stack/snapshot.json +0 -5426
  139. package/dist/migrations/pg/20260701002839_sour_cerebro/snapshot.json +0 -1971
  140. package/dist/migrations/pg/20260701041134_acoustic_hulk/snapshot.json +0 -2372
  141. package/dist/migrations/pg/20260701160543_condemned_stryfe/snapshot.json +0 -2442
  142. package/dist/migrations/pg/20260701220315_heavy_gorgon/snapshot.json +0 -2495
  143. package/dist/migrations/pg/20260701225444_polite_lord_hawal/snapshot.json +0 -2821
  144. package/dist/migrations/pg/20260702030128_flaky_misty_knight/snapshot.json +0 -2821
  145. package/dist/migrations/pg/20260705003847_nervous_banshee/snapshot.json +0 -2954
  146. package/dist/migrations/pg/20260705012626_common_stryfe/snapshot.json +0 -3378
  147. package/dist/migrations/pg/20260705015420_sweet_captain_marvel/snapshot.json +0 -3485
  148. package/dist/migrations/pg/20260705023041_chunky_scalphunter/snapshot.json +0 -3753
  149. package/dist/migrations/pg/20260705030344_short_patriot/snapshot.json +0 -3873
  150. package/dist/migrations/pg/20260705045546_heavy_ben_grimm/snapshot.json +0 -4193
  151. package/dist/migrations/pg/20260706185931_regular_shadow_king/snapshot.json +0 -4844
  152. package/dist/migrations/pg/20260706233300_equal_cyclops/snapshot.json +0 -4883
  153. package/dist/migrations/pg/20260709030349_agent_id_rename/snapshot.json +0 -4883
  154. package/dist/migrations/pg/20260709214238_faithful_black_widow/snapshot.json +0 -5426
  155. package/dist/migrations/pg/20260709220016_fearless_aaron_stack/snapshot.json +0 -5426
@@ -153,6 +153,119 @@ export declare const StartExecutionResult: Schema.Struct<{
153
153
  }>;
154
154
  export interface StartExecutionResult extends Schema.Schema.Type<typeof StartExecutionResult> {
155
155
  }
156
+ export declare const GetOrCreateEntityInput: Schema.Struct<{
157
+ readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
158
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
159
+ };
160
+ readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
161
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
162
+ };
163
+ readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
164
+ readonly type: Schema.Literal<"text">;
165
+ readonly text: Schema.String;
166
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
167
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
168
+ }>, Schema.Struct<{
169
+ readonly type: Schema.Literal<"structured">;
170
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
171
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
172
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
173
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
174
+ }>, Schema.Struct<{
175
+ readonly type: Schema.Literal<"blob-reference">;
176
+ readonly uri: Schema.String;
177
+ readonly media_type: Schema.String;
178
+ readonly filename: Schema.optionalKey<Schema.String>;
179
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
180
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
181
+ }>, Schema.Struct<{
182
+ readonly type: Schema.Literal<"artifact-reference">;
183
+ readonly artifact_id: Schema.String;
184
+ readonly media_type: Schema.optionalKey<Schema.String>;
185
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
186
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
187
+ }>, Schema.Struct<{
188
+ readonly type: Schema.Literal<"tool-call">;
189
+ readonly call: Schema.Struct<{
190
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
191
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
192
+ };
193
+ readonly name: Schema.String;
194
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
195
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
196
+ }>;
197
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
198
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
199
+ }>, Schema.Struct<{
200
+ readonly type: Schema.Literal<"tool-result">;
201
+ readonly result: Schema.Struct<{
202
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
203
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
204
+ };
205
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
206
+ readonly error: Schema.optionalKey<Schema.String>;
207
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
208
+ }>;
209
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
210
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
+ }>]>>>;
212
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
213
+ readonly created_at: Schema.Int;
214
+ }>;
215
+ export interface GetOrCreateEntityInput extends Schema.Schema.Type<typeof GetOrCreateEntityInput> {
216
+ }
217
+ export declare const GetEntityInput: Schema.Struct<{
218
+ readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
219
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
220
+ };
221
+ readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
222
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
223
+ };
224
+ }>;
225
+ export interface GetEntityInput extends Schema.Schema.Type<typeof GetEntityInput> {
226
+ }
227
+ export declare const DestroyEntityInput: Schema.Struct<{
228
+ readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
229
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
230
+ };
231
+ readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
232
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
233
+ };
234
+ readonly reason: Schema.optionalKey<Schema.String>;
235
+ readonly destroyed_at: Schema.Int;
236
+ }>;
237
+ export interface DestroyEntityInput extends Schema.Schema.Type<typeof DestroyEntityInput> {
238
+ }
239
+ export declare const ListEntitiesInput: Schema.Struct<{
240
+ readonly kind: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EntityKindName"> & {
241
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
242
+ }>;
243
+ readonly after_kind: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EntityKindName"> & {
244
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
245
+ }>;
246
+ readonly after_key: Schema.optionalKey<Schema.String>;
247
+ readonly limit: Schema.optionalKey<Schema.Int>;
248
+ }>;
249
+ export interface ListEntitiesInput extends Schema.Schema.Type<typeof ListEntitiesInput> {
250
+ }
251
+ export declare const EntityInstance: Schema.Struct<{
252
+ readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
253
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
254
+ };
255
+ readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
256
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
257
+ };
258
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
259
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
260
+ };
261
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
262
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
263
+ };
264
+ readonly generation: Schema.Int;
265
+ readonly status: Schema.Literals<readonly ["active", "destroyed"]>;
266
+ readonly created_at: Schema.Int;
267
+ readonly destroyed_at: Schema.optionalKey<Schema.Int>;
268
+ }>;
156
269
  export declare const StreamExecutionInput: Schema.Struct<{
157
270
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
158
271
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
@@ -162,8 +275,117 @@ export declare const StreamExecutionInput: Schema.Struct<{
162
275
  }>;
163
276
  export interface StreamExecutionInput extends Schema.Schema.Type<typeof StreamExecutionInput> {
164
277
  }
278
+ export declare const GetEntityStateInput: Schema.Struct<{
279
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
280
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
281
+ };
282
+ readonly key: Schema.String;
283
+ }>;
284
+ export interface GetEntityStateInput extends Schema.Schema.Type<typeof GetEntityStateInput> {
285
+ }
286
+ export declare const PutEntityStateInput: Schema.Struct<{
287
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
288
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
289
+ };
290
+ readonly key: Schema.String;
291
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
292
+ readonly expected_version: Schema.optionalKey<Schema.Int>;
293
+ readonly idempotency_key: Schema.optionalKey<Schema.String>;
294
+ readonly updated_at: Schema.Int;
295
+ }>;
296
+ export interface PutEntityStateInput extends Schema.Schema.Type<typeof PutEntityStateInput> {
297
+ }
298
+ export declare const DeleteEntityStateInput: Schema.Struct<{
299
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
300
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
301
+ };
302
+ readonly key: Schema.String;
303
+ readonly expected_version: Schema.optionalKey<Schema.Int>;
304
+ readonly idempotency_key: Schema.optionalKey<Schema.String>;
305
+ readonly removed_at: Schema.Int;
306
+ }>;
307
+ export interface DeleteEntityStateInput extends Schema.Schema.Type<typeof DeleteEntityStateInput> {
308
+ }
309
+ export declare const ListEntityStateInput: Schema.Struct<{
310
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
311
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
312
+ };
313
+ readonly prefix: Schema.optionalKey<Schema.String>;
314
+ readonly after_key: Schema.optionalKey<Schema.String>;
315
+ readonly limit: Schema.optionalKey<Schema.Int>;
316
+ }>;
317
+ export interface ListEntityStateInput extends Schema.Schema.Type<typeof ListEntityStateInput> {
318
+ }
165
319
  export declare const WaitTerminalState: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
166
320
  export type WaitTerminalState = typeof WaitTerminalState.Type;
321
+ export declare const AwaitWaitInput: Schema.Struct<{
322
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
323
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
324
+ };
325
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
326
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
327
+ };
328
+ }>;
329
+ export interface AwaitWaitInput extends Schema.Schema.Type<typeof AwaitWaitInput> {
330
+ }
331
+ export declare const WaitOutcome: Schema.Struct<{
332
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
333
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
334
+ };
335
+ readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
336
+ readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
337
+ readonly type: Schema.Literal<"text">;
338
+ readonly text: Schema.String;
339
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
340
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
341
+ }>, Schema.Struct<{
342
+ readonly type: Schema.Literal<"structured">;
343
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
344
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
345
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
346
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
347
+ }>, Schema.Struct<{
348
+ readonly type: Schema.Literal<"blob-reference">;
349
+ readonly uri: Schema.String;
350
+ readonly media_type: Schema.String;
351
+ readonly filename: Schema.optionalKey<Schema.String>;
352
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
353
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
354
+ }>, Schema.Struct<{
355
+ readonly type: Schema.Literal<"artifact-reference">;
356
+ readonly artifact_id: Schema.String;
357
+ readonly media_type: Schema.optionalKey<Schema.String>;
358
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
359
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
360
+ }>, Schema.Struct<{
361
+ readonly type: Schema.Literal<"tool-call">;
362
+ readonly call: Schema.Struct<{
363
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
364
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
365
+ };
366
+ readonly name: Schema.String;
367
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
368
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
369
+ }>;
370
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
371
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
372
+ }>, Schema.Struct<{
373
+ readonly type: Schema.Literal<"tool-result">;
374
+ readonly result: Schema.Struct<{
375
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
376
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
377
+ };
378
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
379
+ readonly error: Schema.optionalKey<Schema.String>;
380
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
381
+ }>;
382
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
383
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
384
+ }>]>>>;
385
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
386
+ }>;
387
+ export interface WaitOutcome extends Schema.Schema.Type<typeof WaitOutcome> {
388
+ }
167
389
  export declare const CancelExecutionInput: Schema.Struct<{
168
390
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
169
391
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
@@ -343,6 +565,7 @@ export declare const WaitView: Schema.Struct<{
343
565
  readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
344
566
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
345
567
  }>;
568
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
346
569
  readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
347
570
  readonly correlation_key: Schema.optionalKey<Schema.String>;
348
571
  readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
@@ -352,6 +575,141 @@ export declare const WaitView: Schema.Struct<{
352
575
  }>;
353
576
  export interface WaitView extends Schema.Schema.Type<typeof WaitView> {
354
577
  }
578
+ export declare const FollowStopReason: Schema.Union<readonly [Schema.Struct<{
579
+ readonly _tag: Schema.tag<"terminal">;
580
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
581
+ }>, Schema.Struct<{
582
+ readonly _tag: Schema.tag<"actionable_wait">;
583
+ readonly wait: Schema.Struct<{
584
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
585
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
586
+ };
587
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
588
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
589
+ };
590
+ readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
591
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
592
+ }>;
593
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
594
+ readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
595
+ readonly correlation_key: Schema.optionalKey<Schema.String>;
596
+ readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
597
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
598
+ readonly created_at: Schema.Int;
599
+ readonly resolved_at: Schema.optionalKey<Schema.Int>;
600
+ }>;
601
+ }>]>;
602
+ export type FollowStopReason = typeof FollowStopReason.Type;
603
+ export declare const FollowExecutionItem: Schema.Union<readonly [Schema.Struct<{
604
+ readonly _tag: Schema.tag<"event">;
605
+ readonly event: Schema.Struct<{
606
+ readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
607
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
608
+ };
609
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
610
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
611
+ };
612
+ readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
613
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
614
+ }>;
615
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
616
+ readonly sequence: Schema.Int;
617
+ readonly cursor: Schema.String;
618
+ readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
619
+ readonly type: Schema.Literal<"text">;
620
+ readonly text: Schema.String;
621
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
622
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
623
+ }>, Schema.Struct<{
624
+ readonly type: Schema.Literal<"structured">;
625
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
626
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
627
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
628
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
629
+ }>, Schema.Struct<{
630
+ readonly type: Schema.Literal<"blob-reference">;
631
+ readonly uri: Schema.String;
632
+ readonly media_type: Schema.String;
633
+ readonly filename: Schema.optionalKey<Schema.String>;
634
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
635
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
636
+ }>, Schema.Struct<{
637
+ readonly type: Schema.Literal<"artifact-reference">;
638
+ readonly artifact_id: Schema.String;
639
+ readonly media_type: Schema.optionalKey<Schema.String>;
640
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
641
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
642
+ }>, Schema.Struct<{
643
+ readonly type: Schema.Literal<"tool-call">;
644
+ readonly call: Schema.Struct<{
645
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
646
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
647
+ };
648
+ readonly name: Schema.String;
649
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
650
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
651
+ }>;
652
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
653
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
654
+ }>, Schema.Struct<{
655
+ readonly type: Schema.Literal<"tool-result">;
656
+ readonly result: Schema.Struct<{
657
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
658
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
659
+ };
660
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
661
+ readonly error: Schema.optionalKey<Schema.String>;
662
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
663
+ }>;
664
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
665
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
666
+ }>]>>>;
667
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
668
+ readonly created_at: Schema.Int;
669
+ }>;
670
+ }>, Schema.Struct<{
671
+ readonly _tag: Schema.tag<"reconnecting">;
672
+ readonly message: Schema.String;
673
+ readonly attempt: Schema.Int;
674
+ }>, Schema.Struct<{
675
+ readonly _tag: Schema.tag<"stopped">;
676
+ readonly reason: Schema.Union<readonly [Schema.Struct<{
677
+ readonly _tag: Schema.tag<"terminal">;
678
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
679
+ }>, Schema.Struct<{
680
+ readonly _tag: Schema.tag<"actionable_wait">;
681
+ readonly wait: Schema.Struct<{
682
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
683
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
684
+ };
685
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
686
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
687
+ };
688
+ readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
689
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
690
+ }>;
691
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
692
+ readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
693
+ readonly correlation_key: Schema.optionalKey<Schema.String>;
694
+ readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
695
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
696
+ readonly created_at: Schema.Int;
697
+ readonly resolved_at: Schema.optionalKey<Schema.Int>;
698
+ }>;
699
+ }>]>;
700
+ readonly cursor: Schema.NullOr<Schema.String>;
701
+ }>]>;
702
+ export type FollowExecutionItem = typeof FollowExecutionItem.Type;
703
+ export declare const FollowExecutionInput: Schema.Struct<{
704
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
705
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
706
+ };
707
+ readonly after_cursor: Schema.optionalKey<Schema.String>;
708
+ readonly stop_on_wait_modes: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["reply", "event", "until", "child"]>>>;
709
+ readonly max_reconnects: Schema.optionalKey<Schema.Int>;
710
+ }>;
711
+ export interface FollowExecutionInput extends Schema.Schema.Type<typeof FollowExecutionInput> {
712
+ }
355
713
  export declare const PendingToolApproval: Schema.Struct<{
356
714
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
357
715
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
@@ -769,13 +1127,433 @@ export declare const SpawnChildRunInput: Schema.Struct<{
769
1127
  readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
770
1128
  readonly error: Schema.optionalKey<Schema.String>;
771
1129
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
772
- }>;
773
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1130
+ }>;
1131
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1132
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1133
+ }>]>>>;
1134
+ readonly wait: Schema.optionalKey<Schema.Boolean>;
1135
+ }>;
1136
+ export interface SpawnChildRunInput extends Schema.Schema.Type<typeof SpawnChildRunInput> {
1137
+ }
1138
+ export declare const CreateChildFanOutInput: Schema.Struct<{
1139
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
1140
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
1141
+ };
1142
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
1143
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
1144
+ };
1145
+ readonly children: Schema.$Array<Schema.Struct<{
1146
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1147
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1148
+ };
1149
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1150
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1151
+ };
1152
+ readonly override: Schema.optionalKey<Schema.Struct<{
1153
+ readonly instructions: Schema.optionalKey<Schema.String>;
1154
+ readonly model: Schema.optionalKey<Schema.Struct<{
1155
+ readonly provider: Schema.String;
1156
+ readonly model: Schema.String;
1157
+ readonly registration_key: Schema.optionalKey<Schema.String>;
1158
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1159
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1160
+ }>>;
1161
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
1162
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
1163
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
1164
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
1165
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
1166
+ }>>;
1167
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
1168
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1169
+ }>>;
1170
+ readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1171
+ readonly type: Schema.Literal<"text">;
1172
+ readonly text: Schema.String;
1173
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1174
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1175
+ }>, Schema.Struct<{
1176
+ readonly type: Schema.Literal<"structured">;
1177
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1178
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
1179
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1180
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1181
+ }>, Schema.Struct<{
1182
+ readonly type: Schema.Literal<"blob-reference">;
1183
+ readonly uri: Schema.String;
1184
+ readonly media_type: Schema.String;
1185
+ readonly filename: Schema.optionalKey<Schema.String>;
1186
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1187
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1188
+ }>, Schema.Struct<{
1189
+ readonly type: Schema.Literal<"artifact-reference">;
1190
+ readonly artifact_id: Schema.String;
1191
+ readonly media_type: Schema.optionalKey<Schema.String>;
1192
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1193
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1194
+ }>, Schema.Struct<{
1195
+ readonly type: Schema.Literal<"tool-call">;
1196
+ readonly call: Schema.Struct<{
1197
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1198
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1199
+ };
1200
+ readonly name: Schema.String;
1201
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1202
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1203
+ }>;
1204
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1205
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1206
+ }>, Schema.Struct<{
1207
+ readonly type: Schema.Literal<"tool-result">;
1208
+ readonly result: Schema.Struct<{
1209
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1210
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1211
+ };
1212
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1213
+ readonly error: Schema.optionalKey<Schema.String>;
1214
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1215
+ }>;
1216
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1217
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1218
+ }>]>>>;
1219
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1220
+ }>>;
1221
+ readonly max_concurrency: Schema.Int;
1222
+ readonly join: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1223
+ readonly count: Schema.Int;
1224
+ }>, Schema.TaggedStruct<"best-effort", {}>]>;
1225
+ readonly created_at: Schema.Int;
1226
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1227
+ }>;
1228
+ export interface CreateChildFanOutInput extends Schema.Schema.Type<typeof CreateChildFanOutInput> {
1229
+ }
1230
+ export declare const CancelChildFanOutInput: Schema.Struct<{
1231
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
1232
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
1233
+ };
1234
+ readonly cancelled_at: Schema.Int;
1235
+ readonly reason: Schema.optionalKey<Schema.String>;
1236
+ }>;
1237
+ export interface CancelChildFanOutInput extends Schema.Schema.Type<typeof CancelChildFanOutInput> {
1238
+ }
1239
+ export declare const CancelChildFanOutResult: Schema.Struct<{
1240
+ readonly fan_out: Schema.Struct<{
1241
+ readonly state: Schema.Literals<readonly ["joining", "satisfied", "failed", "cancelled"]>;
1242
+ readonly members: Schema.$Array<Schema.Struct<{
1243
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1244
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1245
+ };
1246
+ readonly ordinal: Schema.Int;
1247
+ readonly state: Schema.Literals<readonly ["queued", "running", "completed", "failed", "cancelled"]>;
1248
+ readonly output: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1249
+ readonly type: Schema.Literal<"text">;
1250
+ readonly text: Schema.String;
1251
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1252
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1253
+ }>, Schema.Struct<{
1254
+ readonly type: Schema.Literal<"structured">;
1255
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1256
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
1257
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1258
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1259
+ }>, Schema.Struct<{
1260
+ readonly type: Schema.Literal<"blob-reference">;
1261
+ readonly uri: Schema.String;
1262
+ readonly media_type: Schema.String;
1263
+ readonly filename: Schema.optionalKey<Schema.String>;
1264
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1265
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1266
+ }>, Schema.Struct<{
1267
+ readonly type: Schema.Literal<"artifact-reference">;
1268
+ readonly artifact_id: Schema.String;
1269
+ readonly media_type: Schema.optionalKey<Schema.String>;
1270
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1271
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1272
+ }>, Schema.Struct<{
1273
+ readonly type: Schema.Literal<"tool-call">;
1274
+ readonly call: Schema.Struct<{
1275
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1276
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1277
+ };
1278
+ readonly name: Schema.String;
1279
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1280
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1281
+ }>;
1282
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1283
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1284
+ }>, Schema.Struct<{
1285
+ readonly type: Schema.Literal<"tool-result">;
1286
+ readonly result: Schema.Struct<{
1287
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1288
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1289
+ };
1290
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1291
+ readonly error: Schema.optionalKey<Schema.String>;
1292
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1293
+ }>;
1294
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1295
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1296
+ }>]>>>;
1297
+ readonly error: Schema.optionalKey<Schema.String>;
1298
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
1299
+ }>>;
1300
+ readonly satisfied_at: Schema.optionalKey<Schema.Int>;
1301
+ readonly failed_at: Schema.optionalKey<Schema.Int>;
1302
+ readonly cancelled_at: Schema.optionalKey<Schema.Int>;
1303
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
1304
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
1305
+ };
1306
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
1307
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
1308
+ };
1309
+ readonly children: Schema.$Array<Schema.Struct<{
1310
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1311
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1312
+ };
1313
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1314
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1315
+ };
1316
+ readonly override: Schema.optionalKey<Schema.Struct<{
1317
+ readonly instructions: Schema.optionalKey<Schema.String>;
1318
+ readonly model: Schema.optionalKey<Schema.Struct<{
1319
+ readonly provider: Schema.String;
1320
+ readonly model: Schema.String;
1321
+ readonly registration_key: Schema.optionalKey<Schema.String>;
1322
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1323
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1324
+ }>>;
1325
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
1326
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
1327
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
1328
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
1329
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
1330
+ }>>;
1331
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
1332
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1333
+ }>>;
1334
+ readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1335
+ readonly type: Schema.Literal<"text">;
1336
+ readonly text: Schema.String;
1337
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1338
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1339
+ }>, Schema.Struct<{
1340
+ readonly type: Schema.Literal<"structured">;
1341
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1342
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
1343
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1344
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1345
+ }>, Schema.Struct<{
1346
+ readonly type: Schema.Literal<"blob-reference">;
1347
+ readonly uri: Schema.String;
1348
+ readonly media_type: Schema.String;
1349
+ readonly filename: Schema.optionalKey<Schema.String>;
1350
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1351
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1352
+ }>, Schema.Struct<{
1353
+ readonly type: Schema.Literal<"artifact-reference">;
1354
+ readonly artifact_id: Schema.String;
1355
+ readonly media_type: Schema.optionalKey<Schema.String>;
1356
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1357
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1358
+ }>, Schema.Struct<{
1359
+ readonly type: Schema.Literal<"tool-call">;
1360
+ readonly call: Schema.Struct<{
1361
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1362
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1363
+ };
1364
+ readonly name: Schema.String;
1365
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1366
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1367
+ }>;
1368
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1369
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1370
+ }>, Schema.Struct<{
1371
+ readonly type: Schema.Literal<"tool-result">;
1372
+ readonly result: Schema.Struct<{
1373
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1374
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1375
+ };
1376
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1377
+ readonly error: Schema.optionalKey<Schema.String>;
1378
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1379
+ }>;
1380
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1381
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1382
+ }>]>>>;
1383
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1384
+ }>>;
1385
+ readonly max_concurrency: Schema.Int;
1386
+ readonly join: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1387
+ readonly count: Schema.Int;
1388
+ }>, Schema.TaggedStruct<"best-effort", {}>]>;
1389
+ readonly created_at: Schema.Int;
1390
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1391
+ }>;
1392
+ }>;
1393
+ export interface CancelChildFanOutResult extends Schema.Schema.Type<typeof CancelChildFanOutResult> {
1394
+ }
1395
+ export declare const InspectChildFanOutInput: Schema.Struct<{
1396
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
1397
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
1398
+ };
1399
+ }>;
1400
+ export interface InspectChildFanOutInput extends Schema.Schema.Type<typeof InspectChildFanOutInput> {
1401
+ }
1402
+ export declare const InspectChildFanOutResult: Schema.Struct<{
1403
+ readonly fan_out: Schema.NullOr<Schema.Struct<{
1404
+ readonly state: Schema.Literals<readonly ["joining", "satisfied", "failed", "cancelled"]>;
1405
+ readonly members: Schema.$Array<Schema.Struct<{
1406
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1407
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1408
+ };
1409
+ readonly ordinal: Schema.Int;
1410
+ readonly state: Schema.Literals<readonly ["queued", "running", "completed", "failed", "cancelled"]>;
1411
+ readonly output: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1412
+ readonly type: Schema.Literal<"text">;
1413
+ readonly text: Schema.String;
1414
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1415
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1416
+ }>, Schema.Struct<{
1417
+ readonly type: Schema.Literal<"structured">;
1418
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1419
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
1420
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1421
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1422
+ }>, Schema.Struct<{
1423
+ readonly type: Schema.Literal<"blob-reference">;
1424
+ readonly uri: Schema.String;
1425
+ readonly media_type: Schema.String;
1426
+ readonly filename: Schema.optionalKey<Schema.String>;
1427
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1428
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1429
+ }>, Schema.Struct<{
1430
+ readonly type: Schema.Literal<"artifact-reference">;
1431
+ readonly artifact_id: Schema.String;
1432
+ readonly media_type: Schema.optionalKey<Schema.String>;
1433
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1434
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1435
+ }>, Schema.Struct<{
1436
+ readonly type: Schema.Literal<"tool-call">;
1437
+ readonly call: Schema.Struct<{
1438
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1439
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1440
+ };
1441
+ readonly name: Schema.String;
1442
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1443
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1444
+ }>;
1445
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1446
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1447
+ }>, Schema.Struct<{
1448
+ readonly type: Schema.Literal<"tool-result">;
1449
+ readonly result: Schema.Struct<{
1450
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1451
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1452
+ };
1453
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1454
+ readonly error: Schema.optionalKey<Schema.String>;
1455
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1456
+ }>;
1457
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1458
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1459
+ }>]>>>;
1460
+ readonly error: Schema.optionalKey<Schema.String>;
1461
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
1462
+ }>>;
1463
+ readonly satisfied_at: Schema.optionalKey<Schema.Int>;
1464
+ readonly failed_at: Schema.optionalKey<Schema.Int>;
1465
+ readonly cancelled_at: Schema.optionalKey<Schema.Int>;
1466
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
1467
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
1468
+ };
1469
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
1470
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
1471
+ };
1472
+ readonly children: Schema.$Array<Schema.Struct<{
1473
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1474
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1475
+ };
1476
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1477
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1478
+ };
1479
+ readonly override: Schema.optionalKey<Schema.Struct<{
1480
+ readonly instructions: Schema.optionalKey<Schema.String>;
1481
+ readonly model: Schema.optionalKey<Schema.Struct<{
1482
+ readonly provider: Schema.String;
1483
+ readonly model: Schema.String;
1484
+ readonly registration_key: Schema.optionalKey<Schema.String>;
1485
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1486
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1487
+ }>>;
1488
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
1489
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
1490
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
1491
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
1492
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
1493
+ }>>;
1494
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
1495
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1496
+ }>>;
1497
+ readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1498
+ readonly type: Schema.Literal<"text">;
1499
+ readonly text: Schema.String;
1500
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1501
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1502
+ }>, Schema.Struct<{
1503
+ readonly type: Schema.Literal<"structured">;
1504
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1505
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
1506
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1507
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1508
+ }>, Schema.Struct<{
1509
+ readonly type: Schema.Literal<"blob-reference">;
1510
+ readonly uri: Schema.String;
1511
+ readonly media_type: Schema.String;
1512
+ readonly filename: Schema.optionalKey<Schema.String>;
1513
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1514
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1515
+ }>, Schema.Struct<{
1516
+ readonly type: Schema.Literal<"artifact-reference">;
1517
+ readonly artifact_id: Schema.String;
1518
+ readonly media_type: Schema.optionalKey<Schema.String>;
1519
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1520
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1521
+ }>, Schema.Struct<{
1522
+ readonly type: Schema.Literal<"tool-call">;
1523
+ readonly call: Schema.Struct<{
1524
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1525
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1526
+ };
1527
+ readonly name: Schema.String;
1528
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1529
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1530
+ }>;
1531
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1532
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1533
+ }>, Schema.Struct<{
1534
+ readonly type: Schema.Literal<"tool-result">;
1535
+ readonly result: Schema.Struct<{
1536
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1537
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1538
+ };
1539
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1540
+ readonly error: Schema.optionalKey<Schema.String>;
1541
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1542
+ }>;
1543
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1544
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1545
+ }>]>>>;
1546
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1547
+ }>>;
1548
+ readonly max_concurrency: Schema.Int;
1549
+ readonly join: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1550
+ readonly count: Schema.Int;
1551
+ }>, Schema.TaggedStruct<"best-effort", {}>]>;
1552
+ readonly created_at: Schema.Int;
774
1553
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
775
- }>]>>>;
776
- readonly wait: Schema.optionalKey<Schema.Boolean>;
1554
+ }>>;
777
1555
  }>;
778
- export interface SpawnChildRunInput extends Schema.Schema.Type<typeof SpawnChildRunInput> {
1556
+ export interface InspectChildFanOutResult extends Schema.Schema.Type<typeof InspectChildFanOutResult> {
779
1557
  }
780
1558
  export declare const ResolveToolApprovalInput: Schema.Struct<{
781
1559
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
@@ -856,6 +1634,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
856
1634
  readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
857
1635
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
858
1636
  }>]>>;
1637
+ readonly idempotency_key: Schema.optionalKey<Schema.String>;
859
1638
  readonly wait: Schema.optionalKey<Schema.Struct<{
860
1639
  readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
861
1640
  readonly timeout: Schema.optionalKey<Schema.String>;
@@ -952,7 +1731,7 @@ export declare const SubmitInboundEnvelopeAccepted: Schema.Struct<{
952
1731
  export interface SubmitInboundEnvelopeAccepted extends Schema.Schema.Type<typeof SubmitInboundEnvelopeAccepted> {
953
1732
  }
954
1733
  export declare const ClaimEnvelopeReadyInput: Schema.Struct<{
955
- readonly route_type: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
1734
+ readonly route_type: Schema.Literals<readonly ["local-agent", "local-execution", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
956
1735
  readonly route_key: Schema.optionalKey<Schema.String>;
957
1736
  readonly worker_id: Schema.String;
958
1737
  readonly now: Schema.Int;
@@ -1328,6 +2107,128 @@ export declare const ListExecutionsInput: Schema.Struct<{
1328
2107
  }>;
1329
2108
  export interface ListExecutionsInput extends Schema.Schema.Type<typeof ListExecutionsInput> {
1330
2109
  }
2110
+ export declare const SubscribeTopicInput: Schema.Struct<{
2111
+ readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2112
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2113
+ };
2114
+ readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2115
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2116
+ };
2117
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2118
+ }>;
2119
+ export interface SubscribeTopicInput extends Schema.Schema.Type<typeof SubscribeTopicInput> {
2120
+ }
2121
+ export declare const TopicSubscription: Schema.Struct<{
2122
+ readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2123
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2124
+ };
2125
+ readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2126
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2127
+ };
2128
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2129
+ readonly created_at: Schema.Int;
2130
+ }>;
2131
+ export interface TopicSubscription extends Schema.Schema.Type<typeof TopicSubscription> {
2132
+ }
2133
+ export declare const PublishTopicInput: Schema.Struct<{
2134
+ readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2135
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2136
+ };
2137
+ readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
2138
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2139
+ };
2140
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2141
+ readonly type: Schema.Literal<"text">;
2142
+ readonly text: Schema.String;
2143
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2144
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2145
+ }>, Schema.Struct<{
2146
+ readonly type: Schema.Literal<"structured">;
2147
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2148
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
2149
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2150
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2151
+ }>, Schema.Struct<{
2152
+ readonly type: Schema.Literal<"blob-reference">;
2153
+ readonly uri: Schema.String;
2154
+ readonly media_type: Schema.String;
2155
+ readonly filename: Schema.optionalKey<Schema.String>;
2156
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2157
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2158
+ }>, Schema.Struct<{
2159
+ readonly type: Schema.Literal<"artifact-reference">;
2160
+ readonly artifact_id: Schema.String;
2161
+ readonly media_type: Schema.optionalKey<Schema.String>;
2162
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2163
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2164
+ }>, Schema.Struct<{
2165
+ readonly type: Schema.Literal<"tool-call">;
2166
+ readonly call: Schema.Struct<{
2167
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2168
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2169
+ };
2170
+ readonly name: Schema.String;
2171
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2172
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2173
+ }>;
2174
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2175
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2176
+ }>, Schema.Struct<{
2177
+ readonly type: Schema.Literal<"tool-result">;
2178
+ readonly result: Schema.Struct<{
2179
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2180
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2181
+ };
2182
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2183
+ readonly error: Schema.optionalKey<Schema.String>;
2184
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2185
+ }>;
2186
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2187
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2188
+ }>]>>;
2189
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2190
+ readonly idempotency_key: Schema.optionalKey<Schema.String>;
2191
+ }>;
2192
+ export interface PublishTopicInput extends Schema.Schema.Type<typeof PublishTopicInput> {
2193
+ }
2194
+ export declare const TopicPublishAccepted: Schema.Struct<{
2195
+ readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
2196
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
2197
+ };
2198
+ readonly subscriber_count: Schema.Int;
2199
+ }>;
2200
+ export interface TopicPublishAccepted extends Schema.Schema.Type<typeof TopicPublishAccepted> {
2201
+ }
2202
+ export declare const UnsubscribeTopicInput: Schema.Struct<{
2203
+ readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2204
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2205
+ };
2206
+ readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2207
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2208
+ };
2209
+ }>;
2210
+ export interface UnsubscribeTopicInput extends Schema.Schema.Type<typeof UnsubscribeTopicInput> {
2211
+ }
2212
+ export declare const ListTopicSubscriptionsInput: Schema.Struct<{
2213
+ readonly topic_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
2214
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2215
+ }>;
2216
+ readonly subscriber_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2217
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2218
+ }>;
2219
+ }>;
2220
+ export interface ListTopicSubscriptionsInput extends Schema.Schema.Type<typeof ListTopicSubscriptionsInput> {
2221
+ }
2222
+ export declare const ListInboxMessagesInput: Schema.Struct<{
2223
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2224
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2225
+ };
2226
+ readonly include_consumed: Schema.optionalKey<Schema.Boolean>;
2227
+ readonly after_sequence: Schema.optionalKey<Schema.Int>;
2228
+ readonly limit: Schema.optionalKey<Schema.Int>;
2229
+ }>;
2230
+ export interface ListInboxMessagesInput extends Schema.Schema.Type<typeof ListInboxMessagesInput> {
2231
+ }
1331
2232
  export declare const ConversationKind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
1332
2233
  export type ConversationKind = typeof ConversationKind.Type;
1333
2234
  export declare const ConversationSummary: Schema.Struct<{
@@ -1351,6 +2252,178 @@ export declare const ConversationSummary: Schema.Struct<{
1351
2252
  }>;
1352
2253
  export interface ConversationSummary extends Schema.Schema.Type<typeof ConversationSummary> {
1353
2254
  }
2255
+ export declare const ExecutionCursor: Schema.Struct<{
2256
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2257
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2258
+ };
2259
+ readonly after_cursor: Schema.optionalKey<Schema.String>;
2260
+ }>;
2261
+ export interface ExecutionCursor extends Schema.Schema.Type<typeof ExecutionCursor> {
2262
+ }
2263
+ declare const EventLogCursorNotFound_base: Schema.Class<EventLogCursorNotFound, Schema.TaggedStruct<"EventLogCursorNotFound", {
2264
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2265
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2266
+ };
2267
+ readonly cursor: Schema.String;
2268
+ }>, import("effect/Cause").YieldableError>;
2269
+ export declare class EventLogCursorNotFound extends EventLogCursorNotFound_base {
2270
+ }
2271
+ export declare const StreamSessionInput: Schema.Struct<{
2272
+ readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
2273
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
2274
+ };
2275
+ readonly resume: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2276
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2277
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2278
+ };
2279
+ readonly after_cursor: Schema.optionalKey<Schema.String>;
2280
+ }>>>;
2281
+ }>;
2282
+ export interface StreamSessionInput extends Schema.Schema.Type<typeof StreamSessionInput> {
2283
+ }
2284
+ export declare const SessionStreamItem: Schema.Union<readonly [Schema.TaggedStruct<"execution_joined", {
2285
+ readonly execution: Schema.Struct<{
2286
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2287
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2288
+ };
2289
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2290
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2291
+ };
2292
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
2293
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
2294
+ }>;
2295
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
2296
+ readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
2297
+ readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
2298
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
2299
+ }>;
2300
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2301
+ readonly created_at: Schema.Int;
2302
+ readonly updated_at: Schema.Int;
2303
+ }>;
2304
+ }>, Schema.TaggedStruct<"execution_event", {
2305
+ readonly event: Schema.Struct<{
2306
+ readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
2307
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
2308
+ };
2309
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2310
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2311
+ };
2312
+ readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2313
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2314
+ }>;
2315
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2316
+ readonly sequence: Schema.Int;
2317
+ readonly cursor: Schema.String;
2318
+ readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2319
+ readonly type: Schema.Literal<"text">;
2320
+ readonly text: Schema.String;
2321
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2322
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2323
+ }>, Schema.Struct<{
2324
+ readonly type: Schema.Literal<"structured">;
2325
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2326
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
2327
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2328
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2329
+ }>, Schema.Struct<{
2330
+ readonly type: Schema.Literal<"blob-reference">;
2331
+ readonly uri: Schema.String;
2332
+ readonly media_type: Schema.String;
2333
+ readonly filename: Schema.optionalKey<Schema.String>;
2334
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2335
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2336
+ }>, Schema.Struct<{
2337
+ readonly type: Schema.Literal<"artifact-reference">;
2338
+ readonly artifact_id: Schema.String;
2339
+ readonly media_type: Schema.optionalKey<Schema.String>;
2340
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2341
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2342
+ }>, Schema.Struct<{
2343
+ readonly type: Schema.Literal<"tool-call">;
2344
+ readonly call: Schema.Struct<{
2345
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2346
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2347
+ };
2348
+ readonly name: Schema.String;
2349
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2350
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2351
+ }>;
2352
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2353
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2354
+ }>, Schema.Struct<{
2355
+ readonly type: Schema.Literal<"tool-result">;
2356
+ readonly result: Schema.Struct<{
2357
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2358
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2359
+ };
2360
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2361
+ readonly error: Schema.optionalKey<Schema.String>;
2362
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2363
+ }>;
2364
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2365
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2366
+ }>]>>>;
2367
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2368
+ readonly created_at: Schema.Int;
2369
+ }>;
2370
+ }>]>;
2371
+ export type SessionStreamItem = typeof SessionStreamItem.Type;
2372
+ export declare const WatchExecutionsInput: Schema.Struct<{
2373
+ readonly root_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
2374
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2375
+ }>;
2376
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
2377
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
2378
+ }>;
2379
+ readonly status: Schema.optionalKey<Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>>;
2380
+ readonly limit: Schema.optionalKey<Schema.Int>;
2381
+ }>;
2382
+ export interface WatchExecutionsInput extends Schema.Schema.Type<typeof WatchExecutionsInput> {
2383
+ }
2384
+ export declare const ExecutionListChange: Schema.Union<readonly [Schema.TaggedStruct<"snapshot", {
2385
+ readonly records: Schema.$Array<Schema.Struct<{
2386
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2387
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2388
+ };
2389
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2390
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2391
+ };
2392
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
2393
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
2394
+ }>;
2395
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
2396
+ readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
2397
+ readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
2398
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
2399
+ }>;
2400
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2401
+ readonly created_at: Schema.Int;
2402
+ readonly updated_at: Schema.Int;
2403
+ }>>;
2404
+ readonly next_cursor: Schema.optionalKey<Schema.String>;
2405
+ }>, Schema.TaggedStruct<"upsert", {
2406
+ readonly record: Schema.Struct<{
2407
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2408
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2409
+ };
2410
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2411
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2412
+ };
2413
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
2414
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
2415
+ }>;
2416
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
2417
+ readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
2418
+ readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
2419
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
2420
+ }>;
2421
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2422
+ readonly created_at: Schema.Int;
2423
+ readonly updated_at: Schema.Int;
2424
+ }>;
2425
+ }>]>;
2426
+ export type ExecutionListChange = typeof ExecutionListChange.Type;
1354
2427
  export declare const ToolCallSummary: Schema.Struct<{
1355
2428
  readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1356
2429
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
@@ -1391,6 +2464,7 @@ export declare const ExecutionInspection: Schema.Struct<{
1391
2464
  readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
1392
2465
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
1393
2466
  }>;
2467
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
1394
2468
  readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
1395
2469
  readonly correlation_key: Schema.optionalKey<Schema.String>;
1396
2470
  readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
@@ -1549,7 +2623,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
1549
2623
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1550
2624
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1551
2625
  }>;
1552
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2626
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
1553
2627
  readonly sequence: Schema.Int;
1554
2628
  readonly cursor: Schema.String;
1555
2629
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -1636,3 +2710,4 @@ export declare const RouteExecutionResult: Schema.Struct<{
1636
2710
  }>;
1637
2711
  export interface RouteExecutionResult extends Schema.Schema.Type<typeof RouteExecutionResult> {
1638
2712
  }
2713
+ export {};