@relayfx/test 0.2.15 → 0.3.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 (58) hide show
  1. package/dist/index.js +1870 -1509
  2. package/dist/types/runtime/address/address-book-service.d.ts +3 -3
  3. package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
  4. package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
  5. package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
  6. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
  7. package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
  8. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
  9. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
  10. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
  11. package/dist/types/runtime/child/child-run-service.d.ts +7 -4
  12. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
  13. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -4
  14. package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
  15. package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
  16. package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
  17. package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
  18. package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
  19. package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
  20. package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
  21. package/dist/types/runtime/execution/event-log-service.d.ts +28 -3
  22. package/dist/types/runtime/execution/execution-service.d.ts +1 -1
  23. package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
  24. package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
  25. package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
  26. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  27. package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
  28. package/dist/types/runtime/model/language-model-service.d.ts +19 -6
  29. package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
  30. package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
  31. package/dist/types/runtime/presence/presence-service.d.ts +1 -1
  32. package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
  33. package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
  34. package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
  35. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
  36. package/dist/types/runtime/session/session-store-service.d.ts +13 -4
  37. package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
  38. package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
  39. package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
  40. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
  41. package/dist/types/runtime/topic/topic-service.d.ts +1 -1
  42. package/dist/types/runtime/wait/wait-service.d.ts +1 -1
  43. package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
  44. package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
  45. package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
  46. package/dist/types/runtime/workflow/execution-workflow.d.ts +105 -110
  47. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
  48. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
  49. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
  50. package/dist/types/schema/agent-schema.d.ts +246 -246
  51. package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
  52. package/dist/types/schema/execution-schema.d.ts +57 -57
  53. package/dist/types/schema/workflow-schema.d.ts +243 -243
  54. package/dist/types/schema/workspace-schema.d.ts +1 -1
  55. package/dist/types/test/captured-model.d.ts +10 -4
  56. package/dist/types/test/scripted-model.d.ts +16 -6
  57. package/dist/types/test/wait-test-kit.d.ts +4 -4
  58. package/package.json +2 -2
@@ -4,58 +4,61 @@ export type DefinitionRevision = typeof DefinitionRevision.Type;
4
4
  export declare const DefinitionDigest: Schema.String;
5
5
  export type DefinitionDigest = typeof DefinitionDigest.Type;
6
6
  export declare const SequenceOperation: Schema.Struct<{
7
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
8
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
9
+ };
7
10
  readonly kind: Schema.Literal<"sequence">;
8
11
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
9
12
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
10
13
  }>;
14
+ }>;
15
+ export declare const ChildOperation: Schema.Struct<{
11
16
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
12
17
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
13
18
  };
14
- }>;
15
- export declare const ChildOperation: Schema.Struct<{
16
19
  readonly kind: Schema.Literal<"child">;
17
20
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
18
21
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
19
22
  };
20
23
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
24
+ }>;
25
+ export declare const DispatchableChildOperation: Schema.Struct<{
21
26
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
22
27
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
23
28
  };
24
- }>;
25
- export declare const DispatchableChildOperation: Schema.Struct<{
26
29
  readonly kind: Schema.Literal<"child">;
27
30
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
28
31
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
29
32
  };
30
33
  readonly preset_name: Schema.optionalKey<Schema.String>;
31
34
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
35
+ }>;
36
+ export declare const ToolOperation: Schema.Struct<{
32
37
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
33
38
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
34
39
  };
35
- }>;
36
- export declare const ToolOperation: Schema.Struct<{
37
40
  readonly kind: Schema.Literal<"tool">;
38
41
  readonly tool_name: Schema.String;
39
42
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
43
+ }>;
44
+ export declare const ApprovalOperation: Schema.Struct<{
40
45
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
41
46
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
42
47
  };
43
- }>;
44
- export declare const ApprovalOperation: Schema.Struct<{
45
48
  readonly kind: Schema.Literal<"approval">;
46
49
  readonly prompt: Schema.String;
50
+ }>;
51
+ export declare const TimerOperation: Schema.Struct<{
47
52
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
48
53
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
49
54
  };
50
- }>;
51
- export declare const TimerOperation: Schema.Struct<{
52
55
  readonly kind: Schema.Literal<"timer">;
53
56
  readonly duration_ms: Schema.Int;
57
+ }>;
58
+ export declare const BranchOperation: Schema.Struct<{
54
59
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
55
60
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
56
61
  };
57
- }>;
58
- export declare const BranchOperation: Schema.Struct<{
59
62
  readonly kind: Schema.Literal<"branch">;
60
63
  readonly condition: Schema.String;
61
64
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -64,40 +67,40 @@ export declare const BranchOperation: Schema.Struct<{
64
67
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
65
68
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
66
69
  };
70
+ }>;
71
+ export declare const ParallelOperation: Schema.Struct<{
67
72
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
68
73
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
69
74
  };
70
- }>;
71
- export declare const ParallelOperation: Schema.Struct<{
72
75
  readonly kind: Schema.Literal<"parallel">;
73
76
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
74
77
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
75
78
  }>;
79
+ }>;
80
+ export declare const JoinOperation: Schema.Struct<{
76
81
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
77
82
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
78
83
  };
79
- }>;
80
- export declare const JoinOperation: Schema.Struct<{
81
84
  readonly kind: Schema.Literal<"join">;
82
85
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
83
86
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
84
87
  }>;
88
+ }>;
89
+ export declare const ParallelOperationV2: Schema.Struct<{
85
90
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
86
91
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
87
92
  };
88
- }>;
89
- export declare const ParallelOperationV2: Schema.Struct<{
90
93
  readonly kind: Schema.Literal<"parallel">;
91
94
  readonly fan_out_key: Schema.String;
92
95
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
93
96
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
94
97
  }>;
95
98
  readonly max_concurrency: Schema.Int;
99
+ }>;
100
+ export declare const JoinOperationV2: Schema.Struct<{
96
101
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
97
102
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
98
103
  };
99
- }>;
100
- export declare const JoinOperationV2: Schema.Struct<{
101
104
  readonly kind: Schema.Literal<"join">;
102
105
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
103
106
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -108,32 +111,32 @@ export declare const JoinOperationV2: Schema.Struct<{
108
111
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
109
112
  readonly count: Schema.Int;
110
113
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
114
+ }>;
115
+ export declare const RetryOperation: Schema.Struct<{
111
116
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
112
117
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
113
118
  };
114
- }>;
115
- export declare const RetryOperation: Schema.Struct<{
116
119
  readonly kind: Schema.Literal<"retry">;
117
120
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
118
121
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
119
122
  };
120
123
  readonly max_attempts: Schema.Int;
124
+ }>;
125
+ export declare const BudgetOperation: Schema.Struct<{
121
126
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
122
127
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
123
128
  };
124
- }>;
125
- export declare const BudgetOperation: Schema.Struct<{
126
129
  readonly kind: Schema.Literal<"budget">;
127
130
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
128
131
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
129
132
  };
130
133
  readonly limit: Schema.Int;
131
134
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
135
+ }>;
136
+ export declare const CancellationOperation: Schema.Struct<{
132
137
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
133
138
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
134
139
  };
135
- }>;
136
- export declare const CancellationOperation: Schema.Struct<{
137
140
  readonly kind: Schema.Literal<"cancellation">;
138
141
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
139
142
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -141,11 +144,11 @@ export declare const CancellationOperation: Schema.Struct<{
141
144
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
142
145
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
143
146
  }>;
147
+ }>;
148
+ export declare const CompensationOperation: Schema.Struct<{
144
149
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
145
150
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
146
151
  };
147
- }>;
148
- export declare const CompensationOperation: Schema.Struct<{
149
152
  readonly kind: Schema.Literal<"compensation">;
150
153
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
151
154
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -153,57 +156,57 @@ export declare const CompensationOperation: Schema.Struct<{
153
156
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
154
157
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
155
158
  };
159
+ }>;
160
+ export declare const StructuredCompletionOperation: Schema.Struct<{
156
161
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
157
162
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
158
163
  };
159
- }>;
160
- export declare const StructuredCompletionOperation: Schema.Struct<{
161
164
  readonly kind: Schema.Literal<"structured-completion">;
162
165
  readonly schema_ref: Schema.String;
163
166
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
164
167
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
165
168
  };
169
+ }>;
170
+ export declare const Operation: Schema.Union<readonly [Schema.Struct<{
166
171
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
167
172
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
168
173
  };
169
- }>;
170
- export declare const Operation: Schema.Union<readonly [Schema.Struct<{
171
174
  readonly kind: Schema.Literal<"sequence">;
172
175
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
173
176
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
174
177
  }>;
178
+ }>, Schema.Struct<{
175
179
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
176
180
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
177
181
  };
178
- }>, Schema.Struct<{
179
182
  readonly kind: Schema.Literal<"child">;
180
183
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
181
184
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
182
185
  };
183
186
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
187
+ }>, Schema.Struct<{
184
188
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
185
189
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
186
190
  };
187
- }>, Schema.Struct<{
188
191
  readonly kind: Schema.Literal<"tool">;
189
192
  readonly tool_name: Schema.String;
190
193
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
194
+ }>, Schema.Struct<{
191
195
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
192
196
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
193
197
  };
194
- }>, Schema.Struct<{
195
198
  readonly kind: Schema.Literal<"approval">;
196
199
  readonly prompt: Schema.String;
200
+ }>, Schema.Struct<{
197
201
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
198
202
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
199
203
  };
200
- }>, Schema.Struct<{
201
204
  readonly kind: Schema.Literal<"timer">;
202
205
  readonly duration_ms: Schema.Int;
206
+ }>, Schema.Struct<{
203
207
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
204
208
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
205
209
  };
206
- }>, Schema.Struct<{
207
210
  readonly kind: Schema.Literal<"branch">;
208
211
  readonly condition: Schema.String;
209
212
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -212,45 +215,45 @@ export declare const Operation: Schema.Union<readonly [Schema.Struct<{
212
215
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
213
216
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
214
217
  };
218
+ }>, Schema.Struct<{
215
219
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
216
220
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
217
221
  };
218
- }>, Schema.Struct<{
219
222
  readonly kind: Schema.Literal<"parallel">;
220
223
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
221
224
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
222
225
  }>;
226
+ }>, Schema.Struct<{
223
227
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
224
228
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
225
229
  };
226
- }>, Schema.Struct<{
227
230
  readonly kind: Schema.Literal<"join">;
228
231
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
229
232
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
230
233
  }>;
234
+ }>, Schema.Struct<{
231
235
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
232
236
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
233
237
  };
234
- }>, Schema.Struct<{
235
238
  readonly kind: Schema.Literal<"retry">;
236
239
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
237
240
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
238
241
  };
239
242
  readonly max_attempts: Schema.Int;
243
+ }>, Schema.Struct<{
240
244
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
241
245
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
242
246
  };
243
- }>, Schema.Struct<{
244
247
  readonly kind: Schema.Literal<"budget">;
245
248
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
246
249
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
247
250
  };
248
251
  readonly limit: Schema.Int;
249
252
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
253
+ }>, Schema.Struct<{
250
254
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
251
255
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
252
256
  };
253
- }>, Schema.Struct<{
254
257
  readonly kind: Schema.Literal<"cancellation">;
255
258
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
256
259
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -258,10 +261,10 @@ export declare const Operation: Schema.Union<readonly [Schema.Struct<{
258
261
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
259
262
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
260
263
  }>;
264
+ }>, Schema.Struct<{
261
265
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
262
266
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
263
267
  };
264
- }>, Schema.Struct<{
265
268
  readonly kind: Schema.Literal<"compensation">;
266
269
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
267
270
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -269,58 +272,58 @@ export declare const Operation: Schema.Union<readonly [Schema.Struct<{
269
272
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
270
273
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
271
274
  };
275
+ }>, Schema.Struct<{
272
276
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
273
277
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
274
278
  };
275
- }>, Schema.Struct<{
276
279
  readonly kind: Schema.Literal<"structured-completion">;
277
280
  readonly schema_ref: Schema.String;
278
281
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
279
282
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
280
283
  };
281
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
282
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
283
- };
284
284
  }>]>;
285
285
  export type Operation = typeof Operation.Type;
286
286
  export declare const OperationV2: Schema.Union<readonly [Schema.Struct<{
287
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
288
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
289
+ };
287
290
  readonly kind: Schema.Literal<"sequence">;
288
291
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
289
292
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
290
293
  }>;
294
+ }>, Schema.Struct<{
291
295
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
292
296
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
293
297
  };
294
- }>, Schema.Struct<{
295
298
  readonly kind: Schema.Literal<"child">;
296
299
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
297
300
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
298
301
  };
299
302
  readonly preset_name: Schema.optionalKey<Schema.String>;
300
303
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
304
+ }>, Schema.Struct<{
301
305
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
302
306
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
303
307
  };
304
- }>, Schema.Struct<{
305
308
  readonly kind: Schema.Literal<"tool">;
306
309
  readonly tool_name: Schema.String;
307
310
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
311
+ }>, Schema.Struct<{
308
312
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
309
313
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
310
314
  };
311
- }>, Schema.Struct<{
312
315
  readonly kind: Schema.Literal<"approval">;
313
316
  readonly prompt: Schema.String;
317
+ }>, Schema.Struct<{
314
318
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
315
319
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
316
320
  };
317
- }>, Schema.Struct<{
318
321
  readonly kind: Schema.Literal<"timer">;
319
322
  readonly duration_ms: Schema.Int;
323
+ }>, Schema.Struct<{
320
324
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
321
325
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
322
326
  };
323
- }>, Schema.Struct<{
324
327
  readonly kind: Schema.Literal<"branch">;
325
328
  readonly condition: Schema.String;
326
329
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -329,20 +332,20 @@ export declare const OperationV2: Schema.Union<readonly [Schema.Struct<{
329
332
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
330
333
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
331
334
  };
335
+ }>, Schema.Struct<{
332
336
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
333
337
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
334
338
  };
335
- }>, Schema.Struct<{
336
339
  readonly kind: Schema.Literal<"parallel">;
337
340
  readonly fan_out_key: Schema.String;
338
341
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
339
342
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
340
343
  }>;
341
344
  readonly max_concurrency: Schema.Int;
345
+ }>, Schema.Struct<{
342
346
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
343
347
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
344
348
  };
345
- }>, Schema.Struct<{
346
349
  readonly kind: Schema.Literal<"join">;
347
350
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
348
351
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -353,29 +356,29 @@ export declare const OperationV2: Schema.Union<readonly [Schema.Struct<{
353
356
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
354
357
  readonly count: Schema.Int;
355
358
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
359
+ }>, Schema.Struct<{
356
360
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
357
361
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
358
362
  };
359
- }>, Schema.Struct<{
360
363
  readonly kind: Schema.Literal<"retry">;
361
364
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
362
365
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
363
366
  };
364
367
  readonly max_attempts: Schema.Int;
368
+ }>, Schema.Struct<{
365
369
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
366
370
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
367
371
  };
368
- }>, Schema.Struct<{
369
372
  readonly kind: Schema.Literal<"budget">;
370
373
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
371
374
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
372
375
  };
373
376
  readonly limit: Schema.Int;
374
377
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
378
+ }>, Schema.Struct<{
375
379
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
376
380
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
377
381
  };
378
- }>, Schema.Struct<{
379
382
  readonly kind: Schema.Literal<"cancellation">;
380
383
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
381
384
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -383,10 +386,10 @@ export declare const OperationV2: Schema.Union<readonly [Schema.Struct<{
383
386
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
384
387
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
385
388
  }>;
389
+ }>, Schema.Struct<{
386
390
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
387
391
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
388
392
  };
389
- }>, Schema.Struct<{
390
393
  readonly kind: Schema.Literal<"compensation">;
391
394
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
392
395
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -394,18 +397,15 @@ export declare const OperationV2: Schema.Union<readonly [Schema.Struct<{
394
397
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
395
398
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
396
399
  };
400
+ }>, Schema.Struct<{
397
401
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
398
402
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
399
403
  };
400
- }>, Schema.Struct<{
401
404
  readonly kind: Schema.Literal<"structured-completion">;
402
405
  readonly schema_ref: Schema.String;
403
406
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
404
407
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
405
408
  };
406
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
407
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
408
- };
409
409
  }>]>;
410
410
  export type OperationV2 = typeof OperationV2.Type;
411
411
  export declare const DefinitionV1: Schema.Struct<{
@@ -415,42 +415,45 @@ export declare const DefinitionV1: Schema.Struct<{
415
415
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
416
416
  };
417
417
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
418
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
419
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
420
+ };
418
421
  readonly kind: Schema.Literal<"sequence">;
419
422
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
420
423
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
421
424
  }>;
425
+ }>, Schema.Struct<{
422
426
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
423
427
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
424
428
  };
425
- }>, Schema.Struct<{
426
429
  readonly kind: Schema.Literal<"child">;
427
430
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
428
431
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
429
432
  };
430
433
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
434
+ }>, Schema.Struct<{
431
435
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
432
436
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
433
437
  };
434
- }>, Schema.Struct<{
435
438
  readonly kind: Schema.Literal<"tool">;
436
439
  readonly tool_name: Schema.String;
437
440
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
441
+ }>, Schema.Struct<{
438
442
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
439
443
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
440
444
  };
441
- }>, Schema.Struct<{
442
445
  readonly kind: Schema.Literal<"approval">;
443
446
  readonly prompt: Schema.String;
447
+ }>, Schema.Struct<{
444
448
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
445
449
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
446
450
  };
447
- }>, Schema.Struct<{
448
451
  readonly kind: Schema.Literal<"timer">;
449
452
  readonly duration_ms: Schema.Int;
453
+ }>, Schema.Struct<{
450
454
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
451
455
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
452
456
  };
453
- }>, Schema.Struct<{
454
457
  readonly kind: Schema.Literal<"branch">;
455
458
  readonly condition: Schema.String;
456
459
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -459,45 +462,45 @@ export declare const DefinitionV1: Schema.Struct<{
459
462
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
460
463
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
461
464
  };
465
+ }>, Schema.Struct<{
462
466
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
463
467
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
464
468
  };
465
- }>, Schema.Struct<{
466
469
  readonly kind: Schema.Literal<"parallel">;
467
470
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
468
471
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
469
472
  }>;
473
+ }>, Schema.Struct<{
470
474
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
471
475
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
472
476
  };
473
- }>, Schema.Struct<{
474
477
  readonly kind: Schema.Literal<"join">;
475
478
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
476
479
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
477
480
  }>;
481
+ }>, Schema.Struct<{
478
482
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
479
483
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
480
484
  };
481
- }>, Schema.Struct<{
482
485
  readonly kind: Schema.Literal<"retry">;
483
486
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
484
487
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
485
488
  };
486
489
  readonly max_attempts: Schema.Int;
490
+ }>, Schema.Struct<{
487
491
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
488
492
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
489
493
  };
490
- }>, Schema.Struct<{
491
494
  readonly kind: Schema.Literal<"budget">;
492
495
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
493
496
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
494
497
  };
495
498
  readonly limit: Schema.Int;
496
499
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
500
+ }>, Schema.Struct<{
497
501
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
498
502
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
499
503
  };
500
- }>, Schema.Struct<{
501
504
  readonly kind: Schema.Literal<"cancellation">;
502
505
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
503
506
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -505,10 +508,10 @@ export declare const DefinitionV1: Schema.Struct<{
505
508
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
506
509
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
507
510
  }>;
511
+ }>, Schema.Struct<{
508
512
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
509
513
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
510
514
  };
511
- }>, Schema.Struct<{
512
515
  readonly kind: Schema.Literal<"compensation">;
513
516
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
514
517
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -516,18 +519,15 @@ export declare const DefinitionV1: Schema.Struct<{
516
519
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
517
520
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
518
521
  };
522
+ }>, Schema.Struct<{
519
523
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
520
524
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
521
525
  };
522
- }>, Schema.Struct<{
523
526
  readonly kind: Schema.Literal<"structured-completion">;
524
527
  readonly schema_ref: Schema.String;
525
528
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
526
529
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
527
530
  };
528
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
529
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
530
- };
531
531
  }>]>>;
532
532
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
533
533
  }>;
@@ -539,43 +539,46 @@ export declare const DefinitionV2: Schema.Struct<{
539
539
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
540
540
  };
541
541
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
542
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
543
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
544
+ };
542
545
  readonly kind: Schema.Literal<"sequence">;
543
546
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
544
547
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
545
548
  }>;
549
+ }>, Schema.Struct<{
546
550
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
547
551
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
548
552
  };
549
- }>, Schema.Struct<{
550
553
  readonly kind: Schema.Literal<"child">;
551
554
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
552
555
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
553
556
  };
554
557
  readonly preset_name: Schema.optionalKey<Schema.String>;
555
558
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
559
+ }>, Schema.Struct<{
556
560
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
557
561
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
558
562
  };
559
- }>, Schema.Struct<{
560
563
  readonly kind: Schema.Literal<"tool">;
561
564
  readonly tool_name: Schema.String;
562
565
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
566
+ }>, Schema.Struct<{
563
567
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
564
568
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
565
569
  };
566
- }>, Schema.Struct<{
567
570
  readonly kind: Schema.Literal<"approval">;
568
571
  readonly prompt: Schema.String;
572
+ }>, Schema.Struct<{
569
573
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
570
574
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
571
575
  };
572
- }>, Schema.Struct<{
573
576
  readonly kind: Schema.Literal<"timer">;
574
577
  readonly duration_ms: Schema.Int;
578
+ }>, Schema.Struct<{
575
579
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
576
580
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
577
581
  };
578
- }>, Schema.Struct<{
579
582
  readonly kind: Schema.Literal<"branch">;
580
583
  readonly condition: Schema.String;
581
584
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -584,20 +587,20 @@ export declare const DefinitionV2: Schema.Struct<{
584
587
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
585
588
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
586
589
  };
590
+ }>, Schema.Struct<{
587
591
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
588
592
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
589
593
  };
590
- }>, Schema.Struct<{
591
594
  readonly kind: Schema.Literal<"parallel">;
592
595
  readonly fan_out_key: Schema.String;
593
596
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
594
597
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
595
598
  }>;
596
599
  readonly max_concurrency: Schema.Int;
600
+ }>, Schema.Struct<{
597
601
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
598
602
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
599
603
  };
600
- }>, Schema.Struct<{
601
604
  readonly kind: Schema.Literal<"join">;
602
605
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
603
606
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -608,29 +611,29 @@ export declare const DefinitionV2: Schema.Struct<{
608
611
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
609
612
  readonly count: Schema.Int;
610
613
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
614
+ }>, Schema.Struct<{
611
615
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
612
616
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
613
617
  };
614
- }>, Schema.Struct<{
615
618
  readonly kind: Schema.Literal<"retry">;
616
619
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
617
620
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
618
621
  };
619
622
  readonly max_attempts: Schema.Int;
623
+ }>, Schema.Struct<{
620
624
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
621
625
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
622
626
  };
623
- }>, Schema.Struct<{
624
627
  readonly kind: Schema.Literal<"budget">;
625
628
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
626
629
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
627
630
  };
628
631
  readonly limit: Schema.Int;
629
632
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
633
+ }>, Schema.Struct<{
630
634
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
631
635
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
632
636
  };
633
- }>, Schema.Struct<{
634
637
  readonly kind: Schema.Literal<"cancellation">;
635
638
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
636
639
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -638,10 +641,10 @@ export declare const DefinitionV2: Schema.Struct<{
638
641
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
639
642
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
640
643
  }>;
644
+ }>, Schema.Struct<{
641
645
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
642
646
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
643
647
  };
644
- }>, Schema.Struct<{
645
648
  readonly kind: Schema.Literal<"compensation">;
646
649
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
647
650
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -649,18 +652,15 @@ export declare const DefinitionV2: Schema.Struct<{
649
652
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
650
653
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
651
654
  };
655
+ }>, Schema.Struct<{
652
656
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
653
657
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
654
658
  };
655
- }>, Schema.Struct<{
656
659
  readonly kind: Schema.Literal<"structured-completion">;
657
660
  readonly schema_ref: Schema.String;
658
661
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
659
662
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
660
663
  };
661
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
662
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
663
- };
664
664
  }>]>>;
665
665
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
666
666
  }>;
@@ -672,42 +672,45 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
672
672
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
673
673
  };
674
674
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
675
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
676
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
677
+ };
675
678
  readonly kind: Schema.Literal<"sequence">;
676
679
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
677
680
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
678
681
  }>;
682
+ }>, Schema.Struct<{
679
683
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
680
684
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
681
685
  };
682
- }>, Schema.Struct<{
683
686
  readonly kind: Schema.Literal<"child">;
684
687
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
685
688
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
686
689
  };
687
690
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
691
+ }>, Schema.Struct<{
688
692
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
689
693
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
690
694
  };
691
- }>, Schema.Struct<{
692
695
  readonly kind: Schema.Literal<"tool">;
693
696
  readonly tool_name: Schema.String;
694
697
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
698
+ }>, Schema.Struct<{
695
699
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
696
700
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
697
701
  };
698
- }>, Schema.Struct<{
699
702
  readonly kind: Schema.Literal<"approval">;
700
703
  readonly prompt: Schema.String;
704
+ }>, Schema.Struct<{
701
705
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
702
706
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
703
707
  };
704
- }>, Schema.Struct<{
705
708
  readonly kind: Schema.Literal<"timer">;
706
709
  readonly duration_ms: Schema.Int;
710
+ }>, Schema.Struct<{
707
711
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
708
712
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
709
713
  };
710
- }>, Schema.Struct<{
711
714
  readonly kind: Schema.Literal<"branch">;
712
715
  readonly condition: Schema.String;
713
716
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -716,45 +719,45 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
716
719
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
717
720
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
718
721
  };
722
+ }>, Schema.Struct<{
719
723
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
720
724
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
721
725
  };
722
- }>, Schema.Struct<{
723
726
  readonly kind: Schema.Literal<"parallel">;
724
727
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
725
728
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
726
729
  }>;
730
+ }>, Schema.Struct<{
727
731
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
728
732
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
729
733
  };
730
- }>, Schema.Struct<{
731
734
  readonly kind: Schema.Literal<"join">;
732
735
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
733
736
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
734
737
  }>;
738
+ }>, Schema.Struct<{
735
739
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
736
740
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
737
741
  };
738
- }>, Schema.Struct<{
739
742
  readonly kind: Schema.Literal<"retry">;
740
743
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
741
744
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
742
745
  };
743
746
  readonly max_attempts: Schema.Int;
747
+ }>, Schema.Struct<{
744
748
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
745
749
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
746
750
  };
747
- }>, Schema.Struct<{
748
751
  readonly kind: Schema.Literal<"budget">;
749
752
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
750
753
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
751
754
  };
752
755
  readonly limit: Schema.Int;
753
756
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
757
+ }>, Schema.Struct<{
754
758
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
755
759
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
756
760
  };
757
- }>, Schema.Struct<{
758
761
  readonly kind: Schema.Literal<"cancellation">;
759
762
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
760
763
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -762,10 +765,10 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
762
765
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
763
766
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
764
767
  }>;
768
+ }>, Schema.Struct<{
765
769
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
766
770
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
767
771
  };
768
- }>, Schema.Struct<{
769
772
  readonly kind: Schema.Literal<"compensation">;
770
773
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
771
774
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -773,18 +776,15 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
773
776
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
774
777
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
775
778
  };
779
+ }>, Schema.Struct<{
776
780
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
777
781
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
778
782
  };
779
- }>, Schema.Struct<{
780
783
  readonly kind: Schema.Literal<"structured-completion">;
781
784
  readonly schema_ref: Schema.String;
782
785
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
783
786
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
784
787
  };
785
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
786
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
787
- };
788
788
  }>]>>;
789
789
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
790
790
  }>, Schema.Struct<{
@@ -794,43 +794,46 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
794
794
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
795
795
  };
796
796
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
797
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
798
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
799
+ };
797
800
  readonly kind: Schema.Literal<"sequence">;
798
801
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
799
802
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
800
803
  }>;
804
+ }>, Schema.Struct<{
801
805
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
802
806
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
803
807
  };
804
- }>, Schema.Struct<{
805
808
  readonly kind: Schema.Literal<"child">;
806
809
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
807
810
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
808
811
  };
809
812
  readonly preset_name: Schema.optionalKey<Schema.String>;
810
813
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
814
+ }>, Schema.Struct<{
811
815
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
812
816
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
813
817
  };
814
- }>, Schema.Struct<{
815
818
  readonly kind: Schema.Literal<"tool">;
816
819
  readonly tool_name: Schema.String;
817
820
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
821
+ }>, Schema.Struct<{
818
822
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
819
823
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
820
824
  };
821
- }>, Schema.Struct<{
822
825
  readonly kind: Schema.Literal<"approval">;
823
826
  readonly prompt: Schema.String;
827
+ }>, Schema.Struct<{
824
828
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
825
829
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
826
830
  };
827
- }>, Schema.Struct<{
828
831
  readonly kind: Schema.Literal<"timer">;
829
832
  readonly duration_ms: Schema.Int;
833
+ }>, Schema.Struct<{
830
834
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
831
835
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
832
836
  };
833
- }>, Schema.Struct<{
834
837
  readonly kind: Schema.Literal<"branch">;
835
838
  readonly condition: Schema.String;
836
839
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -839,20 +842,20 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
839
842
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
840
843
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
841
844
  };
845
+ }>, Schema.Struct<{
842
846
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
843
847
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
844
848
  };
845
- }>, Schema.Struct<{
846
849
  readonly kind: Schema.Literal<"parallel">;
847
850
  readonly fan_out_key: Schema.String;
848
851
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
849
852
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
850
853
  }>;
851
854
  readonly max_concurrency: Schema.Int;
855
+ }>, Schema.Struct<{
852
856
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
853
857
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
854
858
  };
855
- }>, Schema.Struct<{
856
859
  readonly kind: Schema.Literal<"join">;
857
860
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
858
861
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -863,29 +866,29 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
863
866
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
864
867
  readonly count: Schema.Int;
865
868
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
869
+ }>, Schema.Struct<{
866
870
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
867
871
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
868
872
  };
869
- }>, Schema.Struct<{
870
873
  readonly kind: Schema.Literal<"retry">;
871
874
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
872
875
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
873
876
  };
874
877
  readonly max_attempts: Schema.Int;
878
+ }>, Schema.Struct<{
875
879
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
876
880
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
877
881
  };
878
- }>, Schema.Struct<{
879
882
  readonly kind: Schema.Literal<"budget">;
880
883
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
881
884
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
882
885
  };
883
886
  readonly limit: Schema.Int;
884
887
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
888
+ }>, Schema.Struct<{
885
889
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
886
890
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
887
891
  };
888
- }>, Schema.Struct<{
889
892
  readonly kind: Schema.Literal<"cancellation">;
890
893
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
891
894
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -893,10 +896,10 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
893
896
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
894
897
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
895
898
  }>;
899
+ }>, Schema.Struct<{
896
900
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
897
901
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
898
902
  };
899
- }>, Schema.Struct<{
900
903
  readonly kind: Schema.Literal<"compensation">;
901
904
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
902
905
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -904,24 +907,21 @@ export declare const Definition: Schema.Union<readonly [Schema.Struct<{
904
907
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
905
908
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
906
909
  };
910
+ }>, Schema.Struct<{
907
911
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
908
912
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
909
913
  };
910
- }>, Schema.Struct<{
911
914
  readonly kind: Schema.Literal<"structured-completion">;
912
915
  readonly schema_ref: Schema.String;
913
916
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
914
917
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
915
918
  };
916
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
917
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
918
- };
919
919
  }>]>>;
920
920
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
921
921
  }>]>;
922
922
  export type Definition = typeof Definition.Type;
923
923
  export declare const canonicalDefinition: (definition: Definition) => string;
924
- export declare const digestDefinition: (definition: Definition) => Promise<DefinitionDigest>;
924
+ export declare const digestDefinition: (definition: Definition) => DefinitionDigest;
925
925
  export declare const DefinitionRevisionRecord: Schema.Struct<{
926
926
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
927
927
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
@@ -935,42 +935,45 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
935
935
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
936
936
  };
937
937
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
938
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
939
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
940
+ };
938
941
  readonly kind: Schema.Literal<"sequence">;
939
942
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
940
943
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
941
944
  }>;
945
+ }>, Schema.Struct<{
942
946
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
943
947
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
944
948
  };
945
- }>, Schema.Struct<{
946
949
  readonly kind: Schema.Literal<"child">;
947
950
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
948
951
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
949
952
  };
950
953
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
954
+ }>, Schema.Struct<{
951
955
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
952
956
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
953
957
  };
954
- }>, Schema.Struct<{
955
958
  readonly kind: Schema.Literal<"tool">;
956
959
  readonly tool_name: Schema.String;
957
960
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
961
+ }>, Schema.Struct<{
958
962
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
959
963
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
960
964
  };
961
- }>, Schema.Struct<{
962
965
  readonly kind: Schema.Literal<"approval">;
963
966
  readonly prompt: Schema.String;
967
+ }>, Schema.Struct<{
964
968
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
965
969
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
966
970
  };
967
- }>, Schema.Struct<{
968
971
  readonly kind: Schema.Literal<"timer">;
969
972
  readonly duration_ms: Schema.Int;
973
+ }>, Schema.Struct<{
970
974
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
971
975
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
972
976
  };
973
- }>, Schema.Struct<{
974
977
  readonly kind: Schema.Literal<"branch">;
975
978
  readonly condition: Schema.String;
976
979
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -979,45 +982,45 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
979
982
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
980
983
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
981
984
  };
985
+ }>, Schema.Struct<{
982
986
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
983
987
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
984
988
  };
985
- }>, Schema.Struct<{
986
989
  readonly kind: Schema.Literal<"parallel">;
987
990
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
988
991
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
989
992
  }>;
993
+ }>, Schema.Struct<{
990
994
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
991
995
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
992
996
  };
993
- }>, Schema.Struct<{
994
997
  readonly kind: Schema.Literal<"join">;
995
998
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
996
999
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
997
1000
  }>;
1001
+ }>, Schema.Struct<{
998
1002
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
999
1003
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1000
1004
  };
1001
- }>, Schema.Struct<{
1002
1005
  readonly kind: Schema.Literal<"retry">;
1003
1006
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1004
1007
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1005
1008
  };
1006
1009
  readonly max_attempts: Schema.Int;
1010
+ }>, Schema.Struct<{
1007
1011
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1008
1012
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1009
1013
  };
1010
- }>, Schema.Struct<{
1011
1014
  readonly kind: Schema.Literal<"budget">;
1012
1015
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1013
1016
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1014
1017
  };
1015
1018
  readonly limit: Schema.Int;
1016
1019
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1020
+ }>, Schema.Struct<{
1017
1021
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1018
1022
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1019
1023
  };
1020
- }>, Schema.Struct<{
1021
1024
  readonly kind: Schema.Literal<"cancellation">;
1022
1025
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1023
1026
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1025,10 +1028,10 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1025
1028
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1026
1029
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1027
1030
  }>;
1031
+ }>, Schema.Struct<{
1028
1032
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1029
1033
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1030
1034
  };
1031
- }>, Schema.Struct<{
1032
1035
  readonly kind: Schema.Literal<"compensation">;
1033
1036
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1034
1037
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1036,18 +1039,15 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1036
1039
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1037
1040
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1038
1041
  };
1042
+ }>, Schema.Struct<{
1039
1043
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1040
1044
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1041
1045
  };
1042
- }>, Schema.Struct<{
1043
1046
  readonly kind: Schema.Literal<"structured-completion">;
1044
1047
  readonly schema_ref: Schema.String;
1045
1048
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1046
1049
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1047
1050
  };
1048
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1049
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1050
- };
1051
1051
  }>]>>;
1052
1052
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1053
1053
  }>, Schema.Struct<{
@@ -1057,43 +1057,46 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1057
1057
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1058
1058
  };
1059
1059
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1060
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1061
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1062
+ };
1060
1063
  readonly kind: Schema.Literal<"sequence">;
1061
1064
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1062
1065
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1063
1066
  }>;
1067
+ }>, Schema.Struct<{
1064
1068
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1065
1069
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1066
1070
  };
1067
- }>, Schema.Struct<{
1068
1071
  readonly kind: Schema.Literal<"child">;
1069
1072
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1070
1073
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1071
1074
  };
1072
1075
  readonly preset_name: Schema.optionalKey<Schema.String>;
1073
1076
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1077
+ }>, Schema.Struct<{
1074
1078
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1075
1079
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1076
1080
  };
1077
- }>, Schema.Struct<{
1078
1081
  readonly kind: Schema.Literal<"tool">;
1079
1082
  readonly tool_name: Schema.String;
1080
1083
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1084
+ }>, Schema.Struct<{
1081
1085
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1082
1086
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1083
1087
  };
1084
- }>, Schema.Struct<{
1085
1088
  readonly kind: Schema.Literal<"approval">;
1086
1089
  readonly prompt: Schema.String;
1090
+ }>, Schema.Struct<{
1087
1091
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1088
1092
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1089
1093
  };
1090
- }>, Schema.Struct<{
1091
1094
  readonly kind: Schema.Literal<"timer">;
1092
1095
  readonly duration_ms: Schema.Int;
1096
+ }>, Schema.Struct<{
1093
1097
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1094
1098
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1095
1099
  };
1096
- }>, Schema.Struct<{
1097
1100
  readonly kind: Schema.Literal<"branch">;
1098
1101
  readonly condition: Schema.String;
1099
1102
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1102,20 +1105,20 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1102
1105
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1103
1106
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1104
1107
  };
1108
+ }>, Schema.Struct<{
1105
1109
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1106
1110
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1107
1111
  };
1108
- }>, Schema.Struct<{
1109
1112
  readonly kind: Schema.Literal<"parallel">;
1110
1113
  readonly fan_out_key: Schema.String;
1111
1114
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1112
1115
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1113
1116
  }>;
1114
1117
  readonly max_concurrency: Schema.Int;
1118
+ }>, Schema.Struct<{
1115
1119
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1116
1120
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1117
1121
  };
1118
- }>, Schema.Struct<{
1119
1122
  readonly kind: Schema.Literal<"join">;
1120
1123
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1121
1124
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1126,29 +1129,29 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1126
1129
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1127
1130
  readonly count: Schema.Int;
1128
1131
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
1132
+ }>, Schema.Struct<{
1129
1133
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1130
1134
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1131
1135
  };
1132
- }>, Schema.Struct<{
1133
1136
  readonly kind: Schema.Literal<"retry">;
1134
1137
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1135
1138
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1136
1139
  };
1137
1140
  readonly max_attempts: Schema.Int;
1141
+ }>, Schema.Struct<{
1138
1142
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1139
1143
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1140
1144
  };
1141
- }>, Schema.Struct<{
1142
1145
  readonly kind: Schema.Literal<"budget">;
1143
1146
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1144
1147
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1145
1148
  };
1146
1149
  readonly limit: Schema.Int;
1147
1150
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1151
+ }>, Schema.Struct<{
1148
1152
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1149
1153
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1150
1154
  };
1151
- }>, Schema.Struct<{
1152
1155
  readonly kind: Schema.Literal<"cancellation">;
1153
1156
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1154
1157
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1156,10 +1159,10 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1156
1159
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1157
1160
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1158
1161
  }>;
1162
+ }>, Schema.Struct<{
1159
1163
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1160
1164
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1161
1165
  };
1162
- }>, Schema.Struct<{
1163
1166
  readonly kind: Schema.Literal<"compensation">;
1164
1167
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1165
1168
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1167,18 +1170,15 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
1167
1170
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1168
1171
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1169
1172
  };
1173
+ }>, Schema.Struct<{
1170
1174
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1171
1175
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1172
1176
  };
1173
- }>, Schema.Struct<{
1174
1177
  readonly kind: Schema.Literal<"structured-completion">;
1175
1178
  readonly schema_ref: Schema.String;
1176
1179
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1177
1180
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1178
1181
  };
1179
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1180
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1181
- };
1182
1182
  }>]>>;
1183
1183
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1184
1184
  }>]>;
@@ -1206,42 +1206,45 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1206
1206
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1207
1207
  };
1208
1208
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1209
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1210
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1211
+ };
1209
1212
  readonly kind: Schema.Literal<"sequence">;
1210
1213
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1211
1214
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1212
1215
  }>;
1216
+ }>, Schema.Struct<{
1213
1217
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1214
1218
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1215
1219
  };
1216
- }>, Schema.Struct<{
1217
1220
  readonly kind: Schema.Literal<"child">;
1218
1221
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
1219
1222
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
1220
1223
  };
1221
1224
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1225
+ }>, Schema.Struct<{
1222
1226
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1223
1227
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1224
1228
  };
1225
- }>, Schema.Struct<{
1226
1229
  readonly kind: Schema.Literal<"tool">;
1227
1230
  readonly tool_name: Schema.String;
1228
1231
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1232
+ }>, Schema.Struct<{
1229
1233
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1230
1234
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1231
1235
  };
1232
- }>, Schema.Struct<{
1233
1236
  readonly kind: Schema.Literal<"approval">;
1234
1237
  readonly prompt: Schema.String;
1238
+ }>, Schema.Struct<{
1235
1239
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1236
1240
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1237
1241
  };
1238
- }>, Schema.Struct<{
1239
1242
  readonly kind: Schema.Literal<"timer">;
1240
1243
  readonly duration_ms: Schema.Int;
1244
+ }>, Schema.Struct<{
1241
1245
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1242
1246
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1243
1247
  };
1244
- }>, Schema.Struct<{
1245
1248
  readonly kind: Schema.Literal<"branch">;
1246
1249
  readonly condition: Schema.String;
1247
1250
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1250,45 +1253,45 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1250
1253
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1251
1254
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1252
1255
  };
1256
+ }>, Schema.Struct<{
1253
1257
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1254
1258
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1255
1259
  };
1256
- }>, Schema.Struct<{
1257
1260
  readonly kind: Schema.Literal<"parallel">;
1258
1261
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1259
1262
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1260
1263
  }>;
1264
+ }>, Schema.Struct<{
1261
1265
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1262
1266
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1263
1267
  };
1264
- }>, Schema.Struct<{
1265
1268
  readonly kind: Schema.Literal<"join">;
1266
1269
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1267
1270
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1268
1271
  }>;
1272
+ }>, Schema.Struct<{
1269
1273
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1270
1274
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1271
1275
  };
1272
- }>, Schema.Struct<{
1273
1276
  readonly kind: Schema.Literal<"retry">;
1274
1277
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1275
1278
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1276
1279
  };
1277
1280
  readonly max_attempts: Schema.Int;
1281
+ }>, Schema.Struct<{
1278
1282
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1279
1283
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1280
1284
  };
1281
- }>, Schema.Struct<{
1282
1285
  readonly kind: Schema.Literal<"budget">;
1283
1286
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1284
1287
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1285
1288
  };
1286
1289
  readonly limit: Schema.Int;
1287
1290
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1291
+ }>, Schema.Struct<{
1288
1292
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1289
1293
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1290
1294
  };
1291
- }>, Schema.Struct<{
1292
1295
  readonly kind: Schema.Literal<"cancellation">;
1293
1296
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1294
1297
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1296,10 +1299,10 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1296
1299
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1297
1300
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1298
1301
  }>;
1302
+ }>, Schema.Struct<{
1299
1303
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1300
1304
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1301
1305
  };
1302
- }>, Schema.Struct<{
1303
1306
  readonly kind: Schema.Literal<"compensation">;
1304
1307
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1305
1308
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1307,18 +1310,15 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1307
1310
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1308
1311
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1309
1312
  };
1313
+ }>, Schema.Struct<{
1310
1314
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1311
1315
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1312
1316
  };
1313
- }>, Schema.Struct<{
1314
1317
  readonly kind: Schema.Literal<"structured-completion">;
1315
1318
  readonly schema_ref: Schema.String;
1316
1319
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1317
1320
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1318
1321
  };
1319
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1320
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1321
- };
1322
1322
  }>]>>;
1323
1323
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1324
1324
  }>, Schema.Struct<{
@@ -1328,43 +1328,46 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1328
1328
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1329
1329
  };
1330
1330
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1331
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1332
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1333
+ };
1331
1334
  readonly kind: Schema.Literal<"sequence">;
1332
1335
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1333
1336
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1334
1337
  }>;
1338
+ }>, Schema.Struct<{
1335
1339
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1336
1340
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1337
1341
  };
1338
- }>, Schema.Struct<{
1339
1342
  readonly kind: Schema.Literal<"child">;
1340
1343
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1341
1344
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1342
1345
  };
1343
1346
  readonly preset_name: Schema.optionalKey<Schema.String>;
1344
1347
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1348
+ }>, Schema.Struct<{
1345
1349
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1346
1350
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1347
1351
  };
1348
- }>, Schema.Struct<{
1349
1352
  readonly kind: Schema.Literal<"tool">;
1350
1353
  readonly tool_name: Schema.String;
1351
1354
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1355
+ }>, Schema.Struct<{
1352
1356
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1353
1357
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1354
1358
  };
1355
- }>, Schema.Struct<{
1356
1359
  readonly kind: Schema.Literal<"approval">;
1357
1360
  readonly prompt: Schema.String;
1361
+ }>, Schema.Struct<{
1358
1362
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1359
1363
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1360
1364
  };
1361
- }>, Schema.Struct<{
1362
1365
  readonly kind: Schema.Literal<"timer">;
1363
1366
  readonly duration_ms: Schema.Int;
1367
+ }>, Schema.Struct<{
1364
1368
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1365
1369
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1366
1370
  };
1367
- }>, Schema.Struct<{
1368
1371
  readonly kind: Schema.Literal<"branch">;
1369
1372
  readonly condition: Schema.String;
1370
1373
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1373,20 +1376,20 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1373
1376
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1374
1377
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1375
1378
  };
1379
+ }>, Schema.Struct<{
1376
1380
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1377
1381
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1378
1382
  };
1379
- }>, Schema.Struct<{
1380
1383
  readonly kind: Schema.Literal<"parallel">;
1381
1384
  readonly fan_out_key: Schema.String;
1382
1385
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1383
1386
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1384
1387
  }>;
1385
1388
  readonly max_concurrency: Schema.Int;
1389
+ }>, Schema.Struct<{
1386
1390
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1387
1391
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1388
1392
  };
1389
- }>, Schema.Struct<{
1390
1393
  readonly kind: Schema.Literal<"join">;
1391
1394
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1392
1395
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1397,29 +1400,29 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1397
1400
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1398
1401
  readonly count: Schema.Int;
1399
1402
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
1403
+ }>, Schema.Struct<{
1400
1404
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1401
1405
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1402
1406
  };
1403
- }>, Schema.Struct<{
1404
1407
  readonly kind: Schema.Literal<"retry">;
1405
1408
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1406
1409
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1407
1410
  };
1408
1411
  readonly max_attempts: Schema.Int;
1412
+ }>, Schema.Struct<{
1409
1413
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1410
1414
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1411
1415
  };
1412
- }>, Schema.Struct<{
1413
1416
  readonly kind: Schema.Literal<"budget">;
1414
1417
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1415
1418
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1416
1419
  };
1417
1420
  readonly limit: Schema.Int;
1418
1421
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1422
+ }>, Schema.Struct<{
1419
1423
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1420
1424
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1421
1425
  };
1422
- }>, Schema.Struct<{
1423
1426
  readonly kind: Schema.Literal<"cancellation">;
1424
1427
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1425
1428
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1427,10 +1430,10 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1427
1430
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1428
1431
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1429
1432
  }>;
1433
+ }>, Schema.Struct<{
1430
1434
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1431
1435
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1432
1436
  };
1433
- }>, Schema.Struct<{
1434
1437
  readonly kind: Schema.Literal<"compensation">;
1435
1438
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1436
1439
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1438,18 +1441,15 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
1438
1441
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1439
1442
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1440
1443
  };
1444
+ }>, Schema.Struct<{
1441
1445
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1442
1446
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1443
1447
  };
1444
- }>, Schema.Struct<{
1445
1448
  readonly kind: Schema.Literal<"structured-completion">;
1446
1449
  readonly schema_ref: Schema.String;
1447
1450
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1448
1451
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1449
1452
  };
1450
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1451
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1452
- };
1453
1453
  }>]>>;
1454
1454
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1455
1455
  }>]>;
@@ -1470,42 +1470,45 @@ export declare const DefinitionRegistered: Schema.Struct<{
1470
1470
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1471
1471
  };
1472
1472
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1473
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1474
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1475
+ };
1473
1476
  readonly kind: Schema.Literal<"sequence">;
1474
1477
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1475
1478
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1476
1479
  }>;
1480
+ }>, Schema.Struct<{
1477
1481
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1478
1482
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1479
1483
  };
1480
- }>, Schema.Struct<{
1481
1484
  readonly kind: Schema.Literal<"child">;
1482
1485
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
1483
1486
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
1484
1487
  };
1485
1488
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1489
+ }>, Schema.Struct<{
1486
1490
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1487
1491
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1488
1492
  };
1489
- }>, Schema.Struct<{
1490
1493
  readonly kind: Schema.Literal<"tool">;
1491
1494
  readonly tool_name: Schema.String;
1492
1495
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1496
+ }>, Schema.Struct<{
1493
1497
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1494
1498
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1495
1499
  };
1496
- }>, Schema.Struct<{
1497
1500
  readonly kind: Schema.Literal<"approval">;
1498
1501
  readonly prompt: Schema.String;
1502
+ }>, Schema.Struct<{
1499
1503
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1500
1504
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1501
1505
  };
1502
- }>, Schema.Struct<{
1503
1506
  readonly kind: Schema.Literal<"timer">;
1504
1507
  readonly duration_ms: Schema.Int;
1508
+ }>, Schema.Struct<{
1505
1509
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1506
1510
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1507
1511
  };
1508
- }>, Schema.Struct<{
1509
1512
  readonly kind: Schema.Literal<"branch">;
1510
1513
  readonly condition: Schema.String;
1511
1514
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1514,45 +1517,45 @@ export declare const DefinitionRegistered: Schema.Struct<{
1514
1517
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1515
1518
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1516
1519
  };
1520
+ }>, Schema.Struct<{
1517
1521
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1518
1522
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1519
1523
  };
1520
- }>, Schema.Struct<{
1521
1524
  readonly kind: Schema.Literal<"parallel">;
1522
1525
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1523
1526
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1524
1527
  }>;
1528
+ }>, Schema.Struct<{
1525
1529
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1526
1530
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1527
1531
  };
1528
- }>, Schema.Struct<{
1529
1532
  readonly kind: Schema.Literal<"join">;
1530
1533
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1531
1534
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1532
1535
  }>;
1536
+ }>, Schema.Struct<{
1533
1537
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1534
1538
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1535
1539
  };
1536
- }>, Schema.Struct<{
1537
1540
  readonly kind: Schema.Literal<"retry">;
1538
1541
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1539
1542
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1540
1543
  };
1541
1544
  readonly max_attempts: Schema.Int;
1545
+ }>, Schema.Struct<{
1542
1546
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1543
1547
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1544
1548
  };
1545
- }>, Schema.Struct<{
1546
1549
  readonly kind: Schema.Literal<"budget">;
1547
1550
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1548
1551
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1549
1552
  };
1550
1553
  readonly limit: Schema.Int;
1551
1554
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1555
+ }>, Schema.Struct<{
1552
1556
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1553
1557
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1554
1558
  };
1555
- }>, Schema.Struct<{
1556
1559
  readonly kind: Schema.Literal<"cancellation">;
1557
1560
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1558
1561
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1560,10 +1563,10 @@ export declare const DefinitionRegistered: Schema.Struct<{
1560
1563
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1561
1564
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1562
1565
  }>;
1566
+ }>, Schema.Struct<{
1563
1567
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1564
1568
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1565
1569
  };
1566
- }>, Schema.Struct<{
1567
1570
  readonly kind: Schema.Literal<"compensation">;
1568
1571
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1569
1572
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1571,18 +1574,15 @@ export declare const DefinitionRegistered: Schema.Struct<{
1571
1574
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1572
1575
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1573
1576
  };
1577
+ }>, Schema.Struct<{
1574
1578
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1575
1579
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1576
1580
  };
1577
- }>, Schema.Struct<{
1578
1581
  readonly kind: Schema.Literal<"structured-completion">;
1579
1582
  readonly schema_ref: Schema.String;
1580
1583
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1581
1584
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1582
1585
  };
1583
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1584
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1585
- };
1586
1586
  }>]>>;
1587
1587
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1588
1588
  }>, Schema.Struct<{
@@ -1592,43 +1592,46 @@ export declare const DefinitionRegistered: Schema.Struct<{
1592
1592
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1593
1593
  };
1594
1594
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1595
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1596
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1597
+ };
1595
1598
  readonly kind: Schema.Literal<"sequence">;
1596
1599
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1597
1600
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1598
1601
  }>;
1602
+ }>, Schema.Struct<{
1599
1603
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1600
1604
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1601
1605
  };
1602
- }>, Schema.Struct<{
1603
1606
  readonly kind: Schema.Literal<"child">;
1604
1607
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1605
1608
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1606
1609
  };
1607
1610
  readonly preset_name: Schema.optionalKey<Schema.String>;
1608
1611
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1612
+ }>, Schema.Struct<{
1609
1613
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1610
1614
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1611
1615
  };
1612
- }>, Schema.Struct<{
1613
1616
  readonly kind: Schema.Literal<"tool">;
1614
1617
  readonly tool_name: Schema.String;
1615
1618
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1619
+ }>, Schema.Struct<{
1616
1620
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1617
1621
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1618
1622
  };
1619
- }>, Schema.Struct<{
1620
1623
  readonly kind: Schema.Literal<"approval">;
1621
1624
  readonly prompt: Schema.String;
1625
+ }>, Schema.Struct<{
1622
1626
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1623
1627
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1624
1628
  };
1625
- }>, Schema.Struct<{
1626
1629
  readonly kind: Schema.Literal<"timer">;
1627
1630
  readonly duration_ms: Schema.Int;
1631
+ }>, Schema.Struct<{
1628
1632
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1629
1633
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1630
1634
  };
1631
- }>, Schema.Struct<{
1632
1635
  readonly kind: Schema.Literal<"branch">;
1633
1636
  readonly condition: Schema.String;
1634
1637
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1637,20 +1640,20 @@ export declare const DefinitionRegistered: Schema.Struct<{
1637
1640
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1638
1641
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1639
1642
  };
1643
+ }>, Schema.Struct<{
1640
1644
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1641
1645
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1642
1646
  };
1643
- }>, Schema.Struct<{
1644
1647
  readonly kind: Schema.Literal<"parallel">;
1645
1648
  readonly fan_out_key: Schema.String;
1646
1649
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1647
1650
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1648
1651
  }>;
1649
1652
  readonly max_concurrency: Schema.Int;
1653
+ }>, Schema.Struct<{
1650
1654
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1651
1655
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1652
1656
  };
1653
- }>, Schema.Struct<{
1654
1657
  readonly kind: Schema.Literal<"join">;
1655
1658
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1656
1659
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1661,29 +1664,29 @@ export declare const DefinitionRegistered: Schema.Struct<{
1661
1664
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1662
1665
  readonly count: Schema.Int;
1663
1666
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
1667
+ }>, Schema.Struct<{
1664
1668
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1665
1669
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1666
1670
  };
1667
- }>, Schema.Struct<{
1668
1671
  readonly kind: Schema.Literal<"retry">;
1669
1672
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1670
1673
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1671
1674
  };
1672
1675
  readonly max_attempts: Schema.Int;
1676
+ }>, Schema.Struct<{
1673
1677
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1674
1678
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1675
1679
  };
1676
- }>, Schema.Struct<{
1677
1680
  readonly kind: Schema.Literal<"budget">;
1678
1681
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1679
1682
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1680
1683
  };
1681
1684
  readonly limit: Schema.Int;
1682
1685
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1686
+ }>, Schema.Struct<{
1683
1687
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1684
1688
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1685
1689
  };
1686
- }>, Schema.Struct<{
1687
1690
  readonly kind: Schema.Literal<"cancellation">;
1688
1691
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1689
1692
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1691,10 +1694,10 @@ export declare const DefinitionRegistered: Schema.Struct<{
1691
1694
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1692
1695
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1693
1696
  }>;
1697
+ }>, Schema.Struct<{
1694
1698
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1695
1699
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1696
1700
  };
1697
- }>, Schema.Struct<{
1698
1701
  readonly kind: Schema.Literal<"compensation">;
1699
1702
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1700
1703
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1702,18 +1705,15 @@ export declare const DefinitionRegistered: Schema.Struct<{
1702
1705
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1703
1706
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1704
1707
  };
1708
+ }>, Schema.Struct<{
1705
1709
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1706
1710
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1707
1711
  };
1708
- }>, Schema.Struct<{
1709
1712
  readonly kind: Schema.Literal<"structured-completion">;
1710
1713
  readonly schema_ref: Schema.String;
1711
1714
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1712
1715
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1713
1716
  };
1714
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1715
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1716
- };
1717
1717
  }>]>>;
1718
1718
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1719
1719
  }>]>;
@@ -1736,42 +1736,45 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1736
1736
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1737
1737
  };
1738
1738
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1739
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1740
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1741
+ };
1739
1742
  readonly kind: Schema.Literal<"sequence">;
1740
1743
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1741
1744
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1742
1745
  }>;
1746
+ }>, Schema.Struct<{
1743
1747
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1744
1748
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1745
1749
  };
1746
- }>, Schema.Struct<{
1747
1750
  readonly kind: Schema.Literal<"child">;
1748
1751
  readonly workflow_id: Schema.brand<Schema.String, "Relay.WorkflowDefinitionId"> & {
1749
1752
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
1750
1753
  };
1751
1754
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1755
+ }>, Schema.Struct<{
1752
1756
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1753
1757
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1754
1758
  };
1755
- }>, Schema.Struct<{
1756
1759
  readonly kind: Schema.Literal<"tool">;
1757
1760
  readonly tool_name: Schema.String;
1758
1761
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1762
+ }>, Schema.Struct<{
1759
1763
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1760
1764
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1761
1765
  };
1762
- }>, Schema.Struct<{
1763
1766
  readonly kind: Schema.Literal<"approval">;
1764
1767
  readonly prompt: Schema.String;
1768
+ }>, Schema.Struct<{
1765
1769
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1766
1770
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1767
1771
  };
1768
- }>, Schema.Struct<{
1769
1772
  readonly kind: Schema.Literal<"timer">;
1770
1773
  readonly duration_ms: Schema.Int;
1774
+ }>, Schema.Struct<{
1771
1775
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1772
1776
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1773
1777
  };
1774
- }>, Schema.Struct<{
1775
1778
  readonly kind: Schema.Literal<"branch">;
1776
1779
  readonly condition: Schema.String;
1777
1780
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1780,45 +1783,45 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1780
1783
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1781
1784
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1782
1785
  };
1786
+ }>, Schema.Struct<{
1783
1787
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1784
1788
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1785
1789
  };
1786
- }>, Schema.Struct<{
1787
1790
  readonly kind: Schema.Literal<"parallel">;
1788
1791
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1789
1792
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1790
1793
  }>;
1794
+ }>, Schema.Struct<{
1791
1795
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1792
1796
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1793
1797
  };
1794
- }>, Schema.Struct<{
1795
1798
  readonly kind: Schema.Literal<"join">;
1796
1799
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1797
1800
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1798
1801
  }>;
1802
+ }>, Schema.Struct<{
1799
1803
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1800
1804
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1801
1805
  };
1802
- }>, Schema.Struct<{
1803
1806
  readonly kind: Schema.Literal<"retry">;
1804
1807
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1805
1808
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1806
1809
  };
1807
1810
  readonly max_attempts: Schema.Int;
1811
+ }>, Schema.Struct<{
1808
1812
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1809
1813
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1810
1814
  };
1811
- }>, Schema.Struct<{
1812
1815
  readonly kind: Schema.Literal<"budget">;
1813
1816
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1814
1817
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1815
1818
  };
1816
1819
  readonly limit: Schema.Int;
1817
1820
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1821
+ }>, Schema.Struct<{
1818
1822
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1819
1823
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1820
1824
  };
1821
- }>, Schema.Struct<{
1822
1825
  readonly kind: Schema.Literal<"cancellation">;
1823
1826
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1824
1827
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1826,10 +1829,10 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1826
1829
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1827
1830
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1828
1831
  }>;
1832
+ }>, Schema.Struct<{
1829
1833
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1830
1834
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1831
1835
  };
1832
- }>, Schema.Struct<{
1833
1836
  readonly kind: Schema.Literal<"compensation">;
1834
1837
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1835
1838
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1837,18 +1840,15 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1837
1840
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1838
1841
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1839
1842
  };
1843
+ }>, Schema.Struct<{
1840
1844
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1841
1845
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1842
1846
  };
1843
- }>, Schema.Struct<{
1844
1847
  readonly kind: Schema.Literal<"structured-completion">;
1845
1848
  readonly schema_ref: Schema.String;
1846
1849
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1847
1850
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1848
1851
  };
1849
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1850
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1851
- };
1852
1852
  }>]>>;
1853
1853
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1854
1854
  }>, Schema.Struct<{
@@ -1858,43 +1858,46 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1858
1858
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1859
1859
  };
1860
1860
  readonly operations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1861
+ readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1862
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1863
+ };
1861
1864
  readonly kind: Schema.Literal<"sequence">;
1862
1865
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1863
1866
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1864
1867
  }>;
1868
+ }>, Schema.Struct<{
1865
1869
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1866
1870
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1867
1871
  };
1868
- }>, Schema.Struct<{
1869
1872
  readonly kind: Schema.Literal<"child">;
1870
1873
  readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1871
1874
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1872
1875
  };
1873
1876
  readonly preset_name: Schema.optionalKey<Schema.String>;
1874
1877
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1878
+ }>, Schema.Struct<{
1875
1879
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1876
1880
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1877
1881
  };
1878
- }>, Schema.Struct<{
1879
1882
  readonly kind: Schema.Literal<"tool">;
1880
1883
  readonly tool_name: Schema.String;
1881
1884
  readonly input: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1885
+ }>, Schema.Struct<{
1882
1886
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1883
1887
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1884
1888
  };
1885
- }>, Schema.Struct<{
1886
1889
  readonly kind: Schema.Literal<"approval">;
1887
1890
  readonly prompt: Schema.String;
1891
+ }>, Schema.Struct<{
1888
1892
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1889
1893
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1890
1894
  };
1891
- }>, Schema.Struct<{
1892
1895
  readonly kind: Schema.Literal<"timer">;
1893
1896
  readonly duration_ms: Schema.Int;
1897
+ }>, Schema.Struct<{
1894
1898
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1895
1899
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1896
1900
  };
1897
- }>, Schema.Struct<{
1898
1901
  readonly kind: Schema.Literal<"branch">;
1899
1902
  readonly condition: Schema.String;
1900
1903
  readonly when_true: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
@@ -1903,20 +1906,20 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1903
1906
  readonly when_false: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1904
1907
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1905
1908
  };
1909
+ }>, Schema.Struct<{
1906
1910
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1907
1911
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1908
1912
  };
1909
- }>, Schema.Struct<{
1910
1913
  readonly kind: Schema.Literal<"parallel">;
1911
1914
  readonly fan_out_key: Schema.String;
1912
1915
  readonly operations: Schema.$Array<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1913
1916
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1914
1917
  }>;
1915
1918
  readonly max_concurrency: Schema.Int;
1919
+ }>, Schema.Struct<{
1916
1920
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1917
1921
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1918
1922
  };
1919
- }>, Schema.Struct<{
1920
1923
  readonly kind: Schema.Literal<"join">;
1921
1924
  readonly parallel_operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1922
1925
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1927,29 +1930,29 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1927
1930
  readonly policy: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
1928
1931
  readonly count: Schema.Int;
1929
1932
  }>, Schema.TaggedStruct<"best-effort", {}>]>;
1933
+ }>, Schema.Struct<{
1930
1934
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1931
1935
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1932
1936
  };
1933
- }>, Schema.Struct<{
1934
1937
  readonly kind: Schema.Literal<"retry">;
1935
1938
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1936
1939
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1937
1940
  };
1938
1941
  readonly max_attempts: Schema.Int;
1942
+ }>, Schema.Struct<{
1939
1943
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1940
1944
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1941
1945
  };
1942
- }>, Schema.Struct<{
1943
1946
  readonly kind: Schema.Literal<"budget">;
1944
1947
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1945
1948
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1946
1949
  };
1947
1950
  readonly limit: Schema.Int;
1948
1951
  readonly unit: Schema.Literals<readonly ["tokens", "milliseconds", "operations"]>;
1952
+ }>, Schema.Struct<{
1949
1953
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1950
1954
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1951
1955
  };
1952
- }>, Schema.Struct<{
1953
1956
  readonly kind: Schema.Literal<"cancellation">;
1954
1957
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1955
1958
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1957,10 +1960,10 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1957
1960
  readonly on_cancel: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1958
1961
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1959
1962
  }>;
1963
+ }>, Schema.Struct<{
1960
1964
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1961
1965
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1962
1966
  };
1963
- }>, Schema.Struct<{
1964
1967
  readonly kind: Schema.Literal<"compensation">;
1965
1968
  readonly operation: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1966
1969
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
@@ -1968,18 +1971,15 @@ export declare const DefinitionRevisionList: Schema.Struct<{
1968
1971
  readonly compensate_with: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1969
1972
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1970
1973
  };
1974
+ }>, Schema.Struct<{
1971
1975
  readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1972
1976
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1973
1977
  };
1974
- }>, Schema.Struct<{
1975
1978
  readonly kind: Schema.Literal<"structured-completion">;
1976
1979
  readonly schema_ref: Schema.String;
1977
1980
  readonly value_from: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1978
1981
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1979
1982
  };
1980
- readonly id: Schema.brand<Schema.String, "Relay.WorkflowOperationId"> & {
1981
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
1982
- };
1983
1983
  }>]>>;
1984
1984
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
1985
1985
  }>]>;