react-semaphor 0.1.568 → 0.1.569

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 (126) hide show
  1. package/README.md +0 -7
  2. package/dist/analytics-protocol/index.js +434 -454
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +10 -12
  5. package/dist/briefings/index.js +4 -4
  6. package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → _commonjsHelpers-Bid1ZNYj.js} +271 -222
  7. package/dist/chunks/{assistant-chat-BN5I8KuN.js → assistant-chat-Dzf2Mbph.js} +107 -109
  8. package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-Czg6FGt5.js} +2 -2
  9. package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
  10. package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-BS982X7x.js} +986 -985
  11. package/dist/chunks/{code-editor-DJNOsgJH.js → code-editor-BsxHzm9u.js} +43 -45
  12. package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-lLTgzOkM.js} +252 -253
  13. package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-BiYSbxZv.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-Bdj7luOr.js} +158 -159
  15. package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-TViDsnb8.js} +17 -19
  16. package/dist/chunks/dashboard-json-Dg9dQd9U.js +66 -0
  17. package/dist/chunks/{dates-CKO05ino.js → dates-BsPrWZIP.js} +8 -8
  18. package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-C6hoIeEJ.js} +20 -21
  19. package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-hcQ4os0u.js} +695 -699
  20. package/dist/chunks/filter-value-text-CVxEEDVl.js +146 -0
  21. package/dist/chunks/{index-CPNZW0mu.js → index-G4q89J6O.js} +74 -76
  22. package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-BIcoFfdS.js} +1 -1
  23. package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C6tYkHyv.js} +1 -1
  24. package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
  25. package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
  26. package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
  27. package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
  28. package/dist/chunks/{palette-4vf2BEEg.js → palette-NjHOE_6B.js} +1 -1
  29. package/dist/chunks/pivot-result-contract-expectations-DkmueDTW.js +55 -0
  30. package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
  31. package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
  32. package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Xc8_GFju.js} +26 -28
  33. package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
  34. package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-KqvcLcTM.js} +4784 -4764
  35. package/dist/chunks/{save-D6pHmSSP.js → save-C6VmEJTA.js} +1 -1
  36. package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-BeXXyoD4.js} +6 -6
  37. package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-BNkaANsG.js} +28395 -28384
  38. package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-C_issPBA.js} +18 -20
  39. package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-B6_StAty.js} +263 -265
  40. package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-BWP2joD1.js} +1 -1
  41. package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-scSWQXAB.js} +4 -4
  42. package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
  43. package/dist/chunks/{upload-Cf3wXZT8.js → upload-BRW4Mwrd.js} +1 -1
  44. package/dist/chunks/validators-B8fpdinG.js +3651 -0
  45. package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-BQ3OMjvy.js} +4 -4
  46. package/dist/dashboard/index.js +2 -2
  47. package/dist/dashboard-authoring/index.js +1527 -1517
  48. package/dist/format-utils/index.js +230 -231
  49. package/dist/index.js +236 -237
  50. package/dist/report-runtime-context/index.js +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/surfboard/index.js +2 -2
  53. package/dist/types/components/surfboard/filter/types.d.ts +5 -4
  54. package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
  55. package/dist/types/index.js +9 -9
  56. package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
  57. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  58. package/dist/types/lib/types/explorer-types.d.ts +2 -2
  59. package/dist/types/lib/types/index.d.ts +1 -1
  60. package/dist/types/lib/utils/card-definition.d.ts +7 -7
  61. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
  62. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
  63. package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
  64. package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
  65. package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
  66. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +4 -4
  67. package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
  68. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
  69. package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
  70. package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
  71. package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
  72. package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
  73. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
  74. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
  75. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
  76. package/dist/types/shared/assistant-protocol/context.d.ts +12 -12
  77. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
  78. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +155 -1753
  79. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
  80. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +74 -74
  81. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
  82. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -0
  83. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
  84. package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
  85. package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
  86. package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
  87. package/dist/types/shared/temporal/index.d.ts +0 -2
  88. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
  89. package/package.json +2 -24
  90. package/DATA_APP_SDK.md +0 -339
  91. package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
  92. package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
  93. package/dist/chunks/index-CuHybtft.js +0 -51
  94. package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
  95. package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
  96. package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
  97. package/dist/chunks/operators-B3zZoskU.js +0 -66
  98. package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
  99. package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
  100. package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
  101. package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
  102. package/dist/chunks/validators-wtjw0aw6.js +0 -3332
  103. package/dist/data-app-sdk/index.js +0 -1412
  104. package/dist/data-app-sdk-adapters/index.js +0 -361
  105. package/dist/data-app-sdk-validation/index.js +0 -1031
  106. package/dist/types/data-app-sdk/adapters.d.ts +0 -35
  107. package/dist/types/data-app-sdk/builders.d.ts +0 -62
  108. package/dist/types/data-app-sdk/contracts.d.ts +0 -419
  109. package/dist/types/data-app-sdk/executor.d.ts +0 -5
  110. package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
  111. package/dist/types/data-app-sdk/hooks.d.ts +0 -11
  112. package/dist/types/data-app-sdk/index.d.ts +0 -9
  113. package/dist/types/data-app-sdk/provider.d.ts +0 -8
  114. package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
  115. package/dist/types/data-app-sdk/selection.d.ts +0 -2
  116. package/dist/types/data-app-sdk/validation.d.ts +0 -58
  117. package/dist/types/data-app-sdk-adapters.d.ts +0 -2
  118. package/dist/types/data-app-sdk-validation.d.ts +0 -2
  119. package/dist/types/data-app-sdk.d.ts +0 -2
  120. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
  121. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
  122. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
  123. package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
  124. package/dist/types/shared/temporal/relative-date.d.ts +0 -21
  125. package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
  126. 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<{
@@ -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;
@@ -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";
@@ -5132,12 +4441,12 @@ export declare const sheetChangeSchemas: readonly [z.ZodObject<{
5132
4441
  title: z.ZodString;
5133
4442
  }, "strict", z.ZodTypeAny, {
5134
4443
  title: string;
5135
- op: "sheet.update";
5136
4444
  sheetId: string;
4445
+ op: "sheet.update";
5137
4446
  }, {
5138
4447
  title: string;
5139
- op: "sheet.update";
5140
4448
  sheetId: string;
4449
+ op: "sheet.update";
5141
4450
  }>];
5142
4451
  /**
5143
4452
  * Cards in one spot as tabs, the first named shown, and a tab given its own
@@ -5157,11 +4466,11 @@ 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
  }>];
5166
4475
  export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
5167
4476
  op: z.ZodLiteral<"card.add">;
@@ -5290,14 +4599,14 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5290
4599
  } | undefined;
5291
4600
  })[];
5292
4601
  } | undefined;
5293
- position?: "top" | "end" | {
4602
+ text?: any;
4603
+ position?: "end" | "top" | {
5294
4604
  after: string;
5295
4605
  } | undefined;
5296
- text?: any;
5297
4606
  query?: any;
4607
+ sheetId?: string | undefined;
5298
4608
  width?: "quarter" | "full" | "half" | "third" | undefined;
5299
4609
  handle?: string | undefined;
5300
- sheetId?: string | undefined;
5301
4610
  }, {
5302
4611
  type: "table" | "matrix" | "kpi" | "text" | "bar" | "line" | "area" | "pie" | "detail_table";
5303
4612
  title: string;
@@ -5320,14 +4629,14 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5320
4629
  } | undefined;
5321
4630
  })[];
5322
4631
  } | undefined;
5323
- position?: "top" | "end" | {
4632
+ text?: any;
4633
+ position?: "end" | "top" | {
5324
4634
  after: string;
5325
4635
  } | undefined;
5326
- text?: any;
5327
4636
  query?: any;
4637
+ sheetId?: string | undefined;
5328
4638
  width?: "quarter" | "full" | "half" | "third" | undefined;
5329
4639
  handle?: string | undefined;
5330
- sheetId?: string | undefined;
5331
4640
  }>, z.ZodObject<{
5332
4641
  op: z.ZodLiteral<"card.update">;
5333
4642
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
@@ -5508,6 +4817,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5508
4817
  } | null | undefined;
5509
4818
  })[] | undefined;
5510
4819
  limit?: number | null | undefined;
4820
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
5511
4821
  filters?: {
5512
4822
  field: string | {
5513
4823
  name: string;
@@ -5524,7 +4834,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5524
4834
  } | undefined;
5525
4835
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5526
4836
  };
5527
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
4837
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
5528
4838
  values?: (string | number | boolean)[] | undefined;
5529
4839
  id?: string | undefined;
5530
4840
  scope?: "aggregate" | "row" | undefined;
@@ -5547,22 +4857,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5547
4857
  };
5548
4858
  direction: "asc" | "desc";
5549
4859
  } | 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
4860
  dateField?: string | {
5567
4861
  name: string;
5568
4862
  datasetName?: string | undefined;
@@ -5592,12 +4886,35 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5592
4886
  connectionId?: string | undefined;
5593
4887
  } | undefined;
5594
4888
  })[] | null | undefined;
5595
- }, z.ZodTypeDef, {
5596
- domainId?: string | undefined;
5597
- datasetName?: string | undefined;
5598
- connectionId?: string | undefined;
5599
- sql?: string | undefined;
5600
- columns?: (string | {
4889
+ }, z.ZodTypeDef, unknown>>;
4890
+ text: z.ZodOptional<z.ZodTypeAny>;
4891
+ matrix: z.ZodOptional<z.ZodObject<{
4892
+ columns: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
4893
+ name: z.ZodString;
4894
+ label: z.ZodOptional<z.ZodString>;
4895
+ datasetName: z.ZodOptional<z.ZodString>;
4896
+ datasetId: z.ZodOptional<z.ZodString>;
4897
+ connectionId: z.ZodOptional<z.ZodString>;
4898
+ source: z.ZodOptional<z.ZodObject<{
4899
+ kind: z.ZodLiteral<"semantic">;
4900
+ domainId: z.ZodString;
4901
+ datasetName: z.ZodString;
4902
+ datasetId: z.ZodOptional<z.ZodString>;
4903
+ connectionId: z.ZodOptional<z.ZodString>;
4904
+ }, "strict", z.ZodTypeAny, {
4905
+ kind: "semantic";
4906
+ domainId: string;
4907
+ datasetName: string;
4908
+ datasetId?: string | undefined;
4909
+ connectionId?: string | undefined;
4910
+ }, {
4911
+ kind: "semantic";
4912
+ domainId: string;
4913
+ datasetName: string;
4914
+ datasetId?: string | undefined;
4915
+ connectionId?: string | undefined;
4916
+ }>>;
4917
+ }, "strict", z.ZodTypeAny, {
5601
4918
  name: string;
5602
4919
  datasetName?: string | undefined;
5603
4920
  datasetId?: string | undefined;
@@ -5610,8 +4927,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5610
4927
  datasetId?: string | undefined;
5611
4928
  connectionId?: string | undefined;
5612
4929
  } | undefined;
5613
- })[] | undefined;
5614
- measures?: (string | {
4930
+ }, {
5615
4931
  name: string;
5616
4932
  datasetName?: string | undefined;
5617
4933
  datasetId?: string | undefined;
@@ -5624,588 +4940,24 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5624
4940
  datasetId?: string | undefined;
5625
4941
  connectionId?: string | undefined;
5626
4942
  } | 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";
4943
+ }>]>, "many">;
4944
+ }, "strict", z.ZodTypeAny, {
4945
+ columns: (string | {
4946
+ name: string;
4947
+ datasetName?: string | undefined;
4948
+ datasetId?: string | undefined;
4949
+ label?: string | undefined;
4950
+ connectionId?: string | undefined;
4951
+ source?: {
4952
+ kind: "semantic";
4953
+ domainId: string;
4954
+ datasetName: string;
4955
+ datasetId?: string | undefined;
4956
+ connectionId?: string | undefined;
5645
4957
  } | 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 | {
4958
+ })[];
4959
+ }, {
4960
+ columns: (string | {
6209
4961
  name: string;
6210
4962
  datasetName?: string | undefined;
6211
4963
  datasetId?: string | undefined;
@@ -6218,11 +4970,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6218
4970
  datasetId?: string | undefined;
6219
4971
  connectionId?: string | undefined;
6220
4972
  } | undefined;
6221
- })[] | null | undefined;
6222
- } | undefined;
6223
- }, {
6224
- op: "card.update";
4973
+ })[];
4974
+ }>>;
4975
+ columns: z.ZodOptional<z.ZodTypeAny>;
4976
+ }, "strict", z.ZodTypeAny, {
6225
4977
  cardId: string;
4978
+ op: "card.update";
6226
4979
  type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
6227
4980
  description?: string | null | undefined;
6228
4981
  columns?: any;
@@ -6418,6 +5171,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6418
5171
  } | null | undefined;
6419
5172
  })[] | undefined;
6420
5173
  limit?: number | null | undefined;
5174
+ timeWindow?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
6421
5175
  filters?: {
6422
5176
  field: string | {
6423
5177
  name: string;
@@ -6434,7 +5188,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6434
5188
  } | undefined;
6435
5189
  aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
6436
5190
  };
6437
- operator: "between" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "contains" | "in" | "not_in" | "not_contains" | "not_between" | "is_null" | "is_not_null";
5191
+ operator: "between" | "=" | "!=" | "in" | "not_in" | "contains" | "not_contains" | "not_between" | ">" | ">=" | "<" | "<=" | "is_null" | "is_not_null";
6438
5192
  values?: (string | number | boolean)[] | undefined;
6439
5193
  id?: string | undefined;
6440
5194
  scope?: "aggregate" | "row" | undefined;
@@ -6457,22 +5211,6 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6457
5211
  };
6458
5212
  direction: "asc" | "desc";
6459
5213
  } | 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
5214
  dateField?: string | {
6477
5215
  name: string;
6478
5216
  datasetName?: string | undefined;
@@ -6503,15 +5241,40 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6503
5241
  } | undefined;
6504
5242
  })[] | null | undefined;
6505
5243
  } | undefined;
5244
+ }, {
5245
+ cardId: string;
5246
+ op: "card.update";
5247
+ type?: "table" | "matrix" | "kpi" | "bar" | "line" | "area" | "pie" | "detail_table" | undefined;
5248
+ description?: string | null | undefined;
5249
+ columns?: any;
5250
+ matrix?: {
5251
+ columns: (string | {
5252
+ name: string;
5253
+ datasetName?: string | undefined;
5254
+ datasetId?: string | undefined;
5255
+ label?: string | undefined;
5256
+ connectionId?: string | undefined;
5257
+ source?: {
5258
+ kind: "semantic";
5259
+ domainId: string;
5260
+ datasetName: string;
5261
+ datasetId?: string | undefined;
5262
+ connectionId?: string | undefined;
5263
+ } | undefined;
5264
+ })[];
5265
+ } | undefined;
5266
+ text?: any;
5267
+ title?: string | undefined;
5268
+ query?: unknown;
6506
5269
  }>, z.ZodObject<{
6507
5270
  op: z.ZodLiteral<"card.remove">;
6508
5271
  cardId: z.ZodString;
6509
5272
  }, "strict", z.ZodTypeAny, {
6510
- op: "card.remove";
6511
5273
  cardId: string;
6512
- }, {
6513
5274
  op: "card.remove";
5275
+ }, {
6514
5276
  cardId: string;
5277
+ op: "card.remove";
6515
5278
  }>, z.ZodObject<{
6516
5279
  op: z.ZodLiteral<"filter.add">;
6517
5280
  handle: z.ZodOptional<z.ZodString>;
@@ -6521,157 +5284,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6521
5284
  field: z.ZodString;
6522
5285
  selection: z.ZodOptional<z.ZodEnum<["single", "multiple"]>>;
6523
5286
  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
- }>]>>;
5287
+ defaultPeriod: z.ZodOptional<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>;
6675
5288
  sheetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6676
5289
  }, "strict", z.ZodTypeAny, {
6677
5290
  domainId: string;
@@ -6679,25 +5292,10 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6679
5292
  label: string;
6680
5293
  field: string;
6681
5294
  op: "filter.add";
5295
+ defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | undefined;
6682
5296
  selection?: "single" | "multiple" | undefined;
6683
- handle?: string | undefined;
6684
5297
  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;
5298
+ handle?: string | undefined;
6701
5299
  sheetIds?: string[] | undefined;
6702
5300
  }, {
6703
5301
  domainId: string;
@@ -6705,25 +5303,10 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6705
5303
  label: string;
6706
5304
  field: string;
6707
5305
  op: "filter.add";
5306
+ defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | undefined;
6708
5307
  selection?: "single" | "multiple" | undefined;
6709
- handle?: string | undefined;
6710
5308
  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;
5309
+ handle?: string | undefined;
6727
5310
  sheetIds?: string[] | undefined;
6728
5311
  }>, z.ZodObject<{
6729
5312
  op: z.ZodLiteral<"filter.update">;
@@ -6731,203 +5314,23 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6731
5314
  label: z.ZodOptional<z.ZodString>;
6732
5315
  selection: z.ZodOptional<z.ZodEnum<["single", "multiple"]>>;
6733
5316
  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
- }>]>>>;
5317
+ defaultPeriod: z.ZodOptional<z.ZodNullable<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>>;
6885
5318
  sheetIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
6886
5319
  }, "strict", z.ZodTypeAny, {
6887
5320
  filterId: string;
6888
5321
  op: "filter.update";
6889
5322
  label?: string | undefined;
5323
+ defaultPeriod?: import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow | null | undefined;
6890
5324
  selection?: "single" | "multiple" | undefined;
6891
5325
  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
5326
  sheetIds?: string[] | null | undefined;
6909
5327
  }, {
6910
5328
  filterId: string;
6911
5329
  op: "filter.update";
6912
5330
  label?: string | undefined;
5331
+ defaultPeriod?: import('../../analytics-protocol/index.js').SemaphorTimeWindow | null | undefined;
6913
5332
  selection?: "single" | "multiple" | undefined;
6914
5333
  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
5334
  sheetIds?: string[] | null | undefined;
6932
5335
  }>, z.ZodObject<{
6933
5336
  op: z.ZodLiteral<"filter.remove">;
@@ -6958,28 +5361,28 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6958
5361
  name: string;
6959
5362
  };
6960
5363
  filterId: string;
6961
- op: "filter.bind";
6962
5364
  cardId: string;
5365
+ op: "filter.bind";
6963
5366
  }, {
6964
5367
  field: string | {
6965
5368
  datasetName: string;
6966
5369
  name: string;
6967
5370
  };
6968
5371
  filterId: string;
6969
- op: "filter.bind";
6970
5372
  cardId: string;
5373
+ op: "filter.bind";
6971
5374
  }>, z.ZodObject<{
6972
5375
  op: z.ZodLiteral<"filter.exclude">;
6973
5376
  filterId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6974
5377
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
6975
5378
  }, "strict", z.ZodTypeAny, {
6976
5379
  filterId: string;
6977
- op: "filter.exclude";
6978
5380
  cardId: string;
5381
+ op: "filter.exclude";
6979
5382
  }, {
6980
5383
  filterId: string;
6981
- op: "filter.exclude";
6982
5384
  cardId: string;
5385
+ op: "filter.exclude";
6983
5386
  }>, z.ZodObject<{
6984
5387
  op: z.ZodLiteral<"layout.arrange">;
6985
5388
  sheetId: z.ZodOptional<z.ZodString>;
@@ -7005,11 +5408,11 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7005
5408
  op: z.ZodLiteral<"layout.untab">;
7006
5409
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7007
5410
  }, "strict", z.ZodTypeAny, {
7008
- op: "layout.untab";
7009
5411
  cardId: string;
7010
- }, {
7011
5412
  op: "layout.untab";
5413
+ }, {
7012
5414
  cardId: string;
5415
+ op: "layout.untab";
7013
5416
  }>, z.ZodObject<{
7014
5417
  op: z.ZodLiteral<"sheet.add">;
7015
5418
  handle: z.ZodOptional<z.ZodString>;
@@ -7028,12 +5431,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7028
5431
  title: z.ZodString;
7029
5432
  }, "strict", z.ZodTypeAny, {
7030
5433
  title: string;
7031
- op: "sheet.update";
7032
5434
  sheetId: string;
5435
+ op: "sheet.update";
7033
5436
  }, {
7034
5437
  title: string;
7035
- op: "sheet.update";
7036
5438
  sheetId: string;
5439
+ op: "sheet.update";
7037
5440
  }>, z.ZodObject<{
7038
5441
  when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7039
5442
  color: z.ZodOptional<z.ZodString>;
@@ -7117,8 +5520,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7117
5520
  apply: z.ZodOptional<z.ZodEnum<["cell", "row"]>>;
7118
5521
  }, "strict", z.ZodTypeAny, {
7119
5522
  column: string;
7120
- op: "highlight.add";
7121
5523
  cardId: string;
5524
+ op: "highlight.add";
7122
5525
  scale?: Record<string, unknown> | {
7123
5526
  low: string;
7124
5527
  high: string;
@@ -7147,8 +5550,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7147
5550
  } | undefined;
7148
5551
  } | {
7149
5552
  column: string;
7150
- op: "highlight.add";
7151
5553
  cardId: string;
5554
+ op: "highlight.add";
7152
5555
  scale?: Record<string, unknown> | {
7153
5556
  low: string;
7154
5557
  high: string;
@@ -7177,8 +5580,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7177
5580
  } | undefined;
7178
5581
  }, {
7179
5582
  column: string;
7180
- op: "highlight.add";
7181
5583
  cardId: string;
5584
+ op: "highlight.add";
7182
5585
  scale?: Record<string, unknown> | {
7183
5586
  low: string;
7184
5587
  high: string;
@@ -7207,8 +5610,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7207
5610
  } | undefined;
7208
5611
  } | {
7209
5612
  column: string;
7210
- op: "highlight.add";
7211
5613
  cardId: string;
5614
+ op: "highlight.add";
7212
5615
  scale?: Record<string, unknown> | {
7213
5616
  low: string;
7214
5617
  high: string;
@@ -7240,12 +5643,12 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7240
5643
  cardId: z.ZodUnion<[z.ZodString, z.ZodString]>;
7241
5644
  ruleId: z.ZodString;
7242
5645
  }, "strict", z.ZodTypeAny, {
7243
- op: "highlight.remove";
7244
5646
  cardId: string;
5647
+ op: "highlight.remove";
7245
5648
  ruleId: string;
7246
5649
  }, {
7247
- op: "highlight.remove";
7248
5650
  cardId: string;
5651
+ op: "highlight.remove";
7249
5652
  ruleId: string;
7250
5653
  }>, z.ZodObject<{
7251
5654
  op: z.ZodLiteral<"dashboard.update">;
@@ -7494,8 +5897,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7494
5897
  } | {
7495
5898
  sectionId: string;
7496
5899
  };
7497
- op: "document.text.update";
7498
5900
  sheetId: string;
5901
+ op: "document.text.update";
7499
5902
  text?: TextRun[] | undefined;
7500
5903
  style?: {
7501
5904
  size?: number | undefined;
@@ -7508,8 +5911,8 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
7508
5911
  } | {
7509
5912
  sectionId: string;
7510
5913
  };
7511
- op: "document.text.update";
7512
5914
  sheetId: string;
5915
+ op: "document.text.update";
7513
5916
  text?: TextRun[] | undefined;
7514
5917
  style?: {
7515
5918
  size?: number | undefined;
@@ -7523,7 +5926,6 @@ export type MeasureRef = z.infer<typeof measureRefSchema>;
7523
5926
  /** A measure in a card's `query.measures[]`: a name, or the MeasureRef object with its calculations (reports by conversation RC-D2). */
7524
5927
  export type QueryMeasure = z.infer<typeof queryMeasureUnion>;
7525
5928
  export type AnalyticsFilter = z.infer<typeof analyticsFilterSchema>;
7526
- export type TimeWindow = z.infer<typeof timeWindowSchema>;
7527
5929
  export type MetricCardQuery = z.infer<typeof metricCardQuerySchema>;
7528
5930
  export type RecordsCardQuery = z.infer<typeof recordsCardQuerySchema>;
7529
5931
  export type SqlCardQuery = z.infer<typeof sqlCardQuerySchema>;