@aeolus-fleet/common 0.27.1 → 0.28.1
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/fleet/index.d.ts +24 -4
- package/dist/fleet/index.js +40 -2
- package/dist/fleet/index.js.map +1 -1
- package/dist/ids/index.d.ts +3 -0
- package/dist/ids/index.js +2 -0
- package/dist/ids/index.js.map +1 -1
- package/dist/schemas/account-token.d.ts +49 -0
- package/dist/schemas/account-token.js +51 -0
- package/dist/schemas/account-token.js.map +1 -0
- package/dist/schemas/console.d.ts +8 -0
- package/dist/schemas/console.js +3 -1
- package/dist/schemas/console.js.map +1 -1
- package/dist/schemas/fleet.d.ts +29 -2
- package/dist/schemas/fleet.js +15 -4
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +12 -0
- package/dist/schemas/history.d.ts +16 -1
- package/dist/schemas/history.js +4 -1
- package/dist/schemas/history.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/installation.d.ts +12 -0
- package/dist/schemas/installation.js +14 -1
- package/dist/schemas/installation.js.map +1 -1
- package/dist/schemas/label.d.ts +19 -5
- package/dist/schemas/label.js +7 -2
- package/dist/schemas/label.js.map +1 -1
- package/dist/schemas/network.d.ts +398 -96
- package/dist/schemas/network.js +73 -55
- package/dist/schemas/network.js.map +1 -1
- package/dist/schemas/statement.d.ts +35 -1
- package/dist/schemas/statement.js +4 -1
- package/dist/schemas/statement.js.map +1 -1
- package/dist/schemas/verified-fact.d.ts +109 -0
- package/dist/schemas/verified-fact.js +57 -0
- package/dist/schemas/verified-fact.js.map +1 -0
- package/dist/trierarch/crew-settings.js +1 -1
- package/dist/trierarch/report-details.js +2 -2
- 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
|
|
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
|
-
/**
|
|
96
|
-
export declare const
|
|
97
|
-
|
|
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,23 +156,113 @@ 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
250
|
* the owner's ship to the ships it owns, an answer to the sender of the
|
|
132
251
|
* message it answers, and a connected plugin's ship reading every ship, which
|
|
133
252
|
* are never off; the viewer reading every ship,
|
|
134
|
-
* which
|
|
135
|
-
*
|
|
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.
|
|
136
257
|
*/
|
|
137
|
-
export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "viewerRead", "open"];
|
|
258
|
+
export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "viewerRead", "installation", "open"];
|
|
138
259
|
export type BuiltInRule = (typeof BUILT_IN_RULES)[number];
|
|
139
260
|
/** The built-in rules that are never off. */
|
|
140
|
-
export declare const FIXED_BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead"];
|
|
141
|
-
/** Input of `fleet.setBuiltInRule` (fleet:network): a built-in rule turned on or off
|
|
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. */
|
|
142
263
|
export declare const setBuiltInRuleInputSchema: z.ZodObject<{
|
|
143
264
|
rule: z.ZodEnum<{
|
|
265
|
+
installation: "installation";
|
|
144
266
|
owner: "owner";
|
|
145
267
|
open: "open";
|
|
146
268
|
argo: "argo";
|
|
@@ -148,67 +270,38 @@ export declare const setBuiltInRuleInputSchema: z.ZodObject<{
|
|
|
148
270
|
pluginRead: "pluginRead";
|
|
149
271
|
viewerRead: "viewerRead";
|
|
150
272
|
}>;
|
|
151
|
-
verb: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
send: "send";
|
|
153
|
-
read: "read";
|
|
154
|
-
manage: "manage";
|
|
155
|
-
}>>;
|
|
156
273
|
isOn: z.ZodBoolean;
|
|
157
274
|
}, z.core.$strip>;
|
|
158
275
|
export type SetBuiltInRuleInput = z.infer<typeof setBuiltInRuleInputSchema>;
|
|
159
|
-
/**
|
|
160
|
-
|
|
161
|
-
* other rule does, and whether it is on; the fixed ones always are.
|
|
162
|
-
*/
|
|
163
|
-
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<{
|
|
164
278
|
rule: z.ZodEnum<{
|
|
279
|
+
installation: "installation";
|
|
165
280
|
owner: "owner";
|
|
281
|
+
open: "open";
|
|
166
282
|
argo: "argo";
|
|
167
283
|
answer: "answer";
|
|
168
284
|
pluginRead: "pluginRead";
|
|
169
285
|
viewerRead: "viewerRead";
|
|
170
286
|
}>;
|
|
171
287
|
isOn: z.ZodBoolean;
|
|
172
|
-
}, z.core.$strip
|
|
173
|
-
rule: z.ZodLiteral<"open">;
|
|
174
|
-
verb: z.ZodEnum<{
|
|
175
|
-
send: "send";
|
|
176
|
-
read: "read";
|
|
177
|
-
manage: "manage";
|
|
178
|
-
}>;
|
|
179
|
-
isOn: z.ZodBoolean;
|
|
180
|
-
}, z.core.$strip>]>;
|
|
288
|
+
}, z.core.$strip>;
|
|
181
289
|
export type BuiltInRuleState = z.infer<typeof builtInRuleStateSchema>;
|
|
182
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). */
|
|
183
|
-
export declare const builtInRulesOutputSchema: z.ZodArray<z.
|
|
291
|
+
export declare const builtInRulesOutputSchema: z.ZodArray<z.ZodObject<{
|
|
184
292
|
rule: z.ZodEnum<{
|
|
293
|
+
installation: "installation";
|
|
185
294
|
owner: "owner";
|
|
295
|
+
open: "open";
|
|
186
296
|
argo: "argo";
|
|
187
297
|
answer: "answer";
|
|
188
298
|
pluginRead: "pluginRead";
|
|
189
299
|
viewerRead: "viewerRead";
|
|
190
300
|
}>;
|
|
191
301
|
isOn: z.ZodBoolean;
|
|
192
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
-
rule: z.ZodLiteral<"open">;
|
|
194
|
-
verb: z.ZodEnum<{
|
|
195
|
-
send: "send";
|
|
196
|
-
read: "read";
|
|
197
|
-
manage: "manage";
|
|
198
|
-
}>;
|
|
199
|
-
isOn: z.ZodBoolean;
|
|
200
|
-
}, z.core.$strip>]>>;
|
|
201
|
-
/**
|
|
202
|
-
* Output of `fleet.networkPlugin` (fleet:read): the fleet's networking plugin,
|
|
203
|
-
* its ship and when it registered, or null without one (decision 0035). The
|
|
204
|
-
* gateway reads it before it switches on for a fleet (interop I-3).
|
|
205
|
-
*/
|
|
206
|
-
export declare const networkPluginOutputSchema: z.ZodNullable<z.ZodObject<{
|
|
207
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
208
|
-
registeredAt: z.ZodISODateTime;
|
|
209
302
|
}, z.core.$strip>>;
|
|
210
|
-
/** Output of `fleet.
|
|
211
|
-
export declare const
|
|
303
|
+
/** Output of `fleet.applyNetworkRules` and `fleet.setBuiltInRule`: the version the fleet's network settings have now. */
|
|
304
|
+
export declare const networkVersionOutputSchema: z.ZodObject<{
|
|
212
305
|
version: z.ZodInt;
|
|
213
306
|
}, z.core.$strip>;
|
|
214
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). */
|
|
@@ -249,9 +342,22 @@ export declare const declareNetworkRulesInputSchema: z.ZodObject<{
|
|
|
249
342
|
export declare const declareNetworkRulesOutputSchema: z.ZodObject<{
|
|
250
343
|
rules: z.ZodInt;
|
|
251
344
|
}, z.core.$strip>;
|
|
252
|
-
/**
|
|
253
|
-
export declare const
|
|
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">;
|
|
254
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">;
|
|
255
361
|
rules: z.ZodArray<z.ZodObject<{
|
|
256
362
|
verb: z.ZodEnum<{
|
|
257
363
|
send: "send";
|
|
@@ -284,38 +390,17 @@ export declare const declaredNetworkRulesOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
284
390
|
}, z.core.$strip>]>>;
|
|
285
391
|
}, z.core.$strip>>;
|
|
286
392
|
}, z.core.$strip>>;
|
|
287
|
-
/**
|
|
288
|
-
* What happens to sends while a fleet's networking plugin is unavailable
|
|
289
|
-
* (decision 0035): every send refused but the fixed exceptions, every send
|
|
290
|
-
* allowed, or the rules it supplied last kept.
|
|
291
|
-
*/
|
|
292
|
-
export declare const WHILE_UNAVAILABLE: readonly ["block-all", "open-all", "keep-latest"];
|
|
293
|
-
export type WhileUnavailable = (typeof WHILE_UNAVAILABLE)[number];
|
|
294
|
-
/** The least time without a call from its ship after which a networking plugin is not responding: longer than a receive waits. */
|
|
295
|
-
export declare const NETWORK_PLUGIN_NOT_RESPONDING_AFTER_MIN_SECONDS = 60;
|
|
296
|
-
/** The most: a day. */
|
|
297
|
-
export declare const NETWORK_PLUGIN_NOT_RESPONDING_AFTER_MAX_SECONDS = 86400;
|
|
298
|
-
/** Input of `fleet.registerNetworkPlugin` (fleet:network): what happens while the plugin is unavailable, and after how long without a call it is not responding. */
|
|
299
|
-
export declare const registerNetworkPluginInputSchema: z.ZodObject<{
|
|
300
|
-
whileUnavailable: z.ZodEnum<{
|
|
301
|
-
"block-all": "block-all";
|
|
302
|
-
"open-all": "open-all";
|
|
303
|
-
"keep-latest": "keep-latest";
|
|
304
|
-
}>;
|
|
305
|
-
notRespondingAfterSeconds: z.ZodInt;
|
|
306
|
-
}, z.core.$strip>;
|
|
307
|
-
export type NetworkPluginDeclaration = z.infer<typeof registerNetworkPluginInputSchema>;
|
|
308
393
|
/**
|
|
309
394
|
* The request header a plugin ship names the ship it reads on behalf of with,
|
|
310
395
|
* by id: every fleet:read read then answers with that ship's read reach
|
|
311
396
|
* (decision 0034). Any other call refuses it.
|
|
312
397
|
*/
|
|
313
398
|
export declare const ON_BEHALF_OF_HEADER = "aeolus-on-behalf-of";
|
|
314
|
-
/** One refused
|
|
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. */
|
|
315
400
|
export declare const reachRefusalSchema: z.ZodObject<{
|
|
316
401
|
id: z.ZodType<`rfs_${string}`, unknown, z.core.$ZodTypeInternals<`rfs_${string}`, unknown>>;
|
|
317
402
|
at: z.ZodISODateTime;
|
|
318
|
-
sender: z.ZodObject<{
|
|
403
|
+
sender: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
319
404
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
320
405
|
name: z.ZodString;
|
|
321
406
|
labels: z.ZodArray<z.ZodObject<{
|
|
@@ -328,7 +413,23 @@ export declare const reachRefusalSchema: z.ZodObject<{
|
|
|
328
413
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
329
414
|
name: z.ZodString;
|
|
330
415
|
}, z.core.$strip>>;
|
|
331
|
-
|
|
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">;
|
|
332
433
|
askedBy: z.ZodNullable<z.ZodObject<{
|
|
333
434
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
334
435
|
name: z.ZodString;
|
|
@@ -383,17 +484,13 @@ export declare const reachRefusalSchema: z.ZodObject<{
|
|
|
383
484
|
manage: "manage";
|
|
384
485
|
}>;
|
|
385
486
|
settingsVersion: z.ZodInt;
|
|
386
|
-
whilePluginUnavailable: z.ZodNullable<z.ZodEnum<{
|
|
387
|
-
"block-all": "block-all";
|
|
388
|
-
"keep-latest": "keep-latest";
|
|
389
|
-
}>>;
|
|
390
487
|
}, z.core.$strip>;
|
|
391
488
|
export type ReachRefusal = z.infer<typeof reachRefusalSchema>;
|
|
392
489
|
/** Output of `fleet.reachRefusals` (argo only): the fleet's latest refusals, newest first, at most REACH_REFUSALS_READ_MAX. */
|
|
393
490
|
export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
394
491
|
id: z.ZodType<`rfs_${string}`, unknown, z.core.$ZodTypeInternals<`rfs_${string}`, unknown>>;
|
|
395
492
|
at: z.ZodISODateTime;
|
|
396
|
-
sender: z.ZodObject<{
|
|
493
|
+
sender: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
397
494
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
398
495
|
name: z.ZodString;
|
|
399
496
|
labels: z.ZodArray<z.ZodObject<{
|
|
@@ -406,7 +503,23 @@ export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
406
503
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
407
504
|
name: z.ZodString;
|
|
408
505
|
}, z.core.$strip>>;
|
|
409
|
-
|
|
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">;
|
|
410
523
|
askedBy: z.ZodNullable<z.ZodObject<{
|
|
411
524
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
412
525
|
name: z.ZodString;
|
|
@@ -461,24 +574,25 @@ export declare const reachRefusalsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
461
574
|
manage: "manage";
|
|
462
575
|
}>;
|
|
463
576
|
settingsVersion: z.ZodInt;
|
|
464
|
-
whilePluginUnavailable: z.ZodNullable<z.ZodEnum<{
|
|
465
|
-
"block-all": "block-all";
|
|
466
|
-
"keep-latest": "keep-latest";
|
|
467
|
-
}>>;
|
|
468
577
|
}, z.core.$strip>>;
|
|
469
|
-
/** Input of `fleet.explainReach` (
|
|
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. */
|
|
470
579
|
export declare const explainReachInputSchema: z.ZodObject<{
|
|
471
580
|
fromShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
472
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
|
+
}>>;
|
|
473
586
|
}, z.core.$strip>;
|
|
474
587
|
/**
|
|
475
588
|
* The rule that lets one ship reach another (decision 0034): a built-in rule;
|
|
476
|
-
*
|
|
477
|
-
* or a rule
|
|
478
|
-
* 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).
|
|
479
592
|
*/
|
|
480
593
|
export declare const reachRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
481
594
|
builtIn: z.ZodEnum<{
|
|
595
|
+
installation: "installation";
|
|
482
596
|
owner: "owner";
|
|
483
597
|
open: "open";
|
|
484
598
|
argo: "argo";
|
|
@@ -487,9 +601,14 @@ export declare const reachRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
487
601
|
viewerRead: "viewerRead";
|
|
488
602
|
}>;
|
|
489
603
|
}, z.core.$strip>, z.ZodObject<{
|
|
490
|
-
|
|
604
|
+
rule: z.ZodInt;
|
|
491
605
|
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
-
declared: z.
|
|
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">;
|
|
493
612
|
index: z.ZodInt;
|
|
494
613
|
}, z.core.$strip>]>;
|
|
495
614
|
export type ReachRule = z.infer<typeof reachRuleSchema>;
|
|
@@ -499,6 +618,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
499
618
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
500
619
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
501
620
|
builtIn: z.ZodEnum<{
|
|
621
|
+
installation: "installation";
|
|
502
622
|
owner: "owner";
|
|
503
623
|
open: "open";
|
|
504
624
|
argo: "argo";
|
|
@@ -507,9 +627,14 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
507
627
|
viewerRead: "viewerRead";
|
|
508
628
|
}>;
|
|
509
629
|
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
-
|
|
630
|
+
rule: z.ZodInt;
|
|
511
631
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
-
declared: z.
|
|
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">;
|
|
513
638
|
index: z.ZodInt;
|
|
514
639
|
}, z.core.$strip>]>;
|
|
515
640
|
}, z.core.$strip>>;
|
|
@@ -517,6 +642,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
517
642
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
518
643
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
519
644
|
builtIn: z.ZodEnum<{
|
|
645
|
+
installation: "installation";
|
|
520
646
|
owner: "owner";
|
|
521
647
|
open: "open";
|
|
522
648
|
argo: "argo";
|
|
@@ -525,9 +651,14 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
525
651
|
viewerRead: "viewerRead";
|
|
526
652
|
}>;
|
|
527
653
|
}, z.core.$strip>, z.ZodObject<{
|
|
528
|
-
|
|
654
|
+
rule: z.ZodInt;
|
|
529
655
|
}, z.core.$strip>, z.ZodObject<{
|
|
530
|
-
declared: z.
|
|
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">;
|
|
531
662
|
index: z.ZodInt;
|
|
532
663
|
}, z.core.$strip>]>;
|
|
533
664
|
}, z.core.$strip>>;
|
|
@@ -535,6 +666,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
535
666
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
536
667
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
537
668
|
builtIn: z.ZodEnum<{
|
|
669
|
+
installation: "installation";
|
|
538
670
|
owner: "owner";
|
|
539
671
|
open: "open";
|
|
540
672
|
argo: "argo";
|
|
@@ -543,11 +675,181 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
543
675
|
viewerRead: "viewerRead";
|
|
544
676
|
}>;
|
|
545
677
|
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
-
|
|
678
|
+
rule: z.ZodInt;
|
|
547
679
|
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
-
declared: z.
|
|
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">;
|
|
549
686
|
index: z.ZodInt;
|
|
550
687
|
}, z.core.$strip>]>;
|
|
551
688
|
}, z.core.$strip>>;
|
|
552
689
|
}, z.core.$strip>;
|
|
553
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>;
|