@fleetless/contracts 13.0.0 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/artifacts/openapi.json +10 -10
- package/artifacts/routes.json +2 -2
- package/artifacts/schema/billing-change-response.schema.json +3 -3
- package/artifacts/schema/billing-invoice-pdf-query.schema.json +1 -1
- package/artifacts/schema/billing-invoice.schema.json +1 -1
- package/artifacts/schema/billing-view.schema.json +1 -1
- package/artifacts/schema/journal-deletion-manifest.schema.json +213 -3
- package/artifacts/schema/journal-manifest-batch.schema.json +142 -2
- package/artifacts/schema/journal-manifest-binding.schema.json +213 -3
- package/artifacts/schema/journal-manifest-row.schema.json +71 -1
- package/artifacts/schema/purchase-intent-response.schema.json +3 -3
- package/dist/billing.js +2 -2
- package/dist/journal-manifests.d.ts +126 -0
- package/dist/journal-manifests.js +74 -1
- package/dist/routes.js +3 -3
- package/package.json +1 -1
|
@@ -2273,9 +2273,79 @@
|
|
|
2273
2273
|
"audit_id"
|
|
2274
2274
|
],
|
|
2275
2275
|
"additionalProperties": false
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
"type": "object",
|
|
2279
|
+
"properties": {
|
|
2280
|
+
"type": {
|
|
2281
|
+
"type": "string",
|
|
2282
|
+
"const": "retention_range"
|
|
2283
|
+
},
|
|
2284
|
+
"membership_kind": {
|
|
2285
|
+
"type": "string",
|
|
2286
|
+
"const": "affected"
|
|
2287
|
+
},
|
|
2288
|
+
"table": {
|
|
2289
|
+
"type": "string",
|
|
2290
|
+
"enum": [
|
|
2291
|
+
"datapoint_series_samples",
|
|
2292
|
+
"bridge_latency_buckets"
|
|
2293
|
+
],
|
|
2294
|
+
"description": "The table the range was deleted from."
|
|
2295
|
+
},
|
|
2296
|
+
"org_id": {
|
|
2297
|
+
"type": "string",
|
|
2298
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2299
|
+
},
|
|
2300
|
+
"robot_id": {
|
|
2301
|
+
"type": "string",
|
|
2302
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2303
|
+
},
|
|
2304
|
+
"series_id": {
|
|
2305
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
2306
|
+
"type": "integer",
|
|
2307
|
+
"minimum": 1,
|
|
2308
|
+
"maximum": 9007199254740991
|
|
2309
|
+
},
|
|
2310
|
+
"from": {
|
|
2311
|
+
"type": "string",
|
|
2312
|
+
"format": "date-time",
|
|
2313
|
+
"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))$",
|
|
2314
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
2315
|
+
},
|
|
2316
|
+
"cutoff": {
|
|
2317
|
+
"type": "string",
|
|
2318
|
+
"format": "date-time",
|
|
2319
|
+
"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))$",
|
|
2320
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
2321
|
+
},
|
|
2322
|
+
"row_count": {
|
|
2323
|
+
"type": "integer",
|
|
2324
|
+
"minimum": 1,
|
|
2325
|
+
"maximum": 9007199254740991,
|
|
2326
|
+
"description": "How many rows the range held when it was frozen."
|
|
2327
|
+
},
|
|
2328
|
+
"rows_digest": {
|
|
2329
|
+
"type": "string",
|
|
2330
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
2331
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"required": [
|
|
2335
|
+
"type",
|
|
2336
|
+
"membership_kind",
|
|
2337
|
+
"table",
|
|
2338
|
+
"org_id",
|
|
2339
|
+
"robot_id",
|
|
2340
|
+
"from",
|
|
2341
|
+
"cutoff",
|
|
2342
|
+
"row_count",
|
|
2343
|
+
"rows_digest"
|
|
2344
|
+
],
|
|
2345
|
+
"additionalProperties": false
|
|
2276
2346
|
}
|
|
2277
2347
|
],
|
|
2278
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
2348
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
2279
2349
|
}
|
|
2280
2350
|
},
|
|
2281
2351
|
"batches": {
|
|
@@ -2894,9 +2964,79 @@
|
|
|
2894
2964
|
"audit_id"
|
|
2895
2965
|
],
|
|
2896
2966
|
"additionalProperties": false
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"type": "object",
|
|
2970
|
+
"properties": {
|
|
2971
|
+
"type": {
|
|
2972
|
+
"type": "string",
|
|
2973
|
+
"const": "retention_range"
|
|
2974
|
+
},
|
|
2975
|
+
"membership_kind": {
|
|
2976
|
+
"type": "string",
|
|
2977
|
+
"const": "affected"
|
|
2978
|
+
},
|
|
2979
|
+
"table": {
|
|
2980
|
+
"type": "string",
|
|
2981
|
+
"enum": [
|
|
2982
|
+
"datapoint_series_samples",
|
|
2983
|
+
"bridge_latency_buckets"
|
|
2984
|
+
],
|
|
2985
|
+
"description": "The table the range was deleted from."
|
|
2986
|
+
},
|
|
2987
|
+
"org_id": {
|
|
2988
|
+
"type": "string",
|
|
2989
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2990
|
+
},
|
|
2991
|
+
"robot_id": {
|
|
2992
|
+
"type": "string",
|
|
2993
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2994
|
+
},
|
|
2995
|
+
"series_id": {
|
|
2996
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
2997
|
+
"type": "integer",
|
|
2998
|
+
"minimum": 1,
|
|
2999
|
+
"maximum": 9007199254740991
|
|
3000
|
+
},
|
|
3001
|
+
"from": {
|
|
3002
|
+
"type": "string",
|
|
3003
|
+
"format": "date-time",
|
|
3004
|
+
"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))$",
|
|
3005
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
3006
|
+
},
|
|
3007
|
+
"cutoff": {
|
|
3008
|
+
"type": "string",
|
|
3009
|
+
"format": "date-time",
|
|
3010
|
+
"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))$",
|
|
3011
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
3012
|
+
},
|
|
3013
|
+
"row_count": {
|
|
3014
|
+
"type": "integer",
|
|
3015
|
+
"minimum": 1,
|
|
3016
|
+
"maximum": 9007199254740991,
|
|
3017
|
+
"description": "How many rows the range held when it was frozen."
|
|
3018
|
+
},
|
|
3019
|
+
"rows_digest": {
|
|
3020
|
+
"type": "string",
|
|
3021
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
3022
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
"required": [
|
|
3026
|
+
"type",
|
|
3027
|
+
"membership_kind",
|
|
3028
|
+
"table",
|
|
3029
|
+
"org_id",
|
|
3030
|
+
"robot_id",
|
|
3031
|
+
"from",
|
|
3032
|
+
"cutoff",
|
|
3033
|
+
"row_count",
|
|
3034
|
+
"rows_digest"
|
|
3035
|
+
],
|
|
3036
|
+
"additionalProperties": false
|
|
2897
3037
|
}
|
|
2898
3038
|
],
|
|
2899
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
3039
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
2900
3040
|
}
|
|
2901
3041
|
}
|
|
2902
3042
|
},
|
|
@@ -3499,9 +3639,79 @@
|
|
|
3499
3639
|
"audit_id"
|
|
3500
3640
|
],
|
|
3501
3641
|
"additionalProperties": false
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"type": "object",
|
|
3645
|
+
"properties": {
|
|
3646
|
+
"type": {
|
|
3647
|
+
"type": "string",
|
|
3648
|
+
"const": "retention_range"
|
|
3649
|
+
},
|
|
3650
|
+
"membership_kind": {
|
|
3651
|
+
"type": "string",
|
|
3652
|
+
"const": "affected"
|
|
3653
|
+
},
|
|
3654
|
+
"table": {
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"enum": [
|
|
3657
|
+
"datapoint_series_samples",
|
|
3658
|
+
"bridge_latency_buckets"
|
|
3659
|
+
],
|
|
3660
|
+
"description": "The table the range was deleted from."
|
|
3661
|
+
},
|
|
3662
|
+
"org_id": {
|
|
3663
|
+
"type": "string",
|
|
3664
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
3665
|
+
},
|
|
3666
|
+
"robot_id": {
|
|
3667
|
+
"type": "string",
|
|
3668
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
3669
|
+
},
|
|
3670
|
+
"series_id": {
|
|
3671
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
3672
|
+
"type": "integer",
|
|
3673
|
+
"minimum": 1,
|
|
3674
|
+
"maximum": 9007199254740991
|
|
3675
|
+
},
|
|
3676
|
+
"from": {
|
|
3677
|
+
"type": "string",
|
|
3678
|
+
"format": "date-time",
|
|
3679
|
+
"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))$",
|
|
3680
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
3681
|
+
},
|
|
3682
|
+
"cutoff": {
|
|
3683
|
+
"type": "string",
|
|
3684
|
+
"format": "date-time",
|
|
3685
|
+
"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))$",
|
|
3686
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
3687
|
+
},
|
|
3688
|
+
"row_count": {
|
|
3689
|
+
"type": "integer",
|
|
3690
|
+
"minimum": 1,
|
|
3691
|
+
"maximum": 9007199254740991,
|
|
3692
|
+
"description": "How many rows the range held when it was frozen."
|
|
3693
|
+
},
|
|
3694
|
+
"rows_digest": {
|
|
3695
|
+
"type": "string",
|
|
3696
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
3697
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
3698
|
+
}
|
|
3699
|
+
},
|
|
3700
|
+
"required": [
|
|
3701
|
+
"type",
|
|
3702
|
+
"membership_kind",
|
|
3703
|
+
"table",
|
|
3704
|
+
"org_id",
|
|
3705
|
+
"robot_id",
|
|
3706
|
+
"from",
|
|
3707
|
+
"cutoff",
|
|
3708
|
+
"row_count",
|
|
3709
|
+
"rows_digest"
|
|
3710
|
+
],
|
|
3711
|
+
"additionalProperties": false
|
|
3502
3712
|
}
|
|
3503
3713
|
],
|
|
3504
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
3714
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
3505
3715
|
}
|
|
3506
3716
|
}
|
|
3507
3717
|
},
|
|
@@ -572,7 +572,77 @@
|
|
|
572
572
|
"audit_id"
|
|
573
573
|
],
|
|
574
574
|
"additionalProperties": false
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"type": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"const": "retention_range"
|
|
582
|
+
},
|
|
583
|
+
"membership_kind": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"const": "affected"
|
|
586
|
+
},
|
|
587
|
+
"table": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"enum": [
|
|
590
|
+
"datapoint_series_samples",
|
|
591
|
+
"bridge_latency_buckets"
|
|
592
|
+
],
|
|
593
|
+
"description": "The table the range was deleted from."
|
|
594
|
+
},
|
|
595
|
+
"org_id": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
598
|
+
},
|
|
599
|
+
"robot_id": {
|
|
600
|
+
"type": "string",
|
|
601
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
602
|
+
},
|
|
603
|
+
"series_id": {
|
|
604
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
605
|
+
"type": "integer",
|
|
606
|
+
"minimum": 1,
|
|
607
|
+
"maximum": 9007199254740991
|
|
608
|
+
},
|
|
609
|
+
"from": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"format": "date-time",
|
|
612
|
+
"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))$",
|
|
613
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
614
|
+
},
|
|
615
|
+
"cutoff": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"format": "date-time",
|
|
618
|
+
"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))$",
|
|
619
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
620
|
+
},
|
|
621
|
+
"row_count": {
|
|
622
|
+
"type": "integer",
|
|
623
|
+
"minimum": 1,
|
|
624
|
+
"maximum": 9007199254740991,
|
|
625
|
+
"description": "How many rows the range held when it was frozen."
|
|
626
|
+
},
|
|
627
|
+
"rows_digest": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
630
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"required": [
|
|
634
|
+
"type",
|
|
635
|
+
"membership_kind",
|
|
636
|
+
"table",
|
|
637
|
+
"org_id",
|
|
638
|
+
"robot_id",
|
|
639
|
+
"from",
|
|
640
|
+
"cutoff",
|
|
641
|
+
"row_count",
|
|
642
|
+
"rows_digest"
|
|
643
|
+
],
|
|
644
|
+
"additionalProperties": false
|
|
575
645
|
}
|
|
576
646
|
],
|
|
577
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
647
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
578
648
|
}
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
"type": "null"
|
|
1331
1331
|
}
|
|
1332
1332
|
],
|
|
1333
|
-
"description": "
|
|
1333
|
+
"description": "Cloud always returns `null` for this field, including cancelled historical Cloud invoices. Cancellation documents are held in Lexware."
|
|
1334
1334
|
},
|
|
1335
1335
|
"currency": {
|
|
1336
1336
|
"type": "string",
|
|
@@ -1654,7 +1654,7 @@
|
|
|
1654
1654
|
"type": "null"
|
|
1655
1655
|
}
|
|
1656
1656
|
],
|
|
1657
|
-
"description": "
|
|
1657
|
+
"description": "Cloud always returns `null` for this field, including cancelled historical Cloud invoices. Cancellation documents are held in Lexware."
|
|
1658
1658
|
},
|
|
1659
1659
|
"currency": {
|
|
1660
1660
|
"type": "string",
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
"type": "null"
|
|
2503
2503
|
}
|
|
2504
2504
|
],
|
|
2505
|
-
"description": "
|
|
2505
|
+
"description": "Cloud always returns `null` for this field, including cancelled historical Cloud invoices. Cancellation documents are held in Lexware."
|
|
2506
2506
|
},
|
|
2507
2507
|
"currency": {
|
|
2508
2508
|
"type": "string",
|
package/dist/billing.js
CHANGED
|
@@ -705,7 +705,7 @@ export const billingInvoice = z.object({
|
|
|
705
705
|
issued_at: z.iso.datetime().meta({ description: 'When the invoice was issued.' }),
|
|
706
706
|
status: invoiceStatus.meta({ description: 'This invoice\'s own status.' }),
|
|
707
707
|
cancellation_document_url: z.string().nullable().meta({
|
|
708
|
-
description: '
|
|
708
|
+
description: 'Cloud always returns `null` for this field, including cancelled historical Cloud invoices. Cancellation documents are held in Lexware.',
|
|
709
709
|
}),
|
|
710
710
|
currency: planCurrency.meta({ description: "The org's billing currency." }),
|
|
711
711
|
net_cents: z.number().int().nonnegative().meta({ description: 'The charge, excluding VAT, in integer cents.' }),
|
|
@@ -715,7 +715,7 @@ export const billingInvoice = z.object({
|
|
|
715
715
|
});
|
|
716
716
|
/** Optional document kind for `GET /api/billing/invoices/:id/pdf`; omitted means the original invoice. */
|
|
717
717
|
export const billingInvoicePdfQuery = z.object({
|
|
718
|
-
kind: z.enum(['invoice', 'cancellation']).optional().meta({ description: '
|
|
718
|
+
kind: z.enum(['invoice', 'cancellation']).optional().meta({ description: 'Omitted or `invoice` selects the original invoice PDF. `cancellation` is accepted but returns `404 not_found`: Cloud has no cancellation PDFs.' }),
|
|
719
719
|
}).strict();
|
|
720
720
|
/**
|
|
721
721
|
* The org's billing account: the payer, the VAT treatment, the cycle and
|
|
@@ -181,6 +181,20 @@ export declare const journalManifestRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
181
181
|
affected: "affected";
|
|
182
182
|
unaffected: "unaffected";
|
|
183
183
|
}>;
|
|
184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
185
|
+
type: z.ZodLiteral<"retention_range">;
|
|
186
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
187
|
+
table: z.ZodEnum<{
|
|
188
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
189
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
190
|
+
}>;
|
|
191
|
+
org_id: z.ZodString;
|
|
192
|
+
robot_id: z.ZodString;
|
|
193
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
from: z.ZodISODateTime;
|
|
195
|
+
cutoff: z.ZodISODateTime;
|
|
196
|
+
row_count: z.ZodNumber;
|
|
197
|
+
rows_digest: z.ZodString;
|
|
184
198
|
}, z.core.$strict>]>;
|
|
185
199
|
export type JournalManifestRow = z.infer<typeof journalManifestRow>;
|
|
186
200
|
export declare const journalManifestEntry: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -382,6 +396,20 @@ export declare const journalManifestBatch: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
382
396
|
affected: "affected";
|
|
383
397
|
unaffected: "unaffected";
|
|
384
398
|
}>;
|
|
399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
400
|
+
type: z.ZodLiteral<"retention_range">;
|
|
401
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
402
|
+
table: z.ZodEnum<{
|
|
403
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
404
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
405
|
+
}>;
|
|
406
|
+
org_id: z.ZodString;
|
|
407
|
+
robot_id: z.ZodString;
|
|
408
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
from: z.ZodISODateTime;
|
|
410
|
+
cutoff: z.ZodISODateTime;
|
|
411
|
+
row_count: z.ZodNumber;
|
|
412
|
+
rows_digest: z.ZodString;
|
|
385
413
|
}, z.core.$strict>]>>;
|
|
386
414
|
}, z.core.$strict>, z.ZodObject<{
|
|
387
415
|
batch_id: z.ZodString;
|
|
@@ -544,6 +572,20 @@ export declare const journalManifestBatch: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
544
572
|
affected: "affected";
|
|
545
573
|
unaffected: "unaffected";
|
|
546
574
|
}>;
|
|
575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
576
|
+
type: z.ZodLiteral<"retention_range">;
|
|
577
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
578
|
+
table: z.ZodEnum<{
|
|
579
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
580
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
581
|
+
}>;
|
|
582
|
+
org_id: z.ZodString;
|
|
583
|
+
robot_id: z.ZodString;
|
|
584
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
585
|
+
from: z.ZodISODateTime;
|
|
586
|
+
cutoff: z.ZodISODateTime;
|
|
587
|
+
row_count: z.ZodNumber;
|
|
588
|
+
rows_digest: z.ZodString;
|
|
547
589
|
}, z.core.$strict>]>>;
|
|
548
590
|
}, z.core.$strict>]>;
|
|
549
591
|
export type JournalManifestBatch = z.infer<typeof journalManifestBatch>;
|
|
@@ -759,6 +801,20 @@ export declare const journalDeletionManifest: z.ZodObject<{
|
|
|
759
801
|
affected: "affected";
|
|
760
802
|
unaffected: "unaffected";
|
|
761
803
|
}>;
|
|
804
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
805
|
+
type: z.ZodLiteral<"retention_range">;
|
|
806
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
807
|
+
table: z.ZodEnum<{
|
|
808
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
809
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
810
|
+
}>;
|
|
811
|
+
org_id: z.ZodString;
|
|
812
|
+
robot_id: z.ZodString;
|
|
813
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
814
|
+
from: z.ZodISODateTime;
|
|
815
|
+
cutoff: z.ZodISODateTime;
|
|
816
|
+
row_count: z.ZodNumber;
|
|
817
|
+
rows_digest: z.ZodString;
|
|
762
818
|
}, z.core.$strict>]>>;
|
|
763
819
|
batches: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
764
820
|
batch_id: z.ZodString;
|
|
@@ -935,6 +991,20 @@ export declare const journalDeletionManifest: z.ZodObject<{
|
|
|
935
991
|
affected: "affected";
|
|
936
992
|
unaffected: "unaffected";
|
|
937
993
|
}>;
|
|
994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
995
|
+
type: z.ZodLiteral<"retention_range">;
|
|
996
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
997
|
+
table: z.ZodEnum<{
|
|
998
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
999
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
1000
|
+
}>;
|
|
1001
|
+
org_id: z.ZodString;
|
|
1002
|
+
robot_id: z.ZodString;
|
|
1003
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
1004
|
+
from: z.ZodISODateTime;
|
|
1005
|
+
cutoff: z.ZodISODateTime;
|
|
1006
|
+
row_count: z.ZodNumber;
|
|
1007
|
+
rows_digest: z.ZodString;
|
|
938
1008
|
}, z.core.$strict>]>>;
|
|
939
1009
|
}, z.core.$strict>, z.ZodObject<{
|
|
940
1010
|
batch_id: z.ZodString;
|
|
@@ -1097,6 +1167,20 @@ export declare const journalDeletionManifest: z.ZodObject<{
|
|
|
1097
1167
|
affected: "affected";
|
|
1098
1168
|
unaffected: "unaffected";
|
|
1099
1169
|
}>;
|
|
1170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1171
|
+
type: z.ZodLiteral<"retention_range">;
|
|
1172
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
1173
|
+
table: z.ZodEnum<{
|
|
1174
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
1175
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
1176
|
+
}>;
|
|
1177
|
+
org_id: z.ZodString;
|
|
1178
|
+
robot_id: z.ZodString;
|
|
1179
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
1180
|
+
from: z.ZodISODateTime;
|
|
1181
|
+
cutoff: z.ZodISODateTime;
|
|
1182
|
+
row_count: z.ZodNumber;
|
|
1183
|
+
rows_digest: z.ZodString;
|
|
1100
1184
|
}, z.core.$strict>]>>;
|
|
1101
1185
|
}, z.core.$strict>]>>;
|
|
1102
1186
|
}, z.core.$strict>;
|
|
@@ -1324,6 +1408,20 @@ export declare const journalManifestBinding: z.ZodObject<{
|
|
|
1324
1408
|
affected: "affected";
|
|
1325
1409
|
unaffected: "unaffected";
|
|
1326
1410
|
}>;
|
|
1411
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1412
|
+
type: z.ZodLiteral<"retention_range">;
|
|
1413
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
1414
|
+
table: z.ZodEnum<{
|
|
1415
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
1416
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
1417
|
+
}>;
|
|
1418
|
+
org_id: z.ZodString;
|
|
1419
|
+
robot_id: z.ZodString;
|
|
1420
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
1421
|
+
from: z.ZodISODateTime;
|
|
1422
|
+
cutoff: z.ZodISODateTime;
|
|
1423
|
+
row_count: z.ZodNumber;
|
|
1424
|
+
rows_digest: z.ZodString;
|
|
1327
1425
|
}, z.core.$strict>]>>;
|
|
1328
1426
|
batches: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1329
1427
|
batch_id: z.ZodString;
|
|
@@ -1500,6 +1598,20 @@ export declare const journalManifestBinding: z.ZodObject<{
|
|
|
1500
1598
|
affected: "affected";
|
|
1501
1599
|
unaffected: "unaffected";
|
|
1502
1600
|
}>;
|
|
1601
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1602
|
+
type: z.ZodLiteral<"retention_range">;
|
|
1603
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
1604
|
+
table: z.ZodEnum<{
|
|
1605
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
1606
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
1607
|
+
}>;
|
|
1608
|
+
org_id: z.ZodString;
|
|
1609
|
+
robot_id: z.ZodString;
|
|
1610
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
1611
|
+
from: z.ZodISODateTime;
|
|
1612
|
+
cutoff: z.ZodISODateTime;
|
|
1613
|
+
row_count: z.ZodNumber;
|
|
1614
|
+
rows_digest: z.ZodString;
|
|
1503
1615
|
}, z.core.$strict>]>>;
|
|
1504
1616
|
}, z.core.$strict>, z.ZodObject<{
|
|
1505
1617
|
batch_id: z.ZodString;
|
|
@@ -1662,6 +1774,20 @@ export declare const journalManifestBinding: z.ZodObject<{
|
|
|
1662
1774
|
affected: "affected";
|
|
1663
1775
|
unaffected: "unaffected";
|
|
1664
1776
|
}>;
|
|
1777
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1778
|
+
type: z.ZodLiteral<"retention_range">;
|
|
1779
|
+
membership_kind: z.ZodLiteral<"affected">;
|
|
1780
|
+
table: z.ZodEnum<{
|
|
1781
|
+
datapoint_series_samples: "datapoint_series_samples";
|
|
1782
|
+
bridge_latency_buckets: "bridge_latency_buckets";
|
|
1783
|
+
}>;
|
|
1784
|
+
org_id: z.ZodString;
|
|
1785
|
+
robot_id: z.ZodString;
|
|
1786
|
+
series_id: z.ZodOptional<z.ZodNumber>;
|
|
1787
|
+
from: z.ZodISODateTime;
|
|
1788
|
+
cutoff: z.ZodISODateTime;
|
|
1789
|
+
row_count: z.ZodNumber;
|
|
1790
|
+
rows_digest: z.ZodString;
|
|
1665
1791
|
}, z.core.$strict>]>>;
|
|
1666
1792
|
}, z.core.$strict>]>>;
|
|
1667
1793
|
}, z.core.$strict>;
|