react-semaphor 0.1.569 → 0.1.571

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 (112) hide show
  1. package/dist/appearance/index.js +6 -3
  2. package/dist/appearance-runtime/index.js +1 -1
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +570 -432
  5. package/dist/briefings/index.js +2 -2
  6. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  7. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  8. package/dist/chunks/assistant-chat-SkCraw2C.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-BoUV0iHF.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-D-aSYpyr.js} +72 -72
  12. package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
  13. package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-B_w_ekUz.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-_g1m2tJ3.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-CY0gbcCt.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-DsM79yem.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-RSEzJ9N7.js} +13 -12
  18. package/dist/chunks/edit-9df1zOWe.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-cX0FM-4i.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-thzt25Rc.js} +1303 -1226
  21. package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
  22. package/dist/chunks/index-BVKzKl5d.js +90 -0
  23. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  24. package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
  25. package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
  26. package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
  27. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  28. package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
  29. package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
  30. package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-B_GXs91t.js} +79 -79
  32. package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
  33. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  34. package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
  36. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  37. package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-CBQamwQY.js} +33931 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-Bkjf0XXw.js} +50 -50
  39. package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
  40. package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
  41. package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
  42. package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
  43. package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
  44. package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-DvglU8yj.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +2064 -1946
  47. package/dist/format-utils/index.js +8 -8
  48. package/dist/index.js +332 -335
  49. package/dist/layouts/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +1 -1
  52. package/dist/types/appearance/index.d.ts +1 -0
  53. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  54. package/dist/types/brand-studio/index.d.ts +1 -1
  55. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  56. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  57. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  58. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  59. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  60. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  61. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  62. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  63. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  64. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  65. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  66. package/dist/types/lib/appearance/index.d.ts +2 -0
  67. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  68. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  69. package/dist/types/lib/appearance/types.d.ts +38 -1
  70. package/dist/types/lib/charts/types.d.ts +6 -2
  71. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  72. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  73. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  74. package/dist/types/lib/download-pdf.d.ts +0 -1
  75. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  76. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  77. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  78. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  79. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  80. package/dist/types/lib/types/common-types.d.ts +3 -52
  81. package/dist/types/lib/types/summary-types.d.ts +0 -5
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  83. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  84. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
  85. package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  88. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +8 -0
  89. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
  90. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
  91. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  92. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  93. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  94. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  95. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  96. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +20 -0
  97. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  98. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  99. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  100. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  103. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  104. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +19 -0
  105. package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
  106. package/package.json +6 -3
  107. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  108. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  109. package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
  110. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  111. package/dist/chunks/index-CLIro-EG.js +0 -425
  112. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
@@ -1,6 +1,5 @@
1
1
  import { CardViewStateMap } from '../dashboard-view-state/index.js';
2
2
  import { TFilter, TFilterValue, Operation, TCustomFilterPreferences, DateSelectionMode, DefaultDateFilter, FilterFieldMeta, FilterSemanticContext } from '../../components/surfboard/filter/types.js';
3
- import { FontSpec } from 'chart.js';
4
3
  import { TChartType } from '../charts/types.js';
5
4
  import { QueryConfig } from './query-types.js';
6
5
  import { TablePreferences } from '../../components/visual/data-table/types/data-table.js';
@@ -20,6 +19,7 @@ import { CsvEncoding } from '../../shared/format-utils/exporters/csv-utils.js';
20
19
  import { DateCanonicalFormat } from '../../shared/format-utils/types/index.js';
21
20
  import { PresentationExecutionSnapshot, TemporalInputPresentation } from '../../shared/format-utils/index.js';
22
21
  import { JSX } from 'react';
22
+ import { DashboardStyle } from '../../shared/dashboard-authoring/dashboard-style/types.js';
23
23
  export type { DashboardFilterApplication, DashboardFilterBoundCardApplication, DashboardFilterCardApplication, DashboardFilterExcludedCardApplication, DashboardFilterTarget, DashboardFilterTargetField, DashboardFilterTargetSource, DashboardFilterOptionSource, } from '../../shared/dashboard-authoring/dashboard-filter-mapping-types.js';
24
24
  export type { ClickToFilterCardMapping, ClickToFilterFieldsRule, ClickToFilterMatrixSources, ClickToFilterSettings, LinkedClickToFilterOverrides, } from '../../shared/dashboard-authoring/click-to-filter-settings.js';
25
25
  export type Level = 'database' | 'schema' | 'table';
@@ -277,7 +277,6 @@ export type DashboardProps = {
277
277
  * run when this is explicitly "document".
278
278
  */
279
279
  renderMode?: 'dashboard' | 'document';
280
- customStyle?: TStyle;
281
280
  appearance?: import('../appearance/types.js').AppearanceSpec;
282
281
  currentTheme?: Theme;
283
282
  version?: string;
@@ -707,7 +706,6 @@ export type TCardPreferences = {
707
706
  onClickFilter?: FilterOnClick[];
708
707
  filterOnClick?: boolean;
709
708
  filterOnClickField?: string;
710
- filterOnClickColumnIndex?: number;
711
709
  sortChart?: 'asc' | 'desc' | 'none';
712
710
  datasetOptions?: TDatasetOptions[];
713
711
  chartOptions?: TChartOptions;
@@ -1625,46 +1623,6 @@ export type TSheet = {
1625
1623
  calculatedFields?: Field[];
1626
1624
  document?: DocumentDefinition;
1627
1625
  };
1628
- /**
1629
- * Style propeerites for the dashboard
1630
- */
1631
- export type StyleProps = {
1632
- /** Theme for dashboard background */
1633
- canvasTheme?: 'clear' | 'muted' | string;
1634
- /** css class for `dashboard-panel` */
1635
- dashboardPanel?: string;
1636
- /** css class for `dashboard-tabs-container` */
1637
- dashboardTabsContainer?: string;
1638
- /** css class for `dashboard-card` */
1639
- /** css class for `dashboard-card-container` */
1640
- dashboardCardContainer?: string;
1641
- dashboardCard?: string;
1642
- /** grid-layout config */
1643
- /**
1644
- * Border radius for the control inputs such as filter input, tabs, date picker, etc.
1645
- */
1646
- controlInputRadius?: number;
1647
- /**
1648
- * Border radius for the cards
1649
- */
1650
- cardBorderRadius?: number;
1651
- gridLayout?: {
1652
- /** css class for `react-grid-layout` */
1653
- className?: string;
1654
- margin?: [number, number];
1655
- };
1656
- /** chart config */
1657
- chart?: {
1658
- /** chart font config */
1659
- font?: Partial<FontSpec>;
1660
- dataset?: any;
1661
- /** chart options */
1662
- options?: any;
1663
- };
1664
- table?: {
1665
- tableHeaderColor?: string;
1666
- };
1667
- };
1668
1626
  export type TEvent = {
1669
1627
  type: 'success' | 'error' | 'info' | 'warning';
1670
1628
  message: any;
@@ -1695,13 +1653,6 @@ export type DashboardLifecycleEvent = {
1695
1653
  summary: string[];
1696
1654
  };
1697
1655
  };
1698
- /**
1699
- * Style for the dashboard
1700
- */
1701
- export type TStyle = {
1702
- default: StyleProps;
1703
- dark?: StyleProps;
1704
- };
1705
1656
  export type TBaseQuery = {
1706
1657
  id: string;
1707
1658
  name: string;
@@ -1734,11 +1685,11 @@ export type TDashboard = {
1734
1685
  description?: string;
1735
1686
  sheets?: TSheet[];
1736
1687
  calculatedFields?: Field[];
1737
- style?: TStyle;
1738
1688
  filters?: TFilter[];
1739
1689
  customCards?: CustomCard[];
1740
1690
  baseQueries?: TBaseQuery[];
1741
- globalStyle?: TStyle;
1691
+ /** The dashboard's own style: only what differs from the brand (dashboard style SPEC §3.1). */
1692
+ dashboardStyle?: DashboardStyle;
1742
1693
  globalCacheConfig?: CacheConfig;
1743
1694
  defaultFilterValues?: TFilterValue[];
1744
1695
  controls?: ControlDefinition[];
@@ -49,11 +49,6 @@ export type SummaryResponse = {
49
49
  warnings: SummaryWarningCode[];
50
50
  };
51
51
  };
52
- export type DashboardSummaryOverridePayload = {
53
- enabled?: boolean;
54
- position?: 'top' | 'bottom';
55
- maxItems?: number;
56
- };
57
52
  export type SummaryCardSummary = {
58
53
  cardId: string;
59
54
  cardTitle: string;
@@ -31,6 +31,7 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
31
31
  signDisplay: z.ZodOptional<z.ZodEnum<["auto", "always", "exceptZero", "never"]>>;
32
32
  }, "strict", z.ZodTypeAny, {
33
33
  type: "number" | "currency" | "percent" | "scientific";
34
+ compact?: boolean | undefined;
34
35
  currency?: string | undefined;
35
36
  scale?: number | undefined;
36
37
  minimumFractionDigits?: number | undefined;
@@ -39,11 +40,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
39
40
  prefix?: string | undefined;
40
41
  suffix?: string | undefined;
41
42
  negativeStyle?: "minus" | "parentheses" | undefined;
42
- compact?: boolean | undefined;
43
43
  percentValueMode?: "fraction" | "whole" | undefined;
44
44
  signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
45
45
  }, {
46
46
  type: "number" | "currency" | "percent" | "scientific";
47
+ compact?: boolean | undefined;
47
48
  currency?: string | undefined;
48
49
  scale?: number | undefined;
49
50
  minimumFractionDigits?: number | undefined;
@@ -52,11 +53,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
52
53
  prefix?: string | undefined;
53
54
  suffix?: string | undefined;
54
55
  negativeStyle?: "minus" | "parentheses" | undefined;
55
- compact?: boolean | undefined;
56
56
  percentValueMode?: "fraction" | "whole" | undefined;
57
57
  signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
58
58
  }>, {
59
59
  type: "number" | "currency" | "percent" | "scientific";
60
+ compact?: boolean | undefined;
60
61
  currency?: string | undefined;
61
62
  scale?: number | undefined;
62
63
  minimumFractionDigits?: number | undefined;
@@ -65,11 +66,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
65
66
  prefix?: string | undefined;
66
67
  suffix?: string | undefined;
67
68
  negativeStyle?: "minus" | "parentheses" | undefined;
68
- compact?: boolean | undefined;
69
69
  percentValueMode?: "fraction" | "whole" | undefined;
70
70
  signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
71
71
  }, {
72
72
  type: "number" | "currency" | "percent" | "scientific";
73
+ compact?: boolean | undefined;
73
74
  currency?: string | undefined;
74
75
  scale?: number | undefined;
75
76
  minimumFractionDigits?: number | undefined;
@@ -78,7 +79,6 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
78
79
  prefix?: string | undefined;
79
80
  suffix?: string | undefined;
80
81
  negativeStyle?: "minus" | "parentheses" | undefined;
81
- compact?: boolean | undefined;
82
82
  percentValueMode?: "fraction" | "whole" | undefined;
83
83
  signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
84
84
  }>;
@@ -374,7 +374,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
374
374
  expressionLanguage?: "semaphor_sql_template" | undefined;
375
375
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
376
376
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
377
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
377
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
378
378
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
379
379
  tags?: string[] | undefined;
380
380
  }, {
@@ -417,7 +417,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
417
417
  expressionLanguage?: "semaphor_sql_template" | undefined;
418
418
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
419
419
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
420
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
420
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
421
421
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
422
422
  tags?: string[] | undefined;
423
423
  }>, {
@@ -460,7 +460,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
460
460
  expressionLanguage?: "semaphor_sql_template" | undefined;
461
461
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
462
462
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
463
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
463
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
464
464
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
465
465
  tags?: string[] | undefined;
466
466
  }, {
@@ -503,7 +503,7 @@ export declare const configDerivedFieldSchema: z.ZodEffects<z.ZodObject<{
503
503
  expressionLanguage?: "semaphor_sql_template" | undefined;
504
504
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
505
505
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
506
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
506
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
507
507
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
508
508
  tags?: string[] | undefined;
509
509
  }>;
@@ -785,7 +785,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
785
785
  expressionLanguage?: "semaphor_sql_template" | undefined;
786
786
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
787
787
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
788
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
788
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
789
789
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
790
790
  tags?: string[] | undefined;
791
791
  }, {
@@ -828,7 +828,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
828
828
  expressionLanguage?: "semaphor_sql_template" | undefined;
829
829
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
830
830
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
831
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
831
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
832
832
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
833
833
  tags?: string[] | undefined;
834
834
  }>, {
@@ -871,7 +871,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
871
871
  expressionLanguage?: "semaphor_sql_template" | undefined;
872
872
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
873
873
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
874
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
874
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
875
875
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
876
876
  tags?: string[] | undefined;
877
877
  }, {
@@ -914,7 +914,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
914
914
  expressionLanguage?: "semaphor_sql_template" | undefined;
915
915
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
916
916
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
917
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
917
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
918
918
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
919
919
  tags?: string[] | undefined;
920
920
  }>>;
@@ -981,7 +981,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
981
981
  expressionLanguage?: "semaphor_sql_template" | undefined;
982
982
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
983
983
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
984
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
984
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
985
985
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
986
986
  tags?: string[] | undefined;
987
987
  } | undefined;
@@ -1048,7 +1048,7 @@ export declare const configExecutionFieldSchema: z.ZodObject<{
1048
1048
  expressionLanguage?: "semaphor_sql_template" | undefined;
1049
1049
  defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1050
1050
  aggregationBehavior?: "additive" | "non_additive" | "ratio_of_sums" | "weighted" | "pre_aggregated" | "snapshot" | undefined;
1051
- aggregationStrategy?: "weighted" | "default" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
1051
+ aggregationStrategy?: "default" | "weighted" | "symmetric_aggregate" | "aggregate_then_join" | undefined;
1052
1052
  format?: import('./contracts.js').SemaphorScalarValueFormat | undefined;
1053
1053
  tags?: string[] | undefined;
1054
1054
  } | undefined;
@@ -1384,6 +1384,48 @@ declare const definitionInputShape: z.ZodObject<{
1384
1384
  defaults: MatrixDefaultViewSchema;
1385
1385
  session: z.ZodOptional<MatrixViewStateSchema>;
1386
1386
  }, "strict", z.ZodTypeAny, {
1387
+ defaults: {
1388
+ columns: {
1389
+ depth: number;
1390
+ overrides: readonly {
1391
+ path: readonly {
1392
+ member: {
1393
+ value: string | number | boolean | {
1394
+ type: "integer" | "decimal";
1395
+ value: string;
1396
+ kind: "exact_number";
1397
+ } | null;
1398
+ kind: "value";
1399
+ } | {
1400
+ kind: "others";
1401
+ rankingId: string;
1402
+ };
1403
+ levelId: string;
1404
+ }[];
1405
+ expanded: boolean;
1406
+ }[];
1407
+ };
1408
+ rows: {
1409
+ depth: number;
1410
+ overrides: readonly {
1411
+ path: readonly {
1412
+ member: {
1413
+ value: string | number | boolean | {
1414
+ type: "integer" | "decimal";
1415
+ value: string;
1416
+ kind: "exact_number";
1417
+ } | null;
1418
+ kind: "value";
1419
+ } | {
1420
+ kind: "others";
1421
+ rankingId: string;
1422
+ };
1423
+ levelId: string;
1424
+ }[];
1425
+ expanded: boolean;
1426
+ }[];
1427
+ };
1428
+ };
1387
1429
  presentation: {
1388
1430
  totals: {
1389
1431
  columns: {
@@ -1497,7 +1539,7 @@ declare const definitionInputShape: z.ZodObject<{
1497
1539
  } | undefined;
1498
1540
  measureFilters?: readonly MatrixMeasureFilter[] | undefined;
1499
1541
  };
1500
- defaults: {
1542
+ session?: {
1501
1543
  columns: {
1502
1544
  depth: number;
1503
1545
  overrides: readonly {
@@ -1538,12 +1580,13 @@ declare const definitionInputShape: z.ZodObject<{
1538
1580
  expanded: boolean;
1539
1581
  }[];
1540
1582
  };
1541
- };
1542
- session?: {
1543
- columns: {
1544
- depth: number;
1545
- overrides: readonly {
1546
- path: readonly {
1583
+ sorts: readonly {
1584
+ target: MatrixSortTarget;
1585
+ scope: {
1586
+ kind: "level";
1587
+ } | {
1588
+ kind: "branch";
1589
+ parent: readonly {
1547
1590
  member: {
1548
1591
  value: string | number | boolean | {
1549
1592
  type: "integer" | "decimal";
@@ -1557,10 +1600,16 @@ declare const definitionInputShape: z.ZodObject<{
1557
1600
  };
1558
1601
  levelId: string;
1559
1602
  }[];
1560
- expanded: boolean;
1561
- }[];
1562
- };
1563
- rows: {
1603
+ };
1604
+ levelId: string;
1605
+ axis: "columns" | "rows";
1606
+ direction: "asc" | "desc";
1607
+ nulls: "last" | "first";
1608
+ }[];
1609
+ } | undefined;
1610
+ }, {
1611
+ defaults: {
1612
+ columns: {
1564
1613
  depth: number;
1565
1614
  overrides: readonly {
1566
1615
  path: readonly {
@@ -1580,13 +1629,10 @@ declare const definitionInputShape: z.ZodObject<{
1580
1629
  expanded: boolean;
1581
1630
  }[];
1582
1631
  };
1583
- sorts: readonly {
1584
- target: MatrixSortTarget;
1585
- scope: {
1586
- kind: "level";
1587
- } | {
1588
- kind: "branch";
1589
- parent: readonly {
1632
+ rows: {
1633
+ depth: number;
1634
+ overrides: readonly {
1635
+ path: readonly {
1590
1636
  member: {
1591
1637
  value: string | number | boolean | {
1592
1638
  type: "integer" | "decimal";
@@ -1600,14 +1646,10 @@ declare const definitionInputShape: z.ZodObject<{
1600
1646
  };
1601
1647
  levelId: string;
1602
1648
  }[];
1603
- };
1604
- levelId: string;
1605
- axis: "columns" | "rows";
1606
- direction: "asc" | "desc";
1607
- nulls: "last" | "first";
1608
- }[];
1609
- } | undefined;
1610
- }, {
1649
+ expanded: boolean;
1650
+ }[];
1651
+ };
1652
+ };
1611
1653
  presentation: {
1612
1654
  totals: {
1613
1655
  columns: {
@@ -1721,48 +1763,6 @@ declare const definitionInputShape: z.ZodObject<{
1721
1763
  } | undefined;
1722
1764
  measureFilters?: readonly MatrixMeasureFilter[] | undefined;
1723
1765
  };
1724
- defaults: {
1725
- columns: {
1726
- depth: number;
1727
- overrides: readonly {
1728
- path: readonly {
1729
- member: {
1730
- value: string | number | boolean | {
1731
- type: "integer" | "decimal";
1732
- value: string;
1733
- kind: "exact_number";
1734
- } | null;
1735
- kind: "value";
1736
- } | {
1737
- kind: "others";
1738
- rankingId: string;
1739
- };
1740
- levelId: string;
1741
- }[];
1742
- expanded: boolean;
1743
- }[];
1744
- };
1745
- rows: {
1746
- depth: number;
1747
- overrides: readonly {
1748
- path: readonly {
1749
- member: {
1750
- value: string | number | boolean | {
1751
- type: "integer" | "decimal";
1752
- value: string;
1753
- kind: "exact_number";
1754
- } | null;
1755
- kind: "value";
1756
- } | {
1757
- kind: "others";
1758
- rankingId: string;
1759
- };
1760
- levelId: string;
1761
- }[];
1762
- expanded: boolean;
1763
- }[];
1764
- };
1765
- };
1766
1766
  session?: {
1767
1767
  columns: {
1768
1768
  depth: number;
@@ -335,11 +335,11 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
335
335
  omittedValues: z.ZodOptional<z.ZodNumber>;
336
336
  }, "strict", z.ZodTypeAny, {
337
337
  text: string;
338
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
338
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
339
339
  omittedValues?: number | undefined;
340
340
  }, {
341
341
  text: string;
342
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
342
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
343
343
  omittedValues?: number | undefined;
344
344
  }>, "many">;
345
345
  controls: z.ZodArray<z.ZodObject<{
@@ -398,7 +398,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
398
398
  status: "described";
399
399
  filters: {
400
400
  text: string;
401
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
401
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
402
402
  omittedValues?: number | undefined;
403
403
  }[];
404
404
  fields: {
@@ -433,7 +433,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
433
433
  status: "described";
434
434
  filters: {
435
435
  text: string;
436
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
436
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
437
437
  omittedValues?: number | undefined;
438
438
  }[];
439
439
  fields: {
@@ -487,7 +487,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
487
487
  status: "described";
488
488
  filters: {
489
489
  text: string;
490
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
490
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
491
491
  omittedValues?: number | undefined;
492
492
  }[];
493
493
  fields: {
@@ -533,7 +533,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
533
533
  status: "described";
534
534
  filters: {
535
535
  text: string;
536
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
536
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
537
537
  omittedValues?: number | undefined;
538
538
  }[];
539
539
  fields: {
@@ -592,14 +592,14 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
592
592
  }>>;
593
593
  timeZone: z.ZodString;
594
594
  }, "strict", z.ZodTypeAny, {
595
- timeZone: string;
596
- version: 1;
597
595
  cards: {
598
596
  id: string;
599
597
  title: string;
600
598
  visualType: string;
601
599
  source?: SemaphorSourceRef | undefined;
602
600
  }[];
601
+ timeZone: string;
602
+ version: 1;
603
603
  surface: "none" | "dashboard" | "editor";
604
604
  otherSheets: {
605
605
  id: string;
@@ -639,7 +639,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
639
639
  status: "described";
640
640
  filters: {
641
641
  text: string;
642
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
642
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
643
643
  omittedValues?: number | undefined;
644
644
  }[];
645
645
  fields: {
@@ -684,14 +684,14 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
684
684
  mode: "sql" | "visual";
685
685
  } | undefined;
686
686
  }, {
687
- timeZone: string;
688
- version: 1;
689
687
  cards: {
690
688
  id: string;
691
689
  title: string;
692
690
  visualType: string;
693
691
  source?: SemaphorSourceRef | undefined;
694
692
  }[];
693
+ timeZone: string;
694
+ version: 1;
695
695
  surface: "none" | "dashboard" | "editor";
696
696
  otherSheets: {
697
697
  id: string;
@@ -731,7 +731,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
731
731
  status: "described";
732
732
  filters: {
733
733
  text: string;
734
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
734
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
735
735
  omittedValues?: number | undefined;
736
736
  }[];
737
737
  fields: {
@@ -776,14 +776,14 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
776
776
  mode: "sql" | "visual";
777
777
  } | undefined;
778
778
  }>, {
779
- timeZone: string;
780
- version: 1;
781
779
  cards: {
782
780
  id: string;
783
781
  title: string;
784
782
  visualType: string;
785
783
  source?: SemaphorSourceRef | undefined;
786
784
  }[];
785
+ timeZone: string;
786
+ version: 1;
787
787
  surface: "none" | "dashboard" | "editor";
788
788
  otherSheets: {
789
789
  id: string;
@@ -823,7 +823,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
823
823
  status: "described";
824
824
  filters: {
825
825
  text: string;
826
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
826
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
827
827
  omittedValues?: number | undefined;
828
828
  }[];
829
829
  fields: {
@@ -868,14 +868,14 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
868
868
  mode: "sql" | "visual";
869
869
  } | undefined;
870
870
  }, {
871
- timeZone: string;
872
- version: 1;
873
871
  cards: {
874
872
  id: string;
875
873
  title: string;
876
874
  visualType: string;
877
875
  source?: SemaphorSourceRef | undefined;
878
876
  }[];
877
+ timeZone: string;
878
+ version: 1;
879
879
  surface: "none" | "dashboard" | "editor";
880
880
  otherSheets: {
881
881
  id: string;
@@ -915,7 +915,7 @@ export declare const assistantContextSchema: z.ZodEffects<z.ZodObject<{
915
915
  status: "described";
916
916
  filters: {
917
917
  text: string;
918
- origin: "card" | "selection" | "drill" | "dashboard_input" | "card_input";
918
+ origin: "selection" | "card" | "drill" | "dashboard_input" | "card_input";
919
919
  omittedValues?: number | undefined;
920
920
  }[];
921
921
  fields: {