Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
14156 lines (14156 loc) · 460 KB
/
Copy pathopenapi.json
File metadata and controls
14156 lines (14156 loc) · 460 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"components": {
"schemas": {
"AccessEntriesDto": {
"properties": {
"generation": {
"description": "The table's access generation; send it back on PUT .../access?role={role}",
"format": "int64",
"type": "integer"
},
"ineffective_grants": {
"description": "Privileges that change nothing, and standing warnings, judged on the entries as stored: already_global, sensitive_without_verb, lifts_row_policies, lifts_column_policies and everyone_reads_all_rows (a read for '*' with no row policy on a table that is not an enrichment). Empty, never absent, when nothing is reported. Every entry's, grouped by role in the order of `roles`.",
"items": {
"$ref": "#/components/schemas/IneffectiveGrantDto"
},
"type": "array"
},
"roles": {
"additionalProperties": {
"$ref": "#/components/schemas/AccessEntryBodyDto"
},
"description": "Every role's entry, keyed by raw provider role; an empty object when the table has none",
"type": "object"
}
},
"type": "object"
},
"AccessEntryBodyDto": {
"properties": {
"columns": {
"description": "The role's column allowlist, sorted: exposed column names of this table and `<enrichment>.<column>` for its enrichments' columns; null places no restriction.",
"items": {
"type": "string"
},
"type": "array"
},
"privileges": {
"description": "The privileges the role holds on this table, in the order get, read, sensitive, write, modify. Implication is derived when a check runs and never written here.",
"items": {
"type": "string"
},
"type": "array"
},
"rows": {
"$ref": "#/components/schemas/RowsDto",
"description": "The role's row policy as a `filter`, or null for none."
}
},
"type": "object"
},
"AccessEntryDto": {
"properties": {
"columns": {
"description": "The role's column allowlist, sorted: exposed column names of this table and `<enrichment>.<column>` for its enrichments' columns; null places no restriction.",
"items": {
"type": "string"
},
"type": "array"
},
"generation": {
"description": "The table's access generation; send it back on PUT",
"format": "int64",
"type": "integer"
},
"ineffective_grants": {
"description": "Privileges that change nothing, and standing warnings, judged on the entries as stored: already_global, sensitive_without_verb, lifts_row_policies, lifts_column_policies and everyone_reads_all_rows (a read for '*' with no row policy on a table that is not an enrichment). Empty, never absent, when nothing is reported. This entry's only.",
"items": {
"$ref": "#/components/schemas/IneffectiveGrantDto"
},
"type": "array"
},
"privileges": {
"description": "The privileges the role holds on this table, in the order get, read, sensitive, write, modify. Implication is derived when a check runs and never written here.",
"items": {
"type": "string"
},
"type": "array"
},
"role": {
"description": "The raw provider role, decoded and trimmed",
"type": "string"
},
"rows": {
"$ref": "#/components/schemas/RowsDto",
"description": "The role's row policy as a `filter`, or null for none."
}
},
"type": "object"
},
"AccessEntryReplacedDto": {
"properties": {
"columns": {
"description": "The role's column allowlist, sorted: exposed column names of this table and `<enrichment>.<column>` for its enrichments' columns; null places no restriction.",
"items": {
"type": "string"
},
"type": "array"
},
"generation": {
"description": "The table's new access generation",
"format": "int64",
"type": "integer"
},
"ineffective_grants": {
"description": "Privileges that change nothing, and standing warnings, judged on the entries as stored: already_global, sensitive_without_verb, lifts_row_policies, lifts_column_policies and everyone_reads_all_rows (a read for '*' with no row policy on a table that is not an enrichment). Empty, never absent, when nothing is reported.",
"items": {
"$ref": "#/components/schemas/IneffectiveGrantDto"
},
"type": "array"
},
"privileges": {
"description": "The privileges the role holds on this table, in the order get, read, sensitive, write, modify. Implication is derived when a check runs and never written here.",
"items": {
"type": "string"
},
"type": "array"
},
"role": {
"description": "The raw provider role, decoded and trimmed",
"type": "string"
},
"rows": {
"$ref": "#/components/schemas/RowsDto",
"description": "The role's row policy as a `filter`, or null for none."
}
},
"type": "object"
},
"AccessImportEntry": {
"properties": {
"import_action": {
"description": "CREATE when the target has no entry for the role, REPLACE when it has a different one, SKIP when it has an equal one, FAIL when the entry is refused",
"enum": [
"CREATE",
"REPLACE",
"SKIP",
"FAIL"
],
"type": "string"
},
"ineffective_grants": {
"description": "What a PUT of the entry would report, judged with every bundle entry applied; empty when none is applied",
"items": {
"$ref": "#/components/schemas/IneffectiveGrantDto"
},
"type": "array"
},
"next": {
"$ref": "#/components/schemas/BundleAccessEntry",
"description": "The bundle's entry as a PUT of it would store it; as bound from the bundle when FAIL"
},
"prev": {
"$ref": "#/components/schemas/BundleAccessEntry",
"description": "The target's entry for the role, or null when it has none"
},
"problems": {
"description": "Why the entry cannot be imported",
"items": {
"type": "string"
},
"type": "array"
},
"role": {
"description": "The role, trimmed",
"example": "analytics-viewers",
"type": "string"
},
"status": {
"description": "Import result only: `created`, `replaced`, `skipped` or `rolled_back`",
"type": "string"
},
"table": {
"description": "The table the entry is on",
"example": "dial_usage_log",
"type": "string"
}
},
"type": "object"
},
"AccessItem": {
"properties": {
"left_behind": {
"items": {
"$ref": "#/components/schemas/LeftBehindItem"
},
"type": "array"
},
"roles": {
"items": {
"type": "string"
},
"type": "array"
},
"table": {
"type": "string"
}
},
"type": "object"
},
"AdvancedRequest": {
"properties": {
"input_token_budget": {
"description": "Approximate token ceiling the runner trims a group's assembled input to. 0 switches the runner's trimming off, a positive value is this pipeline's own ceiling, and absent means the runner's configured default. Valid only on a `group` pipeline; a negative value is refused.",
"example": 8000,
"format": "int32",
"type": "integer"
},
"rate_rpm": {
"description": "Per-pipeline model call ceiling per minute",
"example": 75,
"format": "int32",
"type": "integer"
},
"rows_per_call": {
"description": "How many rows the runner evaluates per work item (was `batch_chunk`)",
"example": 1,
"format": "int32",
"type": "integer"
},
"rows_per_scan": {
"description": "Upper bound on rows one scan tick may claim (was `batch_scan_limit`)",
"example": 1000,
"format": "int32",
"type": "integer"
},
"sample_fraction": {
"description": "Fraction of eligible rows to evaluate, strictly in (0, 1]. A value above 1 is refused rather than read as a percentage; 0 is refused naming `enabled: false`, which is how a pipeline that evaluates nothing is declared.",
"example": 0.1,
"format": "double",
"type": "number"
}
},
"type": "object"
},
"AppRouteDto": {
"description": "A DIAL application and one of its routes",
"properties": {
"deployment": {
"description": "DIAL application deployment id",
"example": "insights-app",
"type": "string"
},
"route": {
"description": "Route under /v1/deployments/{deployment}/route/",
"example": "insights",
"type": "string"
}
},
"required": [
"deployment",
"route"
],
"type": "object"
},
"AppRoutesSettingDto": {
"description": "Stored app-routes setting",
"properties": {
"routes": {
"description": "The allowed pairs, in the order written",
"items": {
"$ref": "#/components/schemas/AppRouteDto"
},
"type": "array"
},
"updated_at": {
"description": "Time of the last write, ISO-8601",
"example": "2026-01-01T00:00:00Z",
"format": "date-time",
"type": "string"
},
"updated_by": {
"description": "Principal of the last writer; null when security is disabled",
"example": "admin",
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"AppRoutesSettingRequestDto": {
"description": "App-routes setting to store",
"properties": {
"routes": {
"description": "The allowed pairs; an empty list allows no route",
"items": {
"$ref": "#/components/schemas/AppRouteDto"
},
"type": "array"
}
},
"required": [
"routes"
],
"type": "object"
},
"ArrayExpr": {
"allOf": [
{
"$ref": "#/components/schemas/Expr"
},
{
"properties": {
"items": {
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ArrayExpr"
},
{
"$ref": "#/components/schemas/CaseExpr"
},
{
"$ref": "#/components/schemas/FieldExpr"
},
{
"$ref": "#/components/schemas/FnExpr"
},
{
"$ref": "#/components/schemas/LambdaExpr"
},
{
"$ref": "#/components/schemas/LambdaParamExpr"
},
{
"$ref": "#/components/schemas/ParamExpr"
},
{
"$ref": "#/components/schemas/ValueExpr"
},
{
"$ref": "#/components/schemas/WindowExpr"
}
]
},
"type": "array"
}
},
"type": "object"
}
]
},
"AuditActivityDto": {
"description": "One recorded change to an audited catalog resource.",
"properties": {
"activityId": {
"description": "Identifier of this activity.",
"format": "uuid",
"type": "string"
},
"activityType": {
"description": "What happened.",
"enum": [
"Create",
"Update",
"Delete"
],
"example": "Update",
"type": "string"
},
"epochTimestampMs": {
"description": "When the change was made, epoch milliseconds.",
"format": "int64",
"type": "integer"
},
"importId": {
"description": "The import_id of the catalog import this change was part of; absent when no import made it.",
"format": "uuid",
"type": "string"
},
"initiatedAuthor": {
"description": "Principal that made the change, or 'unknown'.",
"type": "string"
},
"initiatedEmail": {
"description": "That principal's email, when known.",
"type": "string"
},
"parentActivityId": {
"description": "The Table activity this one belongs under, when it has one.",
"format": "uuid",
"type": "string"
},
"resourceId": {
"description": "Opaque identity of the resource within its type.",
"example": "conversations:chat_id",
"type": "string"
},
"resourceType": {
"description": "Kind of resource.",
"enum": [
"Table",
"TableColumn",
"Pipeline",
"SavedQuery",
"Dashboard",
"Setting"
],
"example": "TableColumn",
"type": "string"
},
"revision": {
"description": "Revision grouping all changes of one transaction.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"BackfillRequest": {
"description": "Backfill trigger request: an inclusive UTC date range. Blobs already ingested are skipped unless `includeIngested` is `true`.",
"properties": {
"from": {
"description": "Inclusive start date (UTC), ISO yyyy-MM-dd.",
"example": "2026-05-26",
"type": "string"
},
"includeIngested": {
"default": false,
"description": "Re-ingest blobs that were already ingested. Default `false`: only blobs not yet ingested are written, so re-triggering a range a stopped run left part-done writes only the rest. Set `true` to repair rows lost from a range or to apply a changed mapping to it; the re-ingested rows re-fire on-ingest enrichments and aggregate refreshes.",
"example": false,
"type": "boolean"
},
"to": {
"description": "Inclusive end date (UTC), ISO yyyy-MM-dd.",
"example": "2026-06-24",
"type": "string"
}
},
"type": "object"
},
"BackfillRunListResponse": {
"description": "Retained backfill runs.",
"properties": {
"runs": {
"description": "Runs newest started first, bounded by retention (at most the 5 most recently started). A runtime cache, not a history: cleared on restart and redeploy, and per instance, so during a rolling-update overlap it can omit a run the other instance holds.",
"items": {
"$ref": "#/components/schemas/BackfillStatusResponse"
},
"type": "array"
}
},
"type": "object"
},
"BackfillStatusResponse": {
"description": "Backfill run status.",
"properties": {
"currentDate": {
"description": "Date currently being processed (present while running).",
"example": "2026-06-10",
"type": "string"
},
"daysCompleted": {
"description": "Days successfully ingested so far.",
"example": 12,
"format": "int32",
"type": "integer"
},
"daysFailed": {
"description": "Days that failed to ingest.",
"example": 0,
"format": "int32",
"type": "integer"
},
"daysTotal": {
"description": "Total days in the inclusive range.",
"example": 30,
"format": "int32",
"type": "integer"
},
"failedBlobs": {
"description": "Blobs that failed to read or map, or whose rows ClickHouse refused, across all days so far; each is named in the failure ledger (`GET /v1/data-sync/failures`).",
"example": 0,
"format": "int64",
"type": "integer"
},
"failedDates": {
"description": "Dates (UTC, ascending) of the days that failed; absent when none did.",
"items": {
"format": "date",
"type": "string"
},
"type": "array"
},
"filesProcessed": {
"description": "Files processed across all days so far.",
"format": "int64",
"type": "integer"
},
"finishedAt": {
"description": "Run completion time (UTC, ISO-8601); present once finished.",
"type": "string"
},
"from": {
"description": "Inclusive start date (UTC).",
"example": "2026-05-26",
"type": "string"
},
"rowsDropped": {
"description": "Rows dropped (missing deduplication key) across all days so far.",
"format": "int64",
"type": "integer"
},
"rowsInserted": {
"description": "Rows inserted across all days so far.",
"format": "int64",
"type": "integer"
},
"rowsSkipped": {
"description": "Rows skipped (unparseable lines) across all days so far.",
"format": "int64",
"type": "integer"
},
"runId": {
"description": "Run identifier.",
"type": "string"
},
"startedAt": {
"description": "Run start time (UTC, ISO-8601).",
"type": "string"
},
"state": {
"description": "Lifecycle state.",
"example": "running",
"type": "string"
},
"to": {
"description": "Inclusive end date (UTC).",
"example": "2026-06-24",
"type": "string"
}
},
"type": "object"
},
"BackfillTriggerResponse": {
"description": "Backfill trigger acknowledgement.",
"properties": {
"days": {
"description": "Number of days in the inclusive range.",
"example": 30,
"format": "int32",
"type": "integer"
},
"from": {
"description": "Resolved inclusive start date (UTC).",
"example": "2026-05-26",
"type": "string"
},
"runId": {
"description": "Generated run identifier.",
"example": "f1d2c3b4-...",
"type": "string"
},
"to": {
"description": "Resolved inclusive end date (UTC).",
"example": "2026-06-24",
"type": "string"
}
},
"type": "object"
},
"BundleAccessEntry": {
"properties": {
"columns": {
"description": "The role's column allowlist, or null for every column",
"items": {
"type": "string"
},
"type": "array"
},
"privileges": {
"description": "The privileges: a subset of get, read, sensitive, write and modify",
"items": {
"type": "string"
},
"type": "array"
},
"rows": {
"$ref": "#/components/schemas/RowsDto",
"description": "The role's row policy as `filter` (or, read, `where`), or null for none"
}
},
"type": "object"
},
"BundlePipeline": {
"properties": {
"exported_enabled": {
"description": "Whether the pipeline was enabled on the exporting environment. Informational: import always creates it disabled",
"type": "boolean"
},
"pipeline": {
"$ref": "#/components/schemas/Declaration",
"description": "The `view=source` projection, without generation, state, enabled and timestamps"
}
},
"required": [
"pipeline"
],
"type": "object"
},
"BundleTable": {
"properties": {
"schema": {
"$ref": "#/components/schemas/DefineSchemaRequest",
"description": "The POST /v1/tables/{name}/schema body, columns exactly as stored"
},
"table": {
"$ref": "#/components/schemas/CreateTableRequest",
"description": "The POST /v1/tables body"
}
},
"required": [
"schema",
"table"
],
"type": "object"
},
"ByState": {
"description": "Matching subjects per state.",
"properties": {
"parked": {
"description": "Subjects waiting for a requeue.",
"format": "int32",
"type": "integer"
},
"pending": {
"description": "Subjects retried automatically.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"CaseBranch": {
"properties": {
"then": {
"oneOf": [
{
"$ref": "#/components/schemas/ArrayExpr"
},
{
"$ref": "#/components/schemas/CaseExpr"
},
{
"$ref": "#/components/schemas/FieldExpr"
},
{
"$ref": "#/components/schemas/FnExpr"
},
{
"$ref": "#/components/schemas/LambdaExpr"
},
{
"$ref": "#/components/schemas/LambdaParamExpr"
},
{
"$ref": "#/components/schemas/ParamExpr"
},
{
"$ref": "#/components/schemas/ValueExpr"
},
{
"$ref": "#/components/schemas/WindowExpr"
}
]
},
"when": {
"oneOf": [
{
"$ref": "#/components/schemas/ComparisonNode"
},
{
"$ref": "#/components/schemas/LogicalNode"
},
{
"$ref": "#/components/schemas/SubqueryNode"
}
]
}
},
"type": "object"
},
"CaseExpr": {
"allOf": [
{
"$ref": "#/components/schemas/Expr"
},
{
"properties": {
"else": {
"oneOf": [
{
"$ref": "#/components/schemas/ArrayExpr"
},
{
"$ref": "#/components/schemas/CaseExpr"
},
{
"$ref": "#/components/schemas/FieldExpr"
},
{
"$ref": "#/components/schemas/FnExpr"
},
{
"$ref": "#/components/schemas/LambdaExpr"
},
{
"$ref": "#/components/schemas/LambdaParamExpr"
},
{
"$ref": "#/components/schemas/ParamExpr"
},
{
"$ref": "#/components/schemas/ValueExpr"
},
{
"$ref": "#/components/schemas/WindowExpr"
}
]
},
"when": {
"items": {
"$ref": "#/components/schemas/CaseBranch"
},
"type": "array"
}
},
"type": "object"
}
]
},
"CatalogBundle": {
"properties": {
"access": {
"additionalProperties": {
"additionalProperties": {
"$ref": "#/components/schemas/BundleAccessEntry"
},
"type": "object"
},
"description": "Present only when exported with include_access: table -> role -> entry, for every covered table, system tables included. A key may name a table the bundle does not carry, which import then requires on the target. Imported only with include_access=true",
"type": "object"
},
"exported_at": {
"description": "When the bundle was exported",
"format": "date-time",
"type": "string"
},
"format": {
"description": "Always `adas-catalog`",
"example": "adas-catalog",
"minLength": 1,
"type": "string"
},
"format_version": {
"description": "Bundle shape version",
"example": 1,
"format": "int32",
"type": "integer"
},
"pipelines": {
"description": "Pipelines",
"items": {
"$ref": "#/components/schemas/BundlePipeline"
},
"type": "array"
},
"required_system_tables": {
"description": "System tables, by name, that the carried closure reaches, that the selection names, or whose access the bundle carries; a pipeline exported with dependencies false brings none in. Import requires each to exist on the target and never creates one or changes its definition",
"example": [
"dial_usage_log"
],
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
"skipped": {
"description": "Objects an export-everything left out",
"items": {
"$ref": "#/components/schemas/SkippedObject"
},
"type": "array"
},
"tables": {
"description": "User tables, in dependency order",
"items": {
"$ref": "#/components/schemas/BundleTable"
},
"type": "array"
}
},
"required": [
"format",
"format_version"
],
"type": "object"
},
"ColumnDto": {
"properties": {
"description": {
"type": "string"
},
"display_name": {
"type": "string"
},
"element_type": {
"enum": [
"string",
"integer",
"long",
"decimal",
"boolean",
"date",
"timestamp",
"uuid",
"enum",
"object",
"array",
"map"
],
"type": "string"
},
"enum_values": {
"items": {
"type": "string"
},
"type": "array"
},
"heavy": {
"type": "boolean"
},
"name": {
"type": "string"
},
"nullable": {
"type": "boolean"
},
"sensitive": {
"type": "boolean"
},
"source_name": {
"type": "string"
},
"tag": {
"type": "string"
},
"type": {
"enum": [
"string",
"integer",
"long",
"decimal",
"boolean",
"date",
"timestamp",
"uuid",
"enum",
"object",
"array",
"map"
],
"type": "string"
}
},
"type": "object"
},
"ColumnMetadataUpdate": {
"properties": {
"description": {
"description": "Description (max 1024 chars); omit/null to leave, blank to clear",
"example": "Total money spent by the user",
"type": "string"
},
"display_name": {
"description": "Display name (max 128 chars); omit/null to leave, blank to clear",
"example": "Total money spend",
"type": "string"
},
"enum_values": {
"description": "Not accepted here (422): an enum column's domain is fixed for the life of the column, because changing it rewrites the ClickHouse column and can fail against rows already stored; widen a domain by dropping and re-adding the column",
"items": {
"type": "string"
},
"type": "array"
},
"heavy": {
"description": "Heavy flag — omit the column from wildcard projections; omit/null to leave unchanged",
"example": true,
"type": "boolean"
},
"name": {
"description": "Exposed name of the column to update",
"example": "email",
"minLength": 1,
"type": "string"
},
"sensitive": {
"description": "Sensitive flag; omit/null to leave unchanged",
"example": true,
"type": "boolean"
},
"tag": {
"description": "Tag (max 64 chars); omit/null to leave, blank to clear",
"example": "user_email",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"ColumnRequest": {
"properties": {
"description": {
"description": "Column description",
"type": "string"
},
"display_name": {
"description": "Optional user-friendly display name for the column (max 128 chars)",
"example": "Total money spend",
"type": "string"
},
"element_type": {
"description": "Scalar element type of an array column (required iff type is array; array and object elements are not allowed)",
"enum": [
"string",
"integer",
"long",
"decimal",
"boolean",
"date",
"timestamp",
"uuid",
"enum",
"object",
"array",
"map"
],
"example": "string",
"type": "string"
},
"enum_values": {
"description": "Declared value domain of an enum column (required iff type is enum, rejected on any other type): 1-512 distinct non-blank values of at most 64 characters each, materialized as ClickHouse Enum8/Enum16. Order is significant — it assigns each value's id, so the column sorts in declared order rather than alphabetically. Immutable once the column exists: widen a domain by dropping and re-adding the column",
"example": [
"pending",
"running",
"failed"
],
"items": {
"type": "string"
},
"type": "array"
},
"heavy": {
"description": "Mark the column heavy: expensive to transfer, so wildcard projections (SQL SELECT *, or a row-mode query with no select) skip it. Still returned when named explicitly — a cost hint, not access control (defaults to false)",
"example": false,
"type": "boolean"
},
"name": {
"description": "Exposed (flat) field name",
"example": "score",
"minLength": 1,
"type": "string"
},
"nullable": {
"description": "Whether the column is nullable; defaults to false for sources, true for enrichments. An array column is always non-nullable (ClickHouse has no Nullable(Array)); declaring it nullable is rejected",
"type": "boolean"
},
"sensitive": {
"description": "Mark the column sensitive: it is visible, readable and changeable only by callers holding the TABLE_SENSITIVE clearance on this table alongside the verb they use. Declaring or changing the flag requires TABLE_MODIFY and TABLE_SENSITIVE (defaults to false)",
"example": false,
"type": "boolean"
},
"source_name": {
"description": "Physical ClickHouse column name",
"example": "score",
"minLength": 1,
"type": "string"
},
"tag": {
"description": "Optional label to help identify the column (max 64 chars)",
"example": "user_email",
"type": "string"
},
"type": {
"description": "Field type",
"enum": [
"string",
"integer",
"long",
"decimal",
"boolean",
"date",
"timestamp",
"uuid",
"enum",