@aeolus-fleet/common 0.24.0 → 0.25.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 +19 -6
- package/dist/fleet/index.js +24 -4
- package/dist/fleet/index.js.map +1 -1
- package/dist/schemas/delivery.d.ts +97 -0
- package/dist/schemas/delivery.js +37 -0
- package/dist/schemas/delivery.js.map +1 -1
- package/dist/schemas/fleet.d.ts +19 -7
- package/dist/schemas/fleet.js +2 -2
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +7 -1
- package/dist/schemas/history.d.ts +391 -12
- package/dist/schemas/history.js +99 -9
- package/dist/schemas/history.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/installation.d.ts +14 -0
- package/dist/schemas/installation.js +13 -0
- package/dist/schemas/installation.js.map +1 -1
- package/dist/schemas/needs-attention.d.ts +166 -6
- package/dist/schemas/needs-attention.js +47 -11
- package/dist/schemas/needs-attention.js.map +1 -1
- package/dist/schemas/operator-inbox.d.ts +8 -2
- package/dist/schemas/turn.d.ts +26 -0
- package/dist/schemas/turn.js +15 -0
- package/dist/schemas/turn.js.map +1 -0
- package/dist/trierarch/configuration.d.ts +8 -0
- package/dist/trierarch/configuration.js +14 -0
- package/dist/trierarch/configuration.js.map +1 -1
- package/dist/trierarch/report-details.d.ts +6 -0
- package/dist/trierarch/report-details.js +8 -0
- package/dist/trierarch/report-details.js.map +1 -1
- package/package.json +1 -1
package/dist/fleet/index.d.ts
CHANGED
|
@@ -75,21 +75,28 @@ export declare const selectorKindSchema: z.ZodEnum<{
|
|
|
75
75
|
export type SelectorKind = z.infer<typeof selectorKindSchema>;
|
|
76
76
|
/**
|
|
77
77
|
* Where one delivery stands (docs/blueprint.md, "Key flows"): pending until a
|
|
78
|
-
* ship receives it
|
|
79
|
-
*
|
|
78
|
+
* ship receives it; received when a push receive took it and has not handed
|
|
79
|
+
* it to the agent yet; handed once the agent has it (a plain receive hands it
|
|
80
|
+
* at once). Received and handed are in flight with the crew, until it is
|
|
81
|
+
* acknowledged or returns to pending. After acknowledged, a pushed crew
|
|
82
|
+
* reports it handled when the turn that took it ended by itself, or not
|
|
83
|
+
* handled when that turn died twice.
|
|
80
84
|
*/
|
|
81
|
-
export declare const DELIVERY_STATES: readonly ["pending", "
|
|
85
|
+
export declare const DELIVERY_STATES: readonly ["pending", "received", "handed", "acknowledged", "handled", "notHandled", "undeliverable", "dismissed", "abandoned"];
|
|
82
86
|
export declare const deliveryStateSchema: z.ZodEnum<{
|
|
83
87
|
pending: "pending";
|
|
84
|
-
|
|
88
|
+
received: "received";
|
|
89
|
+
handed: "handed";
|
|
85
90
|
acknowledged: "acknowledged";
|
|
91
|
+
handled: "handled";
|
|
92
|
+
notHandled: "notHandled";
|
|
86
93
|
undeliverable: "undeliverable";
|
|
87
94
|
dismissed: "dismissed";
|
|
88
95
|
abandoned: "abandoned";
|
|
89
96
|
}>;
|
|
90
97
|
export type DeliveryState = z.infer<typeof deliveryStateSchema>;
|
|
91
98
|
/** The event types written so far. Each later slice adds the ones it writes. */
|
|
92
|
-
export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "
|
|
99
|
+
export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "LeasePushed", "DeliveryReceived", "DeliveryHanded", "DeliveryAcknowledged", "DeliveryHandled", "DeliveryNotHandled", "DeliveryOverdue", "DeliveryUndeliverable", "DeliveryReturned", "ShipRetired", "DeliveryAbandoned", "DeliveryDismissed", "ShipRenamed", "ShipReported", "TurnReported", "SignInTicketIssued", "FleetLimitsChanged", "ViewerSessionStarted", "CrewRequested", "CrewRequestRemoved", "CrewAssigned", "CrewStatusChanged", "CrewRequestExplained", "CrewRequestGivenBack", "LabelDefined", "LabelValuesChanged", "LabelRetired", "LabelAssigned", "LabelUnassigned", "LabelDeleted", "WorktreeClearRequested", "WorktreeCleared", "WorktreeClearRemoved", "NetworkRulesSet", "NetworkRulesDeclared", "NetworkPluginRegistered", "NetworkPluginUnregistered"];
|
|
93
100
|
export declare const eventTypeSchema: z.ZodEnum<{
|
|
94
101
|
FleetInitialised: "FleetInitialised";
|
|
95
102
|
ShipCommissioned: "ShipCommissioned";
|
|
@@ -99,8 +106,13 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
99
106
|
StartingPromptIssued: "StartingPromptIssued";
|
|
100
107
|
OperatorPasswordReset: "OperatorPasswordReset";
|
|
101
108
|
MessageAccepted: "MessageAccepted";
|
|
102
|
-
|
|
109
|
+
LeasePushed: "LeasePushed";
|
|
110
|
+
DeliveryReceived: "DeliveryReceived";
|
|
111
|
+
DeliveryHanded: "DeliveryHanded";
|
|
103
112
|
DeliveryAcknowledged: "DeliveryAcknowledged";
|
|
113
|
+
DeliveryHandled: "DeliveryHandled";
|
|
114
|
+
DeliveryNotHandled: "DeliveryNotHandled";
|
|
115
|
+
DeliveryOverdue: "DeliveryOverdue";
|
|
104
116
|
DeliveryUndeliverable: "DeliveryUndeliverable";
|
|
105
117
|
DeliveryReturned: "DeliveryReturned";
|
|
106
118
|
ShipRetired: "ShipRetired";
|
|
@@ -108,6 +120,7 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
108
120
|
DeliveryDismissed: "DeliveryDismissed";
|
|
109
121
|
ShipRenamed: "ShipRenamed";
|
|
110
122
|
ShipReported: "ShipReported";
|
|
123
|
+
TurnReported: "TurnReported";
|
|
111
124
|
SignInTicketIssued: "SignInTicketIssued";
|
|
112
125
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
113
126
|
ViewerSessionStarted: "ViewerSessionStarted";
|
package/dist/fleet/index.js
CHANGED
|
@@ -35,10 +35,24 @@ export const SELECTOR_KINDS = ['ship', 'type'];
|
|
|
35
35
|
export const selectorKindSchema = z.enum(SELECTOR_KINDS);
|
|
36
36
|
/**
|
|
37
37
|
* Where one delivery stands (docs/blueprint.md, "Key flows"): pending until a
|
|
38
|
-
* ship receives it
|
|
39
|
-
*
|
|
38
|
+
* ship receives it; received when a push receive took it and has not handed
|
|
39
|
+
* it to the agent yet; handed once the agent has it (a plain receive hands it
|
|
40
|
+
* at once). Received and handed are in flight with the crew, until it is
|
|
41
|
+
* acknowledged or returns to pending. After acknowledged, a pushed crew
|
|
42
|
+
* reports it handled when the turn that took it ended by itself, or not
|
|
43
|
+
* handled when that turn died twice.
|
|
40
44
|
*/
|
|
41
|
-
export const DELIVERY_STATES = [
|
|
45
|
+
export const DELIVERY_STATES = [
|
|
46
|
+
'pending',
|
|
47
|
+
'received',
|
|
48
|
+
'handed',
|
|
49
|
+
'acknowledged',
|
|
50
|
+
'handled',
|
|
51
|
+
'notHandled',
|
|
52
|
+
'undeliverable',
|
|
53
|
+
'dismissed',
|
|
54
|
+
'abandoned',
|
|
55
|
+
];
|
|
42
56
|
export const deliveryStateSchema = z.enum(DELIVERY_STATES);
|
|
43
57
|
/** The event types written so far. Each later slice adds the ones it writes. */
|
|
44
58
|
export const EVENT_TYPES = [
|
|
@@ -50,8 +64,13 @@ export const EVENT_TYPES = [
|
|
|
50
64
|
'StartingPromptIssued',
|
|
51
65
|
'OperatorPasswordReset',
|
|
52
66
|
'MessageAccepted',
|
|
53
|
-
'
|
|
67
|
+
'LeasePushed',
|
|
68
|
+
'DeliveryReceived',
|
|
69
|
+
'DeliveryHanded',
|
|
54
70
|
'DeliveryAcknowledged',
|
|
71
|
+
'DeliveryHandled',
|
|
72
|
+
'DeliveryNotHandled',
|
|
73
|
+
'DeliveryOverdue',
|
|
55
74
|
'DeliveryUndeliverable',
|
|
56
75
|
'DeliveryReturned',
|
|
57
76
|
'ShipRetired',
|
|
@@ -59,6 +78,7 @@ export const EVENT_TYPES = [
|
|
|
59
78
|
'DeliveryDismissed',
|
|
60
79
|
'ShipRenamed',
|
|
61
80
|
'ShipReported',
|
|
81
|
+
'TurnReported',
|
|
62
82
|
'SignInTicketIssued',
|
|
63
83
|
'FleetLimitsChanged',
|
|
64
84
|
'ViewerSessionStarted',
|
package/dist/fleet/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fleet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AACjL,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAG1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAClJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAGrD,4FAA4F;AAC5F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAGjD,kFAAkF;AAClF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAC9E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,I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AAsB;IACtB,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,wBAAwB;IACxB,iBAAiB;IACjB,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;IACtB,yBAAyB;IACzB,2BAA2B;CACnB,CAAC;AACX,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAGnD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
|
|
@@ -78,6 +78,103 @@ export declare const receiveOutputSchema: z.ZodObject<{
|
|
|
78
78
|
}, z.core.$strip>>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
80
|
export type ReceiveOutput = z.infer<typeof receiveOutputSchema>;
|
|
81
|
+
/**
|
|
82
|
+
* One delivery a push receive takes for the crew's computer side (decision
|
|
83
|
+
* 0040): received, not yet handed to the agent and with no attempt counted,
|
|
84
|
+
* or handed already, with the last hand-over number the crew reported.
|
|
85
|
+
*/
|
|
86
|
+
export declare const pushReceivedDeliverySchema: z.ZodObject<{
|
|
87
|
+
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
|
88
|
+
messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
|
|
89
|
+
senderShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
90
|
+
senderName: z.ZodString;
|
|
91
|
+
senderType: z.ZodString;
|
|
92
|
+
recipient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"ship">;
|
|
94
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"type">;
|
|
97
|
+
type: z.ZodString;
|
|
98
|
+
}, z.core.$strip>], "kind">;
|
|
99
|
+
payload: z.ZodString;
|
|
100
|
+
contentType: z.ZodString;
|
|
101
|
+
model: z.ZodNullable<z.ZodString>;
|
|
102
|
+
inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
103
|
+
sentAt: z.ZodISODateTime;
|
|
104
|
+
attempts: z.ZodInt;
|
|
105
|
+
state: z.ZodEnum<{
|
|
106
|
+
received: "received";
|
|
107
|
+
handed: "handed";
|
|
108
|
+
}>;
|
|
109
|
+
handOverNumber: z.ZodNullable<z.ZodInt>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type PushReceivedDelivery = z.infer<typeof pushReceivedDeliverySchema>;
|
|
112
|
+
/** Output of `ship.pushReceive`: the deliveries taken, none when the wait ended without one. */
|
|
113
|
+
export declare const pushReceiveOutputSchema: z.ZodObject<{
|
|
114
|
+
deliveries: z.ZodArray<z.ZodObject<{
|
|
115
|
+
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
|
116
|
+
messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
|
|
117
|
+
senderShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
118
|
+
senderName: z.ZodString;
|
|
119
|
+
senderType: z.ZodString;
|
|
120
|
+
recipient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"ship">;
|
|
122
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"type">;
|
|
125
|
+
type: z.ZodString;
|
|
126
|
+
}, z.core.$strip>], "kind">;
|
|
127
|
+
payload: z.ZodString;
|
|
128
|
+
contentType: z.ZodString;
|
|
129
|
+
model: z.ZodNullable<z.ZodString>;
|
|
130
|
+
inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
131
|
+
sentAt: z.ZodISODateTime;
|
|
132
|
+
attempts: z.ZodInt;
|
|
133
|
+
state: z.ZodEnum<{
|
|
134
|
+
received: "received";
|
|
135
|
+
handed: "handed";
|
|
136
|
+
}>;
|
|
137
|
+
handOverNumber: z.ZodNullable<z.ZodInt>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type PushReceiveOutput = z.infer<typeof pushReceiveOutputSchema>;
|
|
141
|
+
/**
|
|
142
|
+
* Input of `ship.handed`: the delivery the computer side handed to the agent,
|
|
143
|
+
* and the number of that hand-over, counting from 1 under the crew's lease.
|
|
144
|
+
* Once more: it hands a confirmed message once more, after the turn that took
|
|
145
|
+
* it died (decision 0040).
|
|
146
|
+
*/
|
|
147
|
+
export declare const handedInputSchema: z.ZodObject<{
|
|
148
|
+
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
|
149
|
+
handOverNumber: z.ZodInt;
|
|
150
|
+
isOnceMore: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type HandedInput = z.infer<typeof handedInputSchema>;
|
|
153
|
+
/** Output of `ship.handed`: where the delivery stands now. Undeliverable: that was the fifth attempt, and nothing is handed. */
|
|
154
|
+
export declare const handedOutputSchema: z.ZodObject<{
|
|
155
|
+
state: z.ZodEnum<{
|
|
156
|
+
handed: "handed";
|
|
157
|
+
acknowledged: "acknowledged";
|
|
158
|
+
undeliverable: "undeliverable";
|
|
159
|
+
}>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export type HandedOutput = z.infer<typeof handedOutputSchema>;
|
|
162
|
+
/** Input of `ship.handled`: the acknowledged delivery whose turn ended by itself. */
|
|
163
|
+
export declare const handledInputSchema: z.ZodObject<{
|
|
164
|
+
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export type HandledInput = z.infer<typeof handledInputSchema>;
|
|
167
|
+
/** Output of `ship.handled`: nothing; the OK is the answer. */
|
|
168
|
+
export declare const handledOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
169
|
+
export type HandledOutput = z.infer<typeof handledOutputSchema>;
|
|
170
|
+
/** Input of `ship.notHandled`: the delivery handed once more whose turn died too. */
|
|
171
|
+
export declare const notHandledInputSchema: z.ZodObject<{
|
|
172
|
+
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export type NotHandledInput = z.infer<typeof notHandledInputSchema>;
|
|
175
|
+
/** Output of `ship.notHandled`: nothing; the OK is the answer. */
|
|
176
|
+
export declare const notHandledOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
177
|
+
export type NotHandledOutput = z.infer<typeof notHandledOutputSchema>;
|
|
81
178
|
/** Input of `ship.ack`: the delivery the calling ship received and takes responsibility for. */
|
|
82
179
|
export declare const ackInputSchema: z.ZodObject<{
|
|
83
180
|
deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
|
package/dist/schemas/delivery.js
CHANGED
|
@@ -53,6 +53,43 @@ export const receivedDeliverySchema = z.object({
|
|
|
53
53
|
export const receiveOutputSchema = z.object({
|
|
54
54
|
deliveries: z.array(receivedDeliverySchema).max(RECEIVE_MAX_UPPER_BOUND),
|
|
55
55
|
});
|
|
56
|
+
/**
|
|
57
|
+
* One delivery a push receive takes for the crew's computer side (decision
|
|
58
|
+
* 0040): received, not yet handed to the agent and with no attempt counted,
|
|
59
|
+
* or handed already, with the last hand-over number the crew reported.
|
|
60
|
+
*/
|
|
61
|
+
export const pushReceivedDeliverySchema = receivedDeliverySchema.extend({
|
|
62
|
+
/** How many times the delivery has been handed over so far: none while it is only received. */
|
|
63
|
+
attempts: z.int().min(0),
|
|
64
|
+
state: z.enum(['received', 'handed']),
|
|
65
|
+
/** The last hand-over number the crew reported with handed; null while received, or when a plain receive handed it. */
|
|
66
|
+
handOverNumber: z.int().positive().nullable(),
|
|
67
|
+
});
|
|
68
|
+
/** Output of `ship.pushReceive`: the deliveries taken, none when the wait ended without one. */
|
|
69
|
+
export const pushReceiveOutputSchema = z.object({
|
|
70
|
+
deliveries: z.array(pushReceivedDeliverySchema).max(RECEIVE_MAX_UPPER_BOUND),
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Input of `ship.handed`: the delivery the computer side handed to the agent,
|
|
74
|
+
* and the number of that hand-over, counting from 1 under the crew's lease.
|
|
75
|
+
* Once more: it hands a confirmed message once more, after the turn that took
|
|
76
|
+
* it died (decision 0040).
|
|
77
|
+
*/
|
|
78
|
+
export const handedInputSchema = z.object({
|
|
79
|
+
deliveryId: idSchema('delivery'),
|
|
80
|
+
handOverNumber: z.int().positive(),
|
|
81
|
+
isOnceMore: z.boolean().optional(),
|
|
82
|
+
});
|
|
83
|
+
/** Output of `ship.handed`: where the delivery stands now. Undeliverable: that was the fifth attempt, and nothing is handed. */
|
|
84
|
+
export const handedOutputSchema = z.object({ state: z.enum(['handed', 'acknowledged', 'undeliverable']) });
|
|
85
|
+
/** Input of `ship.handled`: the acknowledged delivery whose turn ended by itself. */
|
|
86
|
+
export const handledInputSchema = z.object({ deliveryId: idSchema('delivery') });
|
|
87
|
+
/** Output of `ship.handled`: nothing; the OK is the answer. */
|
|
88
|
+
export const handledOutputSchema = z.strictObject({});
|
|
89
|
+
/** Input of `ship.notHandled`: the delivery handed once more whose turn died too. */
|
|
90
|
+
export const notHandledInputSchema = z.object({ deliveryId: idSchema('delivery') });
|
|
91
|
+
/** Output of `ship.notHandled`: nothing; the OK is the answer. */
|
|
92
|
+
export const notHandledOutputSchema = z.strictObject({});
|
|
56
93
|
/** Input of `ship.ack`: the delivery the calling ship received and takes responsibility for. */
|
|
57
94
|
export const ackInputSchema = z.object({ deliveryId: idSchema('delivery') });
|
|
58
95
|
/** Output of `ship.ack`: nothing; the OK is the answer. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../src/schemas/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C;;;;;GAKG;AAEH,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,gGAAgG;AAChG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC;KACvE,QAAQ,EAAE,CAAC;AAId;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC1D,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;IAC/D,CAAC,CAAC,MAAM,CAAC,E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C,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AAIpF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAIzD,gGAAgG;AAChG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AAI7E,2DAA2D;AAC3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAIlD,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC;KAC9E,QAAQ,EAAE,CAAC;AAId,yFAAyF;AACzF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/schemas/fleet.d.ts
CHANGED
|
@@ -112,15 +112,15 @@ export declare const recrewShipInputSchema: z.ZodObject<{
|
|
|
112
112
|
}, z.core.$strip>;
|
|
113
113
|
/**
|
|
114
114
|
* How a ship's last ping stands: waiting for an answer, answered with pong,
|
|
115
|
-
*
|
|
115
|
+
* acknowledged with a plain ack, or undeliverable: handed out again and again and
|
|
116
116
|
* never acknowledged.
|
|
117
117
|
*/
|
|
118
|
-
export declare const PING_STATES: readonly ["waiting", "answered", "
|
|
118
|
+
export declare const PING_STATES: readonly ["waiting", "answered", "acknowledged", "undeliverable"];
|
|
119
119
|
export declare const pingStateSchema: z.ZodEnum<{
|
|
120
|
+
acknowledged: "acknowledged";
|
|
120
121
|
undeliverable: "undeliverable";
|
|
121
122
|
waiting: "waiting";
|
|
122
123
|
answered: "answered";
|
|
123
|
-
received: "received";
|
|
124
124
|
}>;
|
|
125
125
|
export type PingState = z.infer<typeof pingStateSchema>;
|
|
126
126
|
/**
|
|
@@ -162,10 +162,10 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
162
162
|
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
163
163
|
ping: z.ZodNullable<z.ZodObject<{
|
|
164
164
|
state: z.ZodEnum<{
|
|
165
|
+
acknowledged: "acknowledged";
|
|
165
166
|
undeliverable: "undeliverable";
|
|
166
167
|
waiting: "waiting";
|
|
167
168
|
answered: "answered";
|
|
168
|
-
received: "received";
|
|
169
169
|
}>;
|
|
170
170
|
sentAt: z.ZodISODateTime;
|
|
171
171
|
answeredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -268,10 +268,10 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
268
268
|
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
269
269
|
ping: z.ZodNullable<z.ZodObject<{
|
|
270
270
|
state: z.ZodEnum<{
|
|
271
|
+
acknowledged: "acknowledged";
|
|
271
272
|
undeliverable: "undeliverable";
|
|
272
273
|
waiting: "waiting";
|
|
273
274
|
answered: "answered";
|
|
274
|
-
received: "received";
|
|
275
275
|
}>;
|
|
276
276
|
sentAt: z.ZodISODateTime;
|
|
277
277
|
answeredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -369,8 +369,13 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
369
369
|
StartingPromptIssued: "StartingPromptIssued";
|
|
370
370
|
OperatorPasswordReset: "OperatorPasswordReset";
|
|
371
371
|
MessageAccepted: "MessageAccepted";
|
|
372
|
-
|
|
372
|
+
LeasePushed: "LeasePushed";
|
|
373
|
+
DeliveryReceived: "DeliveryReceived";
|
|
374
|
+
DeliveryHanded: "DeliveryHanded";
|
|
373
375
|
DeliveryAcknowledged: "DeliveryAcknowledged";
|
|
376
|
+
DeliveryHandled: "DeliveryHandled";
|
|
377
|
+
DeliveryNotHandled: "DeliveryNotHandled";
|
|
378
|
+
DeliveryOverdue: "DeliveryOverdue";
|
|
374
379
|
DeliveryUndeliverable: "DeliveryUndeliverable";
|
|
375
380
|
DeliveryReturned: "DeliveryReturned";
|
|
376
381
|
ShipRetired: "ShipRetired";
|
|
@@ -378,6 +383,7 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
378
383
|
DeliveryDismissed: "DeliveryDismissed";
|
|
379
384
|
ShipRenamed: "ShipRenamed";
|
|
380
385
|
ShipReported: "ShipReported";
|
|
386
|
+
TurnReported: "TurnReported";
|
|
381
387
|
SignInTicketIssued: "SignInTicketIssued";
|
|
382
388
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
383
389
|
ViewerSessionStarted: "ViewerSessionStarted";
|
|
@@ -426,8 +432,13 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
426
432
|
StartingPromptIssued: "StartingPromptIssued";
|
|
427
433
|
OperatorPasswordReset: "OperatorPasswordReset";
|
|
428
434
|
MessageAccepted: "MessageAccepted";
|
|
429
|
-
|
|
435
|
+
LeasePushed: "LeasePushed";
|
|
436
|
+
DeliveryReceived: "DeliveryReceived";
|
|
437
|
+
DeliveryHanded: "DeliveryHanded";
|
|
430
438
|
DeliveryAcknowledged: "DeliveryAcknowledged";
|
|
439
|
+
DeliveryHandled: "DeliveryHandled";
|
|
440
|
+
DeliveryNotHandled: "DeliveryNotHandled";
|
|
441
|
+
DeliveryOverdue: "DeliveryOverdue";
|
|
431
442
|
DeliveryUndeliverable: "DeliveryUndeliverable";
|
|
432
443
|
DeliveryReturned: "DeliveryReturned";
|
|
433
444
|
ShipRetired: "ShipRetired";
|
|
@@ -435,6 +446,7 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
435
446
|
DeliveryDismissed: "DeliveryDismissed";
|
|
436
447
|
ShipRenamed: "ShipRenamed";
|
|
437
448
|
ShipReported: "ShipReported";
|
|
449
|
+
TurnReported: "TurnReported";
|
|
438
450
|
SignInTicketIssued: "SignInTicketIssued";
|
|
439
451
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
440
452
|
ViewerSessionStarted: "ViewerSessionStarted";
|
package/dist/schemas/fleet.js
CHANGED
|
@@ -89,10 +89,10 @@ export const retireShipOutputSchema = z.object({ abandonedDeliveries: z.int().mi
|
|
|
89
89
|
export const recrewShipInputSchema = z.object({ shipId: idSchema('ship') });
|
|
90
90
|
/**
|
|
91
91
|
* How a ship's last ping stands: waiting for an answer, answered with pong,
|
|
92
|
-
*
|
|
92
|
+
* acknowledged with a plain ack, or undeliverable: handed out again and again and
|
|
93
93
|
* never acknowledged.
|
|
94
94
|
*/
|
|
95
|
-
export const PING_STATES = ['waiting', 'answered', '
|
|
95
|
+
export const PING_STATES = ['waiting', 'answered', 'acknowledged', 'undeliverable'];
|
|
96
96
|
export const pingStateSchema = z.enum(PING_STATES);
|
|
97
97
|
/**
|
|
98
98
|
* One ship in `fleet.list`. `startingPrompt` is the prompt holding the ship's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../src/schemas/fleet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACzI,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,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AG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;CACjH,CAAC,CAAC"}
|
package/dist/schemas/follow.d.ts
CHANGED
|
@@ -30,8 +30,13 @@ export declare const followFleetOutputSchema: z.ZodObject<{
|
|
|
30
30
|
StartingPromptIssued: "StartingPromptIssued";
|
|
31
31
|
OperatorPasswordReset: "OperatorPasswordReset";
|
|
32
32
|
MessageAccepted: "MessageAccepted";
|
|
33
|
-
|
|
33
|
+
LeasePushed: "LeasePushed";
|
|
34
|
+
DeliveryReceived: "DeliveryReceived";
|
|
35
|
+
DeliveryHanded: "DeliveryHanded";
|
|
34
36
|
DeliveryAcknowledged: "DeliveryAcknowledged";
|
|
37
|
+
DeliveryHandled: "DeliveryHandled";
|
|
38
|
+
DeliveryNotHandled: "DeliveryNotHandled";
|
|
39
|
+
DeliveryOverdue: "DeliveryOverdue";
|
|
35
40
|
DeliveryUndeliverable: "DeliveryUndeliverable";
|
|
36
41
|
DeliveryReturned: "DeliveryReturned";
|
|
37
42
|
ShipRetired: "ShipRetired";
|
|
@@ -39,6 +44,7 @@ export declare const followFleetOutputSchema: z.ZodObject<{
|
|
|
39
44
|
DeliveryDismissed: "DeliveryDismissed";
|
|
40
45
|
ShipRenamed: "ShipRenamed";
|
|
41
46
|
ShipReported: "ShipReported";
|
|
47
|
+
TurnReported: "TurnReported";
|
|
42
48
|
SignInTicketIssued: "SignInTicketIssued";
|
|
43
49
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
44
50
|
ViewerSessionStarted: "ViewerSessionStarted";
|