@fleetless/contracts 15.0.1 → 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.
- package/CHANGELOG.md +12 -0
- package/artifacts/schema/journal-deletion-manifest.schema.json +36 -4
- package/artifacts/schema/journal-intent-v2-body.schema.json +96 -0
- package/artifacts/schema/journal-intent-v2.schema.json +106 -0
- package/artifacts/schema/journal-manifest-batch.schema.json +16 -3
- package/artifacts/schema/journal-manifest-binding.schema.json +80 -4
- package/artifacts/schema/journal-manifest-intent-projection.schema.json +44 -0
- package/artifacts/schema/journal-manifest-row.schema.json +7 -1
- package/artifacts/schema/journal-manifest-scope.schema.json +13 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
- package/dist/journal-intents.d.ts +38 -0
- package/dist/journal-intents.js +2 -0
- package/dist/journal-manifests.d.ts +63 -0
- package/dist/journal-manifests.js +11 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,18 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Deletion journal: the waiting list's retention.** A new intent kind,
|
|
15
|
+
`waitlist.retention`, with batch-only ids like `ops_global_event.retention`
|
|
16
|
+
(the waiting list has no organization), and a manifest scope `waitlist`
|
|
17
|
+
that admits only `uuid_row` members of `waitlist`, `waitlist_invitations`,
|
|
18
|
+
`waitlist_invitation_proofs`, `waitlist_consents`, `operator_effect_outbox`
|
|
19
|
+
and `operator_effect_mail_deliveries`. The cloud journals the deletions of
|
|
20
|
+
its waiting-list retention job with it, so a restore cannot bring an
|
|
21
|
+
expired entry, or the mail rows that carry its address, back
|
|
22
|
+
(fleetless/fleetless#1082).
|
|
23
|
+
|
|
12
24
|
## [15.0.1] — 2026-11-12
|
|
13
25
|
|
|
14
26
|
### 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,13 @@
|
|
|
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",
|
|
316
|
+
"operator_effect_outbox",
|
|
317
|
+
"operator_effect_mail_deliveries"
|
|
299
318
|
]
|
|
300
319
|
},
|
|
301
320
|
"id": {
|
|
@@ -945,7 +964,8 @@
|
|
|
945
964
|
"mcp_client.expire",
|
|
946
965
|
"mcp_central_client.expire",
|
|
947
966
|
"console_interaction.expire",
|
|
948
|
-
"console_code.expire"
|
|
967
|
+
"console_code.expire",
|
|
968
|
+
"waitlist.retention"
|
|
949
969
|
]
|
|
950
970
|
},
|
|
951
971
|
"cutoff_at": {
|
|
@@ -986,7 +1006,13 @@
|
|
|
986
1006
|
"oidc_interactions",
|
|
987
1007
|
"organization_exports",
|
|
988
1008
|
"ops_notification_jobs",
|
|
989
|
-
"console_oauth_codes"
|
|
1009
|
+
"console_oauth_codes",
|
|
1010
|
+
"waitlist",
|
|
1011
|
+
"waitlist_invitations",
|
|
1012
|
+
"waitlist_invitation_proofs",
|
|
1013
|
+
"waitlist_consents",
|
|
1014
|
+
"operator_effect_outbox",
|
|
1015
|
+
"operator_effect_mail_deliveries"
|
|
990
1016
|
]
|
|
991
1017
|
},
|
|
992
1018
|
"id": {
|
|
@@ -1661,7 +1687,13 @@
|
|
|
1661
1687
|
"oidc_interactions",
|
|
1662
1688
|
"organization_exports",
|
|
1663
1689
|
"ops_notification_jobs",
|
|
1664
|
-
"console_oauth_codes"
|
|
1690
|
+
"console_oauth_codes",
|
|
1691
|
+
"waitlist",
|
|
1692
|
+
"waitlist_invitations",
|
|
1693
|
+
"waitlist_invitation_proofs",
|
|
1694
|
+
"waitlist_consents",
|
|
1695
|
+
"operator_effect_outbox",
|
|
1696
|
+
"operator_effect_mail_deliveries"
|
|
1665
1697
|
]
|
|
1666
1698
|
},
|
|
1667
1699
|
"id": {
|
|
@@ -3003,6 +3003,102 @@
|
|
|
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
|
+
},
|
|
3006
3102
|
{
|
|
3007
3103
|
"type": "object",
|
|
3008
3104
|
"properties": {
|
|
@@ -3323,6 +3323,112 @@
|
|
|
3323
3323
|
],
|
|
3324
3324
|
"additionalProperties": false
|
|
3325
3325
|
},
|
|
3326
|
+
{
|
|
3327
|
+
"type": "object",
|
|
3328
|
+
"properties": {
|
|
3329
|
+
"schema": {
|
|
3330
|
+
"type": "string",
|
|
3331
|
+
"const": "fleetless.deletion-intent.v2"
|
|
3332
|
+
},
|
|
3333
|
+
"environment": {
|
|
3334
|
+
"type": "string",
|
|
3335
|
+
"minLength": 1
|
|
3336
|
+
},
|
|
3337
|
+
"generation": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3340
|
+
},
|
|
3341
|
+
"sequence": {
|
|
3342
|
+
"type": "integer",
|
|
3343
|
+
"minimum": 1,
|
|
3344
|
+
"maximum": 9007199254740991
|
|
3345
|
+
},
|
|
3346
|
+
"operation_id": {
|
|
3347
|
+
"type": "string",
|
|
3348
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3349
|
+
},
|
|
3350
|
+
"intent_at": {
|
|
3351
|
+
"type": "string",
|
|
3352
|
+
"format": "date-time",
|
|
3353
|
+
"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))$"
|
|
3354
|
+
},
|
|
3355
|
+
"previous_hash": {
|
|
3356
|
+
"type": "string",
|
|
3357
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3358
|
+
},
|
|
3359
|
+
"signing_key_id": {
|
|
3360
|
+
"type": "string",
|
|
3361
|
+
"minLength": 1
|
|
3362
|
+
},
|
|
3363
|
+
"kind": {
|
|
3364
|
+
"type": "string",
|
|
3365
|
+
"const": "waitlist.retention"
|
|
3366
|
+
},
|
|
3367
|
+
"ids": {
|
|
3368
|
+
"type": "object",
|
|
3369
|
+
"properties": {
|
|
3370
|
+
"batch_id": {
|
|
3371
|
+
"type": "string",
|
|
3372
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3373
|
+
},
|
|
3374
|
+
"cutoff_at": {
|
|
3375
|
+
"type": "string",
|
|
3376
|
+
"format": "date-time",
|
|
3377
|
+
"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))$"
|
|
3378
|
+
},
|
|
3379
|
+
"policy_revision": {
|
|
3380
|
+
"type": "integer",
|
|
3381
|
+
"minimum": 1,
|
|
3382
|
+
"maximum": 9007199254740991
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
"required": [
|
|
3386
|
+
"batch_id",
|
|
3387
|
+
"cutoff_at",
|
|
3388
|
+
"policy_revision"
|
|
3389
|
+
],
|
|
3390
|
+
"additionalProperties": false
|
|
3391
|
+
},
|
|
3392
|
+
"manifest_id": {
|
|
3393
|
+
"type": "string",
|
|
3394
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3395
|
+
},
|
|
3396
|
+
"manifest_version_id": {
|
|
3397
|
+
"type": "string",
|
|
3398
|
+
"minLength": 1
|
|
3399
|
+
},
|
|
3400
|
+
"manifest_hash": {
|
|
3401
|
+
"type": "string",
|
|
3402
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3403
|
+
},
|
|
3404
|
+
"record_hash": {
|
|
3405
|
+
"type": "string",
|
|
3406
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3407
|
+
},
|
|
3408
|
+
"signature": {
|
|
3409
|
+
"type": "string",
|
|
3410
|
+
"pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
|
|
3411
|
+
}
|
|
3412
|
+
},
|
|
3413
|
+
"required": [
|
|
3414
|
+
"schema",
|
|
3415
|
+
"environment",
|
|
3416
|
+
"generation",
|
|
3417
|
+
"sequence",
|
|
3418
|
+
"operation_id",
|
|
3419
|
+
"intent_at",
|
|
3420
|
+
"previous_hash",
|
|
3421
|
+
"signing_key_id",
|
|
3422
|
+
"kind",
|
|
3423
|
+
"ids",
|
|
3424
|
+
"manifest_id",
|
|
3425
|
+
"manifest_version_id",
|
|
3426
|
+
"manifest_hash",
|
|
3427
|
+
"record_hash",
|
|
3428
|
+
"signature"
|
|
3429
|
+
],
|
|
3430
|
+
"additionalProperties": false
|
|
3431
|
+
},
|
|
3326
3432
|
{
|
|
3327
3433
|
"type": "object",
|
|
3328
3434
|
"properties": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"mcp_client.expire",
|
|
25
25
|
"mcp_central_client.expire",
|
|
26
26
|
"console_interaction.expire",
|
|
27
|
-
"console_code.expire"
|
|
27
|
+
"console_code.expire",
|
|
28
|
+
"waitlist.retention"
|
|
28
29
|
]
|
|
29
30
|
},
|
|
30
31
|
"cutoff_at": {
|
|
@@ -65,7 +66,13 @@
|
|
|
65
66
|
"oidc_interactions",
|
|
66
67
|
"organization_exports",
|
|
67
68
|
"ops_notification_jobs",
|
|
68
|
-
"console_oauth_codes"
|
|
69
|
+
"console_oauth_codes",
|
|
70
|
+
"waitlist",
|
|
71
|
+
"waitlist_invitations",
|
|
72
|
+
"waitlist_invitation_proofs",
|
|
73
|
+
"waitlist_consents",
|
|
74
|
+
"operator_effect_outbox",
|
|
75
|
+
"operator_effect_mail_deliveries"
|
|
69
76
|
]
|
|
70
77
|
},
|
|
71
78
|
"id": {
|
|
@@ -740,7 +747,13 @@
|
|
|
740
747
|
"oidc_interactions",
|
|
741
748
|
"organization_exports",
|
|
742
749
|
"ops_notification_jobs",
|
|
743
|
-
"console_oauth_codes"
|
|
750
|
+
"console_oauth_codes",
|
|
751
|
+
"waitlist",
|
|
752
|
+
"waitlist_invitations",
|
|
753
|
+
"waitlist_invitation_proofs",
|
|
754
|
+
"waitlist_consents",
|
|
755
|
+
"operator_effect_outbox",
|
|
756
|
+
"operator_effect_mail_deliveries"
|
|
744
757
|
]
|
|
745
758
|
},
|
|
746
759
|
"id": {
|
|
@@ -1094,6 +1094,50 @@
|
|
|
1094
1094
|
],
|
|
1095
1095
|
"additionalProperties": false
|
|
1096
1096
|
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"operation_id": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1103
|
+
},
|
|
1104
|
+
"kind": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"const": "waitlist.retention"
|
|
1107
|
+
},
|
|
1108
|
+
"ids": {
|
|
1109
|
+
"type": "object",
|
|
1110
|
+
"properties": {
|
|
1111
|
+
"batch_id": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1114
|
+
},
|
|
1115
|
+
"cutoff_at": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"format": "date-time",
|
|
1118
|
+
"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))$"
|
|
1119
|
+
},
|
|
1120
|
+
"policy_revision": {
|
|
1121
|
+
"type": "integer",
|
|
1122
|
+
"minimum": 1,
|
|
1123
|
+
"maximum": 9007199254740991
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"required": [
|
|
1127
|
+
"batch_id",
|
|
1128
|
+
"cutoff_at",
|
|
1129
|
+
"policy_revision"
|
|
1130
|
+
],
|
|
1131
|
+
"additionalProperties": false
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"required": [
|
|
1135
|
+
"operation_id",
|
|
1136
|
+
"kind",
|
|
1137
|
+
"ids"
|
|
1138
|
+
],
|
|
1139
|
+
"additionalProperties": false
|
|
1140
|
+
},
|
|
1097
1141
|
{
|
|
1098
1142
|
"type": "object",
|
|
1099
1143
|
"properties": {
|
|
@@ -1562,6 +1606,19 @@
|
|
|
1562
1606
|
],
|
|
1563
1607
|
"additionalProperties": false
|
|
1564
1608
|
},
|
|
1609
|
+
{
|
|
1610
|
+
"type": "object",
|
|
1611
|
+
"properties": {
|
|
1612
|
+
"kind": {
|
|
1613
|
+
"type": "string",
|
|
1614
|
+
"const": "waitlist"
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
"required": [
|
|
1618
|
+
"kind"
|
|
1619
|
+
],
|
|
1620
|
+
"additionalProperties": false
|
|
1621
|
+
},
|
|
1565
1622
|
{
|
|
1566
1623
|
"type": "object",
|
|
1567
1624
|
"properties": {
|
|
@@ -1725,7 +1782,13 @@
|
|
|
1725
1782
|
"oidc_interactions",
|
|
1726
1783
|
"organization_exports",
|
|
1727
1784
|
"ops_notification_jobs",
|
|
1728
|
-
"console_oauth_codes"
|
|
1785
|
+
"console_oauth_codes",
|
|
1786
|
+
"waitlist",
|
|
1787
|
+
"waitlist_invitations",
|
|
1788
|
+
"waitlist_invitation_proofs",
|
|
1789
|
+
"waitlist_consents",
|
|
1790
|
+
"operator_effect_outbox",
|
|
1791
|
+
"operator_effect_mail_deliveries"
|
|
1729
1792
|
]
|
|
1730
1793
|
},
|
|
1731
1794
|
"id": {
|
|
@@ -2375,7 +2438,8 @@
|
|
|
2375
2438
|
"mcp_client.expire",
|
|
2376
2439
|
"mcp_central_client.expire",
|
|
2377
2440
|
"console_interaction.expire",
|
|
2378
|
-
"console_code.expire"
|
|
2441
|
+
"console_code.expire",
|
|
2442
|
+
"waitlist.retention"
|
|
2379
2443
|
]
|
|
2380
2444
|
},
|
|
2381
2445
|
"cutoff_at": {
|
|
@@ -2416,7 +2480,13 @@
|
|
|
2416
2480
|
"oidc_interactions",
|
|
2417
2481
|
"organization_exports",
|
|
2418
2482
|
"ops_notification_jobs",
|
|
2419
|
-
"console_oauth_codes"
|
|
2483
|
+
"console_oauth_codes",
|
|
2484
|
+
"waitlist",
|
|
2485
|
+
"waitlist_invitations",
|
|
2486
|
+
"waitlist_invitation_proofs",
|
|
2487
|
+
"waitlist_consents",
|
|
2488
|
+
"operator_effect_outbox",
|
|
2489
|
+
"operator_effect_mail_deliveries"
|
|
2420
2490
|
]
|
|
2421
2491
|
},
|
|
2422
2492
|
"id": {
|
|
@@ -3091,7 +3161,13 @@
|
|
|
3091
3161
|
"oidc_interactions",
|
|
3092
3162
|
"organization_exports",
|
|
3093
3163
|
"ops_notification_jobs",
|
|
3094
|
-
"console_oauth_codes"
|
|
3164
|
+
"console_oauth_codes",
|
|
3165
|
+
"waitlist",
|
|
3166
|
+
"waitlist_invitations",
|
|
3167
|
+
"waitlist_invitation_proofs",
|
|
3168
|
+
"waitlist_consents",
|
|
3169
|
+
"operator_effect_outbox",
|
|
3170
|
+
"operator_effect_mail_deliveries"
|
|
3095
3171
|
]
|
|
3096
3172
|
},
|
|
3097
3173
|
"id": {
|
|
@@ -1091,6 +1091,50 @@
|
|
|
1091
1091
|
],
|
|
1092
1092
|
"additionalProperties": false
|
|
1093
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
"type": "object",
|
|
1096
|
+
"properties": {
|
|
1097
|
+
"operation_id": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1100
|
+
},
|
|
1101
|
+
"kind": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"const": "waitlist.retention"
|
|
1104
|
+
},
|
|
1105
|
+
"ids": {
|
|
1106
|
+
"type": "object",
|
|
1107
|
+
"properties": {
|
|
1108
|
+
"batch_id": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1111
|
+
},
|
|
1112
|
+
"cutoff_at": {
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"format": "date-time",
|
|
1115
|
+
"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))$"
|
|
1116
|
+
},
|
|
1117
|
+
"policy_revision": {
|
|
1118
|
+
"type": "integer",
|
|
1119
|
+
"minimum": 1,
|
|
1120
|
+
"maximum": 9007199254740991
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"required": [
|
|
1124
|
+
"batch_id",
|
|
1125
|
+
"cutoff_at",
|
|
1126
|
+
"policy_revision"
|
|
1127
|
+
],
|
|
1128
|
+
"additionalProperties": false
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
"required": [
|
|
1132
|
+
"operation_id",
|
|
1133
|
+
"kind",
|
|
1134
|
+
"ids"
|
|
1135
|
+
],
|
|
1136
|
+
"additionalProperties": false
|
|
1137
|
+
},
|
|
1094
1138
|
{
|
|
1095
1139
|
"type": "object",
|
|
1096
1140
|
"properties": {
|
|
@@ -24,7 +24,13 @@
|
|
|
24
24
|
"oidc_interactions",
|
|
25
25
|
"organization_exports",
|
|
26
26
|
"ops_notification_jobs",
|
|
27
|
-
"console_oauth_codes"
|
|
27
|
+
"console_oauth_codes",
|
|
28
|
+
"waitlist",
|
|
29
|
+
"waitlist_invitations",
|
|
30
|
+
"waitlist_invitation_proofs",
|
|
31
|
+
"waitlist_consents",
|
|
32
|
+
"operator_effect_outbox",
|
|
33
|
+
"operator_effect_mail_deliveries"
|
|
28
34
|
]
|
|
29
35
|
},
|
|
30
36
|
"id": {
|
|
@@ -105,6 +105,19 @@
|
|
|
105
105
|
],
|
|
106
106
|
"additionalProperties": false
|
|
107
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"kind": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"const": "waitlist"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": [
|
|
117
|
+
"kind"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
},
|
|
108
121
|
{
|
|
109
122
|
"type": "object",
|
|
110
123
|
"properties": {
|
|
@@ -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<{
|
package/dist/journal-intents.js
CHANGED
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "15.0.1",
|
|
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",
|