react-semaphor 0.1.559 → 0.1.561

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.
Files changed (168) hide show
  1. package/dist/analytics-protocol/index.js +389 -378
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
  7. package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
  12. package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
  16. package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
  17. package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
  20. package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
  21. package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
  24. package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
  30. package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
  36. package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
  40. package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
  42. package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
  43. package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
  51. package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2713 -1459
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +262 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
  65. package/dist/types/index.js +50 -51
  66. package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
  67. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  68. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  69. package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
  70. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
  71. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  72. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
  73. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  74. package/dist/types/lib/stores/editor-store.d.ts +48 -10
  75. package/dist/types/lib/stores/table-actions.d.ts +9 -5
  76. package/dist/types/lib/table-formatting/index.d.ts +0 -2
  77. package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
  78. package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
  79. package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
  80. package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
  81. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
  82. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
  83. package/dist/types/lib/types/common-types.d.ts +40 -47
  84. package/dist/types/lib/types/explorer-types.d.ts +11 -43
  85. package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
  86. package/dist/types/lib/utils/card-definition.d.ts +9 -187
  87. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
  88. package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
  89. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
  90. package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
  91. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
  92. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
  93. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
  94. package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
  95. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
  96. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  97. package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
  98. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
  99. package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
  100. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
  101. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
  102. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
  103. package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  106. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  107. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  108. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  109. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  110. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  111. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  112. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  113. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  114. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  117. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  119. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  120. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  121. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  124. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  125. package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
  127. package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
  128. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
  129. package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
  130. package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
  131. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
  132. package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
  133. package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
  134. package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
  135. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
  136. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
  137. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  138. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
  139. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  142. package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
  143. package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
  144. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  145. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
  146. package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
  147. package/dist/types/shared/format-utils/index.d.ts +2 -0
  148. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
  149. package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
  150. package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
  151. package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
  152. package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
  153. package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
  154. package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
  155. package/package.json +2 -2
  156. package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
  157. package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
  158. package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
  159. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
  160. package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
  161. package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
  162. package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
  163. package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
  164. package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
  165. package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
  166. package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
  167. package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
  168. package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
@@ -2626,6 +2626,48 @@ export declare const matrixColumnsSchema: z.ZodObject<{
2626
2626
  }>;
2627
2627
  export declare const handleSchema: z.ZodString;
2628
2628
  declare const filterValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2629
+ /**
2630
+ * How a column reads and shows (card appearance SPEC 3.1), keyed by the
2631
+ * column's name in the outline. `format` is the stored format type, or a patch
2632
+ * without `type`; the card settings owner validates it against the column, so
2633
+ * its refusals can say what the column takes (CA-D9, CA-D18).
2634
+ */
2635
+ export declare const columnSettingsInputSchema: z.ZodObject<{
2636
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2637
+ hidden: z.ZodOptional<z.ZodBoolean>;
2638
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2639
+ format: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2640
+ field: z.ZodOptional<z.ZodString>;
2641
+ role: z.ZodOptional<z.ZodString>;
2642
+ inherits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2643
+ }, "strict", z.ZodTypeAny, {
2644
+ label?: string | null | undefined;
2645
+ role?: string | undefined;
2646
+ field?: string | undefined;
2647
+ format?: Record<string, unknown> | null | undefined;
2648
+ hidden?: boolean | undefined;
2649
+ width?: number | null | undefined;
2650
+ inherits?: string[] | undefined;
2651
+ }, {
2652
+ label?: string | null | undefined;
2653
+ role?: string | undefined;
2654
+ field?: string | undefined;
2655
+ format?: Record<string, unknown> | null | undefined;
2656
+ hidden?: boolean | undefined;
2657
+ width?: number | null | undefined;
2658
+ inherits?: string[] | undefined;
2659
+ }>;
2660
+ /**
2661
+ * The stored format's fields in words, by kind of format. The definition's `columns` summary and a
2662
+ * refused format's fix say the same: on a dashboard whose columns inherit their formats the outline
2663
+ * shows none to copy, and agents without these words guessed `decimals` and `style` (card
2664
+ * appearance ledger P0-02, P5-03, P5-05).
2665
+ */
2666
+ export declare const FORMAT_WORDS: {
2667
+ readonly number: "{ type: 'number' | 'currency' | 'percent', currency?: 'USD' (on a currency), minimumFractionDigits?, maximumFractionDigits?, compact?: true (1.2K), percentValueMode: 'fraction' (0.1 is 10%) | 'whole' (on a percent) }";
2668
+ readonly temporal_bucket: "{ type: 'temporal_bucket', presentation: { mode: 'preset', preset: 'short' | 'long' | 'numeric' | 'iso' } or { mode: 'pattern', pattern: 'MMM YYYY' } }";
2669
+ readonly date: "{ type: 'date', preset?: 'short' | 'long' | 'numeric' | 'iso', pattern? }";
2670
+ };
2629
2671
  export declare const relationshipAddSchema: z.ZodObject<{
2630
2672
  op: z.ZodLiteral<"relationship.add">;
2631
2673
  from: z.ZodObject<{
@@ -4165,11 +4207,14 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4165
4207
  }, {
4166
4208
  after: string;
4167
4209
  }>]>>;
4210
+ /** Card appearance: a card is born finished, with the settings `card.update` takes. */
4211
+ columns: z.ZodOptional<z.ZodTypeAny>;
4168
4212
  }, "strict", z.ZodTypeAny, {
4169
- type: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table";
4213
+ type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
4170
4214
  title: string;
4171
4215
  op: "card.add";
4172
4216
  description?: string | undefined;
4217
+ columns?: any;
4173
4218
  matrix?: {
4174
4219
  columns: (string | {
4175
4220
  name: string;
@@ -4189,15 +4234,16 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4189
4234
  position?: "top" | "end" | {
4190
4235
  after: string;
4191
4236
  } | undefined;
4192
- sheetId?: string | undefined;
4193
4237
  width?: "quarter" | "full" | "half" | "third" | undefined;
4194
- query?: any;
4195
4238
  handle?: string | undefined;
4239
+ sheetId?: string | undefined;
4240
+ query?: any;
4196
4241
  }, {
4197
- type: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table";
4242
+ type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
4198
4243
  title: string;
4199
4244
  op: "card.add";
4200
4245
  description?: string | undefined;
4246
+ columns?: any;
4201
4247
  matrix?: {
4202
4248
  columns: (string | {
4203
4249
  name: string;
@@ -4217,10 +4263,10 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
4217
4263
  position?: "top" | "end" | {
4218
4264
  after: string;
4219
4265
  } | undefined;
4220
- sheetId?: string | undefined;
4221
4266
  width?: "quarter" | "full" | "half" | "third" | undefined;
4222
- query?: any;
4223
4267
  handle?: string | undefined;
4268
+ sheetId?: string | undefined;
4269
+ query?: any;
4224
4270
  }>, z.ZodObject<{
4225
4271
  op: z.ZodLiteral<"card.update">;
4226
4272
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -5120,11 +5166,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5120
5166
  } | undefined;
5121
5167
  })[];
5122
5168
  }>>;
5169
+ columns: z.ZodOptional<z.ZodTypeAny>;
5123
5170
  }, "strict", z.ZodTypeAny, {
5124
5171
  cardId: string;
5125
5172
  op: "card.update";
5126
- type?: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table" | undefined;
5173
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
5127
5174
  description?: string | null | undefined;
5175
+ columns?: any;
5128
5176
  matrix?: {
5129
5177
  columns: (string | {
5130
5178
  name: string;
@@ -5265,8 +5313,9 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5265
5313
  }, {
5266
5314
  cardId: string;
5267
5315
  op: "card.update";
5268
- type?: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table" | undefined;
5316
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
5269
5317
  description?: string | null | undefined;
5318
+ columns?: any;
5270
5319
  matrix?: {
5271
5320
  columns: (string | {
5272
5321
  name: string;
@@ -5581,7 +5630,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5581
5630
  field: string;
5582
5631
  op: "filter.add";
5583
5632
  selection?: "single" | "multiple" | undefined;
5584
- sheetIds?: string[] | undefined;
5585
5633
  defaultValues?: (string | number | boolean)[] | undefined;
5586
5634
  handle?: string | undefined;
5587
5635
  defaultPeriod?: {
@@ -5600,6 +5648,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5600
5648
  start: string;
5601
5649
  end: string;
5602
5650
  } | undefined;
5651
+ sheetIds?: string[] | undefined;
5603
5652
  }, {
5604
5653
  domainId: string;
5605
5654
  datasetName: string;
@@ -5607,7 +5656,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5607
5656
  field: string;
5608
5657
  op: "filter.add";
5609
5658
  selection?: "single" | "multiple" | undefined;
5610
- sheetIds?: string[] | undefined;
5611
5659
  defaultValues?: (string | number | boolean)[] | undefined;
5612
5660
  handle?: string | undefined;
5613
5661
  defaultPeriod?: {
@@ -5626,6 +5674,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5626
5674
  start: string;
5627
5675
  end: string;
5628
5676
  } | undefined;
5677
+ sheetIds?: string[] | undefined;
5629
5678
  }>, z.ZodObject<{
5630
5679
  op: z.ZodLiteral<"filter.update">;
5631
5680
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -5789,7 +5838,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5789
5838
  op: "filter.update";
5790
5839
  label?: string | undefined;
5791
5840
  selection?: "single" | "multiple" | undefined;
5792
- sheetIds?: string[] | null | undefined;
5793
5841
  defaultValues?: (string | number | boolean)[] | null | undefined;
5794
5842
  defaultPeriod?: {
5795
5843
  value: number;
@@ -5807,12 +5855,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5807
5855
  start: string;
5808
5856
  end: string;
5809
5857
  } | null | undefined;
5858
+ sheetIds?: string[] | null | undefined;
5810
5859
  }, {
5811
5860
  filterId: string;
5812
5861
  op: "filter.update";
5813
5862
  label?: string | undefined;
5814
5863
  selection?: "single" | "multiple" | undefined;
5815
- sheetIds?: string[] | null | undefined;
5816
5864
  defaultValues?: (string | number | boolean)[] | null | undefined;
5817
5865
  defaultPeriod?: {
5818
5866
  value: number;
@@ -5830,6 +5878,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5830
5878
  start: string;
5831
5879
  end: string;
5832
5880
  } | null | undefined;
5881
+ sheetIds?: string[] | null | undefined;
5833
5882
  }>, z.ZodObject<{
5834
5883
  op: z.ZodLiteral<"filter.remove">;
5835
5884
  filterId: z.ZodString;
@@ -5858,28 +5907,28 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5858
5907
  datasetName: string;
5859
5908
  name: string;
5860
5909
  };
5861
- cardId: string;
5862
5910
  filterId: string;
5911
+ cardId: string;
5863
5912
  op: "filter.bind";
5864
5913
  }, {
5865
5914
  field: string | {
5866
5915
  datasetName: string;
5867
5916
  name: string;
5868
5917
  };
5869
- cardId: string;
5870
5918
  filterId: string;
5919
+ cardId: string;
5871
5920
  op: "filter.bind";
5872
5921
  }>, z.ZodObject<{
5873
5922
  op: z.ZodLiteral<"filter.exclude">;
5874
5923
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
5875
5924
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
5876
5925
  }, "strict", z.ZodTypeAny, {
5877
- cardId: string;
5878
5926
  filterId: string;
5927
+ cardId: string;
5879
5928
  op: "filter.exclude";
5880
5929
  }, {
5881
- cardId: string;
5882
5930
  filterId: string;
5931
+ cardId: string;
5883
5932
  op: "filter.exclude";
5884
5933
  }>, z.ZodObject<{
5885
5934
  op: z.ZodLiteral<"layout.arrange">;
@@ -5893,6 +5942,231 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5893
5942
  op: "layout.arrange";
5894
5943
  sheetId?: string | undefined;
5895
5944
  keepOrder?: boolean | undefined;
5945
+ }>, z.ZodObject<{
5946
+ when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5947
+ color: z.ZodOptional<z.ZodString>;
5948
+ scale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5949
+ bars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5950
+ op: z.ZodLiteral<"highlight.add">;
5951
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
5952
+ column: z.ZodString;
5953
+ apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
5954
+ } | {
5955
+ when: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5956
+ operator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<="]>;
5957
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5958
+ }, "strict", z.ZodTypeAny, {
5959
+ value: string | number;
5960
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
5961
+ }, {
5962
+ value: string | number;
5963
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
5964
+ }>, z.ZodObject<{
5965
+ operator: z.ZodLiteral<"between">;
5966
+ values: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
5967
+ }, "strict", z.ZodTypeAny, {
5968
+ values: [number, number];
5969
+ operator: "between";
5970
+ }, {
5971
+ values: [number, number];
5972
+ operator: "between";
5973
+ }>, z.ZodObject<{
5974
+ operator: z.ZodLiteral<"contains">;
5975
+ value: z.ZodString;
5976
+ }, "strict", z.ZodTypeAny, {
5977
+ value: string;
5978
+ operator: "contains";
5979
+ }, {
5980
+ value: string;
5981
+ operator: "contains";
5982
+ }>, z.ZodObject<{
5983
+ operator: z.ZodLiteral<"is_null">;
5984
+ }, "strict", z.ZodTypeAny, {
5985
+ operator: "is_null";
5986
+ }, {
5987
+ operator: "is_null";
5988
+ }>, z.ZodObject<{
5989
+ top: z.ZodNumber;
5990
+ }, "strict", z.ZodTypeAny, {
5991
+ top: number;
5992
+ }, {
5993
+ top: number;
5994
+ }>, z.ZodObject<{
5995
+ bottom: z.ZodNumber;
5996
+ }, "strict", z.ZodTypeAny, {
5997
+ bottom: number;
5998
+ }, {
5999
+ bottom: number;
6000
+ }>]>>;
6001
+ color: z.ZodOptional<z.ZodString>;
6002
+ scale: z.ZodOptional<z.ZodObject<{
6003
+ low: z.ZodString;
6004
+ high: z.ZodString;
6005
+ mid: z.ZodOptional<z.ZodString>;
6006
+ }, "strict", z.ZodTypeAny, {
6007
+ low: string;
6008
+ high: string;
6009
+ mid?: string | undefined;
6010
+ }, {
6011
+ low: string;
6012
+ high: string;
6013
+ mid?: string | undefined;
6014
+ }>>;
6015
+ bars: z.ZodOptional<z.ZodObject<{
6016
+ color: z.ZodOptional<z.ZodString>;
6017
+ }, "strict", z.ZodTypeAny, {
6018
+ color?: string | undefined;
6019
+ }, {
6020
+ color?: string | undefined;
6021
+ }>>;
6022
+ op: z.ZodLiteral<"highlight.add">;
6023
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6024
+ column: z.ZodString;
6025
+ apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
6026
+ }, "strict", z.ZodTypeAny, {
6027
+ column: string;
6028
+ cardId: string;
6029
+ op: "highlight.add";
6030
+ scale?: Record<string, unknown> | {
6031
+ low: string;
6032
+ high: string;
6033
+ mid?: string | undefined;
6034
+ } | undefined;
6035
+ color?: string | undefined;
6036
+ apply?: "row" | "cell" | undefined;
6037
+ when?: Record<string, unknown> | {
6038
+ value: string | number;
6039
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
6040
+ } | {
6041
+ values: [number, number];
6042
+ operator: "between";
6043
+ } | {
6044
+ value: string;
6045
+ operator: "contains";
6046
+ } | {
6047
+ operator: "is_null";
6048
+ } | {
6049
+ top: number;
6050
+ } | {
6051
+ bottom: number;
6052
+ } | undefined;
6053
+ bars?: Record<string, unknown> | {
6054
+ color?: string | undefined;
6055
+ } | undefined;
6056
+ } | {
6057
+ column: string;
6058
+ cardId: string;
6059
+ op: "highlight.add";
6060
+ scale?: Record<string, unknown> | {
6061
+ low: string;
6062
+ high: string;
6063
+ mid?: string | undefined;
6064
+ } | undefined;
6065
+ color?: string | undefined;
6066
+ apply?: "row" | "cell" | undefined;
6067
+ when?: Record<string, unknown> | {
6068
+ value: string | number;
6069
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
6070
+ } | {
6071
+ values: [number, number];
6072
+ operator: "between";
6073
+ } | {
6074
+ value: string;
6075
+ operator: "contains";
6076
+ } | {
6077
+ operator: "is_null";
6078
+ } | {
6079
+ top: number;
6080
+ } | {
6081
+ bottom: number;
6082
+ } | undefined;
6083
+ bars?: Record<string, unknown> | {
6084
+ color?: string | undefined;
6085
+ } | undefined;
6086
+ }, {
6087
+ column: string;
6088
+ cardId: string;
6089
+ op: "highlight.add";
6090
+ scale?: Record<string, unknown> | {
6091
+ low: string;
6092
+ high: string;
6093
+ mid?: string | undefined;
6094
+ } | undefined;
6095
+ color?: string | undefined;
6096
+ apply?: "row" | "cell" | undefined;
6097
+ when?: Record<string, unknown> | {
6098
+ value: string | number;
6099
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
6100
+ } | {
6101
+ values: [number, number];
6102
+ operator: "between";
6103
+ } | {
6104
+ value: string;
6105
+ operator: "contains";
6106
+ } | {
6107
+ operator: "is_null";
6108
+ } | {
6109
+ top: number;
6110
+ } | {
6111
+ bottom: number;
6112
+ } | undefined;
6113
+ bars?: Record<string, unknown> | {
6114
+ color?: string | undefined;
6115
+ } | undefined;
6116
+ } | {
6117
+ column: string;
6118
+ cardId: string;
6119
+ op: "highlight.add";
6120
+ scale?: Record<string, unknown> | {
6121
+ low: string;
6122
+ high: string;
6123
+ mid?: string | undefined;
6124
+ } | undefined;
6125
+ color?: string | undefined;
6126
+ apply?: "row" | "cell" | undefined;
6127
+ when?: Record<string, unknown> | {
6128
+ value: string | number;
6129
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
6130
+ } | {
6131
+ values: [number, number];
6132
+ operator: "between";
6133
+ } | {
6134
+ value: string;
6135
+ operator: "contains";
6136
+ } | {
6137
+ operator: "is_null";
6138
+ } | {
6139
+ top: number;
6140
+ } | {
6141
+ bottom: number;
6142
+ } | undefined;
6143
+ bars?: Record<string, unknown> | {
6144
+ color?: string | undefined;
6145
+ } | undefined;
6146
+ }>, z.ZodObject<{
6147
+ op: z.ZodLiteral<"highlight.remove">;
6148
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6149
+ ruleId: z.ZodString;
6150
+ }, "strict", z.ZodTypeAny, {
6151
+ cardId: string;
6152
+ op: "highlight.remove";
6153
+ ruleId: string;
6154
+ }, {
6155
+ cardId: string;
6156
+ op: "highlight.remove";
6157
+ ruleId: string;
6158
+ }>, z.ZodObject<{
6159
+ op: z.ZodLiteral<"dashboard.update">;
6160
+ title: z.ZodOptional<z.ZodString>;
6161
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6162
+ }, "strict", z.ZodTypeAny, {
6163
+ op: "dashboard.update";
6164
+ description?: string | null | undefined;
6165
+ title?: string | undefined;
6166
+ }, {
6167
+ op: "dashboard.update";
6168
+ description?: string | null | undefined;
6169
+ title?: string | undefined;
5896
6170
  }>]>;
5897
6171
  /** The ops of changes to a dashboard: the one list callers route by (semaphor-app's MCP change tools). */
5898
6172
  export declare const DASHBOARD_CHANGE_OPS: readonly DashboardChange['op'][];
@@ -5999,11 +6273,14 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
5999
6273
  }, {
6000
6274
  after: string;
6001
6275
  }>]>>;
6276
+ /** Card appearance: a card is born finished, with the settings `card.update` takes. */
6277
+ columns: z.ZodOptional<z.ZodTypeAny>;
6002
6278
  }, "strict", z.ZodTypeAny, {
6003
- type: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table";
6279
+ type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
6004
6280
  title: string;
6005
6281
  op: "card.add";
6006
6282
  description?: string | undefined;
6283
+ columns?: any;
6007
6284
  matrix?: {
6008
6285
  columns: (string | {
6009
6286
  name: string;
@@ -6023,15 +6300,16 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
6023
6300
  position?: "top" | "end" | {
6024
6301
  after: string;
6025
6302
  } | undefined;
6026
- sheetId?: string | undefined;
6027
6303
  width?: "quarter" | "full" | "half" | "third" | undefined;
6028
- query?: any;
6029
6304
  handle?: string | undefined;
6305
+ sheetId?: string | undefined;
6306
+ query?: any;
6030
6307
  }, {
6031
- type: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table";
6308
+ type: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table";
6032
6309
  title: string;
6033
6310
  op: "card.add";
6034
6311
  description?: string | undefined;
6312
+ columns?: any;
6035
6313
  matrix?: {
6036
6314
  columns: (string | {
6037
6315
  name: string;
@@ -6051,10 +6329,10 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
6051
6329
  position?: "top" | "end" | {
6052
6330
  after: string;
6053
6331
  } | undefined;
6054
- sheetId?: string | undefined;
6055
6332
  width?: "quarter" | "full" | "half" | "third" | undefined;
6056
- query?: any;
6057
6333
  handle?: string | undefined;
6334
+ sheetId?: string | undefined;
6335
+ query?: any;
6058
6336
  }>, z.ZodObject<{
6059
6337
  op: z.ZodLiteral<"card.update">;
6060
6338
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -6954,11 +7232,13 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
6954
7232
  } | undefined;
6955
7233
  })[];
6956
7234
  }>>;
7235
+ columns: z.ZodOptional<z.ZodTypeAny>;
6957
7236
  }, "strict", z.ZodTypeAny, {
6958
7237
  cardId: string;
6959
7238
  op: "card.update";
6960
- type?: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table" | undefined;
7239
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
6961
7240
  description?: string | null | undefined;
7241
+ columns?: any;
6962
7242
  matrix?: {
6963
7243
  columns: (string | {
6964
7244
  name: string;
@@ -7099,8 +7379,9 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7099
7379
  }, {
7100
7380
  cardId: string;
7101
7381
  op: "card.update";
7102
- type?: "table" | "matrix" | "bar" | "line" | "area" | "pie" | "kpi" | "detail_table" | undefined;
7382
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
7103
7383
  description?: string | null | undefined;
7384
+ columns?: any;
7104
7385
  matrix?: {
7105
7386
  columns: (string | {
7106
7387
  name: string;
@@ -7415,7 +7696,6 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7415
7696
  field: string;
7416
7697
  op: "filter.add";
7417
7698
  selection?: "single" | "multiple" | undefined;
7418
- sheetIds?: string[] | undefined;
7419
7699
  defaultValues?: (string | number | boolean)[] | undefined;
7420
7700
  handle?: string | undefined;
7421
7701
  defaultPeriod?: {
@@ -7434,6 +7714,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7434
7714
  start: string;
7435
7715
  end: string;
7436
7716
  } | undefined;
7717
+ sheetIds?: string[] | undefined;
7437
7718
  }, {
7438
7719
  domainId: string;
7439
7720
  datasetName: string;
@@ -7441,7 +7722,6 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7441
7722
  field: string;
7442
7723
  op: "filter.add";
7443
7724
  selection?: "single" | "multiple" | undefined;
7444
- sheetIds?: string[] | undefined;
7445
7725
  defaultValues?: (string | number | boolean)[] | undefined;
7446
7726
  handle?: string | undefined;
7447
7727
  defaultPeriod?: {
@@ -7460,6 +7740,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7460
7740
  start: string;
7461
7741
  end: string;
7462
7742
  } | undefined;
7743
+ sheetIds?: string[] | undefined;
7463
7744
  }>, z.ZodObject<{
7464
7745
  op: z.ZodLiteral<"filter.update">;
7465
7746
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -7623,7 +7904,6 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7623
7904
  op: "filter.update";
7624
7905
  label?: string | undefined;
7625
7906
  selection?: "single" | "multiple" | undefined;
7626
- sheetIds?: string[] | null | undefined;
7627
7907
  defaultValues?: (string | number | boolean)[] | null | undefined;
7628
7908
  defaultPeriod?: {
7629
7909
  value: number;
@@ -7641,12 +7921,12 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7641
7921
  start: string;
7642
7922
  end: string;
7643
7923
  } | null | undefined;
7924
+ sheetIds?: string[] | null | undefined;
7644
7925
  }, {
7645
7926
  filterId: string;
7646
7927
  op: "filter.update";
7647
7928
  label?: string | undefined;
7648
7929
  selection?: "single" | "multiple" | undefined;
7649
- sheetIds?: string[] | null | undefined;
7650
7930
  defaultValues?: (string | number | boolean)[] | null | undefined;
7651
7931
  defaultPeriod?: {
7652
7932
  value: number;
@@ -7664,6 +7944,7 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7664
7944
  start: string;
7665
7945
  end: string;
7666
7946
  } | null | undefined;
7947
+ sheetIds?: string[] | null | undefined;
7667
7948
  }>, z.ZodObject<{
7668
7949
  op: z.ZodLiteral<"filter.remove">;
7669
7950
  filterId: z.ZodString;
@@ -7692,28 +7973,28 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7692
7973
  datasetName: string;
7693
7974
  name: string;
7694
7975
  };
7695
- cardId: string;
7696
7976
  filterId: string;
7977
+ cardId: string;
7697
7978
  op: "filter.bind";
7698
7979
  }, {
7699
7980
  field: string | {
7700
7981
  datasetName: string;
7701
7982
  name: string;
7702
7983
  };
7703
- cardId: string;
7704
7984
  filterId: string;
7985
+ cardId: string;
7705
7986
  op: "filter.bind";
7706
7987
  }>, z.ZodObject<{
7707
7988
  op: z.ZodLiteral<"filter.exclude">;
7708
7989
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7709
7990
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7710
7991
  }, "strict", z.ZodTypeAny, {
7711
- cardId: string;
7712
7992
  filterId: string;
7993
+ cardId: string;
7713
7994
  op: "filter.exclude";
7714
7995
  }, {
7715
- cardId: string;
7716
7996
  filterId: string;
7997
+ cardId: string;
7717
7998
  op: "filter.exclude";
7718
7999
  }>, z.ZodObject<{
7719
8000
  op: z.ZodLiteral<"layout.arrange">;
@@ -7727,6 +8008,231 @@ export declare const proposedChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
7727
8008
  op: "layout.arrange";
7728
8009
  sheetId?: string | undefined;
7729
8010
  keepOrder?: boolean | undefined;
8011
+ }>, z.ZodObject<{
8012
+ when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8013
+ color: z.ZodOptional<z.ZodString>;
8014
+ scale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8015
+ bars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8016
+ op: z.ZodLiteral<"highlight.add">;
8017
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
8018
+ column: z.ZodString;
8019
+ apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
8020
+ } | {
8021
+ when: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
8022
+ operator: z.ZodEnum<["=", "!=", ">", ">=", "<", "<="]>;
8023
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
8024
+ }, "strict", z.ZodTypeAny, {
8025
+ value: string | number;
8026
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8027
+ }, {
8028
+ value: string | number;
8029
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8030
+ }>, z.ZodObject<{
8031
+ operator: z.ZodLiteral<"between">;
8032
+ values: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
8033
+ }, "strict", z.ZodTypeAny, {
8034
+ values: [number, number];
8035
+ operator: "between";
8036
+ }, {
8037
+ values: [number, number];
8038
+ operator: "between";
8039
+ }>, z.ZodObject<{
8040
+ operator: z.ZodLiteral<"contains">;
8041
+ value: z.ZodString;
8042
+ }, "strict", z.ZodTypeAny, {
8043
+ value: string;
8044
+ operator: "contains";
8045
+ }, {
8046
+ value: string;
8047
+ operator: "contains";
8048
+ }>, z.ZodObject<{
8049
+ operator: z.ZodLiteral<"is_null">;
8050
+ }, "strict", z.ZodTypeAny, {
8051
+ operator: "is_null";
8052
+ }, {
8053
+ operator: "is_null";
8054
+ }>, z.ZodObject<{
8055
+ top: z.ZodNumber;
8056
+ }, "strict", z.ZodTypeAny, {
8057
+ top: number;
8058
+ }, {
8059
+ top: number;
8060
+ }>, z.ZodObject<{
8061
+ bottom: z.ZodNumber;
8062
+ }, "strict", z.ZodTypeAny, {
8063
+ bottom: number;
8064
+ }, {
8065
+ bottom: number;
8066
+ }>]>>;
8067
+ color: z.ZodOptional<z.ZodString>;
8068
+ scale: z.ZodOptional<z.ZodObject<{
8069
+ low: z.ZodString;
8070
+ high: z.ZodString;
8071
+ mid: z.ZodOptional<z.ZodString>;
8072
+ }, "strict", z.ZodTypeAny, {
8073
+ low: string;
8074
+ high: string;
8075
+ mid?: string | undefined;
8076
+ }, {
8077
+ low: string;
8078
+ high: string;
8079
+ mid?: string | undefined;
8080
+ }>>;
8081
+ bars: z.ZodOptional<z.ZodObject<{
8082
+ color: z.ZodOptional<z.ZodString>;
8083
+ }, "strict", z.ZodTypeAny, {
8084
+ color?: string | undefined;
8085
+ }, {
8086
+ color?: string | undefined;
8087
+ }>>;
8088
+ op: z.ZodLiteral<"highlight.add">;
8089
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
8090
+ column: z.ZodString;
8091
+ apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
8092
+ }, "strict", z.ZodTypeAny, {
8093
+ column: string;
8094
+ cardId: string;
8095
+ op: "highlight.add";
8096
+ scale?: Record<string, unknown> | {
8097
+ low: string;
8098
+ high: string;
8099
+ mid?: string | undefined;
8100
+ } | undefined;
8101
+ color?: string | undefined;
8102
+ apply?: "row" | "cell" | undefined;
8103
+ when?: Record<string, unknown> | {
8104
+ value: string | number;
8105
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8106
+ } | {
8107
+ values: [number, number];
8108
+ operator: "between";
8109
+ } | {
8110
+ value: string;
8111
+ operator: "contains";
8112
+ } | {
8113
+ operator: "is_null";
8114
+ } | {
8115
+ top: number;
8116
+ } | {
8117
+ bottom: number;
8118
+ } | undefined;
8119
+ bars?: Record<string, unknown> | {
8120
+ color?: string | undefined;
8121
+ } | undefined;
8122
+ } | {
8123
+ column: string;
8124
+ cardId: string;
8125
+ op: "highlight.add";
8126
+ scale?: Record<string, unknown> | {
8127
+ low: string;
8128
+ high: string;
8129
+ mid?: string | undefined;
8130
+ } | undefined;
8131
+ color?: string | undefined;
8132
+ apply?: "row" | "cell" | undefined;
8133
+ when?: Record<string, unknown> | {
8134
+ value: string | number;
8135
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8136
+ } | {
8137
+ values: [number, number];
8138
+ operator: "between";
8139
+ } | {
8140
+ value: string;
8141
+ operator: "contains";
8142
+ } | {
8143
+ operator: "is_null";
8144
+ } | {
8145
+ top: number;
8146
+ } | {
8147
+ bottom: number;
8148
+ } | undefined;
8149
+ bars?: Record<string, unknown> | {
8150
+ color?: string | undefined;
8151
+ } | undefined;
8152
+ }, {
8153
+ column: string;
8154
+ cardId: string;
8155
+ op: "highlight.add";
8156
+ scale?: Record<string, unknown> | {
8157
+ low: string;
8158
+ high: string;
8159
+ mid?: string | undefined;
8160
+ } | undefined;
8161
+ color?: string | undefined;
8162
+ apply?: "row" | "cell" | undefined;
8163
+ when?: Record<string, unknown> | {
8164
+ value: string | number;
8165
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8166
+ } | {
8167
+ values: [number, number];
8168
+ operator: "between";
8169
+ } | {
8170
+ value: string;
8171
+ operator: "contains";
8172
+ } | {
8173
+ operator: "is_null";
8174
+ } | {
8175
+ top: number;
8176
+ } | {
8177
+ bottom: number;
8178
+ } | undefined;
8179
+ bars?: Record<string, unknown> | {
8180
+ color?: string | undefined;
8181
+ } | undefined;
8182
+ } | {
8183
+ column: string;
8184
+ cardId: string;
8185
+ op: "highlight.add";
8186
+ scale?: Record<string, unknown> | {
8187
+ low: string;
8188
+ high: string;
8189
+ mid?: string | undefined;
8190
+ } | undefined;
8191
+ color?: string | undefined;
8192
+ apply?: "row" | "cell" | undefined;
8193
+ when?: Record<string, unknown> | {
8194
+ value: string | number;
8195
+ operator: "=" | "!=" | ">" | ">=" | "<" | "<=";
8196
+ } | {
8197
+ values: [number, number];
8198
+ operator: "between";
8199
+ } | {
8200
+ value: string;
8201
+ operator: "contains";
8202
+ } | {
8203
+ operator: "is_null";
8204
+ } | {
8205
+ top: number;
8206
+ } | {
8207
+ bottom: number;
8208
+ } | undefined;
8209
+ bars?: Record<string, unknown> | {
8210
+ color?: string | undefined;
8211
+ } | undefined;
8212
+ }>, z.ZodObject<{
8213
+ op: z.ZodLiteral<"highlight.remove">;
8214
+ cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
8215
+ ruleId: z.ZodString;
8216
+ }, "strict", z.ZodTypeAny, {
8217
+ cardId: string;
8218
+ op: "highlight.remove";
8219
+ ruleId: string;
8220
+ }, {
8221
+ cardId: string;
8222
+ op: "highlight.remove";
8223
+ ruleId: string;
8224
+ }>, z.ZodObject<{
8225
+ op: z.ZodLiteral<"dashboard.update">;
8226
+ title: z.ZodOptional<z.ZodString>;
8227
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8228
+ }, "strict", z.ZodTypeAny, {
8229
+ op: "dashboard.update";
8230
+ description?: string | null | undefined;
8231
+ title?: string | undefined;
8232
+ }, {
8233
+ op: "dashboard.update";
8234
+ description?: string | null | undefined;
8235
+ title?: string | undefined;
7730
8236
  }>, z.ZodObject<{
7731
8237
  op: z.ZodLiteral<"relationship.add">;
7732
8238
  from: z.ZodObject<{
@@ -7837,15 +8343,26 @@ export type ProposeChangeCaller = {
7837
8343
  /**
7838
8344
  * The propose tool's input for one caller (DE-INV-7, design rule 5): only the
7839
8345
  * changes and query forms this caller may use. `shape` is what an MCP tool
7840
- * registers; `schema` parses a call. This is the one place that decides what
8346
+ * registers, with card settings summarized; `schema` parses a call and checks
8347
+ * them in full. This is the one place that decides what
7841
8348
  * on-screen propose accepts (LC-D17).
7842
8349
  */
7843
8350
  export declare function buildProposeChangeInputSchema(caller: ProposeChangeCaller): {
7844
- shape: z.ZodRawShape;
7845
- schema: z.ZodObject<z.ZodRawShape, "strict", z.ZodTypeAny, {
7846
- [x: string]: any;
7847
- }, {
7848
- [x: string]: any;
8351
+ shape: {
8352
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodDiscriminatedUnionOption<"op">, ...z.ZodDiscriminatedUnionOption<"op">[]]>, "many">;
8353
+ };
8354
+ schema: z.ZodObject<{
8355
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodDiscriminatedUnionOption<"op">, ...z.ZodDiscriminatedUnionOption<"op">[]]>, "many">;
8356
+ }, "strict", z.ZodTypeAny, {
8357
+ changes: {
8358
+ [x: string]: any;
8359
+ op?: unknown;
8360
+ }[];
8361
+ }, {
8362
+ changes: {
8363
+ [x: string]: any;
8364
+ op?: unknown;
8365
+ }[];
7849
8366
  }>;
7850
8367
  };
7851
8368
  export type ProposeChangeInput = {