@aeolus-fleet/common 0.34.0 → 0.35.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 (70) hide show
  1. package/README.md +4 -2
  2. package/dist/fleet/index.d.ts +12 -5
  3. package/dist/fleet/index.js +10 -2
  4. package/dist/fleet/index.js.map +1 -1
  5. package/dist/header/index.d.ts +2 -0
  6. package/dist/header/index.js +2 -0
  7. package/dist/header/index.js.map +1 -1
  8. package/dist/header/sign-in-background.d.ts +10 -0
  9. package/dist/header/sign-in-background.js +48 -0
  10. package/dist/header/sign-in-background.js.map +1 -0
  11. package/dist/header/sign-in-backgrounds.d.ts +40 -0
  12. package/dist/header/sign-in-backgrounds.js +135 -0
  13. package/dist/header/sign-in-backgrounds.js.map +1 -0
  14. package/dist/ids/index.d.ts +3 -0
  15. package/dist/ids/index.js +2 -0
  16. package/dist/ids/index.js.map +1 -1
  17. package/dist/rules/activity.d.ts +10 -0
  18. package/dist/rules/activity.js +13 -0
  19. package/dist/rules/activity.js.map +1 -0
  20. package/dist/rules/alert.d.ts +14 -0
  21. package/dist/rules/alert.js +33 -0
  22. package/dist/rules/alert.js.map +1 -0
  23. package/dist/rules/index.d.ts +2 -0
  24. package/dist/rules/index.js +2 -0
  25. package/dist/rules/index.js.map +1 -1
  26. package/dist/rules/payload.d.ts +1 -1
  27. package/dist/rules/payload.js +2 -2
  28. package/dist/rules/payload.js.map +1 -1
  29. package/dist/schemas/activity.d.ts +71 -0
  30. package/dist/schemas/activity.js +53 -0
  31. package/dist/schemas/activity.js.map +1 -0
  32. package/dist/schemas/alert.d.ts +564 -0
  33. package/dist/schemas/alert.js +123 -0
  34. package/dist/schemas/alert.js.map +1 -0
  35. package/dist/schemas/delivery.d.ts +1 -1
  36. package/dist/schemas/delivery.js +1 -1
  37. package/dist/schemas/expectations.d.ts +76 -0
  38. package/dist/schemas/expectations.js +41 -0
  39. package/dist/schemas/expectations.js.map +1 -0
  40. package/dist/schemas/fleet.d.ts +81 -0
  41. package/dist/schemas/fleet.js +8 -0
  42. package/dist/schemas/fleet.js.map +1 -1
  43. package/dist/schemas/follow.d.ts +3 -0
  44. package/dist/schemas/history.d.ts +303 -0
  45. package/dist/schemas/history.js +10 -1
  46. package/dist/schemas/history.js.map +1 -1
  47. package/dist/schemas/index.d.ts +4 -0
  48. package/dist/schemas/index.js +4 -0
  49. package/dist/schemas/index.js.map +1 -1
  50. package/dist/schemas/label.d.ts +2 -2
  51. package/dist/schemas/message-task-access.d.ts +11 -0
  52. package/dist/schemas/message-task-access.js +7 -0
  53. package/dist/schemas/message-task-access.js.map +1 -0
  54. package/dist/schemas/message.d.ts +1 -1
  55. package/dist/schemas/message.js +2 -2
  56. package/dist/schemas/message.js.map +1 -1
  57. package/dist/schemas/network-rules-file.js +2 -2
  58. package/dist/schemas/network-rules-file.js.map +1 -1
  59. package/dist/schemas/network.d.ts +13 -13
  60. package/dist/schemas/report.d.ts +81 -3
  61. package/dist/schemas/report.js +26 -3
  62. package/dist/schemas/report.js.map +1 -1
  63. package/dist/schemas/ship.d.ts +6 -2
  64. package/dist/schemas/ship.js +6 -2
  65. package/dist/schemas/ship.js.map +1 -1
  66. package/dist/schemas/statement.d.ts +2 -2
  67. package/dist/schemas/statement.js +4 -4
  68. package/dist/schemas/statement.js.map +1 -1
  69. package/dist/trierarch/report-details.d.ts +1 -1
  70. package/package.json +1 -1
@@ -0,0 +1,564 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Alerts (decision 0071, docs/design/monitoring 4.4, 4.5 and 4.9): the watch
4
+ * raises one in core per occurrence of a signal on a ship, then sends the
5
+ * owner's ship the alert message. Core holds the alert and never speaks for
6
+ * a ship; the message is the watch's. Both read the signal and its facts
7
+ * from here.
8
+ */
9
+ /** The content type of the alert message the watch sends (4.9). */
10
+ export declare const ALERT_CONTENT_TYPE = "application/vnd.aeolus.alert+json";
11
+ /** What parted (4.4): the four distribution signals, then the two expectations. */
12
+ export declare const ALERT_SIGNALS: readonly ["crew-request-unassigned", "delivery-unacknowledged", "delivery-overdue", "ping-unanswered", "report-unchanged", "task-not-done"];
13
+ export declare const alertSignalSchema: z.ZodEnum<{
14
+ "crew-request-unassigned": "crew-request-unassigned";
15
+ "delivery-unacknowledged": "delivery-unacknowledged";
16
+ "delivery-overdue": "delivery-overdue";
17
+ "ping-unanswered": "ping-unanswered";
18
+ "report-unchanged": "report-unchanged";
19
+ "task-not-done": "task-not-done";
20
+ }>;
21
+ export type AlertSignal = z.infer<typeof alertSignalSchema>;
22
+ /** The longest headline an alert message carries: an inbox shows it first (instruction 6). */
23
+ export declare const ALERT_HEADLINE_MAX_LENGTH = 80;
24
+ /** The most bytes an alert message's markdown body takes. */
25
+ export declare const ALERT_BODY_MAX_BYTES: number;
26
+ /** The most bytes a whole alert message payload takes, as JSON. */
27
+ export declare const ALERT_PAYLOAD_MAX_BYTES: number;
28
+ /** The longest occurrence key a raise names (4.4: a delivery id, a version, a time). */
29
+ export declare const ALERT_OCCURRENCE_KEY_MAX_LENGTH = 200;
30
+ /** A signal with its facts at raise. */
31
+ export declare const alertSignalFactsSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
32
+ signal: z.ZodLiteral<"crew-request-unassigned">;
33
+ facts: z.ZodObject<{
34
+ settingsVersion: z.ZodInt;
35
+ minutes: z.ZodInt;
36
+ reason: z.ZodNullable<z.ZodString>;
37
+ }, z.core.$strict>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ signal: z.ZodLiteral<"delivery-unacknowledged">;
40
+ facts: z.ZodObject<{
41
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
42
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
43
+ state: z.ZodEnum<{
44
+ pending: "pending";
45
+ received: "received";
46
+ handed: "handed";
47
+ }>;
48
+ awaitingCrew: z.ZodBoolean;
49
+ minutes: z.ZodInt;
50
+ }, z.core.$strict>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ signal: z.ZodLiteral<"delivery-overdue">;
53
+ facts: z.ZodObject<{
54
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
55
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
56
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
57
+ }, z.core.$strict>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ signal: z.ZodLiteral<"ping-unanswered">;
60
+ facts: z.ZodObject<{
61
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
62
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
63
+ minutes: z.ZodInt;
64
+ }, z.core.$strict>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ signal: z.ZodLiteral<"report-unchanged">;
67
+ facts: z.ZodObject<{
68
+ reportChangedAt: z.ZodISODateTime;
69
+ state: z.ZodEnum<{
70
+ working: "working";
71
+ blocked: "blocked";
72
+ }>;
73
+ minutes: z.ZodInt;
74
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
75
+ }, z.core.$strict>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ signal: z.ZodLiteral<"task-not-done">;
78
+ facts: z.ZodObject<{
79
+ task: z.ZodObject<{
80
+ kind: z.ZodString;
81
+ }, z.core.$catchall<z.ZodJSONSchema>>;
82
+ doneBy: z.ZodISODateTime;
83
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
84
+ }, z.core.$strict>;
85
+ }, z.core.$strip>], "signal">;
86
+ export type AlertSignalFacts = z.infer<typeof alertSignalFactsSchema>;
87
+ /**
88
+ * The alert message's payload (4.9): the alert in core, the line an inbox
89
+ * shows first and the facts in words, the signal with its facts at raise,
90
+ * the ship, its fleet, and why this recipient is told.
91
+ */
92
+ export declare const alertMessageSchema: z.ZodIntersection<z.ZodObject<{
93
+ alertId: z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>;
94
+ headline: z.ZodString;
95
+ body: z.ZodString;
96
+ ship: z.ZodObject<{
97
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
98
+ name: z.ZodString;
99
+ }, z.core.$strip>;
100
+ fleetId: z.ZodType<`flt_${string}`, unknown, z.core.$ZodTypeInternals<`flt_${string}`, unknown>>;
101
+ toldAs: z.ZodEnum<{
102
+ owner: "owner";
103
+ setter: "setter";
104
+ }>;
105
+ since: z.ZodISODateTime;
106
+ raisedAt: z.ZodISODateTime;
107
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
108
+ signal: z.ZodLiteral<"crew-request-unassigned">;
109
+ facts: z.ZodObject<{
110
+ settingsVersion: z.ZodInt;
111
+ minutes: z.ZodInt;
112
+ reason: z.ZodNullable<z.ZodString>;
113
+ }, z.core.$strict>;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ signal: z.ZodLiteral<"delivery-unacknowledged">;
116
+ facts: z.ZodObject<{
117
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
118
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
119
+ state: z.ZodEnum<{
120
+ pending: "pending";
121
+ received: "received";
122
+ handed: "handed";
123
+ }>;
124
+ awaitingCrew: z.ZodBoolean;
125
+ minutes: z.ZodInt;
126
+ }, z.core.$strict>;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ signal: z.ZodLiteral<"delivery-overdue">;
129
+ facts: z.ZodObject<{
130
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
131
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
132
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
133
+ }, z.core.$strict>;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ signal: z.ZodLiteral<"ping-unanswered">;
136
+ facts: z.ZodObject<{
137
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
138
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
139
+ minutes: z.ZodInt;
140
+ }, z.core.$strict>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ signal: z.ZodLiteral<"report-unchanged">;
143
+ facts: z.ZodObject<{
144
+ reportChangedAt: z.ZodISODateTime;
145
+ state: z.ZodEnum<{
146
+ working: "working";
147
+ blocked: "blocked";
148
+ }>;
149
+ minutes: z.ZodInt;
150
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
151
+ }, z.core.$strict>;
152
+ }, z.core.$strip>, z.ZodObject<{
153
+ signal: z.ZodLiteral<"task-not-done">;
154
+ facts: z.ZodObject<{
155
+ task: z.ZodObject<{
156
+ kind: z.ZodString;
157
+ }, z.core.$catchall<z.ZodJSONSchema>>;
158
+ doneBy: z.ZodISODateTime;
159
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
160
+ }, z.core.$strict>;
161
+ }, z.core.$strip>], "signal">>;
162
+ export type AlertMessage = z.infer<typeof alertMessageSchema>;
163
+ /**
164
+ * Input of `fleet.raiseAlert` (fleet:alert, 4.5): the ship, the signal and
165
+ * its facts at raise, the occurrence key the alert is unique by, and since
166
+ * when the fact parted.
167
+ */
168
+ export declare const raiseAlertInputSchema: z.ZodPipe<z.ZodObject<{
169
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
170
+ signal: z.ZodEnum<{
171
+ "crew-request-unassigned": "crew-request-unassigned";
172
+ "delivery-unacknowledged": "delivery-unacknowledged";
173
+ "delivery-overdue": "delivery-overdue";
174
+ "ping-unanswered": "ping-unanswered";
175
+ "report-unchanged": "report-unchanged";
176
+ "task-not-done": "task-not-done";
177
+ }>;
178
+ facts: z.ZodUnion<readonly [z.ZodObject<{
179
+ settingsVersion: z.ZodInt;
180
+ minutes: z.ZodInt;
181
+ reason: z.ZodNullable<z.ZodString>;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
184
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
185
+ state: z.ZodEnum<{
186
+ pending: "pending";
187
+ received: "received";
188
+ handed: "handed";
189
+ }>;
190
+ awaitingCrew: z.ZodBoolean;
191
+ minutes: z.ZodInt;
192
+ }, z.core.$strict>, z.ZodObject<{
193
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
194
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
195
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
198
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
199
+ minutes: z.ZodInt;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ reportChangedAt: z.ZodISODateTime;
202
+ state: z.ZodEnum<{
203
+ working: "working";
204
+ blocked: "blocked";
205
+ }>;
206
+ minutes: z.ZodInt;
207
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
208
+ }, z.core.$strict>, z.ZodObject<{
209
+ task: z.ZodObject<{
210
+ kind: z.ZodString;
211
+ }, z.core.$catchall<z.ZodJSONSchema>>;
212
+ doneBy: z.ZodISODateTime;
213
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
214
+ }, z.core.$strict>]>;
215
+ occurrenceKey: z.ZodString;
216
+ since: z.ZodISODateTime;
217
+ }, z.core.$strip>, z.ZodTransform<{
218
+ signal: "crew-request-unassigned";
219
+ facts: {
220
+ settingsVersion: number;
221
+ minutes: number;
222
+ reason: string | null;
223
+ };
224
+ shipId: `shp_${string}`;
225
+ occurrenceKey: string;
226
+ since: string;
227
+ } | {
228
+ signal: "delivery-unacknowledged";
229
+ facts: {
230
+ deliveryId: `dlv_${string}`;
231
+ messageId: `msg_${string}`;
232
+ state: "pending" | "received" | "handed";
233
+ awaitingCrew: boolean;
234
+ minutes: number;
235
+ };
236
+ shipId: `shp_${string}`;
237
+ occurrenceKey: string;
238
+ since: string;
239
+ } | {
240
+ signal: "delivery-overdue";
241
+ facts: {
242
+ deliveryId: `dlv_${string}`;
243
+ messageId: `msg_${string}`;
244
+ overdueEventId: `evt_${string}`;
245
+ };
246
+ shipId: `shp_${string}`;
247
+ occurrenceKey: string;
248
+ since: string;
249
+ } | {
250
+ signal: "ping-unanswered";
251
+ facts: {
252
+ deliveryId: `dlv_${string}`;
253
+ messageId: `msg_${string}`;
254
+ minutes: number;
255
+ };
256
+ shipId: `shp_${string}`;
257
+ occurrenceKey: string;
258
+ since: string;
259
+ } | {
260
+ signal: "report-unchanged";
261
+ facts: {
262
+ reportChangedAt: string;
263
+ state: "working" | "blocked";
264
+ minutes: number;
265
+ setBy: `shp_${string}`;
266
+ };
267
+ shipId: `shp_${string}`;
268
+ occurrenceKey: string;
269
+ since: string;
270
+ } | {
271
+ signal: "task-not-done";
272
+ facts: {
273
+ task: {
274
+ [x: string]: z.core.util.JSONType;
275
+ kind: string;
276
+ };
277
+ doneBy: string;
278
+ setBy: `shp_${string}`;
279
+ };
280
+ shipId: `shp_${string}`;
281
+ occurrenceKey: string;
282
+ since: string;
283
+ }, {
284
+ shipId: `shp_${string}`;
285
+ signal: "crew-request-unassigned" | "delivery-unacknowledged" | "delivery-overdue" | "ping-unanswered" | "report-unchanged" | "task-not-done";
286
+ facts: {
287
+ settingsVersion: number;
288
+ minutes: number;
289
+ reason: string | null;
290
+ } | {
291
+ deliveryId: `dlv_${string}`;
292
+ messageId: `msg_${string}`;
293
+ state: "pending" | "received" | "handed";
294
+ awaitingCrew: boolean;
295
+ minutes: number;
296
+ } | {
297
+ deliveryId: `dlv_${string}`;
298
+ messageId: `msg_${string}`;
299
+ overdueEventId: `evt_${string}`;
300
+ } | {
301
+ deliveryId: `dlv_${string}`;
302
+ messageId: `msg_${string}`;
303
+ minutes: number;
304
+ } | {
305
+ reportChangedAt: string;
306
+ state: "working" | "blocked";
307
+ minutes: number;
308
+ setBy: `shp_${string}`;
309
+ } | {
310
+ task: {
311
+ [x: string]: z.core.util.JSONType;
312
+ kind: string;
313
+ };
314
+ doneBy: string;
315
+ setBy: `shp_${string}`;
316
+ };
317
+ occurrenceKey: string;
318
+ since: string;
319
+ }>>;
320
+ export type RaiseAlertInput = z.infer<typeof raiseAlertInputSchema>;
321
+ /** Input of `fleet.clearAlert` (fleet:alert): the alert to clear. */
322
+ export declare const clearAlertInputSchema: z.ZodObject<{
323
+ alertId: z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>;
324
+ }, z.core.$strip>;
325
+ /** Why an alert cleared: its fact moved back, as the watch saw, or its ship retired. */
326
+ export declare const ALERT_CLEARED_WHYS: readonly ["cleared", "retired"];
327
+ export declare const alertClearedWhySchema: z.ZodEnum<{
328
+ retired: "retired";
329
+ cleared: "cleared";
330
+ }>;
331
+ export type AlertClearedWhy = z.infer<typeof alertClearedWhySchema>;
332
+ /**
333
+ * An alert as core holds it: the ship, the signal and its facts at raise,
334
+ * the occurrence key, the owner told (the ship's owner at raise), since when
335
+ * the fact parted, when it was raised, and when and why it cleared, null
336
+ * while it is open.
337
+ */
338
+ export declare const alertSchema: z.ZodIntersection<z.ZodObject<{
339
+ id: z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>;
340
+ ship: z.ZodObject<{
341
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
342
+ name: z.ZodString;
343
+ }, z.core.$strip>;
344
+ occurrenceKey: z.ZodString;
345
+ ownerShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
346
+ since: z.ZodISODateTime;
347
+ raisedAt: z.ZodISODateTime;
348
+ cleared: z.ZodNullable<z.ZodObject<{
349
+ at: z.ZodISODateTime;
350
+ why: z.ZodEnum<{
351
+ retired: "retired";
352
+ cleared: "cleared";
353
+ }>;
354
+ }, z.core.$strip>>;
355
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
356
+ signal: z.ZodLiteral<"crew-request-unassigned">;
357
+ facts: z.ZodObject<{
358
+ settingsVersion: z.ZodInt;
359
+ minutes: z.ZodInt;
360
+ reason: z.ZodNullable<z.ZodString>;
361
+ }, z.core.$strict>;
362
+ }, z.core.$strip>, z.ZodObject<{
363
+ signal: z.ZodLiteral<"delivery-unacknowledged">;
364
+ facts: z.ZodObject<{
365
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
366
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
367
+ state: z.ZodEnum<{
368
+ pending: "pending";
369
+ received: "received";
370
+ handed: "handed";
371
+ }>;
372
+ awaitingCrew: z.ZodBoolean;
373
+ minutes: z.ZodInt;
374
+ }, z.core.$strict>;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ signal: z.ZodLiteral<"delivery-overdue">;
377
+ facts: z.ZodObject<{
378
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
379
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
380
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
381
+ }, z.core.$strict>;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ signal: z.ZodLiteral<"ping-unanswered">;
384
+ facts: z.ZodObject<{
385
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
386
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
387
+ minutes: z.ZodInt;
388
+ }, z.core.$strict>;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ signal: z.ZodLiteral<"report-unchanged">;
391
+ facts: z.ZodObject<{
392
+ reportChangedAt: z.ZodISODateTime;
393
+ state: z.ZodEnum<{
394
+ working: "working";
395
+ blocked: "blocked";
396
+ }>;
397
+ minutes: z.ZodInt;
398
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
399
+ }, z.core.$strict>;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ signal: z.ZodLiteral<"task-not-done">;
402
+ facts: z.ZodObject<{
403
+ task: z.ZodObject<{
404
+ kind: z.ZodString;
405
+ }, z.core.$catchall<z.ZodJSONSchema>>;
406
+ doneBy: z.ZodISODateTime;
407
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
408
+ }, z.core.$strict>;
409
+ }, z.core.$strip>], "signal">>;
410
+ export type AlertOutput = z.infer<typeof alertSchema>;
411
+ /** Output of `fleet.raiseAlert` and `fleet.clearAlert`: the alert as core holds it now. */
412
+ export declare const alertOutputSchema: z.ZodIntersection<z.ZodObject<{
413
+ id: z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>;
414
+ ship: z.ZodObject<{
415
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
416
+ name: z.ZodString;
417
+ }, z.core.$strip>;
418
+ occurrenceKey: z.ZodString;
419
+ ownerShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
420
+ since: z.ZodISODateTime;
421
+ raisedAt: z.ZodISODateTime;
422
+ cleared: z.ZodNullable<z.ZodObject<{
423
+ at: z.ZodISODateTime;
424
+ why: z.ZodEnum<{
425
+ retired: "retired";
426
+ cleared: "cleared";
427
+ }>;
428
+ }, z.core.$strip>>;
429
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
430
+ signal: z.ZodLiteral<"crew-request-unassigned">;
431
+ facts: z.ZodObject<{
432
+ settingsVersion: z.ZodInt;
433
+ minutes: z.ZodInt;
434
+ reason: z.ZodNullable<z.ZodString>;
435
+ }, z.core.$strict>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ signal: z.ZodLiteral<"delivery-unacknowledged">;
438
+ facts: z.ZodObject<{
439
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
440
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
441
+ state: z.ZodEnum<{
442
+ pending: "pending";
443
+ received: "received";
444
+ handed: "handed";
445
+ }>;
446
+ awaitingCrew: z.ZodBoolean;
447
+ minutes: z.ZodInt;
448
+ }, z.core.$strict>;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ signal: z.ZodLiteral<"delivery-overdue">;
451
+ facts: z.ZodObject<{
452
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
453
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
454
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
455
+ }, z.core.$strict>;
456
+ }, z.core.$strip>, z.ZodObject<{
457
+ signal: z.ZodLiteral<"ping-unanswered">;
458
+ facts: z.ZodObject<{
459
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
460
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
461
+ minutes: z.ZodInt;
462
+ }, z.core.$strict>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ signal: z.ZodLiteral<"report-unchanged">;
465
+ facts: z.ZodObject<{
466
+ reportChangedAt: z.ZodISODateTime;
467
+ state: z.ZodEnum<{
468
+ working: "working";
469
+ blocked: "blocked";
470
+ }>;
471
+ minutes: z.ZodInt;
472
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
473
+ }, z.core.$strict>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ signal: z.ZodLiteral<"task-not-done">;
476
+ facts: z.ZodObject<{
477
+ task: z.ZodObject<{
478
+ kind: z.ZodString;
479
+ }, z.core.$catchall<z.ZodJSONSchema>>;
480
+ doneBy: z.ZodISODateTime;
481
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
482
+ }, z.core.$strict>;
483
+ }, z.core.$strip>], "signal">>;
484
+ /** Input of `fleet.openAlerts` (fleet:read): the cursor and size of a page. */
485
+ export declare const openAlertsInputSchema: z.ZodOptional<z.ZodObject<{
486
+ cursor: z.ZodOptional<z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>>;
487
+ limit: z.ZodOptional<z.ZodInt>;
488
+ }, z.core.$strip>>;
489
+ /** Output of `fleet.openAlerts`: a page of the fleet's open alerts on the ships the caller reads, newest first. */
490
+ export declare const openAlertsOutputSchema: z.ZodObject<{
491
+ items: z.ZodArray<z.ZodIntersection<z.ZodObject<{
492
+ id: z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>;
493
+ ship: z.ZodObject<{
494
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
495
+ name: z.ZodString;
496
+ }, z.core.$strip>;
497
+ occurrenceKey: z.ZodString;
498
+ ownerShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
499
+ since: z.ZodISODateTime;
500
+ raisedAt: z.ZodISODateTime;
501
+ cleared: z.ZodNullable<z.ZodObject<{
502
+ at: z.ZodISODateTime;
503
+ why: z.ZodEnum<{
504
+ retired: "retired";
505
+ cleared: "cleared";
506
+ }>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
509
+ signal: z.ZodLiteral<"crew-request-unassigned">;
510
+ facts: z.ZodObject<{
511
+ settingsVersion: z.ZodInt;
512
+ minutes: z.ZodInt;
513
+ reason: z.ZodNullable<z.ZodString>;
514
+ }, z.core.$strict>;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ signal: z.ZodLiteral<"delivery-unacknowledged">;
517
+ facts: z.ZodObject<{
518
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
519
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
520
+ state: z.ZodEnum<{
521
+ pending: "pending";
522
+ received: "received";
523
+ handed: "handed";
524
+ }>;
525
+ awaitingCrew: z.ZodBoolean;
526
+ minutes: z.ZodInt;
527
+ }, z.core.$strict>;
528
+ }, z.core.$strip>, z.ZodObject<{
529
+ signal: z.ZodLiteral<"delivery-overdue">;
530
+ facts: z.ZodObject<{
531
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
532
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
533
+ overdueEventId: z.ZodType<`evt_${string}`, unknown, z.core.$ZodTypeInternals<`evt_${string}`, unknown>>;
534
+ }, z.core.$strict>;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ signal: z.ZodLiteral<"ping-unanswered">;
537
+ facts: z.ZodObject<{
538
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
539
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
540
+ minutes: z.ZodInt;
541
+ }, z.core.$strict>;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ signal: z.ZodLiteral<"report-unchanged">;
544
+ facts: z.ZodObject<{
545
+ reportChangedAt: z.ZodISODateTime;
546
+ state: z.ZodEnum<{
547
+ working: "working";
548
+ blocked: "blocked";
549
+ }>;
550
+ minutes: z.ZodInt;
551
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
552
+ }, z.core.$strict>;
553
+ }, z.core.$strip>, z.ZodObject<{
554
+ signal: z.ZodLiteral<"task-not-done">;
555
+ facts: z.ZodObject<{
556
+ task: z.ZodObject<{
557
+ kind: z.ZodString;
558
+ }, z.core.$catchall<z.ZodJSONSchema>>;
559
+ doneBy: z.ZodISODateTime;
560
+ setBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
561
+ }, z.core.$strict>;
562
+ }, z.core.$strip>], "signal">>>;
563
+ nextCursor: z.ZodNullable<z.ZodType<`alt_${string}`, unknown, z.core.$ZodTypeInternals<`alt_${string}`, unknown>>>;
564
+ }, z.core.$strip>;