@fleettools/events 0.1.1 → 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.
- package/dist/src/types/agents.d.ts +1005 -0
- package/dist/src/types/agents.d.ts.map +1 -0
- package/dist/src/types/base.d.ts +2 -2
- package/dist/src/types/checkpoints.d.ts +8 -8
- package/dist/src/types/coordination.d.ts +12 -12
- package/dist/src/types/index.d.ts +62 -62
- package/dist/src/types/messages.d.ts +10 -10
- package/dist/src/types/missions.d.ts +8 -8
- package/dist/src/types/pilots.d.ts +6 -6
- package/dist/src/types/reservations.d.ts +6 -6
- package/dist/src/types/sorties.d.ts +12 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/helpers.d.ts +0 -72
- package/dist/index.d.ts +0 -10
- package/dist/projections/index.d.ts +0 -16
- package/dist/projections/pilots.d.ts +0 -19
- package/dist/replay.d.ts +0 -19
- package/dist/store.d.ts +0 -56
- package/dist/types/base.d.ts +0 -32
- package/dist/types/checkpoints.d.ts +0 -254
- package/dist/types/coordination.d.ts +0 -363
- package/dist/types/index.d.ts +0 -1691
- package/dist/types/messages.d.ts +0 -294
- package/dist/types/missions.d.ts +0 -257
- package/dist/types/pilots.d.ts +0 -152
- package/dist/types/reservations.d.ts +0 -172
- package/dist/types/sorties.d.ts +0 -371
package/dist/types/messages.d.ts
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FleetTools Message Event Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for message-related events.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Message sent event
|
|
9
|
-
*/
|
|
10
|
-
export declare const MessageSentSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
project_key: z.ZodString;
|
|
13
|
-
timestamp: z.ZodString;
|
|
14
|
-
sequence: z.ZodNumber;
|
|
15
|
-
} & {
|
|
16
|
-
type: z.ZodLiteral<"message_sent">;
|
|
17
|
-
data: z.ZodObject<{
|
|
18
|
-
from_callsign: z.ZodString;
|
|
19
|
-
to_callsigns: z.ZodArray<z.ZodString, "many">;
|
|
20
|
-
subject: z.ZodString;
|
|
21
|
-
body: z.ZodString;
|
|
22
|
-
thread_id: z.ZodOptional<z.ZodString>;
|
|
23
|
-
importance: z.ZodDefault<z.ZodEnum<["low", "normal", "high", "critical"]>>;
|
|
24
|
-
ack_required: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
from_callsign?: string;
|
|
27
|
-
to_callsigns?: string[];
|
|
28
|
-
subject?: string;
|
|
29
|
-
body?: string;
|
|
30
|
-
thread_id?: string;
|
|
31
|
-
importance?: "low" | "normal" | "high" | "critical";
|
|
32
|
-
ack_required?: boolean;
|
|
33
|
-
}, {
|
|
34
|
-
from_callsign?: string;
|
|
35
|
-
to_callsigns?: string[];
|
|
36
|
-
subject?: string;
|
|
37
|
-
body?: string;
|
|
38
|
-
thread_id?: string;
|
|
39
|
-
importance?: "low" | "normal" | "high" | "critical";
|
|
40
|
-
ack_required?: boolean;
|
|
41
|
-
}>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
type?: "message_sent";
|
|
44
|
-
id?: string;
|
|
45
|
-
project_key?: string;
|
|
46
|
-
timestamp?: string;
|
|
47
|
-
sequence?: number;
|
|
48
|
-
data?: {
|
|
49
|
-
from_callsign?: string;
|
|
50
|
-
to_callsigns?: string[];
|
|
51
|
-
subject?: string;
|
|
52
|
-
body?: string;
|
|
53
|
-
thread_id?: string;
|
|
54
|
-
importance?: "low" | "normal" | "high" | "critical";
|
|
55
|
-
ack_required?: boolean;
|
|
56
|
-
};
|
|
57
|
-
}, {
|
|
58
|
-
type?: "message_sent";
|
|
59
|
-
id?: string;
|
|
60
|
-
project_key?: string;
|
|
61
|
-
timestamp?: string;
|
|
62
|
-
sequence?: number;
|
|
63
|
-
data?: {
|
|
64
|
-
from_callsign?: string;
|
|
65
|
-
to_callsigns?: string[];
|
|
66
|
-
subject?: string;
|
|
67
|
-
body?: string;
|
|
68
|
-
thread_id?: string;
|
|
69
|
-
importance?: "low" | "normal" | "high" | "critical";
|
|
70
|
-
ack_required?: boolean;
|
|
71
|
-
};
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Message read event
|
|
75
|
-
*/
|
|
76
|
-
export declare const MessageReadSchema: z.ZodObject<{
|
|
77
|
-
id: z.ZodString;
|
|
78
|
-
project_key: z.ZodString;
|
|
79
|
-
timestamp: z.ZodString;
|
|
80
|
-
sequence: z.ZodNumber;
|
|
81
|
-
} & {
|
|
82
|
-
type: z.ZodLiteral<"message_read">;
|
|
83
|
-
data: z.ZodObject<{
|
|
84
|
-
message_id: z.ZodString;
|
|
85
|
-
callsign: z.ZodString;
|
|
86
|
-
read_at: z.ZodString;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
callsign?: string;
|
|
89
|
-
message_id?: string;
|
|
90
|
-
read_at?: string;
|
|
91
|
-
}, {
|
|
92
|
-
callsign?: string;
|
|
93
|
-
message_id?: string;
|
|
94
|
-
read_at?: string;
|
|
95
|
-
}>;
|
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
type?: "message_read";
|
|
98
|
-
id?: string;
|
|
99
|
-
project_key?: string;
|
|
100
|
-
timestamp?: string;
|
|
101
|
-
sequence?: number;
|
|
102
|
-
data?: {
|
|
103
|
-
callsign?: string;
|
|
104
|
-
message_id?: string;
|
|
105
|
-
read_at?: string;
|
|
106
|
-
};
|
|
107
|
-
}, {
|
|
108
|
-
type?: "message_read";
|
|
109
|
-
id?: string;
|
|
110
|
-
project_key?: string;
|
|
111
|
-
timestamp?: string;
|
|
112
|
-
sequence?: number;
|
|
113
|
-
data?: {
|
|
114
|
-
callsign?: string;
|
|
115
|
-
message_id?: string;
|
|
116
|
-
read_at?: string;
|
|
117
|
-
};
|
|
118
|
-
}>;
|
|
119
|
-
/**
|
|
120
|
-
* Message acknowledged event
|
|
121
|
-
*/
|
|
122
|
-
export declare const MessageAcknowledgedSchema: z.ZodObject<{
|
|
123
|
-
id: z.ZodString;
|
|
124
|
-
project_key: z.ZodString;
|
|
125
|
-
timestamp: z.ZodString;
|
|
126
|
-
sequence: z.ZodNumber;
|
|
127
|
-
} & {
|
|
128
|
-
type: z.ZodLiteral<"message_acknowledged">;
|
|
129
|
-
data: z.ZodObject<{
|
|
130
|
-
message_id: z.ZodString;
|
|
131
|
-
callsign: z.ZodString;
|
|
132
|
-
acknowledged_at: z.ZodString;
|
|
133
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
callsign?: string;
|
|
136
|
-
message_id?: string;
|
|
137
|
-
acknowledged_at?: string;
|
|
138
|
-
notes?: string;
|
|
139
|
-
}, {
|
|
140
|
-
callsign?: string;
|
|
141
|
-
message_id?: string;
|
|
142
|
-
acknowledged_at?: string;
|
|
143
|
-
notes?: string;
|
|
144
|
-
}>;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
type?: "message_acknowledged";
|
|
147
|
-
id?: string;
|
|
148
|
-
project_key?: string;
|
|
149
|
-
timestamp?: string;
|
|
150
|
-
sequence?: number;
|
|
151
|
-
data?: {
|
|
152
|
-
callsign?: string;
|
|
153
|
-
message_id?: string;
|
|
154
|
-
acknowledged_at?: string;
|
|
155
|
-
notes?: string;
|
|
156
|
-
};
|
|
157
|
-
}, {
|
|
158
|
-
type?: "message_acknowledged";
|
|
159
|
-
id?: string;
|
|
160
|
-
project_key?: string;
|
|
161
|
-
timestamp?: string;
|
|
162
|
-
sequence?: number;
|
|
163
|
-
data?: {
|
|
164
|
-
callsign?: string;
|
|
165
|
-
message_id?: string;
|
|
166
|
-
acknowledged_at?: string;
|
|
167
|
-
notes?: string;
|
|
168
|
-
};
|
|
169
|
-
}>;
|
|
170
|
-
/**
|
|
171
|
-
* Message updated event
|
|
172
|
-
*/
|
|
173
|
-
export declare const MessageUpdatedSchema: z.ZodObject<{
|
|
174
|
-
id: z.ZodString;
|
|
175
|
-
project_key: z.ZodString;
|
|
176
|
-
timestamp: z.ZodString;
|
|
177
|
-
sequence: z.ZodNumber;
|
|
178
|
-
} & {
|
|
179
|
-
type: z.ZodLiteral<"message_updated">;
|
|
180
|
-
data: z.ZodObject<{
|
|
181
|
-
message_id: z.ZodString;
|
|
182
|
-
updated_by: z.ZodString;
|
|
183
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
184
|
-
field: z.ZodString;
|
|
185
|
-
old_value: z.ZodUnknown;
|
|
186
|
-
new_value: z.ZodUnknown;
|
|
187
|
-
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
field?: string;
|
|
189
|
-
old_value?: unknown;
|
|
190
|
-
new_value?: unknown;
|
|
191
|
-
}, {
|
|
192
|
-
field?: string;
|
|
193
|
-
old_value?: unknown;
|
|
194
|
-
new_value?: unknown;
|
|
195
|
-
}>, "many">;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
message_id?: string;
|
|
198
|
-
updated_by?: string;
|
|
199
|
-
changes?: {
|
|
200
|
-
field?: string;
|
|
201
|
-
old_value?: unknown;
|
|
202
|
-
new_value?: unknown;
|
|
203
|
-
}[];
|
|
204
|
-
}, {
|
|
205
|
-
message_id?: string;
|
|
206
|
-
updated_by?: string;
|
|
207
|
-
changes?: {
|
|
208
|
-
field?: string;
|
|
209
|
-
old_value?: unknown;
|
|
210
|
-
new_value?: unknown;
|
|
211
|
-
}[];
|
|
212
|
-
}>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
type?: "message_updated";
|
|
215
|
-
id?: string;
|
|
216
|
-
project_key?: string;
|
|
217
|
-
timestamp?: string;
|
|
218
|
-
sequence?: number;
|
|
219
|
-
data?: {
|
|
220
|
-
message_id?: string;
|
|
221
|
-
updated_by?: string;
|
|
222
|
-
changes?: {
|
|
223
|
-
field?: string;
|
|
224
|
-
old_value?: unknown;
|
|
225
|
-
new_value?: unknown;
|
|
226
|
-
}[];
|
|
227
|
-
};
|
|
228
|
-
}, {
|
|
229
|
-
type?: "message_updated";
|
|
230
|
-
id?: string;
|
|
231
|
-
project_key?: string;
|
|
232
|
-
timestamp?: string;
|
|
233
|
-
sequence?: number;
|
|
234
|
-
data?: {
|
|
235
|
-
message_id?: string;
|
|
236
|
-
updated_by?: string;
|
|
237
|
-
changes?: {
|
|
238
|
-
field?: string;
|
|
239
|
-
old_value?: unknown;
|
|
240
|
-
new_value?: unknown;
|
|
241
|
-
}[];
|
|
242
|
-
};
|
|
243
|
-
}>;
|
|
244
|
-
/**
|
|
245
|
-
* Message deleted event
|
|
246
|
-
*/
|
|
247
|
-
export declare const MessageDeletedSchema: z.ZodObject<{
|
|
248
|
-
id: z.ZodString;
|
|
249
|
-
project_key: z.ZodString;
|
|
250
|
-
timestamp: z.ZodString;
|
|
251
|
-
sequence: z.ZodNumber;
|
|
252
|
-
} & {
|
|
253
|
-
type: z.ZodLiteral<"message_deleted">;
|
|
254
|
-
data: z.ZodObject<{
|
|
255
|
-
message_id: z.ZodString;
|
|
256
|
-
deleted_by: z.ZodString;
|
|
257
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
258
|
-
}, "strip", z.ZodTypeAny, {
|
|
259
|
-
reason?: string;
|
|
260
|
-
message_id?: string;
|
|
261
|
-
deleted_by?: string;
|
|
262
|
-
}, {
|
|
263
|
-
reason?: string;
|
|
264
|
-
message_id?: string;
|
|
265
|
-
deleted_by?: string;
|
|
266
|
-
}>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
type?: "message_deleted";
|
|
269
|
-
id?: string;
|
|
270
|
-
project_key?: string;
|
|
271
|
-
timestamp?: string;
|
|
272
|
-
sequence?: number;
|
|
273
|
-
data?: {
|
|
274
|
-
reason?: string;
|
|
275
|
-
message_id?: string;
|
|
276
|
-
deleted_by?: string;
|
|
277
|
-
};
|
|
278
|
-
}, {
|
|
279
|
-
type?: "message_deleted";
|
|
280
|
-
id?: string;
|
|
281
|
-
project_key?: string;
|
|
282
|
-
timestamp?: string;
|
|
283
|
-
sequence?: number;
|
|
284
|
-
data?: {
|
|
285
|
-
reason?: string;
|
|
286
|
-
message_id?: string;
|
|
287
|
-
deleted_by?: string;
|
|
288
|
-
};
|
|
289
|
-
}>;
|
|
290
|
-
export type MessageSentEvent = z.infer<typeof MessageSentSchema>;
|
|
291
|
-
export type MessageReadEvent = z.infer<typeof MessageReadSchema>;
|
|
292
|
-
export type MessageAcknowledgedEvent = z.infer<typeof MessageAcknowledgedSchema>;
|
|
293
|
-
export type MessageUpdatedEvent = z.infer<typeof MessageUpdatedSchema>;
|
|
294
|
-
export type MessageDeletedEvent = z.infer<typeof MessageDeletedSchema>;
|
package/dist/types/missions.d.ts
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FleetTools Mission Event Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for mission-related events.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Mission created event
|
|
9
|
-
*/
|
|
10
|
-
export declare const MissionCreatedSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
project_key: z.ZodString;
|
|
13
|
-
timestamp: z.ZodString;
|
|
14
|
-
sequence: z.ZodNumber;
|
|
15
|
-
} & {
|
|
16
|
-
type: z.ZodLiteral<"mission_created">;
|
|
17
|
-
data: z.ZodObject<{
|
|
18
|
-
mission_id: z.ZodString;
|
|
19
|
-
title: z.ZodString;
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
22
|
-
estimated_duration_hours: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
created_by: z.ZodString;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
description?: string;
|
|
26
|
-
mission_id?: string;
|
|
27
|
-
title?: string;
|
|
28
|
-
priority?: "low" | "high" | "critical" | "medium";
|
|
29
|
-
estimated_duration_hours?: number;
|
|
30
|
-
created_by?: string;
|
|
31
|
-
}, {
|
|
32
|
-
description?: string;
|
|
33
|
-
mission_id?: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
priority?: "low" | "high" | "critical" | "medium";
|
|
36
|
-
estimated_duration_hours?: number;
|
|
37
|
-
created_by?: string;
|
|
38
|
-
}>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
type?: "mission_created";
|
|
41
|
-
id?: string;
|
|
42
|
-
project_key?: string;
|
|
43
|
-
timestamp?: string;
|
|
44
|
-
sequence?: number;
|
|
45
|
-
data?: {
|
|
46
|
-
description?: string;
|
|
47
|
-
mission_id?: string;
|
|
48
|
-
title?: string;
|
|
49
|
-
priority?: "low" | "high" | "critical" | "medium";
|
|
50
|
-
estimated_duration_hours?: number;
|
|
51
|
-
created_by?: string;
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
type?: "mission_created";
|
|
55
|
-
id?: string;
|
|
56
|
-
project_key?: string;
|
|
57
|
-
timestamp?: string;
|
|
58
|
-
sequence?: number;
|
|
59
|
-
data?: {
|
|
60
|
-
description?: string;
|
|
61
|
-
mission_id?: string;
|
|
62
|
-
title?: string;
|
|
63
|
-
priority?: "low" | "high" | "critical" | "medium";
|
|
64
|
-
estimated_duration_hours?: number;
|
|
65
|
-
created_by?: string;
|
|
66
|
-
};
|
|
67
|
-
}>;
|
|
68
|
-
/**
|
|
69
|
-
* Mission started event
|
|
70
|
-
*/
|
|
71
|
-
export declare const MissionStartedSchema: z.ZodObject<{
|
|
72
|
-
id: z.ZodString;
|
|
73
|
-
project_key: z.ZodString;
|
|
74
|
-
timestamp: z.ZodString;
|
|
75
|
-
sequence: z.ZodNumber;
|
|
76
|
-
} & {
|
|
77
|
-
type: z.ZodLiteral<"mission_started">;
|
|
78
|
-
data: z.ZodObject<{
|
|
79
|
-
mission_id: z.ZodString;
|
|
80
|
-
started_by: z.ZodString;
|
|
81
|
-
started_at: z.ZodString;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
mission_id?: string;
|
|
84
|
-
started_by?: string;
|
|
85
|
-
started_at?: string;
|
|
86
|
-
}, {
|
|
87
|
-
mission_id?: string;
|
|
88
|
-
started_by?: string;
|
|
89
|
-
started_at?: string;
|
|
90
|
-
}>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
type?: "mission_started";
|
|
93
|
-
id?: string;
|
|
94
|
-
project_key?: string;
|
|
95
|
-
timestamp?: string;
|
|
96
|
-
sequence?: number;
|
|
97
|
-
data?: {
|
|
98
|
-
mission_id?: string;
|
|
99
|
-
started_by?: string;
|
|
100
|
-
started_at?: string;
|
|
101
|
-
};
|
|
102
|
-
}, {
|
|
103
|
-
type?: "mission_started";
|
|
104
|
-
id?: string;
|
|
105
|
-
project_key?: string;
|
|
106
|
-
timestamp?: string;
|
|
107
|
-
sequence?: number;
|
|
108
|
-
data?: {
|
|
109
|
-
mission_id?: string;
|
|
110
|
-
started_by?: string;
|
|
111
|
-
started_at?: string;
|
|
112
|
-
};
|
|
113
|
-
}>;
|
|
114
|
-
/**
|
|
115
|
-
* Mission completed event
|
|
116
|
-
*/
|
|
117
|
-
export declare const MissionCompletedSchema: z.ZodObject<{
|
|
118
|
-
id: z.ZodString;
|
|
119
|
-
project_key: z.ZodString;
|
|
120
|
-
timestamp: z.ZodString;
|
|
121
|
-
sequence: z.ZodNumber;
|
|
122
|
-
} & {
|
|
123
|
-
type: z.ZodLiteral<"mission_completed">;
|
|
124
|
-
data: z.ZodObject<{
|
|
125
|
-
mission_id: z.ZodString;
|
|
126
|
-
completed_by: z.ZodString;
|
|
127
|
-
completed_at: z.ZodString;
|
|
128
|
-
result: z.ZodEnum<["success", "partial", "failed"]>;
|
|
129
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
130
|
-
metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
131
|
-
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
mission_id?: string;
|
|
133
|
-
completed_by?: string;
|
|
134
|
-
completed_at?: string;
|
|
135
|
-
result?: "partial" | "success" | "failed";
|
|
136
|
-
summary?: string;
|
|
137
|
-
metrics?: Record<string, number>;
|
|
138
|
-
}, {
|
|
139
|
-
mission_id?: string;
|
|
140
|
-
completed_by?: string;
|
|
141
|
-
completed_at?: string;
|
|
142
|
-
result?: "partial" | "success" | "failed";
|
|
143
|
-
summary?: string;
|
|
144
|
-
metrics?: Record<string, number>;
|
|
145
|
-
}>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
type?: "mission_completed";
|
|
148
|
-
id?: string;
|
|
149
|
-
project_key?: string;
|
|
150
|
-
timestamp?: string;
|
|
151
|
-
sequence?: number;
|
|
152
|
-
data?: {
|
|
153
|
-
mission_id?: string;
|
|
154
|
-
completed_by?: string;
|
|
155
|
-
completed_at?: string;
|
|
156
|
-
result?: "partial" | "success" | "failed";
|
|
157
|
-
summary?: string;
|
|
158
|
-
metrics?: Record<string, number>;
|
|
159
|
-
};
|
|
160
|
-
}, {
|
|
161
|
-
type?: "mission_completed";
|
|
162
|
-
id?: string;
|
|
163
|
-
project_key?: string;
|
|
164
|
-
timestamp?: string;
|
|
165
|
-
sequence?: number;
|
|
166
|
-
data?: {
|
|
167
|
-
mission_id?: string;
|
|
168
|
-
completed_by?: string;
|
|
169
|
-
completed_at?: string;
|
|
170
|
-
result?: "partial" | "success" | "failed";
|
|
171
|
-
summary?: string;
|
|
172
|
-
metrics?: Record<string, number>;
|
|
173
|
-
};
|
|
174
|
-
}>;
|
|
175
|
-
/**
|
|
176
|
-
* Mission updated event
|
|
177
|
-
*/
|
|
178
|
-
export declare const MissionUpdatedSchema: z.ZodObject<{
|
|
179
|
-
id: z.ZodString;
|
|
180
|
-
project_key: z.ZodString;
|
|
181
|
-
timestamp: z.ZodString;
|
|
182
|
-
sequence: z.ZodNumber;
|
|
183
|
-
} & {
|
|
184
|
-
type: z.ZodLiteral<"mission_updated">;
|
|
185
|
-
data: z.ZodObject<{
|
|
186
|
-
mission_id: z.ZodString;
|
|
187
|
-
updated_by: z.ZodString;
|
|
188
|
-
updated_at: z.ZodString;
|
|
189
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
190
|
-
field: z.ZodString;
|
|
191
|
-
old_value: z.ZodUnknown;
|
|
192
|
-
new_value: z.ZodUnknown;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
field?: string;
|
|
195
|
-
old_value?: unknown;
|
|
196
|
-
new_value?: unknown;
|
|
197
|
-
}, {
|
|
198
|
-
field?: string;
|
|
199
|
-
old_value?: unknown;
|
|
200
|
-
new_value?: unknown;
|
|
201
|
-
}>, "many">;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
updated_by?: string;
|
|
204
|
-
changes?: {
|
|
205
|
-
field?: string;
|
|
206
|
-
old_value?: unknown;
|
|
207
|
-
new_value?: unknown;
|
|
208
|
-
}[];
|
|
209
|
-
mission_id?: string;
|
|
210
|
-
updated_at?: string;
|
|
211
|
-
}, {
|
|
212
|
-
updated_by?: string;
|
|
213
|
-
changes?: {
|
|
214
|
-
field?: string;
|
|
215
|
-
old_value?: unknown;
|
|
216
|
-
new_value?: unknown;
|
|
217
|
-
}[];
|
|
218
|
-
mission_id?: string;
|
|
219
|
-
updated_at?: string;
|
|
220
|
-
}>;
|
|
221
|
-
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
type?: "mission_updated";
|
|
223
|
-
id?: string;
|
|
224
|
-
project_key?: string;
|
|
225
|
-
timestamp?: string;
|
|
226
|
-
sequence?: number;
|
|
227
|
-
data?: {
|
|
228
|
-
updated_by?: string;
|
|
229
|
-
changes?: {
|
|
230
|
-
field?: string;
|
|
231
|
-
old_value?: unknown;
|
|
232
|
-
new_value?: unknown;
|
|
233
|
-
}[];
|
|
234
|
-
mission_id?: string;
|
|
235
|
-
updated_at?: string;
|
|
236
|
-
};
|
|
237
|
-
}, {
|
|
238
|
-
type?: "mission_updated";
|
|
239
|
-
id?: string;
|
|
240
|
-
project_key?: string;
|
|
241
|
-
timestamp?: string;
|
|
242
|
-
sequence?: number;
|
|
243
|
-
data?: {
|
|
244
|
-
updated_by?: string;
|
|
245
|
-
changes?: {
|
|
246
|
-
field?: string;
|
|
247
|
-
old_value?: unknown;
|
|
248
|
-
new_value?: unknown;
|
|
249
|
-
}[];
|
|
250
|
-
mission_id?: string;
|
|
251
|
-
updated_at?: string;
|
|
252
|
-
};
|
|
253
|
-
}>;
|
|
254
|
-
export type MissionCreatedEvent = z.infer<typeof MissionCreatedSchema>;
|
|
255
|
-
export type MissionStartedEvent = z.infer<typeof MissionStartedSchema>;
|
|
256
|
-
export type MissionCompletedEvent = z.infer<typeof MissionCompletedSchema>;
|
|
257
|
-
export type MissionUpdatedEvent = z.infer<typeof MissionUpdatedSchema>;
|
package/dist/types/pilots.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FleetTools Pilot Event Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for pilot-related events.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
/**
|
|
8
|
-
* Pilot registered event
|
|
9
|
-
*/
|
|
10
|
-
export declare const PilotRegisteredSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
project_key: z.ZodString;
|
|
13
|
-
timestamp: z.ZodString;
|
|
14
|
-
sequence: z.ZodNumber;
|
|
15
|
-
} & {
|
|
16
|
-
type: z.ZodLiteral<"pilot_registered">;
|
|
17
|
-
data: z.ZodObject<{
|
|
18
|
-
callsign: z.ZodString;
|
|
19
|
-
program: z.ZodEnum<["opencode", "claude-code", "custom"]>;
|
|
20
|
-
model: z.ZodString;
|
|
21
|
-
task_description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
callsign?: string;
|
|
24
|
-
program?: "custom" | "opencode" | "claude-code";
|
|
25
|
-
model?: string;
|
|
26
|
-
task_description?: string;
|
|
27
|
-
}, {
|
|
28
|
-
callsign?: string;
|
|
29
|
-
program?: "custom" | "opencode" | "claude-code";
|
|
30
|
-
model?: string;
|
|
31
|
-
task_description?: string;
|
|
32
|
-
}>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
type?: "pilot_registered";
|
|
35
|
-
id?: string;
|
|
36
|
-
project_key?: string;
|
|
37
|
-
timestamp?: string;
|
|
38
|
-
sequence?: number;
|
|
39
|
-
data?: {
|
|
40
|
-
callsign?: string;
|
|
41
|
-
program?: "custom" | "opencode" | "claude-code";
|
|
42
|
-
model?: string;
|
|
43
|
-
task_description?: string;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
type?: "pilot_registered";
|
|
47
|
-
id?: string;
|
|
48
|
-
project_key?: string;
|
|
49
|
-
timestamp?: string;
|
|
50
|
-
sequence?: number;
|
|
51
|
-
data?: {
|
|
52
|
-
callsign?: string;
|
|
53
|
-
program?: "custom" | "opencode" | "claude-code";
|
|
54
|
-
model?: string;
|
|
55
|
-
task_description?: string;
|
|
56
|
-
};
|
|
57
|
-
}>;
|
|
58
|
-
/**
|
|
59
|
-
* Pilot active event
|
|
60
|
-
*/
|
|
61
|
-
export declare const PilotActiveSchema: z.ZodObject<{
|
|
62
|
-
id: z.ZodString;
|
|
63
|
-
project_key: z.ZodString;
|
|
64
|
-
timestamp: z.ZodString;
|
|
65
|
-
sequence: z.ZodNumber;
|
|
66
|
-
} & {
|
|
67
|
-
type: z.ZodLiteral<"pilot_active">;
|
|
68
|
-
data: z.ZodObject<{
|
|
69
|
-
callsign: z.ZodString;
|
|
70
|
-
status: z.ZodEnum<["active", "idle", "busy"]>;
|
|
71
|
-
current_task: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status?: "active" | "idle" | "busy";
|
|
74
|
-
callsign?: string;
|
|
75
|
-
current_task?: string;
|
|
76
|
-
}, {
|
|
77
|
-
status?: "active" | "idle" | "busy";
|
|
78
|
-
callsign?: string;
|
|
79
|
-
current_task?: string;
|
|
80
|
-
}>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
type?: "pilot_active";
|
|
83
|
-
id?: string;
|
|
84
|
-
project_key?: string;
|
|
85
|
-
timestamp?: string;
|
|
86
|
-
sequence?: number;
|
|
87
|
-
data?: {
|
|
88
|
-
status?: "active" | "idle" | "busy";
|
|
89
|
-
callsign?: string;
|
|
90
|
-
current_task?: string;
|
|
91
|
-
};
|
|
92
|
-
}, {
|
|
93
|
-
type?: "pilot_active";
|
|
94
|
-
id?: string;
|
|
95
|
-
project_key?: string;
|
|
96
|
-
timestamp?: string;
|
|
97
|
-
sequence?: number;
|
|
98
|
-
data?: {
|
|
99
|
-
status?: "active" | "idle" | "busy";
|
|
100
|
-
callsign?: string;
|
|
101
|
-
current_task?: string;
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* Pilot deregistered event
|
|
106
|
-
*/
|
|
107
|
-
export declare const PilotDeregisteredSchema: z.ZodObject<{
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
project_key: z.ZodString;
|
|
110
|
-
timestamp: z.ZodString;
|
|
111
|
-
sequence: z.ZodNumber;
|
|
112
|
-
} & {
|
|
113
|
-
type: z.ZodLiteral<"pilot_deregistered">;
|
|
114
|
-
data: z.ZodObject<{
|
|
115
|
-
callsign: z.ZodString;
|
|
116
|
-
reason: z.ZodEnum<["completed", "error", "timeout", "manual"]>;
|
|
117
|
-
final_status: z.ZodOptional<z.ZodString>;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
callsign?: string;
|
|
120
|
-
reason?: "completed" | "error" | "timeout" | "manual";
|
|
121
|
-
final_status?: string;
|
|
122
|
-
}, {
|
|
123
|
-
callsign?: string;
|
|
124
|
-
reason?: "completed" | "error" | "timeout" | "manual";
|
|
125
|
-
final_status?: string;
|
|
126
|
-
}>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type?: "pilot_deregistered";
|
|
129
|
-
id?: string;
|
|
130
|
-
project_key?: string;
|
|
131
|
-
timestamp?: string;
|
|
132
|
-
sequence?: number;
|
|
133
|
-
data?: {
|
|
134
|
-
callsign?: string;
|
|
135
|
-
reason?: "completed" | "error" | "timeout" | "manual";
|
|
136
|
-
final_status?: string;
|
|
137
|
-
};
|
|
138
|
-
}, {
|
|
139
|
-
type?: "pilot_deregistered";
|
|
140
|
-
id?: string;
|
|
141
|
-
project_key?: string;
|
|
142
|
-
timestamp?: string;
|
|
143
|
-
sequence?: number;
|
|
144
|
-
data?: {
|
|
145
|
-
callsign?: string;
|
|
146
|
-
reason?: "completed" | "error" | "timeout" | "manual";
|
|
147
|
-
final_status?: string;
|
|
148
|
-
};
|
|
149
|
-
}>;
|
|
150
|
-
export type PilotRegisteredEvent = z.infer<typeof PilotRegisteredSchema>;
|
|
151
|
-
export type PilotActiveEvent = z.infer<typeof PilotActiveSchema>;
|
|
152
|
-
export type PilotDeregisteredEvent = z.infer<typeof PilotDeregisteredSchema>;
|