@relayfx/sdk 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/ai.js +2 -2
  2. package/dist/{index-vbf5hcw8.js → index-9tx9fh58.js} +320 -33
  3. package/dist/{index-sms8x6cq.js → index-bke4jyr6.js} +1 -1
  4. package/dist/{index-q0z11q9m.js → index-jy6rpstp.js} +5711 -3835
  5. package/dist/index.js +92 -3
  6. package/dist/migrations/20260712180000_child_fan_out/migration.sql +27 -0
  7. package/dist/migrations/20260712190000_workflow_definitions/migration.sql +3 -0
  8. package/dist/migrations/20260712200000_workflow_runtime/migration.sql +2 -0
  9. package/dist/migrations/mysql/0008_child_fan_out.sql +26 -0
  10. package/dist/migrations/mysql/0009_workflow_definitions.sql +3 -0
  11. package/dist/migrations/mysql/0010_workflow_runtime.sql +3 -0
  12. package/dist/migrations/pg/20260712180000_child_fan_out/migration.sql +27 -0
  13. package/dist/migrations/pg/20260712190000_workflow_definitions/migration.sql +3 -0
  14. package/dist/migrations/pg/20260712200000_workflow_runtime/migration.sql +2 -0
  15. package/dist/migrations/sqlite/0008_child_fan_out.sql +27 -0
  16. package/dist/migrations/sqlite/0009_workflow_definitions.sql +3 -0
  17. package/dist/migrations/sqlite/0010_workflow_runtime.sql +3 -0
  18. package/dist/sqlite.js +60 -11
  19. package/dist/types/relay/adapter-outbox.d.ts +3 -3
  20. package/dist/types/relay/client.d.ts +147 -17
  21. package/dist/types/relay/index.d.ts +2 -2
  22. package/dist/types/relay/operation.d.ts +559 -2
  23. package/dist/types/relay/sqlite-migrations.d.ts +16 -1
  24. package/dist/types/relay/sqlite-runtime.d.ts +8 -3
  25. package/dist/types/relay/sqlite.d.ts +3 -1
  26. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +30 -0
  27. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +34 -0
  28. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +25 -0
  29. package/dist/types/runtime/cluster/execution-entity.d.ts +4 -2
  30. package/dist/types/runtime/execution/active-execution-registry.d.ts +12 -0
  31. package/dist/types/runtime/execution/execution-service.d.ts +1 -0
  32. package/dist/types/runtime/index.d.ts +5 -0
  33. package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
  34. package/dist/types/runtime/workflow/definition-runtime.d.ts +78 -0
  35. package/dist/types/runtime/workflow/execution-workflow.d.ts +5 -5
  36. package/dist/types/schema/child-orchestration-schema.d.ts +393 -0
  37. package/dist/types/schema/execution-schema.d.ts +2 -2
  38. package/dist/types/schema/ids-schema.d.ts +12 -0
  39. package/dist/types/schema/index.d.ts +3 -0
  40. package/dist/types/schema/wait-schema.d.ts +98 -0
  41. package/dist/types/schema/workflow-schema.d.ts +2062 -0
  42. package/dist/types/store-sql/child/child-fan-out-repository.d.ts +53 -0
  43. package/dist/types/store-sql/index.d.ts +2 -0
  44. package/dist/types/store-sql/portable.d.ts +2 -0
  45. package/dist/types/store-sql/schema/relay-schema.d.ts +1266 -1
  46. package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +29 -0
  47. package/package.json +1 -1
@@ -565,6 +565,7 @@ export declare const WaitView: Schema.Struct<{
565
565
  readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
566
566
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
567
567
  }>;
568
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
568
569
  readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
569
570
  readonly correlation_key: Schema.optionalKey<Schema.String>;
570
571
  readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
@@ -574,6 +575,141 @@ export declare const WaitView: Schema.Struct<{
574
575
  }>;
575
576
  export interface WaitView extends Schema.Schema.Type<typeof WaitView> {
576
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
+ }
577
713
  export declare const PendingToolApproval: Schema.Struct<{
578
714
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
579
715
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
@@ -999,6 +1135,426 @@ export declare const SpawnChildRunInput: Schema.Struct<{
999
1135
  }>;
1000
1136
  export interface SpawnChildRunInput extends Schema.Schema.Type<typeof SpawnChildRunInput> {
1001
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;
1553
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1554
+ }>>;
1555
+ }>;
1556
+ export interface InspectChildFanOutResult extends Schema.Schema.Type<typeof InspectChildFanOutResult> {
1557
+ }
1002
1558
  export declare const ResolveToolApprovalInput: Schema.Struct<{
1003
1559
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
1004
1560
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
@@ -1756,7 +2312,7 @@ export declare const SessionStreamItem: Schema.Union<readonly [Schema.TaggedStru
1756
2312
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
1757
2313
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
1758
2314
  }>;
1759
- 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", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
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"]>;
1760
2316
  readonly sequence: Schema.Int;
1761
2317
  readonly cursor: Schema.String;
1762
2318
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -1908,6 +2464,7 @@ export declare const ExecutionInspection: Schema.Struct<{
1908
2464
  readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
1909
2465
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
1910
2466
  }>;
2467
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
1911
2468
  readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
1912
2469
  readonly correlation_key: Schema.optionalKey<Schema.String>;
1913
2470
  readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
@@ -2066,7 +2623,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
2066
2623
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2067
2624
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2068
2625
  }>;
2069
- 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", "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"]>;
2070
2627
  readonly sequence: Schema.Int;
2071
2628
  readonly cursor: Schema.String;
2072
2629
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{