react-semaphor 0.1.526 → 0.1.527

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 (175) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1179 -296
  3. package/dist/brand-studio/index.js +15 -15
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DEhjPSr-.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BlIbwkuD.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-D9pFByPh.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-CJI5ZWMq.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DLdrFry-.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-D5LjWle1.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-G91NQKxU.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-CbjuruKe.js → index-BvJOYbNv.js} +755 -745
  17. package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
  18. package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BypfLZsK.js} +11 -11
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
  22. package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
  23. package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
  24. package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
  25. package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
  26. package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
  27. package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
  29. package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
  30. package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
  31. package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
  32. package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-D3hxu4sE.js} +131 -132
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-C7Um5XN-.js} +47 -26
  35. package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-D46I_4g7.js} +49895 -46141
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-B6LELqx6.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-_7uBAbYx.js +24003 -0
  40. package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
  41. package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
  42. package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
  43. package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
  44. package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
  45. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  46. package/dist/dashboard/index.js +1 -1
  47. package/dist/dashboard-authoring/index.js +138 -137
  48. package/dist/data-app-sdk/index.js +12 -12
  49. package/dist/data-app-sdk-adapters/index.js +23 -22
  50. package/dist/data-app-sdk-validation/index.js +27 -26
  51. package/dist/format-utils/index.js +247 -329
  52. package/dist/index.js +165 -168
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +1 -1
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  58. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  59. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  60. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  61. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  62. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  63. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  64. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  65. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  66. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  67. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  68. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  69. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  70. package/dist/types/index.js +5 -5
  71. package/dist/types/lib/api/exports-api.d.ts +3 -0
  72. package/dist/types/lib/csv-download.d.ts +9 -0
  73. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  74. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  75. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  76. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  77. package/dist/types/lib/export-utils.d.ts +17 -15
  78. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  79. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  80. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  81. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  82. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  83. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  84. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  85. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  86. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  87. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  88. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  89. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  90. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  91. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  92. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  93. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  94. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  95. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  96. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  97. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  98. package/dist/types/lib/types/common-types.d.ts +5 -0
  99. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  100. package/dist/types/lib/types/token-types.d.ts +0 -1
  101. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  102. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  103. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  104. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  105. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
  107. package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
  108. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  109. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  110. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  111. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
  112. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  113. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  114. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  115. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  116. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  117. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  118. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  119. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  120. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  121. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  122. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  123. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  124. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  125. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  126. package/dist/types/shared/temporal/index.d.ts +5 -0
  127. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  128. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  129. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  130. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  131. package/package.json +1 -17
  132. package/src/data-app-sdk/README.md +6 -3
  133. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  134. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  135. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  136. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  137. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  138. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  139. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  140. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  141. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  142. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  143. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  144. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  145. package/dist/data-app-builder/index.js +0 -3666
  146. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  147. package/dist/data-app-codegen/index.js +0 -22
  148. package/dist/data-app-codegen-node/index.js +0 -1807
  149. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  150. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  151. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  152. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  153. package/dist/types/data-app-builder/constants.d.ts +0 -14
  154. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  155. package/dist/types/data-app-builder/index.d.ts +0 -1
  156. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  157. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  158. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  159. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  160. package/dist/types/data-app-builder/types.d.ts +0 -558
  161. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  162. package/dist/types/data-app-builder.d.ts +0 -2
  163. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  164. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  165. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  166. package/dist/types/data-app-codegen/index.d.ts +0 -6
  167. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  168. package/dist/types/data-app-codegen/node.d.ts +0 -2
  169. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  170. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  171. package/dist/types/data-app-codegen-node.d.ts +0 -2
  172. package/dist/types/data-app-codegen.d.ts +0 -2
  173. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  174. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  175. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -0,0 +1,38 @@
1
+ import { RelativeDateFilter } from '../../shared/analytics-protocol/relative-date-filter.js';
2
+ import { CalendarContext } from '../../shared/report-runtime-context/index.js';
3
+ import { ResolvedTemporalValueFormatPreferences } from '../../shared/value-format-preferences/index.js';
4
+ export type RelativeDateDescription = {
5
+ label: string;
6
+ /** The window as of the calendar's anchor, or null when the browser can't know it. */
7
+ range: {
8
+ start: Date;
9
+ end: Date;
10
+ } | null;
11
+ };
12
+ export type RelativeDateCalendar = Pick<CalendarContext, 'tz' | 'weekStart' | 'anchor'>;
13
+ export declare const RELATIVE_DATES_FOLLOW_CALENDAR = "Dates follow your calendar each time the card runs.";
14
+ /** A window that counts back from the latest data has no dates the browser can know. */
15
+ export declare const RELATIVE_DATES_FOLLOW_DATA = "Dates count back from the latest data each time the card runs.";
16
+ /** What a latest-value condition reads as (analytics kernel K13). */
17
+ export declare const LATEST_VALUE_LABEL = "Latest value";
18
+ /** Display-only description of a relative date; the server resolves the real window. */
19
+ export declare function describeRelativeDate(relative: RelativeDateFilter, calendar: RelativeDateCalendar): RelativeDateDescription;
20
+ /** What a relative date reads as: its label, and its dates when known. */
21
+ export type RelativeDateSummary = {
22
+ label: string;
23
+ /** The current window as the shared date-input presenter writes it. */
24
+ dates: string | null;
25
+ /** The current window itself, when `dates` is known. */
26
+ range: {
27
+ start: Date;
28
+ end: Date;
29
+ } | null;
30
+ };
31
+ /**
32
+ * The label and today's dates of a relative date, written in the viewer's
33
+ * date preferences: the same text a text card shows for a date filter.
34
+ */
35
+ export declare function summarizeRelativeDate(relative: RelativeDateFilter, context: {
36
+ calendar: RelativeDateCalendar;
37
+ preferences: ResolvedTemporalValueFormatPreferences;
38
+ }): RelativeDateSummary;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { matrixAnalyticalIntentSchema } from './matrix-definition-contract.js';
3
3
  import { matrixResultSchema } from './matrix-window-contract.js';
4
4
  import { CalendarContext } from '../report-runtime-context/index.js';
5
+ import { DateUnit } from './relative-date-filter.js';
5
6
  export type SemaphorProtocolVersion = 1;
6
7
  export type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
7
8
  export type SemaphorSourceLevel = 'database' | 'schema' | 'table';
@@ -351,12 +352,20 @@ export type SemaphorRelativeTimeWindow = {
351
352
  anchor?: 'now' | 'latest_available';
352
353
  completeness?: 'include_partial' | 'complete_periods';
353
354
  };
355
+ /** A whole calendar period, such as this month or the previous quarter. */
356
+ export type SemaphorCalendarTimeWindow = {
357
+ kind: 'calendar';
358
+ unit: DateUnit;
359
+ period: 'this' | 'previous';
360
+ /** Only with period "this": the period so far, ending at the anchor. */
361
+ toDate?: boolean;
362
+ };
354
363
  export type SemaphorAbsoluteTimeWindow = {
355
364
  kind: 'absolute';
356
365
  start: string;
357
366
  end: string;
358
367
  };
359
- export type SemaphorTimeWindow = SemaphorRelativeTimeWindow | SemaphorAbsoluteTimeWindow;
368
+ export type SemaphorTimeWindow = SemaphorRelativeTimeWindow | SemaphorCalendarTimeWindow | SemaphorAbsoluteTimeWindow;
360
369
  export type SemaphorPaginationRequest = {
361
370
  page: number;
362
371
  pageSize: number;
@@ -816,12 +825,6 @@ export type SemaphorOperationIntent = {
816
825
  targetDashboardId?: string;
817
826
  analyticsIntent?: SemaphorAnalyticsIntent;
818
827
  context?: Record<string, unknown>;
819
- } | {
820
- version: SemaphorProtocolVersion;
821
- kind: 'data_app_change';
822
- instruction: string;
823
- analyticsIntent?: SemaphorAnalyticsIntent;
824
- context?: Record<string, unknown>;
825
828
  };
826
829
  export type SemaphorRecoveryToolCall = {
827
830
  name: 'semaphor_get_dataset_schema' | 'semaphor_analyze' | 'semaphor_query_sql_advanced' | string;
@@ -5,7 +5,6 @@ export * from './option-relevance.js';
5
5
  export * from './validators.js';
6
6
  export * from './analyze-result-contract.js';
7
7
  export * from './catalog-field-grounding.js';
8
- export * from './data-app-codegen-summary.js';
9
8
  export * from './runtime-schemas.js';
10
9
  export * from './source-capabilities.js';
11
10
  export * from './catalog-source-address.js';
@@ -21,6 +20,18 @@ export * from './selection-filter-compiler.js';
21
20
  export * from './temporal-context.js';
22
21
  export * from './temporal-bucket-contract.js';
23
22
  export * from './raw-temporal-contract.js';
23
+ export * from './relative-date-filter.js';
24
+ export * from './relative-date-label.js';
25
+ export * from './operation-temporal-state.js';
26
+ /**
27
+ * The saved filter contract, strict: a key outside it (an execution-only
28
+ * field the server adds while it runs a filter) fails to parse, so a save
29
+ * point can prove it saves no run state (temporal predicate contract E2).
30
+ */
31
+ export { filterGroupSchema as savedFilterGroupSchema } from './explorer-input-schemas.js';
32
+ export * from '../temporal/index.js';
33
+ export * from './time-window.js';
34
+ export * from './time-window-schema.js';
24
35
  export * from './scalar-value.js';
25
36
  export * from './matrix-window-contract.js';
26
37
  export * from './matrix-member-presentation.js';
@@ -300,7 +300,7 @@ declare const specShape: z.ZodObject<{
300
300
  levelId: string;
301
301
  axis: "columns" | "rows";
302
302
  direction: "asc" | "desc";
303
- nulls: "first" | "last";
303
+ nulls: "last" | "first";
304
304
  }[];
305
305
  rankings: readonly MatrixRanking[];
306
306
  filters?: FilterGroup | undefined;
@@ -367,7 +367,7 @@ declare const specShape: z.ZodObject<{
367
367
  levelId: string;
368
368
  axis: "columns" | "rows";
369
369
  direction: "asc" | "desc";
370
- nulls: "first" | "last";
370
+ nulls: "last" | "first";
371
371
  }[];
372
372
  rankings: readonly MatrixRanking[];
373
373
  filters?: FilterGroup | undefined;
@@ -507,7 +507,7 @@ declare const authoringSpecShape: z.ZodObject<{
507
507
  levelId: string;
508
508
  axis: "columns" | "rows";
509
509
  direction: "asc" | "desc";
510
- nulls: "first" | "last";
510
+ nulls: "last" | "first";
511
511
  }[];
512
512
  rankings: readonly MatrixRanking[];
513
513
  filters?: FilterGroup | undefined;
@@ -574,7 +574,7 @@ declare const authoringSpecShape: z.ZodObject<{
574
574
  levelId: string;
575
575
  axis: "columns" | "rows";
576
576
  direction: "asc" | "desc";
577
- nulls: "first" | "last";
577
+ nulls: "last" | "first";
578
578
  }[];
579
579
  rankings: readonly MatrixRanking[];
580
580
  filters?: FilterGroup | undefined;
@@ -714,7 +714,7 @@ declare const analyticalIntentShape: z.ZodObject<{
714
714
  levelId: string;
715
715
  axis: "columns" | "rows";
716
716
  direction: "asc" | "desc";
717
- nulls: "first" | "last";
717
+ nulls: "last" | "first";
718
718
  }[];
719
719
  rankings: readonly MatrixRanking[];
720
720
  filters?: FilterGroup | undefined;
@@ -782,7 +782,7 @@ declare const analyticalIntentShape: z.ZodObject<{
782
782
  levelId: string;
783
783
  axis: "columns" | "rows";
784
784
  direction: "asc" | "desc";
785
- nulls: "first" | "last";
785
+ nulls: "last" | "first";
786
786
  }[];
787
787
  rankings: readonly MatrixRanking[];
788
788
  filters?: FilterGroup | undefined;
@@ -3837,7 +3837,7 @@ declare const viewStateShape: z.ZodObject<{
3837
3837
  levelId: string;
3838
3838
  axis: "columns" | "rows";
3839
3839
  direction: "asc" | "desc";
3840
- nulls: "first" | "last";
3840
+ nulls: "last" | "first";
3841
3841
  }[];
3842
3842
  }, {
3843
3843
  columns: {
@@ -3904,7 +3904,7 @@ declare const viewStateShape: z.ZodObject<{
3904
3904
  levelId: string;
3905
3905
  axis: "columns" | "rows";
3906
3906
  direction: "asc" | "desc";
3907
- nulls: "first" | "last";
3907
+ nulls: "last" | "first";
3908
3908
  }[];
3909
3909
  }>;
3910
3910
  type MatrixViewStateSchema = z.ZodEffects<typeof viewStateShape>;
@@ -4200,7 +4200,7 @@ declare const definitionInputShape: z.ZodObject<{
4200
4200
  levelId: string;
4201
4201
  axis: "columns" | "rows";
4202
4202
  direction: "asc" | "desc";
4203
- nulls: "first" | "last";
4203
+ nulls: "last" | "first";
4204
4204
  }[];
4205
4205
  rankings: readonly MatrixRanking[];
4206
4206
  filters?: FilterGroup | undefined;
@@ -4316,7 +4316,7 @@ declare const definitionInputShape: z.ZodObject<{
4316
4316
  levelId: string;
4317
4317
  axis: "columns" | "rows";
4318
4318
  direction: "asc" | "desc";
4319
- nulls: "first" | "last";
4319
+ nulls: "last" | "first";
4320
4320
  }[];
4321
4321
  } | undefined;
4322
4322
  }, {
@@ -4601,7 +4601,7 @@ declare const definitionInputShape: z.ZodObject<{
4601
4601
  levelId: string;
4602
4602
  axis: "columns" | "rows";
4603
4603
  direction: "asc" | "desc";
4604
- nulls: "first" | "last";
4604
+ nulls: "last" | "first";
4605
4605
  }[];
4606
4606
  rankings: readonly MatrixRanking[];
4607
4607
  filters?: FilterGroup | undefined;
@@ -4717,7 +4717,7 @@ declare const definitionInputShape: z.ZodObject<{
4717
4717
  levelId: string;
4718
4718
  axis: "columns" | "rows";
4719
4719
  direction: "asc" | "desc";
4720
- nulls: "first" | "last";
4720
+ nulls: "last" | "first";
4721
4721
  }[];
4722
4722
  } | undefined;
4723
4723
  }>;
@@ -5012,7 +5012,7 @@ declare const configShape: z.ZodObject<{
5012
5012
  levelId: string;
5013
5013
  axis: "columns" | "rows";
5014
5014
  direction: "asc" | "desc";
5015
- nulls: "first" | "last";
5015
+ nulls: "last" | "first";
5016
5016
  }[];
5017
5017
  rankings: readonly MatrixRanking[];
5018
5018
  filters?: FilterGroup | undefined;
@@ -5346,7 +5346,7 @@ declare const configShape: z.ZodObject<{
5346
5346
  levelId: string;
5347
5347
  axis: "columns" | "rows";
5348
5348
  direction: "asc" | "desc";
5349
- nulls: "first" | "last";
5349
+ nulls: "last" | "first";
5350
5350
  }[];
5351
5351
  rankings: readonly MatrixRanking[];
5352
5352
  filters?: FilterGroup | undefined;
@@ -5690,7 +5690,7 @@ declare const authoringConfigShape: z.ZodObject<{
5690
5690
  levelId: string;
5691
5691
  axis: "columns" | "rows";
5692
5692
  direction: "asc" | "desc";
5693
- nulls: "first" | "last";
5693
+ nulls: "last" | "first";
5694
5694
  }[];
5695
5695
  rankings: readonly MatrixRanking[];
5696
5696
  filters?: FilterGroup | undefined;
@@ -6024,7 +6024,7 @@ declare const authoringConfigShape: z.ZodObject<{
6024
6024
  levelId: string;
6025
6025
  axis: "columns" | "rows";
6026
6026
  direction: "asc" | "desc";
6027
- nulls: "first" | "last";
6027
+ nulls: "last" | "first";
6028
6028
  }[];
6029
6029
  rankings: readonly MatrixRanking[];
6030
6030
  filters?: FilterGroup | undefined;
@@ -6464,7 +6464,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6464
6464
  levelId: string;
6465
6465
  axis: "columns" | "rows";
6466
6466
  direction: "asc" | "desc";
6467
- nulls: "first" | "last";
6467
+ nulls: "last" | "first";
6468
6468
  }[];
6469
6469
  rankings: readonly MatrixRanking[];
6470
6470
  filters?: FilterGroup | undefined;
@@ -6802,7 +6802,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
6802
6802
  levelId: string;
6803
6803
  axis: "columns" | "rows";
6804
6804
  direction: "asc" | "desc";
6805
- nulls: "first" | "last";
6805
+ nulls: "last" | "first";
6806
6806
  }[];
6807
6807
  rankings: readonly MatrixRanking[];
6808
6808
  filters?: FilterGroup | undefined;
@@ -7146,7 +7146,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7146
7146
  levelId: string;
7147
7147
  axis: "columns" | "rows";
7148
7148
  direction: "asc" | "desc";
7149
- nulls: "first" | "last";
7149
+ nulls: "last" | "first";
7150
7150
  }[];
7151
7151
  rankings: readonly MatrixRanking[];
7152
7152
  filters?: FilterGroup | undefined;
@@ -7439,7 +7439,7 @@ declare const exportRequestShape: z.ZodUnion<[z.ZodObject<{
7439
7439
  levelId: string;
7440
7440
  axis: "columns" | "rows";
7441
7441
  direction: "asc" | "desc";
7442
- nulls: "first" | "last";
7442
+ nulls: "last" | "first";
7443
7443
  }[];
7444
7444
  rankings: readonly MatrixRanking[];
7445
7445
  filters?: FilterGroup | undefined;
@@ -77,7 +77,7 @@ export declare const matrixRuntimeInputsSchema: z.ZodObject<{
77
77
  levelId: string;
78
78
  axis: "columns" | "rows";
79
79
  direction: "asc" | "desc";
80
- nulls: "first" | "last";
80
+ nulls: "last" | "first";
81
81
  }, {
82
82
  target: import('./matrix-definition-contract.js').MatrixSortTarget;
83
83
  scope: {
@@ -102,7 +102,7 @@ export declare const matrixRuntimeInputsSchema: z.ZodObject<{
102
102
  levelId: string;
103
103
  axis: "columns" | "rows";
104
104
  direction: "asc" | "desc";
105
- nulls: "first" | "last";
105
+ nulls: "last" | "first";
106
106
  }>, "many">>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  runtimeSorts?: readonly {
@@ -129,7 +129,7 @@ export declare const matrixRuntimeInputsSchema: z.ZodObject<{
129
129
  levelId: string;
130
130
  axis: "columns" | "rows";
131
131
  direction: "asc" | "desc";
132
- nulls: "first" | "last";
132
+ nulls: "last" | "first";
133
133
  }[] | undefined;
134
134
  runtimeFilters?: import('../../components/index.js').FilterGroup | undefined;
135
135
  }, {
@@ -157,7 +157,7 @@ export declare const matrixRuntimeInputsSchema: z.ZodObject<{
157
157
  levelId: string;
158
158
  axis: "columns" | "rows";
159
159
  direction: "asc" | "desc";
160
- nulls: "first" | "last";
160
+ nulls: "last" | "first";
161
161
  }[] | undefined;
162
162
  runtimeFilters?: import('../../components/index.js').FilterGroup | undefined;
163
163
  }>;
@@ -375,7 +375,7 @@ declare const matrixExecutionShape: {
375
375
  levelId: string;
376
376
  axis: "columns" | "rows";
377
377
  direction: "asc" | "desc";
378
- nulls: "first" | "last";
378
+ nulls: "last" | "first";
379
379
  }, {
380
380
  target: import('./matrix-definition-contract.js').MatrixSortTarget;
381
381
  scope: {
@@ -400,7 +400,7 @@ declare const matrixExecutionShape: {
400
400
  levelId: string;
401
401
  axis: "columns" | "rows";
402
402
  direction: "asc" | "desc";
403
- nulls: "first" | "last";
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
406
  } & {
@@ -479,7 +479,7 @@ declare const matrixExecutionShape: {
479
479
  levelId: string;
480
480
  axis: "columns" | "rows";
481
481
  direction: "asc" | "desc";
482
- nulls: "first" | "last";
482
+ nulls: "last" | "first";
483
483
  }[];
484
484
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
485
485
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -561,7 +561,7 @@ declare const matrixExecutionShape: {
561
561
  levelId: string;
562
562
  axis: "columns" | "rows";
563
563
  direction: "asc" | "desc";
564
- nulls: "first" | "last";
564
+ nulls: "last" | "first";
565
565
  }[];
566
566
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
567
567
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -643,7 +643,7 @@ declare const matrixExecutionShape: {
643
643
  levelId: string;
644
644
  axis: "columns" | "rows";
645
645
  direction: "asc" | "desc";
646
- nulls: "first" | "last";
646
+ nulls: "last" | "first";
647
647
  }[];
648
648
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
649
649
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -725,7 +725,7 @@ declare const matrixExecutionShape: {
725
725
  levelId: string;
726
726
  axis: "columns" | "rows";
727
727
  direction: "asc" | "desc";
728
- nulls: "first" | "last";
728
+ nulls: "last" | "first";
729
729
  }[];
730
730
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
731
731
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -209,7 +209,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
209
209
  levelId: string;
210
210
  axis: "columns" | "rows";
211
211
  direction: "asc" | "desc";
212
- nulls: "first" | "last";
212
+ nulls: "last" | "first";
213
213
  }, {
214
214
  target: import('./matrix-definition-contract.js').MatrixSortTarget;
215
215
  scope: {
@@ -234,7 +234,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
234
234
  levelId: string;
235
235
  axis: "columns" | "rows";
236
236
  direction: "asc" | "desc";
237
- nulls: "first" | "last";
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
240
  } & {
@@ -313,7 +313,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
313
313
  levelId: string;
314
314
  axis: "columns" | "rows";
315
315
  direction: "asc" | "desc";
316
- nulls: "first" | "last";
316
+ nulls: "last" | "first";
317
317
  }[];
318
318
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
319
319
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -395,7 +395,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
395
395
  levelId: string;
396
396
  axis: "columns" | "rows";
397
397
  direction: "asc" | "desc";
398
- nulls: "first" | "last";
398
+ nulls: "last" | "first";
399
399
  }[];
400
400
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
401
401
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -477,7 +477,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
477
477
  levelId: string;
478
478
  axis: "columns" | "rows";
479
479
  direction: "asc" | "desc";
480
- nulls: "first" | "last";
480
+ nulls: "last" | "first";
481
481
  }[];
482
482
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
483
483
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -559,7 +559,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
559
559
  levelId: string;
560
560
  axis: "columns" | "rows";
561
561
  direction: "asc" | "desc";
562
- nulls: "first" | "last";
562
+ nulls: "last" | "first";
563
563
  }[];
564
564
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
565
565
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -644,7 +644,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
644
644
  levelId: string;
645
645
  axis: "columns" | "rows";
646
646
  direction: "asc" | "desc";
647
- nulls: "first" | "last";
647
+ nulls: "last" | "first";
648
648
  }[];
649
649
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
650
650
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -729,7 +729,7 @@ export declare const matrixOperationRequestSchema: z.ZodObject<{
729
729
  levelId: string;
730
730
  axis: "columns" | "rows";
731
731
  direction: "asc" | "desc";
732
- nulls: "first" | "last";
732
+ nulls: "last" | "first";
733
733
  }[];
734
734
  rankings: readonly import('./matrix-definition-contract.js').MatrixRanking[];
735
735
  filters?: import('../../components/index.js').FilterGroup | undefined;
@@ -90,6 +90,33 @@ export type MatrixWindowOutcome = {
90
90
  status: 'failed';
91
91
  failure: MatrixFailure;
92
92
  };
93
+ /**
94
+ * One present intersection of an indexed block: positions into the block's
95
+ * own coverage lists, then the value. Absent means no data at that
96
+ * intersection; `null` is a present aggregate null.
97
+ */
98
+ export type MatrixIndexedCell = readonly [
99
+ row: number,
100
+ column: number,
101
+ measure: number,
102
+ value: SemaphorScalarValue
103
+ ];
104
+ /** The dashboard's wire form of a cell block: each path is sent once, in coverage. */
105
+ export type MatrixIndexedCellBlock = {
106
+ requestId: string;
107
+ coverage: MatrixCellBlock['coverage'];
108
+ values: readonly MatrixIndexedCell[];
109
+ };
110
+ export type MatrixIndexedWindow = Omit<MatrixWindow, 'blocks'> & {
111
+ blocks: readonly MatrixIndexedCellBlock[];
112
+ };
113
+ export type MatrixIndexedWindowOutcome = {
114
+ status: 'success' | 'partial';
115
+ window: MatrixIndexedWindow;
116
+ } | {
117
+ status: 'failed';
118
+ failure: MatrixFailure;
119
+ };
93
120
  type MatrixWindowInput = {
94
121
  spec: MatrixSpec;
95
122
  request: MatrixWindowRequest;
@@ -98,9 +125,14 @@ type MatrixResult = {
98
125
  kind: 'matrix';
99
126
  window: MatrixWindow;
100
127
  };
101
- /** Shared request ceiling used by client tile sizing and server enforcement. */
128
+ /**
129
+ * Shared ceilings: request coordinates (client tile sizing and server
130
+ * enforcement), and the serialized size of one acquired window at its
131
+ * indexed size, which is what the dashboard receives.
132
+ */
102
133
  export declare const MATRIX_WINDOW_LIMITS: Readonly<{
103
134
  coordinates: 20000;
135
+ responseBytes: number;
104
136
  }>;
105
137
  export declare const matrixPageRequestSchema: z.ZodType<MatrixPageRequest>;
106
138
  export declare const matrixPathSelectionSchema: z.ZodType<MatrixPathSelection>;
@@ -109,6 +141,8 @@ export declare const matrixWindowRequestSchema: z.ZodType<MatrixWindowRequest>;
109
141
  export declare const matrixWindowInputSchema: z.ZodType<MatrixWindowInput>;
110
142
  export declare const matrixAxisPageSchema: z.ZodType<MatrixAxisPage>;
111
143
  export declare const matrixCellBlockSchema: z.ZodType<MatrixCellBlock>;
144
+ /** Positions are checked against coverage; no per-cell path keys are built. */
145
+ export declare const matrixIndexedCellBlockSchema: z.ZodType<MatrixIndexedCellBlock>;
112
146
  export declare const matrixDescriptorSchema: z.ZodObject<{
113
147
  id: z.ZodString;
114
148
  column: z.ZodType<SemaphorResultColumn, z.ZodTypeDef, SemaphorResultColumn>;
@@ -327,8 +361,20 @@ export declare const matrixDescriptorSchema: z.ZodObject<{
327
361
  }>;
328
362
  export declare const matrixFailureSchema: z.ZodType<MatrixFailure>;
329
363
  export declare const matrixCapabilitiesSchema: z.ZodType<MatrixCapabilities>;
330
- export declare const matrixWindowSchema: z.ZodType<MatrixWindow>;
364
+ export declare const matrixWindowSchema: z.ZodType<MatrixWindow, z.ZodTypeDef, MatrixWindow>;
365
+ export declare const matrixIndexedWindowSchema: z.ZodType<MatrixIndexedWindow, z.ZodTypeDef, MatrixIndexedWindow>;
331
366
  export declare const matrixWindowOutcomeSchema: z.ZodType<MatrixWindowOutcome>;
367
+ export declare const matrixIndexedWindowOutcomeSchema: z.ZodType<MatrixIndexedWindowOutcome>;
368
+ /**
369
+ * The indexed wire form of a block. Every cell must be inside coverage (the
370
+ * block schema guarantees it for parsed blocks).
371
+ */
372
+ export declare function encodeMatrixCellBlock(block: MatrixCellBlock): MatrixIndexedCellBlock;
373
+ /** Cells again; their paths are the coverage path objects, not copies. */
374
+ export declare function decodeMatrixCellBlock(block: MatrixIndexedCellBlock): MatrixCellBlock;
375
+ export declare function encodeMatrixWindow(window: MatrixWindow): MatrixIndexedWindow;
376
+ export declare function decodeMatrixWindow(window: MatrixIndexedWindow): MatrixWindow;
377
+ export declare function encodeMatrixWindowOutcome(outcome: MatrixWindowOutcome): MatrixIndexedWindowOutcome;
332
378
  export declare const matrixResultSchema: z.ZodType<MatrixResult>;
333
379
  export type MatrixExportColumn = {
334
380
  kind: 'hierarchy';
@@ -371,15 +417,15 @@ export type MatrixExportRow = {
371
417
  columnPath: MatrixPath;
372
418
  values: readonly MatrixExportValue[];
373
419
  };
374
- type MatrixExportRowInput = Omit<Extract<MatrixExportRow, {
420
+ type MatrixExportRowInput = (Omit<Extract<MatrixExportRow, {
375
421
  kind: 'layout';
376
422
  }>, 'values'> & {
377
423
  values: readonly MatrixExportValueInput[];
378
- } | Omit<Extract<MatrixExportRow, {
424
+ }) | (Omit<Extract<MatrixExportRow, {
379
425
  kind: 'flat';
380
426
  }>, 'values'> & {
381
427
  values: readonly MatrixExportValueInput[];
382
- };
428
+ });
383
429
  export type MatrixExportBatch = {
384
430
  kind: 'layout';
385
431
  layout: MatrixExportLayout;
@@ -74,8 +74,6 @@ export type GlobalDateComparisonContext = {
74
74
  selection: GlobalDateComparisonSelection;
75
75
  inheritGlobalComparison?: false;
76
76
  owner?: DashboardDateComparisonOwner;
77
- /** Fixed execution clock carried by authoritative dashboard replay snapshots. */
78
- referenceTime?: string;
79
77
  };
80
78
  export type ResolvedMetricComparisonRequest = {
81
79
  source: 'explicit';
@@ -95,7 +93,9 @@ export type ResolvedDateWindow = {
95
93
  endExclusive: string;
96
94
  timezone: string;
97
95
  };
98
- export type ComparisonUnavailableReason = 'finite_current_window_required' | 'current_window_not_started' | 'temporal_binding_missing' | 'temporal_binding_ambiguous' | 'temporal_binding_invalid' | 'unsupported_output_shape' | 'unsupported_raw_sql' | 'insufficient_history' | 'invalid_comparison_spec' | 'comparison_execution_failed';
96
+ export type ComparisonUnavailableReason = 'finite_current_window_required' | 'current_window_not_started'
97
+ /** The date ranges the run applies to the field have no instant in common. */
98
+ | 'current_window_empty' | 'temporal_binding_missing' | 'temporal_binding_ambiguous' | 'temporal_binding_invalid' | 'unsupported_output_shape' | 'unsupported_raw_sql' | 'insufficient_history' | 'invalid_comparison_spec' | 'comparison_execution_failed';
99
99
  export type ComparisonAvailability = {
100
100
  status: 'available';
101
101
  } | {
@@ -174,6 +174,12 @@ export declare function validateMetricComparisonSpec(value: unknown, path?: stri
174
174
  export declare function validateMetricComparisonConfig(value: unknown, path?: string): SemaphorValidationResult;
175
175
  export declare function validateGlobalDateComparisonSelection(value: unknown, path?: string): SemaphorValidationResult;
176
176
  export declare function validateGlobalDateComparisonContext(value: unknown, path?: string): SemaphorValidationResult;
177
+ /**
178
+ * A validated comparison context without the legacy `referenceTime`, so no
179
+ * request replays the clock a stored rule or an old client stamped: every
180
+ * operation pins its own instant (analytics kernel K5).
181
+ */
182
+ export declare function withoutLegacyComparisonClock(context: GlobalDateComparisonContext): GlobalDateComparisonContext;
177
183
  export declare function validateMetricComparisonPolarity(value: unknown, path?: string): SemaphorValidationResult;
178
184
  export declare function validateComparisonPresentationSpec(value: unknown, path?: string): SemaphorValidationResult;
179
185
  export declare function evaluateMetricComparison(input: {
@@ -0,0 +1,64 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The latest value of a field within a lookup scope, as the database wrote it
4
+ * (never a value passed through a JavaScript `Date`), or `null` when the scope
5
+ * has no rows. It carries no type: the server takes the native type from the
6
+ * field's governed metadata.
7
+ */
8
+ export type DataAnchor = {
9
+ key: string;
10
+ nativeText: string | null;
11
+ };
12
+ /**
13
+ * What one operation fixed: the instant every relative date resolves on, and
14
+ * the data anchors it read. Governed responses report it; requests that
15
+ * continue the operation (a Matrix page or expansion) send it back.
16
+ */
17
+ export type OperationTemporalState = {
18
+ executionInstant: string;
19
+ dataAnchors: DataAnchor[];
20
+ };
21
+ /**
22
+ * Strict. A request may send only `{ executionInstant }`; `dataAnchors`
23
+ * defaults to none. The instant must be a full ISO instant, and anchor keys
24
+ * are unique.
25
+ */
26
+ export declare const operationTemporalStateSchema: z.ZodEffects<z.ZodObject<{
27
+ executionInstant: z.ZodEffects<z.ZodString, string, string>;
28
+ dataAnchors: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
+ key: z.ZodString;
30
+ nativeText: z.ZodNullable<z.ZodString>;
31
+ }, "strict", z.ZodTypeAny, {
32
+ key: string;
33
+ nativeText: string | null;
34
+ }, {
35
+ key: string;
36
+ nativeText: string | null;
37
+ }>, "many">>;
38
+ }, "strict", z.ZodTypeAny, {
39
+ executionInstant: string;
40
+ dataAnchors: {
41
+ key: string;
42
+ nativeText: string | null;
43
+ }[];
44
+ }, {
45
+ executionInstant: string;
46
+ dataAnchors?: {
47
+ key: string;
48
+ nativeText: string | null;
49
+ }[] | undefined;
50
+ }>, {
51
+ executionInstant: string;
52
+ dataAnchors: {
53
+ key: string;
54
+ nativeText: string | null;
55
+ }[];
56
+ }, {
57
+ executionInstant: string;
58
+ dataAnchors?: {
59
+ key: string;
60
+ nativeText: string | null;
61
+ }[] | undefined;
62
+ }>;
63
+ /** The state as parsed, or `undefined` when absent or invalid. */
64
+ export declare function readOperationTemporalState(value: unknown): OperationTemporalState | undefined;