@aeolus-fleet/common 0.30.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fleet/index.d.ts +51 -9
- package/dist/fleet/index.js +48 -6
- package/dist/fleet/index.js.map +1 -1
- package/dist/ids/index.d.ts +6 -0
- package/dist/ids/index.js +4 -0
- package/dist/ids/index.js.map +1 -1
- package/dist/rules/duration.d.ts +2 -0
- package/dist/rules/duration.js +22 -0
- package/dist/rules/duration.js.map +1 -0
- package/dist/rules/index.d.ts +1 -0
- package/dist/rules/index.js +1 -0
- package/dist/rules/index.js.map +1 -1
- package/dist/schemas/apps-list.d.ts +4 -4
- package/dist/schemas/console.d.ts +3 -24
- package/dist/schemas/console.js +4 -3
- package/dist/schemas/console.js.map +1 -1
- package/dist/schemas/delivery.d.ts +34 -5
- package/dist/schemas/delivery.js +21 -7
- package/dist/schemas/delivery.js.map +1 -1
- package/dist/schemas/fleet.d.ts +64 -2
- package/dist/schemas/fleet.js +9 -2
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +25 -0
- package/dist/schemas/history.d.ts +184 -2
- package/dist/schemas/history.js +26 -2
- 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 +118 -4
- package/dist/schemas/installation.js +34 -5
- package/dist/schemas/installation.js.map +1 -1
- package/dist/schemas/label.d.ts +4 -4
- package/dist/schemas/meeting.d.ts +263 -0
- package/dist/schemas/meeting.js +129 -0
- package/dist/schemas/meeting.js.map +1 -0
- package/dist/schemas/message.d.ts +44 -1
- package/dist/schemas/message.js +35 -4
- package/dist/schemas/message.js.map +1 -1
- package/dist/schemas/needs-attention.d.ts +20 -0
- package/dist/schemas/network.d.ts +17 -3
- package/dist/schemas/network.js +4 -3
- package/dist/schemas/network.js.map +1 -1
- package/dist/schemas/schedule.d.ts +372 -0
- package/dist/schemas/schedule.js +132 -0
- package/dist/schemas/schedule.js.map +1 -0
- package/dist/schemas/scopes.d.ts +29 -3
- package/dist/schemas/scopes.js +17 -3
- package/dist/schemas/scopes.js.map +1 -1
- package/dist/schemas/ship.js +1 -1
- package/dist/schemas/statement.d.ts +5 -0
- package/dist/schemas/statement.js +3 -1
- package/dist/schemas/statement.js.map +1 -1
- package/dist/trierarch/report-details.d.ts +48 -0
- package/dist/trierarch/report-details.js +52 -0
- package/dist/trierarch/report-details.js.map +1 -1
- package/package.json +1 -1
|
@@ -247,19 +247,21 @@ export declare const discardNetworkRulesDraftOutputSchema: z.ZodObject<{}, z.cor
|
|
|
247
247
|
* The built-in rules, core's own (decision 0034): argo to and from every ship,
|
|
248
248
|
* the owner's ship to the ships it owns, an answer to the sender of the
|
|
249
249
|
* message it answers, and a connected plugin's ship reading every ship, which
|
|
250
|
-
* are never off; the
|
|
250
|
+
* are never off; the participants of a meeting reaching each other within it,
|
|
251
|
+
* never off (decision 0061); the viewer reading every ship,
|
|
251
252
|
* which an actor holding fleet:network turns off or on; the installation
|
|
252
253
|
* managing person ships and the ships they own, never off (decision 0020); and
|
|
253
254
|
* open, every ship to every ship by every verb, on exactly while the fleet has
|
|
254
255
|
* no rules applied.
|
|
255
256
|
*/
|
|
256
|
-
export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "viewerRead", "installation", "open"];
|
|
257
|
+
export declare const BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "meeting", "viewerRead", "installation", "open"];
|
|
257
258
|
export type BuiltInRule = (typeof BUILT_IN_RULES)[number];
|
|
258
259
|
/** The built-in rules that are never off. */
|
|
259
|
-
export declare const FIXED_BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "installation"];
|
|
260
|
+
export declare const FIXED_BUILT_IN_RULES: readonly ["argo", "owner", "answer", "pluginRead", "meeting", "installation"];
|
|
260
261
|
/** Input of `fleet.setBuiltInRule` (fleet:network): a built-in rule turned on or off; the server turns only the viewer reading. */
|
|
261
262
|
export declare const setBuiltInRuleInputSchema: z.ZodObject<{
|
|
262
263
|
rule: z.ZodEnum<{
|
|
264
|
+
meeting: "meeting";
|
|
263
265
|
argo: "argo";
|
|
264
266
|
installation: "installation";
|
|
265
267
|
owner: "owner";
|
|
@@ -274,6 +276,7 @@ export type SetBuiltInRuleInput = z.infer<typeof setBuiltInRuleInputSchema>;
|
|
|
274
276
|
/** One built-in rule as it is now, and whether it is on; the fixed ones always are. */
|
|
275
277
|
export declare const builtInRuleStateSchema: z.ZodObject<{
|
|
276
278
|
rule: z.ZodEnum<{
|
|
279
|
+
meeting: "meeting";
|
|
277
280
|
argo: "argo";
|
|
278
281
|
installation: "installation";
|
|
279
282
|
owner: "owner";
|
|
@@ -288,6 +291,7 @@ export type BuiltInRuleState = z.infer<typeof builtInRuleStateSchema>;
|
|
|
288
291
|
/** 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). */
|
|
289
292
|
export declare const builtInRulesOutputSchema: z.ZodArray<z.ZodObject<{
|
|
290
293
|
rule: z.ZodEnum<{
|
|
294
|
+
meeting: "meeting";
|
|
291
295
|
argo: "argo";
|
|
292
296
|
installation: "installation";
|
|
293
297
|
owner: "owner";
|
|
@@ -598,6 +602,7 @@ export declare const explainReachInputSchema: z.ZodObject<{
|
|
|
598
602
|
*/
|
|
599
603
|
export declare const reachRuleSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
600
604
|
builtIn: z.ZodEnum<{
|
|
605
|
+
meeting: "meeting";
|
|
601
606
|
argo: "argo";
|
|
602
607
|
installation: "installation";
|
|
603
608
|
owner: "owner";
|
|
@@ -624,6 +629,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
624
629
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
625
630
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
626
631
|
builtIn: z.ZodEnum<{
|
|
632
|
+
meeting: "meeting";
|
|
627
633
|
argo: "argo";
|
|
628
634
|
installation: "installation";
|
|
629
635
|
owner: "owner";
|
|
@@ -648,6 +654,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
648
654
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
649
655
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
650
656
|
builtIn: z.ZodEnum<{
|
|
657
|
+
meeting: "meeting";
|
|
651
658
|
argo: "argo";
|
|
652
659
|
installation: "installation";
|
|
653
660
|
owner: "owner";
|
|
@@ -672,6 +679,7 @@ export declare const explainReachOutputSchema: z.ZodObject<{
|
|
|
672
679
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
673
680
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
674
681
|
builtIn: z.ZodEnum<{
|
|
682
|
+
meeting: "meeting";
|
|
675
683
|
argo: "argo";
|
|
676
684
|
installation: "installation";
|
|
677
685
|
owner: "owner";
|
|
@@ -707,6 +715,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
707
715
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
708
716
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
709
717
|
builtIn: z.ZodEnum<{
|
|
718
|
+
meeting: "meeting";
|
|
710
719
|
argo: "argo";
|
|
711
720
|
installation: "installation";
|
|
712
721
|
owner: "owner";
|
|
@@ -732,6 +741,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
732
741
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
733
742
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
734
743
|
builtIn: z.ZodEnum<{
|
|
744
|
+
meeting: "meeting";
|
|
735
745
|
argo: "argo";
|
|
736
746
|
installation: "installation";
|
|
737
747
|
owner: "owner";
|
|
@@ -759,6 +769,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
759
769
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
760
770
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
761
771
|
builtIn: z.ZodEnum<{
|
|
772
|
+
meeting: "meeting";
|
|
762
773
|
argo: "argo";
|
|
763
774
|
installation: "installation";
|
|
764
775
|
owner: "owner";
|
|
@@ -784,6 +795,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
784
795
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
785
796
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
786
797
|
builtIn: z.ZodEnum<{
|
|
798
|
+
meeting: "meeting";
|
|
787
799
|
argo: "argo";
|
|
788
800
|
installation: "installation";
|
|
789
801
|
owner: "owner";
|
|
@@ -811,6 +823,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
811
823
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
812
824
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
813
825
|
builtIn: z.ZodEnum<{
|
|
826
|
+
meeting: "meeting";
|
|
814
827
|
argo: "argo";
|
|
815
828
|
installation: "installation";
|
|
816
829
|
owner: "owner";
|
|
@@ -836,6 +849,7 @@ export declare const networkRulesDraftChangesOutputSchema: z.ZodObject<{
|
|
|
836
849
|
toShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
837
850
|
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
838
851
|
builtIn: z.ZodEnum<{
|
|
852
|
+
meeting: "meeting";
|
|
839
853
|
argo: "argo";
|
|
840
854
|
installation: "installation";
|
|
841
855
|
owner: "owner";
|
package/dist/schemas/network.js
CHANGED
|
@@ -62,15 +62,16 @@ export const discardNetworkRulesDraftOutputSchema = z.object({});
|
|
|
62
62
|
* The built-in rules, core's own (decision 0034): argo to and from every ship,
|
|
63
63
|
* the owner's ship to the ships it owns, an answer to the sender of the
|
|
64
64
|
* message it answers, and a connected plugin's ship reading every ship, which
|
|
65
|
-
* are never off; the
|
|
65
|
+
* are never off; the participants of a meeting reaching each other within it,
|
|
66
|
+
* never off (decision 0061); the viewer reading every ship,
|
|
66
67
|
* which an actor holding fleet:network turns off or on; the installation
|
|
67
68
|
* managing person ships and the ships they own, never off (decision 0020); and
|
|
68
69
|
* open, every ship to every ship by every verb, on exactly while the fleet has
|
|
69
70
|
* no rules applied.
|
|
70
71
|
*/
|
|
71
|
-
export const BUILT_IN_RULES = ['argo', 'owner', 'answer', 'pluginRead', 'viewerRead', 'installation', 'open'];
|
|
72
|
+
export const BUILT_IN_RULES = ['argo', 'owner', 'answer', 'pluginRead', 'meeting', 'viewerRead', 'installation', 'open'];
|
|
72
73
|
/** The built-in rules that are never off. */
|
|
73
|
-
export const FIXED_BUILT_IN_RULES = ['argo', 'owner', 'answer', 'pluginRead', 'installation'];
|
|
74
|
+
export const FIXED_BUILT_IN_RULES = ['argo', 'owner', 'answer', 'pluginRead', 'meeting', 'installation'];
|
|
74
75
|
/** Input of `fleet.setBuiltInRule` (fleet:network): a built-in rule turned on or off; the server turns only the viewer reading. */
|
|
75
76
|
export const setBuiltInRuleInputSchema = z.object({ rule: z.enum(BUILT_IN_RULES), isOn: z.boolean() });
|
|
76
77
|
/** One built-in rule as it is now, and whether it is on; the fixed ones always are. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/schemas/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CA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AM,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC3E,CAAC,CAAC"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Inputs and outputs of scheduled messages (decision 0062): making a schedule
|
|
4
|
+
* (`ship.schedule`), listing a ship's schedules (`ship.schedules`,
|
|
5
|
+
* `fleet.schedules`), pausing one (`ship.pauseSchedule`,
|
|
6
|
+
* `fleet.pauseSchedule`), resuming one (`ship.resumeSchedule`) and cancelling
|
|
7
|
+
* one (`ship.cancelSchedule`, `fleet.cancelSchedule`).
|
|
8
|
+
*/
|
|
9
|
+
export { durationMs } from '../rules/duration.js';
|
|
10
|
+
/** The prefix of the idempotency key of every message a schedule sends: no live send may use it. */
|
|
11
|
+
export declare const SCHEDULE_IDEMPOTENCY_KEY_PREFIX = "schedule:";
|
|
12
|
+
/** A schedule's state: it sends while active, and an ended or cancelled one never sends again. */
|
|
13
|
+
export declare const SCHEDULE_STATES: readonly ["active", "paused", "ended", "cancelled"];
|
|
14
|
+
export declare const scheduleStateSchema: z.ZodEnum<{
|
|
15
|
+
active: "active";
|
|
16
|
+
paused: "paused";
|
|
17
|
+
ended: "ended";
|
|
18
|
+
cancelled: "cancelled";
|
|
19
|
+
}>;
|
|
20
|
+
export type ScheduleState = z.infer<typeof scheduleStateSchema>;
|
|
21
|
+
/** What a refused send time does, the creator's choice (S7): record it and go on, try again within the retry window, or pause. */
|
|
22
|
+
export declare const REFUSAL_STRATEGIES: readonly ["skip", "retry", "pause"];
|
|
23
|
+
export declare const refusalStrategySchema: z.ZodEnum<{
|
|
24
|
+
skip: "skip";
|
|
25
|
+
retry: "retry";
|
|
26
|
+
pause: "pause";
|
|
27
|
+
}>;
|
|
28
|
+
export type RefusalStrategy = z.infer<typeof refusalStrategySchema>;
|
|
29
|
+
/** What a send time the pass reaches later than its grace does, the creator's choice (S6): send every missed one, the latest only, or none. */
|
|
30
|
+
export declare const MISSED_STRATEGIES: readonly ["each", "once", "skip"];
|
|
31
|
+
export declare const missedStrategySchema: z.ZodEnum<{
|
|
32
|
+
skip: "skip";
|
|
33
|
+
each: "each";
|
|
34
|
+
once: "once";
|
|
35
|
+
}>;
|
|
36
|
+
export type MissedStrategy = z.infer<typeof missedStrategySchema>;
|
|
37
|
+
/** An ISO 8601 duration of a fixed length, such as PT30M or P1D. */
|
|
38
|
+
export declare const durationSchema: z.ZodString;
|
|
39
|
+
/**
|
|
40
|
+
* When a schedule sends (S1): once, at an instant with its offset; every an
|
|
41
|
+
* ISO 8601 duration of a fixed length; or at the wall times of a cron of five
|
|
42
|
+
* fields in an IANA time zone, UTC unless given. A repeat takes an optional
|
|
43
|
+
* start, end and count, either of the last two ending it.
|
|
44
|
+
*/
|
|
45
|
+
export declare const scheduleTimingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
kind: z.ZodLiteral<"once">;
|
|
47
|
+
at: z.ZodISODateTime;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
start: z.ZodOptional<z.ZodISODateTime>;
|
|
50
|
+
end: z.ZodOptional<z.ZodISODateTime>;
|
|
51
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
kind: z.ZodLiteral<"every">;
|
|
53
|
+
every: z.ZodString;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
start: z.ZodOptional<z.ZodISODateTime>;
|
|
56
|
+
end: z.ZodOptional<z.ZodISODateTime>;
|
|
57
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
kind: z.ZodLiteral<"cron">;
|
|
59
|
+
cron: z.ZodString;
|
|
60
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strict>], "kind">;
|
|
62
|
+
export type ScheduleTiming = z.infer<typeof scheduleTimingSchema>;
|
|
63
|
+
/**
|
|
64
|
+
* Input of `ship.schedule` (messages:send, and messages:force when forced): a
|
|
65
|
+
* whole send input, stored as given, the model the ship states, the timing,
|
|
66
|
+
* what a refused send time does and the ship's idempotency key.
|
|
67
|
+
*/
|
|
68
|
+
export declare const scheduleInputSchema: z.ZodObject<{
|
|
69
|
+
selector: z.ZodUnion<readonly [z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"ship">;
|
|
71
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
kind: z.ZodLiteral<"ship">;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"type">;
|
|
77
|
+
type: z.ZodString;
|
|
78
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"label">;
|
|
80
|
+
valueIds: z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>;
|
|
81
|
+
}, z.core.$strict>]>;
|
|
82
|
+
payload: z.ZodString;
|
|
83
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
84
|
+
model: z.ZodOptional<z.ZodString>;
|
|
85
|
+
idempotencyKey: z.ZodString;
|
|
86
|
+
inReplyTo: z.ZodOptional<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
87
|
+
isForced: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
timing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"once">;
|
|
90
|
+
at: z.ZodISODateTime;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
start: z.ZodOptional<z.ZodISODateTime>;
|
|
93
|
+
end: z.ZodOptional<z.ZodISODateTime>;
|
|
94
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
kind: z.ZodLiteral<"every">;
|
|
96
|
+
every: z.ZodString;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
start: z.ZodOptional<z.ZodISODateTime>;
|
|
99
|
+
end: z.ZodOptional<z.ZodISODateTime>;
|
|
100
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
kind: z.ZodLiteral<"cron">;
|
|
102
|
+
cron: z.ZodString;
|
|
103
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strict>], "kind">;
|
|
105
|
+
onRefused: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
skip: "skip";
|
|
107
|
+
retry: "retry";
|
|
108
|
+
pause: "pause";
|
|
109
|
+
}>>;
|
|
110
|
+
retryWindow: z.ZodOptional<z.ZodString>;
|
|
111
|
+
onMissed: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
skip: "skip";
|
|
113
|
+
each: "each";
|
|
114
|
+
once: "once";
|
|
115
|
+
}>>;
|
|
116
|
+
grace: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type ScheduleInput = z.infer<typeof scheduleInputSchema>;
|
|
119
|
+
/** Output of `ship.schedule`: the schedule's id, the original one when the key was used before. */
|
|
120
|
+
export declare const scheduleOutputSchema: z.ZodObject<{
|
|
121
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
/** A send time's outcome: the message it stored, the code it was refused with, or missed. */
|
|
124
|
+
export declare const scheduleOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
|
+
kind: z.ZodLiteral<"sent">;
|
|
126
|
+
messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
|
|
127
|
+
sendTime: z.ZodISODateTime;
|
|
128
|
+
at: z.ZodISODateTime;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
kind: z.ZodLiteral<"refused">;
|
|
131
|
+
code: z.ZodString;
|
|
132
|
+
sendTime: z.ZodISODateTime;
|
|
133
|
+
at: z.ZodISODateTime;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
+
kind: z.ZodLiteral<"missed">;
|
|
136
|
+
sendTime: z.ZodISODateTime;
|
|
137
|
+
at: z.ZodISODateTime;
|
|
138
|
+
}, z.core.$strip>], "kind">;
|
|
139
|
+
/** A schedule's timing as stored, its defaults filled in. */
|
|
140
|
+
export declare const scheduleTimingItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
141
|
+
kind: z.ZodLiteral<"once">;
|
|
142
|
+
at: z.ZodISODateTime;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
145
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
146
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
147
|
+
kind: z.ZodLiteral<"every">;
|
|
148
|
+
every: z.ZodString;
|
|
149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
151
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
152
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
153
|
+
kind: z.ZodLiteral<"cron">;
|
|
154
|
+
cron: z.ZodString;
|
|
155
|
+
timeZone: z.ZodString;
|
|
156
|
+
}, z.core.$strip>], "kind">;
|
|
157
|
+
export type ScheduleTimingItem = z.infer<typeof scheduleTimingItemSchema>;
|
|
158
|
+
/** One schedule as a list shows it: its send input but the payload, its timing and strategies, its state, next send time and last outcome. */
|
|
159
|
+
export declare const scheduleItemSchema: z.ZodObject<{
|
|
160
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
161
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
162
|
+
state: z.ZodEnum<{
|
|
163
|
+
active: "active";
|
|
164
|
+
paused: "paused";
|
|
165
|
+
ended: "ended";
|
|
166
|
+
cancelled: "cancelled";
|
|
167
|
+
}>;
|
|
168
|
+
selector: z.ZodUnion<readonly [z.ZodObject<{
|
|
169
|
+
kind: z.ZodLiteral<"ship">;
|
|
170
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
+
kind: z.ZodLiteral<"ship">;
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
+
kind: z.ZodLiteral<"type">;
|
|
176
|
+
type: z.ZodString;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
kind: z.ZodLiteral<"label">;
|
|
179
|
+
valueIds: z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>;
|
|
180
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
181
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
182
|
+
key: z.ZodNullable<z.ZodString>;
|
|
183
|
+
value: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>>;
|
|
185
|
+
}, z.core.$strip>]>;
|
|
186
|
+
contentType: z.ZodString;
|
|
187
|
+
inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
188
|
+
isForced: z.ZodBoolean;
|
|
189
|
+
timing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"once">;
|
|
191
|
+
at: z.ZodISODateTime;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
194
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
195
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
196
|
+
kind: z.ZodLiteral<"every">;
|
|
197
|
+
every: z.ZodString;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
200
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
201
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
202
|
+
kind: z.ZodLiteral<"cron">;
|
|
203
|
+
cron: z.ZodString;
|
|
204
|
+
timeZone: z.ZodString;
|
|
205
|
+
}, z.core.$strip>], "kind">;
|
|
206
|
+
onRefused: z.ZodEnum<{
|
|
207
|
+
skip: "skip";
|
|
208
|
+
retry: "retry";
|
|
209
|
+
pause: "pause";
|
|
210
|
+
}>;
|
|
211
|
+
retryWindow: z.ZodString;
|
|
212
|
+
onMissed: z.ZodEnum<{
|
|
213
|
+
skip: "skip";
|
|
214
|
+
each: "each";
|
|
215
|
+
once: "once";
|
|
216
|
+
}>;
|
|
217
|
+
grace: z.ZodString;
|
|
218
|
+
nextSendTime: z.ZodNullable<z.ZodISODateTime>;
|
|
219
|
+
lastOutcome: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
|
+
kind: z.ZodLiteral<"sent">;
|
|
221
|
+
messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
|
|
222
|
+
sendTime: z.ZodISODateTime;
|
|
223
|
+
at: z.ZodISODateTime;
|
|
224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
225
|
+
kind: z.ZodLiteral<"refused">;
|
|
226
|
+
code: z.ZodString;
|
|
227
|
+
sendTime: z.ZodISODateTime;
|
|
228
|
+
at: z.ZodISODateTime;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
kind: z.ZodLiteral<"missed">;
|
|
231
|
+
sendTime: z.ZodISODateTime;
|
|
232
|
+
at: z.ZodISODateTime;
|
|
233
|
+
}, z.core.$strip>], "kind">>;
|
|
234
|
+
createdAt: z.ZodISODateTime;
|
|
235
|
+
endedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
236
|
+
cancelledAt: z.ZodNullable<z.ZodISODateTime>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export type ScheduleItem = z.infer<typeof scheduleItemSchema>;
|
|
239
|
+
/** Input of `ship.schedules`: a page, newest first; active and paused ones unless `states` names others. */
|
|
240
|
+
export declare const schedulesInputSchema: z.ZodObject<{
|
|
241
|
+
cursor: z.ZodOptional<z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>>;
|
|
242
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
243
|
+
states: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
244
|
+
active: "active";
|
|
245
|
+
paused: "paused";
|
|
246
|
+
ended: "ended";
|
|
247
|
+
cancelled: "cancelled";
|
|
248
|
+
}>>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type SchedulesInput = z.infer<typeof schedulesInputSchema>;
|
|
251
|
+
/** Input of `fleet.schedules` (fleet:manage): the ship whose schedules to list, as `ship.schedules` lists them. */
|
|
252
|
+
export declare const fleetSchedulesInputSchema: z.ZodObject<{
|
|
253
|
+
cursor: z.ZodOptional<z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>>;
|
|
254
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
255
|
+
states: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
256
|
+
active: "active";
|
|
257
|
+
paused: "paused";
|
|
258
|
+
ended: "ended";
|
|
259
|
+
cancelled: "cancelled";
|
|
260
|
+
}>>>;
|
|
261
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export declare const schedulesOutputSchema: z.ZodObject<{
|
|
264
|
+
items: z.ZodArray<z.ZodObject<{
|
|
265
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
266
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
267
|
+
state: z.ZodEnum<{
|
|
268
|
+
active: "active";
|
|
269
|
+
paused: "paused";
|
|
270
|
+
ended: "ended";
|
|
271
|
+
cancelled: "cancelled";
|
|
272
|
+
}>;
|
|
273
|
+
selector: z.ZodUnion<readonly [z.ZodObject<{
|
|
274
|
+
kind: z.ZodLiteral<"ship">;
|
|
275
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
kind: z.ZodLiteral<"ship">;
|
|
278
|
+
name: z.ZodString;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"type">;
|
|
281
|
+
type: z.ZodString;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
kind: z.ZodLiteral<"label">;
|
|
284
|
+
valueIds: z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>;
|
|
285
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
286
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
287
|
+
key: z.ZodNullable<z.ZodString>;
|
|
288
|
+
value: z.ZodNullable<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
}, z.core.$strip>]>;
|
|
291
|
+
contentType: z.ZodString;
|
|
292
|
+
inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
293
|
+
isForced: z.ZodBoolean;
|
|
294
|
+
timing: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
295
|
+
kind: z.ZodLiteral<"once">;
|
|
296
|
+
at: z.ZodISODateTime;
|
|
297
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
298
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
299
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
300
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
301
|
+
kind: z.ZodLiteral<"every">;
|
|
302
|
+
every: z.ZodString;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
start: z.ZodNullable<z.ZodISODateTime>;
|
|
305
|
+
end: z.ZodNullable<z.ZodISODateTime>;
|
|
306
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
307
|
+
kind: z.ZodLiteral<"cron">;
|
|
308
|
+
cron: z.ZodString;
|
|
309
|
+
timeZone: z.ZodString;
|
|
310
|
+
}, z.core.$strip>], "kind">;
|
|
311
|
+
onRefused: z.ZodEnum<{
|
|
312
|
+
skip: "skip";
|
|
313
|
+
retry: "retry";
|
|
314
|
+
pause: "pause";
|
|
315
|
+
}>;
|
|
316
|
+
retryWindow: z.ZodString;
|
|
317
|
+
onMissed: z.ZodEnum<{
|
|
318
|
+
skip: "skip";
|
|
319
|
+
each: "each";
|
|
320
|
+
once: "once";
|
|
321
|
+
}>;
|
|
322
|
+
grace: z.ZodString;
|
|
323
|
+
nextSendTime: z.ZodNullable<z.ZodISODateTime>;
|
|
324
|
+
lastOutcome: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
325
|
+
kind: z.ZodLiteral<"sent">;
|
|
326
|
+
messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
|
|
327
|
+
sendTime: z.ZodISODateTime;
|
|
328
|
+
at: z.ZodISODateTime;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
kind: z.ZodLiteral<"refused">;
|
|
331
|
+
code: z.ZodString;
|
|
332
|
+
sendTime: z.ZodISODateTime;
|
|
333
|
+
at: z.ZodISODateTime;
|
|
334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
+
kind: z.ZodLiteral<"missed">;
|
|
336
|
+
sendTime: z.ZodISODateTime;
|
|
337
|
+
at: z.ZodISODateTime;
|
|
338
|
+
}, z.core.$strip>], "kind">>;
|
|
339
|
+
createdAt: z.ZodISODateTime;
|
|
340
|
+
endedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
341
|
+
cancelledAt: z.ZodNullable<z.ZodISODateTime>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
nextCursor: z.ZodNullable<z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
/** Input of `ship.pauseSchedule` and `fleet.pauseSchedule`. */
|
|
346
|
+
export declare const pauseScheduleInputSchema: z.ZodObject<{
|
|
347
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export declare const pauseScheduleOutputSchema: z.ZodObject<{
|
|
350
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
351
|
+
state: z.ZodLiteral<"paused">;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
/** Input of `ship.resumeSchedule`. */
|
|
354
|
+
export declare const resumeScheduleInputSchema: z.ZodObject<{
|
|
355
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
/** Active again, or ended when no send time is left after now. */
|
|
358
|
+
export declare const resumeScheduleOutputSchema: z.ZodObject<{
|
|
359
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
360
|
+
state: z.ZodEnum<{
|
|
361
|
+
active: "active";
|
|
362
|
+
ended: "ended";
|
|
363
|
+
}>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
/** Input of `ship.cancelSchedule` and `fleet.cancelSchedule`. */
|
|
366
|
+
export declare const cancelScheduleInputSchema: z.ZodObject<{
|
|
367
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
export declare const cancelScheduleOutputSchema: z.ZodObject<{
|
|
370
|
+
scheduleId: z.ZodType<`sch_${string}`, unknown, z.core.$ZodTypeInternals<`sch_${string}`, unknown>>;
|
|
371
|
+
state: z.ZodLiteral<"cancelled">;
|
|
372
|
+
}, z.core.$strip>;
|