@fleetless/contracts 15.0.1 → 15.1.0-next.2

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/CHANGELOG.md CHANGED
@@ -9,6 +9,28 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ### Added
13
+
14
+ - **Deletion journal: the waiting list** (fleetless/fleetless#1082). Two
15
+ intent kinds under a new manifest scope `waitlist`, which has no
16
+ organization:
17
+ - `waitlist.retention`, a cutoff sweep with batch-only ids like
18
+ `ops_global_event.retention`. Its `cutoff_at` is the instant the entries'
19
+ event-based periods were evaluated; replay deletes exactly the frozen rows.
20
+ - `waitlist.withdrawal`, one entry deleted on the person's request, named
21
+ by `entry_id` (never the address), with no batch. Its manifest names
22
+ exactly that entry's row and only deliveries addressed for it.
23
+ - `journalManifestRow`: the tables `waitlist`, `waitlist_invitations`,
24
+ `waitlist_invitation_proofs` and `waitlist_consents` join the `uuid_row`
25
+ table list, and two new members name the shared operator mail tables only
26
+ for the waiting list: `waitlist_mail_effect` (`operator_effect_outbox`) and
27
+ `waitlist_mail_delivery` (`operator_effect_mail_deliveries`). Both carry
28
+ the effect's `source_action`, a closed enum of `waitlist_invite`,
29
+ `waitlist_reinvite`, `waitlist_decline` and `waitlist_confirm`, so no
30
+ manifest can name a billing or plan-change effect.
31
+ - `journalManifestBinding` refuses waiting-list rows and members outside the
32
+ `waitlist` scope, and object entries inside it.
33
+
12
34
  ## [15.0.1] — 2026-11-12
13
35
 
14
36
  ### Fixed
@@ -132,6 +132,19 @@
132
132
  ],
133
133
  "additionalProperties": false
134
134
  },
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "kind": {
139
+ "type": "string",
140
+ "const": "waitlist"
141
+ }
142
+ },
143
+ "required": [
144
+ "kind"
145
+ ],
146
+ "additionalProperties": false
147
+ },
135
148
  {
136
149
  "type": "object",
137
150
  "properties": {
@@ -295,7 +308,11 @@
295
308
  "oidc_interactions",
296
309
  "organization_exports",
297
310
  "ops_notification_jobs",
298
- "console_oauth_codes"
311
+ "console_oauth_codes",
312
+ "waitlist",
313
+ "waitlist_invitations",
314
+ "waitlist_invitation_proofs",
315
+ "waitlist_consents"
299
316
  ]
300
317
  },
301
318
  "id": {
@@ -844,6 +861,91 @@
844
861
  ],
845
862
  "additionalProperties": false
846
863
  },
864
+ {
865
+ "type": "object",
866
+ "properties": {
867
+ "membership_kind": {
868
+ "type": "string",
869
+ "enum": [
870
+ "affected",
871
+ "unaffected"
872
+ ]
873
+ },
874
+ "type": {
875
+ "type": "string",
876
+ "const": "waitlist_mail_effect"
877
+ },
878
+ "effect_id": {
879
+ "type": "string",
880
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
881
+ },
882
+ "source_action": {
883
+ "type": "string",
884
+ "enum": [
885
+ "waitlist_invite",
886
+ "waitlist_reinvite",
887
+ "waitlist_decline",
888
+ "waitlist_confirm"
889
+ ],
890
+ "description": "The source action the operator_effect_outbox row had when it was frozen; replay deletes the row only if it still has it."
891
+ }
892
+ },
893
+ "required": [
894
+ "membership_kind",
895
+ "type",
896
+ "effect_id",
897
+ "source_action"
898
+ ],
899
+ "additionalProperties": false
900
+ },
901
+ {
902
+ "type": "object",
903
+ "properties": {
904
+ "membership_kind": {
905
+ "type": "string",
906
+ "enum": [
907
+ "affected",
908
+ "unaffected"
909
+ ]
910
+ },
911
+ "type": {
912
+ "type": "string",
913
+ "const": "waitlist_mail_delivery"
914
+ },
915
+ "delivery_id": {
916
+ "type": "string",
917
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
918
+ },
919
+ "effect_id": {
920
+ "type": "string",
921
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
922
+ },
923
+ "entry_id": {
924
+ "type": "string",
925
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
926
+ "description": "The waiting-list entry the delivery was addressed for (its target); the entry itself may already be gone."
927
+ },
928
+ "source_action": {
929
+ "type": "string",
930
+ "enum": [
931
+ "waitlist_invite",
932
+ "waitlist_reinvite",
933
+ "waitlist_decline",
934
+ "waitlist_confirm"
935
+ ],
936
+ "description": "The source action of the delivery's effect when it was frozen; replay deletes the delivery only if its effect still has it."
937
+ }
938
+ },
939
+ "required": [
940
+ "membership_kind",
941
+ "type",
942
+ "delivery_id",
943
+ "effect_id",
944
+ "entry_id",
945
+ "source_action"
946
+ ],
947
+ "additionalProperties": false
948
+ },
847
949
  {
848
950
  "type": "object",
849
951
  "properties": {
@@ -945,7 +1047,8 @@
945
1047
  "mcp_client.expire",
946
1048
  "mcp_central_client.expire",
947
1049
  "console_interaction.expire",
948
- "console_code.expire"
1050
+ "console_code.expire",
1051
+ "waitlist.retention"
949
1052
  ]
950
1053
  },
951
1054
  "cutoff_at": {
@@ -986,7 +1089,11 @@
986
1089
  "oidc_interactions",
987
1090
  "organization_exports",
988
1091
  "ops_notification_jobs",
989
- "console_oauth_codes"
1092
+ "console_oauth_codes",
1093
+ "waitlist",
1094
+ "waitlist_invitations",
1095
+ "waitlist_invitation_proofs",
1096
+ "waitlist_consents"
990
1097
  ]
991
1098
  },
992
1099
  "id": {
@@ -1535,6 +1642,91 @@
1535
1642
  ],
1536
1643
  "additionalProperties": false
1537
1644
  },
1645
+ {
1646
+ "type": "object",
1647
+ "properties": {
1648
+ "membership_kind": {
1649
+ "type": "string",
1650
+ "enum": [
1651
+ "affected",
1652
+ "unaffected"
1653
+ ]
1654
+ },
1655
+ "type": {
1656
+ "type": "string",
1657
+ "const": "waitlist_mail_effect"
1658
+ },
1659
+ "effect_id": {
1660
+ "type": "string",
1661
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1662
+ },
1663
+ "source_action": {
1664
+ "type": "string",
1665
+ "enum": [
1666
+ "waitlist_invite",
1667
+ "waitlist_reinvite",
1668
+ "waitlist_decline",
1669
+ "waitlist_confirm"
1670
+ ],
1671
+ "description": "The source action the operator_effect_outbox row had when it was frozen; replay deletes the row only if it still has it."
1672
+ }
1673
+ },
1674
+ "required": [
1675
+ "membership_kind",
1676
+ "type",
1677
+ "effect_id",
1678
+ "source_action"
1679
+ ],
1680
+ "additionalProperties": false
1681
+ },
1682
+ {
1683
+ "type": "object",
1684
+ "properties": {
1685
+ "membership_kind": {
1686
+ "type": "string",
1687
+ "enum": [
1688
+ "affected",
1689
+ "unaffected"
1690
+ ]
1691
+ },
1692
+ "type": {
1693
+ "type": "string",
1694
+ "const": "waitlist_mail_delivery"
1695
+ },
1696
+ "delivery_id": {
1697
+ "type": "string",
1698
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1699
+ },
1700
+ "effect_id": {
1701
+ "type": "string",
1702
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
1703
+ },
1704
+ "entry_id": {
1705
+ "type": "string",
1706
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1707
+ "description": "The waiting-list entry the delivery was addressed for (its target); the entry itself may already be gone."
1708
+ },
1709
+ "source_action": {
1710
+ "type": "string",
1711
+ "enum": [
1712
+ "waitlist_invite",
1713
+ "waitlist_reinvite",
1714
+ "waitlist_decline",
1715
+ "waitlist_confirm"
1716
+ ],
1717
+ "description": "The source action of the delivery's effect when it was frozen; replay deletes the delivery only if its effect still has it."
1718
+ }
1719
+ },
1720
+ "required": [
1721
+ "membership_kind",
1722
+ "type",
1723
+ "delivery_id",
1724
+ "effect_id",
1725
+ "entry_id",
1726
+ "source_action"
1727
+ ],
1728
+ "additionalProperties": false
1729
+ },
1538
1730
  {
1539
1731
  "type": "object",
1540
1732
  "properties": {
@@ -1661,7 +1853,11 @@
1661
1853
  "oidc_interactions",
1662
1854
  "organization_exports",
1663
1855
  "ops_notification_jobs",
1664
- "console_oauth_codes"
1856
+ "console_oauth_codes",
1857
+ "waitlist",
1858
+ "waitlist_invitations",
1859
+ "waitlist_invitation_proofs",
1860
+ "waitlist_consents"
1665
1861
  ]
1666
1862
  },
1667
1863
  "id": {
@@ -2210,6 +2406,91 @@
2210
2406
  ],
2211
2407
  "additionalProperties": false
2212
2408
  },
2409
+ {
2410
+ "type": "object",
2411
+ "properties": {
2412
+ "membership_kind": {
2413
+ "type": "string",
2414
+ "enum": [
2415
+ "affected",
2416
+ "unaffected"
2417
+ ]
2418
+ },
2419
+ "type": {
2420
+ "type": "string",
2421
+ "const": "waitlist_mail_effect"
2422
+ },
2423
+ "effect_id": {
2424
+ "type": "string",
2425
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2426
+ },
2427
+ "source_action": {
2428
+ "type": "string",
2429
+ "enum": [
2430
+ "waitlist_invite",
2431
+ "waitlist_reinvite",
2432
+ "waitlist_decline",
2433
+ "waitlist_confirm"
2434
+ ],
2435
+ "description": "The source action the operator_effect_outbox row had when it was frozen; replay deletes the row only if it still has it."
2436
+ }
2437
+ },
2438
+ "required": [
2439
+ "membership_kind",
2440
+ "type",
2441
+ "effect_id",
2442
+ "source_action"
2443
+ ],
2444
+ "additionalProperties": false
2445
+ },
2446
+ {
2447
+ "type": "object",
2448
+ "properties": {
2449
+ "membership_kind": {
2450
+ "type": "string",
2451
+ "enum": [
2452
+ "affected",
2453
+ "unaffected"
2454
+ ]
2455
+ },
2456
+ "type": {
2457
+ "type": "string",
2458
+ "const": "waitlist_mail_delivery"
2459
+ },
2460
+ "delivery_id": {
2461
+ "type": "string",
2462
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2463
+ },
2464
+ "effect_id": {
2465
+ "type": "string",
2466
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
2467
+ },
2468
+ "entry_id": {
2469
+ "type": "string",
2470
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
2471
+ "description": "The waiting-list entry the delivery was addressed for (its target); the entry itself may already be gone."
2472
+ },
2473
+ "source_action": {
2474
+ "type": "string",
2475
+ "enum": [
2476
+ "waitlist_invite",
2477
+ "waitlist_reinvite",
2478
+ "waitlist_decline",
2479
+ "waitlist_confirm"
2480
+ ],
2481
+ "description": "The source action of the delivery's effect when it was frozen; replay deletes the delivery only if its effect still has it."
2482
+ }
2483
+ },
2484
+ "required": [
2485
+ "membership_kind",
2486
+ "type",
2487
+ "delivery_id",
2488
+ "effect_id",
2489
+ "entry_id",
2490
+ "source_action"
2491
+ ],
2492
+ "additionalProperties": false
2493
+ },
2213
2494
  {
2214
2495
  "type": "object",
2215
2496
  "properties": {
@@ -3003,6 +3003,186 @@
3003
3003
  ],
3004
3004
  "additionalProperties": false
3005
3005
  },
3006
+ {
3007
+ "type": "object",
3008
+ "properties": {
3009
+ "schema": {
3010
+ "type": "string",
3011
+ "const": "fleetless.deletion-intent.v2"
3012
+ },
3013
+ "environment": {
3014
+ "type": "string",
3015
+ "minLength": 1
3016
+ },
3017
+ "generation": {
3018
+ "type": "string",
3019
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3020
+ },
3021
+ "sequence": {
3022
+ "type": "integer",
3023
+ "minimum": 1,
3024
+ "maximum": 9007199254740991
3025
+ },
3026
+ "operation_id": {
3027
+ "type": "string",
3028
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3029
+ },
3030
+ "intent_at": {
3031
+ "type": "string",
3032
+ "format": "date-time",
3033
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
3034
+ },
3035
+ "previous_hash": {
3036
+ "type": "string",
3037
+ "pattern": "^[0-9a-f]{64}$"
3038
+ },
3039
+ "signing_key_id": {
3040
+ "type": "string",
3041
+ "minLength": 1
3042
+ },
3043
+ "kind": {
3044
+ "type": "string",
3045
+ "const": "waitlist.retention"
3046
+ },
3047
+ "ids": {
3048
+ "type": "object",
3049
+ "properties": {
3050
+ "batch_id": {
3051
+ "type": "string",
3052
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3053
+ },
3054
+ "cutoff_at": {
3055
+ "type": "string",
3056
+ "format": "date-time",
3057
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
3058
+ },
3059
+ "policy_revision": {
3060
+ "type": "integer",
3061
+ "minimum": 1,
3062
+ "maximum": 9007199254740991
3063
+ }
3064
+ },
3065
+ "required": [
3066
+ "batch_id",
3067
+ "cutoff_at",
3068
+ "policy_revision"
3069
+ ],
3070
+ "additionalProperties": false
3071
+ },
3072
+ "manifest_id": {
3073
+ "type": "string",
3074
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3075
+ },
3076
+ "manifest_version_id": {
3077
+ "type": "string",
3078
+ "minLength": 1
3079
+ },
3080
+ "manifest_hash": {
3081
+ "type": "string",
3082
+ "pattern": "^[0-9a-f]{64}$"
3083
+ }
3084
+ },
3085
+ "required": [
3086
+ "schema",
3087
+ "environment",
3088
+ "generation",
3089
+ "sequence",
3090
+ "operation_id",
3091
+ "intent_at",
3092
+ "previous_hash",
3093
+ "signing_key_id",
3094
+ "kind",
3095
+ "ids",
3096
+ "manifest_id",
3097
+ "manifest_version_id",
3098
+ "manifest_hash"
3099
+ ],
3100
+ "additionalProperties": false
3101
+ },
3102
+ {
3103
+ "type": "object",
3104
+ "properties": {
3105
+ "schema": {
3106
+ "type": "string",
3107
+ "const": "fleetless.deletion-intent.v2"
3108
+ },
3109
+ "environment": {
3110
+ "type": "string",
3111
+ "minLength": 1
3112
+ },
3113
+ "generation": {
3114
+ "type": "string",
3115
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3116
+ },
3117
+ "sequence": {
3118
+ "type": "integer",
3119
+ "minimum": 1,
3120
+ "maximum": 9007199254740991
3121
+ },
3122
+ "operation_id": {
3123
+ "type": "string",
3124
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3125
+ },
3126
+ "intent_at": {
3127
+ "type": "string",
3128
+ "format": "date-time",
3129
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
3130
+ },
3131
+ "previous_hash": {
3132
+ "type": "string",
3133
+ "pattern": "^[0-9a-f]{64}$"
3134
+ },
3135
+ "signing_key_id": {
3136
+ "type": "string",
3137
+ "minLength": 1
3138
+ },
3139
+ "kind": {
3140
+ "type": "string",
3141
+ "const": "waitlist.withdrawal"
3142
+ },
3143
+ "ids": {
3144
+ "type": "object",
3145
+ "properties": {
3146
+ "entry_id": {
3147
+ "type": "string",
3148
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3149
+ }
3150
+ },
3151
+ "required": [
3152
+ "entry_id"
3153
+ ],
3154
+ "additionalProperties": false
3155
+ },
3156
+ "manifest_id": {
3157
+ "type": "string",
3158
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
3159
+ },
3160
+ "manifest_version_id": {
3161
+ "type": "string",
3162
+ "minLength": 1
3163
+ },
3164
+ "manifest_hash": {
3165
+ "type": "string",
3166
+ "pattern": "^[0-9a-f]{64}$"
3167
+ }
3168
+ },
3169
+ "required": [
3170
+ "schema",
3171
+ "environment",
3172
+ "generation",
3173
+ "sequence",
3174
+ "operation_id",
3175
+ "intent_at",
3176
+ "previous_hash",
3177
+ "signing_key_id",
3178
+ "kind",
3179
+ "ids",
3180
+ "manifest_id",
3181
+ "manifest_version_id",
3182
+ "manifest_hash"
3183
+ ],
3184
+ "additionalProperties": false
3185
+ },
3006
3186
  {
3007
3187
  "type": "object",
3008
3188
  "properties": {