@fleetless/contracts 15.0.0 → 15.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -573,6 +573,24 @@ export declare const journalIntentV2Body: z.ZodDiscriminatedUnion<readonly [z.Zo
573
573
  manifest_id: z.ZodString;
574
574
  manifest_version_id: z.ZodString;
575
575
  manifest_hash: z.ZodString;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"waitlist.retention">;
578
+ ids: z.ZodObject<{
579
+ batch_id: z.ZodString;
580
+ cutoff_at: z.ZodISODateTime;
581
+ policy_revision: z.ZodNumber;
582
+ }, z.core.$strict>;
583
+ schema: z.ZodLiteral<"fleetless.deletion-intent.v2">;
584
+ environment: z.ZodString;
585
+ generation: z.ZodString;
586
+ sequence: z.ZodNumber;
587
+ operation_id: z.ZodString;
588
+ intent_at: z.ZodISODateTime;
589
+ previous_hash: z.ZodString;
590
+ signing_key_id: z.ZodString;
591
+ manifest_id: z.ZodString;
592
+ manifest_version_id: z.ZodString;
593
+ manifest_hash: z.ZodString;
576
594
  }, z.core.$strict>, z.ZodObject<{
577
595
  kind: z.ZodLiteral<"org_note_text.remove">;
578
596
  ids: z.ZodObject<{
@@ -1461,6 +1479,26 @@ export declare const journalIntentV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
1461
1479
  manifest_hash: z.ZodString;
1462
1480
  record_hash: z.ZodString;
1463
1481
  signature: z.ZodString;
1482
+ }, z.core.$strict> | z.ZodObject<{
1483
+ kind: z.ZodLiteral<"waitlist.retention">;
1484
+ ids: z.ZodObject<{
1485
+ batch_id: z.ZodString;
1486
+ cutoff_at: z.ZodISODateTime;
1487
+ policy_revision: z.ZodNumber;
1488
+ }, z.core.$strict>;
1489
+ schema: z.ZodLiteral<"fleetless.deletion-intent.v2">;
1490
+ environment: z.ZodString;
1491
+ generation: z.ZodString;
1492
+ sequence: z.ZodNumber;
1493
+ operation_id: z.ZodString;
1494
+ intent_at: z.ZodISODateTime;
1495
+ previous_hash: z.ZodString;
1496
+ signing_key_id: z.ZodString;
1497
+ manifest_id: z.ZodString;
1498
+ manifest_version_id: z.ZodString;
1499
+ manifest_hash: z.ZodString;
1500
+ record_hash: z.ZodString;
1501
+ signature: z.ZodString;
1464
1502
  }, z.core.$strict> | z.ZodObject<{
1465
1503
  kind: z.ZodLiteral<"org_note_text.remove">;
1466
1504
  ids: z.ZodObject<{
@@ -75,6 +75,8 @@ const branches = [
75
75
  captured('ops_event.retention', z.strictObject({ ...org, ...batch })),
76
76
  captured('ops_global_event.retention', z.strictObject(batch)),
77
77
  captured('operator_audit.retention', z.strictObject(batch)),
78
+ // The waiting list has no organization: entries are deleted by their own retention period.
79
+ captured('waitlist.retention', z.strictObject(batch)),
78
80
  plain('org_note_text.remove', z.strictObject({ ...org, old_note_generation: uuid })),
79
81
  plain('org_note_text.replace', z.strictObject({ ...org, old_note_generation: uuid })),
80
82
  captured('oidc_interaction.expire', z.strictObject({ ...org, ...batch })),
@@ -17,6 +17,8 @@ export declare const journalManifestScope: z.ZodUnion<readonly [z.ZodObject<{
17
17
  kind: z.ZodLiteral<"global_ops_event">;
18
18
  }, z.core.$strict>, z.ZodObject<{
19
19
  kind: z.ZodLiteral<"operator_audit">;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ kind: z.ZodLiteral<"waitlist">;
20
22
  }, z.core.$strict>, z.ZodObject<{
21
23
  kind: z.ZodLiteral<"subject">;
22
24
  subject_kind: z.ZodEnum<{
@@ -30,12 +32,18 @@ export declare const journalManifestRow: z.ZodUnion<readonly [z.ZodObject<{
30
32
  type: z.ZodLiteral<"uuid_row">;
31
33
  table: z.ZodEnum<{
32
34
  assets: "assets";
35
+ waitlist: "waitlist";
33
36
  audit_events: "audit_events";
34
37
  job_runs: "job_runs";
35
38
  oidc_interactions: "oidc_interactions";
36
39
  organization_exports: "organization_exports";
37
40
  ops_notification_jobs: "ops_notification_jobs";
38
41
  console_oauth_codes: "console_oauth_codes";
42
+ waitlist_invitations: "waitlist_invitations";
43
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
44
+ waitlist_consents: "waitlist_consents";
45
+ operator_effect_outbox: "operator_effect_outbox";
46
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
39
47
  }>;
40
48
  id: z.ZodString;
41
49
  row_generation: z.ZodString;
@@ -231,6 +239,7 @@ export declare const journalManifestBatch: z.ZodUnion<readonly [z.ZodObject<{
231
239
  "ops_event.retention": "ops_event.retention";
232
240
  "ops_global_event.retention": "ops_global_event.retention";
233
241
  "operator_audit.retention": "operator_audit.retention";
242
+ "waitlist.retention": "waitlist.retention";
234
243
  "oidc_interaction.expire": "oidc_interaction.expire";
235
244
  "mcp_interaction.expire": "mcp_interaction.expire";
236
245
  "mcp_central_interaction.expire": "mcp_central_interaction.expire";
@@ -245,12 +254,18 @@ export declare const journalManifestBatch: z.ZodUnion<readonly [z.ZodObject<{
245
254
  type: z.ZodLiteral<"uuid_row">;
246
255
  table: z.ZodEnum<{
247
256
  assets: "assets";
257
+ waitlist: "waitlist";
248
258
  audit_events: "audit_events";
249
259
  job_runs: "job_runs";
250
260
  oidc_interactions: "oidc_interactions";
251
261
  organization_exports: "organization_exports";
252
262
  ops_notification_jobs: "ops_notification_jobs";
253
263
  console_oauth_codes: "console_oauth_codes";
264
+ waitlist_invitations: "waitlist_invitations";
265
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
266
+ waitlist_consents: "waitlist_consents";
267
+ operator_effect_outbox: "operator_effect_outbox";
268
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
254
269
  }>;
255
270
  id: z.ZodString;
256
271
  row_generation: z.ZodString;
@@ -421,12 +436,18 @@ export declare const journalManifestBatch: z.ZodUnion<readonly [z.ZodObject<{
421
436
  type: z.ZodLiteral<"uuid_row">;
422
437
  table: z.ZodEnum<{
423
438
  assets: "assets";
439
+ waitlist: "waitlist";
424
440
  audit_events: "audit_events";
425
441
  job_runs: "job_runs";
426
442
  oidc_interactions: "oidc_interactions";
427
443
  organization_exports: "organization_exports";
428
444
  ops_notification_jobs: "ops_notification_jobs";
429
445
  console_oauth_codes: "console_oauth_codes";
446
+ waitlist_invitations: "waitlist_invitations";
447
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
448
+ waitlist_consents: "waitlist_consents";
449
+ operator_effect_outbox: "operator_effect_outbox";
450
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
430
451
  }>;
431
452
  id: z.ZodString;
432
453
  row_generation: z.ZodString;
@@ -615,6 +636,8 @@ export declare const journalDeletionManifest: z.ZodObject<{
615
636
  kind: z.ZodLiteral<"global_ops_event">;
616
637
  }, z.core.$strict>, z.ZodObject<{
617
638
  kind: z.ZodLiteral<"operator_audit">;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ kind: z.ZodLiteral<"waitlist">;
618
641
  }, z.core.$strict>, z.ZodObject<{
619
642
  kind: z.ZodLiteral<"subject">;
620
643
  subject_kind: z.ZodEnum<{
@@ -650,12 +673,18 @@ export declare const journalDeletionManifest: z.ZodObject<{
650
673
  type: z.ZodLiteral<"uuid_row">;
651
674
  table: z.ZodEnum<{
652
675
  assets: "assets";
676
+ waitlist: "waitlist";
653
677
  audit_events: "audit_events";
654
678
  job_runs: "job_runs";
655
679
  oidc_interactions: "oidc_interactions";
656
680
  organization_exports: "organization_exports";
657
681
  ops_notification_jobs: "ops_notification_jobs";
658
682
  console_oauth_codes: "console_oauth_codes";
683
+ waitlist_invitations: "waitlist_invitations";
684
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
685
+ waitlist_consents: "waitlist_consents";
686
+ operator_effect_outbox: "operator_effect_outbox";
687
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
659
688
  }>;
660
689
  id: z.ZodString;
661
690
  row_generation: z.ZodString;
@@ -826,6 +855,7 @@ export declare const journalDeletionManifest: z.ZodObject<{
826
855
  "ops_event.retention": "ops_event.retention";
827
856
  "ops_global_event.retention": "ops_global_event.retention";
828
857
  "operator_audit.retention": "operator_audit.retention";
858
+ "waitlist.retention": "waitlist.retention";
829
859
  "oidc_interaction.expire": "oidc_interaction.expire";
830
860
  "mcp_interaction.expire": "mcp_interaction.expire";
831
861
  "mcp_central_interaction.expire": "mcp_central_interaction.expire";
@@ -840,12 +870,18 @@ export declare const journalDeletionManifest: z.ZodObject<{
840
870
  type: z.ZodLiteral<"uuid_row">;
841
871
  table: z.ZodEnum<{
842
872
  assets: "assets";
873
+ waitlist: "waitlist";
843
874
  audit_events: "audit_events";
844
875
  job_runs: "job_runs";
845
876
  oidc_interactions: "oidc_interactions";
846
877
  organization_exports: "organization_exports";
847
878
  ops_notification_jobs: "ops_notification_jobs";
848
879
  console_oauth_codes: "console_oauth_codes";
880
+ waitlist_invitations: "waitlist_invitations";
881
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
882
+ waitlist_consents: "waitlist_consents";
883
+ operator_effect_outbox: "operator_effect_outbox";
884
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
849
885
  }>;
850
886
  id: z.ZodString;
851
887
  row_generation: z.ZodString;
@@ -1016,12 +1052,18 @@ export declare const journalDeletionManifest: z.ZodObject<{
1016
1052
  type: z.ZodLiteral<"uuid_row">;
1017
1053
  table: z.ZodEnum<{
1018
1054
  assets: "assets";
1055
+ waitlist: "waitlist";
1019
1056
  audit_events: "audit_events";
1020
1057
  job_runs: "job_runs";
1021
1058
  oidc_interactions: "oidc_interactions";
1022
1059
  organization_exports: "organization_exports";
1023
1060
  ops_notification_jobs: "ops_notification_jobs";
1024
1061
  console_oauth_codes: "console_oauth_codes";
1062
+ waitlist_invitations: "waitlist_invitations";
1063
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
1064
+ waitlist_consents: "waitlist_consents";
1065
+ operator_effect_outbox: "operator_effect_outbox";
1066
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
1025
1067
  }>;
1026
1068
  id: z.ZodString;
1027
1069
  row_generation: z.ZodString;
@@ -1222,6 +1264,8 @@ export declare const journalManifestBinding: z.ZodObject<{
1222
1264
  kind: z.ZodLiteral<"global_ops_event">;
1223
1265
  }, z.core.$strict>, z.ZodObject<{
1224
1266
  kind: z.ZodLiteral<"operator_audit">;
1267
+ }, z.core.$strict>, z.ZodObject<{
1268
+ kind: z.ZodLiteral<"waitlist">;
1225
1269
  }, z.core.$strict>, z.ZodObject<{
1226
1270
  kind: z.ZodLiteral<"subject">;
1227
1271
  subject_kind: z.ZodEnum<{
@@ -1257,12 +1301,18 @@ export declare const journalManifestBinding: z.ZodObject<{
1257
1301
  type: z.ZodLiteral<"uuid_row">;
1258
1302
  table: z.ZodEnum<{
1259
1303
  assets: "assets";
1304
+ waitlist: "waitlist";
1260
1305
  audit_events: "audit_events";
1261
1306
  job_runs: "job_runs";
1262
1307
  oidc_interactions: "oidc_interactions";
1263
1308
  organization_exports: "organization_exports";
1264
1309
  ops_notification_jobs: "ops_notification_jobs";
1265
1310
  console_oauth_codes: "console_oauth_codes";
1311
+ waitlist_invitations: "waitlist_invitations";
1312
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
1313
+ waitlist_consents: "waitlist_consents";
1314
+ operator_effect_outbox: "operator_effect_outbox";
1315
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
1266
1316
  }>;
1267
1317
  id: z.ZodString;
1268
1318
  row_generation: z.ZodString;
@@ -1433,6 +1483,7 @@ export declare const journalManifestBinding: z.ZodObject<{
1433
1483
  "ops_event.retention": "ops_event.retention";
1434
1484
  "ops_global_event.retention": "ops_global_event.retention";
1435
1485
  "operator_audit.retention": "operator_audit.retention";
1486
+ "waitlist.retention": "waitlist.retention";
1436
1487
  "oidc_interaction.expire": "oidc_interaction.expire";
1437
1488
  "mcp_interaction.expire": "mcp_interaction.expire";
1438
1489
  "mcp_central_interaction.expire": "mcp_central_interaction.expire";
@@ -1447,12 +1498,18 @@ export declare const journalManifestBinding: z.ZodObject<{
1447
1498
  type: z.ZodLiteral<"uuid_row">;
1448
1499
  table: z.ZodEnum<{
1449
1500
  assets: "assets";
1501
+ waitlist: "waitlist";
1450
1502
  audit_events: "audit_events";
1451
1503
  job_runs: "job_runs";
1452
1504
  oidc_interactions: "oidc_interactions";
1453
1505
  organization_exports: "organization_exports";
1454
1506
  ops_notification_jobs: "ops_notification_jobs";
1455
1507
  console_oauth_codes: "console_oauth_codes";
1508
+ waitlist_invitations: "waitlist_invitations";
1509
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
1510
+ waitlist_consents: "waitlist_consents";
1511
+ operator_effect_outbox: "operator_effect_outbox";
1512
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
1456
1513
  }>;
1457
1514
  id: z.ZodString;
1458
1515
  row_generation: z.ZodString;
@@ -1623,12 +1680,18 @@ export declare const journalManifestBinding: z.ZodObject<{
1623
1680
  type: z.ZodLiteral<"uuid_row">;
1624
1681
  table: z.ZodEnum<{
1625
1682
  assets: "assets";
1683
+ waitlist: "waitlist";
1626
1684
  audit_events: "audit_events";
1627
1685
  job_runs: "job_runs";
1628
1686
  oidc_interactions: "oidc_interactions";
1629
1687
  organization_exports: "organization_exports";
1630
1688
  ops_notification_jobs: "ops_notification_jobs";
1631
1689
  console_oauth_codes: "console_oauth_codes";
1690
+ waitlist_invitations: "waitlist_invitations";
1691
+ waitlist_invitation_proofs: "waitlist_invitation_proofs";
1692
+ waitlist_consents: "waitlist_consents";
1693
+ operator_effect_outbox: "operator_effect_outbox";
1694
+ operator_effect_mail_deliveries: "operator_effect_mail_deliveries";
1632
1695
  }>;
1633
1696
  id: z.ZodString;
1634
1697
  row_generation: z.ZodString;
@@ -17,11 +17,14 @@ export const journalManifestScope = z.union([
17
17
  z.strictObject({ kind: z.literal('console_oauth') }),
18
18
  z.strictObject({ kind: z.literal('global_ops_event') }),
19
19
  z.strictObject({ kind: z.literal('operator_audit') }),
20
+ z.strictObject({ kind: z.literal('waitlist') }),
20
21
  z.strictObject({ kind: z.literal('subject'), subject_kind: z.enum(['developer', 'app_user']), subject_id: uuid }),
21
22
  ]);
22
23
  const uuidRowTable = z.enum([
23
24
  'assets', 'audit_events', 'job_runs', 'oidc_interactions',
24
25
  'organization_exports', 'ops_notification_jobs', 'console_oauth_codes',
26
+ 'waitlist', 'waitlist_invitations', 'waitlist_invitation_proofs', 'waitlist_consents',
27
+ 'operator_effect_outbox', 'operator_effect_mail_deliveries',
25
28
  ]);
26
29
  const member = { membership_kind: membership };
27
30
  // Retention sweeps name an expired time range instead of every deleted row.
@@ -85,7 +88,7 @@ const sweepKinds = [
85
88
  'ops_event.retention', 'ops_global_event.retention', 'operator_audit.retention',
86
89
  'oidc_interaction.expire', 'mcp_interaction.expire', 'mcp_central_interaction.expire',
87
90
  'mcp_client.expire', 'mcp_central_client.expire', 'console_interaction.expire',
88
- 'console_code.expire',
91
+ 'console_code.expire', 'waitlist.retention',
89
92
  ];
90
93
  const explicitKinds = ['history.slug_delete', 'robot_assets.clear'];
91
94
  export const journalManifestBatch = z.union([
@@ -140,6 +143,11 @@ const backedBranches = journalIntentV2Body.options.filter((branch) => 'manifest_
140
143
  export const journalManifestIntentProjection = z.union(backedBranches.map((branch) => z.strictObject({
141
144
  operation_id: branch.shape.operation_id, kind: branch.shape.kind, ids: branch.shape.ids,
142
145
  })));
146
+ /** What a waiting-list retention batch may name: the entries, what hangs off them, and the mail rows that carry their addresses. */
147
+ const waitlistTables = new Set([
148
+ 'waitlist', 'waitlist_invitations', 'waitlist_invitation_proofs', 'waitlist_consents',
149
+ 'operator_effect_outbox', 'operator_effect_mail_deliveries',
150
+ ]);
143
151
  const nonOrganizationScope = {
144
152
  'mcp_central_client.revoke': 'central_mcp',
145
153
  'mcp_central_interaction.expire': 'central_mcp',
@@ -148,6 +156,7 @@ const nonOrganizationScope = {
148
156
  'console_code.expire': 'console_oauth',
149
157
  'ops_global_event.retention': 'global_ops_event',
150
158
  'operator_audit.retention': 'operator_audit',
159
+ 'waitlist.retention': 'waitlist',
151
160
  'auth_factor.remove': 'subject',
152
161
  };
153
162
  const rangeTableOfKind = {
@@ -224,6 +233,7 @@ export const journalManifestBinding = z.strictObject({
224
233
  console_oauth: (row) => row.type === 'console_interaction' || (row.type === 'uuid_row' && row.table === 'console_oauth_codes'),
225
234
  global_ops_event: (row) => row.type === 'global_ops_event' || (row.type === 'uuid_row' && row.table === 'ops_notification_jobs'),
226
235
  operator_audit: (row) => row.type === 'global_operator_audit' || row.type === 'org_operator_audit',
236
+ waitlist: (row) => row.type === 'uuid_row' && waitlistTables.has(row.table),
227
237
  };
228
238
  const allows = allowedRows[manifest.scope.kind];
229
239
  if (allows && !manifest.rows.every(allows))
package/dist/plans.d.ts CHANGED
@@ -196,7 +196,9 @@ export declare function yearlyEurCents(monthEurCents: number): number;
196
196
  */
197
197
  export declare function pricesFromEurMonth(eurMonthCents: number): PlanPrices;
198
198
  /**
199
- * The catalogue, exactly as the decision table (2026-09-30) states it.
199
+ * The catalogue: limits, prices and features as the decision table
200
+ * (2026-09-30) states them, except that the audit export is on every plan,
201
+ * as the developer docs (`plans-and-limits.md`) and the cloud have it.
200
202
  * Live video is in milliseconds, asset storage in decimal bytes per robot;
201
203
  * Enterprise's limits and features are `null` / `true` throughout because
202
204
  * they are set by contract, not read off this table.
package/dist/plans.js CHANGED
@@ -137,7 +137,9 @@ export function pricesFromEurMonth(eurMonthCents) {
137
137
  };
138
138
  }
139
139
  /**
140
- * The catalogue, exactly as the decision table (2026-09-30) states it.
140
+ * The catalogue: limits, prices and features as the decision table
141
+ * (2026-09-30) states them, except that the audit export is on every plan,
142
+ * as the developer docs (`plans-and-limits.md`) and the cloud have it.
141
143
  * Live video is in milliseconds, asset storage in decimal bytes per robot;
142
144
  * Enterprise's limits and features are `null` / `true` throughout because
143
145
  * they are set by contract, not read off this table.
@@ -164,7 +166,7 @@ export const PLANS = {
164
166
  require_two_factor: false,
165
167
  app_oidc: false,
166
168
  hosted_logo: false,
167
- audit_export: false,
169
+ audit_export: true,
168
170
  addons: false,
169
171
  },
170
172
  prices: pricesFromEurMonth(0),
@@ -191,7 +193,7 @@ export const PLANS = {
191
193
  require_two_factor: false,
192
194
  app_oidc: true,
193
195
  hosted_logo: true,
194
- audit_export: false,
196
+ audit_export: true,
195
197
  addons: false,
196
198
  },
197
199
  prices: pricesFromEurMonth(2900),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "15.0.0",
3
+ "version": "15.1.0-next.1",
4
4
  "description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dehne Robotik GmbH",