react-semaphor 0.1.568 → 0.1.570

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 (191) hide show
  1. package/README.md +0 -7
  2. package/dist/analytics-protocol/index.js +434 -454
  3. package/dist/appearance/index.js +6 -3
  4. package/dist/appearance-runtime/index.js +1 -1
  5. package/dist/assistant-context/index.js +1 -1
  6. package/dist/brand-studio/index.js +572 -436
  7. package/dist/briefings/index.js +4 -4
  8. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  9. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  10. package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
  11. package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
  12. package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
  13. package/dist/chunks/brand-B4BdpAB_.js +54 -0
  14. package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
  15. package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
  16. package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
  17. package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
  18. package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
  19. package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
  20. package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
  21. package/dist/chunks/edit-Bpdh_P_a.js +226 -0
  22. package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
  23. package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
  24. package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
  25. package/dist/chunks/index-BVKzKl5d.js +90 -0
  26. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  27. package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
  28. package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
  29. package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.js} +1 -1
  30. package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
  31. package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
  32. package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
  33. package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
  34. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  35. package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
  36. package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
  37. package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +55 -0
  38. package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
  39. package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
  40. package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js} +95 -97
  41. package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
  42. package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-Lkbwycwe.js} +5491 -5683
  43. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  44. package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
  45. package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
  46. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  47. package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
  48. package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
  49. package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
  50. package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
  51. package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
  52. package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
  53. package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
  54. package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
  55. package/dist/chunks/validators-B8fpdinG.js +3651 -0
  56. package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
  57. package/dist/dashboard/index.js +2 -2
  58. package/dist/dashboard-authoring/index.js +1888 -1826
  59. package/dist/format-utils/index.js +230 -231
  60. package/dist/index.js +349 -353
  61. package/dist/layouts/index.js +1 -1
  62. package/dist/report-runtime-context/index.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/surfboard/index.js +2 -2
  65. package/dist/types/appearance/index.d.ts +1 -0
  66. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  67. package/dist/types/brand-studio/index.d.ts +1 -1
  68. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  69. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  70. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  71. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  72. package/dist/types/components/surfboard/filter/types.d.ts +5 -4
  73. package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
  74. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  75. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  76. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  77. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  78. package/dist/types/index.js +9 -9
  79. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  80. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  81. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  82. package/dist/types/lib/appearance/index.d.ts +2 -0
  83. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  84. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  85. package/dist/types/lib/appearance/types.d.ts +38 -1
  86. package/dist/types/lib/charts/types.d.ts +6 -2
  87. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  88. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  89. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  90. package/dist/types/lib/download-pdf.d.ts +0 -1
  91. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  92. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  93. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  94. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  95. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  96. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  97. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  98. package/dist/types/lib/types/common-types.d.ts +3 -2
  99. package/dist/types/lib/types/explorer-types.d.ts +2 -2
  100. package/dist/types/lib/types/index.d.ts +1 -1
  101. package/dist/types/lib/types/summary-types.d.ts +0 -5
  102. package/dist/types/lib/utils/card-definition.d.ts +7 -7
  103. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
  104. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  105. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
  106. package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
  107. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  108. package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
  109. package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
  110. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +72 -72
  111. package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
  112. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
  113. package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
  114. package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
  115. package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
  116. package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
  117. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
  118. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
  119. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
  120. package/dist/types/shared/assistant-protocol/context.d.ts +30 -30
  121. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +344 -1772
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  124. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
  125. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
  127. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
  128. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  129. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  130. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  131. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  132. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  133. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
  134. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  135. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  136. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  137. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  138. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -0
  142. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
  144. package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
  145. package/dist/types/shared/format-utils/matrix-continuation.d.ts +10 -10
  146. package/dist/types/shared/temporal/index.d.ts +0 -2
  147. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
  148. package/package.json +7 -26
  149. package/DATA_APP_SDK.md +0 -339
  150. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  151. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  152. package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
  153. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  154. package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
  155. package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
  156. package/dist/chunks/index-CLIro-EG.js +0 -425
  157. package/dist/chunks/index-CuHybtft.js +0 -51
  158. package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
  159. package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
  160. package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
  161. package/dist/chunks/operators-B3zZoskU.js +0 -66
  162. package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
  163. package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
  164. package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
  165. package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
  166. package/dist/chunks/validators-wtjw0aw6.js +0 -3332
  167. package/dist/data-app-sdk/index.js +0 -1412
  168. package/dist/data-app-sdk-adapters/index.js +0 -361
  169. package/dist/data-app-sdk-validation/index.js +0 -1031
  170. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
  171. package/dist/types/data-app-sdk/adapters.d.ts +0 -35
  172. package/dist/types/data-app-sdk/builders.d.ts +0 -62
  173. package/dist/types/data-app-sdk/contracts.d.ts +0 -419
  174. package/dist/types/data-app-sdk/executor.d.ts +0 -5
  175. package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
  176. package/dist/types/data-app-sdk/hooks.d.ts +0 -11
  177. package/dist/types/data-app-sdk/index.d.ts +0 -9
  178. package/dist/types/data-app-sdk/provider.d.ts +0 -8
  179. package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
  180. package/dist/types/data-app-sdk/selection.d.ts +0 -2
  181. package/dist/types/data-app-sdk/validation.d.ts +0 -58
  182. package/dist/types/data-app-sdk-adapters.d.ts +0 -2
  183. package/dist/types/data-app-sdk-validation.d.ts +0 -2
  184. package/dist/types/data-app-sdk.d.ts +0 -2
  185. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
  186. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
  187. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
  188. package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
  189. package/dist/types/shared/temporal/relative-date.d.ts +0 -21
  190. package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
  191. package/src/data-app-sdk/README.md +0 -402
@@ -137,7 +137,7 @@ export declare const analyticsFilterSchema: z.ZodObject<{
137
137
  } | undefined;
138
138
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
139
139
  };
140
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
140
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
141
141
  values?: (string | number | boolean)[] | undefined;
142
142
  id?: string | undefined;
143
143
  scope?: "aggregate" | "row" | undefined;
@@ -157,162 +157,11 @@ export declare const analyticsFilterSchema: z.ZodObject<{
157
157
  } | undefined;
158
158
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
159
159
  };
160
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
160
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
161
161
  values?: (string | number | boolean)[] | undefined;
162
162
  id?: string | undefined;
163
163
  scope?: "aggregate" | "row" | undefined;
164
164
  }>;
165
- export declare const timeWindowSchema: z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
166
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
167
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
168
- value: z.ZodNumber;
169
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
170
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
171
- }, "strip", z.ZodTypeAny, {
172
- value: number;
173
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
174
- kind?: "relative" | undefined;
175
- anchor?: "now" | "latest_available" | undefined;
176
- completeness?: "include_partial" | "complete_periods" | undefined;
177
- }, {
178
- value: number;
179
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
180
- kind?: "relative" | undefined;
181
- anchor?: "now" | "latest_available" | undefined;
182
- completeness?: "include_partial" | "complete_periods" | undefined;
183
- }>, {
184
- value: number;
185
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
186
- kind?: "relative" | undefined;
187
- anchor?: "now" | "latest_available" | undefined;
188
- completeness?: "include_partial" | "complete_periods" | undefined;
189
- }, {
190
- value: number;
191
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
192
- kind?: "relative" | undefined;
193
- anchor?: "now" | "latest_available" | undefined;
194
- completeness?: "include_partial" | "complete_periods" | undefined;
195
- }> | z.ZodEffects<z.ZodObject<{
196
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
197
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
198
- value: z.ZodNumber;
199
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
200
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
201
- }, "strict", z.ZodTypeAny, {
202
- value: number;
203
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
204
- kind?: "relative" | undefined;
205
- anchor?: "now" | "latest_available" | undefined;
206
- completeness?: "include_partial" | "complete_periods" | undefined;
207
- }, {
208
- value: number;
209
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
210
- kind?: "relative" | undefined;
211
- anchor?: "now" | "latest_available" | undefined;
212
- completeness?: "include_partial" | "complete_periods" | undefined;
213
- }>, {
214
- value: number;
215
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
216
- kind?: "relative" | undefined;
217
- anchor?: "now" | "latest_available" | undefined;
218
- completeness?: "include_partial" | "complete_periods" | undefined;
219
- }, {
220
- value: number;
221
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
222
- kind?: "relative" | undefined;
223
- anchor?: "now" | "latest_available" | undefined;
224
- completeness?: "include_partial" | "complete_periods" | undefined;
225
- }>, z.ZodEffects<z.ZodObject<{
226
- kind: z.ZodLiteral<"calendar">;
227
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
228
- period: z.ZodEnum<["this", "previous"]>;
229
- toDate: z.ZodOptional<z.ZodBoolean>;
230
- }, "strip", z.ZodTypeAny, {
231
- kind: "calendar";
232
- unit: "day" | "week" | "month" | "quarter" | "year";
233
- period: "this" | "previous";
234
- toDate?: boolean | undefined;
235
- }, {
236
- kind: "calendar";
237
- unit: "day" | "week" | "month" | "quarter" | "year";
238
- period: "this" | "previous";
239
- toDate?: boolean | undefined;
240
- }>, {
241
- kind: "calendar";
242
- unit: "day" | "week" | "month" | "quarter" | "year";
243
- period: "this" | "previous";
244
- toDate?: boolean | undefined;
245
- }, {
246
- kind: "calendar";
247
- unit: "day" | "week" | "month" | "quarter" | "year";
248
- period: "this" | "previous";
249
- toDate?: boolean | undefined;
250
- }> | z.ZodEffects<z.ZodObject<{
251
- kind: z.ZodLiteral<"calendar">;
252
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
253
- period: z.ZodEnum<["this", "previous"]>;
254
- toDate: z.ZodOptional<z.ZodBoolean>;
255
- }, "strict", z.ZodTypeAny, {
256
- kind: "calendar";
257
- unit: "day" | "week" | "month" | "quarter" | "year";
258
- period: "this" | "previous";
259
- toDate?: boolean | undefined;
260
- }, {
261
- kind: "calendar";
262
- unit: "day" | "week" | "month" | "quarter" | "year";
263
- period: "this" | "previous";
264
- toDate?: boolean | undefined;
265
- }>, {
266
- kind: "calendar";
267
- unit: "day" | "week" | "month" | "quarter" | "year";
268
- period: "this" | "previous";
269
- toDate?: boolean | undefined;
270
- }, {
271
- kind: "calendar";
272
- unit: "day" | "week" | "month" | "quarter" | "year";
273
- period: "this" | "previous";
274
- toDate?: boolean | undefined;
275
- }>, z.ZodEffects<z.ZodObject<{
276
- kind: z.ZodLiteral<"absolute">;
277
- start: z.ZodString;
278
- end: z.ZodString;
279
- }, "strip", z.ZodTypeAny, {
280
- kind: "absolute";
281
- start: string;
282
- end: string;
283
- }, {
284
- kind: "absolute";
285
- start: string;
286
- end: string;
287
- }>, {
288
- kind: "absolute";
289
- start: string;
290
- end: string;
291
- }, {
292
- kind: "absolute";
293
- start: string;
294
- end: string;
295
- }> | z.ZodEffects<z.ZodObject<{
296
- kind: z.ZodLiteral<"absolute">;
297
- start: z.ZodString;
298
- end: z.ZodString;
299
- }, "strict", z.ZodTypeAny, {
300
- kind: "absolute";
301
- start: string;
302
- end: string;
303
- }, {
304
- kind: "absolute";
305
- start: string;
306
- end: string;
307
- }>, {
308
- kind: "absolute";
309
- start: string;
310
- end: string;
311
- }, {
312
- kind: "absolute";
313
- start: string;
314
- end: string;
315
- }>]>;
316
165
  export declare const TIME_GRAINS: readonly ["minute", "hour", "day", "week", "month", "quarter", "year"];
317
166
  /** The largest row limit a query states. */
318
167
  export declare const MAX_QUERY_LIMIT = 1000;
@@ -1418,7 +1267,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1418
1267
  } | undefined;
1419
1268
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1420
1269
  };
1421
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1270
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
1422
1271
  values?: (string | number | boolean)[] | undefined;
1423
1272
  id?: string | undefined;
1424
1273
  scope?: "aggregate" | "row" | undefined;
@@ -1438,162 +1287,12 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1438
1287
  } | undefined;
1439
1288
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1440
1289
  };
1441
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1290
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
1442
1291
  values?: (string | number | boolean)[] | undefined;
1443
1292
  id?: string | undefined;
1444
1293
  scope?: "aggregate" | "row" | undefined;
1445
1294
  }>, "many">>;
1446
- timeWindow: z.ZodOptional<z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
1447
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
1448
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
1449
- value: z.ZodNumber;
1450
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
1451
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
1452
- }, "strip", z.ZodTypeAny, {
1453
- value: number;
1454
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1455
- kind?: "relative" | undefined;
1456
- anchor?: "now" | "latest_available" | undefined;
1457
- completeness?: "include_partial" | "complete_periods" | undefined;
1458
- }, {
1459
- value: number;
1460
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1461
- kind?: "relative" | undefined;
1462
- anchor?: "now" | "latest_available" | undefined;
1463
- completeness?: "include_partial" | "complete_periods" | undefined;
1464
- }>, {
1465
- value: number;
1466
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1467
- kind?: "relative" | undefined;
1468
- anchor?: "now" | "latest_available" | undefined;
1469
- completeness?: "include_partial" | "complete_periods" | undefined;
1470
- }, {
1471
- value: number;
1472
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1473
- kind?: "relative" | undefined;
1474
- anchor?: "now" | "latest_available" | undefined;
1475
- completeness?: "include_partial" | "complete_periods" | undefined;
1476
- }> | z.ZodEffects<z.ZodObject<{
1477
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
1478
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
1479
- value: z.ZodNumber;
1480
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
1481
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
1482
- }, "strict", z.ZodTypeAny, {
1483
- value: number;
1484
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1485
- kind?: "relative" | undefined;
1486
- anchor?: "now" | "latest_available" | undefined;
1487
- completeness?: "include_partial" | "complete_periods" | undefined;
1488
- }, {
1489
- value: number;
1490
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1491
- kind?: "relative" | undefined;
1492
- anchor?: "now" | "latest_available" | undefined;
1493
- completeness?: "include_partial" | "complete_periods" | undefined;
1494
- }>, {
1495
- value: number;
1496
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1497
- kind?: "relative" | undefined;
1498
- anchor?: "now" | "latest_available" | undefined;
1499
- completeness?: "include_partial" | "complete_periods" | undefined;
1500
- }, {
1501
- value: number;
1502
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1503
- kind?: "relative" | undefined;
1504
- anchor?: "now" | "latest_available" | undefined;
1505
- completeness?: "include_partial" | "complete_periods" | undefined;
1506
- }>, z.ZodEffects<z.ZodObject<{
1507
- kind: z.ZodLiteral<"calendar">;
1508
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
1509
- period: z.ZodEnum<["this", "previous"]>;
1510
- toDate: z.ZodOptional<z.ZodBoolean>;
1511
- }, "strip", z.ZodTypeAny, {
1512
- kind: "calendar";
1513
- unit: "day" | "week" | "month" | "quarter" | "year";
1514
- period: "this" | "previous";
1515
- toDate?: boolean | undefined;
1516
- }, {
1517
- kind: "calendar";
1518
- unit: "day" | "week" | "month" | "quarter" | "year";
1519
- period: "this" | "previous";
1520
- toDate?: boolean | undefined;
1521
- }>, {
1522
- kind: "calendar";
1523
- unit: "day" | "week" | "month" | "quarter" | "year";
1524
- period: "this" | "previous";
1525
- toDate?: boolean | undefined;
1526
- }, {
1527
- kind: "calendar";
1528
- unit: "day" | "week" | "month" | "quarter" | "year";
1529
- period: "this" | "previous";
1530
- toDate?: boolean | undefined;
1531
- }> | z.ZodEffects<z.ZodObject<{
1532
- kind: z.ZodLiteral<"calendar">;
1533
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
1534
- period: z.ZodEnum<["this", "previous"]>;
1535
- toDate: z.ZodOptional<z.ZodBoolean>;
1536
- }, "strict", z.ZodTypeAny, {
1537
- kind: "calendar";
1538
- unit: "day" | "week" | "month" | "quarter" | "year";
1539
- period: "this" | "previous";
1540
- toDate?: boolean | undefined;
1541
- }, {
1542
- kind: "calendar";
1543
- unit: "day" | "week" | "month" | "quarter" | "year";
1544
- period: "this" | "previous";
1545
- toDate?: boolean | undefined;
1546
- }>, {
1547
- kind: "calendar";
1548
- unit: "day" | "week" | "month" | "quarter" | "year";
1549
- period: "this" | "previous";
1550
- toDate?: boolean | undefined;
1551
- }, {
1552
- kind: "calendar";
1553
- unit: "day" | "week" | "month" | "quarter" | "year";
1554
- period: "this" | "previous";
1555
- toDate?: boolean | undefined;
1556
- }>, z.ZodEffects<z.ZodObject<{
1557
- kind: z.ZodLiteral<"absolute">;
1558
- start: z.ZodString;
1559
- end: z.ZodString;
1560
- }, "strip", z.ZodTypeAny, {
1561
- kind: "absolute";
1562
- start: string;
1563
- end: string;
1564
- }, {
1565
- kind: "absolute";
1566
- start: string;
1567
- end: string;
1568
- }>, {
1569
- kind: "absolute";
1570
- start: string;
1571
- end: string;
1572
- }, {
1573
- kind: "absolute";
1574
- start: string;
1575
- end: string;
1576
- }> | z.ZodEffects<z.ZodObject<{
1577
- kind: z.ZodLiteral<"absolute">;
1578
- start: z.ZodString;
1579
- end: z.ZodString;
1580
- }, "strict", z.ZodTypeAny, {
1581
- kind: "absolute";
1582
- start: string;
1583
- end: string;
1584
- }, {
1585
- kind: "absolute";
1586
- start: string;
1587
- end: string;
1588
- }>, {
1589
- kind: "absolute";
1590
- start: string;
1591
- end: string;
1592
- }, {
1593
- kind: "absolute";
1594
- start: string;
1595
- end: string;
1596
- }>]>>;
1295
+ timeWindow: z.ZodOptional<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>;
1597
1296
  orderBy: z.ZodOptional<z.ZodObject<{
1598
1297
  field: z.ZodUnion<[z.ZodString, z.ZodObject<{
1599
1298
  aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
@@ -1845,6 +1544,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1845
1544
  } | null | undefined;
1846
1545
  })[];
1847
1546
  limit?: number | undefined;
1547
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
1848
1548
  filters?: {
1849
1549
  field: string | {
1850
1550
  name: string;
@@ -1861,7 +1561,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1861
1561
  } | undefined;
1862
1562
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1863
1563
  };
1864
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1564
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
1865
1565
  values?: (string | number | boolean)[] | undefined;
1866
1566
  id?: string | undefined;
1867
1567
  scope?: "aggregate" | "row" | undefined;
@@ -1884,22 +1584,6 @@ export declare const metricCardQuerySchema: z.ZodObject<{
1884
1584
  };
1885
1585
  direction: "asc" | "desc";
1886
1586
  } | undefined;
1887
- timeWindow?: {
1888
- value: number;
1889
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
1890
- kind?: "relative" | undefined;
1891
- anchor?: "now" | "latest_available" | undefined;
1892
- completeness?: "include_partial" | "complete_periods" | undefined;
1893
- } | {
1894
- kind: "calendar";
1895
- unit: "day" | "week" | "month" | "quarter" | "year";
1896
- period: "this" | "previous";
1897
- toDate?: boolean | undefined;
1898
- } | {
1899
- kind: "absolute";
1900
- start: string;
1901
- end: string;
1902
- } | undefined;
1903
1587
  dateField?: string | {
1904
1588
  name: string;
1905
1589
  datasetName?: string | undefined;
@@ -2087,6 +1771,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
2087
1771
  } | null | undefined;
2088
1772
  })[];
2089
1773
  limit?: number | undefined;
1774
+ timeWindow?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
2090
1775
  filters?: {
2091
1776
  field: string | {
2092
1777
  name: string;
@@ -2103,7 +1788,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
2103
1788
  } | undefined;
2104
1789
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2105
1790
  };
2106
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1791
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
2107
1792
  values?: (string | number | boolean)[] | undefined;
2108
1793
  id?: string | undefined;
2109
1794
  scope?: "aggregate" | "row" | undefined;
@@ -2126,22 +1811,6 @@ export declare const metricCardQuerySchema: z.ZodObject<{
2126
1811
  };
2127
1812
  direction: "asc" | "desc";
2128
1813
  } | undefined;
2129
- timeWindow?: {
2130
- value: number;
2131
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2132
- kind?: "relative" | undefined;
2133
- anchor?: "now" | "latest_available" | undefined;
2134
- completeness?: "include_partial" | "complete_periods" | undefined;
2135
- } | {
2136
- kind: "calendar";
2137
- unit: "day" | "week" | "month" | "quarter" | "year";
2138
- period: "this" | "previous";
2139
- toDate?: boolean | undefined;
2140
- } | {
2141
- kind: "absolute";
2142
- start: string;
2143
- end: string;
2144
- } | undefined;
2145
1814
  dateField?: string | {
2146
1815
  name: string;
2147
1816
  datasetName?: string | undefined;
@@ -2304,7 +1973,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2304
1973
  } | undefined;
2305
1974
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2306
1975
  };
2307
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1976
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
2308
1977
  values?: (string | number | boolean)[] | undefined;
2309
1978
  id?: string | undefined;
2310
1979
  scope?: "aggregate" | "row" | undefined;
@@ -2324,7 +1993,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2324
1993
  } | undefined;
2325
1994
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2326
1995
  };
2327
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
1996
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
2328
1997
  values?: (string | number | boolean)[] | undefined;
2329
1998
  id?: string | undefined;
2330
1999
  scope?: "aggregate" | "row" | undefined;
@@ -2381,157 +2050,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2381
2050
  connectionId?: string | undefined;
2382
2051
  } | undefined;
2383
2052
  }>]>>;
2384
- timeWindow: z.ZodOptional<z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
2385
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
2386
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
2387
- value: z.ZodNumber;
2388
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
2389
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
2390
- }, "strip", z.ZodTypeAny, {
2391
- value: number;
2392
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2393
- kind?: "relative" | undefined;
2394
- anchor?: "now" | "latest_available" | undefined;
2395
- completeness?: "include_partial" | "complete_periods" | undefined;
2396
- }, {
2397
- value: number;
2398
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2399
- kind?: "relative" | undefined;
2400
- anchor?: "now" | "latest_available" | undefined;
2401
- completeness?: "include_partial" | "complete_periods" | undefined;
2402
- }>, {
2403
- value: number;
2404
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2405
- kind?: "relative" | undefined;
2406
- anchor?: "now" | "latest_available" | undefined;
2407
- completeness?: "include_partial" | "complete_periods" | undefined;
2408
- }, {
2409
- value: number;
2410
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2411
- kind?: "relative" | undefined;
2412
- anchor?: "now" | "latest_available" | undefined;
2413
- completeness?: "include_partial" | "complete_periods" | undefined;
2414
- }> | z.ZodEffects<z.ZodObject<{
2415
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
2416
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
2417
- value: z.ZodNumber;
2418
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
2419
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
2420
- }, "strict", z.ZodTypeAny, {
2421
- value: number;
2422
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2423
- kind?: "relative" | undefined;
2424
- anchor?: "now" | "latest_available" | undefined;
2425
- completeness?: "include_partial" | "complete_periods" | undefined;
2426
- }, {
2427
- value: number;
2428
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2429
- kind?: "relative" | undefined;
2430
- anchor?: "now" | "latest_available" | undefined;
2431
- completeness?: "include_partial" | "complete_periods" | undefined;
2432
- }>, {
2433
- value: number;
2434
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2435
- kind?: "relative" | undefined;
2436
- anchor?: "now" | "latest_available" | undefined;
2437
- completeness?: "include_partial" | "complete_periods" | undefined;
2438
- }, {
2439
- value: number;
2440
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2441
- kind?: "relative" | undefined;
2442
- anchor?: "now" | "latest_available" | undefined;
2443
- completeness?: "include_partial" | "complete_periods" | undefined;
2444
- }>, z.ZodEffects<z.ZodObject<{
2445
- kind: z.ZodLiteral<"calendar">;
2446
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
2447
- period: z.ZodEnum<["this", "previous"]>;
2448
- toDate: z.ZodOptional<z.ZodBoolean>;
2449
- }, "strip", z.ZodTypeAny, {
2450
- kind: "calendar";
2451
- unit: "day" | "week" | "month" | "quarter" | "year";
2452
- period: "this" | "previous";
2453
- toDate?: boolean | undefined;
2454
- }, {
2455
- kind: "calendar";
2456
- unit: "day" | "week" | "month" | "quarter" | "year";
2457
- period: "this" | "previous";
2458
- toDate?: boolean | undefined;
2459
- }>, {
2460
- kind: "calendar";
2461
- unit: "day" | "week" | "month" | "quarter" | "year";
2462
- period: "this" | "previous";
2463
- toDate?: boolean | undefined;
2464
- }, {
2465
- kind: "calendar";
2466
- unit: "day" | "week" | "month" | "quarter" | "year";
2467
- period: "this" | "previous";
2468
- toDate?: boolean | undefined;
2469
- }> | z.ZodEffects<z.ZodObject<{
2470
- kind: z.ZodLiteral<"calendar">;
2471
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
2472
- period: z.ZodEnum<["this", "previous"]>;
2473
- toDate: z.ZodOptional<z.ZodBoolean>;
2474
- }, "strict", z.ZodTypeAny, {
2475
- kind: "calendar";
2476
- unit: "day" | "week" | "month" | "quarter" | "year";
2477
- period: "this" | "previous";
2478
- toDate?: boolean | undefined;
2479
- }, {
2480
- kind: "calendar";
2481
- unit: "day" | "week" | "month" | "quarter" | "year";
2482
- period: "this" | "previous";
2483
- toDate?: boolean | undefined;
2484
- }>, {
2485
- kind: "calendar";
2486
- unit: "day" | "week" | "month" | "quarter" | "year";
2487
- period: "this" | "previous";
2488
- toDate?: boolean | undefined;
2489
- }, {
2490
- kind: "calendar";
2491
- unit: "day" | "week" | "month" | "quarter" | "year";
2492
- period: "this" | "previous";
2493
- toDate?: boolean | undefined;
2494
- }>, z.ZodEffects<z.ZodObject<{
2495
- kind: z.ZodLiteral<"absolute">;
2496
- start: z.ZodString;
2497
- end: z.ZodString;
2498
- }, "strip", z.ZodTypeAny, {
2499
- kind: "absolute";
2500
- start: string;
2501
- end: string;
2502
- }, {
2503
- kind: "absolute";
2504
- start: string;
2505
- end: string;
2506
- }>, {
2507
- kind: "absolute";
2508
- start: string;
2509
- end: string;
2510
- }, {
2511
- kind: "absolute";
2512
- start: string;
2513
- end: string;
2514
- }> | z.ZodEffects<z.ZodObject<{
2515
- kind: z.ZodLiteral<"absolute">;
2516
- start: z.ZodString;
2517
- end: z.ZodString;
2518
- }, "strict", z.ZodTypeAny, {
2519
- kind: "absolute";
2520
- start: string;
2521
- end: string;
2522
- }, {
2523
- kind: "absolute";
2524
- start: string;
2525
- end: string;
2526
- }>, {
2527
- kind: "absolute";
2528
- start: string;
2529
- end: string;
2530
- }, {
2531
- kind: "absolute";
2532
- start: string;
2533
- end: string;
2534
- }>]>>;
2053
+ timeWindow: z.ZodOptional<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>;
2535
2054
  orderBy: z.ZodOptional<z.ZodObject<{
2536
2055
  field: z.ZodUnion<[z.ZodString, z.ZodObject<{
2537
2056
  name: z.ZodString;
@@ -2638,6 +2157,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2638
2157
  } | undefined;
2639
2158
  })[];
2640
2159
  limit?: number | undefined;
2160
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
2641
2161
  filters?: {
2642
2162
  field: string | {
2643
2163
  name: string;
@@ -2654,7 +2174,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2654
2174
  } | undefined;
2655
2175
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2656
2176
  };
2657
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
2177
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
2658
2178
  values?: (string | number | boolean)[] | undefined;
2659
2179
  id?: string | undefined;
2660
2180
  scope?: "aggregate" | "row" | undefined;
@@ -2676,22 +2196,6 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2676
2196
  };
2677
2197
  direction: "asc" | "desc";
2678
2198
  } | undefined;
2679
- timeWindow?: {
2680
- value: number;
2681
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2682
- kind?: "relative" | undefined;
2683
- anchor?: "now" | "latest_available" | undefined;
2684
- completeness?: "include_partial" | "complete_periods" | undefined;
2685
- } | {
2686
- kind: "calendar";
2687
- unit: "day" | "week" | "month" | "quarter" | "year";
2688
- period: "this" | "previous";
2689
- toDate?: boolean | undefined;
2690
- } | {
2691
- kind: "absolute";
2692
- start: string;
2693
- end: string;
2694
- } | undefined;
2695
2199
  dateField?: string | {
2696
2200
  name: string;
2697
2201
  datasetName?: string | undefined;
@@ -2724,6 +2228,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2724
2228
  } | undefined;
2725
2229
  })[];
2726
2230
  limit?: number | undefined;
2231
+ timeWindow?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
2727
2232
  filters?: {
2728
2233
  field: string | {
2729
2234
  name: string;
@@ -2740,7 +2245,7 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2740
2245
  } | undefined;
2741
2246
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
2742
2247
  };
2743
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
2248
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
2744
2249
  values?: (string | number | boolean)[] | undefined;
2745
2250
  id?: string | undefined;
2746
2251
  scope?: "aggregate" | "row" | undefined;
@@ -2762,22 +2267,6 @@ export declare const recordsCardQuerySchema: z.ZodObject<{
2762
2267
  };
2763
2268
  direction: "asc" | "desc";
2764
2269
  } | undefined;
2765
- timeWindow?: {
2766
- value: number;
2767
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
2768
- kind?: "relative" | undefined;
2769
- anchor?: "now" | "latest_available" | undefined;
2770
- completeness?: "include_partial" | "complete_periods" | undefined;
2771
- } | {
2772
- kind: "calendar";
2773
- unit: "day" | "week" | "month" | "quarter" | "year";
2774
- period: "this" | "previous";
2775
- toDate?: boolean | undefined;
2776
- } | {
2777
- kind: "absolute";
2778
- start: string;
2779
- end: string;
2780
- } | undefined;
2781
2270
  dateField?: string | {
2782
2271
  name: string;
2783
2272
  datasetName?: string | undefined;
@@ -3347,7 +2836,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
3347
2836
  } | undefined;
3348
2837
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
3349
2838
  };
3350
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
2839
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
3351
2840
  values?: (string | number | boolean)[] | undefined;
3352
2841
  id?: string | undefined;
3353
2842
  scope?: "aggregate" | "row" | undefined;
@@ -3367,162 +2856,12 @@ declare const cardQueryPatchObject: z.ZodObject<{
3367
2856
  } | undefined;
3368
2857
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
3369
2858
  };
3370
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
2859
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
3371
2860
  values?: (string | number | boolean)[] | undefined;
3372
2861
  id?: string | undefined;
3373
2862
  scope?: "aggregate" | "row" | undefined;
3374
2863
  }>, "many">>>;
3375
- timeWindow: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
3376
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
3377
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
3378
- value: z.ZodNumber;
3379
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
3380
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
3381
- }, "strip", z.ZodTypeAny, {
3382
- value: number;
3383
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3384
- kind?: "relative" | undefined;
3385
- anchor?: "now" | "latest_available" | undefined;
3386
- completeness?: "include_partial" | "complete_periods" | undefined;
3387
- }, {
3388
- value: number;
3389
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3390
- kind?: "relative" | undefined;
3391
- anchor?: "now" | "latest_available" | undefined;
3392
- completeness?: "include_partial" | "complete_periods" | undefined;
3393
- }>, {
3394
- value: number;
3395
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3396
- kind?: "relative" | undefined;
3397
- anchor?: "now" | "latest_available" | undefined;
3398
- completeness?: "include_partial" | "complete_periods" | undefined;
3399
- }, {
3400
- value: number;
3401
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3402
- kind?: "relative" | undefined;
3403
- anchor?: "now" | "latest_available" | undefined;
3404
- completeness?: "include_partial" | "complete_periods" | undefined;
3405
- }> | z.ZodEffects<z.ZodObject<{
3406
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
3407
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
3408
- value: z.ZodNumber;
3409
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
3410
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
3411
- }, "strict", z.ZodTypeAny, {
3412
- value: number;
3413
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3414
- kind?: "relative" | undefined;
3415
- anchor?: "now" | "latest_available" | undefined;
3416
- completeness?: "include_partial" | "complete_periods" | undefined;
3417
- }, {
3418
- value: number;
3419
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3420
- kind?: "relative" | undefined;
3421
- anchor?: "now" | "latest_available" | undefined;
3422
- completeness?: "include_partial" | "complete_periods" | undefined;
3423
- }>, {
3424
- value: number;
3425
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3426
- kind?: "relative" | undefined;
3427
- anchor?: "now" | "latest_available" | undefined;
3428
- completeness?: "include_partial" | "complete_periods" | undefined;
3429
- }, {
3430
- value: number;
3431
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3432
- kind?: "relative" | undefined;
3433
- anchor?: "now" | "latest_available" | undefined;
3434
- completeness?: "include_partial" | "complete_periods" | undefined;
3435
- }>, z.ZodEffects<z.ZodObject<{
3436
- kind: z.ZodLiteral<"calendar">;
3437
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
3438
- period: z.ZodEnum<["this", "previous"]>;
3439
- toDate: z.ZodOptional<z.ZodBoolean>;
3440
- }, "strip", z.ZodTypeAny, {
3441
- kind: "calendar";
3442
- unit: "day" | "week" | "month" | "quarter" | "year";
3443
- period: "this" | "previous";
3444
- toDate?: boolean | undefined;
3445
- }, {
3446
- kind: "calendar";
3447
- unit: "day" | "week" | "month" | "quarter" | "year";
3448
- period: "this" | "previous";
3449
- toDate?: boolean | undefined;
3450
- }>, {
3451
- kind: "calendar";
3452
- unit: "day" | "week" | "month" | "quarter" | "year";
3453
- period: "this" | "previous";
3454
- toDate?: boolean | undefined;
3455
- }, {
3456
- kind: "calendar";
3457
- unit: "day" | "week" | "month" | "quarter" | "year";
3458
- period: "this" | "previous";
3459
- toDate?: boolean | undefined;
3460
- }> | z.ZodEffects<z.ZodObject<{
3461
- kind: z.ZodLiteral<"calendar">;
3462
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
3463
- period: z.ZodEnum<["this", "previous"]>;
3464
- toDate: z.ZodOptional<z.ZodBoolean>;
3465
- }, "strict", z.ZodTypeAny, {
3466
- kind: "calendar";
3467
- unit: "day" | "week" | "month" | "quarter" | "year";
3468
- period: "this" | "previous";
3469
- toDate?: boolean | undefined;
3470
- }, {
3471
- kind: "calendar";
3472
- unit: "day" | "week" | "month" | "quarter" | "year";
3473
- period: "this" | "previous";
3474
- toDate?: boolean | undefined;
3475
- }>, {
3476
- kind: "calendar";
3477
- unit: "day" | "week" | "month" | "quarter" | "year";
3478
- period: "this" | "previous";
3479
- toDate?: boolean | undefined;
3480
- }, {
3481
- kind: "calendar";
3482
- unit: "day" | "week" | "month" | "quarter" | "year";
3483
- period: "this" | "previous";
3484
- toDate?: boolean | undefined;
3485
- }>, z.ZodEffects<z.ZodObject<{
3486
- kind: z.ZodLiteral<"absolute">;
3487
- start: z.ZodString;
3488
- end: z.ZodString;
3489
- }, "strip", z.ZodTypeAny, {
3490
- kind: "absolute";
3491
- start: string;
3492
- end: string;
3493
- }, {
3494
- kind: "absolute";
3495
- start: string;
3496
- end: string;
3497
- }>, {
3498
- kind: "absolute";
3499
- start: string;
3500
- end: string;
3501
- }, {
3502
- kind: "absolute";
3503
- start: string;
3504
- end: string;
3505
- }> | z.ZodEffects<z.ZodObject<{
3506
- kind: z.ZodLiteral<"absolute">;
3507
- start: z.ZodString;
3508
- end: z.ZodString;
3509
- }, "strict", z.ZodTypeAny, {
3510
- kind: "absolute";
3511
- start: string;
3512
- end: string;
3513
- }, {
3514
- kind: "absolute";
3515
- start: string;
3516
- end: string;
3517
- }>, {
3518
- kind: "absolute";
3519
- start: string;
3520
- end: string;
3521
- }, {
3522
- kind: "absolute";
3523
- start: string;
3524
- end: string;
3525
- }>]>>>;
2864
+ timeWindow: z.ZodOptional<z.ZodNullable<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>>;
3526
2865
  orderBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3527
2866
  field: z.ZodUnion<[z.ZodString, z.ZodObject<{
3528
2867
  aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
@@ -3792,6 +3131,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
3792
3131
  } | null | undefined;
3793
3132
  })[] | undefined;
3794
3133
  limit?: number | null | undefined;
3134
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
3795
3135
  filters?: {
3796
3136
  field: string | {
3797
3137
  name: string;
@@ -3808,7 +3148,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
3808
3148
  } | undefined;
3809
3149
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
3810
3150
  };
3811
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
3151
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
3812
3152
  values?: (string | number | boolean)[] | undefined;
3813
3153
  id?: string | undefined;
3814
3154
  scope?: "aggregate" | "row" | undefined;
@@ -3831,22 +3171,6 @@ declare const cardQueryPatchObject: z.ZodObject<{
3831
3171
  };
3832
3172
  direction: "asc" | "desc";
3833
3173
  } | null | undefined;
3834
- timeWindow?: {
3835
- value: number;
3836
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
3837
- kind?: "relative" | undefined;
3838
- anchor?: "now" | "latest_available" | undefined;
3839
- completeness?: "include_partial" | "complete_periods" | undefined;
3840
- } | {
3841
- kind: "calendar";
3842
- unit: "day" | "week" | "month" | "quarter" | "year";
3843
- period: "this" | "previous";
3844
- toDate?: boolean | undefined;
3845
- } | {
3846
- kind: "absolute";
3847
- start: string;
3848
- end: string;
3849
- } | null | undefined;
3850
3174
  dateField?: string | {
3851
3175
  name: string;
3852
3176
  datasetName?: string | undefined;
@@ -4050,6 +3374,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
4050
3374
  } | null | undefined;
4051
3375
  })[] | undefined;
4052
3376
  limit?: number | null | undefined;
3377
+ timeWindow?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | null | undefined;
4053
3378
  filters?: {
4054
3379
  field: string | {
4055
3380
  name: string;
@@ -4066,7 +3391,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
4066
3391
  } | undefined;
4067
3392
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4068
3393
  };
4069
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
3394
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
4070
3395
  values?: (string | number | boolean)[] | undefined;
4071
3396
  id?: string | undefined;
4072
3397
  scope?: "aggregate" | "row" | undefined;
@@ -4089,22 +3414,6 @@ declare const cardQueryPatchObject: z.ZodObject<{
4089
3414
  };
4090
3415
  direction: "asc" | "desc";
4091
3416
  } | null | undefined;
4092
- timeWindow?: {
4093
- value: number;
4094
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
4095
- kind?: "relative" | undefined;
4096
- anchor?: "now" | "latest_available" | undefined;
4097
- completeness?: "include_partial" | "complete_periods" | undefined;
4098
- } | {
4099
- kind: "calendar";
4100
- unit: "day" | "week" | "month" | "quarter" | "year";
4101
- period: "this" | "previous";
4102
- toDate?: boolean | undefined;
4103
- } | {
4104
- kind: "absolute";
4105
- start: string;
4106
- end: string;
4107
- } | null | undefined;
4108
3417
  dateField?: string | {
4109
3418
  name: string;
4110
3419
  datasetName?: string | undefined;
@@ -4135,7 +3444,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
4135
3444
  } | undefined;
4136
3445
  })[] | null | undefined;
4137
3446
  }>;
4138
- export declare const cardQueryPatchSchema: z.ZodType<CardQueryPatch>;
3447
+ export declare const cardQueryPatchSchema: z.ZodType<CardQueryPatch, z.ZodTypeDef, unknown>;
4139
3448
  /** The query fields that run across the top; the rest run down the side. */
4140
3449
  export declare const matrixColumnsSchema: z.ZodObject<{
4141
3450
  columns: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -4260,7 +3569,6 @@ declare const variablePresentationSchema: z.ZodObject<{
4260
3569
  percent?: boolean | undefined;
4261
3570
  decimals?: number | undefined;
4262
3571
  absolute?: boolean | undefined;
4263
- signWords?: [string, string, string] | undefined;
4264
3572
  temporal?: {
4265
3573
  mode: "style";
4266
3574
  dateStyle: "short" | "long" | "medium";
@@ -4272,11 +3580,11 @@ declare const variablePresentationSchema: z.ZodObject<{
4272
3580
  mode: "period_label";
4273
3581
  } | undefined;
4274
3582
  units?: [string, string] | undefined;
3583
+ signWords?: [string, string, string] | undefined;
4275
3584
  }, {
4276
3585
  percent?: boolean | undefined;
4277
3586
  decimals?: number | undefined;
4278
3587
  absolute?: boolean | undefined;
4279
- signWords?: [string, string, string] | undefined;
4280
3588
  temporal?: {
4281
3589
  mode: "style";
4282
3590
  dateStyle: "short" | "long" | "medium";
@@ -4288,6 +3596,7 @@ declare const variablePresentationSchema: z.ZodObject<{
4288
3596
  mode: "period_label";
4289
3597
  } | undefined;
4290
3598
  units?: [string, string] | undefined;
3599
+ signWords?: [string, string, string] | undefined;
4291
3600
  }>;
4292
3601
  /**
4293
3602
  * A chip's colours (data variables DV-D23, P3b-08): the highlight words card
@@ -4391,7 +3700,6 @@ declare const runPresentationSchema: z.ZodObject<{
4391
3700
  };
4392
3701
  color: string;
4393
3702
  }[] | undefined;
4394
- signWords?: [string, string, string] | undefined;
4395
3703
  temporal?: {
4396
3704
  mode: "style";
4397
3705
  dateStyle: "short" | "long" | "medium";
@@ -4403,6 +3711,7 @@ declare const runPresentationSchema: z.ZodObject<{
4403
3711
  mode: "period_label";
4404
3712
  } | undefined;
4405
3713
  units?: [string, string] | undefined;
3714
+ signWords?: [string, string, string] | undefined;
4406
3715
  }, {
4407
3716
  percent?: boolean | undefined;
4408
3717
  decimals?: number | undefined;
@@ -4414,7 +3723,6 @@ declare const runPresentationSchema: z.ZodObject<{
4414
3723
  };
4415
3724
  color: string;
4416
3725
  }[] | undefined;
4417
- signWords?: [string, string, string] | undefined;
4418
3726
  temporal?: {
4419
3727
  mode: "style";
4420
3728
  dateStyle: "short" | "long" | "medium";
@@ -4426,6 +3734,7 @@ declare const runPresentationSchema: z.ZodObject<{
4426
3734
  mode: "period_label";
4427
3735
  } | undefined;
4428
3736
  units?: [string, string] | undefined;
3737
+ signWords?: [string, string, string] | undefined;
4429
3738
  }>;
4430
3739
  declare const filterValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
4431
3740
  /**
@@ -4450,8 +3759,8 @@ export declare const columnSettingsInputSchema: z.ZodObject<{
4450
3759
  field?: string | undefined;
4451
3760
  format?: Record<string, unknown> | null | undefined;
4452
3761
  polarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
4453
- hidden?: boolean | undefined;
4454
3762
  width?: number | null | undefined;
3763
+ hidden?: boolean | undefined;
4455
3764
  inherits?: string[] | undefined;
4456
3765
  }, {
4457
3766
  label?: string | null | undefined;
@@ -4459,8 +3768,8 @@ export declare const columnSettingsInputSchema: z.ZodObject<{
4459
3768
  field?: string | undefined;
4460
3769
  format?: Record<string, unknown> | null | undefined;
4461
3770
  polarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
4462
- hidden?: boolean | undefined;
4463
3771
  width?: number | null | undefined;
3772
+ hidden?: boolean | undefined;
4464
3773
  inherits?: string[] | undefined;
4465
3774
  }>;
4466
3775
  /**
@@ -4732,7 +4041,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
4732
4041
  } | undefined;
4733
4042
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4734
4043
  };
4735
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4044
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
4736
4045
  values?: (string | number | boolean)[] | undefined;
4737
4046
  id?: string | undefined;
4738
4047
  scope?: "aggregate" | "row" | undefined;
@@ -4752,7 +4061,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
4752
4061
  } | undefined;
4753
4062
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4754
4063
  };
4755
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4064
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
4756
4065
  values?: (string | number | boolean)[] | undefined;
4757
4066
  id?: string | undefined;
4758
4067
  scope?: "aggregate" | "row" | undefined;
@@ -4901,7 +4210,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
4901
4210
  } | undefined;
4902
4211
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4903
4212
  };
4904
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4213
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
4905
4214
  values?: (string | number | boolean)[] | undefined;
4906
4215
  id?: string | undefined;
4907
4216
  scope?: "aggregate" | "row" | undefined;
@@ -4990,7 +4299,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
4990
4299
  } | undefined;
4991
4300
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
4992
4301
  };
4993
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4302
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
4994
4303
  values?: (string | number | boolean)[] | undefined;
4995
4304
  id?: string | undefined;
4996
4305
  scope?: "aggregate" | "row" | undefined;
@@ -5035,11 +4344,11 @@ declare const variableGetSchema: z.ZodUnion<[z.ZodEnum<["only", "first", "list",
5035
4344
  limit: z.ZodOptional<z.ZodNumber>;
5036
4345
  separator: z.ZodOptional<z.ZodString>;
5037
4346
  }, "strict", z.ZodTypeAny, {
5038
- kind: "aggregate" | "first" | "only" | "list";
4347
+ kind: "aggregate" | "first" | "list" | "only";
5039
4348
  limit?: number | undefined;
5040
4349
  separator?: string | undefined;
5041
4350
  }, {
5042
- kind: "aggregate" | "first" | "only" | "list";
4351
+ kind: "aggregate" | "first" | "list" | "only";
5043
4352
  limit?: number | undefined;
5044
4353
  separator?: string | undefined;
5045
4354
  }>]>;
@@ -5049,33 +4358,33 @@ export declare const relationshipAddSchema: z.ZodObject<{
5049
4358
  dataset: z.ZodString;
5050
4359
  fields: z.ZodArray<z.ZodString, "many">;
5051
4360
  }, "strict", z.ZodTypeAny, {
5052
- dataset: string;
5053
4361
  fields: string[];
5054
- }, {
5055
4362
  dataset: string;
4363
+ }, {
5056
4364
  fields: string[];
4365
+ dataset: string;
5057
4366
  }>;
5058
4367
  to: z.ZodObject<{
5059
4368
  dataset: z.ZodString;
5060
4369
  fields: z.ZodArray<z.ZodString, "many">;
5061
4370
  }, "strict", z.ZodTypeAny, {
5062
- dataset: string;
5063
4371
  fields: string[];
5064
- }, {
5065
4372
  dataset: string;
4373
+ }, {
5066
4374
  fields: string[];
4375
+ dataset: string;
5067
4376
  }>;
5068
4377
  cardinality: z.ZodEnum<["many_to_one", "one_to_one"]>;
5069
4378
  defaultJoinType: z.ZodEnum<["LEFT", "INNER"]>;
5070
4379
  description: z.ZodOptional<z.ZodString>;
5071
4380
  }, "strict", z.ZodTypeAny, {
5072
4381
  from: {
5073
- dataset: string;
5074
4382
  fields: string[];
4383
+ dataset: string;
5075
4384
  };
5076
4385
  to: {
5077
- dataset: string;
5078
4386
  fields: string[];
4387
+ dataset: string;
5079
4388
  };
5080
4389
  op: "relationship.add";
5081
4390
  cardinality: "one_to_one" | "many_to_one";
@@ -5083,12 +4392,12 @@ export declare const relationshipAddSchema: z.ZodObject<{
5083
4392
  description?: string | undefined;
5084
4393
  }, {
5085
4394
  from: {
5086
- dataset: string;
5087
4395
  fields: string[];
4396
+ dataset: string;
5088
4397
  };
5089
4398
  to: {
5090
- dataset: string;
5091
4399
  fields: string[];
4400
+ dataset: string;
5092
4401
  };
5093
4402
  op: "relationship.add";
5094
4403
  cardinality: "one_to_one" | "many_to_one";
@@ -5157,12 +4466,101 @@ export declare const tabChangeSchemas: readonly [z.ZodObject<{
5157
4466
  op: z.ZodLiteral<"layout.untab">;
5158
4467
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
5159
4468
  }, "strict", z.ZodTypeAny, {
5160
- op: "layout.untab";
5161
4469
  cardId: string;
5162
- }, {
5163
4470
  op: "layout.untab";
4471
+ }, {
5164
4472
  cardId: string;
4473
+ op: "layout.untab";
5165
4474
  }>];
4475
+ /**
4476
+ * A dashboard's style in the one edit vocabulary (dashboard style SPEC §3.2,
4477
+ * §6): the Style panel's words, applied by `editDashboardStyle`. The schema
4478
+ * names the words; bounds, colours and palette sizes are the style owner's
4479
+ * to refuse, with their fix. Descriptions stay short: every caller pays for
4480
+ * them in every session (propose definition size).
4481
+ */
4482
+ export declare const dashboardStyleChangeSchema: z.ZodObject<{
4483
+ op: z.ZodLiteral<"dashboard.style">;
4484
+ reset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<["spacing", "canvasPadding", "canvas", "cards", "border", "shadow", "corners", "chartColors", "barCorners"]>, "many">]>>;
4485
+ spacing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').SpacingStep, ...import('../index.js').SpacingStep[]]>, z.ZodNumber]>>;
4486
+ canvasPadding: z.ZodOptional<z.ZodNumber>;
4487
+ cards: z.ZodOptional<z.ZodEnum<[import('../index.js').CardSurface, ...import('../index.js').CardSurface[]]>>;
4488
+ canvas: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
4489
+ light: z.ZodOptional<z.ZodTypeAny>;
4490
+ dark: z.ZodOptional<z.ZodTypeAny>;
4491
+ }, "strict", z.ZodTypeAny, {
4492
+ light?: any;
4493
+ dark?: any;
4494
+ }, {
4495
+ light?: any;
4496
+ dark?: any;
4497
+ }>]>>;
4498
+ border: z.ZodOptional<z.ZodEnum<["on", "off"]>>;
4499
+ shadow: z.ZodOptional<z.ZodEnum<["none", "subtle", "raised"]>>;
4500
+ corners: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').CornerStep, ...import('../index.js').CornerStep[]]>, z.ZodObject<{
4501
+ cards: z.ZodOptional<z.ZodNumber>;
4502
+ controls: z.ZodOptional<z.ZodNumber>;
4503
+ }, "strict", z.ZodTypeAny, {
4504
+ cards?: number | undefined;
4505
+ controls?: number | undefined;
4506
+ }, {
4507
+ cards?: number | undefined;
4508
+ controls?: number | undefined;
4509
+ }>]>>;
4510
+ chartColors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
4511
+ light: z.ZodOptional<z.ZodTypeAny>;
4512
+ dark: z.ZodOptional<z.ZodTypeAny>;
4513
+ }, "strict", z.ZodTypeAny, {
4514
+ light?: any;
4515
+ dark?: any;
4516
+ }, {
4517
+ light?: any;
4518
+ dark?: any;
4519
+ }>]>>;
4520
+ barCorners: z.ZodOptional<z.ZodNumber>;
4521
+ }, "strict", z.ZodTypeAny, {
4522
+ op: "dashboard.style";
4523
+ spacing?: number | import('../index.js').SpacingStep | undefined;
4524
+ canvasPadding?: number | undefined;
4525
+ canvas?: string | {
4526
+ light?: any;
4527
+ dark?: any;
4528
+ } | undefined;
4529
+ cards?: import('../index.js').CardSurface | undefined;
4530
+ border?: "on" | "off" | undefined;
4531
+ shadow?: "none" | "subtle" | "raised" | undefined;
4532
+ corners?: import('../index.js').CornerStep | {
4533
+ cards?: number | undefined;
4534
+ controls?: number | undefined;
4535
+ } | undefined;
4536
+ chartColors?: string[] | {
4537
+ light?: any;
4538
+ dark?: any;
4539
+ } | undefined;
4540
+ barCorners?: number | undefined;
4541
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
4542
+ }, {
4543
+ op: "dashboard.style";
4544
+ spacing?: number | import('../index.js').SpacingStep | undefined;
4545
+ canvasPadding?: number | undefined;
4546
+ canvas?: string | {
4547
+ light?: any;
4548
+ dark?: any;
4549
+ } | undefined;
4550
+ cards?: import('../index.js').CardSurface | undefined;
4551
+ border?: "on" | "off" | undefined;
4552
+ shadow?: "none" | "subtle" | "raised" | undefined;
4553
+ corners?: import('../index.js').CornerStep | {
4554
+ cards?: number | undefined;
4555
+ controls?: number | undefined;
4556
+ } | undefined;
4557
+ chartColors?: string[] | {
4558
+ light?: any;
4559
+ dark?: any;
4560
+ } | undefined;
4561
+ barCorners?: number | undefined;
4562
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
4563
+ }>;
5166
4564
  export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
5167
4565
  op: z.ZodLiteral<"card.add">;
5168
4566
  handle: z.ZodOptional<z.ZodString>;
@@ -5269,7 +4667,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5269
4667
  /** Card appearance: a card is born finished, with the settings `card.update` takes. */
5270
4668
  columns: z.ZodOptional<z.ZodTypeAny>;
5271
4669
  }, "strict", z.ZodTypeAny, {
5272
- type: "table" | "matrix" | "kpi" | "text" | "bar" | "line" | "area" | "pie" | "detail_table";
4670
+ type: "table" | "matrix" | "kpi" | "text" | "line" | "bar" | "area" | "pie" | "detail_table";
5273
4671
  title: string;
5274
4672
  op: "card.add";
5275
4673
  description?: string | undefined;
@@ -5290,16 +4688,16 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5290
4688
  } | undefined;
5291
4689
  })[];
5292
4690
  } | undefined;
4691
+ text?: any;
5293
4692
  position?: "top" | "end" | {
5294
4693
  after: string;
5295
4694
  } | undefined;
5296
- text?: any;
5297
- query?: any;
5298
4695
  width?: "quarter" | "full" | "half" | "third" | undefined;
4696
+ query?: any;
5299
4697
  handle?: string | undefined;
5300
4698
  sheetId?: string | undefined;
5301
4699
  }, {
5302
- type: "table" | "matrix" | "kpi" | "text" | "bar" | "line" | "area" | "pie" | "detail_table";
4700
+ type: "table" | "matrix" | "kpi" | "text" | "line" | "bar" | "area" | "pie" | "detail_table";
5303
4701
  title: string;
5304
4702
  op: "card.add";
5305
4703
  description?: string | undefined;
@@ -5320,12 +4718,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5320
4718
  } | undefined;
5321
4719
  })[];
5322
4720
  } | undefined;
4721
+ text?: any;
5323
4722
  position?: "top" | "end" | {
5324
4723
  after: string;
5325
4724
  } | undefined;
5326
- text?: any;
5327
- query?: any;
5328
4725
  width?: "quarter" | "full" | "half" | "third" | undefined;
4726
+ query?: any;
5329
4727
  handle?: string | undefined;
5330
4728
  sheetId?: string | undefined;
5331
4729
  }>, z.ZodObject<{
@@ -5508,6 +4906,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5508
4906
  } | null | undefined;
5509
4907
  })[] | undefined;
5510
4908
  limit?: number | null | undefined;
4909
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
5511
4910
  filters?: {
5512
4911
  field: string | {
5513
4912
  name: string;
@@ -5524,7 +4923,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5524
4923
  } | undefined;
5525
4924
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5526
4925
  };
5527
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4926
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
5528
4927
  values?: (string | number | boolean)[] | undefined;
5529
4928
  id?: string | undefined;
5530
4929
  scope?: "aggregate" | "row" | undefined;
@@ -5547,22 +4946,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5547
4946
  };
5548
4947
  direction: "asc" | "desc";
5549
4948
  } | null | undefined;
5550
- timeWindow?: {
5551
- value: number;
5552
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
5553
- kind?: "relative" | undefined;
5554
- anchor?: "now" | "latest_available" | undefined;
5555
- completeness?: "include_partial" | "complete_periods" | undefined;
5556
- } | {
5557
- kind: "calendar";
5558
- unit: "day" | "week" | "month" | "quarter" | "year";
5559
- period: "this" | "previous";
5560
- toDate?: boolean | undefined;
5561
- } | {
5562
- kind: "absolute";
5563
- start: string;
5564
- end: string;
5565
- } | null | undefined;
5566
4949
  dateField?: string | {
5567
4950
  name: string;
5568
4951
  datasetName?: string | undefined;
@@ -5592,12 +4975,35 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5592
4975
  connectionId?: string | undefined;
5593
4976
  } | undefined;
5594
4977
  })[] | null | undefined;
5595
- }, z.ZodTypeDef, {
5596
- domainId?: string | undefined;
5597
- datasetName?: string | undefined;
5598
- connectionId?: string | undefined;
5599
- sql?: string | undefined;
5600
- columns?: (string | {
4978
+ }, z.ZodTypeDef, unknown>>;
4979
+ text: z.ZodOptional<z.ZodTypeAny>;
4980
+ matrix: z.ZodOptional<z.ZodObject<{
4981
+ columns: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
4982
+ name: z.ZodString;
4983
+ label: z.ZodOptional<z.ZodString>;
4984
+ datasetName: z.ZodOptional<z.ZodString>;
4985
+ datasetId: z.ZodOptional<z.ZodString>;
4986
+ connectionId: z.ZodOptional<z.ZodString>;
4987
+ source: z.ZodOptional<z.ZodObject<{
4988
+ kind: z.ZodLiteral<"semantic">;
4989
+ domainId: z.ZodString;
4990
+ datasetName: z.ZodString;
4991
+ datasetId: z.ZodOptional<z.ZodString>;
4992
+ connectionId: z.ZodOptional<z.ZodString>;
4993
+ }, "strict", z.ZodTypeAny, {
4994
+ kind: "semantic";
4995
+ domainId: string;
4996
+ datasetName: string;
4997
+ datasetId?: string | undefined;
4998
+ connectionId?: string | undefined;
4999
+ }, {
5000
+ kind: "semantic";
5001
+ domainId: string;
5002
+ datasetName: string;
5003
+ datasetId?: string | undefined;
5004
+ connectionId?: string | undefined;
5005
+ }>>;
5006
+ }, "strict", z.ZodTypeAny, {
5601
5007
  name: string;
5602
5008
  datasetName?: string | undefined;
5603
5009
  datasetId?: string | undefined;
@@ -5610,8 +5016,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5610
5016
  datasetId?: string | undefined;
5611
5017
  connectionId?: string | undefined;
5612
5018
  } | undefined;
5613
- })[] | undefined;
5614
- measures?: (string | {
5019
+ }, {
5615
5020
  name: string;
5616
5021
  datasetName?: string | undefined;
5617
5022
  datasetId?: string | undefined;
@@ -5624,588 +5029,24 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5624
5029
  datasetId?: string | undefined;
5625
5030
  connectionId?: string | undefined;
5626
5031
  } | undefined;
5627
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5628
- comparison?: {
5629
- kind: "previous_period";
5630
- toDate?: boolean | undefined;
5631
- alignment?: "calendar" | "weekday" | undefined;
5632
- offsetPeriods?: number | undefined;
5633
- } | {
5634
- kind: "previous_year";
5635
- toDate?: boolean | undefined;
5636
- alignment?: "calendar" | "weekday" | undefined;
5637
- offsetYears?: number | undefined;
5638
- } | {
5639
- kind: "target";
5640
- targetValue: number;
5641
- } | {
5642
- kind: "inherit";
5643
- } | {
5644
- kind: "off";
5032
+ }>]>, "many">;
5033
+ }, "strict", z.ZodTypeAny, {
5034
+ columns: (string | {
5035
+ name: string;
5036
+ datasetName?: string | undefined;
5037
+ datasetId?: string | undefined;
5038
+ label?: string | undefined;
5039
+ connectionId?: string | undefined;
5040
+ source?: {
5041
+ kind: "semantic";
5042
+ domainId: string;
5043
+ datasetName: string;
5044
+ datasetId?: string | undefined;
5045
+ connectionId?: string | undefined;
5645
5046
  } | undefined;
5646
- transform?: {
5647
- kind: "running_total";
5648
- orderBy?: {
5649
- field: string | {
5650
- name: string;
5651
- datasetName?: string | undefined;
5652
- datasetId?: string | undefined;
5653
- label?: string | undefined;
5654
- connectionId?: string | undefined;
5655
- source?: {
5656
- kind: "semantic";
5657
- domainId: string;
5658
- datasetName: string;
5659
- datasetId?: string | undefined;
5660
- connectionId?: string | undefined;
5661
- } | undefined;
5662
- };
5663
- direction?: "asc" | "desc" | undefined;
5664
- } | undefined;
5665
- resetBy?: (string | {
5666
- name: string;
5667
- datasetName?: string | undefined;
5668
- datasetId?: string | undefined;
5669
- label?: string | undefined;
5670
- connectionId?: string | undefined;
5671
- source?: {
5672
- kind: "semantic";
5673
- domainId: string;
5674
- datasetName: string;
5675
- datasetId?: string | undefined;
5676
- connectionId?: string | undefined;
5677
- } | undefined;
5678
- })[] | undefined;
5679
- } | {
5680
- kind: "moving_average";
5681
- window?: number | undefined;
5682
- orderBy?: {
5683
- field: string | {
5684
- name: string;
5685
- datasetName?: string | undefined;
5686
- datasetId?: string | undefined;
5687
- label?: string | undefined;
5688
- connectionId?: string | undefined;
5689
- source?: {
5690
- kind: "semantic";
5691
- domainId: string;
5692
- datasetName: string;
5693
- datasetId?: string | undefined;
5694
- connectionId?: string | undefined;
5695
- } | undefined;
5696
- };
5697
- direction?: "asc" | "desc" | undefined;
5698
- } | undefined;
5699
- resetBy?: (string | {
5700
- name: string;
5701
- datasetName?: string | undefined;
5702
- datasetId?: string | undefined;
5703
- label?: string | undefined;
5704
- connectionId?: string | undefined;
5705
- source?: {
5706
- kind: "semantic";
5707
- domainId: string;
5708
- datasetName: string;
5709
- datasetId?: string | undefined;
5710
- connectionId?: string | undefined;
5711
- } | undefined;
5712
- })[] | undefined;
5713
- minPeriods?: number | undefined;
5714
- } | {
5715
- kind: "difference_from_previous";
5716
- mode?: "difference" | "percent_change" | undefined;
5717
- orderBy?: {
5718
- field: string | {
5719
- name: string;
5720
- datasetName?: string | undefined;
5721
- datasetId?: string | undefined;
5722
- label?: string | undefined;
5723
- connectionId?: string | undefined;
5724
- source?: {
5725
- kind: "semantic";
5726
- domainId: string;
5727
- datasetName: string;
5728
- datasetId?: string | undefined;
5729
- connectionId?: string | undefined;
5730
- } | undefined;
5731
- };
5732
- direction?: "asc" | "desc" | undefined;
5733
- } | undefined;
5734
- resetBy?: (string | {
5735
- name: string;
5736
- datasetName?: string | undefined;
5737
- datasetId?: string | undefined;
5738
- label?: string | undefined;
5739
- connectionId?: string | undefined;
5740
- source?: {
5741
- kind: "semantic";
5742
- domainId: string;
5743
- datasetName: string;
5744
- datasetId?: string | undefined;
5745
- connectionId?: string | undefined;
5746
- } | undefined;
5747
- })[] | undefined;
5748
- } | {
5749
- kind: "percent_of_total";
5750
- scope?: "grand_total" | "partition_total" | undefined;
5751
- output?: "percent" | "fraction" | undefined;
5752
- resetBy?: (string | {
5753
- name: string;
5754
- datasetName?: string | undefined;
5755
- datasetId?: string | undefined;
5756
- label?: string | undefined;
5757
- connectionId?: string | undefined;
5758
- source?: {
5759
- kind: "semantic";
5760
- domainId: string;
5761
- datasetName: string;
5762
- datasetId?: string | undefined;
5763
- connectionId?: string | undefined;
5764
- } | undefined;
5765
- })[] | undefined;
5766
- } | null | undefined;
5767
- })[] | undefined;
5768
- limit?: number | null | undefined;
5769
- filters?: {
5770
- field: string | {
5771
- name: string;
5772
- datasetName?: string | undefined;
5773
- datasetId?: string | undefined;
5774
- label?: string | undefined;
5775
- connectionId?: string | undefined;
5776
- source?: {
5777
- kind: "semantic";
5778
- domainId: string;
5779
- datasetName: string;
5780
- datasetId?: string | undefined;
5781
- connectionId?: string | undefined;
5782
- } | undefined;
5783
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5784
- };
5785
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
5786
- values?: (string | number | boolean)[] | undefined;
5787
- id?: string | undefined;
5788
- scope?: "aggregate" | "row" | undefined;
5789
- }[] | null | undefined;
5790
- orderBy?: {
5791
- field: string | {
5792
- name: string;
5793
- datasetName?: string | undefined;
5794
- datasetId?: string | undefined;
5795
- label?: string | undefined;
5796
- connectionId?: string | undefined;
5797
- source?: {
5798
- kind: "semantic";
5799
- domainId: string;
5800
- datasetName: string;
5801
- datasetId?: string | undefined;
5802
- connectionId?: string | undefined;
5803
- } | undefined;
5804
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5805
- };
5806
- direction: "asc" | "desc";
5807
- } | null | undefined;
5808
- timeWindow?: {
5809
- value: number;
5810
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
5811
- kind?: "relative" | undefined;
5812
- anchor?: "now" | "latest_available" | undefined;
5813
- completeness?: "include_partial" | "complete_periods" | undefined;
5814
- } | {
5815
- kind: "calendar";
5816
- unit: "day" | "week" | "month" | "quarter" | "year";
5817
- period: "this" | "previous";
5818
- toDate?: boolean | undefined;
5819
- } | {
5820
- kind: "absolute";
5821
- start: string;
5822
- end: string;
5823
- } | null | undefined;
5824
- dateField?: string | {
5825
- name: string;
5826
- datasetName?: string | undefined;
5827
- datasetId?: string | undefined;
5828
- label?: string | undefined;
5829
- connectionId?: string | undefined;
5830
- source?: {
5831
- kind: "semantic";
5832
- domainId: string;
5833
- datasetName: string;
5834
- datasetId?: string | undefined;
5835
- connectionId?: string | undefined;
5836
- } | undefined;
5837
- } | null | undefined;
5838
- timeGrain?: "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
5839
- dimensions?: (string | {
5840
- name: string;
5841
- datasetName?: string | undefined;
5842
- datasetId?: string | undefined;
5843
- label?: string | undefined;
5844
- connectionId?: string | undefined;
5845
- source?: {
5846
- kind: "semantic";
5847
- domainId: string;
5848
- datasetName: string;
5849
- datasetId?: string | undefined;
5850
- connectionId?: string | undefined;
5851
- } | undefined;
5852
- })[] | null | undefined;
5853
- }>>;
5854
- text: z.ZodOptional<z.ZodTypeAny>;
5855
- matrix: z.ZodOptional<z.ZodObject<{
5856
- columns: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
5857
- name: z.ZodString;
5858
- label: z.ZodOptional<z.ZodString>;
5859
- datasetName: z.ZodOptional<z.ZodString>;
5860
- datasetId: z.ZodOptional<z.ZodString>;
5861
- connectionId: z.ZodOptional<z.ZodString>;
5862
- source: z.ZodOptional<z.ZodObject<{
5863
- kind: z.ZodLiteral<"semantic">;
5864
- domainId: z.ZodString;
5865
- datasetName: z.ZodString;
5866
- datasetId: z.ZodOptional<z.ZodString>;
5867
- connectionId: z.ZodOptional<z.ZodString>;
5868
- }, "strict", z.ZodTypeAny, {
5869
- kind: "semantic";
5870
- domainId: string;
5871
- datasetName: string;
5872
- datasetId?: string | undefined;
5873
- connectionId?: string | undefined;
5874
- }, {
5875
- kind: "semantic";
5876
- domainId: string;
5877
- datasetName: string;
5878
- datasetId?: string | undefined;
5879
- connectionId?: string | undefined;
5880
- }>>;
5881
- }, "strict", z.ZodTypeAny, {
5882
- name: string;
5883
- datasetName?: string | undefined;
5884
- datasetId?: string | undefined;
5885
- label?: string | undefined;
5886
- connectionId?: string | undefined;
5887
- source?: {
5888
- kind: "semantic";
5889
- domainId: string;
5890
- datasetName: string;
5891
- datasetId?: string | undefined;
5892
- connectionId?: string | undefined;
5893
- } | undefined;
5894
- }, {
5895
- name: string;
5896
- datasetName?: string | undefined;
5897
- datasetId?: string | undefined;
5898
- label?: string | undefined;
5899
- connectionId?: string | undefined;
5900
- source?: {
5901
- kind: "semantic";
5902
- domainId: string;
5903
- datasetName: string;
5904
- datasetId?: string | undefined;
5905
- connectionId?: string | undefined;
5906
- } | undefined;
5907
- }>]>, "many">;
5908
- }, "strict", z.ZodTypeAny, {
5909
- columns: (string | {
5910
- name: string;
5911
- datasetName?: string | undefined;
5912
- datasetId?: string | undefined;
5913
- label?: string | undefined;
5914
- connectionId?: string | undefined;
5915
- source?: {
5916
- kind: "semantic";
5917
- domainId: string;
5918
- datasetName: string;
5919
- datasetId?: string | undefined;
5920
- connectionId?: string | undefined;
5921
- } | undefined;
5922
- })[];
5923
- }, {
5924
- columns: (string | {
5925
- name: string;
5926
- datasetName?: string | undefined;
5927
- datasetId?: string | undefined;
5928
- label?: string | undefined;
5929
- connectionId?: string | undefined;
5930
- source?: {
5931
- kind: "semantic";
5932
- domainId: string;
5933
- datasetName: string;
5934
- datasetId?: string | undefined;
5935
- connectionId?: string | undefined;
5936
- } | undefined;
5937
- })[];
5938
- }>>;
5939
- columns: z.ZodOptional<z.ZodTypeAny>;
5940
- }, "strict", z.ZodTypeAny, {
5941
- op: "card.update";
5942
- cardId: string;
5943
- type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
5944
- description?: string | null | undefined;
5945
- columns?: any;
5946
- matrix?: {
5947
- columns: (string | {
5948
- name: string;
5949
- datasetName?: string | undefined;
5950
- datasetId?: string | undefined;
5951
- label?: string | undefined;
5952
- connectionId?: string | undefined;
5953
- source?: {
5954
- kind: "semantic";
5955
- domainId: string;
5956
- datasetName: string;
5957
- datasetId?: string | undefined;
5958
- connectionId?: string | undefined;
5959
- } | undefined;
5960
- })[];
5961
- } | undefined;
5962
- text?: any;
5963
- title?: string | undefined;
5964
- query?: {
5965
- domainId?: string | undefined;
5966
- datasetName?: string | undefined;
5967
- connectionId?: string | undefined;
5968
- sql?: string | undefined;
5969
- columns?: (string | {
5970
- name: string;
5971
- datasetName?: string | undefined;
5972
- datasetId?: string | undefined;
5973
- label?: string | undefined;
5974
- connectionId?: string | undefined;
5975
- source?: {
5976
- kind: "semantic";
5977
- domainId: string;
5978
- datasetName: string;
5979
- datasetId?: string | undefined;
5980
- connectionId?: string | undefined;
5981
- } | undefined;
5982
- })[] | undefined;
5983
- measures?: (string | {
5984
- name: string;
5985
- datasetName?: string | undefined;
5986
- datasetId?: string | undefined;
5987
- label?: string | undefined;
5988
- connectionId?: string | undefined;
5989
- source?: {
5990
- kind: "semantic";
5991
- domainId: string;
5992
- datasetName: string;
5993
- datasetId?: string | undefined;
5994
- connectionId?: string | undefined;
5995
- } | undefined;
5996
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5997
- comparison?: {
5998
- kind: "previous_period";
5999
- toDate?: boolean | undefined;
6000
- alignment?: "calendar" | "weekday" | undefined;
6001
- offsetPeriods?: number | undefined;
6002
- } | {
6003
- kind: "previous_year";
6004
- toDate?: boolean | undefined;
6005
- alignment?: "calendar" | "weekday" | undefined;
6006
- offsetYears?: number | undefined;
6007
- } | {
6008
- kind: "target";
6009
- targetValue: number;
6010
- } | {
6011
- kind: "inherit";
6012
- } | {
6013
- kind: "off";
6014
- } | undefined;
6015
- transform?: {
6016
- kind: "running_total";
6017
- orderBy?: {
6018
- field: string | {
6019
- name: string;
6020
- datasetName?: string | undefined;
6021
- datasetId?: string | undefined;
6022
- label?: string | undefined;
6023
- connectionId?: string | undefined;
6024
- source?: {
6025
- kind: "semantic";
6026
- domainId: string;
6027
- datasetName: string;
6028
- datasetId?: string | undefined;
6029
- connectionId?: string | undefined;
6030
- } | undefined;
6031
- };
6032
- direction?: "asc" | "desc" | undefined;
6033
- } | undefined;
6034
- resetBy?: (string | {
6035
- name: string;
6036
- datasetName?: string | undefined;
6037
- datasetId?: string | undefined;
6038
- label?: string | undefined;
6039
- connectionId?: string | undefined;
6040
- source?: {
6041
- kind: "semantic";
6042
- domainId: string;
6043
- datasetName: string;
6044
- datasetId?: string | undefined;
6045
- connectionId?: string | undefined;
6046
- } | undefined;
6047
- })[] | undefined;
6048
- } | {
6049
- kind: "moving_average";
6050
- window?: number | undefined;
6051
- orderBy?: {
6052
- field: string | {
6053
- name: string;
6054
- datasetName?: string | undefined;
6055
- datasetId?: string | undefined;
6056
- label?: string | undefined;
6057
- connectionId?: string | undefined;
6058
- source?: {
6059
- kind: "semantic";
6060
- domainId: string;
6061
- datasetName: string;
6062
- datasetId?: string | undefined;
6063
- connectionId?: string | undefined;
6064
- } | undefined;
6065
- };
6066
- direction?: "asc" | "desc" | undefined;
6067
- } | undefined;
6068
- resetBy?: (string | {
6069
- name: string;
6070
- datasetName?: string | undefined;
6071
- datasetId?: string | undefined;
6072
- label?: string | undefined;
6073
- connectionId?: string | undefined;
6074
- source?: {
6075
- kind: "semantic";
6076
- domainId: string;
6077
- datasetName: string;
6078
- datasetId?: string | undefined;
6079
- connectionId?: string | undefined;
6080
- } | undefined;
6081
- })[] | undefined;
6082
- minPeriods?: number | undefined;
6083
- } | {
6084
- kind: "difference_from_previous";
6085
- mode?: "difference" | "percent_change" | undefined;
6086
- orderBy?: {
6087
- field: string | {
6088
- name: string;
6089
- datasetName?: string | undefined;
6090
- datasetId?: string | undefined;
6091
- label?: string | undefined;
6092
- connectionId?: string | undefined;
6093
- source?: {
6094
- kind: "semantic";
6095
- domainId: string;
6096
- datasetName: string;
6097
- datasetId?: string | undefined;
6098
- connectionId?: string | undefined;
6099
- } | undefined;
6100
- };
6101
- direction?: "asc" | "desc" | undefined;
6102
- } | undefined;
6103
- resetBy?: (string | {
6104
- name: string;
6105
- datasetName?: string | undefined;
6106
- datasetId?: string | undefined;
6107
- label?: string | undefined;
6108
- connectionId?: string | undefined;
6109
- source?: {
6110
- kind: "semantic";
6111
- domainId: string;
6112
- datasetName: string;
6113
- datasetId?: string | undefined;
6114
- connectionId?: string | undefined;
6115
- } | undefined;
6116
- })[] | undefined;
6117
- } | {
6118
- kind: "percent_of_total";
6119
- scope?: "grand_total" | "partition_total" | undefined;
6120
- output?: "percent" | "fraction" | undefined;
6121
- resetBy?: (string | {
6122
- name: string;
6123
- datasetName?: string | undefined;
6124
- datasetId?: string | undefined;
6125
- label?: string | undefined;
6126
- connectionId?: string | undefined;
6127
- source?: {
6128
- kind: "semantic";
6129
- domainId: string;
6130
- datasetName: string;
6131
- datasetId?: string | undefined;
6132
- connectionId?: string | undefined;
6133
- } | undefined;
6134
- })[] | undefined;
6135
- } | null | undefined;
6136
- })[] | undefined;
6137
- limit?: number | null | undefined;
6138
- filters?: {
6139
- field: string | {
6140
- name: string;
6141
- datasetName?: string | undefined;
6142
- datasetId?: string | undefined;
6143
- label?: string | undefined;
6144
- connectionId?: string | undefined;
6145
- source?: {
6146
- kind: "semantic";
6147
- domainId: string;
6148
- datasetName: string;
6149
- datasetId?: string | undefined;
6150
- connectionId?: string | undefined;
6151
- } | undefined;
6152
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
6153
- };
6154
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
6155
- values?: (string | number | boolean)[] | undefined;
6156
- id?: string | undefined;
6157
- scope?: "aggregate" | "row" | undefined;
6158
- }[] | null | undefined;
6159
- orderBy?: {
6160
- field: string | {
6161
- name: string;
6162
- datasetName?: string | undefined;
6163
- datasetId?: string | undefined;
6164
- label?: string | undefined;
6165
- connectionId?: string | undefined;
6166
- source?: {
6167
- kind: "semantic";
6168
- domainId: string;
6169
- datasetName: string;
6170
- datasetId?: string | undefined;
6171
- connectionId?: string | undefined;
6172
- } | undefined;
6173
- aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
6174
- };
6175
- direction: "asc" | "desc";
6176
- } | null | undefined;
6177
- timeWindow?: {
6178
- value: number;
6179
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6180
- kind?: "relative" | undefined;
6181
- anchor?: "now" | "latest_available" | undefined;
6182
- completeness?: "include_partial" | "complete_periods" | undefined;
6183
- } | {
6184
- kind: "calendar";
6185
- unit: "day" | "week" | "month" | "quarter" | "year";
6186
- period: "this" | "previous";
6187
- toDate?: boolean | undefined;
6188
- } | {
6189
- kind: "absolute";
6190
- start: string;
6191
- end: string;
6192
- } | null | undefined;
6193
- dateField?: string | {
6194
- name: string;
6195
- datasetName?: string | undefined;
6196
- datasetId?: string | undefined;
6197
- label?: string | undefined;
6198
- connectionId?: string | undefined;
6199
- source?: {
6200
- kind: "semantic";
6201
- domainId: string;
6202
- datasetName: string;
6203
- datasetId?: string | undefined;
6204
- connectionId?: string | undefined;
6205
- } | undefined;
6206
- } | null | undefined;
6207
- timeGrain?: "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
6208
- dimensions?: (string | {
5047
+ })[];
5048
+ }, {
5049
+ columns: (string | {
6209
5050
  name: string;
6210
5051
  datasetName?: string | undefined;
6211
5052
  datasetId?: string | undefined;
@@ -6218,12 +5059,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6218
5059
  datasetId?: string | undefined;
6219
5060
  connectionId?: string | undefined;
6220
5061
  } | undefined;
6221
- })[] | null | undefined;
6222
- } | undefined;
6223
- }, {
6224
- op: "card.update";
5062
+ })[];
5063
+ }>>;
5064
+ columns: z.ZodOptional<z.ZodTypeAny>;
5065
+ }, "strict", z.ZodTypeAny, {
6225
5066
  cardId: string;
6226
- type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
5067
+ op: "card.update";
5068
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
6227
5069
  description?: string | null | undefined;
6228
5070
  columns?: any;
6229
5071
  matrix?: {
@@ -6418,6 +5260,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6418
5260
  } | null | undefined;
6419
5261
  })[] | undefined;
6420
5262
  limit?: number | null | undefined;
5263
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
6421
5264
  filters?: {
6422
5265
  field: string | {
6423
5266
  name: string;
@@ -6434,7 +5277,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6434
5277
  } | undefined;
6435
5278
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
6436
5279
  };
6437
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
5280
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
6438
5281
  values?: (string | number | boolean)[] | undefined;
6439
5282
  id?: string | undefined;
6440
5283
  scope?: "aggregate" | "row" | undefined;
@@ -6457,22 +5300,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6457
5300
  };
6458
5301
  direction: "asc" | "desc";
6459
5302
  } | null | undefined;
6460
- timeWindow?: {
6461
- value: number;
6462
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6463
- kind?: "relative" | undefined;
6464
- anchor?: "now" | "latest_available" | undefined;
6465
- completeness?: "include_partial" | "complete_periods" | undefined;
6466
- } | {
6467
- kind: "calendar";
6468
- unit: "day" | "week" | "month" | "quarter" | "year";
6469
- period: "this" | "previous";
6470
- toDate?: boolean | undefined;
6471
- } | {
6472
- kind: "absolute";
6473
- start: string;
6474
- end: string;
6475
- } | null | undefined;
6476
5303
  dateField?: string | {
6477
5304
  name: string;
6478
5305
  datasetName?: string | undefined;
@@ -6503,15 +5330,40 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6503
5330
  } | undefined;
6504
5331
  })[] | null | undefined;
6505
5332
  } | undefined;
5333
+ }, {
5334
+ cardId: string;
5335
+ op: "card.update";
5336
+ type?: "table" | "matrix" | "kpi" | "line" | "bar" | "area" | "pie" | "detail_table" | undefined;
5337
+ description?: string | null | undefined;
5338
+ columns?: any;
5339
+ matrix?: {
5340
+ columns: (string | {
5341
+ name: string;
5342
+ datasetName?: string | undefined;
5343
+ datasetId?: string | undefined;
5344
+ label?: string | undefined;
5345
+ connectionId?: string | undefined;
5346
+ source?: {
5347
+ kind: "semantic";
5348
+ domainId: string;
5349
+ datasetName: string;
5350
+ datasetId?: string | undefined;
5351
+ connectionId?: string | undefined;
5352
+ } | undefined;
5353
+ })[];
5354
+ } | undefined;
5355
+ text?: any;
5356
+ title?: string | undefined;
5357
+ query?: unknown;
6506
5358
  }>, z.ZodObject<{
6507
5359
  op: z.ZodLiteral<"card.remove">;
6508
5360
  cardId: z.ZodString;
6509
5361
  }, "strict", z.ZodTypeAny, {
6510
- op: "card.remove";
6511
5362
  cardId: string;
6512
- }, {
6513
5363
  op: "card.remove";
5364
+ }, {
6514
5365
  cardId: string;
5366
+ op: "card.remove";
6515
5367
  }>, z.ZodObject<{
6516
5368
  op: z.ZodLiteral<"filter.add">;
6517
5369
  handle: z.ZodOptional<z.ZodString>;
@@ -6521,157 +5373,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6521
5373
  field: z.ZodString;
6522
5374
  selection: z.ZodOptional<z.ZodEnum<["single", "multiple"]>>;
6523
5375
  defaultValues: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>;
6524
- defaultPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
6525
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
6526
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
6527
- value: z.ZodNumber;
6528
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
6529
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
6530
- }, "strip", z.ZodTypeAny, {
6531
- value: number;
6532
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6533
- kind?: "relative" | undefined;
6534
- anchor?: "now" | "latest_available" | undefined;
6535
- completeness?: "include_partial" | "complete_periods" | undefined;
6536
- }, {
6537
- value: number;
6538
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6539
- kind?: "relative" | undefined;
6540
- anchor?: "now" | "latest_available" | undefined;
6541
- completeness?: "include_partial" | "complete_periods" | undefined;
6542
- }>, {
6543
- value: number;
6544
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6545
- kind?: "relative" | undefined;
6546
- anchor?: "now" | "latest_available" | undefined;
6547
- completeness?: "include_partial" | "complete_periods" | undefined;
6548
- }, {
6549
- value: number;
6550
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6551
- kind?: "relative" | undefined;
6552
- anchor?: "now" | "latest_available" | undefined;
6553
- completeness?: "include_partial" | "complete_periods" | undefined;
6554
- }> | z.ZodEffects<z.ZodObject<{
6555
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
6556
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
6557
- value: z.ZodNumber;
6558
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
6559
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
6560
- }, "strict", z.ZodTypeAny, {
6561
- value: number;
6562
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6563
- kind?: "relative" | undefined;
6564
- anchor?: "now" | "latest_available" | undefined;
6565
- completeness?: "include_partial" | "complete_periods" | undefined;
6566
- }, {
6567
- value: number;
6568
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6569
- kind?: "relative" | undefined;
6570
- anchor?: "now" | "latest_available" | undefined;
6571
- completeness?: "include_partial" | "complete_periods" | undefined;
6572
- }>, {
6573
- value: number;
6574
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6575
- kind?: "relative" | undefined;
6576
- anchor?: "now" | "latest_available" | undefined;
6577
- completeness?: "include_partial" | "complete_periods" | undefined;
6578
- }, {
6579
- value: number;
6580
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6581
- kind?: "relative" | undefined;
6582
- anchor?: "now" | "latest_available" | undefined;
6583
- completeness?: "include_partial" | "complete_periods" | undefined;
6584
- }>, z.ZodEffects<z.ZodObject<{
6585
- kind: z.ZodLiteral<"calendar">;
6586
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
6587
- period: z.ZodEnum<["this", "previous"]>;
6588
- toDate: z.ZodOptional<z.ZodBoolean>;
6589
- }, "strip", z.ZodTypeAny, {
6590
- kind: "calendar";
6591
- unit: "day" | "week" | "month" | "quarter" | "year";
6592
- period: "this" | "previous";
6593
- toDate?: boolean | undefined;
6594
- }, {
6595
- kind: "calendar";
6596
- unit: "day" | "week" | "month" | "quarter" | "year";
6597
- period: "this" | "previous";
6598
- toDate?: boolean | undefined;
6599
- }>, {
6600
- kind: "calendar";
6601
- unit: "day" | "week" | "month" | "quarter" | "year";
6602
- period: "this" | "previous";
6603
- toDate?: boolean | undefined;
6604
- }, {
6605
- kind: "calendar";
6606
- unit: "day" | "week" | "month" | "quarter" | "year";
6607
- period: "this" | "previous";
6608
- toDate?: boolean | undefined;
6609
- }> | z.ZodEffects<z.ZodObject<{
6610
- kind: z.ZodLiteral<"calendar">;
6611
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
6612
- period: z.ZodEnum<["this", "previous"]>;
6613
- toDate: z.ZodOptional<z.ZodBoolean>;
6614
- }, "strict", z.ZodTypeAny, {
6615
- kind: "calendar";
6616
- unit: "day" | "week" | "month" | "quarter" | "year";
6617
- period: "this" | "previous";
6618
- toDate?: boolean | undefined;
6619
- }, {
6620
- kind: "calendar";
6621
- unit: "day" | "week" | "month" | "quarter" | "year";
6622
- period: "this" | "previous";
6623
- toDate?: boolean | undefined;
6624
- }>, {
6625
- kind: "calendar";
6626
- unit: "day" | "week" | "month" | "quarter" | "year";
6627
- period: "this" | "previous";
6628
- toDate?: boolean | undefined;
6629
- }, {
6630
- kind: "calendar";
6631
- unit: "day" | "week" | "month" | "quarter" | "year";
6632
- period: "this" | "previous";
6633
- toDate?: boolean | undefined;
6634
- }>, z.ZodEffects<z.ZodObject<{
6635
- kind: z.ZodLiteral<"absolute">;
6636
- start: z.ZodString;
6637
- end: z.ZodString;
6638
- }, "strip", z.ZodTypeAny, {
6639
- kind: "absolute";
6640
- start: string;
6641
- end: string;
6642
- }, {
6643
- kind: "absolute";
6644
- start: string;
6645
- end: string;
6646
- }>, {
6647
- kind: "absolute";
6648
- start: string;
6649
- end: string;
6650
- }, {
6651
- kind: "absolute";
6652
- start: string;
6653
- end: string;
6654
- }> | z.ZodEffects<z.ZodObject<{
6655
- kind: z.ZodLiteral<"absolute">;
6656
- start: z.ZodString;
6657
- end: z.ZodString;
6658
- }, "strict", z.ZodTypeAny, {
6659
- kind: "absolute";
6660
- start: string;
6661
- end: string;
6662
- }, {
6663
- kind: "absolute";
6664
- start: string;
6665
- end: string;
6666
- }>, {
6667
- kind: "absolute";
6668
- start: string;
6669
- end: string;
6670
- }, {
6671
- kind: "absolute";
6672
- start: string;
6673
- end: string;
6674
- }>]>>;
5376
+ defaultPeriod: z.ZodOptional<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>;
6675
5377
  sheetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6676
5378
  }, "strict", z.ZodTypeAny, {
6677
5379
  domainId: string;
@@ -6680,24 +5382,9 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6680
5382
  field: string;
6681
5383
  op: "filter.add";
6682
5384
  selection?: "single" | "multiple" | undefined;
6683
- handle?: string | undefined;
5385
+ defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
6684
5386
  defaultValues?: (string | number | boolean)[] | undefined;
6685
- defaultPeriod?: {
6686
- value: number;
6687
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6688
- kind?: "relative" | undefined;
6689
- anchor?: "now" | "latest_available" | undefined;
6690
- completeness?: "include_partial" | "complete_periods" | undefined;
6691
- } | {
6692
- kind: "calendar";
6693
- unit: "day" | "week" | "month" | "quarter" | "year";
6694
- period: "this" | "previous";
6695
- toDate?: boolean | undefined;
6696
- } | {
6697
- kind: "absolute";
6698
- start: string;
6699
- end: string;
6700
- } | undefined;
5387
+ handle?: string | undefined;
6701
5388
  sheetIds?: string[] | undefined;
6702
5389
  }, {
6703
5390
  domainId: string;
@@ -6706,24 +5393,9 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6706
5393
  field: string;
6707
5394
  op: "filter.add";
6708
5395
  selection?: "single" | "multiple" | undefined;
6709
- handle?: string | undefined;
5396
+ defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
6710
5397
  defaultValues?: (string | number | boolean)[] | undefined;
6711
- defaultPeriod?: {
6712
- value: number;
6713
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6714
- kind?: "relative" | undefined;
6715
- anchor?: "now" | "latest_available" | undefined;
6716
- completeness?: "include_partial" | "complete_periods" | undefined;
6717
- } | {
6718
- kind: "calendar";
6719
- unit: "day" | "week" | "month" | "quarter" | "year";
6720
- period: "this" | "previous";
6721
- toDate?: boolean | undefined;
6722
- } | {
6723
- kind: "absolute";
6724
- start: string;
6725
- end: string;
6726
- } | undefined;
5398
+ handle?: string | undefined;
6727
5399
  sheetIds?: string[] | undefined;
6728
5400
  }>, z.ZodObject<{
6729
5401
  op: z.ZodLiteral<"filter.update">;
@@ -6731,203 +5403,23 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6731
5403
  label: z.ZodOptional<z.ZodString>;
6732
5404
  selection: z.ZodOptional<z.ZodEnum<["single", "multiple"]>>;
6733
5405
  defaultValues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>>;
6734
- defaultPeriod: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEffects<z.ZodObject<{
6735
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
6736
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
6737
- value: z.ZodNumber;
6738
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
6739
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
6740
- }, "strip", z.ZodTypeAny, {
6741
- value: number;
6742
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6743
- kind?: "relative" | undefined;
6744
- anchor?: "now" | "latest_available" | undefined;
6745
- completeness?: "include_partial" | "complete_periods" | undefined;
6746
- }, {
6747
- value: number;
6748
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6749
- kind?: "relative" | undefined;
6750
- anchor?: "now" | "latest_available" | undefined;
6751
- completeness?: "include_partial" | "complete_periods" | undefined;
6752
- }>, {
6753
- value: number;
6754
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6755
- kind?: "relative" | undefined;
6756
- anchor?: "now" | "latest_available" | undefined;
6757
- completeness?: "include_partial" | "complete_periods" | undefined;
6758
- }, {
6759
- value: number;
6760
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6761
- kind?: "relative" | undefined;
6762
- anchor?: "now" | "latest_available" | undefined;
6763
- completeness?: "include_partial" | "complete_periods" | undefined;
6764
- }> | z.ZodEffects<z.ZodObject<{
6765
- kind: z.ZodOptional<z.ZodLiteral<"relative">>;
6766
- unit: z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>;
6767
- value: z.ZodNumber;
6768
- anchor: z.ZodOptional<z.ZodEnum<["now", "latest_available"]>>;
6769
- completeness: z.ZodOptional<z.ZodEnum<["include_partial", "complete_periods"]>>;
6770
- }, "strict", z.ZodTypeAny, {
6771
- value: number;
6772
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6773
- kind?: "relative" | undefined;
6774
- anchor?: "now" | "latest_available" | undefined;
6775
- completeness?: "include_partial" | "complete_periods" | undefined;
6776
- }, {
6777
- value: number;
6778
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6779
- kind?: "relative" | undefined;
6780
- anchor?: "now" | "latest_available" | undefined;
6781
- completeness?: "include_partial" | "complete_periods" | undefined;
6782
- }>, {
6783
- value: number;
6784
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6785
- kind?: "relative" | undefined;
6786
- anchor?: "now" | "latest_available" | undefined;
6787
- completeness?: "include_partial" | "complete_periods" | undefined;
6788
- }, {
6789
- value: number;
6790
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6791
- kind?: "relative" | undefined;
6792
- anchor?: "now" | "latest_available" | undefined;
6793
- completeness?: "include_partial" | "complete_periods" | undefined;
6794
- }>, z.ZodEffects<z.ZodObject<{
6795
- kind: z.ZodLiteral<"calendar">;
6796
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
6797
- period: z.ZodEnum<["this", "previous"]>;
6798
- toDate: z.ZodOptional<z.ZodBoolean>;
6799
- }, "strip", z.ZodTypeAny, {
6800
- kind: "calendar";
6801
- unit: "day" | "week" | "month" | "quarter" | "year";
6802
- period: "this" | "previous";
6803
- toDate?: boolean | undefined;
6804
- }, {
6805
- kind: "calendar";
6806
- unit: "day" | "week" | "month" | "quarter" | "year";
6807
- period: "this" | "previous";
6808
- toDate?: boolean | undefined;
6809
- }>, {
6810
- kind: "calendar";
6811
- unit: "day" | "week" | "month" | "quarter" | "year";
6812
- period: "this" | "previous";
6813
- toDate?: boolean | undefined;
6814
- }, {
6815
- kind: "calendar";
6816
- unit: "day" | "week" | "month" | "quarter" | "year";
6817
- period: "this" | "previous";
6818
- toDate?: boolean | undefined;
6819
- }> | z.ZodEffects<z.ZodObject<{
6820
- kind: z.ZodLiteral<"calendar">;
6821
- unit: z.ZodEnum<["day", "week", "month", "quarter", "year"]>;
6822
- period: z.ZodEnum<["this", "previous"]>;
6823
- toDate: z.ZodOptional<z.ZodBoolean>;
6824
- }, "strict", z.ZodTypeAny, {
6825
- kind: "calendar";
6826
- unit: "day" | "week" | "month" | "quarter" | "year";
6827
- period: "this" | "previous";
6828
- toDate?: boolean | undefined;
6829
- }, {
6830
- kind: "calendar";
6831
- unit: "day" | "week" | "month" | "quarter" | "year";
6832
- period: "this" | "previous";
6833
- toDate?: boolean | undefined;
6834
- }>, {
6835
- kind: "calendar";
6836
- unit: "day" | "week" | "month" | "quarter" | "year";
6837
- period: "this" | "previous";
6838
- toDate?: boolean | undefined;
6839
- }, {
6840
- kind: "calendar";
6841
- unit: "day" | "week" | "month" | "quarter" | "year";
6842
- period: "this" | "previous";
6843
- toDate?: boolean | undefined;
6844
- }>, z.ZodEffects<z.ZodObject<{
6845
- kind: z.ZodLiteral<"absolute">;
6846
- start: z.ZodString;
6847
- end: z.ZodString;
6848
- }, "strip", z.ZodTypeAny, {
6849
- kind: "absolute";
6850
- start: string;
6851
- end: string;
6852
- }, {
6853
- kind: "absolute";
6854
- start: string;
6855
- end: string;
6856
- }>, {
6857
- kind: "absolute";
6858
- start: string;
6859
- end: string;
6860
- }, {
6861
- kind: "absolute";
6862
- start: string;
6863
- end: string;
6864
- }> | z.ZodEffects<z.ZodObject<{
6865
- kind: z.ZodLiteral<"absolute">;
6866
- start: z.ZodString;
6867
- end: z.ZodString;
6868
- }, "strict", z.ZodTypeAny, {
6869
- kind: "absolute";
6870
- start: string;
6871
- end: string;
6872
- }, {
6873
- kind: "absolute";
6874
- start: string;
6875
- end: string;
6876
- }>, {
6877
- kind: "absolute";
6878
- start: string;
6879
- end: string;
6880
- }, {
6881
- kind: "absolute";
6882
- start: string;
6883
- end: string;
6884
- }>]>>>;
5406
+ defaultPeriod: z.ZodOptional<z.ZodNullable<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>>;
6885
5407
  sheetIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
6886
5408
  }, "strict", z.ZodTypeAny, {
6887
5409
  filterId: string;
6888
5410
  op: "filter.update";
6889
- label?: string | undefined;
6890
5411
  selection?: "single" | "multiple" | undefined;
5412
+ label?: string | undefined;
5413
+ defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
6891
5414
  defaultValues?: (string | number | boolean)[] | null | undefined;
6892
- defaultPeriod?: {
6893
- value: number;
6894
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6895
- kind?: "relative" | undefined;
6896
- anchor?: "now" | "latest_available" | undefined;
6897
- completeness?: "include_partial" | "complete_periods" | undefined;
6898
- } | {
6899
- kind: "calendar";
6900
- unit: "day" | "week" | "month" | "quarter" | "year";
6901
- period: "this" | "previous";
6902
- toDate?: boolean | undefined;
6903
- } | {
6904
- kind: "absolute";
6905
- start: string;
6906
- end: string;
6907
- } | null | undefined;
6908
5415
  sheetIds?: string[] | null | undefined;
6909
5416
  }, {
6910
5417
  filterId: string;
6911
5418
  op: "filter.update";
6912
- label?: string | undefined;
6913
5419
  selection?: "single" | "multiple" | undefined;
5420
+ label?: string | undefined;
5421
+ defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | null | undefined;
6914
5422
  defaultValues?: (string | number | boolean)[] | null | undefined;
6915
- defaultPeriod?: {
6916
- value: number;
6917
- unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
6918
- kind?: "relative" | undefined;
6919
- anchor?: "now" | "latest_available" | undefined;
6920
- completeness?: "include_partial" | "complete_periods" | undefined;
6921
- } | {
6922
- kind: "calendar";
6923
- unit: "day" | "week" | "month" | "quarter" | "year";
6924
- period: "this" | "previous";
6925
- toDate?: boolean | undefined;
6926
- } | {
6927
- kind: "absolute";
6928
- start: string;
6929
- end: string;
6930
- } | null | undefined;
6931
5423
  sheetIds?: string[] | null | undefined;
6932
5424
  }>, z.ZodObject<{
6933
5425
  op: z.ZodLiteral<"filter.remove">;
@@ -6958,28 +5450,28 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6958
5450
  name: string;
6959
5451
  };
6960
5452
  filterId: string;
6961
- op: "filter.bind";
6962
5453
  cardId: string;
5454
+ op: "filter.bind";
6963
5455
  }, {
6964
5456
  field: string | {
6965
5457
  datasetName: string;
6966
5458
  name: string;
6967
5459
  };
6968
5460
  filterId: string;
6969
- op: "filter.bind";
6970
5461
  cardId: string;
5462
+ op: "filter.bind";
6971
5463
  }>, z.ZodObject<{
6972
5464
  op: z.ZodLiteral<"filter.exclude">;
6973
5465
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6974
5466
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6975
5467
  }, "strict", z.ZodTypeAny, {
6976
5468
  filterId: string;
6977
- op: "filter.exclude";
6978
5469
  cardId: string;
5470
+ op: "filter.exclude";
6979
5471
  }, {
6980
5472
  filterId: string;
6981
- op: "filter.exclude";
6982
5473
  cardId: string;
5474
+ op: "filter.exclude";
6983
5475
  }>, z.ZodObject<{
6984
5476
  op: z.ZodLiteral<"layout.arrange">;
6985
5477
  sheetId: z.ZodOptional<z.ZodString>;
@@ -7005,11 +5497,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7005
5497
  op: z.ZodLiteral<"layout.untab">;
7006
5498
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7007
5499
  }, "strict", z.ZodTypeAny, {
7008
- op: "layout.untab";
7009
5500
  cardId: string;
7010
- }, {
7011
5501
  op: "layout.untab";
5502
+ }, {
7012
5503
  cardId: string;
5504
+ op: "layout.untab";
7013
5505
  }>, z.ZodObject<{
7014
5506
  op: z.ZodLiteral<"sheet.add">;
7015
5507
  handle: z.ZodOptional<z.ZodString>;
@@ -7117,8 +5609,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7117
5609
  apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
7118
5610
  }, "strict", z.ZodTypeAny, {
7119
5611
  column: string;
7120
- op: "highlight.add";
7121
5612
  cardId: string;
5613
+ op: "highlight.add";
7122
5614
  scale?: Record<string, unknown> | {
7123
5615
  low: string;
7124
5616
  high: string;
@@ -7147,8 +5639,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7147
5639
  } | undefined;
7148
5640
  } | {
7149
5641
  column: string;
7150
- op: "highlight.add";
7151
5642
  cardId: string;
5643
+ op: "highlight.add";
7152
5644
  scale?: Record<string, unknown> | {
7153
5645
  low: string;
7154
5646
  high: string;
@@ -7177,8 +5669,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7177
5669
  } | undefined;
7178
5670
  }, {
7179
5671
  column: string;
7180
- op: "highlight.add";
7181
5672
  cardId: string;
5673
+ op: "highlight.add";
7182
5674
  scale?: Record<string, unknown> | {
7183
5675
  low: string;
7184
5676
  high: string;
@@ -7207,8 +5699,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7207
5699
  } | undefined;
7208
5700
  } | {
7209
5701
  column: string;
7210
- op: "highlight.add";
7211
5702
  cardId: string;
5703
+ op: "highlight.add";
7212
5704
  scale?: Record<string, unknown> | {
7213
5705
  low: string;
7214
5706
  high: string;
@@ -7240,12 +5732,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7240
5732
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7241
5733
  ruleId: z.ZodString;
7242
5734
  }, "strict", z.ZodTypeAny, {
7243
- op: "highlight.remove";
7244
5735
  cardId: string;
5736
+ op: "highlight.remove";
7245
5737
  ruleId: string;
7246
5738
  }, {
7247
- op: "highlight.remove";
7248
5739
  cardId: string;
5740
+ op: "highlight.remove";
7249
5741
  ruleId: string;
7250
5742
  }>, z.ZodObject<{
7251
5743
  op: z.ZodLiteral<"dashboard.update">;
@@ -7259,6 +5751,87 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7259
5751
  op: "dashboard.update";
7260
5752
  description?: string | null | undefined;
7261
5753
  title?: string | undefined;
5754
+ }>, z.ZodObject<{
5755
+ op: z.ZodLiteral<"dashboard.style">;
5756
+ reset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<["spacing", "canvasPadding", "canvas", "cards", "border", "shadow", "corners", "chartColors", "barCorners"]>, "many">]>>;
5757
+ spacing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').SpacingStep, ...import('../index.js').SpacingStep[]]>, z.ZodNumber]>>;
5758
+ canvasPadding: z.ZodOptional<z.ZodNumber>;
5759
+ cards: z.ZodOptional<z.ZodEnum<[import('../index.js').CardSurface, ...import('../index.js').CardSurface[]]>>;
5760
+ canvas: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
5761
+ light: z.ZodOptional<z.ZodTypeAny>;
5762
+ dark: z.ZodOptional<z.ZodTypeAny>;
5763
+ }, "strict", z.ZodTypeAny, {
5764
+ light?: any;
5765
+ dark?: any;
5766
+ }, {
5767
+ light?: any;
5768
+ dark?: any;
5769
+ }>]>>;
5770
+ border: z.ZodOptional<z.ZodEnum<["on", "off"]>>;
5771
+ shadow: z.ZodOptional<z.ZodEnum<["none", "subtle", "raised"]>>;
5772
+ corners: z.ZodOptional<z.ZodUnion<[z.ZodEnum<[import('../index.js').CornerStep, ...import('../index.js').CornerStep[]]>, z.ZodObject<{
5773
+ cards: z.ZodOptional<z.ZodNumber>;
5774
+ controls: z.ZodOptional<z.ZodNumber>;
5775
+ }, "strict", z.ZodTypeAny, {
5776
+ cards?: number | undefined;
5777
+ controls?: number | undefined;
5778
+ }, {
5779
+ cards?: number | undefined;
5780
+ controls?: number | undefined;
5781
+ }>]>>;
5782
+ chartColors: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
5783
+ light: z.ZodOptional<z.ZodTypeAny>;
5784
+ dark: z.ZodOptional<z.ZodTypeAny>;
5785
+ }, "strict", z.ZodTypeAny, {
5786
+ light?: any;
5787
+ dark?: any;
5788
+ }, {
5789
+ light?: any;
5790
+ dark?: any;
5791
+ }>]>>;
5792
+ barCorners: z.ZodOptional<z.ZodNumber>;
5793
+ }, "strict", z.ZodTypeAny, {
5794
+ op: "dashboard.style";
5795
+ spacing?: number | import('../index.js').SpacingStep | undefined;
5796
+ canvasPadding?: number | undefined;
5797
+ canvas?: string | {
5798
+ light?: any;
5799
+ dark?: any;
5800
+ } | undefined;
5801
+ cards?: import('../index.js').CardSurface | undefined;
5802
+ border?: "on" | "off" | undefined;
5803
+ shadow?: "none" | "subtle" | "raised" | undefined;
5804
+ corners?: import('../index.js').CornerStep | {
5805
+ cards?: number | undefined;
5806
+ controls?: number | undefined;
5807
+ } | undefined;
5808
+ chartColors?: string[] | {
5809
+ light?: any;
5810
+ dark?: any;
5811
+ } | undefined;
5812
+ barCorners?: number | undefined;
5813
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
5814
+ }, {
5815
+ op: "dashboard.style";
5816
+ spacing?: number | import('../index.js').SpacingStep | undefined;
5817
+ canvasPadding?: number | undefined;
5818
+ canvas?: string | {
5819
+ light?: any;
5820
+ dark?: any;
5821
+ } | undefined;
5822
+ cards?: import('../index.js').CardSurface | undefined;
5823
+ border?: "on" | "off" | undefined;
5824
+ shadow?: "none" | "subtle" | "raised" | undefined;
5825
+ corners?: import('../index.js').CornerStep | {
5826
+ cards?: number | undefined;
5827
+ controls?: number | undefined;
5828
+ } | undefined;
5829
+ chartColors?: string[] | {
5830
+ light?: any;
5831
+ dark?: any;
5832
+ } | undefined;
5833
+ barCorners?: number | undefined;
5834
+ reset?: "all" | ("spacing" | "canvasPadding" | "canvas" | "cards" | "border" | "shadow" | "corners" | "chartColors" | "barCorners")[] | undefined;
7262
5835
  }>, z.ZodObject<{
7263
5836
  op: z.ZodLiteral<"variable.add">;
7264
5837
  name: z.ZodString;
@@ -7269,11 +5842,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7269
5842
  limit: z.ZodOptional<z.ZodNumber>;
7270
5843
  separator: z.ZodOptional<z.ZodString>;
7271
5844
  }, "strict", z.ZodTypeAny, {
7272
- kind: "aggregate" | "first" | "only" | "list";
5845
+ kind: "aggregate" | "first" | "list" | "only";
7273
5846
  limit?: number | undefined;
7274
5847
  separator?: string | undefined;
7275
5848
  }, {
7276
- kind: "aggregate" | "first" | "only" | "list";
5849
+ kind: "aggregate" | "first" | "list" | "only";
7277
5850
  limit?: number | undefined;
7278
5851
  separator?: string | undefined;
7279
5852
  }>]>;
@@ -7315,7 +5888,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7315
5888
  percent?: boolean | undefined;
7316
5889
  decimals?: number | undefined;
7317
5890
  absolute?: boolean | undefined;
7318
- signWords?: [string, string, string] | undefined;
7319
5891
  temporal?: {
7320
5892
  mode: "style";
7321
5893
  dateStyle: "short" | "long" | "medium";
@@ -7327,11 +5899,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7327
5899
  mode: "period_label";
7328
5900
  } | undefined;
7329
5901
  units?: [string, string] | undefined;
5902
+ signWords?: [string, string, string] | undefined;
7330
5903
  }, {
7331
5904
  percent?: boolean | undefined;
7332
5905
  decimals?: number | undefined;
7333
5906
  absolute?: boolean | undefined;
7334
- signWords?: [string, string, string] | undefined;
7335
5907
  temporal?: {
7336
5908
  mode: "style";
7337
5909
  dateStyle: "short" | "long" | "medium";
@@ -7343,13 +5915,14 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7343
5915
  mode: "period_label";
7344
5916
  } | undefined;
7345
5917
  units?: [string, string] | undefined;
5918
+ signWords?: [string, string, string] | undefined;
7346
5919
  }>>;
7347
5920
  emptyText: z.ZodTypeAny;
7348
5921
  }, "strict", z.ZodTypeAny, {
7349
5922
  name: string;
7350
5923
  query: VariableQueryChange;
7351
- get: "aggregate" | "first" | "only" | "list" | {
7352
- kind: "aggregate" | "first" | "only" | "list";
5924
+ get: "aggregate" | "first" | "list" | "only" | {
5925
+ kind: "aggregate" | "first" | "list" | "only";
7353
5926
  limit?: number | undefined;
7354
5927
  separator?: string | undefined;
7355
5928
  };
@@ -7358,7 +5931,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7358
5931
  percent?: boolean | undefined;
7359
5932
  decimals?: number | undefined;
7360
5933
  absolute?: boolean | undefined;
7361
- signWords?: [string, string, string] | undefined;
7362
5934
  temporal?: {
7363
5935
  mode: "style";
7364
5936
  dateStyle: "short" | "long" | "medium";
@@ -7370,14 +5942,15 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7370
5942
  mode: "period_label";
7371
5943
  } | undefined;
7372
5944
  units?: [string, string] | undefined;
5945
+ signWords?: [string, string, string] | undefined;
7373
5946
  } | undefined;
7374
5947
  label?: any;
7375
5948
  emptyText?: any;
7376
5949
  }, {
7377
5950
  name: string;
7378
5951
  query: VariableQueryChange;
7379
- get: "aggregate" | "first" | "only" | "list" | {
7380
- kind: "aggregate" | "first" | "only" | "list";
5952
+ get: "aggregate" | "first" | "list" | "only" | {
5953
+ kind: "aggregate" | "first" | "list" | "only";
7381
5954
  limit?: number | undefined;
7382
5955
  separator?: string | undefined;
7383
5956
  };
@@ -7386,7 +5959,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7386
5959
  percent?: boolean | undefined;
7387
5960
  decimals?: number | undefined;
7388
5961
  absolute?: boolean | undefined;
7389
- signWords?: [string, string, string] | undefined;
7390
5962
  temporal?: {
7391
5963
  mode: "style";
7392
5964
  dateStyle: "short" | "long" | "medium";
@@ -7398,6 +5970,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7398
5970
  mode: "period_label";
7399
5971
  } | undefined;
7400
5972
  units?: [string, string] | undefined;
5973
+ signWords?: [string, string, string] | undefined;
7401
5974
  } | undefined;
7402
5975
  label?: any;
7403
5976
  emptyText?: any;
@@ -7412,11 +5985,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7412
5985
  limit: z.ZodOptional<z.ZodNumber>;
7413
5986
  separator: z.ZodOptional<z.ZodString>;
7414
5987
  }, "strict", z.ZodTypeAny, {
7415
- kind: "aggregate" | "first" | "only" | "list";
5988
+ kind: "aggregate" | "first" | "list" | "only";
7416
5989
  limit?: number | undefined;
7417
5990
  separator?: string | undefined;
7418
5991
  }, {
7419
- kind: "aggregate" | "first" | "only" | "list";
5992
+ kind: "aggregate" | "first" | "list" | "only";
7420
5993
  limit?: number | undefined;
7421
5994
  separator?: string | undefined;
7422
5995
  }>]>>;
@@ -7429,8 +6002,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7429
6002
  label?: any;
7430
6003
  emptyText?: any;
7431
6004
  query?: VariableQueryChange | undefined;
7432
- get?: "aggregate" | "first" | "only" | "list" | {
7433
- kind: "aggregate" | "first" | "only" | "list";
6005
+ get?: "aggregate" | "first" | "list" | "only" | {
6006
+ kind: "aggregate" | "first" | "list" | "only";
7434
6007
  limit?: number | undefined;
7435
6008
  separator?: string | undefined;
7436
6009
  } | undefined;
@@ -7442,8 +6015,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7442
6015
  label?: any;
7443
6016
  emptyText?: any;
7444
6017
  query?: VariableQueryChange | undefined;
7445
- get?: "aggregate" | "first" | "only" | "list" | {
7446
- kind: "aggregate" | "first" | "only" | "list";
6018
+ get?: "aggregate" | "first" | "list" | "only" | {
6019
+ kind: "aggregate" | "first" | "list" | "only";
7447
6020
  limit?: number | undefined;
7448
6021
  separator?: string | undefined;
7449
6022
  } | undefined;
@@ -7523,7 +6096,6 @@ export type MeasureRef = z.infer<typeof measureRefSchema>;
7523
6096
  /** A measure in a card's `query.measures[]`: a name, or the MeasureRef object with its calculations (reports by conversation RC-D2). */
7524
6097
  export type QueryMeasure = z.infer<typeof queryMeasureUnion>;
7525
6098
  export type AnalyticsFilter = z.infer<typeof analyticsFilterSchema>;
7526
- export type TimeWindow = z.infer<typeof timeWindowSchema>;
7527
6099
  export type MetricCardQuery = z.infer<typeof metricCardQuerySchema>;
7528
6100
  export type RecordsCardQuery = z.infer<typeof recordsCardQuerySchema>;
7529
6101
  export type SqlCardQuery = z.infer<typeof sqlCardQuerySchema>;