@aeolus-fleet/common 0.26.1 → 0.27.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 +67 -9
- package/dist/fleet/index.js +87 -7
- package/dist/fleet/index.js.map +1 -1
- package/dist/fleet/no-terminal-questions.d.ts +1 -1
- package/dist/fleet/no-terminal-questions.js +1 -1
- package/dist/fleet/no-terminal-questions.js.map +1 -1
- 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/rules/read-reach.d.ts +4 -0
- package/dist/rules/read-reach.js +5 -0
- package/dist/rules/read-reach.js.map +1 -0
- package/dist/schemas/console.d.ts +6 -0
- package/dist/schemas/crew-request.d.ts +2 -0
- package/dist/schemas/crew-request.js +3 -0
- package/dist/schemas/crew-request.js.map +1 -1
- package/dist/schemas/delivery.d.ts +10 -1
- package/dist/schemas/delivery.js +8 -2
- package/dist/schemas/delivery.js.map +1 -1
- package/dist/schemas/fleet.d.ts +61 -37
- package/dist/schemas/fleet.js +25 -9
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +6 -0
- package/dist/schemas/history.d.ts +137 -11
- package/dist/schemas/history.js +5 -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/message.d.ts +1 -0
- package/dist/schemas/message.js +2 -0
- package/dist/schemas/message.js.map +1 -1
- package/dist/schemas/needs-attention.d.ts +0 -150
- package/dist/schemas/needs-attention.js +1 -33
- package/dist/schemas/needs-attention.js.map +1 -1
- package/dist/schemas/network.d.ts +302 -12
- package/dist/schemas/network.js +77 -15
- package/dist/schemas/network.js.map +1 -1
- package/dist/schemas/scopes.d.ts +56 -0
- package/dist/schemas/scopes.js +35 -0
- package/dist/schemas/scopes.js.map +1 -0
- package/dist/schemas/ship.d.ts +2 -0
- package/dist/schemas/ship.js +7 -0
- package/dist/schemas/ship.js.map +1 -1
- package/dist/schemas/statement.d.ts +126 -0
- package/dist/schemas/statement.js +88 -0
- package/dist/schemas/statement.js.map +1 -0
- package/package.json +1 -1
package/dist/schemas/fleet.d.ts
CHANGED
|
@@ -9,24 +9,21 @@ export declare const shipHandleSchema: z.ZodString;
|
|
|
9
9
|
export declare const SHIP_NOTE_MAX_LENGTH = 500;
|
|
10
10
|
/**
|
|
11
11
|
* Input of `fleet.commission`. The note is free text for the operator;
|
|
12
|
-
* whitespace around it is dropped. `
|
|
13
|
-
*
|
|
14
|
-
* when left out.
|
|
12
|
+
* whitespace around it is dropped. `scopes` adds scopes, core or a
|
|
13
|
+
* plugin's, to the scopes every ship has; none when left out.
|
|
15
14
|
* `idempotencyKey` is the caller's own key, as for a send: a retry with the
|
|
16
15
|
* same key and the same request commissions no second ship.
|
|
17
16
|
*/
|
|
18
17
|
export declare const commissionShipInputSchema: z.ZodObject<{
|
|
19
18
|
name: z.ZodString;
|
|
20
19
|
type: z.ZodString;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"fleet:network": "fleet:network";
|
|
29
|
-
}>>>;
|
|
20
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
agent: "agent";
|
|
22
|
+
person: "person";
|
|
23
|
+
app: "app";
|
|
24
|
+
}>>;
|
|
25
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
ownerOf: z.ZodOptional<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
|
30
27
|
note: z.ZodOptional<z.ZodString>;
|
|
31
28
|
idempotencyKey: z.ZodString;
|
|
32
29
|
}, z.core.$strip>;
|
|
@@ -95,6 +92,13 @@ export declare const renameShipInputSchema: z.ZodObject<{
|
|
|
95
92
|
}, z.core.$strip>;
|
|
96
93
|
/** Output of `fleet.rename`: nothing; the OK is the answer. */
|
|
97
94
|
export declare const renameShipOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
95
|
+
/** Input of `fleet.setOwner`: the ship and its new owner, an active person's ship or argo (decision 0045). argo's only. */
|
|
96
|
+
export declare const setOwnerInputSchema: z.ZodObject<{
|
|
97
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
98
|
+
ownerShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
/** Output of `fleet.setOwner`: nothing; the OK is the answer. */
|
|
101
|
+
export declare const setOwnerOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
98
102
|
/** Input of `fleet.retire`: the ship to end for good. Never argo. */
|
|
99
103
|
export declare const retireShipInputSchema: z.ZodObject<{
|
|
100
104
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
@@ -140,6 +144,8 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
140
144
|
operator: "operator";
|
|
141
145
|
agent: "agent";
|
|
142
146
|
viewer: "viewer";
|
|
147
|
+
person: "person";
|
|
148
|
+
app: "app";
|
|
143
149
|
}>;
|
|
144
150
|
status: z.ZodEnum<{
|
|
145
151
|
awaitingCrew: "awaitingCrew";
|
|
@@ -175,17 +181,7 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
175
181
|
id: z.ZodString;
|
|
176
182
|
statedAt: z.ZodISODateTime;
|
|
177
183
|
}, z.core.$strip>>;
|
|
178
|
-
scopes: z.ZodArray<z.
|
|
179
|
-
"messages:send": "messages:send";
|
|
180
|
-
"messages:receive": "messages:receive";
|
|
181
|
-
"fleet:read": "fleet:read";
|
|
182
|
-
"fleet:manage": "fleet:manage";
|
|
183
|
-
"crew:assign": "crew:assign";
|
|
184
|
-
"crew:run": "crew:run";
|
|
185
|
-
"labels:define": "labels:define";
|
|
186
|
-
"labels:assign": "labels:assign";
|
|
187
|
-
"fleet:network": "fleet:network";
|
|
188
|
-
}>>;
|
|
184
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
189
185
|
report: z.ZodNullable<z.ZodObject<{
|
|
190
186
|
state: z.ZodEnum<{
|
|
191
187
|
working: "working";
|
|
@@ -237,8 +233,22 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
237
233
|
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
238
234
|
}, z.core.$strip>;
|
|
239
235
|
export type ListedShip = z.infer<typeof listedShipSchema>;
|
|
240
|
-
/**
|
|
241
|
-
export declare const
|
|
236
|
+
/** A ship outside the caller's read reach (decision 0034): its name, type and status only. */
|
|
237
|
+
export declare const shipOutsideReadReachSchema: z.ZodObject<{
|
|
238
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
type: z.ZodString;
|
|
241
|
+
status: z.ZodEnum<{
|
|
242
|
+
awaitingCrew: "awaitingCrew";
|
|
243
|
+
crewed: "crewed";
|
|
244
|
+
retired: "retired";
|
|
245
|
+
}>;
|
|
246
|
+
isInReadReach: z.ZodLiteral<false>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
export type ShipOutsideReadReach = z.infer<typeof shipOutsideReadReachSchema>;
|
|
249
|
+
export { isInReadReach } from '../rules/read-reach.js';
|
|
250
|
+
/** Output of `fleet.list`: every ship in the caller's fleet, `argo` included, those outside its read reach by name, type and status only. */
|
|
251
|
+
export declare const fleetListOutputSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
242
252
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
243
253
|
name: z.ZodString;
|
|
244
254
|
type: z.ZodString;
|
|
@@ -246,6 +256,8 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
246
256
|
operator: "operator";
|
|
247
257
|
agent: "agent";
|
|
248
258
|
viewer: "viewer";
|
|
259
|
+
person: "person";
|
|
260
|
+
app: "app";
|
|
249
261
|
}>;
|
|
250
262
|
status: z.ZodEnum<{
|
|
251
263
|
awaitingCrew: "awaitingCrew";
|
|
@@ -281,17 +293,7 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
281
293
|
id: z.ZodString;
|
|
282
294
|
statedAt: z.ZodISODateTime;
|
|
283
295
|
}, z.core.$strip>>;
|
|
284
|
-
scopes: z.ZodArray<z.
|
|
285
|
-
"messages:send": "messages:send";
|
|
286
|
-
"messages:receive": "messages:receive";
|
|
287
|
-
"fleet:read": "fleet:read";
|
|
288
|
-
"fleet:manage": "fleet:manage";
|
|
289
|
-
"crew:assign": "crew:assign";
|
|
290
|
-
"crew:run": "crew:run";
|
|
291
|
-
"labels:define": "labels:define";
|
|
292
|
-
"labels:assign": "labels:assign";
|
|
293
|
-
"fleet:network": "fleet:network";
|
|
294
|
-
}>>;
|
|
296
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
295
297
|
report: z.ZodNullable<z.ZodObject<{
|
|
296
298
|
state: z.ZodEnum<{
|
|
297
299
|
working: "working";
|
|
@@ -341,7 +343,17 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
341
343
|
}, z.core.$strip>>;
|
|
342
344
|
awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
|
|
343
345
|
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
344
|
-
}, z.core.$strip
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
348
|
+
name: z.ZodString;
|
|
349
|
+
type: z.ZodString;
|
|
350
|
+
status: z.ZodEnum<{
|
|
351
|
+
awaitingCrew: "awaitingCrew";
|
|
352
|
+
crewed: "crewed";
|
|
353
|
+
retired: "retired";
|
|
354
|
+
}>;
|
|
355
|
+
isInReadReach: z.ZodLiteral<false>;
|
|
356
|
+
}, z.core.$strip>]>>;
|
|
345
357
|
/**
|
|
346
358
|
* Input of the `fleet.events` subscription: the number of the last event the
|
|
347
359
|
* browser applied. tRPC sends it back as `lastEventId` when it reconnects;
|
|
@@ -363,6 +375,8 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
363
375
|
type: z.ZodEnum<{
|
|
364
376
|
FleetInitialised: "FleetInitialised";
|
|
365
377
|
ShipCommissioned: "ShipCommissioned";
|
|
378
|
+
OwnerSet: "OwnerSet";
|
|
379
|
+
OwnerChanged: "OwnerChanged";
|
|
366
380
|
ShipClaimed: "ShipClaimed";
|
|
367
381
|
LeaseRevoked: "LeaseRevoked";
|
|
368
382
|
CredentialRevoked: "CredentialRevoked";
|
|
@@ -383,6 +397,7 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
383
397
|
DeliveryDismissed: "DeliveryDismissed";
|
|
384
398
|
ShipRenamed: "ShipRenamed";
|
|
385
399
|
ShipReported: "ShipReported";
|
|
400
|
+
StatementSet: "StatementSet";
|
|
386
401
|
TurnReported: "TurnReported";
|
|
387
402
|
SignInTicketIssued: "SignInTicketIssued";
|
|
388
403
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
@@ -406,6 +421,9 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
406
421
|
NetworkRulesDeclared: "NetworkRulesDeclared";
|
|
407
422
|
NetworkPluginRegistered: "NetworkPluginRegistered";
|
|
408
423
|
NetworkPluginUnregistered: "NetworkPluginUnregistered";
|
|
424
|
+
BuiltInRuleChanged: "BuiltInRuleChanged";
|
|
425
|
+
ScopesDeclared: "ScopesDeclared";
|
|
426
|
+
ScopesChanged: "ScopesChanged";
|
|
409
427
|
}>;
|
|
410
428
|
occurredAt: z.ZodISODateTime;
|
|
411
429
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
|
@@ -426,6 +444,8 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
426
444
|
type: z.ZodEnum<{
|
|
427
445
|
FleetInitialised: "FleetInitialised";
|
|
428
446
|
ShipCommissioned: "ShipCommissioned";
|
|
447
|
+
OwnerSet: "OwnerSet";
|
|
448
|
+
OwnerChanged: "OwnerChanged";
|
|
429
449
|
ShipClaimed: "ShipClaimed";
|
|
430
450
|
LeaseRevoked: "LeaseRevoked";
|
|
431
451
|
CredentialRevoked: "CredentialRevoked";
|
|
@@ -446,6 +466,7 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
446
466
|
DeliveryDismissed: "DeliveryDismissed";
|
|
447
467
|
ShipRenamed: "ShipRenamed";
|
|
448
468
|
ShipReported: "ShipReported";
|
|
469
|
+
StatementSet: "StatementSet";
|
|
449
470
|
TurnReported: "TurnReported";
|
|
450
471
|
SignInTicketIssued: "SignInTicketIssued";
|
|
451
472
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
@@ -469,6 +490,9 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
469
490
|
NetworkRulesDeclared: "NetworkRulesDeclared";
|
|
470
491
|
NetworkPluginRegistered: "NetworkPluginRegistered";
|
|
471
492
|
NetworkPluginUnregistered: "NetworkPluginUnregistered";
|
|
493
|
+
BuiltInRuleChanged: "BuiltInRuleChanged";
|
|
494
|
+
ScopesDeclared: "ScopesDeclared";
|
|
495
|
+
ScopesChanged: "ScopesChanged";
|
|
472
496
|
}>;
|
|
473
497
|
occurredAt: z.ZodISODateTime;
|
|
474
498
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
package/dist/schemas/fleet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { commissionedShipKindSchema, eventTypeSchema, locationKindSchema, scopeNameSchema, shipKindSchema, shipStatusSchema } from '../fleet/index.js';
|
|
3
3
|
import { idSchema } from '../ids/index.js';
|
|
4
4
|
import { SHIP_HANDLE_MAX_LENGTH, SHIP_HANDLE_MESSAGE, SHIP_HANDLE_PATTERN } from '../rules/ship-handle.js';
|
|
5
5
|
import { idempotencyKeySchema } from './idempotency-key.js';
|
|
@@ -19,16 +19,19 @@ export const shipHandleSchema = z
|
|
|
19
19
|
export const SHIP_NOTE_MAX_LENGTH = 500;
|
|
20
20
|
/**
|
|
21
21
|
* Input of `fleet.commission`. The note is free text for the operator;
|
|
22
|
-
* whitespace around it is dropped. `
|
|
23
|
-
*
|
|
24
|
-
* when left out.
|
|
22
|
+
* whitespace around it is dropped. `scopes` adds scopes, core or a
|
|
23
|
+
* plugin's, to the scopes every ship has; none when left out.
|
|
25
24
|
* `idempotencyKey` is the caller's own key, as for a send: a retry with the
|
|
26
25
|
* same key and the same request commissions no second ship.
|
|
27
26
|
*/
|
|
28
27
|
export const commissionShipInputSchema = z.object({
|
|
29
28
|
name: shipHandleSchema,
|
|
30
29
|
type: shipHandleSchema,
|
|
31
|
-
|
|
30
|
+
/** What the ship is; an agent when left out (decision 0044). */
|
|
31
|
+
kind: commissionedShipKindSchema.optional(),
|
|
32
|
+
scopes: z.array(scopeNameSchema).optional(),
|
|
33
|
+
/** The ship that asked a plugin's ship for this one, whose owner it gets; naming one needs fleet:on-behalf (decision 0045). */
|
|
34
|
+
ownerOf: idSchema('ship').optional(),
|
|
32
35
|
note: z
|
|
33
36
|
.string()
|
|
34
37
|
.trim()
|
|
@@ -78,6 +81,10 @@ export const releaseShipOutputSchema = z.strictObject({});
|
|
|
78
81
|
export const renameShipInputSchema = z.object({ shipId: idSchema('ship'), name: shipHandleSchema });
|
|
79
82
|
/** Output of `fleet.rename`: nothing; the OK is the answer. */
|
|
80
83
|
export const renameShipOutputSchema = z.strictObject({});
|
|
84
|
+
/** Input of `fleet.setOwner`: the ship and its new owner, an active person's ship or argo (decision 0045). argo's only. */
|
|
85
|
+
export const setOwnerInputSchema = z.object({ shipId: idSchema('ship'), ownerShipId: idSchema('ship') });
|
|
86
|
+
/** Output of `fleet.setOwner`: nothing; the OK is the answer. */
|
|
87
|
+
export const setOwnerOutputSchema = z.strictObject({});
|
|
81
88
|
/** Input of `fleet.retire`: the ship to end for good. Never argo. */
|
|
82
89
|
export const retireShipInputSchema = z.object({ shipId: idSchema('ship') });
|
|
83
90
|
/** Output of `fleet.retire`: how many of its direct deliveries it abandoned. */
|
|
@@ -145,8 +152,8 @@ export const listedShipSchema = z.object({
|
|
|
145
152
|
harness: z.string().nullable(),
|
|
146
153
|
/** The last model the ship's sessions stated on a send, and when (ISO 8601 in UTC); null before any, and for argo. */
|
|
147
154
|
model: z.object({ id: z.string(), statedAt: z.iso.datetime() }).nullable(),
|
|
148
|
-
/** What the ship may do, checked on every call: every agent ship sends and receives, argo has
|
|
149
|
-
scopes: z.array(
|
|
155
|
+
/** What the ship may do, checked on every call: every agent ship sends and receives, argo has every core scope; a plugin's scopes beside them (decision 0046). */
|
|
156
|
+
scopes: z.array(scopeNameSchema),
|
|
150
157
|
/**
|
|
151
158
|
* The crew's last report (ISO 8601 in UTC): its state, its note, when it
|
|
152
159
|
* last reported and the version of its details, never the details
|
|
@@ -162,8 +169,17 @@ export const listedShipSchema = z.object({
|
|
|
162
169
|
/** When the operator retired the ship (ISO 8601 in UTC); null while it is active. */
|
|
163
170
|
retiredAt: z.iso.datetime().nullable(),
|
|
164
171
|
});
|
|
165
|
-
/**
|
|
166
|
-
export const
|
|
172
|
+
/** A ship outside the caller's read reach (decision 0034): its name, type and status only. */
|
|
173
|
+
export const shipOutsideReadReachSchema = z.object({
|
|
174
|
+
id: idSchema('ship'),
|
|
175
|
+
name: z.string(),
|
|
176
|
+
type: z.string(),
|
|
177
|
+
status: shipStatusSchema,
|
|
178
|
+
isInReadReach: z.literal(false),
|
|
179
|
+
});
|
|
180
|
+
export { isInReadReach } from '../rules/read-reach.js';
|
|
181
|
+
/** Output of `fleet.list`: every ship in the caller's fleet, `argo` included, those outside its read reach by name, type and status only. */
|
|
182
|
+
export const fleetListOutputSchema = z.array(z.union([listedShipSchema, shipOutsideReadReachSchema]));
|
|
167
183
|
/** Up to 15 digits: every number below 2^53, so it stays an exact JavaScript number. */
|
|
168
184
|
const STREAM_POSITION_PATTERN = /^\d{1,15}$/;
|
|
169
185
|
/**
|
|
@@ -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,
|
|
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,0BAA0B,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvJ,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,kEAAk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26
26
|
ShipCommissioned: "ShipCommissioned";
|
|
27
|
+
OwnerSet: "OwnerSet";
|
|
28
|
+
OwnerChanged: "OwnerChanged";
|
|
27
29
|
ShipClaimed: "ShipClaimed";
|
|
28
30
|
LeaseRevoked: "LeaseRevoked";
|
|
29
31
|
CredentialRevoked: "CredentialRevoked";
|
|
@@ -44,6 +46,7 @@ export declare const followFleetOutputSchema: z.ZodObject<{
|
|
|
44
46
|
DeliveryDismissed: "DeliveryDismissed";
|
|
45
47
|
ShipRenamed: "ShipRenamed";
|
|
46
48
|
ShipReported: "ShipReported";
|
|
49
|
+
StatementSet: "StatementSet";
|
|
47
50
|
TurnReported: "TurnReported";
|
|
48
51
|
SignInTicketIssued: "SignInTicketIssued";
|
|
49
52
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
@@ -67,6 +70,9 @@ export declare const followFleetOutputSchema: z.ZodObject<{
|
|
|
67
70
|
NetworkRulesDeclared: "NetworkRulesDeclared";
|
|
68
71
|
NetworkPluginRegistered: "NetworkPluginRegistered";
|
|
69
72
|
NetworkPluginUnregistered: "NetworkPluginUnregistered";
|
|
73
|
+
BuiltInRuleChanged: "BuiltInRuleChanged";
|
|
74
|
+
ScopesDeclared: "ScopesDeclared";
|
|
75
|
+
ScopesChanged: "ScopesChanged";
|
|
70
76
|
}>;
|
|
71
77
|
occurredAt: z.ZodISODateTime;
|
|
72
78
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
|
@@ -34,6 +34,8 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
34
34
|
operator: "operator";
|
|
35
35
|
agent: "agent";
|
|
36
36
|
viewer: "viewer";
|
|
37
|
+
person: "person";
|
|
38
|
+
app: "app";
|
|
37
39
|
}>;
|
|
38
40
|
status: z.ZodEnum<{
|
|
39
41
|
awaitingCrew: "awaitingCrew";
|
|
@@ -69,17 +71,7 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
69
71
|
id: z.ZodString;
|
|
70
72
|
statedAt: z.ZodISODateTime;
|
|
71
73
|
}, z.core.$strip>>;
|
|
72
|
-
scopes: z.ZodArray<z.
|
|
73
|
-
"messages:send": "messages:send";
|
|
74
|
-
"messages:receive": "messages:receive";
|
|
75
|
-
"fleet:read": "fleet:read";
|
|
76
|
-
"fleet:manage": "fleet:manage";
|
|
77
|
-
"crew:assign": "crew:assign";
|
|
78
|
-
"crew:run": "crew:run";
|
|
79
|
-
"labels:define": "labels:define";
|
|
80
|
-
"labels:assign": "labels:assign";
|
|
81
|
-
"fleet:network": "fleet:network";
|
|
82
|
-
}>>;
|
|
74
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
83
75
|
labels: z.ZodArray<z.ZodObject<{
|
|
84
76
|
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
85
77
|
key: z.ZodString;
|
|
@@ -136,8 +128,130 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
136
128
|
crewedSince: z.ZodNullable<z.ZodISODateTime>;
|
|
137
129
|
inFlightDeliveries: z.ZodInt;
|
|
138
130
|
openDeliveries: z.ZodInt;
|
|
131
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
132
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
139
135
|
}, z.core.$strip>;
|
|
140
136
|
export type ShipDetail = z.infer<typeof shipDetailOutputSchema>;
|
|
137
|
+
/** Output of `fleet.ship`: the ship whole, or outside the caller's read reach its name, type and status only (decision 0034). */
|
|
138
|
+
export declare const shipOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
139
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
type: z.ZodString;
|
|
142
|
+
kind: z.ZodEnum<{
|
|
143
|
+
operator: "operator";
|
|
144
|
+
agent: "agent";
|
|
145
|
+
viewer: "viewer";
|
|
146
|
+
person: "person";
|
|
147
|
+
app: "app";
|
|
148
|
+
}>;
|
|
149
|
+
status: z.ZodEnum<{
|
|
150
|
+
awaitingCrew: "awaitingCrew";
|
|
151
|
+
crewed: "crewed";
|
|
152
|
+
retired: "retired";
|
|
153
|
+
}>;
|
|
154
|
+
startingPrompt: z.ZodNullable<z.ZodObject<{
|
|
155
|
+
issuedAt: z.ZodISODateTime;
|
|
156
|
+
isClaimed: z.ZodBoolean;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
159
|
+
kind: z.ZodEnum<{
|
|
160
|
+
DEVICE: "DEVICE";
|
|
161
|
+
CLOUD: "CLOUD";
|
|
162
|
+
SERVER: "SERVER";
|
|
163
|
+
OTHER: "OTHER";
|
|
164
|
+
}>;
|
|
165
|
+
description: z.ZodNullable<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
168
|
+
ping: z.ZodNullable<z.ZodObject<{
|
|
169
|
+
state: z.ZodEnum<{
|
|
170
|
+
acknowledged: "acknowledged";
|
|
171
|
+
undeliverable: "undeliverable";
|
|
172
|
+
waiting: "waiting";
|
|
173
|
+
answered: "answered";
|
|
174
|
+
}>;
|
|
175
|
+
sentAt: z.ZodISODateTime;
|
|
176
|
+
answeredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
harness: z.ZodNullable<z.ZodString>;
|
|
179
|
+
model: z.ZodNullable<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
statedAt: z.ZodISODateTime;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
184
|
+
labels: z.ZodArray<z.ZodObject<{
|
|
185
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
186
|
+
key: z.ZodString;
|
|
187
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
188
|
+
value: z.ZodString;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
|
|
191
|
+
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
192
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
193
|
+
state: z.ZodEnum<{
|
|
194
|
+
working: "working";
|
|
195
|
+
blocked: "blocked";
|
|
196
|
+
idle: "idle";
|
|
197
|
+
}>;
|
|
198
|
+
note: z.ZodNullable<z.ZodString>;
|
|
199
|
+
reportedAt: z.ZodISODateTime;
|
|
200
|
+
detailsVersion: z.ZodInt;
|
|
201
|
+
details: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
202
|
+
detailsBytes: z.ZodNullable<z.ZodInt>;
|
|
203
|
+
}, z.core.$strip>>;
|
|
204
|
+
crewRequest: z.ZodNullable<z.ZodObject<{
|
|
205
|
+
settingsVersion: z.ZodInt;
|
|
206
|
+
requestedAt: z.ZodISODateTime;
|
|
207
|
+
assignedTo: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
212
|
+
crewing: "crewing";
|
|
213
|
+
running: "running";
|
|
214
|
+
restarting: "restarting";
|
|
215
|
+
crashed: "crashed";
|
|
216
|
+
releasing: "releasing";
|
|
217
|
+
}>>;
|
|
218
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
219
|
+
crewedBy: z.ZodNullable<z.ZodObject<{
|
|
220
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
attempt: z.ZodInt;
|
|
224
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
225
|
+
givenBack: z.ZodArray<z.ZodObject<{
|
|
226
|
+
trierarch: z.ZodObject<{
|
|
227
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
228
|
+
name: z.ZodString;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
settingsVersion: z.ZodInt;
|
|
231
|
+
reason: z.ZodString;
|
|
232
|
+
givenBackAt: z.ZodISODateTime;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
settings: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
commissionedAt: z.ZodISODateTime;
|
|
237
|
+
crewedSince: z.ZodNullable<z.ZodISODateTime>;
|
|
238
|
+
inFlightDeliveries: z.ZodInt;
|
|
239
|
+
openDeliveries: z.ZodInt;
|
|
240
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
241
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
246
|
+
name: z.ZodString;
|
|
247
|
+
type: z.ZodString;
|
|
248
|
+
status: z.ZodEnum<{
|
|
249
|
+
awaitingCrew: "awaitingCrew";
|
|
250
|
+
crewed: "crewed";
|
|
251
|
+
retired: "retired";
|
|
252
|
+
}>;
|
|
253
|
+
isInReadReach: z.ZodLiteral<false>;
|
|
254
|
+
}, z.core.$strip>]>;
|
|
141
255
|
/** One event on a ship's timeline: its number, type and time, its parties and its small flat details. */
|
|
142
256
|
export declare const timelineEntrySchema: z.ZodObject<{
|
|
143
257
|
seq: z.ZodNumber;
|
|
@@ -145,6 +259,8 @@ export declare const timelineEntrySchema: z.ZodObject<{
|
|
|
145
259
|
type: z.ZodEnum<{
|
|
146
260
|
FleetInitialised: "FleetInitialised";
|
|
147
261
|
ShipCommissioned: "ShipCommissioned";
|
|
262
|
+
OwnerSet: "OwnerSet";
|
|
263
|
+
OwnerChanged: "OwnerChanged";
|
|
148
264
|
ShipClaimed: "ShipClaimed";
|
|
149
265
|
LeaseRevoked: "LeaseRevoked";
|
|
150
266
|
CredentialRevoked: "CredentialRevoked";
|
|
@@ -165,6 +281,7 @@ export declare const timelineEntrySchema: z.ZodObject<{
|
|
|
165
281
|
DeliveryDismissed: "DeliveryDismissed";
|
|
166
282
|
ShipRenamed: "ShipRenamed";
|
|
167
283
|
ShipReported: "ShipReported";
|
|
284
|
+
StatementSet: "StatementSet";
|
|
168
285
|
TurnReported: "TurnReported";
|
|
169
286
|
SignInTicketIssued: "SignInTicketIssued";
|
|
170
287
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
@@ -188,6 +305,9 @@ export declare const timelineEntrySchema: z.ZodObject<{
|
|
|
188
305
|
NetworkRulesDeclared: "NetworkRulesDeclared";
|
|
189
306
|
NetworkPluginRegistered: "NetworkPluginRegistered";
|
|
190
307
|
NetworkPluginUnregistered: "NetworkPluginUnregistered";
|
|
308
|
+
BuiltInRuleChanged: "BuiltInRuleChanged";
|
|
309
|
+
ScopesDeclared: "ScopesDeclared";
|
|
310
|
+
ScopesChanged: "ScopesChanged";
|
|
191
311
|
}>;
|
|
192
312
|
occurredAt: z.ZodISODateTime;
|
|
193
313
|
actor: z.ZodNullable<z.ZodObject<{
|
|
@@ -228,6 +348,8 @@ export declare const shipTimelineOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
228
348
|
type: z.ZodEnum<{
|
|
229
349
|
FleetInitialised: "FleetInitialised";
|
|
230
350
|
ShipCommissioned: "ShipCommissioned";
|
|
351
|
+
OwnerSet: "OwnerSet";
|
|
352
|
+
OwnerChanged: "OwnerChanged";
|
|
231
353
|
ShipClaimed: "ShipClaimed";
|
|
232
354
|
LeaseRevoked: "LeaseRevoked";
|
|
233
355
|
CredentialRevoked: "CredentialRevoked";
|
|
@@ -248,6 +370,7 @@ export declare const shipTimelineOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
248
370
|
DeliveryDismissed: "DeliveryDismissed";
|
|
249
371
|
ShipRenamed: "ShipRenamed";
|
|
250
372
|
ShipReported: "ShipReported";
|
|
373
|
+
StatementSet: "StatementSet";
|
|
251
374
|
TurnReported: "TurnReported";
|
|
252
375
|
SignInTicketIssued: "SignInTicketIssued";
|
|
253
376
|
FleetLimitsChanged: "FleetLimitsChanged";
|
|
@@ -271,6 +394,9 @@ export declare const shipTimelineOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
271
394
|
NetworkRulesDeclared: "NetworkRulesDeclared";
|
|
272
395
|
NetworkPluginRegistered: "NetworkPluginRegistered";
|
|
273
396
|
NetworkPluginUnregistered: "NetworkPluginUnregistered";
|
|
397
|
+
BuiltInRuleChanged: "BuiltInRuleChanged";
|
|
398
|
+
ScopesDeclared: "ScopesDeclared";
|
|
399
|
+
ScopesChanged: "ScopesChanged";
|
|
274
400
|
}>;
|
|
275
401
|
occurredAt: z.ZodISODateTime;
|
|
276
402
|
actor: z.ZodNullable<z.ZodObject<{
|
package/dist/schemas/history.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { deliveryStateSchema, eventTypeSchema, locationKindSchema } from '../fleet/index.js';
|
|
3
3
|
import { idSchema } from '../ids/index.js';
|
|
4
|
-
import { listedShipSchema } from './fleet.js';
|
|
4
|
+
import { listedShipSchema, shipOutsideReadReachSchema } from './fleet.js';
|
|
5
5
|
import { crewRequestSchema, crewStatusSchema } from './crew-request.js';
|
|
6
6
|
import { reportSchema } from './report.js';
|
|
7
7
|
import { turnStateSchema } from './turn.js';
|
|
@@ -37,7 +37,11 @@ export const shipDetailOutputSchema = listedShipSchema.extend({
|
|
|
37
37
|
inFlightDeliveries: z.int().min(0),
|
|
38
38
|
/** Its direct deliveries pending or in flight: what a retire abandons. */
|
|
39
39
|
openDeliveries: z.int().min(0),
|
|
40
|
+
/** Its owner by id and name; null for argo and the viewer (decision 0045). */
|
|
41
|
+
owner: partySchema.nullable(),
|
|
40
42
|
});
|
|
43
|
+
/** Output of `fleet.ship`: the ship whole, or outside the caller's read reach its name, type and status only (decision 0034). */
|
|
44
|
+
export const shipOutputSchema = z.union([shipDetailOutputSchema, shipOutsideReadReachSchema]);
|
|
41
45
|
/** One event on a ship's timeline: its number, type and time, its parties and its small flat details. */
|
|
42
46
|
export const timelineEntrySchema = z.object({
|
|
43
47
|
seq: z.number().int().positive(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/schemas/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/schemas/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C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Q,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC;KAC/H,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from './operator-inbox.js';
|
|
|
18
18
|
export * from './ping.js';
|
|
19
19
|
export * from './question.js';
|
|
20
20
|
export * from './report.js';
|
|
21
|
+
export * from './scopes.js';
|
|
21
22
|
export * from './turn.js';
|
|
22
23
|
export * from './ship.js';
|
|
24
|
+
export * from './statement.js';
|
|
23
25
|
export * from './system.js';
|
package/dist/schemas/index.js
CHANGED
|
@@ -18,7 +18,9 @@ export * from './operator-inbox.js';
|
|
|
18
18
|
export * from './ping.js';
|
|
19
19
|
export * from './question.js';
|
|
20
20
|
export * from './report.js';
|
|
21
|
+
export * from './scopes.js';
|
|
21
22
|
export * from './turn.js';
|
|
22
23
|
export * from './ship.js';
|
|
24
|
+
export * from './statement.js';
|
|
23
25
|
export * from './system.js';
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -57,6 +57,7 @@ export declare const sendInputSchema: z.ZodObject<{
|
|
|
57
57
|
model: z.ZodOptional<z.ZodString>;
|
|
58
58
|
idempotencyKey: z.ZodString;
|
|
59
59
|
inReplyTo: z.ZodOptional<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
|
|
60
|
+
isForced: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
}, z.core.$strip>;
|
|
61
62
|
export type SendInput = z.infer<typeof sendInputSchema>;
|
|
62
63
|
/** Output of `ship.send`: the message's id, the original one when the idempotency key was used before. */
|
package/dist/schemas/message.js
CHANGED
|
@@ -69,6 +69,8 @@ export const sendInputSchema = z.object({
|
|
|
69
69
|
idempotencyKey: idempotencyKeySchema,
|
|
70
70
|
/** The id of the message, in the same fleet, that this one replies to. */
|
|
71
71
|
inReplyTo: idSchema('message').optional(),
|
|
72
|
+
/** A forced send: act now. Its delivery comes first; it needs messages:force (decision 0040). */
|
|
73
|
+
isForced: z.boolean().optional(),
|
|
72
74
|
});
|
|
73
75
|
/** Output of `ship.send`: the message's id, the original one when the idempotency key was used before. */
|
|
74
76
|
export const sendOutputSchema = z.object({ messageId: idSchema('message') });
|