react-semaphor 0.1.552 → 0.1.554

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 (73) hide show
  1. package/dist/analytics-protocol/index.js +228 -227
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +5 -5
  5. package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
  6. package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
  8. package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
  9. package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
  11. package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
  12. package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
  13. package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
  14. package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
  15. package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
  16. package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
  18. package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
  20. package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
  22. package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
  24. package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
  28. package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
  30. package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
  32. package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
  33. package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
  36. package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
  37. package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
  39. package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
  40. package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
  41. package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
  43. package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +273 -264
  46. package/dist/data-app-sdk/index.js +5 -5
  47. package/dist/data-app-sdk-adapters/index.js +2 -2
  48. package/dist/data-app-sdk-validation/index.js +5 -5
  49. package/dist/format-utils/index.js +15 -15
  50. package/dist/index.js +21 -21
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/index.js +6 -6
  55. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
  56. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
  57. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
  58. package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
  59. package/dist/types/lib/utils/card-definition.d.ts +2 -1
  60. package/dist/types/lib/utils/card-type-change.d.ts +5 -1
  61. package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
  62. package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
  63. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  64. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
  65. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
  66. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
  67. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
  68. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  69. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
  70. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
  71. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  72. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
  73. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { a, R as s, D as o } from "../chunks/report-preferences-dialog-C0uGI0v7.js";
2
- import { C as f, E as D } from "../chunks/table-settings-WysCBj62.js";
1
+ import { a, R as s, D as o } from "../chunks/report-preferences-dialog-2tqY0BMQ.js";
2
+ import { C as f, E as D } from "../chunks/table-settings-DOT_Bv1m.js";
3
3
  export {
4
4
  f as CONTROL_CARD_DEFAULT_VALUE,
5
5
  a as DisplayFormatPreferencesFields,
@@ -1,9 +1,9 @@
1
- import { C as s, E as r, V as l, i as o, c as i, g as n, f as d, b as m, e as u, d as E, a as c, u as p, s as C, h as T, j as D, q as A, o as I, m as _, n as F, p as S, k as b, l as L, r as f, t as N } from "../chunks/table-settings-WysCBj62.js";
2
- import { C as y, D as M, L as g, P as h, e as x, g as O, j as V, h as k, k as w, d as U, b as B, i as K, c as z, n as v, f as P } from "../chunks/validators-C-aOQlTB.js";
3
- import { D as q } from "../chunks/token-types-BMqRmT-C.js";
4
- import { B as Q, a as j, p as W, r as J } from "../chunks/bookmark-state-Cu-a5ie_.js";
5
- import { r as H, a as Z } from "../chunks/pivot-result-identity-C-Q1j1Wb.js";
6
- import { D as ee } from "../chunks/report-runtime-context-hWiTCzFV.js";
1
+ import { C as s, E as r, V as l, i as o, c as i, g as n, f as d, b as m, e as u, d as E, a as c, u as p, s as C, h as T, j as D, q as A, o as I, m as _, n as F, p as S, k as b, l as L, r as f, t as N } from "../chunks/table-settings-DOT_Bv1m.js";
2
+ import { C as y, D as M, L as g, P as h, e as x, g as O, j as V, h as k, k as w, d as U, b as B, i as K, c as z, n as v, f as P } from "../chunks/validators-ClKLGDGZ.js";
3
+ import { D as q } from "../chunks/token-types-DYECHYGH.js";
4
+ import { B as Q, a as j, p as W, r as J } from "../chunks/bookmark-state-BAeGKd3s.js";
5
+ import { r as H, a as Z } from "../chunks/pivot-result-identity-BHJGZwIc.js";
6
+ import { D as ee } from "../chunks/report-runtime-context-BaIKSaja.js";
7
7
  const e = [
8
8
  "concatenate",
9
9
  "conditional-category",
@@ -11,5 +11,8 @@ import { TDashboard } from '../types/common-types.js';
11
11
  * and the server's saved-dashboard reader, so they all hold the same shape.
12
12
  * The same object when nothing changes. Alias-based text is bound to stable
13
13
  * input ids before the upgrade (`upgradeToStoredDashboard`, ledger P5-11).
14
+ * Last, every Pivot and Hierarchical card the converter can carry exactly
15
+ * loads as a Matrix card (pivot-aggregate-to-matrix PM-D1, PM-D3): in memory
16
+ * only, stored as Matrix when someone saves.
14
17
  */
15
18
  export declare function prepareLoadedDashboard<TDashboardShape extends TDashboard>(dashboard: TDashboardShape): TDashboardShape;
@@ -267,7 +267,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
267
267
  measures: readonly ({
268
268
  id: string;
269
269
  kind: "aggregate";
270
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
270
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
271
271
  field: Omit<import('../../shared/analytics-protocol/index.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
272
272
  source?: import('../../shared/analytics-protocol/index.js').SemaphorMatrixSourceRef;
273
273
  derivedField?: Omit<import('../../shared/analytics-protocol/index.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -326,6 +326,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
326
326
  relationshipHint?: {
327
327
  relationshipIds?: string[] | undefined;
328
328
  } | undefined;
329
+ measureFilters?: readonly import('../../shared/analytics-protocol/index.js').MatrixMeasureFilter[] | undefined;
329
330
  };
330
331
  defaultView: {
331
332
  columns: {
@@ -449,7 +450,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
449
450
  }[];
450
451
  metrics: {
451
452
  id: string;
452
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
453
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
453
454
  role: "metric";
454
455
  derivedField?: import('../../shared/analytics-protocol/index.js').SemaphorDerivedFieldDefinition;
455
456
  name: string;
@@ -334,7 +334,7 @@ export declare function buildMatrixDeliveryPayload(input: {
334
334
  measures: readonly ({
335
335
  id: string;
336
336
  kind: "aggregate";
337
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
337
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
338
338
  field: Omit<import('../../shared/analytics-protocol/index.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
339
339
  source?: import('../../shared/analytics-protocol/index.js').SemaphorMatrixSourceRef;
340
340
  derivedField?: Omit<import('../../shared/analytics-protocol/index.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -393,6 +393,7 @@ export declare function buildMatrixDeliveryPayload(input: {
393
393
  relationshipHint?: {
394
394
  relationshipIds?: string[] | undefined;
395
395
  } | undefined;
396
+ measureFilters?: readonly import('../../shared/analytics-protocol/index.js').MatrixMeasureFilter[] | undefined;
396
397
  };
397
398
  expansion: {
398
399
  kind: "current";
@@ -686,7 +687,7 @@ export declare function buildMatrixDeliveryPayload(input: {
686
687
  measures: readonly ({
687
688
  id: string;
688
689
  kind: "aggregate";
689
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
690
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
690
691
  field: Omit<import('../../shared/analytics-protocol/index.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
691
692
  source?: import('../../shared/analytics-protocol/index.js').SemaphorMatrixSourceRef;
692
693
  derivedField?: Omit<import('../../shared/analytics-protocol/index.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -745,6 +746,7 @@ export declare function buildMatrixDeliveryPayload(input: {
745
746
  relationshipHint?: {
746
747
  relationshipIds?: string[] | undefined;
747
748
  } | undefined;
749
+ measureFilters?: readonly import('../../shared/analytics-protocol/index.js').MatrixMeasureFilter[] | undefined;
748
750
  };
749
751
  };
750
752
  delimiter: "," | ";" | "\t";
@@ -0,0 +1,61 @@
1
+ import { CardConfig, DataSource, Field, FilterGroup, JoinPlan } from '../types/explorer-types.js';
2
+ import { TCard } from '../types/common-types.js';
3
+ /** Matrix acquisition requires its structured definition, never an authored SQL query. */
4
+ export declare function supportsSqlEditor(cardType: TCard['type']): boolean;
5
+ export declare function hasEditorResultsView(cardType: TCard['type']): boolean;
6
+ export declare function hasEditorInfoView(cardType: TCard['type']): boolean;
7
+ /** The deprecated table types every saved card of which loads as Matrix (pivot-aggregate-to-matrix). */
8
+ export declare const LEGACY_TABLE_CARD_TYPES: readonly ["pivotTable", "aggregateTable"];
9
+ export type LegacyTableCardType = (typeof LEGACY_TABLE_CARD_TYPES)[number];
10
+ export declare function isLegacyTableCard(card: Pick<TCard, 'type'>): card is Pick<TCard, 'type'> & {
11
+ type: LegacyTableCardType;
12
+ };
13
+ /**
14
+ * Why one data part did not carry exactly (pivot-aggregate-to-matrix PM-D12).
15
+ * The problem-area codes (PA-n) are the shapes a later rule will translate;
16
+ * display differences are never gaps (PM-D15).
17
+ */
18
+ export type CardTypeChangeGapCode = 'calculated_metric_per_row' | 'calculated_metric_without_stage' | 'calculated_field_card_scope' | 'calculated_field_dashboard_scope' | 'source_field_renamed' | 'join_not_carried' | 'metric_parameters' | 'unknown_field_property' | 'calculated_level_without_inputs' | 'field_not_resolvable' | 'filter_not_accepted' | 'control_binding' | 'no_shelf_fields' | 'matrix_definition_incomplete' | 'detail_columns' | 'matrix_field_not_on_shelves' | 'not_in_detail_table';
19
+ export type CardTypeChangeGap = {
20
+ code: CardTypeChangeGapCode;
21
+ label: string;
22
+ };
23
+ export type MatrixRepresentationChange = {
24
+ card: Partial<TCard>;
25
+ /** Authored data parts the next representation does not accept, in shelf order. */
26
+ gaps: readonly CardTypeChangeGap[];
27
+ };
28
+ /**
29
+ * Crossing the Matrix boundary carries the card's authored definition (MS-D12):
30
+ * rows, pivot columns, metrics, the join and filters are read once through
31
+ * `getCardDefinition` and written into the next representation by each part's
32
+ * own writer. A data part the next representation refuses is a gap. Into
33
+ * Matrix, number formats carry, and from a Pivot or Hierarchical card the
34
+ * expansion and the visible totals too (PM-D5); every other display setting
35
+ * takes the Matrix defaults. SQL, Python and control bindings start fresh.
36
+ * Needs the loaded column catalog to complete join keys and resolve Matrix
37
+ * fields; without it, keys saved with their identity still carry.
38
+ */
39
+ export declare function convertMatrixRepresentation(card: TCard, nextType: TCard['type'], catalog?: readonly Field[],
40
+ /** Mints each carried Matrix field's instance id; a replayed conversion passes stored ids (DE-D54). */
41
+ createId?: () => string): MatrixRepresentationChange;
42
+ /** The switch reads the catalog only when it has something to carry. */
43
+ export declare function matrixSwitchNeedsCatalog(card: TCard, nextType: TCard['type']): boolean;
44
+ /** Replacing the base dataset starts a new definition; metadata refresh does not. */
45
+ export declare function withAuthoredCardDataSource(card: TCard, dataSource: DataSource): Partial<TCard>;
46
+ export declare function getAuthoredCardJoinPlan(card: Pick<TCard, 'type' | 'config'>): JoinPlan | undefined;
47
+ /** The normal join editor writes the canonical definition, including empty drafts. */
48
+ export declare function withAuthoredCardJoinPlan(card: Pick<TCard, 'type' | 'config' | 'dataSource'>, joinPlan: JoinPlan | undefined): CardConfig;
49
+ /** Authored predicates from the card's canonical representation. */
50
+ export declare function getAuthoredCardFilters(card: Pick<TCard, 'type' | 'config'> | undefined): FilterGroup | undefined;
51
+ export declare function withAuthoredCardFilters(card: Pick<TCard, 'type' | 'config' | 'dataSource'>, filters: FilterGroup | undefined): CardConfig;
52
+ /**
53
+ * Checks if a card config object has actual configuration data
54
+ * An empty config object {} should be treated as no config
55
+ */
56
+ export declare function hasValidCardConfig(config: CardConfig | undefined, cardType?: TCard['type']): boolean;
57
+ type CardSetupCheckOptions = {
58
+ skipSetupCheck?: boolean;
59
+ };
60
+ export declare function isCardUnconfigured(card: Pick<TCard, 'type' | 'sql' | 'config' | 'connectionId' | 'dataSource' | 'customCardPreferences'>, options?: CardSetupCheckOptions): boolean;
61
+ export {};
@@ -275,7 +275,7 @@ export declare function getCardDefinition(card: DefinitionCard, catalog?: Matrix
275
275
  measures: readonly ({
276
276
  id: string;
277
277
  kind: "aggregate";
278
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
278
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
279
279
  field: Omit<import('../../shared/analytics-protocol/index.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
280
280
  source?: import('../../shared/analytics-protocol/index.js').SemaphorMatrixSourceRef;
281
281
  derivedField?: Omit<import('../../data-app-sdk.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -334,6 +334,7 @@ export declare function getCardDefinition(card: DefinitionCard, catalog?: Matrix
334
334
  relationshipHint?: {
335
335
  relationshipIds?: string[] | undefined;
336
336
  } | undefined;
337
+ measureFilters?: readonly import('../../shared/analytics-protocol/matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
337
338
  };
338
339
  defaultView: {
339
340
  columns: {
@@ -1,5 +1,7 @@
1
1
  import { TCard, TCardPreferences, TCustomCardPreferences } from '../types/common-types.js';
2
2
  import { Field } from '../types/explorer-types.js';
3
+ import { CardTypeChangeGap } from './card-config-utils.js';
4
+ export type { CardTypeChangeGap, CardTypeChangeGapCode } from './card-config-utils.js';
3
5
  export declare function sharedCardPreferences(preferences: TCardPreferences | undefined): TCardPreferences;
4
6
  export type CardTypeChangeOptions = {
5
7
  /** The loaded column catalog; the Matrix carry resolves fields against it. */
@@ -22,7 +24,9 @@ export type CardTypeChange = {
22
24
  } | {
23
25
  status: 'changed';
24
26
  card: TCard;
25
- /** Labels of authored parts the new type could not keep. */
27
+ /** Authored data parts the new type could not keep, with why (pivot-aggregate-to-matrix PM-D12). */
28
+ gaps: readonly CardTypeChangeGap[];
29
+ /** The gaps' labels, in the same order, for readers that only name them. */
26
30
  leftOut: readonly string[];
27
31
  /** Chart-scoped preference keys the new type drops (DE-D43). */
28
32
  droppedPreferences: readonly (keyof TCardPreferences)[];
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { Field, FilterGroup, JoinPlan } from '../../lib/types/explorer-types.js';
3
+ /** The roles a field may carry; the Matrix carry drops any other (pivot-aggregate-to-matrix PA-19). */
4
+ export declare const explorerFieldRoleSchema: z.ZodEnum<["groupby", "metric", "sortby", "pivotby", "detail"]>;
3
5
  export declare const explorerFieldSchema: z.ZodType<Field>;
4
6
  export declare const filterGroupSchema: z.ZodType<FilterGroup>;
5
7
  export declare const joinPlanSchema: z.ZodType<JoinPlan>;
@@ -46,7 +46,7 @@ export * from './matrix-window-contract.js';
46
46
  export * from './matrix-member-presentation.js';
47
47
  export { matrixFormattingRoleSchema, type MatrixFormattingRole } from './matrix-path-contract.js';
48
48
  export { getMatrixAnalyticalDefinition } from './matrix-analytical-definition.js';
49
- export { matrixAxisSchema, matrixAggregateSchema, matrixFieldSchema, matrixLevelSchema, matrixMeasureSchema, matrixMemberSchema, matrixPathSchema, matrixCoordinateSchema, matrixSortTargetSchema, matrixSortSchema, matrixRankingSchema, matrixPathKey, matrixSortKey, matrixSpecSchema, matrixTotalPresentationSchema, MATRIX_TOTAL_MEMBER_PLACEHOLDER, matrixPresentationSchema, matrixExpansionSchema, matrixDefaultViewSchema, matrixViewStateSchema, matrixDefinitionInputSchema, matrixConfigSchema, matrixExportRequestSchema, } from './matrix-definition-contract.js';
50
- export type { MatrixLevelId, MatrixMeasureId, MatrixAxis, MatrixAggregate, MatrixField, MatrixLevel, MatrixMeasure, MatrixMember, MatrixPath, MatrixCoordinate, MatrixSortTarget, MatrixSort, MatrixRanking, MatrixSpec, MatrixTotalPresentation, MatrixPresentation, MatrixExpansion, MatrixViewState, MatrixConfig, MatrixDefinitionInput, MatrixExportRequest, } from './matrix-definition-contract.js';
49
+ export { matrixAxisSchema, matrixAggregateSchema, matrixFieldSchema, matrixLevelSchema, matrixMeasureSchema, matrixMemberSchema, matrixPathSchema, matrixCoordinateSchema, matrixSortTargetSchema, matrixSortSchema, matrixRankingSchema, matrixMeasureFilterSchema, matrixPathKey, matrixSortKey, matrixSpecSchema, matrixTotalPresentationSchema, MATRIX_TOTAL_MEMBER_PLACEHOLDER, matrixPresentationSchema, matrixExpansionSchema, matrixDefaultViewSchema, matrixViewStateSchema, matrixDefinitionInputSchema, matrixConfigSchema, matrixExportRequestSchema, } from './matrix-definition-contract.js';
50
+ export type { MatrixLevelId, MatrixMeasureId, MatrixAxis, MatrixAggregate, MatrixField, MatrixLevel, MatrixMeasure, MatrixMember, MatrixPath, MatrixCoordinate, MatrixSortTarget, MatrixSort, MatrixRanking, MatrixMeasureFilter, MatrixMeasureFilterOperator, MatrixSpec, MatrixTotalPresentation, MatrixPresentation, MatrixExpansion, MatrixViewState, MatrixConfig, MatrixDefinitionInput, MatrixExportRequest, } from './matrix-definition-contract.js';
51
51
  export * from './matrix-operation-contract.js';
52
52
  export { configSourceRefSchema } from './execution-input-schemas.js';
@@ -250,5 +250,6 @@ export declare function getMatrixAnalyticalDefinition(spec: MatrixSpec): {
250
250
  relationshipIds?: string[];
251
251
  };
252
252
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
253
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[];
253
254
  };
254
255
  export {};
@@ -5,7 +5,7 @@ import { FilterGroup, JoinPlan } from '../../lib/types/explorer-types.js';
5
5
  export { matrixAxisSchema, matrixMemberSchema, matrixPathSchema, matrixCoordinateSchema, matrixPathKey, type MatrixAxis, type MatrixMember, type MatrixPath, type MatrixCoordinate } from './matrix-path-contract.js';
6
6
  export type MatrixLevelId = string;
7
7
  export type MatrixMeasureId = string;
8
- export type MatrixAggregate = 'SUM' | 'COUNT' | 'DISTINCT' | 'AVG' | 'MIN' | 'MAX';
8
+ export type MatrixAggregate = 'SUM' | 'COUNT' | 'DISTINCT' | 'AVG' | 'MIN' | 'MAX' | 'MEDIAN';
9
9
  type MatrixDerivedFieldInput = {
10
10
  kind: 'field';
11
11
  field: Omit<SemaphorFieldRef, 'source'> & {
@@ -65,6 +65,23 @@ export type MatrixRanking = {
65
65
  oppositePath: MatrixPath;
66
66
  others: boolean;
67
67
  };
68
+ /** Comparisons from the shared filter vocabulary; range bounds are inclusive. */
69
+ export type MatrixMeasureFilterOperator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'between' | 'not between';
70
+ /**
71
+ * Keeps the members of one level whose own value of a measure passes the
72
+ * condition. The value covers the member's descendants and the whole other
73
+ * axis, after card filters; excluded members leave with their descendants,
74
+ * and every total covers kept members only (matrix-median-measure-filters
75
+ * MF-D6 to MF-D10).
76
+ */
77
+ export type MatrixMeasureFilter = {
78
+ id: string;
79
+ axis: MatrixAxis;
80
+ levelId: MatrixLevelId;
81
+ measureId: MatrixMeasureId;
82
+ operator: MatrixMeasureFilterOperator;
83
+ value: number | readonly [number, number];
84
+ };
68
85
  export type MatrixSpec = {
69
86
  source: SemaphorMatrixSourceRef;
70
87
  rows: readonly MatrixLevel[];
@@ -77,19 +94,20 @@ export type MatrixSpec = {
77
94
  };
78
95
  sorts: readonly MatrixSort[];
79
96
  rankings: readonly MatrixRanking[];
97
+ measureFilters?: readonly MatrixMeasureFilter[];
80
98
  };
81
- export declare const matrixAggregateSchema: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX"]>;
99
+ export declare const matrixAggregateSchema: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX", "MEDIAN"]>;
82
100
  export declare const matrixFieldSchema: z.ZodType<MatrixField>;
83
101
  export declare const matrixLevelSchema: z.ZodType<MatrixLevel>;
84
102
  declare const aggregateMeasureSchema: z.ZodObject<{
85
103
  id: z.ZodString;
86
104
  kind: z.ZodLiteral<"aggregate">;
87
105
  field: z.ZodType<MatrixField, z.ZodTypeDef, MatrixField>;
88
- aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX"]>;
106
+ aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX", "MEDIAN"]>;
89
107
  }, "strict", z.ZodTypeAny, {
90
108
  id: string;
91
109
  kind: "aggregate";
92
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
110
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
93
111
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
94
112
  source?: SemaphorMatrixSourceRef;
95
113
  derivedField?: MatrixDerivedFieldDefinition;
@@ -97,7 +115,7 @@ declare const aggregateMeasureSchema: z.ZodObject<{
97
115
  }, {
98
116
  id: string;
99
117
  kind: "aggregate";
100
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
118
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
101
119
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
102
120
  source?: SemaphorMatrixSourceRef;
103
121
  derivedField?: MatrixDerivedFieldDefinition;
@@ -175,6 +193,7 @@ declare const matrixSortFields: {
175
193
  type MatrixSortSchema = z.ZodObject<typeof matrixSortFields, 'strict'>;
176
194
  export declare const matrixSortSchema: MatrixSortSchema;
177
195
  export declare const matrixRankingSchema: z.ZodType<MatrixRanking>;
196
+ export declare const matrixMeasureFilterSchema: z.ZodType<MatrixMeasureFilter>;
178
197
  declare const specShape: z.ZodObject<{
179
198
  source: z.ZodUnion<[z.ZodObject<{
180
199
  kind: z.ZodLiteral<"semantic">;
@@ -241,6 +260,7 @@ declare const specShape: z.ZodObject<{
241
260
  }>>;
242
261
  sorts: z.ZodReadonly<z.ZodArray<MatrixSortSchema, "many">>;
243
262
  rankings: z.ZodReadonly<z.ZodArray<z.ZodType<MatrixRanking, z.ZodTypeDef, MatrixRanking>, "many">>;
263
+ measureFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<MatrixMeasureFilter, z.ZodTypeDef, MatrixMeasureFilter>, "many">>>;
244
264
  }, "strict", z.ZodTypeAny, {
245
265
  source: {
246
266
  kind: "semantic";
@@ -263,7 +283,7 @@ declare const specShape: z.ZodObject<{
263
283
  measures: readonly ({
264
284
  id: string;
265
285
  kind: "aggregate";
266
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
286
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
267
287
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
268
288
  source?: SemaphorMatrixSourceRef;
269
289
  derivedField?: MatrixDerivedFieldDefinition;
@@ -308,6 +328,7 @@ declare const specShape: z.ZodObject<{
308
328
  relationshipHint?: {
309
329
  relationshipIds?: string[] | undefined;
310
330
  } | undefined;
331
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
311
332
  }, {
312
333
  source: {
313
334
  kind: "semantic";
@@ -330,7 +351,7 @@ declare const specShape: z.ZodObject<{
330
351
  measures: readonly ({
331
352
  id: string;
332
353
  kind: "aggregate";
333
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
354
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
334
355
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
335
356
  source?: SemaphorMatrixSourceRef;
336
357
  derivedField?: MatrixDerivedFieldDefinition;
@@ -375,6 +396,7 @@ declare const specShape: z.ZodObject<{
375
396
  relationshipHint?: {
376
397
  relationshipIds?: string[] | undefined;
377
398
  } | undefined;
399
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
378
400
  }>;
379
401
  export declare function matrixSortKey(sort: Pick<MatrixSort, 'axis' | 'levelId' | 'scope'>): string;
380
402
  type Spec = MatrixSpec;
@@ -445,6 +467,7 @@ declare const authoringSpecShape: z.ZodObject<{
445
467
  }>>;
446
468
  sorts: z.ZodReadonly<z.ZodArray<MatrixSortSchema, "many">>;
447
469
  rankings: z.ZodReadonly<z.ZodArray<z.ZodType<MatrixRanking, z.ZodTypeDef, MatrixRanking>, "many">>;
470
+ measureFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<MatrixMeasureFilter, z.ZodTypeDef, MatrixMeasureFilter>, "many">>>;
448
471
  } & {
449
472
  rows: z.ZodReadonly<z.ZodArray<z.ZodType<MatrixLevel, z.ZodTypeDef, MatrixLevel>, "many">>;
450
473
  measures: z.ZodReadonly<z.ZodArray<MatrixMeasureSchema, "many">>;
@@ -470,7 +493,7 @@ declare const authoringSpecShape: z.ZodObject<{
470
493
  measures: readonly ({
471
494
  id: string;
472
495
  kind: "aggregate";
473
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
496
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
474
497
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
475
498
  source?: SemaphorMatrixSourceRef;
476
499
  derivedField?: MatrixDerivedFieldDefinition;
@@ -515,6 +538,7 @@ declare const authoringSpecShape: z.ZodObject<{
515
538
  relationshipHint?: {
516
539
  relationshipIds?: string[] | undefined;
517
540
  } | undefined;
541
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
518
542
  }, {
519
543
  source: {
520
544
  kind: "semantic";
@@ -537,7 +561,7 @@ declare const authoringSpecShape: z.ZodObject<{
537
561
  measures: readonly ({
538
562
  id: string;
539
563
  kind: "aggregate";
540
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
564
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
541
565
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
542
566
  source?: SemaphorMatrixSourceRef;
543
567
  derivedField?: MatrixDerivedFieldDefinition;
@@ -582,6 +606,7 @@ declare const authoringSpecShape: z.ZodObject<{
582
606
  relationshipHint?: {
583
607
  relationshipIds?: string[] | undefined;
584
608
  } | undefined;
609
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
585
610
  }>;
586
611
  type MatrixAuthoringSpecSchema = z.ZodEffects<typeof authoringSpecShape>;
587
612
  /** Editor-only incomplete shelves. Execution and persistence use matrixSpecSchema. */
@@ -652,6 +677,7 @@ declare const analyticalIntentShape: z.ZodObject<{
652
677
  }>>;
653
678
  sorts: z.ZodReadonly<z.ZodArray<MatrixSortSchema, "many">>;
654
679
  rankings: z.ZodReadonly<z.ZodArray<z.ZodType<MatrixRanking, z.ZodTypeDef, MatrixRanking>, "many">>;
680
+ measureFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<MatrixMeasureFilter, z.ZodTypeDef, MatrixMeasureFilter>, "many">>>;
655
681
  } & {
656
682
  kind: z.ZodLiteral<"matrix">;
657
683
  }, "strict", z.ZodTypeAny, {
@@ -677,7 +703,7 @@ declare const analyticalIntentShape: z.ZodObject<{
677
703
  measures: readonly ({
678
704
  id: string;
679
705
  kind: "aggregate";
680
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
706
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
681
707
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
682
708
  source?: SemaphorMatrixSourceRef;
683
709
  derivedField?: MatrixDerivedFieldDefinition;
@@ -722,6 +748,7 @@ declare const analyticalIntentShape: z.ZodObject<{
722
748
  relationshipHint?: {
723
749
  relationshipIds?: string[] | undefined;
724
750
  } | undefined;
751
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
725
752
  }, {
726
753
  kind: "matrix";
727
754
  source: {
@@ -745,7 +772,7 @@ declare const analyticalIntentShape: z.ZodObject<{
745
772
  measures: readonly ({
746
773
  id: string;
747
774
  kind: "aggregate";
748
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
775
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
749
776
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
750
777
  source?: SemaphorMatrixSourceRef;
751
778
  derivedField?: MatrixDerivedFieldDefinition;
@@ -790,6 +817,7 @@ declare const analyticalIntentShape: z.ZodObject<{
790
817
  relationshipHint?: {
791
818
  relationshipIds?: string[] | undefined;
792
819
  } | undefined;
820
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
793
821
  }>;
794
822
  type MatrixAnalyticalIntentSchema = z.ZodEffects<typeof analyticalIntentShape>;
795
823
  /** Analytical definition only; acquisition windows are sibling operation inputs. */
@@ -4163,7 +4191,7 @@ declare const definitionInputShape: z.ZodObject<{
4163
4191
  measures: readonly ({
4164
4192
  id: string;
4165
4193
  kind: "aggregate";
4166
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
4194
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
4167
4195
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
4168
4196
  source?: SemaphorMatrixSourceRef;
4169
4197
  derivedField?: MatrixDerivedFieldDefinition;
@@ -4208,6 +4236,7 @@ declare const definitionInputShape: z.ZodObject<{
4208
4236
  relationshipHint?: {
4209
4237
  relationshipIds?: string[] | undefined;
4210
4238
  } | undefined;
4239
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
4211
4240
  };
4212
4241
  defaults: {
4213
4242
  columns: {
@@ -4564,7 +4593,7 @@ declare const definitionInputShape: z.ZodObject<{
4564
4593
  measures: readonly ({
4565
4594
  id: string;
4566
4595
  kind: "aggregate";
4567
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
4596
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
4568
4597
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
4569
4598
  source?: SemaphorMatrixSourceRef;
4570
4599
  derivedField?: MatrixDerivedFieldDefinition;
@@ -4609,6 +4638,7 @@ declare const definitionInputShape: z.ZodObject<{
4609
4638
  relationshipHint?: {
4610
4639
  relationshipIds?: string[] | undefined;
4611
4640
  } | undefined;
4641
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
4612
4642
  };
4613
4643
  defaults: {
4614
4644
  columns: {
@@ -4975,7 +5005,7 @@ declare const configShape: z.ZodObject<{
4975
5005
  measures: readonly ({
4976
5006
  id: string;
4977
5007
  kind: "aggregate";
4978
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
5008
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
4979
5009
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
4980
5010
  source?: SemaphorMatrixSourceRef;
4981
5011
  derivedField?: MatrixDerivedFieldDefinition;
@@ -5020,6 +5050,7 @@ declare const configShape: z.ZodObject<{
5020
5050
  relationshipHint?: {
5021
5051
  relationshipIds?: string[] | undefined;
5022
5052
  } | undefined;
5053
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
5023
5054
  };
5024
5055
  defaultView: {
5025
5056
  columns: {
@@ -5309,7 +5340,7 @@ declare const configShape: z.ZodObject<{
5309
5340
  measures: readonly ({
5310
5341
  id: string;
5311
5342
  kind: "aggregate";
5312
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
5343
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
5313
5344
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
5314
5345
  source?: SemaphorMatrixSourceRef;
5315
5346
  derivedField?: MatrixDerivedFieldDefinition;
@@ -5354,6 +5385,7 @@ declare const configShape: z.ZodObject<{
5354
5385
  relationshipHint?: {
5355
5386
  relationshipIds?: string[] | undefined;
5356
5387
  } | undefined;
5388
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
5357
5389
  };
5358
5390
  defaultView: {
5359
5391
  columns: {
@@ -5653,7 +5685,7 @@ declare const authoringConfigShape: z.ZodObject<{
5653
5685
  measures: readonly ({
5654
5686
  id: string;
5655
5687
  kind: "aggregate";
5656
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
5688
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
5657
5689
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
5658
5690
  source?: SemaphorMatrixSourceRef;
5659
5691
  derivedField?: MatrixDerivedFieldDefinition;
@@ -5698,6 +5730,7 @@ declare const authoringConfigShape: z.ZodObject<{
5698
5730
  relationshipHint?: {
5699
5731
  relationshipIds?: string[] | undefined;
5700
5732
  } | undefined;
5733
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
5701
5734
  };
5702
5735
  defaultView: {
5703
5736
  columns: {
@@ -5987,7 +6020,7 @@ declare const authoringConfigShape: z.ZodObject<{
5987
6020
  measures: readonly ({
5988
6021
  id: string;
5989
6022
  kind: "aggregate";
5990
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
6023
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
5991
6024
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
5992
6025
  source?: SemaphorMatrixSourceRef;
5993
6026
  derivedField?: MatrixDerivedFieldDefinition;
@@ -6032,6 +6065,7 @@ declare const authoringConfigShape: z.ZodObject<{
6032
6065
  relationshipHint?: {
6033
6066
  relationshipIds?: string[] | undefined;
6034
6067
  } | undefined;
6068
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
6035
6069
  };
6036
6070
  defaultView: {
6037
6071
  columns: {
@@ -6427,7 +6461,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6427
6461
  measures: readonly ({
6428
6462
  id: string;
6429
6463
  kind: "aggregate";
6430
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
6464
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
6431
6465
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
6432
6466
  source?: SemaphorMatrixSourceRef;
6433
6467
  derivedField?: MatrixDerivedFieldDefinition;
@@ -6472,6 +6506,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6472
6506
  relationshipHint?: {
6473
6507
  relationshipIds?: string[] | undefined;
6474
6508
  } | undefined;
6509
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
6475
6510
  };
6476
6511
  expansion: {
6477
6512
  kind: "current";
@@ -6765,7 +6800,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6765
6800
  measures: readonly ({
6766
6801
  id: string;
6767
6802
  kind: "aggregate";
6768
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
6803
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
6769
6804
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
6770
6805
  source?: SemaphorMatrixSourceRef;
6771
6806
  derivedField?: MatrixDerivedFieldDefinition;
@@ -6810,6 +6845,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6810
6845
  relationshipHint?: {
6811
6846
  relationshipIds?: string[] | undefined;
6812
6847
  } | undefined;
6848
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
6813
6849
  };
6814
6850
  expansion: {
6815
6851
  kind: "current";
@@ -7109,7 +7145,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7109
7145
  measures: readonly ({
7110
7146
  id: string;
7111
7147
  kind: "aggregate";
7112
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
7148
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
7113
7149
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
7114
7150
  source?: SemaphorMatrixSourceRef;
7115
7151
  derivedField?: MatrixDerivedFieldDefinition;
@@ -7154,6 +7190,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7154
7190
  relationshipHint?: {
7155
7191
  relationshipIds?: string[] | undefined;
7156
7192
  } | undefined;
7193
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
7157
7194
  };
7158
7195
  }, {
7159
7196
  mode: "flat";
@@ -7402,7 +7439,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7402
7439
  measures: readonly ({
7403
7440
  id: string;
7404
7441
  kind: "aggregate";
7405
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
7442
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
7406
7443
  field: Omit<SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
7407
7444
  source?: SemaphorMatrixSourceRef;
7408
7445
  derivedField?: MatrixDerivedFieldDefinition;
@@ -7447,6 +7484,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7447
7484
  relationshipHint?: {
7448
7485
  relationshipIds?: string[] | undefined;
7449
7486
  } | undefined;
7487
+ measureFilters?: readonly MatrixMeasureFilter[] | undefined;
7450
7488
  };
7451
7489
  }>]>;
7452
7490
  type MatrixExportRequestSchema = z.ZodEffects<typeof exportRequestShape>;