@fleettools/events 0.1.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 (48) hide show
  1. package/dist/helpers.d.ts +72 -0
  2. package/dist/index.d.ts +10 -0
  3. package/dist/index.js +4816 -0
  4. package/dist/projections/index.d.ts +16 -0
  5. package/dist/projections/pilots.d.ts +19 -0
  6. package/dist/replay.d.ts +19 -0
  7. package/dist/src/helpers.d.ts +73 -0
  8. package/dist/src/helpers.d.ts.map +1 -0
  9. package/dist/src/index.d.ts +11 -0
  10. package/dist/src/index.d.ts.map +1 -0
  11. package/dist/src/projections/index.d.ts +17 -0
  12. package/dist/src/projections/index.d.ts.map +1 -0
  13. package/dist/src/projections/pilots.d.ts +20 -0
  14. package/dist/src/projections/pilots.d.ts.map +1 -0
  15. package/dist/src/replay.d.ts +20 -0
  16. package/dist/src/replay.d.ts.map +1 -0
  17. package/dist/src/store.d.ts +61 -0
  18. package/dist/src/store.d.ts.map +1 -0
  19. package/dist/src/types/base.d.ts +33 -0
  20. package/dist/src/types/base.d.ts.map +1 -0
  21. package/dist/src/types/checkpoints.d.ts +255 -0
  22. package/dist/src/types/checkpoints.d.ts.map +1 -0
  23. package/dist/src/types/coordination.d.ts +364 -0
  24. package/dist/src/types/coordination.d.ts.map +1 -0
  25. package/dist/src/types/index.d.ts +1692 -0
  26. package/dist/src/types/index.d.ts.map +1 -0
  27. package/dist/src/types/messages.d.ts +295 -0
  28. package/dist/src/types/messages.d.ts.map +1 -0
  29. package/dist/src/types/missions.d.ts +258 -0
  30. package/dist/src/types/missions.d.ts.map +1 -0
  31. package/dist/src/types/pilots.d.ts +153 -0
  32. package/dist/src/types/pilots.d.ts.map +1 -0
  33. package/dist/src/types/reservations.d.ts +173 -0
  34. package/dist/src/types/reservations.d.ts.map +1 -0
  35. package/dist/src/types/sorties.d.ts +372 -0
  36. package/dist/src/types/sorties.d.ts.map +1 -0
  37. package/dist/store.d.ts +56 -0
  38. package/dist/tsconfig.tsbuildinfo +1 -0
  39. package/dist/types/base.d.ts +32 -0
  40. package/dist/types/checkpoints.d.ts +254 -0
  41. package/dist/types/coordination.d.ts +363 -0
  42. package/dist/types/index.d.ts +1691 -0
  43. package/dist/types/messages.d.ts +294 -0
  44. package/dist/types/missions.d.ts +257 -0
  45. package/dist/types/pilots.d.ts +152 -0
  46. package/dist/types/reservations.d.ts +172 -0
  47. package/dist/types/sorties.d.ts +371 -0
  48. package/package.json +37 -0
@@ -0,0 +1,254 @@
1
+ /**
2
+ * FleetTools Checkpoint Event Schemas
3
+ *
4
+ * Zod schemas for checkpoint-related events.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Checkpoint created event
9
+ */
10
+ export declare const CheckpointCreatedSchema: z.ZodObject<{
11
+ id: z.ZodString;
12
+ project_key: z.ZodString;
13
+ timestamp: z.ZodString;
14
+ sequence: z.ZodNumber;
15
+ } & {
16
+ type: z.ZodLiteral<"checkpoint_created">;
17
+ data: z.ZodObject<{
18
+ checkpoint_id: z.ZodString;
19
+ mission_id: z.ZodOptional<z.ZodString>;
20
+ sortie_id: z.ZodOptional<z.ZodString>;
21
+ callsign: z.ZodString;
22
+ trigger: z.ZodString;
23
+ progress_percent: z.ZodOptional<z.ZodNumber>;
24
+ summary: z.ZodOptional<z.ZodString>;
25
+ context_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ callsign?: string;
28
+ sortie_id?: string;
29
+ mission_id?: string;
30
+ summary?: string;
31
+ checkpoint_id?: string;
32
+ trigger?: string;
33
+ progress_percent?: number;
34
+ context_data?: Record<string, unknown>;
35
+ }, {
36
+ callsign?: string;
37
+ sortie_id?: string;
38
+ mission_id?: string;
39
+ summary?: string;
40
+ checkpoint_id?: string;
41
+ trigger?: string;
42
+ progress_percent?: number;
43
+ context_data?: Record<string, unknown>;
44
+ }>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ type?: "checkpoint_created";
47
+ id?: string;
48
+ project_key?: string;
49
+ timestamp?: string;
50
+ sequence?: number;
51
+ data?: {
52
+ callsign?: string;
53
+ sortie_id?: string;
54
+ mission_id?: string;
55
+ summary?: string;
56
+ checkpoint_id?: string;
57
+ trigger?: string;
58
+ progress_percent?: number;
59
+ context_data?: Record<string, unknown>;
60
+ };
61
+ }, {
62
+ type?: "checkpoint_created";
63
+ id?: string;
64
+ project_key?: string;
65
+ timestamp?: string;
66
+ sequence?: number;
67
+ data?: {
68
+ callsign?: string;
69
+ sortie_id?: string;
70
+ mission_id?: string;
71
+ summary?: string;
72
+ checkpoint_id?: string;
73
+ trigger?: string;
74
+ progress_percent?: number;
75
+ context_data?: Record<string, unknown>;
76
+ };
77
+ }>;
78
+ /**
79
+ * Context compacted event
80
+ */
81
+ export declare const ContextCompactedSchema: z.ZodObject<{
82
+ id: z.ZodString;
83
+ project_key: z.ZodString;
84
+ timestamp: z.ZodString;
85
+ sequence: z.ZodNumber;
86
+ } & {
87
+ type: z.ZodLiteral<"context_compacted">;
88
+ data: z.ZodObject<{
89
+ checkpoint_id: z.ZodString;
90
+ compacted_by: z.ZodString;
91
+ original_size: z.ZodNumber;
92
+ compacted_size: z.ZodNumber;
93
+ compression_ratio: z.ZodNumber;
94
+ compacted_at: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ checkpoint_id?: string;
97
+ compacted_by?: string;
98
+ original_size?: number;
99
+ compacted_size?: number;
100
+ compression_ratio?: number;
101
+ compacted_at?: string;
102
+ }, {
103
+ checkpoint_id?: string;
104
+ compacted_by?: string;
105
+ original_size?: number;
106
+ compacted_size?: number;
107
+ compression_ratio?: number;
108
+ compacted_at?: string;
109
+ }>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type?: "context_compacted";
112
+ id?: string;
113
+ project_key?: string;
114
+ timestamp?: string;
115
+ sequence?: number;
116
+ data?: {
117
+ checkpoint_id?: string;
118
+ compacted_by?: string;
119
+ original_size?: number;
120
+ compacted_size?: number;
121
+ compression_ratio?: number;
122
+ compacted_at?: string;
123
+ };
124
+ }, {
125
+ type?: "context_compacted";
126
+ id?: string;
127
+ project_key?: string;
128
+ timestamp?: string;
129
+ sequence?: number;
130
+ data?: {
131
+ checkpoint_id?: string;
132
+ compacted_by?: string;
133
+ original_size?: number;
134
+ compacted_size?: number;
135
+ compression_ratio?: number;
136
+ compacted_at?: string;
137
+ };
138
+ }>;
139
+ /**
140
+ * Checkpoint restored event
141
+ */
142
+ export declare const CheckpointRestoredSchema: z.ZodObject<{
143
+ id: z.ZodString;
144
+ project_key: z.ZodString;
145
+ timestamp: z.ZodString;
146
+ sequence: z.ZodNumber;
147
+ } & {
148
+ type: z.ZodLiteral<"checkpoint_restored">;
149
+ data: z.ZodObject<{
150
+ checkpoint_id: z.ZodString;
151
+ restored_by: z.ZodString;
152
+ restored_at: z.ZodString;
153
+ restore_target: z.ZodString;
154
+ success: z.ZodBoolean;
155
+ notes: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ notes?: string;
158
+ success?: boolean;
159
+ checkpoint_id?: string;
160
+ restored_by?: string;
161
+ restored_at?: string;
162
+ restore_target?: string;
163
+ }, {
164
+ notes?: string;
165
+ success?: boolean;
166
+ checkpoint_id?: string;
167
+ restored_by?: string;
168
+ restored_at?: string;
169
+ restore_target?: string;
170
+ }>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type?: "checkpoint_restored";
173
+ id?: string;
174
+ project_key?: string;
175
+ timestamp?: string;
176
+ sequence?: number;
177
+ data?: {
178
+ notes?: string;
179
+ success?: boolean;
180
+ checkpoint_id?: string;
181
+ restored_by?: string;
182
+ restored_at?: string;
183
+ restore_target?: string;
184
+ };
185
+ }, {
186
+ type?: "checkpoint_restored";
187
+ id?: string;
188
+ project_key?: string;
189
+ timestamp?: string;
190
+ sequence?: number;
191
+ data?: {
192
+ notes?: string;
193
+ success?: boolean;
194
+ checkpoint_id?: string;
195
+ restored_by?: string;
196
+ restored_at?: string;
197
+ restore_target?: string;
198
+ };
199
+ }>;
200
+ /**
201
+ * Checkpoint deleted event
202
+ */
203
+ export declare const CheckpointDeletedSchema: z.ZodObject<{
204
+ id: z.ZodString;
205
+ project_key: z.ZodString;
206
+ timestamp: z.ZodString;
207
+ sequence: z.ZodNumber;
208
+ } & {
209
+ type: z.ZodLiteral<"checkpoint_deleted">;
210
+ data: z.ZodObject<{
211
+ checkpoint_id: z.ZodString;
212
+ deleted_by: z.ZodString;
213
+ deleted_at: z.ZodString;
214
+ reason: z.ZodEnum<["expired", "manual", "cleanup"]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ reason?: "manual" | "expired" | "cleanup";
217
+ deleted_by?: string;
218
+ checkpoint_id?: string;
219
+ deleted_at?: string;
220
+ }, {
221
+ reason?: "manual" | "expired" | "cleanup";
222
+ deleted_by?: string;
223
+ checkpoint_id?: string;
224
+ deleted_at?: string;
225
+ }>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type?: "checkpoint_deleted";
228
+ id?: string;
229
+ project_key?: string;
230
+ timestamp?: string;
231
+ sequence?: number;
232
+ data?: {
233
+ reason?: "manual" | "expired" | "cleanup";
234
+ deleted_by?: string;
235
+ checkpoint_id?: string;
236
+ deleted_at?: string;
237
+ };
238
+ }, {
239
+ type?: "checkpoint_deleted";
240
+ id?: string;
241
+ project_key?: string;
242
+ timestamp?: string;
243
+ sequence?: number;
244
+ data?: {
245
+ reason?: "manual" | "expired" | "cleanup";
246
+ deleted_by?: string;
247
+ checkpoint_id?: string;
248
+ deleted_at?: string;
249
+ };
250
+ }>;
251
+ export type CheckpointCreatedEvent = z.infer<typeof CheckpointCreatedSchema>;
252
+ export type ContextCompactedEvent = z.infer<typeof ContextCompactedSchema>;
253
+ export type CheckpointRestoredEvent = z.infer<typeof CheckpointRestoredSchema>;
254
+ export type CheckpointDeletedEvent = z.infer<typeof CheckpointDeletedSchema>;
@@ -0,0 +1,363 @@
1
+ /**
2
+ * FleetTools Coordination Event Schemas
3
+ *
4
+ * Zod schemas for coordination-related events.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Coordinator decision event
9
+ */
10
+ export declare const CoordinatorDecisionSchema: z.ZodObject<{
11
+ id: z.ZodString;
12
+ project_key: z.ZodString;
13
+ timestamp: z.ZodString;
14
+ sequence: z.ZodNumber;
15
+ } & {
16
+ type: z.ZodLiteral<"coordinator_decision">;
17
+ data: z.ZodObject<{
18
+ decision_id: z.ZodString;
19
+ coordinator: z.ZodString;
20
+ decision_type: z.ZodEnum<["pilot_assignment", "task_priority", "resource_allocation", "conflict_resolution"]>;
21
+ context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
+ decision: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
+ confidence: z.ZodNumber;
24
+ reasoning: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ decision_id?: string;
27
+ coordinator?: string;
28
+ decision_type?: "pilot_assignment" | "task_priority" | "resource_allocation" | "conflict_resolution";
29
+ context?: Record<string, unknown>;
30
+ decision?: Record<string, unknown>;
31
+ confidence?: number;
32
+ reasoning?: string;
33
+ }, {
34
+ decision_id?: string;
35
+ coordinator?: string;
36
+ decision_type?: "pilot_assignment" | "task_priority" | "resource_allocation" | "conflict_resolution";
37
+ context?: Record<string, unknown>;
38
+ decision?: Record<string, unknown>;
39
+ confidence?: number;
40
+ reasoning?: string;
41
+ }>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type?: "coordinator_decision";
44
+ id?: string;
45
+ project_key?: string;
46
+ timestamp?: string;
47
+ sequence?: number;
48
+ data?: {
49
+ decision_id?: string;
50
+ coordinator?: string;
51
+ decision_type?: "pilot_assignment" | "task_priority" | "resource_allocation" | "conflict_resolution";
52
+ context?: Record<string, unknown>;
53
+ decision?: Record<string, unknown>;
54
+ confidence?: number;
55
+ reasoning?: string;
56
+ };
57
+ }, {
58
+ type?: "coordinator_decision";
59
+ id?: string;
60
+ project_key?: string;
61
+ timestamp?: string;
62
+ sequence?: number;
63
+ data?: {
64
+ decision_id?: string;
65
+ coordinator?: string;
66
+ decision_type?: "pilot_assignment" | "task_priority" | "resource_allocation" | "conflict_resolution";
67
+ context?: Record<string, unknown>;
68
+ decision?: Record<string, unknown>;
69
+ confidence?: number;
70
+ reasoning?: string;
71
+ };
72
+ }>;
73
+ /**
74
+ * Pilot spawned event
75
+ */
76
+ export declare const PilotSpawnedSchema: z.ZodObject<{
77
+ id: z.ZodString;
78
+ project_key: z.ZodString;
79
+ timestamp: z.ZodString;
80
+ sequence: z.ZodNumber;
81
+ } & {
82
+ type: z.ZodLiteral<"pilot_spawned">;
83
+ data: z.ZodObject<{
84
+ callsign: z.ZodString;
85
+ program: z.ZodEnum<["opencode", "claude-code", "custom"]>;
86
+ model: z.ZodString;
87
+ spawned_by: z.ZodString;
88
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ callsign?: string;
91
+ program?: "custom" | "opencode" | "claude-code";
92
+ model?: string;
93
+ spawned_by?: string;
94
+ config?: Record<string, unknown>;
95
+ }, {
96
+ callsign?: string;
97
+ program?: "custom" | "opencode" | "claude-code";
98
+ model?: string;
99
+ spawned_by?: string;
100
+ config?: Record<string, unknown>;
101
+ }>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type?: "pilot_spawned";
104
+ id?: string;
105
+ project_key?: string;
106
+ timestamp?: string;
107
+ sequence?: number;
108
+ data?: {
109
+ callsign?: string;
110
+ program?: "custom" | "opencode" | "claude-code";
111
+ model?: string;
112
+ spawned_by?: string;
113
+ config?: Record<string, unknown>;
114
+ };
115
+ }, {
116
+ type?: "pilot_spawned";
117
+ id?: string;
118
+ project_key?: string;
119
+ timestamp?: string;
120
+ sequence?: number;
121
+ data?: {
122
+ callsign?: string;
123
+ program?: "custom" | "opencode" | "claude-code";
124
+ model?: string;
125
+ spawned_by?: string;
126
+ config?: Record<string, unknown>;
127
+ };
128
+ }>;
129
+ /**
130
+ * Pilot terminated event
131
+ */
132
+ export declare const PilotTerminatedSchema: z.ZodObject<{
133
+ id: z.ZodString;
134
+ project_key: z.ZodString;
135
+ timestamp: z.ZodString;
136
+ sequence: z.ZodNumber;
137
+ } & {
138
+ type: z.ZodLiteral<"pilot_terminated">;
139
+ data: z.ZodObject<{
140
+ callsign: z.ZodString;
141
+ terminated_by: z.ZodString;
142
+ reason: z.ZodEnum<["completed", "error", "timeout", "manual", "resource_limit"]>;
143
+ exit_code: z.ZodOptional<z.ZodNumber>;
144
+ final_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ callsign?: string;
147
+ reason?: "completed" | "error" | "timeout" | "manual" | "resource_limit";
148
+ terminated_by?: string;
149
+ exit_code?: number;
150
+ final_state?: Record<string, unknown>;
151
+ }, {
152
+ callsign?: string;
153
+ reason?: "completed" | "error" | "timeout" | "manual" | "resource_limit";
154
+ terminated_by?: string;
155
+ exit_code?: number;
156
+ final_state?: Record<string, unknown>;
157
+ }>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type?: "pilot_terminated";
160
+ id?: string;
161
+ project_key?: string;
162
+ timestamp?: string;
163
+ sequence?: number;
164
+ data?: {
165
+ callsign?: string;
166
+ reason?: "completed" | "error" | "timeout" | "manual" | "resource_limit";
167
+ terminated_by?: string;
168
+ exit_code?: number;
169
+ final_state?: Record<string, unknown>;
170
+ };
171
+ }, {
172
+ type?: "pilot_terminated";
173
+ id?: string;
174
+ project_key?: string;
175
+ timestamp?: string;
176
+ sequence?: number;
177
+ data?: {
178
+ callsign?: string;
179
+ reason?: "completed" | "error" | "timeout" | "manual" | "resource_limit";
180
+ terminated_by?: string;
181
+ exit_code?: number;
182
+ final_state?: Record<string, unknown>;
183
+ };
184
+ }>;
185
+ /**
186
+ * Lock acquired event
187
+ */
188
+ export declare const LockAcquiredSchema: z.ZodObject<{
189
+ id: z.ZodString;
190
+ project_key: z.ZodString;
191
+ timestamp: z.ZodString;
192
+ sequence: z.ZodNumber;
193
+ } & {
194
+ type: z.ZodLiteral<"lock_acquired">;
195
+ data: z.ZodObject<{
196
+ lock_key: z.ZodString;
197
+ holder_id: z.ZodString;
198
+ lock_type: z.ZodEnum<["exclusive", "shared"]>;
199
+ ttl_seconds: z.ZodNumber;
200
+ acquired_at: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ ttl_seconds?: number;
203
+ lock_key?: string;
204
+ holder_id?: string;
205
+ lock_type?: "exclusive" | "shared";
206
+ acquired_at?: string;
207
+ }, {
208
+ ttl_seconds?: number;
209
+ lock_key?: string;
210
+ holder_id?: string;
211
+ lock_type?: "exclusive" | "shared";
212
+ acquired_at?: string;
213
+ }>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ type?: "lock_acquired";
216
+ id?: string;
217
+ project_key?: string;
218
+ timestamp?: string;
219
+ sequence?: number;
220
+ data?: {
221
+ ttl_seconds?: number;
222
+ lock_key?: string;
223
+ holder_id?: string;
224
+ lock_type?: "exclusive" | "shared";
225
+ acquired_at?: string;
226
+ };
227
+ }, {
228
+ type?: "lock_acquired";
229
+ id?: string;
230
+ project_key?: string;
231
+ timestamp?: string;
232
+ sequence?: number;
233
+ data?: {
234
+ ttl_seconds?: number;
235
+ lock_key?: string;
236
+ holder_id?: string;
237
+ lock_type?: "exclusive" | "shared";
238
+ acquired_at?: string;
239
+ };
240
+ }>;
241
+ /**
242
+ * Lock released event
243
+ */
244
+ export declare const LockReleasedSchema: z.ZodObject<{
245
+ id: z.ZodString;
246
+ project_key: z.ZodString;
247
+ timestamp: z.ZodString;
248
+ sequence: z.ZodNumber;
249
+ } & {
250
+ type: z.ZodLiteral<"lock_released">;
251
+ data: z.ZodObject<{
252
+ lock_key: z.ZodString;
253
+ holder_id: z.ZodString;
254
+ released_by: z.ZodString;
255
+ released_at: z.ZodString;
256
+ held_duration_ms: z.ZodNumber;
257
+ }, "strip", z.ZodTypeAny, {
258
+ released_by?: string;
259
+ lock_key?: string;
260
+ holder_id?: string;
261
+ released_at?: string;
262
+ held_duration_ms?: number;
263
+ }, {
264
+ released_by?: string;
265
+ lock_key?: string;
266
+ holder_id?: string;
267
+ released_at?: string;
268
+ held_duration_ms?: number;
269
+ }>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ type?: "lock_released";
272
+ id?: string;
273
+ project_key?: string;
274
+ timestamp?: string;
275
+ sequence?: number;
276
+ data?: {
277
+ released_by?: string;
278
+ lock_key?: string;
279
+ holder_id?: string;
280
+ released_at?: string;
281
+ held_duration_ms?: number;
282
+ };
283
+ }, {
284
+ type?: "lock_released";
285
+ id?: string;
286
+ project_key?: string;
287
+ timestamp?: string;
288
+ sequence?: number;
289
+ data?: {
290
+ released_by?: string;
291
+ lock_key?: string;
292
+ holder_id?: string;
293
+ released_at?: string;
294
+ held_duration_ms?: number;
295
+ };
296
+ }>;
297
+ /**
298
+ * Cursor moved event
299
+ */
300
+ export declare const CursorMovedSchema: z.ZodObject<{
301
+ id: z.ZodString;
302
+ project_key: z.ZodString;
303
+ timestamp: z.ZodString;
304
+ sequence: z.ZodNumber;
305
+ } & {
306
+ type: z.ZodLiteral<"cursor_moved">;
307
+ data: z.ZodObject<{
308
+ consumer_id: z.ZodString;
309
+ stream_type: z.ZodString;
310
+ old_position: z.ZodNumber;
311
+ new_position: z.ZodNumber;
312
+ moved_at: z.ZodString;
313
+ batch_size: z.ZodOptional<z.ZodNumber>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ consumer_id?: string;
316
+ stream_type?: string;
317
+ old_position?: number;
318
+ new_position?: number;
319
+ moved_at?: string;
320
+ batch_size?: number;
321
+ }, {
322
+ consumer_id?: string;
323
+ stream_type?: string;
324
+ old_position?: number;
325
+ new_position?: number;
326
+ moved_at?: string;
327
+ batch_size?: number;
328
+ }>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ type?: "cursor_moved";
331
+ id?: string;
332
+ project_key?: string;
333
+ timestamp?: string;
334
+ sequence?: number;
335
+ data?: {
336
+ consumer_id?: string;
337
+ stream_type?: string;
338
+ old_position?: number;
339
+ new_position?: number;
340
+ moved_at?: string;
341
+ batch_size?: number;
342
+ };
343
+ }, {
344
+ type?: "cursor_moved";
345
+ id?: string;
346
+ project_key?: string;
347
+ timestamp?: string;
348
+ sequence?: number;
349
+ data?: {
350
+ consumer_id?: string;
351
+ stream_type?: string;
352
+ old_position?: number;
353
+ new_position?: number;
354
+ moved_at?: string;
355
+ batch_size?: number;
356
+ };
357
+ }>;
358
+ export type CoordinatorDecisionEvent = z.infer<typeof CoordinatorDecisionSchema>;
359
+ export type PilotSpawnedEvent = z.infer<typeof PilotSpawnedSchema>;
360
+ export type PilotTerminatedEvent = z.infer<typeof PilotTerminatedSchema>;
361
+ export type LockAcquiredEvent = z.infer<typeof LockAcquiredSchema>;
362
+ export type LockReleasedEvent = z.infer<typeof LockReleasedSchema>;
363
+ export type CursorMovedEvent = z.infer<typeof CursorMovedSchema>;