@aeolus-fleet/common 0.30.0 → 0.31.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.
@@ -0,0 +1,263 @@
1
+ import { z } from 'zod';
2
+ /** The most characters a meeting's title holds: a short name a person reads when auditing later. */
3
+ export declare const MEETING_TITLE_MAX_LENGTH = 200;
4
+ /** An invitee: one ship, by id or by name, never a type. */
5
+ export declare const inviteeSchema: z.ZodUnion<readonly [z.ZodObject<{
6
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
7
+ }, z.core.$strict>, z.ZodObject<{
8
+ name: z.ZodString;
9
+ }, z.core.$strict>]>;
10
+ /**
11
+ * Input of `ship.openMeeting` (meetings:open): the invitees by ship and by a
12
+ * label selection (value ids, exact and AND), folded into one list with the
13
+ * opener, which owns and moderates it; the opener's idempotency key; and the
14
+ * model its session runs, which the added notices state; and an optional
15
+ * short title.
16
+ */
17
+ export declare const openMeetingInputSchema: z.ZodObject<{
18
+ ships: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
19
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ name: z.ZodString;
22
+ }, z.core.$strict>]>>>;
23
+ valueIds: z.ZodOptional<z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>>;
24
+ idempotencyKey: z.ZodString;
25
+ model: z.ZodOptional<z.ZodString>;
26
+ title: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ export type OpenMeetingInput = z.infer<typeof openMeetingInputSchema>;
29
+ /** Output of `ship.openMeeting`: the meeting's id, the original one when the key was used before. */
30
+ export declare const openMeetingOutputSchema: z.ZodObject<{
31
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
32
+ }, z.core.$strip>;
33
+ /** Input of `ship.meeting`: the meeting, and a page of its contributions, newest first. */
34
+ export declare const meetingInputSchema: z.ZodObject<{
35
+ cursor: z.ZodOptional<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
36
+ limit: z.ZodOptional<z.ZodInt>;
37
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
38
+ }, z.core.$strip>;
39
+ export type MeetingInput = z.infer<typeof meetingInputSchema>;
40
+ /**
41
+ * How the mic passes when it is free (M9): the moderator gives it to whom it
42
+ * likes, or it goes to the oldest request, first in line.
43
+ */
44
+ export declare const MIC_PATTERNS: readonly ["moderator", "fifo"];
45
+ export declare const micPatternSchema: z.ZodEnum<{
46
+ moderator: "moderator";
47
+ fifo: "fifo";
48
+ }>;
49
+ export type MicPattern = z.infer<typeof micPatternSchema>;
50
+ /**
51
+ * Input of a call on a meeting alone: `ship.requestMic`, `ship.withdrawMicRequest`,
52
+ * `ship.releaseMic`, `ship.takeMic`, `ship.leaveMeeting`, `ship.rejoinMeeting`
53
+ * and `ship.endMeeting`.
54
+ */
55
+ export declare const meetingIdInputSchema: z.ZodObject<{
56
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
57
+ }, z.core.$strip>;
58
+ /**
59
+ * Input of a call on a meeting and one of its ships: `ship.giveMic` (the
60
+ * moderator), `ship.revokeFromMeeting`, `ship.transferMeeting` and
61
+ * `ship.nameModerator` (the owner).
62
+ */
63
+ export declare const meetingShipInputSchema: z.ZodObject<{
64
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
65
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
66
+ }, z.core.$strip>;
67
+ /**
68
+ * Input of `ship.addToMeeting` (the owner): more invitees, by ship and by a
69
+ * label selection, as an open names them, and the model the owner's session
70
+ * runs, which the added notices state.
71
+ */
72
+ export declare const addToMeetingInputSchema: z.ZodObject<{
73
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
74
+ ships: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
75
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ name: z.ZodString;
78
+ }, z.core.$strict>]>>>;
79
+ valueIds: z.ZodOptional<z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>>;
80
+ model: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ export type AddToMeetingInput = z.infer<typeof addToMeetingInputSchema>;
83
+ /** Input of `ship.setMicPattern` (the moderator): the meeting and how its mic passes from now. */
84
+ export declare const setMicPatternInputSchema: z.ZodObject<{
85
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
86
+ pattern: z.ZodEnum<{
87
+ moderator: "moderator";
88
+ fifo: "fifo";
89
+ }>;
90
+ }, z.core.$strip>;
91
+ /** Output of every mic call and every change of a meeting's life: nothing, once the change and its notices are stored. */
92
+ export declare const meetingChangedOutputSchema: z.ZodObject<{}, z.core.$strip>;
93
+ /** The mic as the meeting read shows it: who holds it, null while free; its pattern; and the requests, oldest first. */
94
+ export declare const meetingMicReadSchema: z.ZodObject<{
95
+ holder: z.ZodNullable<z.ZodObject<{
96
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
97
+ name: z.ZodString;
98
+ }, z.core.$strip>>;
99
+ pattern: z.ZodEnum<{
100
+ moderator: "moderator";
101
+ fifo: "fifo";
102
+ }>;
103
+ requests: z.ZodArray<z.ZodObject<{
104
+ ship: z.ZodObject<{
105
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
106
+ name: z.ZodString;
107
+ }, z.core.$strip>;
108
+ requestedAt: z.ZodISODateTime;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>;
111
+ /** Whether a participant is in the meeting now, left it keeping its right to rejoin, or was revoked by the owner (decision 0061, M13). */
112
+ export declare const PARTICIPANT_STATES: readonly ["present", "left", "revoked"];
113
+ export declare const participantStateSchema: z.ZodEnum<{
114
+ present: "present";
115
+ left: "left";
116
+ revoked: "revoked";
117
+ }>;
118
+ export type ParticipantState = z.infer<typeof participantStateSchema>;
119
+ /**
120
+ * A participant as the meeting read shows it: who it is, whether it is crewed
121
+ * now (decision 0061, M14), and whether it is in the meeting now.
122
+ */
123
+ export declare const meetingParticipantSchema: z.ZodObject<{
124
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
125
+ name: z.ZodString;
126
+ kind: z.ZodEnum<{
127
+ operator: "operator";
128
+ agent: "agent";
129
+ viewer: "viewer";
130
+ person: "person";
131
+ app: "app";
132
+ plugin: "plugin";
133
+ }>;
134
+ status: z.ZodEnum<{
135
+ awaitingCrew: "awaitingCrew";
136
+ crewed: "crewed";
137
+ retired: "retired";
138
+ }>;
139
+ state: z.ZodEnum<{
140
+ present: "present";
141
+ left: "left";
142
+ revoked: "revoked";
143
+ }>;
144
+ }, z.core.$strip>;
145
+ /** One contribution as the meeting read shows it. */
146
+ export declare const contributionSchema: z.ZodObject<{
147
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
148
+ sender: z.ZodObject<{
149
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
150
+ name: z.ZodString;
151
+ }, z.core.$strip>;
152
+ payload: z.ZodString;
153
+ contentType: z.ZodString;
154
+ model: z.ZodNullable<z.ZodString>;
155
+ sentAt: z.ZodISODateTime;
156
+ }, z.core.$strip>;
157
+ /**
158
+ * Output of `ship.meeting`: the meeting, its title (null without one), its owner and moderator, when it
159
+ * opened and ended (null while open), its participants, its mic, and a page of its
160
+ * contributions, newest first.
161
+ */
162
+ export declare const meetingOutputSchema: z.ZodObject<{
163
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
164
+ title: z.ZodNullable<z.ZodString>;
165
+ owner: z.ZodObject<{
166
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
167
+ name: z.ZodString;
168
+ }, z.core.$strip>;
169
+ moderator: z.ZodObject<{
170
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
171
+ name: z.ZodString;
172
+ }, z.core.$strip>;
173
+ openedAt: z.ZodISODateTime;
174
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
175
+ participants: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
177
+ name: z.ZodString;
178
+ kind: z.ZodEnum<{
179
+ operator: "operator";
180
+ agent: "agent";
181
+ viewer: "viewer";
182
+ person: "person";
183
+ app: "app";
184
+ plugin: "plugin";
185
+ }>;
186
+ status: z.ZodEnum<{
187
+ awaitingCrew: "awaitingCrew";
188
+ crewed: "crewed";
189
+ retired: "retired";
190
+ }>;
191
+ state: z.ZodEnum<{
192
+ present: "present";
193
+ left: "left";
194
+ revoked: "revoked";
195
+ }>;
196
+ }, z.core.$strip>>;
197
+ mic: z.ZodObject<{
198
+ holder: z.ZodNullable<z.ZodObject<{
199
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
200
+ name: z.ZodString;
201
+ }, z.core.$strip>>;
202
+ pattern: z.ZodEnum<{
203
+ moderator: "moderator";
204
+ fifo: "fifo";
205
+ }>;
206
+ requests: z.ZodArray<z.ZodObject<{
207
+ ship: z.ZodObject<{
208
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
209
+ name: z.ZodString;
210
+ }, z.core.$strip>;
211
+ requestedAt: z.ZodISODateTime;
212
+ }, z.core.$strip>>;
213
+ }, z.core.$strip>;
214
+ contributions: z.ZodObject<{
215
+ items: z.ZodArray<z.ZodObject<{
216
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
217
+ sender: z.ZodObject<{
218
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
219
+ name: z.ZodString;
220
+ }, z.core.$strip>;
221
+ payload: z.ZodString;
222
+ contentType: z.ZodString;
223
+ model: z.ZodNullable<z.ZodString>;
224
+ sentAt: z.ZodISODateTime;
225
+ }, z.core.$strip>>;
226
+ nextCursor: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
227
+ }, z.core.$strip>;
228
+ }, z.core.$strip>;
229
+ export type MeetingOutput = z.infer<typeof meetingOutputSchema>;
230
+ /** The content type of the notice the owner sends each ship it added to a meeting. */
231
+ export declare const MEETING_ADDED_CONTENT_TYPE = "application/vnd.aeolus.meeting.added+json";
232
+ /** The payload of the added notice: the meeting, its title (null without one), its owner, its moderator and its participants, by id and name. */
233
+ export declare const meetingAddedSchema: z.ZodObject<{
234
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
235
+ title: z.ZodNullable<z.ZodString>;
236
+ owner: z.ZodObject<{
237
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
238
+ name: z.ZodString;
239
+ }, z.core.$strip>;
240
+ moderator: z.ZodObject<{
241
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
242
+ name: z.ZodString;
243
+ }, z.core.$strip>;
244
+ participants: z.ZodArray<z.ZodObject<{
245
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
246
+ name: z.ZodString;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>;
249
+ export type MeetingAdded = z.infer<typeof meetingAddedSchema>;
250
+ /** The content type of the notice the moderator sends the ship that now holds the mic. */
251
+ export declare const MEETING_MIC_CONTENT_TYPE = "application/vnd.aeolus.meeting.mic+json";
252
+ /** The payload of the mic notice: the meeting whose mic the ship now holds. */
253
+ export declare const meetingMicSchema: z.ZodObject<{
254
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
255
+ }, z.core.$strip>;
256
+ export type MeetingMic = z.infer<typeof meetingMicSchema>;
257
+ /** The content type of the notice the ship that ended a meeting sends every other participant. */
258
+ export declare const MEETING_ENDED_CONTENT_TYPE = "application/vnd.aeolus.meeting.ended+json";
259
+ /** The payload of the ended notice: the meeting that ended. */
260
+ export declare const meetingEndedSchema: z.ZodObject<{
261
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
262
+ }, z.core.$strip>;
263
+ export type MeetingEnded = z.infer<typeof meetingEndedSchema>;
@@ -0,0 +1,129 @@
1
+ import { z } from 'zod';
2
+ import { shipKindSchema, shipStatusSchema } from '../fleet/index.js';
3
+ import { idSchema } from '../ids/index.js';
4
+ import { shipHandleSchema } from './fleet.js';
5
+ import { partySchema } from './history.js';
6
+ import { idempotencyKeySchema } from './idempotency-key.js';
7
+ import { modelSchema } from './message.js';
8
+ import { pageInputOf, pageOutputOf } from './page.js';
9
+ /**
10
+ * Inputs and outputs of meetings (decision 0061): opening one
11
+ * (`ship.openMeeting`), reading one (`ship.meeting`), the mic calls, and the
12
+ * notices that tell a ship it was added or now holds the mic. A contribution is `ship.send` with the meeting
13
+ * selector.
14
+ */
15
+ /** ISO 8601 in UTC. */
16
+ const isoTime = z.iso.datetime();
17
+ /** The most characters a meeting's title holds: a short name a person reads when auditing later. */
18
+ export const MEETING_TITLE_MAX_LENGTH = 200;
19
+ /** An invitee: one ship, by id or by name, never a type. */
20
+ export const inviteeSchema = z.union([z.strictObject({ shipId: idSchema('ship') }), z.strictObject({ name: shipHandleSchema })]);
21
+ /**
22
+ * Input of `ship.openMeeting` (meetings:open): the invitees by ship and by a
23
+ * label selection (value ids, exact and AND), folded into one list with the
24
+ * opener, which owns and moderates it; the opener's idempotency key; and the
25
+ * model its session runs, which the added notices state; and an optional
26
+ * short title.
27
+ */
28
+ export const openMeetingInputSchema = z.object({
29
+ ships: z.array(inviteeSchema).optional(),
30
+ valueIds: z.array(idSchema('labelValue')).optional(),
31
+ idempotencyKey: idempotencyKeySchema,
32
+ model: modelSchema.optional(),
33
+ title: z.string().trim().max(MEETING_TITLE_MAX_LENGTH, `A meeting title is at most ${String(MEETING_TITLE_MAX_LENGTH)} characters`).optional(),
34
+ });
35
+ /** Output of `ship.openMeeting`: the meeting's id, the original one when the key was used before. */
36
+ export const openMeetingOutputSchema = z.object({ meetingId: idSchema('meeting') });
37
+ /** Input of `ship.meeting`: the meeting, and a page of its contributions, newest first. */
38
+ export const meetingInputSchema = pageInputOf(idSchema('message')).extend({ meetingId: idSchema('meeting') });
39
+ /**
40
+ * How the mic passes when it is free (M9): the moderator gives it to whom it
41
+ * likes, or it goes to the oldest request, first in line.
42
+ */
43
+ export const MIC_PATTERNS = ['moderator', 'fifo'];
44
+ export const micPatternSchema = z.enum(MIC_PATTERNS);
45
+ /**
46
+ * Input of a call on a meeting alone: `ship.requestMic`, `ship.withdrawMicRequest`,
47
+ * `ship.releaseMic`, `ship.takeMic`, `ship.leaveMeeting`, `ship.rejoinMeeting`
48
+ * and `ship.endMeeting`.
49
+ */
50
+ export const meetingIdInputSchema = z.object({ meetingId: idSchema('meeting') });
51
+ /**
52
+ * Input of a call on a meeting and one of its ships: `ship.giveMic` (the
53
+ * moderator), `ship.revokeFromMeeting`, `ship.transferMeeting` and
54
+ * `ship.nameModerator` (the owner).
55
+ */
56
+ export const meetingShipInputSchema = z.object({ meetingId: idSchema('meeting'), shipId: idSchema('ship') });
57
+ /**
58
+ * Input of `ship.addToMeeting` (the owner): more invitees, by ship and by a
59
+ * label selection, as an open names them, and the model the owner's session
60
+ * runs, which the added notices state.
61
+ */
62
+ export const addToMeetingInputSchema = z.object({
63
+ meetingId: idSchema('meeting'),
64
+ ships: z.array(inviteeSchema).optional(),
65
+ valueIds: z.array(idSchema('labelValue')).optional(),
66
+ model: modelSchema.optional(),
67
+ });
68
+ /** Input of `ship.setMicPattern` (the moderator): the meeting and how its mic passes from now. */
69
+ export const setMicPatternInputSchema = z.object({ meetingId: idSchema('meeting'), pattern: micPatternSchema });
70
+ /** Output of every mic call and every change of a meeting's life: nothing, once the change and its notices are stored. */
71
+ export const meetingChangedOutputSchema = z.object({});
72
+ /** The mic as the meeting read shows it: who holds it, null while free; its pattern; and the requests, oldest first. */
73
+ export const meetingMicReadSchema = z.object({
74
+ holder: partySchema.nullable(),
75
+ pattern: micPatternSchema,
76
+ requests: z.array(z.object({ ship: partySchema, requestedAt: isoTime })),
77
+ });
78
+ /** Whether a participant is in the meeting now, left it keeping its right to rejoin, or was revoked by the owner (decision 0061, M13). */
79
+ export const PARTICIPANT_STATES = ['present', 'left', 'revoked'];
80
+ export const participantStateSchema = z.enum(PARTICIPANT_STATES);
81
+ /**
82
+ * A participant as the meeting read shows it: who it is, whether it is crewed
83
+ * now (decision 0061, M14), and whether it is in the meeting now.
84
+ */
85
+ export const meetingParticipantSchema = partySchema.extend({ kind: shipKindSchema, status: shipStatusSchema, state: participantStateSchema });
86
+ /** One contribution as the meeting read shows it. */
87
+ export const contributionSchema = z.object({
88
+ messageId: idSchema('message'),
89
+ sender: partySchema,
90
+ payload: z.string(),
91
+ contentType: z.string(),
92
+ model: z.string().nullable(),
93
+ sentAt: isoTime,
94
+ });
95
+ /**
96
+ * Output of `ship.meeting`: the meeting, its title (null without one), its owner and moderator, when it
97
+ * opened and ended (null while open), its participants, its mic, and a page of its
98
+ * contributions, newest first.
99
+ */
100
+ export const meetingOutputSchema = z.object({
101
+ meetingId: idSchema('meeting'),
102
+ title: z.string().nullable(),
103
+ owner: partySchema,
104
+ moderator: partySchema,
105
+ openedAt: isoTime,
106
+ endedAt: isoTime.nullable(),
107
+ participants: z.array(meetingParticipantSchema),
108
+ mic: meetingMicReadSchema,
109
+ contributions: pageOutputOf(contributionSchema, idSchema('message')),
110
+ });
111
+ /** The content type of the notice the owner sends each ship it added to a meeting. */
112
+ export const MEETING_ADDED_CONTENT_TYPE = 'application/vnd.aeolus.meeting.added+json';
113
+ /** The payload of the added notice: the meeting, its title (null without one), its owner, its moderator and its participants, by id and name. */
114
+ export const meetingAddedSchema = z.object({
115
+ meetingId: idSchema('meeting'),
116
+ title: z.string().nullable(),
117
+ owner: partySchema,
118
+ moderator: partySchema,
119
+ participants: z.array(partySchema),
120
+ });
121
+ /** The content type of the notice the moderator sends the ship that now holds the mic. */
122
+ export const MEETING_MIC_CONTENT_TYPE = 'application/vnd.aeolus.meeting.mic+json';
123
+ /** The payload of the mic notice: the meeting whose mic the ship now holds. */
124
+ export const meetingMicSchema = z.object({ meetingId: idSchema('meeting') });
125
+ /** The content type of the notice the ship that ended a meeting sends every other participant. */
126
+ export const MEETING_ENDED_CONTENT_TYPE = 'application/vnd.aeolus.meeting.ended+json';
127
+ /** The payload of the ended notice: the meeting that ended. */
128
+ export const meetingEndedSchema = z.object({ meetingId: idSchema('meeting') });
129
+ //# sourceMappingURL=meeting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting.js","sourceRoot":"","sources":["../../src/schemas/meeting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA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AE,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC"}
@@ -27,7 +27,8 @@ export declare const MODEL_MAX_LENGTH = 100;
27
27
  export declare const modelSchema: z.ZodString;
28
28
  /**
29
29
  * Who a message is for (docs/blueprint.md, "Selector"): one ship, by id or by
30
- * name, or any ship of a type. A name is resolved to the ship's id at send time.
30
+ * name, any ship of a type, or every other participant of a meeting (decision
31
+ * 0061). A name is resolved to the ship's id at send time.
31
32
  */
32
33
  export declare const selectorSchema: z.ZodUnion<readonly [z.ZodObject<{
33
34
  kind: z.ZodLiteral<"ship">;
@@ -38,6 +39,9 @@ export declare const selectorSchema: z.ZodUnion<readonly [z.ZodObject<{
38
39
  }, z.core.$strict>, z.ZodObject<{
39
40
  kind: z.ZodLiteral<"type">;
40
41
  type: z.ZodString;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ kind: z.ZodLiteral<"meeting">;
44
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
41
45
  }, z.core.$strict>]>;
42
46
  export type SelectorInput = z.infer<typeof selectorSchema>;
43
47
  /** Input of `ship.send`. The sender is the calling ship, never named in the input. */
@@ -51,6 +55,9 @@ export declare const sendInputSchema: z.ZodObject<{
51
55
  }, z.core.$strict>, z.ZodObject<{
52
56
  kind: z.ZodLiteral<"type">;
53
57
  type: z.ZodString;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"meeting">;
60
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
54
61
  }, z.core.$strict>]>;
55
62
  payload: z.ZodString;
56
63
  contentType: z.ZodOptional<z.ZodString>;
@@ -49,12 +49,14 @@ export const modelSchema = z
49
49
  .regex(/^\S+$/, 'A model id has no spaces');
50
50
  /**
51
51
  * Who a message is for (docs/blueprint.md, "Selector"): one ship, by id or by
52
- * name, or any ship of a type. A name is resolved to the ship's id at send time.
52
+ * name, any ship of a type, or every other participant of a meeting (decision
53
+ * 0061). A name is resolved to the ship's id at send time.
53
54
  */
54
55
  export const selectorSchema = z.union([
55
56
  z.strictObject({ kind: z.literal('ship'), shipId: idSchema('ship') }),
56
57
  z.strictObject({ kind: z.literal('ship'), name: shipHandleSchema }),
57
58
  z.strictObject({ kind: z.literal('type'), type: shipHandleSchema }),
59
+ z.strictObject({ kind: z.literal('meeting'), meetingId: idSchema('meeting') }),
58
60
  ]);
59
61
  /** Input of `ship.send`. The sender is the calling ship, never named in the input. */
60
62
  export const sendInputSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/schemas/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEjD,6EAA6E;AAC7E,0EAA0E;AAC1E,yEAAyE;AACzE,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAC9C,MAAM,aAAa,GAAG,sFAAsF,CAAC;AAC7G,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,KAAK,MAAM,KAAK,IAAI,KAAK,MAAM,KAAK,OAAO,KAAK,IAAI,aAAa,QAAQ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z.ZodObject<{
38
+ kind: z.ZodLiteral<"meeting">;
39
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
37
40
  }, z.core.$strip>], "kind">;
38
41
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
39
42
  sentAt: z.ZodISODateTime;
@@ -84,6 +87,9 @@ export declare const needsAttentionOutputSchema: z.ZodObject<{
84
87
  }, z.core.$strip>, z.ZodObject<{
85
88
  kind: z.ZodLiteral<"type">;
86
89
  type: z.ZodString;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ kind: z.ZodLiteral<"meeting">;
92
+ meetingId: z.ZodType<`mtg_${string}`, unknown, z.core.$ZodTypeInternals<`mtg_${string}`, unknown>>;
87
93
  }, z.core.$strip>], "kind">;
88
94
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
89
95
  sentAt: z.ZodISODateTime;
@@ -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 viewer reading every ship,
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";
@@ -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 viewer reading every ship,
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. */