react-semaphor 0.1.553 → 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 (67) 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-DaIdRbbd.js → assistant-chat-ngs5dTvo.js} +12 -12
  6. package/dist/chunks/{bookmark-state-aGO7_ryE.js → bookmark-state-BAeGKd3s.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-BugAu7zS.js → comparison-window-caption-C2WNTlxK.js} +44 -44
  8. package/dist/chunks/{custom-visual-inputs-D7ez5sab.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
  9. package/dist/chunks/{dashboard-z3GYw7xR.js → dashboard-548YvEW5.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DBJ0xrfF.js → dashboard-briefing-launcher-ptIRn5FS.js} +13 -13
  11. package/dist/chunks/{dashboard-controls-CDX74NTl.js → dashboard-controls-CqyUTN6Q.js} +13 -13
  12. package/dist/chunks/{dashboard-json-Cf5dpYTr.js → dashboard-json-CvDFipA0.js} +4 -4
  13. package/dist/chunks/{document-dashboard-inputs-LMMWPOwU.js → document-dashboard-inputs-DrA9m-5H.js} +10 -10
  14. package/dist/chunks/{edit-dashboard-visual-hCGiyxgm.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
  15. package/dist/chunks/{filter-reach-copy-BG5qVZKS.js → filter-reach-copy-CyftKCZE.js} +13 -13
  16. package/dist/chunks/{filter-value-text-DwP5dN9m.js → filter-value-text-DMrpj4h9.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-Ce6Ydv2W.js → global-date-filter-utils-Or-3DL3k.js} +2358 -2301
  18. package/dist/chunks/{index-C_UIqop8.js → index-ClwmmbUH.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-cvzKdxPE.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
  20. package/dist/chunks/{matrix-card-VFE-yDlr.js → matrix-card-CVFVtqyo.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-B27bz08Y.js → matrix-formatter-K2OVPJQI.js} +18 -18
  22. package/dist/chunks/{matrix-member-presentation-DyC-e9pD.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-L_SiObB7.js → matrix-operation-contract--lMaLlpV.js} +64 -61
  24. package/dist/chunks/{metric-comparison-B5gyyW9k.js → metric-comparison-CYIt2F5X.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-BQFfowp1.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-dZIYsMrY.js → pivot-result-identity-BHJGZwIc.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-D0kSz5QX.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
  28. package/dist/chunks/{raw-temporal-presentation-BWRH754b.js → raw-temporal-presentation-gooAp93G.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-DvabpYcC.js → report-preferences-dialog-2tqY0BMQ.js} +15 -15
  30. package/dist/chunks/{report-runtime-context-CKiIubIu.js → report-runtime-context-BaIKSaja.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Ctq1YCDV.js → resolve-dashboard-input-context-bOKDTHfJ.js} +431 -429
  32. package/dist/chunks/{saved-dashboard-context-Bt1E9d1l.js → saved-dashboard-context--Hq1juf9.js} +8 -8
  33. package/dist/chunks/{selection-reducer-DdPwKDDQ.js → selection-reducer-yw_JgICP.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-Cc1TG_gw.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-Ch9XqytU.js → shelf-drop-preview-context-BuLzyT1T.js} +6 -6
  36. package/dist/chunks/{source-entity-resolution-DkW3Iek5.js → source-entity-resolution-CGymm5td.js} +1 -1
  37. package/dist/chunks/{switch-gm7RW-PW.js → switch-B-UTI6v-.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-C7bDdC8r.js → table-export-sheet-CgO6gaSM.js} +1 -1
  39. package/dist/chunks/{table-settings-CBm7G0yx.js → table-settings-DOT_Bv1m.js} +2 -2
  40. package/dist/chunks/{temporal-bucket-BikY3FFR.js → temporal-bucket-C4rqmwaQ.js} +24 -24
  41. package/dist/chunks/{token-types-B1p9F_wS.js → token-types-DYECHYGH.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-CZdDRUpc.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
  43. package/dist/chunks/{validators-BdBzm_EV.js → validators-ClKLGDGZ.js} +1078 -1056
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +16 -16
  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/surfboard/index.js +2 -2
  53. package/dist/types/index.js +6 -6
  54. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
  55. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
  56. package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
  57. package/dist/types/lib/utils/card-definition.d.ts +2 -1
  58. package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
  59. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  60. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
  61. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
  62. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
  63. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +14 -16
  64. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
  65. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  66. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
  67. package/package.json +1 -1
@@ -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>;
@@ -224,11 +224,11 @@ declare const matrixExecutionShape: {
224
224
  id: z.ZodString;
225
225
  kind: z.ZodLiteral<"aggregate">;
226
226
  field: z.ZodType<import('./matrix-definition-contract.js').MatrixField, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixField>;
227
- aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX"]>;
227
+ aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX", "MEDIAN"]>;
228
228
  }, "strict", z.ZodTypeAny, {
229
229
  id: string;
230
230
  kind: "aggregate";
231
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
231
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
232
232
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
233
233
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
234
234
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -244,7 +244,7 @@ declare const matrixExecutionShape: {
244
244
  }, {
245
245
  id: string;
246
246
  kind: "aggregate";
247
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
247
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
248
248
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
249
249
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
250
250
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -403,6 +403,7 @@ declare const matrixExecutionShape: {
403
403
  nulls: "last" | "first";
404
404
  }>, "many">>;
405
405
  rankings: z.ZodReadonly<z.ZodArray<z.ZodType<import('./matrix-definition-contract.js').MatrixRanking, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixRanking>, "many">>;
406
+ measureFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import('./matrix-definition-contract.js').MatrixMeasureFilter, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixMeasureFilter>, "many">>>;
406
407
  } & {
407
408
  kind: z.ZodLiteral<"matrix">;
408
409
  }, "strict", z.ZodTypeAny, {
@@ -428,7 +429,7 @@ declare const matrixExecutionShape: {
428
429
  measures: readonly ({
429
430
  id: string;
430
431
  kind: "aggregate";
431
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
432
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
432
433
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
433
434
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
434
435
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -487,6 +488,7 @@ declare const matrixExecutionShape: {
487
488
  relationshipHint?: {
488
489
  relationshipIds?: string[] | undefined;
489
490
  } | undefined;
491
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
490
492
  }, {
491
493
  kind: "matrix";
492
494
  source: {
@@ -510,7 +512,7 @@ declare const matrixExecutionShape: {
510
512
  measures: readonly ({
511
513
  id: string;
512
514
  kind: "aggregate";
513
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
515
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
514
516
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
515
517
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
516
518
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -569,6 +571,7 @@ declare const matrixExecutionShape: {
569
571
  relationshipHint?: {
570
572
  relationshipIds?: string[] | undefined;
571
573
  } | undefined;
574
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
572
575
  }>, {
573
576
  kind: "matrix";
574
577
  source: {
@@ -592,7 +595,7 @@ declare const matrixExecutionShape: {
592
595
  measures: readonly ({
593
596
  id: string;
594
597
  kind: "aggregate";
595
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
598
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
596
599
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
597
600
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
598
601
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -651,6 +654,7 @@ declare const matrixExecutionShape: {
651
654
  relationshipHint?: {
652
655
  relationshipIds?: string[] | undefined;
653
656
  } | undefined;
657
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
654
658
  }, {
655
659
  kind: "matrix";
656
660
  source: {
@@ -674,7 +678,7 @@ declare const matrixExecutionShape: {
674
678
  measures: readonly ({
675
679
  id: string;
676
680
  kind: "aggregate";
677
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
681
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
678
682
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
679
683
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
680
684
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -733,6 +737,7 @@ declare const matrixExecutionShape: {
733
737
  relationshipHint?: {
734
738
  relationshipIds?: string[] | undefined;
735
739
  } | undefined;
740
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
736
741
  }>;
737
742
  resultShape: z.ZodLiteral<"matrix">;
738
743
  result: z.ZodOptional<z.ZodType<{
@@ -58,11 +58,11 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
58
58
  id: z.ZodString;
59
59
  kind: z.ZodLiteral<"aggregate">;
60
60
  field: z.ZodType<import('./matrix-definition-contract.js').MatrixField, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixField>;
61
- aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX"]>;
61
+ aggregate: z.ZodEnum<["SUM", "COUNT", "DISTINCT", "AVG", "MIN", "MAX", "MEDIAN"]>;
62
62
  }, "strict", z.ZodTypeAny, {
63
63
  id: string;
64
64
  kind: "aggregate";
65
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
65
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
66
66
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
67
67
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
68
68
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -78,7 +78,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
78
78
  }, {
79
79
  id: string;
80
80
  kind: "aggregate";
81
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
81
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
82
82
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
83
83
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
84
84
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -237,6 +237,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
237
237
  nulls: "last" | "first";
238
238
  }>, "many">>;
239
239
  rankings: z.ZodReadonly<z.ZodArray<z.ZodType<import('./matrix-definition-contract.js').MatrixRanking, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixRanking>, "many">>;
240
+ measureFilters: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<import('./matrix-definition-contract.js').MatrixMeasureFilter, z.ZodTypeDef, import('./matrix-definition-contract.js').MatrixMeasureFilter>, "many">>>;
240
241
  } & {
241
242
  kind: z.ZodLiteral<"matrix">;
242
243
  }, "strict", z.ZodTypeAny, {
@@ -262,7 +263,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
262
263
  measures: readonly ({
263
264
  id: string;
264
265
  kind: "aggregate";
265
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
266
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
266
267
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
267
268
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
268
269
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -321,6 +322,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
321
322
  relationshipHint?: {
322
323
  relationshipIds?: string[] | undefined;
323
324
  } | undefined;
325
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
324
326
  }, {
325
327
  kind: "matrix";
326
328
  source: {
@@ -344,7 +346,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
344
346
  measures: readonly ({
345
347
  id: string;
346
348
  kind: "aggregate";
347
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
349
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
348
350
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
349
351
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
350
352
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -403,6 +405,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
403
405
  relationshipHint?: {
404
406
  relationshipIds?: string[] | undefined;
405
407
  } | undefined;
408
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
406
409
  }>, {
407
410
  kind: "matrix";
408
411
  source: {
@@ -426,7 +429,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
426
429
  measures: readonly ({
427
430
  id: string;
428
431
  kind: "aggregate";
429
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
432
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
430
433
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
431
434
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
432
435
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -485,6 +488,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
485
488
  relationshipHint?: {
486
489
  relationshipIds?: string[] | undefined;
487
490
  } | undefined;
491
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
488
492
  }, {
489
493
  kind: "matrix";
490
494
  source: {
@@ -508,7 +512,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
508
512
  measures: readonly ({
509
513
  id: string;
510
514
  kind: "aggregate";
511
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
515
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
512
516
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
513
517
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
514
518
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -567,6 +571,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
567
571
  relationshipHint?: {
568
572
  relationshipIds?: string[] | undefined;
569
573
  } | undefined;
574
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
570
575
  }>;
571
576
  matrixWindowRequest: z.ZodType<import('./matrix-window-contract.js').MatrixWindowRequest, z.ZodTypeDef, import('./matrix-window-contract.js').MatrixWindowRequest>;
572
577
  }, "strict", z.ZodTypeAny, {
@@ -593,7 +598,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
593
598
  measures: readonly ({
594
599
  id: string;
595
600
  kind: "aggregate";
596
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
601
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
597
602
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
598
603
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
599
604
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -652,6 +657,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
652
657
  relationshipHint?: {
653
658
  relationshipIds?: string[] | undefined;
654
659
  } | undefined;
660
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
655
661
  };
656
662
  matrixWindowRequest: import('./matrix-window-contract.js').MatrixWindowRequest;
657
663
  }, {
@@ -678,7 +684,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
678
684
  measures: readonly ({
679
685
  id: string;
680
686
  kind: "aggregate";
681
- aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT";
687
+ aggregate: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT";
682
688
  field: Omit<import('./contracts.js').SemaphorExecutionFieldRef, "source" | "aggregate" | "derivedField"> & {
683
689
  source?: import('./contracts.js').SemaphorMatrixSourceRef;
684
690
  derivedField?: Omit<import('./contracts.js').SemaphorDerivedFieldDefinition, "inputs"> & {
@@ -737,6 +743,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
737
743
  relationshipHint?: {
738
744
  relationshipIds?: string[] | undefined;
739
745
  } | undefined;
746
+ measureFilters?: readonly import('./matrix-definition-contract.js').MatrixMeasureFilter[] | undefined;
740
747
  };
741
748
  matrixWindowRequest: import('./matrix-window-contract.js').MatrixWindowRequest;
742
749
  }>;