@aeolus-fleet/common 0.27.0 → 0.28.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 (46) hide show
  1. package/dist/fleet/core-version.d.ts +20 -0
  2. package/dist/fleet/core-version.js +59 -0
  3. package/dist/fleet/core-version.js.map +1 -0
  4. package/dist/fleet/index.d.ts +27 -4
  5. package/dist/fleet/index.js +43 -2
  6. package/dist/fleet/index.js.map +1 -1
  7. package/dist/ids/index.d.ts +3 -0
  8. package/dist/ids/index.js +2 -0
  9. package/dist/ids/index.js.map +1 -1
  10. package/dist/schemas/account-token.d.ts +49 -0
  11. package/dist/schemas/account-token.js +51 -0
  12. package/dist/schemas/account-token.js.map +1 -0
  13. package/dist/schemas/console.d.ts +8 -0
  14. package/dist/schemas/console.js +3 -1
  15. package/dist/schemas/console.js.map +1 -1
  16. package/dist/schemas/delivery.d.ts +69 -3
  17. package/dist/schemas/delivery.js +35 -3
  18. package/dist/schemas/delivery.js.map +1 -1
  19. package/dist/schemas/fleet.d.ts +40 -2
  20. package/dist/schemas/fleet.js +21 -4
  21. package/dist/schemas/fleet.js.map +1 -1
  22. package/dist/schemas/follow.d.ts +14 -0
  23. package/dist/schemas/history.d.ts +111 -9
  24. package/dist/schemas/history.js +19 -3
  25. package/dist/schemas/history.js.map +1 -1
  26. package/dist/schemas/index.d.ts +2 -0
  27. package/dist/schemas/index.js +2 -0
  28. package/dist/schemas/index.js.map +1 -1
  29. package/dist/schemas/installation.d.ts +12 -0
  30. package/dist/schemas/installation.js +14 -1
  31. package/dist/schemas/installation.js.map +1 -1
  32. package/dist/schemas/label.d.ts +19 -5
  33. package/dist/schemas/label.js +7 -2
  34. package/dist/schemas/label.js.map +1 -1
  35. package/dist/schemas/network.d.ts +409 -90
  36. package/dist/schemas/network.js +76 -51
  37. package/dist/schemas/network.js.map +1 -1
  38. package/dist/schemas/statement.d.ts +94 -4
  39. package/dist/schemas/statement.js +33 -4
  40. package/dist/schemas/statement.js.map +1 -1
  41. package/dist/schemas/verified-fact.d.ts +109 -0
  42. package/dist/schemas/verified-fact.js +57 -0
  43. package/dist/schemas/verified-fact.js.map +1 -0
  44. package/dist/trierarch/crew-settings.js +1 -1
  45. package/dist/trierarch/report-details.js +2 -2
  46. package/package.json +1 -3
@@ -6,7 +6,7 @@ import { z } from 'zod';
6
6
  * holds for every ship). Allow-only. The limits are the decision's; the server
7
7
  * checks them, so every refusal names it.
8
8
  */
9
- /** The most rules of argo's one fleet may hold, beside the rules its ships declared (decision 0037). */
9
+ /** The most rules of its own one fleet may hold, beside the rules its ships declared (decision 0037). */
10
10
  export declare const NETWORK_RULES_MAX = 200;
11
11
  /** The most rules one ship may declare (decision 0037). */
12
12
  export declare const DECLARED_NETWORK_RULES_MAX = 20;
@@ -92,9 +92,41 @@ export declare const networkRuleSchema: z.ZodObject<{
92
92
  }, z.core.$strip>]>>;
93
93
  }, z.core.$strip>;
94
94
  export type NetworkRule = z.infer<typeof networkRuleSchema>;
95
- /** Input of `fleet.setNetworkRules` (fleet:network): every rule the fleet holds from now on beside the built-in ones. */
96
- export declare const setNetworkRulesInputSchema: z.ZodObject<{
97
- rules: z.ZodArray<z.ZodObject<{
95
+ /** The fleet's own rules: the whole list, or none for all-to-all, open on (decision 0034). */
96
+ export declare const networkRulesSchema: z.ZodNullable<z.ZodArray<z.ZodObject<{
97
+ verb: z.ZodEnum<{
98
+ send: "send";
99
+ read: "read";
100
+ manage: "manage";
101
+ }>;
102
+ from: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
103
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
104
+ value: z.ZodEnum<{
105
+ "*": "*";
106
+ "#": "#";
107
+ }>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
110
+ "*": "*";
111
+ "#": "#";
112
+ }>]>;
113
+ }, z.core.$strip>]>>;
114
+ to: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
115
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
116
+ value: z.ZodEnum<{
117
+ "*": "*";
118
+ "#": "#";
119
+ }>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
122
+ "*": "*";
123
+ "#": "#";
124
+ }>]>;
125
+ }, z.core.$strip>]>>;
126
+ }, z.core.$strip>>>;
127
+ /** Input of `fleet.saveNetworkRulesDraft` (fleet:network): the draft of the fleet's own rules, a whole list or none for all-to-all. */
128
+ export declare const saveNetworkRulesDraftInputSchema: z.ZodObject<{
129
+ rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
98
130
  verb: z.ZodEnum<{
99
131
  send: "send";
100
132
  read: "read";
@@ -124,78 +156,152 @@ export declare const setNetworkRulesInputSchema: z.ZodObject<{
124
156
  "#": "#";
125
157
  }>]>;
126
158
  }, z.core.$strip>]>>;
159
+ }, z.core.$strip>>>;
160
+ }, z.core.$strip>;
161
+ /** Output of `fleet.saveNetworkRulesDraft`: the settings version the draft was saved against, which its apply names. */
162
+ export declare const saveNetworkRulesDraftOutputSchema: z.ZodObject<{
163
+ savedAgainstVersion: z.ZodInt;
164
+ }, z.core.$strip>;
165
+ /** Input of `fleet.applyNetworkRules` (fleet:network): the settings version the caller saw the draft against; a moved one refuses the apply. */
166
+ export declare const applyNetworkRulesInputSchema: z.ZodObject<{
167
+ version: z.ZodInt;
168
+ }, z.core.$strip>;
169
+ /**
170
+ * Output of `fleet.networkRules` (fleet:network): the applied rules at the
171
+ * settings version, none for a fleet that never set any, and the draft, with
172
+ * when it was saved and against which version, or none.
173
+ */
174
+ export declare const networkRulesOutputSchema: z.ZodObject<{
175
+ applied: z.ZodObject<{
176
+ rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
177
+ verb: z.ZodEnum<{
178
+ send: "send";
179
+ read: "read";
180
+ manage: "manage";
181
+ }>;
182
+ from: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
183
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
184
+ value: z.ZodEnum<{
185
+ "*": "*";
186
+ "#": "#";
187
+ }>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
190
+ "*": "*";
191
+ "#": "#";
192
+ }>]>;
193
+ }, z.core.$strip>]>>;
194
+ to: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
195
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
196
+ value: z.ZodEnum<{
197
+ "*": "*";
198
+ "#": "#";
199
+ }>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
202
+ "*": "*";
203
+ "#": "#";
204
+ }>]>;
205
+ }, z.core.$strip>]>>;
206
+ }, z.core.$strip>>>;
207
+ version: z.ZodInt;
208
+ }, z.core.$strip>;
209
+ draft: z.ZodNullable<z.ZodObject<{
210
+ rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
211
+ verb: z.ZodEnum<{
212
+ send: "send";
213
+ read: "read";
214
+ manage: "manage";
215
+ }>;
216
+ from: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
217
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
218
+ value: z.ZodEnum<{
219
+ "*": "*";
220
+ "#": "#";
221
+ }>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
224
+ "*": "*";
225
+ "#": "#";
226
+ }>]>;
227
+ }, z.core.$strip>]>>;
228
+ to: z.ZodArray<z.ZodUnion<readonly [z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>, z.ZodObject<{
229
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
230
+ value: z.ZodEnum<{
231
+ "*": "*";
232
+ "#": "#";
233
+ }>;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ owner: z.ZodUnion<readonly [z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>, z.ZodEnum<{
236
+ "*": "*";
237
+ "#": "#";
238
+ }>]>;
239
+ }, z.core.$strip>]>>;
240
+ }, z.core.$strip>>>;
241
+ savedAt: z.ZodISODateTime;
242
+ savedAgainstVersion: z.ZodInt;
127
243
  }, z.core.$strip>>;
128
244
  }, z.core.$strip>;
245
+ export type NetworkRules = z.infer<typeof networkRulesOutputSchema>;
246
+ /** Output of `fleet.discardNetworkRulesDraft`. */
247
+ export declare const discardNetworkRulesDraftOutputSchema: z.ZodObject<{}, z.core.$strip>;
129
248
  /**
130
249
  * The built-in rules, core's own (decision 0034): argo to and from every ship,
131
- * the owner's ship to the ships it owns, and an answer to the sender of the
132
- * message it answers, which are never off; the viewer reading every ship,
133
- * which argo turns off or on; and open, every ship to every ship, one per
134
- * verb, which the networking plugin turns off or on.
250
+ * the owner's ship to the ships it owns, an answer to the sender of the
251
+ * message it answers, and a connected plugin's ship reading every ship, which
252
+ * are never off; the viewer reading every ship,
253
+ * which an actor holding fleet:network turns off or on; the installation
254
+ * managing person ships and the ships they own, never off (decision 0020); and
255
+ * open, every ship to every ship by every verb, on exactly while the fleet has
256
+ * no rules applied.
135
257
  */
136
- export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "viewerRead", "open"];
258
+ export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "viewerRead", "installation", "open"];
137
259
  export type BuiltInRule = (typeof BUILT_IN_RULES)[number];
138
260
  /** The built-in rules that are never off. */
139
- export declare const FIXED_BUILT_IN_RULES: readonly ["argo", "owner", "answer"];
140
- /** Input of `fleet.setBuiltInRule` (fleet:network): a built-in rule turned on or off, open for one verb, which it names and no other rule does. */
261
+ export declare const FIXED_BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "installation"];
262
+ /** Input of `fleet.setBuiltInRule` (fleet:network): a built-in rule turned on or off; the server turns only the viewer reading. */
141
263
  export declare const setBuiltInRuleInputSchema: z.ZodObject<{
142
264
  rule: z.ZodEnum<{
265
+ installation: "installation";
143
266
  owner: "owner";
144
267
  open: "open";
145
268
  argo: "argo";
146
269
  answer: "answer";
270
+ pluginRead: "pluginRead";
147
271
  viewerRead: "viewerRead";
148
272
  }>;
149
- verb: z.ZodOptional<z.ZodEnum<{
150
- send: "send";
151
- read: "read";
152
- manage: "manage";
153
- }>>;
154
273
  isOn: z.ZodBoolean;
155
274
  }, z.core.$strip>;
156
275
  export type SetBuiltInRuleInput = z.infer<typeof setBuiltInRuleInputSchema>;
157
- /**
158
- * One built-in rule as it is now: open for one verb, which it names and no
159
- * other rule does, and whether it is on; the fixed ones always are.
160
- */
161
- export declare const builtInRuleStateSchema: z.ZodUnion<readonly [z.ZodObject<{
276
+ /** One built-in rule as it is now, and whether it is on; the fixed ones always are. */
277
+ export declare const builtInRuleStateSchema: z.ZodObject<{
162
278
  rule: z.ZodEnum<{
279
+ installation: "installation";
163
280
  owner: "owner";
281
+ open: "open";
164
282
  argo: "argo";
165
283
  answer: "answer";
284
+ pluginRead: "pluginRead";
166
285
  viewerRead: "viewerRead";
167
286
  }>;
168
287
  isOn: z.ZodBoolean;
169
- }, z.core.$strip>, z.ZodObject<{
170
- rule: z.ZodLiteral<"open">;
171
- verb: z.ZodEnum<{
172
- send: "send";
173
- read: "read";
174
- manage: "manage";
175
- }>;
176
- isOn: z.ZodBoolean;
177
- }, z.core.$strip>]>;
288
+ }, z.core.$strip>;
178
289
  export type BuiltInRuleState = z.infer<typeof builtInRuleStateSchema>;
179
290
  /** Output of `fleet.builtInRules` (fleet:network): every built-in rule as it is now, in the order the rule list shows them, first (decision 0034). */
180
- export declare const builtInRulesOutputSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
291
+ export declare const builtInRulesOutputSchema: z.ZodArray<z.ZodObject<{
181
292
  rule: z.ZodEnum<{
293
+ installation: "installation";
182
294
  owner: "owner";
295
+ open: "open";
183
296
  argo: "argo";
184
297
  answer: "answer";
298
+ pluginRead: "pluginRead";
185
299
  viewerRead: "viewerRead";
186
300
  }>;
187
301
  isOn: z.ZodBoolean;
188
- }, z.core.$strip>, z.ZodObject<{
189
- rule: z.ZodLiteral<"open">;
190
- verb: z.ZodEnum<{
191
- send: "send";
192
- read: "read";
193
- manage: "manage";
194
- }>;
195
- isOn: z.ZodBoolean;
196
- }, z.core.$strip>]>>;
197
- /** Output of `fleet.setNetworkRules`: the version the fleet's network settings have now. */
198
- export declare const setNetworkRulesOutputSchema: z.ZodObject<{
302
+ }, z.core.$strip>>;
303
+ /** Output of `fleet.applyNetworkRules` and `fleet.setBuiltInRule`: the version the fleet's network settings have now. */
304
+ export declare const networkVersionOutputSchema: z.ZodObject<{
199
305
  version: z.ZodInt;
200
306
  }, z.core.$strip>;
201
307
  /** Input of `fleet.declareNetworkRules` (labels:define): every rule the ship declares from now on, on labels it owns; an empty list withdraws them (decision 0037). */
@@ -236,9 +342,22 @@ export declare const declareNetworkRulesInputSchema: z.ZodObject<{
236
342
  export declare const declareNetworkRulesOutputSchema: z.ZodObject<{
237
343
  rules: z.ZodInt;
238
344
  }, z.core.$strip>;
239
- /** Output of `fleet.declaredNetworkRules` (fleet:network): each ship that declared rules, with its whole list. */
240
- export declare const declaredNetworkRulesOutputSchema: z.ZodArray<z.ZodObject<{
345
+ /** Who declared network rules (decisions 0037, 0052): a ship, or the installation on the labels it owns. */
346
+ export declare const declarerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
347
+ kind: z.ZodLiteral<"ship">;
241
348
  shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ kind: z.ZodLiteral<"installation">;
351
+ }, z.core.$strip>], "kind">;
352
+ export type Declarer = z.infer<typeof declarerSchema>;
353
+ /** Output of `fleet.declaredNetworkRules` (fleet:network): each declarer of rules, with its whole list. */
354
+ export declare const declaredNetworkRulesOutputSchema: z.ZodArray<z.ZodObject<{
355
+ declarer: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
+ kind: z.ZodLiteral<"ship">;
357
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ kind: z.ZodLiteral<"installation">;
360
+ }, z.core.$strip>], "kind">;
242
361
  rules: z.ZodArray<z.ZodObject<{
243
362
  verb: z.ZodEnum<{
244
363
  send: "send";
@@ -271,38 +390,17 @@ export declare const declaredNetworkRulesOutputSchema: z.ZodArray<z.ZodObject<{
271
390
  }, z.core.$strip>]>>;
272
391
  }, z.core.$strip>>;
273
392
  }, z.core.$strip>>;
274
- /**
275
- * What happens to sends while a fleet's networking plugin is unavailable
276
- * (decision 0035): every send refused but the fixed exceptions, every send
277
- * allowed, or the rules it supplied last kept.
278
- */
279
- export declare const WHILE_UNAVAILABLE: readonly ["block-all", "open-all", "keep-latest"];
280
- export type WhileUnavailable = (typeof WHILE_UNAVAILABLE)[number];
281
- /** The least time without a call from its ship after which a networking plugin is not responding: longer than a receive waits. */
282
- export declare const NETWORK_PLUGIN_NOT_RESPONDING_AFTER_MIN_SECONDS = 60;
283
- /** The most: a day. */
284
- export declare const NETWORK_PLUGIN_NOT_RESPONDING_AFTER_MAX_SECONDS = 86400;
285
- /** Input of `fleet.registerNetworkPlugin` (fleet:network): what happens while the plugin is unavailable, and after how long without a call it is not responding. */
286
- export declare const registerNetworkPluginInputSchema: z.ZodObject<{
287
- whileUnavailable: z.ZodEnum<{
288
- "block-all": "block-all";
289
- "open-all": "open-all";
290
- "keep-latest": "keep-latest";
291
- }>;
292
- notRespondingAfterSeconds: z.ZodInt;
293
- }, z.core.$strip>;
294
- export type NetworkPluginDeclaration = z.infer<typeof registerNetworkPluginInputSchema>;
295
393
  /**
296
394
  * The request header a plugin ship names the ship it reads on behalf of with,
297
395
  * by id: every fleet:read read then answers with that ship's read reach
298
396
  * (decision 0034). Any other call refuses it.
299
397
  */
300
398
  export declare const ON_BEHALF_OF_HEADER = "aeolus-on-behalf-of";
301
- /** One refused send: who tried to reach whom by which verb, both ships as they were with their owners, the settings version that refused it and when. */
399
+ /** One refused call: who tried to reach whom by which verb, the actor and the ship as they were with their owners, the settings version that refused it and when. */
302
400
  export declare const reachRefusalSchema: z.ZodObject<{
303
401
  id: z.ZodType<`rfs_${string}`, unknown, z.core.$ZodTypeInternals<`rfs_${string}`, unknown>>;
304
402
  at: z.ZodISODateTime;
305
- sender: z.ZodObject<{
403
+ sender: z.ZodDiscriminatedUnion<[z.ZodObject<{
306
404
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
307
405
  name: z.ZodString;
308
406
  labels: z.ZodArray<z.ZodObject<{
@@ -315,7 +413,23 @@ export declare const reachRefusalSchema: z.ZodObject<{
315
413
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
316
414
  name: z.ZodString;
317
415
  }, z.core.$strip>>;
318
- }, z.core.$strip>;
416
+ kind: z.ZodLiteral<"ship">;
417
+ }, z.core.$strip>, z.ZodObject<{
418
+ kind: z.ZodLiteral<"account">;
419
+ accountId: z.core.$ZodBranded<z.ZodString, "AccountId", "out">;
420
+ labels: z.ZodArray<z.ZodObject<{
421
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
422
+ key: z.ZodString;
423
+ valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
424
+ value: z.ZodString;
425
+ }, z.core.$strip>>;
426
+ personShip: z.ZodNullable<z.ZodObject<{
427
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
428
+ name: z.ZodString;
429
+ }, z.core.$strip>>;
430
+ }, z.core.$strip>, z.ZodObject<{
431
+ kind: z.ZodLiteral<"installation">;
432
+ }, z.core.$strip>], "kind">;
319
433
  askedBy: z.ZodNullable<z.ZodObject<{
320
434
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
321
435
  name: z.ZodString;
@@ -370,17 +484,13 @@ export declare const reachRefusalSchema: z.ZodObject<{
370
484
  manage: "manage";
371
485
  }>;
372
486
  settingsVersion: z.ZodInt;
373
- whilePluginUnavailable: z.ZodNullable<z.ZodEnum<{
374
- "block-all": "block-all";
375
- "keep-latest": "keep-latest";
376
- }>>;
377
487
  }, z.core.$strip>;
378
488
  export type ReachRefusal = z.infer<typeof reachRefusalSchema>;
379
489
  /** Output of `fleet.reachRefusals` (argo only): the fleet's latest refusals, newest first, at most REACH_REFUSALS_READ_MAX. */
380
490
  export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
381
491
  id: z.ZodType<`rfs_${string}`, unknown, z.core.$ZodTypeInternals<`rfs_${string}`, unknown>>;
382
492
  at: z.ZodISODateTime;
383
- sender: z.ZodObject<{
493
+ sender: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
494
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
385
495
  name: z.ZodString;
386
496
  labels: z.ZodArray<z.ZodObject<{
@@ -393,7 +503,23 @@ export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
393
503
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
394
504
  name: z.ZodString;
395
505
  }, z.core.$strip>>;
396
- }, z.core.$strip>;
506
+ kind: z.ZodLiteral<"ship">;
507
+ }, z.core.$strip>, z.ZodObject<{
508
+ kind: z.ZodLiteral<"account">;
509
+ accountId: z.core.$ZodBranded<z.ZodString, "AccountId", "out">;
510
+ labels: z.ZodArray<z.ZodObject<{
511
+ labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
512
+ key: z.ZodString;
513
+ valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
514
+ value: z.ZodString;
515
+ }, z.core.$strip>>;
516
+ personShip: z.ZodNullable<z.ZodObject<{
517
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
518
+ name: z.ZodString;
519
+ }, z.core.$strip>>;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"installation">;
522
+ }, z.core.$strip>], "kind">;
397
523
  askedBy: z.ZodNullable<z.ZodObject<{
398
524
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
399
525
  name: z.ZodString;
@@ -448,34 +574,41 @@ export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
448
574
  manage: "manage";
449
575
  }>;
450
576
  settingsVersion: z.ZodInt;
451
- whilePluginUnavailable: z.ZodNullable<z.ZodEnum<{
452
- "block-all": "block-all";
453
- "keep-latest": "keep-latest";
454
- }>>;
455
577
  }, z.core.$strip>>;
456
- /** Input of `fleet.explainReach` (argo only): the ship to explain from, and the one ship asked about, or none for every ship. */
578
+ /** Input of `fleet.explainReach` (fleet:explain): the ship to explain from, the one ship asked about or none for every ship, and the rules to explain against: the applied ones, or the draft. */
457
579
  export declare const explainReachInputSchema: z.ZodObject<{
458
580
  fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
459
581
  toShipId: z.ZodOptional<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
582
+ against: z.ZodOptional<z.ZodEnum<{
583
+ applied: "applied";
584
+ draft: "draft";
585
+ }>>;
460
586
  }, z.core.$strip>;
461
587
  /**
462
588
  * The rule that lets one ship reach another (decision 0034): a built-in rule;
463
- * a rule the networking plugin supplied, by its place in the fleet's list;
464
- * or a rule a ship declared, by its declarer and its place in that ship's
465
- * list (decision 0037).
589
+ * one of the fleet's own rules, by its place in the fleet's list;
590
+ * or a declared rule, by its declarer, a ship or the installation, and its
591
+ * place in that declarer's list (decision 0037).
466
592
  */
467
593
  export declare const reachRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
468
594
  builtIn: z.ZodEnum<{
595
+ installation: "installation";
469
596
  owner: "owner";
470
597
  open: "open";
471
598
  argo: "argo";
472
599
  answer: "answer";
600
+ pluginRead: "pluginRead";
473
601
  viewerRead: "viewerRead";
474
602
  }>;
475
603
  }, z.core.$strip>, z.ZodObject<{
476
- plugin: z.ZodInt;
604
+ rule: z.ZodInt;
477
605
  }, z.core.$strip>, z.ZodObject<{
478
- declared: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
606
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
607
+ kind: z.ZodLiteral<"ship">;
608
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
609
+ }, z.core.$strip>, z.ZodObject<{
610
+ kind: z.ZodLiteral<"installation">;
611
+ }, z.core.$strip>], "kind">;
479
612
  index: z.ZodInt;
480
613
  }, z.core.$strip>]>;
481
614
  export type ReachRule = z.infer<typeof reachRuleSchema>;
@@ -485,16 +618,23 @@ export declare const explainReachOutputSchema: z.ZodObject<{
485
618
  shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
486
619
  rule: z.ZodUnion<readonly [z.ZodObject<{
487
620
  builtIn: z.ZodEnum<{
621
+ installation: "installation";
488
622
  owner: "owner";
489
623
  open: "open";
490
624
  argo: "argo";
491
625
  answer: "answer";
626
+ pluginRead: "pluginRead";
492
627
  viewerRead: "viewerRead";
493
628
  }>;
494
629
  }, z.core.$strip>, z.ZodObject<{
495
- plugin: z.ZodInt;
630
+ rule: z.ZodInt;
496
631
  }, z.core.$strip>, z.ZodObject<{
497
- declared: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
632
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
633
+ kind: z.ZodLiteral<"ship">;
634
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ kind: z.ZodLiteral<"installation">;
637
+ }, z.core.$strip>], "kind">;
498
638
  index: z.ZodInt;
499
639
  }, z.core.$strip>]>;
500
640
  }, z.core.$strip>>;
@@ -502,16 +642,23 @@ export declare const explainReachOutputSchema: z.ZodObject<{
502
642
  shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
503
643
  rule: z.ZodUnion<readonly [z.ZodObject<{
504
644
  builtIn: z.ZodEnum<{
645
+ installation: "installation";
505
646
  owner: "owner";
506
647
  open: "open";
507
648
  argo: "argo";
508
649
  answer: "answer";
650
+ pluginRead: "pluginRead";
509
651
  viewerRead: "viewerRead";
510
652
  }>;
511
653
  }, z.core.$strip>, z.ZodObject<{
512
- plugin: z.ZodInt;
654
+ rule: z.ZodInt;
513
655
  }, z.core.$strip>, z.ZodObject<{
514
- declared: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
656
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
657
+ kind: z.ZodLiteral<"ship">;
658
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ kind: z.ZodLiteral<"installation">;
661
+ }, z.core.$strip>], "kind">;
515
662
  index: z.ZodInt;
516
663
  }, z.core.$strip>]>;
517
664
  }, z.core.$strip>>;
@@ -519,18 +666,190 @@ export declare const explainReachOutputSchema: z.ZodObject<{
519
666
  shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
520
667
  rule: z.ZodUnion<readonly [z.ZodObject<{
521
668
  builtIn: z.ZodEnum<{
669
+ installation: "installation";
522
670
  owner: "owner";
523
671
  open: "open";
524
672
  argo: "argo";
525
673
  answer: "answer";
674
+ pluginRead: "pluginRead";
526
675
  viewerRead: "viewerRead";
527
676
  }>;
528
677
  }, z.core.$strip>, z.ZodObject<{
529
- plugin: z.ZodInt;
678
+ rule: z.ZodInt;
530
679
  }, z.core.$strip>, z.ZodObject<{
531
- declared: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
680
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
681
+ kind: z.ZodLiteral<"ship">;
682
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ kind: z.ZodLiteral<"installation">;
685
+ }, z.core.$strip>], "kind">;
532
686
  index: z.ZodInt;
533
687
  }, z.core.$strip>]>;
534
688
  }, z.core.$strip>>;
535
689
  }, z.core.$strip>;
536
690
  export type ExplainedReach = z.infer<typeof explainReachOutputSchema>;
691
+ /**
692
+ * Output of `fleet.networkRulesDraftChanges` (fleet:network): per verb, the
693
+ * pairs of ships the caller reads whose reach the draft gains, each with the
694
+ * draft's rule that allows it, and loses, each with the applied rule that
695
+ * allows it now (decision 0034).
696
+ */
697
+ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
698
+ send: z.ZodObject<{
699
+ gained: z.ZodArray<z.ZodObject<{
700
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
701
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
702
+ rule: z.ZodUnion<readonly [z.ZodObject<{
703
+ builtIn: z.ZodEnum<{
704
+ installation: "installation";
705
+ owner: "owner";
706
+ open: "open";
707
+ argo: "argo";
708
+ answer: "answer";
709
+ pluginRead: "pluginRead";
710
+ viewerRead: "viewerRead";
711
+ }>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ rule: z.ZodInt;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
716
+ kind: z.ZodLiteral<"ship">;
717
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
718
+ }, z.core.$strip>, z.ZodObject<{
719
+ kind: z.ZodLiteral<"installation">;
720
+ }, z.core.$strip>], "kind">;
721
+ index: z.ZodInt;
722
+ }, z.core.$strip>]>;
723
+ }, z.core.$strip>>;
724
+ lost: z.ZodArray<z.ZodObject<{
725
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
726
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
727
+ rule: z.ZodUnion<readonly [z.ZodObject<{
728
+ builtIn: z.ZodEnum<{
729
+ installation: "installation";
730
+ owner: "owner";
731
+ open: "open";
732
+ argo: "argo";
733
+ answer: "answer";
734
+ pluginRead: "pluginRead";
735
+ viewerRead: "viewerRead";
736
+ }>;
737
+ }, z.core.$strip>, z.ZodObject<{
738
+ rule: z.ZodInt;
739
+ }, z.core.$strip>, z.ZodObject<{
740
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
741
+ kind: z.ZodLiteral<"ship">;
742
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
743
+ }, z.core.$strip>, z.ZodObject<{
744
+ kind: z.ZodLiteral<"installation">;
745
+ }, z.core.$strip>], "kind">;
746
+ index: z.ZodInt;
747
+ }, z.core.$strip>]>;
748
+ }, z.core.$strip>>;
749
+ }, z.core.$strip>;
750
+ read: z.ZodObject<{
751
+ gained: z.ZodArray<z.ZodObject<{
752
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
753
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
754
+ rule: z.ZodUnion<readonly [z.ZodObject<{
755
+ builtIn: z.ZodEnum<{
756
+ installation: "installation";
757
+ owner: "owner";
758
+ open: "open";
759
+ argo: "argo";
760
+ answer: "answer";
761
+ pluginRead: "pluginRead";
762
+ viewerRead: "viewerRead";
763
+ }>;
764
+ }, z.core.$strip>, z.ZodObject<{
765
+ rule: z.ZodInt;
766
+ }, z.core.$strip>, z.ZodObject<{
767
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
768
+ kind: z.ZodLiteral<"ship">;
769
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
770
+ }, z.core.$strip>, z.ZodObject<{
771
+ kind: z.ZodLiteral<"installation">;
772
+ }, z.core.$strip>], "kind">;
773
+ index: z.ZodInt;
774
+ }, z.core.$strip>]>;
775
+ }, z.core.$strip>>;
776
+ lost: z.ZodArray<z.ZodObject<{
777
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
778
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
779
+ rule: z.ZodUnion<readonly [z.ZodObject<{
780
+ builtIn: z.ZodEnum<{
781
+ installation: "installation";
782
+ owner: "owner";
783
+ open: "open";
784
+ argo: "argo";
785
+ answer: "answer";
786
+ pluginRead: "pluginRead";
787
+ viewerRead: "viewerRead";
788
+ }>;
789
+ }, z.core.$strip>, z.ZodObject<{
790
+ rule: z.ZodInt;
791
+ }, z.core.$strip>, z.ZodObject<{
792
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
793
+ kind: z.ZodLiteral<"ship">;
794
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ kind: z.ZodLiteral<"installation">;
797
+ }, z.core.$strip>], "kind">;
798
+ index: z.ZodInt;
799
+ }, z.core.$strip>]>;
800
+ }, z.core.$strip>>;
801
+ }, z.core.$strip>;
802
+ manage: z.ZodObject<{
803
+ gained: z.ZodArray<z.ZodObject<{
804
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
805
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
806
+ rule: z.ZodUnion<readonly [z.ZodObject<{
807
+ builtIn: z.ZodEnum<{
808
+ installation: "installation";
809
+ owner: "owner";
810
+ open: "open";
811
+ argo: "argo";
812
+ answer: "answer";
813
+ pluginRead: "pluginRead";
814
+ viewerRead: "viewerRead";
815
+ }>;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ rule: z.ZodInt;
818
+ }, z.core.$strip>, z.ZodObject<{
819
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
820
+ kind: z.ZodLiteral<"ship">;
821
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
822
+ }, z.core.$strip>, z.ZodObject<{
823
+ kind: z.ZodLiteral<"installation">;
824
+ }, z.core.$strip>], "kind">;
825
+ index: z.ZodInt;
826
+ }, z.core.$strip>]>;
827
+ }, z.core.$strip>>;
828
+ lost: z.ZodArray<z.ZodObject<{
829
+ fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
830
+ toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
831
+ rule: z.ZodUnion<readonly [z.ZodObject<{
832
+ builtIn: z.ZodEnum<{
833
+ installation: "installation";
834
+ owner: "owner";
835
+ open: "open";
836
+ argo: "argo";
837
+ answer: "answer";
838
+ pluginRead: "pluginRead";
839
+ viewerRead: "viewerRead";
840
+ }>;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ rule: z.ZodInt;
843
+ }, z.core.$strip>, z.ZodObject<{
844
+ declared: z.ZodDiscriminatedUnion<[z.ZodObject<{
845
+ kind: z.ZodLiteral<"ship">;
846
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
847
+ }, z.core.$strip>, z.ZodObject<{
848
+ kind: z.ZodLiteral<"installation">;
849
+ }, z.core.$strip>], "kind">;
850
+ index: z.ZodInt;
851
+ }, z.core.$strip>]>;
852
+ }, z.core.$strip>>;
853
+ }, z.core.$strip>;
854
+ }, z.core.$strip>;
855
+ export type NetworkRulesDraftChanges = z.infer<typeof networkRulesDraftChangesOutputSchema>;