@relayfx/sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/ai.js +2 -2
  2. package/dist/{index-q0z11q9m.js → index-2xztzkfr.js} +5705 -3835
  3. package/dist/{index-sms8x6cq.js → index-bcbbm5wt.js} +1 -1
  4. package/dist/{index-vbf5hcw8.js → index-qgt9z94q.js} +320 -33
  5. package/dist/index.js +92 -3
  6. package/dist/migrations/20260712180000_child_fan_out/migration.sql +27 -0
  7. package/dist/migrations/20260712190000_workflow_definitions/migration.sql +3 -0
  8. package/dist/migrations/20260712200000_workflow_runtime/migration.sql +2 -0
  9. package/dist/migrations/mysql/0008_child_fan_out.sql +26 -0
  10. package/dist/migrations/mysql/0009_workflow_definitions.sql +3 -0
  11. package/dist/migrations/mysql/0010_workflow_runtime.sql +3 -0
  12. package/dist/migrations/pg/20260712180000_child_fan_out/migration.sql +27 -0
  13. package/dist/migrations/pg/20260712190000_workflow_definitions/migration.sql +3 -0
  14. package/dist/migrations/pg/20260712200000_workflow_runtime/migration.sql +2 -0
  15. package/dist/migrations/sqlite/0008_child_fan_out.sql +27 -0
  16. package/dist/migrations/sqlite/0009_workflow_definitions.sql +3 -0
  17. package/dist/migrations/sqlite/0010_workflow_runtime.sql +3 -0
  18. package/dist/sqlite.js +60 -11
  19. package/dist/types/relay/adapter-outbox.d.ts +3 -3
  20. package/dist/types/relay/client.d.ts +147 -17
  21. package/dist/types/relay/index.d.ts +2 -2
  22. package/dist/types/relay/operation.d.ts +559 -2
  23. package/dist/types/relay/sqlite-migrations.d.ts +16 -1
  24. package/dist/types/relay/sqlite-runtime.d.ts +8 -3
  25. package/dist/types/relay/sqlite.d.ts +3 -1
  26. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +30 -0
  27. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +34 -0
  28. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +25 -0
  29. package/dist/types/runtime/cluster/execution-entity.d.ts +4 -2
  30. package/dist/types/runtime/execution/active-execution-registry.d.ts +12 -0
  31. package/dist/types/runtime/execution/execution-service.d.ts +1 -0
  32. package/dist/types/runtime/index.d.ts +5 -0
  33. package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
  34. package/dist/types/runtime/workflow/definition-runtime.d.ts +78 -0
  35. package/dist/types/runtime/workflow/execution-workflow.d.ts +5 -5
  36. package/dist/types/schema/child-orchestration-schema.d.ts +393 -0
  37. package/dist/types/schema/execution-schema.d.ts +2 -2
  38. package/dist/types/schema/ids-schema.d.ts +12 -0
  39. package/dist/types/schema/index.d.ts +3 -0
  40. package/dist/types/schema/wait-schema.d.ts +98 -0
  41. package/dist/types/schema/workflow-schema.d.ts +2062 -0
  42. package/dist/types/store-sql/child/child-fan-out-repository.d.ts +53 -0
  43. package/dist/types/store-sql/index.d.ts +2 -0
  44. package/dist/types/store-sql/portable.d.ts +2 -0
  45. package/dist/types/store-sql/schema/relay-schema.d.ts +1266 -1
  46. package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +29 -0
  47. package/package.json +1 -1
@@ -1,5 +1,1001 @@
1
- import { type Agent, type Content, type Envelope, type Skill, type Tool, type Workspace } from "../../schema/index";
1
+ import { type Agent, type Content, type ChildOrchestration, type Envelope, type Skill, type Tool, type Workspace } from "../../schema/index";
2
2
  import type { Part } from "effect/unstable/ai/Prompt";
3
+ export declare const relayWorkflowDefinitionRevisions: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
+ name: "relay_workflow_definition_revisions";
5
+ schema: undefined;
6
+ columns: {
7
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
8
+ name: string;
9
+ tableName: "relay_workflow_definition_revisions";
10
+ dataType: "string";
11
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
12
+ driverParam: string;
13
+ notNull: true;
14
+ hasDefault: true;
15
+ isPrimaryKey: false;
16
+ isAutoincrement: false;
17
+ hasRuntimeDefault: false;
18
+ enumValues: undefined;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }>;
22
+ workflowDefinitionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">>>, {
23
+ name: string;
24
+ tableName: "relay_workflow_definition_revisions";
25
+ dataType: "string";
26
+ data: string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
27
+ driverParam: string;
28
+ notNull: true;
29
+ hasDefault: false;
30
+ isPrimaryKey: false;
31
+ isAutoincrement: false;
32
+ hasRuntimeDefault: false;
33
+ enumValues: undefined;
34
+ identity: undefined;
35
+ generated: undefined;
36
+ }>;
37
+ revision: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgIntegerBuilder, number>>, {
38
+ name: string;
39
+ tableName: "relay_workflow_definition_revisions";
40
+ dataType: "number int32";
41
+ data: number;
42
+ driverParam: string | number;
43
+ notNull: true;
44
+ hasDefault: false;
45
+ isPrimaryKey: false;
46
+ isAutoincrement: false;
47
+ hasRuntimeDefault: false;
48
+ enumValues: undefined;
49
+ identity: undefined;
50
+ generated: undefined;
51
+ }>;
52
+ digest: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string>>, {
53
+ name: string;
54
+ tableName: "relay_workflow_definition_revisions";
55
+ dataType: "string";
56
+ data: string;
57
+ driverParam: string;
58
+ notNull: true;
59
+ hasDefault: false;
60
+ isPrimaryKey: false;
61
+ isAutoincrement: false;
62
+ hasRuntimeDefault: false;
63
+ enumValues: undefined;
64
+ identity: undefined;
65
+ generated: undefined;
66
+ }>;
67
+ definitionJson: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, {
68
+ readonly name: string;
69
+ readonly version: 1;
70
+ readonly operations: readonly (import("effect/Schema").Struct.ReadonlySide<{
71
+ readonly kind: import("effect/Schema").Literal<"sequence">;
72
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
73
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
74
+ }>;
75
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
76
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
77
+ };
78
+ }, "Type"> | {
79
+ readonly kind: "child";
80
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
81
+ readonly workflow_id: string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
82
+ readonly input?: import("effect/Schema").Json;
83
+ } | {
84
+ readonly kind: "tool";
85
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
86
+ readonly tool_name: string;
87
+ readonly input?: import("effect/Schema").Json;
88
+ } | import("effect/Schema").Struct.ReadonlySide<{
89
+ readonly kind: import("effect/Schema").Literal<"approval">;
90
+ readonly prompt: import("effect/Schema").String;
91
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
92
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
93
+ };
94
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
95
+ readonly kind: import("effect/Schema").Literal<"timer">;
96
+ readonly duration_ms: import("effect/Schema").Int;
97
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
98
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
99
+ };
100
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
101
+ readonly kind: import("effect/Schema").Literal<"branch">;
102
+ readonly condition: import("effect/Schema").String;
103
+ readonly when_true: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
104
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
105
+ };
106
+ readonly when_false: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
107
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
108
+ };
109
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
110
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
111
+ };
112
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
113
+ readonly kind: import("effect/Schema").Literal<"parallel">;
114
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
115
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
116
+ }>;
117
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
118
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
119
+ };
120
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
121
+ readonly kind: import("effect/Schema").Literal<"join">;
122
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
123
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
124
+ }>;
125
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
126
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
127
+ };
128
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
129
+ readonly kind: import("effect/Schema").Literal<"retry">;
130
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
131
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
132
+ };
133
+ readonly max_attempts: import("effect/Schema").Int;
134
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
135
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
136
+ };
137
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
138
+ readonly kind: import("effect/Schema").Literal<"budget">;
139
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
140
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
141
+ };
142
+ readonly limit: import("effect/Schema").Int;
143
+ readonly unit: import("effect/Schema").Literals<readonly ["tokens", "milliseconds", "operations"]>;
144
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
145
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
146
+ };
147
+ }, "Type"> | {
148
+ readonly kind: "cancellation";
149
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
150
+ readonly operation: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
151
+ readonly on_cancel?: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
152
+ } | import("effect/Schema").Struct.ReadonlySide<{
153
+ readonly kind: import("effect/Schema").Literal<"compensation">;
154
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
155
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
156
+ };
157
+ readonly compensate_with: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
158
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
159
+ };
160
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
161
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
162
+ };
163
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
164
+ readonly kind: import("effect/Schema").Literal<"structured-completion">;
165
+ readonly schema_ref: import("effect/Schema").String;
166
+ readonly value_from: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
167
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
168
+ };
169
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
170
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
171
+ };
172
+ }, "Type">)[];
173
+ readonly entry_operation_id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
174
+ readonly metadata?: {
175
+ readonly [x: string]: import("effect/Schema").Json;
176
+ };
177
+ } | {
178
+ readonly name: string;
179
+ readonly version: 2;
180
+ readonly operations: readonly (import("effect/Schema").Struct.ReadonlySide<{
181
+ readonly kind: import("effect/Schema").Literal<"sequence">;
182
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
183
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
184
+ }>;
185
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
186
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
187
+ };
188
+ }, "Type"> | {
189
+ readonly kind: "tool";
190
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
191
+ readonly tool_name: string;
192
+ readonly input?: import("effect/Schema").Json;
193
+ } | import("effect/Schema").Struct.ReadonlySide<{
194
+ readonly kind: import("effect/Schema").Literal<"approval">;
195
+ readonly prompt: import("effect/Schema").String;
196
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
197
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
198
+ };
199
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
200
+ readonly kind: import("effect/Schema").Literal<"timer">;
201
+ readonly duration_ms: import("effect/Schema").Int;
202
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
203
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
204
+ };
205
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
206
+ readonly kind: import("effect/Schema").Literal<"branch">;
207
+ readonly condition: import("effect/Schema").String;
208
+ readonly when_true: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
209
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
210
+ };
211
+ readonly when_false: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
212
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
213
+ };
214
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
215
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
216
+ };
217
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
218
+ readonly kind: import("effect/Schema").Literal<"retry">;
219
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
220
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
221
+ };
222
+ readonly max_attempts: import("effect/Schema").Int;
223
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
224
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
225
+ };
226
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
227
+ readonly kind: import("effect/Schema").Literal<"budget">;
228
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
229
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
230
+ };
231
+ readonly limit: import("effect/Schema").Int;
232
+ readonly unit: import("effect/Schema").Literals<readonly ["tokens", "milliseconds", "operations"]>;
233
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
234
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
235
+ };
236
+ }, "Type"> | {
237
+ readonly kind: "cancellation";
238
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
239
+ readonly operation: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
240
+ readonly on_cancel?: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
241
+ } | import("effect/Schema").Struct.ReadonlySide<{
242
+ readonly kind: import("effect/Schema").Literal<"compensation">;
243
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
244
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
245
+ };
246
+ readonly compensate_with: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
247
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
248
+ };
249
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
250
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
251
+ };
252
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
253
+ readonly kind: import("effect/Schema").Literal<"structured-completion">;
254
+ readonly schema_ref: import("effect/Schema").String;
255
+ readonly value_from: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
256
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
257
+ };
258
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
259
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
260
+ };
261
+ }, "Type"> | {
262
+ readonly kind: "child";
263
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
264
+ readonly address_id: string & import("effect/Brand").Brand<"Relay.AddressId">;
265
+ readonly input?: import("effect/Schema").Json;
266
+ readonly preset_name?: string;
267
+ } | import("effect/Schema").Struct.ReadonlySide<{
268
+ readonly kind: import("effect/Schema").Literal<"parallel">;
269
+ readonly fan_out_key: import("effect/Schema").String;
270
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
271
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
272
+ }>;
273
+ readonly max_concurrency: import("effect/Schema").Int;
274
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
275
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
276
+ };
277
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
278
+ readonly kind: import("effect/Schema").Literal<"join">;
279
+ readonly parallel_operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
280
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
281
+ };
282
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
283
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
284
+ }>;
285
+ readonly policy: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"all", {}>, import("effect/Schema").TaggedStruct<"first-success", {}>, import("effect/Schema").TaggedStruct<"quorum", {
286
+ readonly count: import("effect/Schema").Int;
287
+ }>, import("effect/Schema").TaggedStruct<"best-effort", {}>]>;
288
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
289
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
290
+ };
291
+ }, "Type">)[];
292
+ readonly entry_operation_id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
293
+ readonly metadata?: {
294
+ readonly [x: string]: import("effect/Schema").Json;
295
+ };
296
+ }>>, {
297
+ name: string;
298
+ tableName: "relay_workflow_definition_revisions";
299
+ dataType: "object json";
300
+ data: {
301
+ readonly name: string;
302
+ readonly version: 1;
303
+ readonly operations: readonly (import("effect/Schema").Struct.ReadonlySide<{
304
+ readonly kind: import("effect/Schema").Literal<"sequence">;
305
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
306
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
307
+ }>;
308
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
309
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
310
+ };
311
+ }, "Type"> | {
312
+ readonly kind: "child";
313
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
314
+ readonly workflow_id: string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
315
+ readonly input?: import("effect/Schema").Json;
316
+ } | {
317
+ readonly kind: "tool";
318
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
319
+ readonly tool_name: string;
320
+ readonly input?: import("effect/Schema").Json;
321
+ } | import("effect/Schema").Struct.ReadonlySide<{
322
+ readonly kind: import("effect/Schema").Literal<"approval">;
323
+ readonly prompt: import("effect/Schema").String;
324
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
325
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
326
+ };
327
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
328
+ readonly kind: import("effect/Schema").Literal<"timer">;
329
+ readonly duration_ms: import("effect/Schema").Int;
330
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
331
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
332
+ };
333
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
334
+ readonly kind: import("effect/Schema").Literal<"branch">;
335
+ readonly condition: import("effect/Schema").String;
336
+ readonly when_true: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
337
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
338
+ };
339
+ readonly when_false: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
340
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
341
+ };
342
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
343
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
344
+ };
345
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
346
+ readonly kind: import("effect/Schema").Literal<"parallel">;
347
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
348
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
349
+ }>;
350
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
351
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
352
+ };
353
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
354
+ readonly kind: import("effect/Schema").Literal<"join">;
355
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
356
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
357
+ }>;
358
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
359
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
360
+ };
361
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
362
+ readonly kind: import("effect/Schema").Literal<"retry">;
363
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
364
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
365
+ };
366
+ readonly max_attempts: import("effect/Schema").Int;
367
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
368
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
369
+ };
370
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
371
+ readonly kind: import("effect/Schema").Literal<"budget">;
372
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
373
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
374
+ };
375
+ readonly limit: import("effect/Schema").Int;
376
+ readonly unit: import("effect/Schema").Literals<readonly ["tokens", "milliseconds", "operations"]>;
377
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
378
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
379
+ };
380
+ }, "Type"> | {
381
+ readonly kind: "cancellation";
382
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
383
+ readonly operation: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
384
+ readonly on_cancel?: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
385
+ } | import("effect/Schema").Struct.ReadonlySide<{
386
+ readonly kind: import("effect/Schema").Literal<"compensation">;
387
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
388
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
389
+ };
390
+ readonly compensate_with: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
391
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
392
+ };
393
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
394
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
395
+ };
396
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
397
+ readonly kind: import("effect/Schema").Literal<"structured-completion">;
398
+ readonly schema_ref: import("effect/Schema").String;
399
+ readonly value_from: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
400
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
401
+ };
402
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
403
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
404
+ };
405
+ }, "Type">)[];
406
+ readonly entry_operation_id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
407
+ readonly metadata?: {
408
+ readonly [x: string]: import("effect/Schema").Json;
409
+ };
410
+ } | {
411
+ readonly name: string;
412
+ readonly version: 2;
413
+ readonly operations: readonly (import("effect/Schema").Struct.ReadonlySide<{
414
+ readonly kind: import("effect/Schema").Literal<"sequence">;
415
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
416
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
417
+ }>;
418
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
419
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
420
+ };
421
+ }, "Type"> | {
422
+ readonly kind: "tool";
423
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
424
+ readonly tool_name: string;
425
+ readonly input?: import("effect/Schema").Json;
426
+ } | import("effect/Schema").Struct.ReadonlySide<{
427
+ readonly kind: import("effect/Schema").Literal<"approval">;
428
+ readonly prompt: import("effect/Schema").String;
429
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
430
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
431
+ };
432
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
433
+ readonly kind: import("effect/Schema").Literal<"timer">;
434
+ readonly duration_ms: import("effect/Schema").Int;
435
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
436
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
437
+ };
438
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
439
+ readonly kind: import("effect/Schema").Literal<"branch">;
440
+ readonly condition: import("effect/Schema").String;
441
+ readonly when_true: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
442
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
443
+ };
444
+ readonly when_false: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
445
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
446
+ };
447
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
448
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
449
+ };
450
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
451
+ readonly kind: import("effect/Schema").Literal<"retry">;
452
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
453
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
454
+ };
455
+ readonly max_attempts: import("effect/Schema").Int;
456
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
457
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
458
+ };
459
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
460
+ readonly kind: import("effect/Schema").Literal<"budget">;
461
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
462
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
463
+ };
464
+ readonly limit: import("effect/Schema").Int;
465
+ readonly unit: import("effect/Schema").Literals<readonly ["tokens", "milliseconds", "operations"]>;
466
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
467
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
468
+ };
469
+ }, "Type"> | {
470
+ readonly kind: "cancellation";
471
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
472
+ readonly operation: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
473
+ readonly on_cancel?: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
474
+ } | import("effect/Schema").Struct.ReadonlySide<{
475
+ readonly kind: import("effect/Schema").Literal<"compensation">;
476
+ readonly operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
477
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
478
+ };
479
+ readonly compensate_with: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
480
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
481
+ };
482
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
483
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
484
+ };
485
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
486
+ readonly kind: import("effect/Schema").Literal<"structured-completion">;
487
+ readonly schema_ref: import("effect/Schema").String;
488
+ readonly value_from: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
489
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
490
+ };
491
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
492
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
493
+ };
494
+ }, "Type"> | {
495
+ readonly kind: "child";
496
+ readonly id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
497
+ readonly address_id: string & import("effect/Brand").Brand<"Relay.AddressId">;
498
+ readonly input?: import("effect/Schema").Json;
499
+ readonly preset_name?: string;
500
+ } | import("effect/Schema").Struct.ReadonlySide<{
501
+ readonly kind: import("effect/Schema").Literal<"parallel">;
502
+ readonly fan_out_key: import("effect/Schema").String;
503
+ readonly operations: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
504
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
505
+ }>;
506
+ readonly max_concurrency: import("effect/Schema").Int;
507
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
508
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
509
+ };
510
+ }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
511
+ readonly kind: import("effect/Schema").Literal<"join">;
512
+ readonly parallel_operation: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
513
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
514
+ };
515
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
516
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
517
+ }>;
518
+ readonly policy: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"all", {}>, import("effect/Schema").TaggedStruct<"first-success", {}>, import("effect/Schema").TaggedStruct<"quorum", {
519
+ readonly count: import("effect/Schema").Int;
520
+ }>, import("effect/Schema").TaggedStruct<"best-effort", {}>]>;
521
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Relay.WorkflowOperationId"> & {
522
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
523
+ };
524
+ }, "Type">)[];
525
+ readonly entry_operation_id: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
526
+ readonly metadata?: {
527
+ readonly [x: string]: import("effect/Schema").Json;
528
+ };
529
+ };
530
+ driverParam: unknown;
531
+ notNull: true;
532
+ hasDefault: false;
533
+ isPrimaryKey: false;
534
+ isAutoincrement: false;
535
+ hasRuntimeDefault: false;
536
+ enumValues: undefined;
537
+ identity: undefined;
538
+ generated: undefined;
539
+ }>;
540
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_definition_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
541
+ name: string;
542
+ tableName: "relay_workflow_definition_revisions";
543
+ dataType: "object date";
544
+ data: Date;
545
+ driverParam: string;
546
+ notNull: true;
547
+ hasDefault: true;
548
+ isPrimaryKey: false;
549
+ isAutoincrement: false;
550
+ hasRuntimeDefault: false;
551
+ enumValues: undefined;
552
+ identity: undefined;
553
+ generated: undefined;
554
+ }>;
555
+ };
556
+ dialect: "pg";
557
+ }>;
558
+ export declare const relayWorkflowRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
559
+ name: "relay_workflow_runs";
560
+ schema: undefined;
561
+ columns: {
562
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
563
+ name: string;
564
+ tableName: "relay_workflow_runs";
565
+ dataType: "string";
566
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
567
+ driverParam: string;
568
+ notNull: true;
569
+ hasDefault: true;
570
+ isPrimaryKey: false;
571
+ isAutoincrement: false;
572
+ hasRuntimeDefault: false;
573
+ enumValues: undefined;
574
+ identity: undefined;
575
+ generated: undefined;
576
+ }>;
577
+ executionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ExecutionId">>>, {
578
+ name: string;
579
+ tableName: "relay_workflow_runs";
580
+ dataType: "string";
581
+ data: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
582
+ driverParam: string;
583
+ notNull: true;
584
+ hasDefault: false;
585
+ isPrimaryKey: false;
586
+ isAutoincrement: false;
587
+ hasRuntimeDefault: false;
588
+ enumValues: undefined;
589
+ identity: undefined;
590
+ generated: undefined;
591
+ }>;
592
+ workflowDefinitionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">>>, {
593
+ name: string;
594
+ tableName: "relay_workflow_runs";
595
+ dataType: "string";
596
+ data: string & import("effect/Brand").Brand<"Relay.WorkflowDefinitionId">;
597
+ driverParam: string;
598
+ notNull: true;
599
+ hasDefault: false;
600
+ isPrimaryKey: false;
601
+ isAutoincrement: false;
602
+ hasRuntimeDefault: false;
603
+ enumValues: undefined;
604
+ identity: undefined;
605
+ generated: undefined;
606
+ }>;
607
+ workflowDefinitionRevision: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgIntegerBuilder, number>>, {
608
+ name: string;
609
+ tableName: "relay_workflow_runs";
610
+ dataType: "number int32";
611
+ data: number;
612
+ driverParam: string | number;
613
+ notNull: true;
614
+ hasDefault: false;
615
+ isPrimaryKey: false;
616
+ isAutoincrement: false;
617
+ hasRuntimeDefault: false;
618
+ enumValues: undefined;
619
+ identity: undefined;
620
+ generated: undefined;
621
+ }>;
622
+ workflowDefinitionDigest: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string>>, {
623
+ name: string;
624
+ tableName: "relay_workflow_runs";
625
+ dataType: "string";
626
+ data: string;
627
+ driverParam: string;
628
+ notNull: true;
629
+ hasDefault: false;
630
+ isPrimaryKey: false;
631
+ isAutoincrement: false;
632
+ hasRuntimeDefault: false;
633
+ enumValues: undefined;
634
+ identity: undefined;
635
+ generated: undefined;
636
+ }>;
637
+ status: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, "running" | "completed" | "failed" | "cancelled">>, {
638
+ name: string;
639
+ tableName: "relay_workflow_runs";
640
+ dataType: "string";
641
+ data: "running" | "completed" | "failed" | "cancelled";
642
+ driverParam: string;
643
+ notNull: true;
644
+ hasDefault: false;
645
+ isPrimaryKey: false;
646
+ isAutoincrement: false;
647
+ hasRuntimeDefault: false;
648
+ enumValues: undefined;
649
+ identity: undefined;
650
+ generated: undefined;
651
+ }>;
652
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
653
+ name: string;
654
+ tableName: "relay_workflow_runs";
655
+ dataType: "object date";
656
+ data: Date;
657
+ driverParam: string;
658
+ notNull: true;
659
+ hasDefault: true;
660
+ isPrimaryKey: false;
661
+ isAutoincrement: false;
662
+ hasRuntimeDefault: false;
663
+ enumValues: undefined;
664
+ identity: undefined;
665
+ generated: undefined;
666
+ }>;
667
+ updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_runs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
668
+ name: string;
669
+ tableName: "relay_workflow_runs";
670
+ dataType: "object date";
671
+ data: Date;
672
+ driverParam: string;
673
+ notNull: true;
674
+ hasDefault: true;
675
+ isPrimaryKey: false;
676
+ isAutoincrement: false;
677
+ hasRuntimeDefault: false;
678
+ enumValues: undefined;
679
+ identity: undefined;
680
+ generated: undefined;
681
+ }>;
682
+ };
683
+ dialect: "pg";
684
+ }>;
685
+ export declare const relayWorkflowOperationStates: import("drizzle-orm/pg-core").PgTableWithColumns<{
686
+ name: "relay_workflow_operation_states";
687
+ schema: undefined;
688
+ columns: {
689
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
690
+ name: string;
691
+ tableName: "relay_workflow_operation_states";
692
+ dataType: "string";
693
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
694
+ driverParam: string;
695
+ notNull: true;
696
+ hasDefault: true;
697
+ isPrimaryKey: false;
698
+ isAutoincrement: false;
699
+ hasRuntimeDefault: false;
700
+ enumValues: undefined;
701
+ identity: undefined;
702
+ generated: undefined;
703
+ }>;
704
+ executionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ExecutionId">>>, {
705
+ name: string;
706
+ tableName: "relay_workflow_operation_states";
707
+ dataType: "string";
708
+ data: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
709
+ driverParam: string;
710
+ notNull: true;
711
+ hasDefault: false;
712
+ isPrimaryKey: false;
713
+ isAutoincrement: false;
714
+ hasRuntimeDefault: false;
715
+ enumValues: undefined;
716
+ identity: undefined;
717
+ generated: undefined;
718
+ }>;
719
+ operationId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">>>, {
720
+ name: string;
721
+ tableName: "relay_workflow_operation_states";
722
+ dataType: "string";
723
+ data: string & import("effect/Brand").Brand<"Relay.WorkflowOperationId">;
724
+ driverParam: string;
725
+ notNull: true;
726
+ hasDefault: false;
727
+ isPrimaryKey: false;
728
+ isAutoincrement: false;
729
+ hasRuntimeDefault: false;
730
+ enumValues: undefined;
731
+ identity: undefined;
732
+ generated: undefined;
733
+ }>;
734
+ status: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
735
+ name: string;
736
+ tableName: "relay_workflow_operation_states";
737
+ dataType: "string";
738
+ data: string;
739
+ driverParam: string;
740
+ notNull: true;
741
+ hasDefault: false;
742
+ isPrimaryKey: false;
743
+ isAutoincrement: false;
744
+ hasRuntimeDefault: false;
745
+ enumValues: undefined;
746
+ identity: undefined;
747
+ generated: undefined;
748
+ }>;
749
+ fanOutId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
750
+ name: string;
751
+ tableName: "relay_workflow_operation_states";
752
+ dataType: "string";
753
+ data: string;
754
+ driverParam: string;
755
+ notNull: false;
756
+ hasDefault: false;
757
+ isPrimaryKey: false;
758
+ isAutoincrement: false;
759
+ hasRuntimeDefault: false;
760
+ enumValues: undefined;
761
+ identity: undefined;
762
+ generated: undefined;
763
+ }>;
764
+ decision: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgBooleanBuilder, {
765
+ name: string;
766
+ tableName: "relay_workflow_operation_states";
767
+ dataType: "boolean";
768
+ data: boolean;
769
+ driverParam: boolean;
770
+ notNull: false;
771
+ hasDefault: false;
772
+ isPrimaryKey: false;
773
+ isAutoincrement: false;
774
+ hasRuntimeDefault: false;
775
+ enumValues: undefined;
776
+ identity: undefined;
777
+ generated: undefined;
778
+ }>;
779
+ outputJson: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgJsonbBuilder, {
780
+ name: string;
781
+ tableName: "relay_workflow_operation_states";
782
+ dataType: "object json";
783
+ data: unknown;
784
+ driverParam: unknown;
785
+ notNull: false;
786
+ hasDefault: false;
787
+ isPrimaryKey: false;
788
+ isAutoincrement: false;
789
+ hasRuntimeDefault: false;
790
+ enumValues: undefined;
791
+ identity: undefined;
792
+ generated: undefined;
793
+ }>;
794
+ attempt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgIntegerBuilder, {
795
+ name: string;
796
+ tableName: "relay_workflow_operation_states";
797
+ dataType: "number int32";
798
+ data: number;
799
+ driverParam: string | number;
800
+ notNull: false;
801
+ hasDefault: false;
802
+ isPrimaryKey: false;
803
+ isAutoincrement: false;
804
+ hasRuntimeDefault: false;
805
+ enumValues: undefined;
806
+ identity: undefined;
807
+ generated: undefined;
808
+ }>;
809
+ backoffUntil: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgTimestampBuilder, {
810
+ name: string;
811
+ tableName: "relay_workflow_operation_states";
812
+ dataType: "object date";
813
+ data: Date;
814
+ driverParam: string;
815
+ notNull: false;
816
+ hasDefault: false;
817
+ isPrimaryKey: false;
818
+ isAutoincrement: false;
819
+ hasRuntimeDefault: false;
820
+ enumValues: undefined;
821
+ identity: undefined;
822
+ generated: undefined;
823
+ }>;
824
+ compensationOperationId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
825
+ name: string;
826
+ tableName: "relay_workflow_operation_states";
827
+ dataType: "string";
828
+ data: string;
829
+ driverParam: string;
830
+ notNull: false;
831
+ hasDefault: false;
832
+ isPrimaryKey: false;
833
+ isAutoincrement: false;
834
+ hasRuntimeDefault: false;
835
+ enumValues: undefined;
836
+ identity: undefined;
837
+ generated: undefined;
838
+ }>;
839
+ startedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgTimestampBuilder, {
840
+ name: string;
841
+ tableName: "relay_workflow_operation_states";
842
+ dataType: "object date";
843
+ data: Date;
844
+ driverParam: string;
845
+ notNull: false;
846
+ hasDefault: false;
847
+ isPrimaryKey: false;
848
+ isAutoincrement: false;
849
+ hasRuntimeDefault: false;
850
+ enumValues: undefined;
851
+ identity: undefined;
852
+ generated: undefined;
853
+ }>;
854
+ completedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").PgTimestampBuilder, {
855
+ name: string;
856
+ tableName: "relay_workflow_operation_states";
857
+ dataType: "object date";
858
+ data: Date;
859
+ driverParam: string;
860
+ notNull: false;
861
+ hasDefault: false;
862
+ isPrimaryKey: false;
863
+ isAutoincrement: false;
864
+ hasRuntimeDefault: false;
865
+ enumValues: undefined;
866
+ identity: undefined;
867
+ generated: undefined;
868
+ }>;
869
+ updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_operation_states", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>, {
870
+ name: string;
871
+ tableName: "relay_workflow_operation_states";
872
+ dataType: "object date";
873
+ data: Date;
874
+ driverParam: string;
875
+ notNull: true;
876
+ hasDefault: false;
877
+ isPrimaryKey: false;
878
+ isAutoincrement: false;
879
+ hasRuntimeDefault: false;
880
+ enumValues: undefined;
881
+ identity: undefined;
882
+ generated: undefined;
883
+ }>;
884
+ };
885
+ dialect: "pg";
886
+ }>;
887
+ export declare const relayWorkflowLifecycleEvents: import("drizzle-orm/pg-core").PgTableWithColumns<{
888
+ name: "relay_workflow_lifecycle_events";
889
+ schema: undefined;
890
+ columns: {
891
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
892
+ name: string;
893
+ tableName: "relay_workflow_lifecycle_events";
894
+ dataType: "string";
895
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
896
+ driverParam: string;
897
+ notNull: true;
898
+ hasDefault: true;
899
+ isPrimaryKey: false;
900
+ isAutoincrement: false;
901
+ hasRuntimeDefault: false;
902
+ enumValues: undefined;
903
+ identity: undefined;
904
+ generated: undefined;
905
+ }>;
906
+ executionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ExecutionId">>>, {
907
+ name: string;
908
+ tableName: "relay_workflow_lifecycle_events";
909
+ dataType: "string";
910
+ data: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
911
+ driverParam: string;
912
+ notNull: true;
913
+ hasDefault: false;
914
+ isPrimaryKey: false;
915
+ isAutoincrement: false;
916
+ hasRuntimeDefault: false;
917
+ enumValues: undefined;
918
+ identity: undefined;
919
+ generated: undefined;
920
+ }>;
921
+ sequence: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
922
+ name: string;
923
+ tableName: "relay_workflow_lifecycle_events";
924
+ dataType: "number int32";
925
+ data: number;
926
+ driverParam: string | number;
927
+ notNull: true;
928
+ hasDefault: false;
929
+ isPrimaryKey: false;
930
+ isAutoincrement: false;
931
+ hasRuntimeDefault: false;
932
+ enumValues: undefined;
933
+ identity: undefined;
934
+ generated: undefined;
935
+ }>;
936
+ eventType: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
937
+ name: string;
938
+ tableName: "relay_workflow_lifecycle_events";
939
+ dataType: "string";
940
+ data: string;
941
+ driverParam: string;
942
+ notNull: true;
943
+ hasDefault: false;
944
+ isPrimaryKey: false;
945
+ isAutoincrement: false;
946
+ hasRuntimeDefault: false;
947
+ enumValues: undefined;
948
+ identity: undefined;
949
+ generated: undefined;
950
+ }>;
951
+ operationId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
952
+ name: string;
953
+ tableName: "relay_workflow_lifecycle_events";
954
+ dataType: "string";
955
+ data: string;
956
+ driverParam: string;
957
+ notNull: false;
958
+ hasDefault: false;
959
+ isPrimaryKey: false;
960
+ isAutoincrement: false;
961
+ hasRuntimeDefault: false;
962
+ enumValues: undefined;
963
+ identity: undefined;
964
+ generated: undefined;
965
+ }>;
966
+ dataJson: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").PgJsonbBuilder, {
967
+ name: string;
968
+ tableName: "relay_workflow_lifecycle_events";
969
+ dataType: "object json";
970
+ data: unknown;
971
+ driverParam: unknown;
972
+ notNull: false;
973
+ hasDefault: false;
974
+ isPrimaryKey: false;
975
+ isAutoincrement: false;
976
+ hasRuntimeDefault: false;
977
+ enumValues: undefined;
978
+ identity: undefined;
979
+ generated: undefined;
980
+ }>;
981
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_workflow_lifecycle_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>, {
982
+ name: string;
983
+ tableName: "relay_workflow_lifecycle_events";
984
+ dataType: "object date";
985
+ data: Date;
986
+ driverParam: string;
987
+ notNull: true;
988
+ hasDefault: false;
989
+ isPrimaryKey: false;
990
+ isAutoincrement: false;
991
+ hasRuntimeDefault: false;
992
+ enumValues: undefined;
993
+ identity: undefined;
994
+ generated: undefined;
995
+ }>;
996
+ };
997
+ dialect: "pg";
998
+ }>;
3
999
  export declare const relayEntityKinds: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
1000
  name: "relay_entity_kinds";
5
1001
  schema: undefined;
@@ -3035,6 +4031,275 @@ export declare const relayChildExecutions: import("drizzle-orm/pg-core").PgTable
3035
4031
  };
3036
4032
  dialect: "pg";
3037
4033
  }>;
4034
+ export declare const relayChildFanOuts: import("drizzle-orm/pg-core").PgTableWithColumns<{
4035
+ name: "relay_child_fan_outs";
4036
+ schema: undefined;
4037
+ columns: {
4038
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
4039
+ name: string;
4040
+ tableName: "relay_child_fan_outs";
4041
+ dataType: "string";
4042
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
4043
+ driverParam: string;
4044
+ notNull: true;
4045
+ hasDefault: true;
4046
+ isPrimaryKey: false;
4047
+ isAutoincrement: false;
4048
+ hasRuntimeDefault: false;
4049
+ enumValues: undefined;
4050
+ identity: undefined;
4051
+ generated: undefined;
4052
+ }>;
4053
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ChildFanOutId">>>, {
4054
+ name: string;
4055
+ tableName: "relay_child_fan_outs";
4056
+ dataType: "string";
4057
+ data: string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
4058
+ driverParam: string;
4059
+ notNull: true;
4060
+ hasDefault: false;
4061
+ isPrimaryKey: false;
4062
+ isAutoincrement: false;
4063
+ hasRuntimeDefault: false;
4064
+ enumValues: undefined;
4065
+ identity: undefined;
4066
+ generated: undefined;
4067
+ }>;
4068
+ parentExecutionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ExecutionId">>>, {
4069
+ name: string;
4070
+ tableName: "relay_child_fan_outs";
4071
+ dataType: "string";
4072
+ data: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
4073
+ driverParam: string;
4074
+ notNull: true;
4075
+ hasDefault: false;
4076
+ isPrimaryKey: false;
4077
+ isAutoincrement: false;
4078
+ hasRuntimeDefault: false;
4079
+ enumValues: undefined;
4080
+ identity: undefined;
4081
+ generated: undefined;
4082
+ }>;
4083
+ definitionJson: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, ChildOrchestration.FanOutDefinition>>, {
4084
+ name: string;
4085
+ tableName: "relay_child_fan_outs";
4086
+ dataType: "object json";
4087
+ data: ChildOrchestration.FanOutDefinition;
4088
+ driverParam: unknown;
4089
+ notNull: true;
4090
+ hasDefault: false;
4091
+ isPrimaryKey: false;
4092
+ isAutoincrement: false;
4093
+ hasRuntimeDefault: false;
4094
+ enumValues: undefined;
4095
+ identity: undefined;
4096
+ generated: undefined;
4097
+ }>;
4098
+ state: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, "failed" | "cancelled" | "joining" | "satisfied">>>, {
4099
+ name: string;
4100
+ tableName: "relay_child_fan_outs";
4101
+ dataType: "string";
4102
+ data: "failed" | "cancelled" | "joining" | "satisfied";
4103
+ driverParam: string;
4104
+ notNull: true;
4105
+ hasDefault: true;
4106
+ isPrimaryKey: false;
4107
+ isAutoincrement: false;
4108
+ hasRuntimeDefault: false;
4109
+ enumValues: undefined;
4110
+ identity: undefined;
4111
+ generated: undefined;
4112
+ }>;
4113
+ satisfiedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").PgTimestampBuilder, {
4114
+ name: string;
4115
+ tableName: "relay_child_fan_outs";
4116
+ dataType: "object date";
4117
+ data: Date;
4118
+ driverParam: string;
4119
+ notNull: false;
4120
+ hasDefault: false;
4121
+ isPrimaryKey: false;
4122
+ isAutoincrement: false;
4123
+ hasRuntimeDefault: false;
4124
+ enumValues: undefined;
4125
+ identity: undefined;
4126
+ generated: undefined;
4127
+ }>;
4128
+ failedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").PgTimestampBuilder, {
4129
+ name: string;
4130
+ tableName: "relay_child_fan_outs";
4131
+ dataType: "object date";
4132
+ data: Date;
4133
+ driverParam: string;
4134
+ notNull: false;
4135
+ hasDefault: false;
4136
+ isPrimaryKey: false;
4137
+ isAutoincrement: false;
4138
+ hasRuntimeDefault: false;
4139
+ enumValues: undefined;
4140
+ identity: undefined;
4141
+ generated: undefined;
4142
+ }>;
4143
+ cancelledAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").PgTimestampBuilder, {
4144
+ name: string;
4145
+ tableName: "relay_child_fan_outs";
4146
+ dataType: "object date";
4147
+ data: Date;
4148
+ driverParam: string;
4149
+ notNull: false;
4150
+ hasDefault: false;
4151
+ isPrimaryKey: false;
4152
+ isAutoincrement: false;
4153
+ hasRuntimeDefault: false;
4154
+ enumValues: undefined;
4155
+ identity: undefined;
4156
+ generated: undefined;
4157
+ }>;
4158
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_outs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
4159
+ name: string;
4160
+ tableName: "relay_child_fan_outs";
4161
+ dataType: "object date";
4162
+ data: Date;
4163
+ driverParam: string;
4164
+ notNull: true;
4165
+ hasDefault: true;
4166
+ isPrimaryKey: false;
4167
+ isAutoincrement: false;
4168
+ hasRuntimeDefault: false;
4169
+ enumValues: undefined;
4170
+ identity: undefined;
4171
+ generated: undefined;
4172
+ }>;
4173
+ };
4174
+ dialect: "pg";
4175
+ }>;
4176
+ export declare const relayChildFanOutMembers: import("drizzle-orm/pg-core").PgTableWithColumns<{
4177
+ name: "relay_child_fan_out_members";
4178
+ schema: undefined;
4179
+ columns: {
4180
+ tenantId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.TenantId">>>>, {
4181
+ name: string;
4182
+ tableName: "relay_child_fan_out_members";
4183
+ dataType: "string";
4184
+ data: string & import("effect/Brand").Brand<"Relay.TenantId">;
4185
+ driverParam: string;
4186
+ notNull: true;
4187
+ hasDefault: true;
4188
+ isPrimaryKey: false;
4189
+ isAutoincrement: false;
4190
+ hasRuntimeDefault: false;
4191
+ enumValues: undefined;
4192
+ identity: undefined;
4193
+ generated: undefined;
4194
+ }>;
4195
+ fanOutId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ChildFanOutId">>>, {
4196
+ name: string;
4197
+ tableName: "relay_child_fan_out_members";
4198
+ dataType: "string";
4199
+ data: string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
4200
+ driverParam: string;
4201
+ notNull: true;
4202
+ hasDefault: false;
4203
+ isPrimaryKey: false;
4204
+ isAutoincrement: false;
4205
+ hasRuntimeDefault: false;
4206
+ enumValues: undefined;
4207
+ identity: undefined;
4208
+ generated: undefined;
4209
+ }>;
4210
+ childExecutionId: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, string & import("effect/Brand").Brand<"Relay.ChildExecutionId">>>, {
4211
+ name: string;
4212
+ tableName: "relay_child_fan_out_members";
4213
+ dataType: "string";
4214
+ data: string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
4215
+ driverParam: string;
4216
+ notNull: true;
4217
+ hasDefault: false;
4218
+ isPrimaryKey: false;
4219
+ isAutoincrement: false;
4220
+ hasRuntimeDefault: false;
4221
+ enumValues: undefined;
4222
+ identity: undefined;
4223
+ generated: undefined;
4224
+ }>;
4225
+ ordinal: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
4226
+ name: string;
4227
+ tableName: "relay_child_fan_out_members";
4228
+ dataType: "number int32";
4229
+ data: number;
4230
+ driverParam: string | number;
4231
+ notNull: true;
4232
+ hasDefault: false;
4233
+ isPrimaryKey: false;
4234
+ isAutoincrement: false;
4235
+ hasRuntimeDefault: false;
4236
+ enumValues: undefined;
4237
+ identity: undefined;
4238
+ generated: undefined;
4239
+ }>;
4240
+ state: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, "running" | "completed" | "failed" | "queued" | "cancelled">>>, {
4241
+ name: string;
4242
+ tableName: "relay_child_fan_out_members";
4243
+ dataType: "string";
4244
+ data: "running" | "completed" | "failed" | "queued" | "cancelled";
4245
+ driverParam: string;
4246
+ notNull: true;
4247
+ hasDefault: true;
4248
+ isPrimaryKey: false;
4249
+ isAutoincrement: false;
4250
+ hasRuntimeDefault: false;
4251
+ enumValues: undefined;
4252
+ identity: undefined;
4253
+ generated: undefined;
4254
+ }>;
4255
+ outputJson: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, readonly Content.Part[]>, {
4256
+ name: string;
4257
+ tableName: "relay_child_fan_out_members";
4258
+ dataType: "object json";
4259
+ data: readonly Content.Part[];
4260
+ driverParam: unknown;
4261
+ notNull: false;
4262
+ hasDefault: false;
4263
+ isPrimaryKey: false;
4264
+ isAutoincrement: false;
4265
+ hasRuntimeDefault: false;
4266
+ enumValues: undefined;
4267
+ identity: undefined;
4268
+ generated: undefined;
4269
+ }>;
4270
+ error: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
4271
+ name: string;
4272
+ tableName: "relay_child_fan_out_members";
4273
+ dataType: "string";
4274
+ data: string;
4275
+ driverParam: string;
4276
+ notNull: false;
4277
+ hasDefault: false;
4278
+ isPrimaryKey: false;
4279
+ isAutoincrement: false;
4280
+ hasRuntimeDefault: false;
4281
+ enumValues: undefined;
4282
+ identity: undefined;
4283
+ generated: undefined;
4284
+ }>;
4285
+ completedAt: import("drizzle-orm/pg-core").PgBuildColumn<"relay_child_fan_out_members", import("drizzle-orm/pg-core").PgTimestampBuilder, {
4286
+ name: string;
4287
+ tableName: "relay_child_fan_out_members";
4288
+ dataType: "object date";
4289
+ data: Date;
4290
+ driverParam: string;
4291
+ notNull: false;
4292
+ hasDefault: false;
4293
+ isPrimaryKey: false;
4294
+ isAutoincrement: false;
4295
+ hasRuntimeDefault: false;
4296
+ enumValues: undefined;
4297
+ identity: undefined;
4298
+ generated: undefined;
4299
+ }>;
4300
+ };
4301
+ dialect: "pg";
4302
+ }>;
3038
4303
  export declare const relayEnvelopes: import("drizzle-orm/pg-core").PgTableWithColumns<{
3039
4304
  name: "relay_envelopes";
3040
4305
  schema: undefined;