react-semaphor 0.1.579 → 0.1.581

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 (38) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/assistant-protocol/index.js +52 -50
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/add-to-dashboard-DhP8wVtM.js +291 -0
  5. package/dist/chunks/{assistant-chat-DBuKmREJ.js → assistant-chat-CUwGURJj.js} +2261 -2184
  6. package/dist/chunks/{bookmark-impact-MH4Dr-Ya.js → bookmark-impact-BNyR-yDX.js} +1 -1
  7. package/dist/chunks/{card-filter-builder-B9vtXVIZ.js → card-filter-builder-k9yqDSw8.js} +168 -180
  8. package/dist/chunks/{comparison-window-caption-PtcDWvkN.js → comparison-window-caption-DdLqMgiG.js} +180 -183
  9. package/dist/chunks/{dashboard-C4fyqxvV.js → dashboard-DvcAk8uJ.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-A9CLFv0s.js → dashboard-briefing-launcher-DBgS97ZH.js} +154 -154
  11. package/dist/chunks/{dashboard-controls-oKDW-835.js → dashboard-controls-BiZ1rlNC.js} +7 -7
  12. package/dist/chunks/{dashboard-json-Bej2NBkS.js → dashboard-json-B25xzYcJ.js} +1 -1
  13. package/dist/chunks/{dates-BhL-mimk.js → dates-3Pah03_l.js} +4 -4
  14. package/dist/chunks/{edit-dashboard-visual-BFsCY2GP.js → edit-dashboard-visual-DYuO3mEU.js} +8 -9
  15. package/dist/chunks/{filter-reach-copy-Xus3MfSo.js → filter-reach-copy-CzLt96tq.js} +124 -124
  16. package/dist/chunks/{index-CwlaI-UP.js → index-BMZq6JT6.js} +1 -1
  17. package/dist/chunks/{report-preferences-dialog-CcekIvkV.js → report-preferences-dialog-DpAetrdY.js} +7 -7
  18. package/dist/chunks/{resolve-dashboard-input-context-DoZHMivF.js → resolve-dashboard-input-context-CNxtkCzj.js} +6265 -6190
  19. package/dist/chunks/{saved-dashboard-context-LiDPCJ3r.js → saved-dashboard-context-Bnt0H7mi.js} +2 -2
  20. package/dist/chunks/{semaphor-ready-indicator-cAOfbBuc.js → semaphor-ready-indicator-Dwmvmf0S.js} +15009 -14989
  21. package/dist/chunks/{shelf-drop-preview-context-CwoYR7v1.js → shelf-drop-preview-context-CiveteBS.js} +2 -2
  22. package/dist/chunks/{stored-dashboard-CjnPEWO-.js → stored-dashboard-D3gu-D7A.js} +66 -66
  23. package/dist/chunks/{table-export-sheet-CP8zSOhj.js → table-export-sheet-BNGSJA2N.js} +1 -1
  24. package/dist/chunks/{variable-draft-T4EOBvcu.js → variable-draft-C3_RL2gI.js} +2 -2
  25. package/dist/dashboard/index.js +1 -1
  26. package/dist/dashboard-authoring/index.js +356 -349
  27. package/dist/format-utils/index.js +4 -4
  28. package/dist/index.js +11 -11
  29. package/dist/style.css +1 -1
  30. package/dist/surfboard/index.js +1 -1
  31. package/dist/types/shared/assistant-protocol/model-change.d.ts +23 -3
  32. package/dist/types/shared/assistant-protocol/parts.d.ts +10 -1
  33. package/dist/types/shared/dashboard-authoring/changes/aggregates.d.ts +2 -0
  34. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +9 -58
  35. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +1738 -0
  36. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  37. package/package.json +1 -1
  38. package/dist/chunks/add-to-dashboard-DQFuDA5R.js +0 -271
@@ -0,0 +1,1738 @@
1
+ import { z } from 'zod';
2
+ import { SemaphorScalarValueFormat } from '../../analytics-protocol/contracts.js';
3
+ export declare const relationshipAddSchema: z.ZodObject<{
4
+ op: z.ZodLiteral<"relationship.add">;
5
+ from: z.ZodObject<{
6
+ dataset: z.ZodString;
7
+ fields: z.ZodArray<z.ZodString, "many">;
8
+ }, "strict", z.ZodTypeAny, {
9
+ fields: string[];
10
+ dataset: string;
11
+ }, {
12
+ fields: string[];
13
+ dataset: string;
14
+ }>;
15
+ to: z.ZodObject<{
16
+ dataset: z.ZodString;
17
+ fields: z.ZodArray<z.ZodString, "many">;
18
+ }, "strict", z.ZodTypeAny, {
19
+ fields: string[];
20
+ dataset: string;
21
+ }, {
22
+ fields: string[];
23
+ dataset: string;
24
+ }>;
25
+ cardinality: z.ZodEnum<["many_to_one", "one_to_one"]>;
26
+ defaultJoinType: z.ZodEnum<["LEFT", "INNER"]>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ from: {
30
+ fields: string[];
31
+ dataset: string;
32
+ };
33
+ to: {
34
+ fields: string[];
35
+ dataset: string;
36
+ };
37
+ op: "relationship.add";
38
+ cardinality: "one_to_one" | "many_to_one";
39
+ defaultJoinType: "INNER" | "LEFT";
40
+ description?: string | undefined;
41
+ }, {
42
+ from: {
43
+ fields: string[];
44
+ dataset: string;
45
+ };
46
+ to: {
47
+ fields: string[];
48
+ dataset: string;
49
+ };
50
+ op: "relationship.add";
51
+ cardinality: "one_to_one" | "many_to_one";
52
+ defaultJoinType: "INNER" | "LEFT";
53
+ description?: string | undefined;
54
+ }>;
55
+ /** An object's Context, changed item by item (SE-D3): never a whole list. */
56
+ export declare const contextChangeSchema: z.ZodObject<{
57
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ synonyms: z.ZodOptional<z.ZodObject<{
59
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ }, "strict", z.ZodTypeAny, {
62
+ add?: string[] | undefined;
63
+ remove?: string[] | undefined;
64
+ }, {
65
+ add?: string[] | undefined;
66
+ remove?: string[] | undefined;
67
+ }>>;
68
+ examples: z.ZodOptional<z.ZodObject<{
69
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ add?: string[] | undefined;
73
+ remove?: string[] | undefined;
74
+ }, {
75
+ add?: string[] | undefined;
76
+ remove?: string[] | undefined;
77
+ }>>;
78
+ }, "strict", z.ZodTypeAny, {
79
+ instructions?: string | null | undefined;
80
+ synonyms?: {
81
+ add?: string[] | undefined;
82
+ remove?: string[] | undefined;
83
+ } | undefined;
84
+ examples?: {
85
+ add?: string[] | undefined;
86
+ remove?: string[] | undefined;
87
+ } | undefined;
88
+ }, {
89
+ instructions?: string | null | undefined;
90
+ synonyms?: {
91
+ add?: string[] | undefined;
92
+ remove?: string[] | undefined;
93
+ } | undefined;
94
+ examples?: {
95
+ add?: string[] | undefined;
96
+ remove?: string[] | undefined;
97
+ } | undefined;
98
+ }>;
99
+ export declare const COMPARISON_POLARITIES: readonly ["higher_is_better", "lower_is_better", "neutral"];
100
+ /**
101
+ * A new calculation, by intent: the domain decides whether it is a fact, a
102
+ * dimension or a metric from its formula (SE-D2). One dataset's formula names
103
+ * the dataset; one across datasets names its `inputs` as {token}s.
104
+ */
105
+ export declare const calculationAddSchema: z.ZodObject<{
106
+ op: z.ZodLiteral<"calculation.add">;
107
+ dataset: z.ZodOptional<z.ZodString>;
108
+ name: z.ZodString;
109
+ label: z.ZodOptional<z.ZodString>;
110
+ description: z.ZodOptional<z.ZodString>;
111
+ expression: z.ZodString;
112
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
113
+ dataset: z.ZodString;
114
+ field: z.ZodString;
115
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
116
+ }, "strict", z.ZodTypeAny, {
117
+ field: string;
118
+ dataset: string;
119
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
120
+ }, {
121
+ field: string;
122
+ dataset: string;
123
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
124
+ }>, z.ZodObject<{
125
+ metric: z.ZodString;
126
+ dataset: z.ZodOptional<z.ZodString>;
127
+ }, "strict", z.ZodTypeAny, {
128
+ metric: string;
129
+ dataset?: string | undefined;
130
+ }, {
131
+ metric: string;
132
+ dataset?: string | undefined;
133
+ }>]>>>;
134
+ use: z.ZodOptional<z.ZodEnum<["aggregate", "group_or_filter"]>>;
135
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime"]>>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ name: string;
138
+ expression: string;
139
+ op: "calculation.add";
140
+ label?: string | undefined;
141
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
142
+ description?: string | undefined;
143
+ inputs?: Record<string, {
144
+ field: string;
145
+ dataset: string;
146
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
147
+ } | {
148
+ metric: string;
149
+ dataset?: string | undefined;
150
+ }> | undefined;
151
+ dataset?: string | undefined;
152
+ use?: "aggregate" | "group_or_filter" | undefined;
153
+ }, {
154
+ name: string;
155
+ expression: string;
156
+ op: "calculation.add";
157
+ label?: string | undefined;
158
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
159
+ description?: string | undefined;
160
+ inputs?: Record<string, {
161
+ field: string;
162
+ dataset: string;
163
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
164
+ } | {
165
+ metric: string;
166
+ dataset?: string | undefined;
167
+ }> | undefined;
168
+ dataset?: string | undefined;
169
+ use?: "aggregate" | "group_or_filter" | undefined;
170
+ }>;
171
+ /** The changes that edit a domain's metadata, in full (the parsing shape). */
172
+ export declare const domainEditChangeSchemas: readonly [z.ZodObject<{
173
+ label: z.ZodOptional<z.ZodString>;
174
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
+ context: z.ZodOptional<z.ZodObject<{
176
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ synonyms: z.ZodOptional<z.ZodObject<{
178
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
179
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
+ }, "strict", z.ZodTypeAny, {
181
+ add?: string[] | undefined;
182
+ remove?: string[] | undefined;
183
+ }, {
184
+ add?: string[] | undefined;
185
+ remove?: string[] | undefined;
186
+ }>>;
187
+ examples: z.ZodOptional<z.ZodObject<{
188
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
190
+ }, "strict", z.ZodTypeAny, {
191
+ add?: string[] | undefined;
192
+ remove?: string[] | undefined;
193
+ }, {
194
+ add?: string[] | undefined;
195
+ remove?: string[] | undefined;
196
+ }>>;
197
+ }, "strict", z.ZodTypeAny, {
198
+ instructions?: string | null | undefined;
199
+ synonyms?: {
200
+ add?: string[] | undefined;
201
+ remove?: string[] | undefined;
202
+ } | undefined;
203
+ examples?: {
204
+ add?: string[] | undefined;
205
+ remove?: string[] | undefined;
206
+ } | undefined;
207
+ }, {
208
+ instructions?: string | null | undefined;
209
+ synonyms?: {
210
+ add?: string[] | undefined;
211
+ remove?: string[] | undefined;
212
+ } | undefined;
213
+ examples?: {
214
+ add?: string[] | undefined;
215
+ remove?: string[] | undefined;
216
+ } | undefined;
217
+ }>>;
218
+ name: z.ZodOptional<z.ZodNever>;
219
+ op: z.ZodLiteral<"domain.update">;
220
+ }, "strict", z.ZodTypeAny, {
221
+ op: "domain.update";
222
+ label?: string | undefined;
223
+ name?: undefined;
224
+ description?: string | null | undefined;
225
+ context?: {
226
+ instructions?: string | null | undefined;
227
+ synonyms?: {
228
+ add?: string[] | undefined;
229
+ remove?: string[] | undefined;
230
+ } | undefined;
231
+ examples?: {
232
+ add?: string[] | undefined;
233
+ remove?: string[] | undefined;
234
+ } | undefined;
235
+ } | undefined;
236
+ }, {
237
+ op: "domain.update";
238
+ label?: string | undefined;
239
+ name?: undefined;
240
+ description?: string | null | undefined;
241
+ context?: {
242
+ instructions?: string | null | undefined;
243
+ synonyms?: {
244
+ add?: string[] | undefined;
245
+ remove?: string[] | undefined;
246
+ } | undefined;
247
+ examples?: {
248
+ add?: string[] | undefined;
249
+ remove?: string[] | undefined;
250
+ } | undefined;
251
+ } | undefined;
252
+ }>, z.ZodObject<{
253
+ primaryDateField: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ label: z.ZodOptional<z.ZodString>;
255
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ context: z.ZodOptional<z.ZodObject<{
257
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ synonyms: z.ZodOptional<z.ZodObject<{
259
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
+ }, "strict", z.ZodTypeAny, {
262
+ add?: string[] | undefined;
263
+ remove?: string[] | undefined;
264
+ }, {
265
+ add?: string[] | undefined;
266
+ remove?: string[] | undefined;
267
+ }>>;
268
+ examples: z.ZodOptional<z.ZodObject<{
269
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
270
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ add?: string[] | undefined;
273
+ remove?: string[] | undefined;
274
+ }, {
275
+ add?: string[] | undefined;
276
+ remove?: string[] | undefined;
277
+ }>>;
278
+ }, "strict", z.ZodTypeAny, {
279
+ instructions?: string | null | undefined;
280
+ synonyms?: {
281
+ add?: string[] | undefined;
282
+ remove?: string[] | undefined;
283
+ } | undefined;
284
+ examples?: {
285
+ add?: string[] | undefined;
286
+ remove?: string[] | undefined;
287
+ } | undefined;
288
+ }, {
289
+ instructions?: string | null | undefined;
290
+ synonyms?: {
291
+ add?: string[] | undefined;
292
+ remove?: string[] | undefined;
293
+ } | undefined;
294
+ examples?: {
295
+ add?: string[] | undefined;
296
+ remove?: string[] | undefined;
297
+ } | undefined;
298
+ }>>;
299
+ name: z.ZodOptional<z.ZodNever>;
300
+ op: z.ZodLiteral<"dataset.update">;
301
+ dataset: z.ZodString;
302
+ }, "strict", z.ZodTypeAny, {
303
+ dataset: string;
304
+ op: "dataset.update";
305
+ label?: string | undefined;
306
+ name?: undefined;
307
+ description?: string | null | undefined;
308
+ context?: {
309
+ instructions?: string | null | undefined;
310
+ synonyms?: {
311
+ add?: string[] | undefined;
312
+ remove?: string[] | undefined;
313
+ } | undefined;
314
+ examples?: {
315
+ add?: string[] | undefined;
316
+ remove?: string[] | undefined;
317
+ } | undefined;
318
+ } | undefined;
319
+ primaryDateField?: string | null | undefined;
320
+ }, {
321
+ dataset: string;
322
+ op: "dataset.update";
323
+ label?: string | undefined;
324
+ name?: undefined;
325
+ description?: string | null | undefined;
326
+ context?: {
327
+ instructions?: string | null | undefined;
328
+ synonyms?: {
329
+ add?: string[] | undefined;
330
+ remove?: string[] | undefined;
331
+ } | undefined;
332
+ examples?: {
333
+ add?: string[] | undefined;
334
+ remove?: string[] | undefined;
335
+ } | undefined;
336
+ } | undefined;
337
+ primaryDateField?: string | null | undefined;
338
+ }>, z.ZodObject<{
339
+ format: z.ZodOptional<z.ZodNullable<z.ZodType<SemaphorScalarValueFormat, z.ZodTypeDef, SemaphorScalarValueFormat>>>;
340
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
342
+ isDisplayField: z.ZodOptional<z.ZodBoolean>;
343
+ hidden: z.ZodOptional<z.ZodLiteral<true>>;
344
+ expression: z.ZodOptional<z.ZodString>;
345
+ defaultAggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
346
+ granularity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>>>;
347
+ label: z.ZodOptional<z.ZodString>;
348
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ context: z.ZodOptional<z.ZodObject<{
350
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ synonyms: z.ZodOptional<z.ZodObject<{
352
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ }, "strict", z.ZodTypeAny, {
355
+ add?: string[] | undefined;
356
+ remove?: string[] | undefined;
357
+ }, {
358
+ add?: string[] | undefined;
359
+ remove?: string[] | undefined;
360
+ }>>;
361
+ examples: z.ZodOptional<z.ZodObject<{
362
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
363
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ add?: string[] | undefined;
366
+ remove?: string[] | undefined;
367
+ }, {
368
+ add?: string[] | undefined;
369
+ remove?: string[] | undefined;
370
+ }>>;
371
+ }, "strict", z.ZodTypeAny, {
372
+ instructions?: string | null | undefined;
373
+ synonyms?: {
374
+ add?: string[] | undefined;
375
+ remove?: string[] | undefined;
376
+ } | undefined;
377
+ examples?: {
378
+ add?: string[] | undefined;
379
+ remove?: string[] | undefined;
380
+ } | undefined;
381
+ }, {
382
+ instructions?: string | null | undefined;
383
+ synonyms?: {
384
+ add?: string[] | undefined;
385
+ remove?: string[] | undefined;
386
+ } | undefined;
387
+ examples?: {
388
+ add?: string[] | undefined;
389
+ remove?: string[] | undefined;
390
+ } | undefined;
391
+ }>>;
392
+ name: z.ZodOptional<z.ZodNever>;
393
+ op: z.ZodLiteral<"field.update">;
394
+ dataset: z.ZodString;
395
+ field: z.ZodString;
396
+ }, "strict", z.ZodTypeAny, {
397
+ field: string;
398
+ dataset: string;
399
+ op: "field.update";
400
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
401
+ label?: string | undefined;
402
+ name?: undefined;
403
+ description?: string | null | undefined;
404
+ expression?: string | undefined;
405
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
406
+ format?: SemaphorScalarValueFormat | null | undefined;
407
+ unit?: string | null | undefined;
408
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
409
+ hidden?: true | undefined;
410
+ context?: {
411
+ instructions?: string | null | undefined;
412
+ synonyms?: {
413
+ add?: string[] | undefined;
414
+ remove?: string[] | undefined;
415
+ } | undefined;
416
+ examples?: {
417
+ add?: string[] | undefined;
418
+ remove?: string[] | undefined;
419
+ } | undefined;
420
+ } | undefined;
421
+ isDisplayField?: boolean | undefined;
422
+ }, {
423
+ field: string;
424
+ dataset: string;
425
+ op: "field.update";
426
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
427
+ label?: string | undefined;
428
+ name?: undefined;
429
+ description?: string | null | undefined;
430
+ expression?: string | undefined;
431
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
432
+ format?: SemaphorScalarValueFormat | null | undefined;
433
+ unit?: string | null | undefined;
434
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
435
+ hidden?: true | undefined;
436
+ context?: {
437
+ instructions?: string | null | undefined;
438
+ synonyms?: {
439
+ add?: string[] | undefined;
440
+ remove?: string[] | undefined;
441
+ } | undefined;
442
+ examples?: {
443
+ add?: string[] | undefined;
444
+ remove?: string[] | undefined;
445
+ } | undefined;
446
+ } | undefined;
447
+ isDisplayField?: boolean | undefined;
448
+ }>, z.ZodObject<{
449
+ format: z.ZodOptional<z.ZodNullable<z.ZodType<SemaphorScalarValueFormat, z.ZodTypeDef, SemaphorScalarValueFormat>>>;
450
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
451
+ expression: z.ZodOptional<z.ZodString>;
452
+ label: z.ZodOptional<z.ZodString>;
453
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ context: z.ZodOptional<z.ZodObject<{
455
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ synonyms: z.ZodOptional<z.ZodObject<{
457
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
459
+ }, "strict", z.ZodTypeAny, {
460
+ add?: string[] | undefined;
461
+ remove?: string[] | undefined;
462
+ }, {
463
+ add?: string[] | undefined;
464
+ remove?: string[] | undefined;
465
+ }>>;
466
+ examples: z.ZodOptional<z.ZodObject<{
467
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
468
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
469
+ }, "strict", z.ZodTypeAny, {
470
+ add?: string[] | undefined;
471
+ remove?: string[] | undefined;
472
+ }, {
473
+ add?: string[] | undefined;
474
+ remove?: string[] | undefined;
475
+ }>>;
476
+ }, "strict", z.ZodTypeAny, {
477
+ instructions?: string | null | undefined;
478
+ synonyms?: {
479
+ add?: string[] | undefined;
480
+ remove?: string[] | undefined;
481
+ } | undefined;
482
+ examples?: {
483
+ add?: string[] | undefined;
484
+ remove?: string[] | undefined;
485
+ } | undefined;
486
+ }, {
487
+ instructions?: string | null | undefined;
488
+ synonyms?: {
489
+ add?: string[] | undefined;
490
+ remove?: string[] | undefined;
491
+ } | undefined;
492
+ examples?: {
493
+ add?: string[] | undefined;
494
+ remove?: string[] | undefined;
495
+ } | undefined;
496
+ }>>;
497
+ name: z.ZodOptional<z.ZodNever>;
498
+ op: z.ZodLiteral<"metric.update">;
499
+ metric: z.ZodString;
500
+ dataset: z.ZodOptional<z.ZodString>;
501
+ }, "strict", z.ZodTypeAny, {
502
+ metric: string;
503
+ op: "metric.update";
504
+ label?: string | undefined;
505
+ name?: undefined;
506
+ description?: string | null | undefined;
507
+ expression?: string | undefined;
508
+ format?: SemaphorScalarValueFormat | null | undefined;
509
+ dataset?: string | undefined;
510
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
511
+ context?: {
512
+ instructions?: string | null | undefined;
513
+ synonyms?: {
514
+ add?: string[] | undefined;
515
+ remove?: string[] | undefined;
516
+ } | undefined;
517
+ examples?: {
518
+ add?: string[] | undefined;
519
+ remove?: string[] | undefined;
520
+ } | undefined;
521
+ } | undefined;
522
+ }, {
523
+ metric: string;
524
+ op: "metric.update";
525
+ label?: string | undefined;
526
+ name?: undefined;
527
+ description?: string | null | undefined;
528
+ expression?: string | undefined;
529
+ format?: SemaphorScalarValueFormat | null | undefined;
530
+ dataset?: string | undefined;
531
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
532
+ context?: {
533
+ instructions?: string | null | undefined;
534
+ synonyms?: {
535
+ add?: string[] | undefined;
536
+ remove?: string[] | undefined;
537
+ } | undefined;
538
+ examples?: {
539
+ add?: string[] | undefined;
540
+ remove?: string[] | undefined;
541
+ } | undefined;
542
+ } | undefined;
543
+ }>, z.ZodObject<{
544
+ op: z.ZodLiteral<"calculation.add">;
545
+ dataset: z.ZodOptional<z.ZodString>;
546
+ name: z.ZodString;
547
+ label: z.ZodOptional<z.ZodString>;
548
+ description: z.ZodOptional<z.ZodString>;
549
+ expression: z.ZodString;
550
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
551
+ dataset: z.ZodString;
552
+ field: z.ZodString;
553
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
554
+ }, "strict", z.ZodTypeAny, {
555
+ field: string;
556
+ dataset: string;
557
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
558
+ }, {
559
+ field: string;
560
+ dataset: string;
561
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
562
+ }>, z.ZodObject<{
563
+ metric: z.ZodString;
564
+ dataset: z.ZodOptional<z.ZodString>;
565
+ }, "strict", z.ZodTypeAny, {
566
+ metric: string;
567
+ dataset?: string | undefined;
568
+ }, {
569
+ metric: string;
570
+ dataset?: string | undefined;
571
+ }>]>>>;
572
+ use: z.ZodOptional<z.ZodEnum<["aggregate", "group_or_filter"]>>;
573
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime"]>>;
574
+ }, "strict", z.ZodTypeAny, {
575
+ name: string;
576
+ expression: string;
577
+ op: "calculation.add";
578
+ label?: string | undefined;
579
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
580
+ description?: string | undefined;
581
+ inputs?: Record<string, {
582
+ field: string;
583
+ dataset: string;
584
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
585
+ } | {
586
+ metric: string;
587
+ dataset?: string | undefined;
588
+ }> | undefined;
589
+ dataset?: string | undefined;
590
+ use?: "aggregate" | "group_or_filter" | undefined;
591
+ }, {
592
+ name: string;
593
+ expression: string;
594
+ op: "calculation.add";
595
+ label?: string | undefined;
596
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
597
+ description?: string | undefined;
598
+ inputs?: Record<string, {
599
+ field: string;
600
+ dataset: string;
601
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
602
+ } | {
603
+ metric: string;
604
+ dataset?: string | undefined;
605
+ }> | undefined;
606
+ dataset?: string | undefined;
607
+ use?: "aggregate" | "group_or_filter" | undefined;
608
+ }>, z.ZodObject<{
609
+ op: z.ZodLiteral<"relationship.update">;
610
+ relationship: z.ZodString;
611
+ isActive: z.ZodOptional<z.ZodLiteral<false>>;
612
+ defaultJoinType: z.ZodOptional<z.ZodEnum<["LEFT", "INNER"]>>;
613
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ context: z.ZodOptional<z.ZodObject<{
615
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ synonyms: z.ZodOptional<z.ZodObject<{
617
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
618
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
+ }, "strict", z.ZodTypeAny, {
620
+ add?: string[] | undefined;
621
+ remove?: string[] | undefined;
622
+ }, {
623
+ add?: string[] | undefined;
624
+ remove?: string[] | undefined;
625
+ }>>;
626
+ examples: z.ZodOptional<z.ZodObject<{
627
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
629
+ }, "strict", z.ZodTypeAny, {
630
+ add?: string[] | undefined;
631
+ remove?: string[] | undefined;
632
+ }, {
633
+ add?: string[] | undefined;
634
+ remove?: string[] | undefined;
635
+ }>>;
636
+ }, "strict", z.ZodTypeAny, {
637
+ instructions?: string | null | undefined;
638
+ synonyms?: {
639
+ add?: string[] | undefined;
640
+ remove?: string[] | undefined;
641
+ } | undefined;
642
+ examples?: {
643
+ add?: string[] | undefined;
644
+ remove?: string[] | undefined;
645
+ } | undefined;
646
+ }, {
647
+ instructions?: string | null | undefined;
648
+ synonyms?: {
649
+ add?: string[] | undefined;
650
+ remove?: string[] | undefined;
651
+ } | undefined;
652
+ examples?: {
653
+ add?: string[] | undefined;
654
+ remove?: string[] | undefined;
655
+ } | undefined;
656
+ }>>;
657
+ }, "strict", z.ZodTypeAny, {
658
+ op: "relationship.update";
659
+ relationship: string;
660
+ description?: string | null | undefined;
661
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
662
+ context?: {
663
+ instructions?: string | null | undefined;
664
+ synonyms?: {
665
+ add?: string[] | undefined;
666
+ remove?: string[] | undefined;
667
+ } | undefined;
668
+ examples?: {
669
+ add?: string[] | undefined;
670
+ remove?: string[] | undefined;
671
+ } | undefined;
672
+ } | undefined;
673
+ isActive?: false | undefined;
674
+ }, {
675
+ op: "relationship.update";
676
+ relationship: string;
677
+ description?: string | null | undefined;
678
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
679
+ context?: {
680
+ instructions?: string | null | undefined;
681
+ synonyms?: {
682
+ add?: string[] | undefined;
683
+ remove?: string[] | undefined;
684
+ } | undefined;
685
+ examples?: {
686
+ add?: string[] | undefined;
687
+ remove?: string[] | undefined;
688
+ } | undefined;
689
+ } | undefined;
690
+ isActive?: false | undefined;
691
+ }>];
692
+ /** The same changes as the tool definition registers them: a format in a line. `name` stays, so the SDK's own check refuses it with its fix. */
693
+ export declare const registeredDomainEditChangeSchemas: readonly [z.ZodObject<{
694
+ label: z.ZodOptional<z.ZodString>;
695
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ context: z.ZodOptional<z.ZodObject<{
697
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
+ synonyms: z.ZodOptional<z.ZodObject<{
699
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
700
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
701
+ }, "strict", z.ZodTypeAny, {
702
+ add?: string[] | undefined;
703
+ remove?: string[] | undefined;
704
+ }, {
705
+ add?: string[] | undefined;
706
+ remove?: string[] | undefined;
707
+ }>>;
708
+ examples: z.ZodOptional<z.ZodObject<{
709
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
710
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
711
+ }, "strict", z.ZodTypeAny, {
712
+ add?: string[] | undefined;
713
+ remove?: string[] | undefined;
714
+ }, {
715
+ add?: string[] | undefined;
716
+ remove?: string[] | undefined;
717
+ }>>;
718
+ }, "strict", z.ZodTypeAny, {
719
+ instructions?: string | null | undefined;
720
+ synonyms?: {
721
+ add?: string[] | undefined;
722
+ remove?: string[] | undefined;
723
+ } | undefined;
724
+ examples?: {
725
+ add?: string[] | undefined;
726
+ remove?: string[] | undefined;
727
+ } | undefined;
728
+ }, {
729
+ instructions?: string | null | undefined;
730
+ synonyms?: {
731
+ add?: string[] | undefined;
732
+ remove?: string[] | undefined;
733
+ } | undefined;
734
+ examples?: {
735
+ add?: string[] | undefined;
736
+ remove?: string[] | undefined;
737
+ } | undefined;
738
+ }>>;
739
+ name: z.ZodOptional<z.ZodNever>;
740
+ op: z.ZodLiteral<"domain.update">;
741
+ }, "strict", z.ZodTypeAny, {
742
+ op: "domain.update";
743
+ label?: string | undefined;
744
+ name?: undefined;
745
+ description?: string | null | undefined;
746
+ context?: {
747
+ instructions?: string | null | undefined;
748
+ synonyms?: {
749
+ add?: string[] | undefined;
750
+ remove?: string[] | undefined;
751
+ } | undefined;
752
+ examples?: {
753
+ add?: string[] | undefined;
754
+ remove?: string[] | undefined;
755
+ } | undefined;
756
+ } | undefined;
757
+ }, {
758
+ op: "domain.update";
759
+ label?: string | undefined;
760
+ name?: undefined;
761
+ description?: string | null | undefined;
762
+ context?: {
763
+ instructions?: string | null | undefined;
764
+ synonyms?: {
765
+ add?: string[] | undefined;
766
+ remove?: string[] | undefined;
767
+ } | undefined;
768
+ examples?: {
769
+ add?: string[] | undefined;
770
+ remove?: string[] | undefined;
771
+ } | undefined;
772
+ } | undefined;
773
+ }>, z.ZodObject<{
774
+ primaryDateField: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
+ label: z.ZodOptional<z.ZodString>;
776
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
+ context: z.ZodOptional<z.ZodObject<{
778
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ synonyms: z.ZodOptional<z.ZodObject<{
780
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
781
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
782
+ }, "strict", z.ZodTypeAny, {
783
+ add?: string[] | undefined;
784
+ remove?: string[] | undefined;
785
+ }, {
786
+ add?: string[] | undefined;
787
+ remove?: string[] | undefined;
788
+ }>>;
789
+ examples: z.ZodOptional<z.ZodObject<{
790
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
+ }, "strict", z.ZodTypeAny, {
793
+ add?: string[] | undefined;
794
+ remove?: string[] | undefined;
795
+ }, {
796
+ add?: string[] | undefined;
797
+ remove?: string[] | undefined;
798
+ }>>;
799
+ }, "strict", z.ZodTypeAny, {
800
+ instructions?: string | null | undefined;
801
+ synonyms?: {
802
+ add?: string[] | undefined;
803
+ remove?: string[] | undefined;
804
+ } | undefined;
805
+ examples?: {
806
+ add?: string[] | undefined;
807
+ remove?: string[] | undefined;
808
+ } | undefined;
809
+ }, {
810
+ instructions?: string | null | undefined;
811
+ synonyms?: {
812
+ add?: string[] | undefined;
813
+ remove?: string[] | undefined;
814
+ } | undefined;
815
+ examples?: {
816
+ add?: string[] | undefined;
817
+ remove?: string[] | undefined;
818
+ } | undefined;
819
+ }>>;
820
+ name: z.ZodOptional<z.ZodNever>;
821
+ op: z.ZodLiteral<"dataset.update">;
822
+ dataset: z.ZodString;
823
+ }, "strict", z.ZodTypeAny, {
824
+ dataset: string;
825
+ op: "dataset.update";
826
+ label?: string | undefined;
827
+ name?: undefined;
828
+ description?: string | null | undefined;
829
+ context?: {
830
+ instructions?: string | null | undefined;
831
+ synonyms?: {
832
+ add?: string[] | undefined;
833
+ remove?: string[] | undefined;
834
+ } | undefined;
835
+ examples?: {
836
+ add?: string[] | undefined;
837
+ remove?: string[] | undefined;
838
+ } | undefined;
839
+ } | undefined;
840
+ primaryDateField?: string | null | undefined;
841
+ }, {
842
+ dataset: string;
843
+ op: "dataset.update";
844
+ label?: string | undefined;
845
+ name?: undefined;
846
+ description?: string | null | undefined;
847
+ context?: {
848
+ instructions?: string | null | undefined;
849
+ synonyms?: {
850
+ add?: string[] | undefined;
851
+ remove?: string[] | undefined;
852
+ } | undefined;
853
+ examples?: {
854
+ add?: string[] | undefined;
855
+ remove?: string[] | undefined;
856
+ } | undefined;
857
+ } | undefined;
858
+ primaryDateField?: string | null | undefined;
859
+ }>, z.ZodObject<{
860
+ format: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
861
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
862
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
863
+ isDisplayField: z.ZodOptional<z.ZodBoolean>;
864
+ hidden: z.ZodOptional<z.ZodLiteral<true>>;
865
+ expression: z.ZodOptional<z.ZodString>;
866
+ defaultAggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
867
+ granularity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>>>;
868
+ label: z.ZodOptional<z.ZodString>;
869
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ context: z.ZodOptional<z.ZodObject<{
871
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ synonyms: z.ZodOptional<z.ZodObject<{
873
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
874
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
+ }, "strict", z.ZodTypeAny, {
876
+ add?: string[] | undefined;
877
+ remove?: string[] | undefined;
878
+ }, {
879
+ add?: string[] | undefined;
880
+ remove?: string[] | undefined;
881
+ }>>;
882
+ examples: z.ZodOptional<z.ZodObject<{
883
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
884
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
885
+ }, "strict", z.ZodTypeAny, {
886
+ add?: string[] | undefined;
887
+ remove?: string[] | undefined;
888
+ }, {
889
+ add?: string[] | undefined;
890
+ remove?: string[] | undefined;
891
+ }>>;
892
+ }, "strict", z.ZodTypeAny, {
893
+ instructions?: string | null | undefined;
894
+ synonyms?: {
895
+ add?: string[] | undefined;
896
+ remove?: string[] | undefined;
897
+ } | undefined;
898
+ examples?: {
899
+ add?: string[] | undefined;
900
+ remove?: string[] | undefined;
901
+ } | undefined;
902
+ }, {
903
+ instructions?: string | null | undefined;
904
+ synonyms?: {
905
+ add?: string[] | undefined;
906
+ remove?: string[] | undefined;
907
+ } | undefined;
908
+ examples?: {
909
+ add?: string[] | undefined;
910
+ remove?: string[] | undefined;
911
+ } | undefined;
912
+ }>>;
913
+ name: z.ZodOptional<z.ZodNever>;
914
+ op: z.ZodLiteral<"field.update">;
915
+ dataset: z.ZodString;
916
+ field: z.ZodString;
917
+ }, "strict", z.ZodTypeAny, {
918
+ field: string;
919
+ dataset: string;
920
+ op: "field.update";
921
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
922
+ label?: string | undefined;
923
+ name?: undefined;
924
+ description?: string | null | undefined;
925
+ expression?: string | undefined;
926
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
927
+ format?: Record<string, unknown> | null | undefined;
928
+ unit?: string | null | undefined;
929
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
930
+ hidden?: true | undefined;
931
+ context?: {
932
+ instructions?: string | null | undefined;
933
+ synonyms?: {
934
+ add?: string[] | undefined;
935
+ remove?: string[] | undefined;
936
+ } | undefined;
937
+ examples?: {
938
+ add?: string[] | undefined;
939
+ remove?: string[] | undefined;
940
+ } | undefined;
941
+ } | undefined;
942
+ isDisplayField?: boolean | undefined;
943
+ }, {
944
+ field: string;
945
+ dataset: string;
946
+ op: "field.update";
947
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
948
+ label?: string | undefined;
949
+ name?: undefined;
950
+ description?: string | null | undefined;
951
+ expression?: string | undefined;
952
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
953
+ format?: Record<string, unknown> | null | undefined;
954
+ unit?: string | null | undefined;
955
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
956
+ hidden?: true | undefined;
957
+ context?: {
958
+ instructions?: string | null | undefined;
959
+ synonyms?: {
960
+ add?: string[] | undefined;
961
+ remove?: string[] | undefined;
962
+ } | undefined;
963
+ examples?: {
964
+ add?: string[] | undefined;
965
+ remove?: string[] | undefined;
966
+ } | undefined;
967
+ } | undefined;
968
+ isDisplayField?: boolean | undefined;
969
+ }>, z.ZodObject<{
970
+ format: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
971
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
972
+ expression: z.ZodOptional<z.ZodString>;
973
+ label: z.ZodOptional<z.ZodString>;
974
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
+ context: z.ZodOptional<z.ZodObject<{
976
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ synonyms: z.ZodOptional<z.ZodObject<{
978
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
979
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
980
+ }, "strict", z.ZodTypeAny, {
981
+ add?: string[] | undefined;
982
+ remove?: string[] | undefined;
983
+ }, {
984
+ add?: string[] | undefined;
985
+ remove?: string[] | undefined;
986
+ }>>;
987
+ examples: z.ZodOptional<z.ZodObject<{
988
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
990
+ }, "strict", z.ZodTypeAny, {
991
+ add?: string[] | undefined;
992
+ remove?: string[] | undefined;
993
+ }, {
994
+ add?: string[] | undefined;
995
+ remove?: string[] | undefined;
996
+ }>>;
997
+ }, "strict", z.ZodTypeAny, {
998
+ instructions?: string | null | undefined;
999
+ synonyms?: {
1000
+ add?: string[] | undefined;
1001
+ remove?: string[] | undefined;
1002
+ } | undefined;
1003
+ examples?: {
1004
+ add?: string[] | undefined;
1005
+ remove?: string[] | undefined;
1006
+ } | undefined;
1007
+ }, {
1008
+ instructions?: string | null | undefined;
1009
+ synonyms?: {
1010
+ add?: string[] | undefined;
1011
+ remove?: string[] | undefined;
1012
+ } | undefined;
1013
+ examples?: {
1014
+ add?: string[] | undefined;
1015
+ remove?: string[] | undefined;
1016
+ } | undefined;
1017
+ }>>;
1018
+ name: z.ZodOptional<z.ZodNever>;
1019
+ op: z.ZodLiteral<"metric.update">;
1020
+ metric: z.ZodString;
1021
+ dataset: z.ZodOptional<z.ZodString>;
1022
+ }, "strict", z.ZodTypeAny, {
1023
+ metric: string;
1024
+ op: "metric.update";
1025
+ label?: string | undefined;
1026
+ name?: undefined;
1027
+ description?: string | null | undefined;
1028
+ expression?: string | undefined;
1029
+ format?: Record<string, unknown> | null | undefined;
1030
+ dataset?: string | undefined;
1031
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1032
+ context?: {
1033
+ instructions?: string | null | undefined;
1034
+ synonyms?: {
1035
+ add?: string[] | undefined;
1036
+ remove?: string[] | undefined;
1037
+ } | undefined;
1038
+ examples?: {
1039
+ add?: string[] | undefined;
1040
+ remove?: string[] | undefined;
1041
+ } | undefined;
1042
+ } | undefined;
1043
+ }, {
1044
+ metric: string;
1045
+ op: "metric.update";
1046
+ label?: string | undefined;
1047
+ name?: undefined;
1048
+ description?: string | null | undefined;
1049
+ expression?: string | undefined;
1050
+ format?: Record<string, unknown> | null | undefined;
1051
+ dataset?: string | undefined;
1052
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1053
+ context?: {
1054
+ instructions?: string | null | undefined;
1055
+ synonyms?: {
1056
+ add?: string[] | undefined;
1057
+ remove?: string[] | undefined;
1058
+ } | undefined;
1059
+ examples?: {
1060
+ add?: string[] | undefined;
1061
+ remove?: string[] | undefined;
1062
+ } | undefined;
1063
+ } | undefined;
1064
+ }>, z.ZodObject<{
1065
+ op: z.ZodLiteral<"calculation.add">;
1066
+ dataset: z.ZodOptional<z.ZodString>;
1067
+ name: z.ZodString;
1068
+ label: z.ZodOptional<z.ZodString>;
1069
+ description: z.ZodOptional<z.ZodString>;
1070
+ expression: z.ZodString;
1071
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1072
+ dataset: z.ZodString;
1073
+ field: z.ZodString;
1074
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
1075
+ }, "strict", z.ZodTypeAny, {
1076
+ field: string;
1077
+ dataset: string;
1078
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1079
+ }, {
1080
+ field: string;
1081
+ dataset: string;
1082
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1083
+ }>, z.ZodObject<{
1084
+ metric: z.ZodString;
1085
+ dataset: z.ZodOptional<z.ZodString>;
1086
+ }, "strict", z.ZodTypeAny, {
1087
+ metric: string;
1088
+ dataset?: string | undefined;
1089
+ }, {
1090
+ metric: string;
1091
+ dataset?: string | undefined;
1092
+ }>]>>>;
1093
+ use: z.ZodOptional<z.ZodEnum<["aggregate", "group_or_filter"]>>;
1094
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime"]>>;
1095
+ }, "strict", z.ZodTypeAny, {
1096
+ name: string;
1097
+ expression: string;
1098
+ op: "calculation.add";
1099
+ label?: string | undefined;
1100
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
1101
+ description?: string | undefined;
1102
+ inputs?: Record<string, {
1103
+ field: string;
1104
+ dataset: string;
1105
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1106
+ } | {
1107
+ metric: string;
1108
+ dataset?: string | undefined;
1109
+ }> | undefined;
1110
+ dataset?: string | undefined;
1111
+ use?: "aggregate" | "group_or_filter" | undefined;
1112
+ }, {
1113
+ name: string;
1114
+ expression: string;
1115
+ op: "calculation.add";
1116
+ label?: string | undefined;
1117
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
1118
+ description?: string | undefined;
1119
+ inputs?: Record<string, {
1120
+ field: string;
1121
+ dataset: string;
1122
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1123
+ } | {
1124
+ metric: string;
1125
+ dataset?: string | undefined;
1126
+ }> | undefined;
1127
+ dataset?: string | undefined;
1128
+ use?: "aggregate" | "group_or_filter" | undefined;
1129
+ }>, z.ZodObject<{
1130
+ op: z.ZodLiteral<"relationship.update">;
1131
+ relationship: z.ZodString;
1132
+ isActive: z.ZodOptional<z.ZodLiteral<false>>;
1133
+ defaultJoinType: z.ZodOptional<z.ZodEnum<["LEFT", "INNER"]>>;
1134
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
+ context: z.ZodOptional<z.ZodObject<{
1136
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1137
+ synonyms: z.ZodOptional<z.ZodObject<{
1138
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1139
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1140
+ }, "strict", z.ZodTypeAny, {
1141
+ add?: string[] | undefined;
1142
+ remove?: string[] | undefined;
1143
+ }, {
1144
+ add?: string[] | undefined;
1145
+ remove?: string[] | undefined;
1146
+ }>>;
1147
+ examples: z.ZodOptional<z.ZodObject<{
1148
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1149
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1150
+ }, "strict", z.ZodTypeAny, {
1151
+ add?: string[] | undefined;
1152
+ remove?: string[] | undefined;
1153
+ }, {
1154
+ add?: string[] | undefined;
1155
+ remove?: string[] | undefined;
1156
+ }>>;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ instructions?: string | null | undefined;
1159
+ synonyms?: {
1160
+ add?: string[] | undefined;
1161
+ remove?: string[] | undefined;
1162
+ } | undefined;
1163
+ examples?: {
1164
+ add?: string[] | undefined;
1165
+ remove?: string[] | undefined;
1166
+ } | undefined;
1167
+ }, {
1168
+ instructions?: string | null | undefined;
1169
+ synonyms?: {
1170
+ add?: string[] | undefined;
1171
+ remove?: string[] | undefined;
1172
+ } | undefined;
1173
+ examples?: {
1174
+ add?: string[] | undefined;
1175
+ remove?: string[] | undefined;
1176
+ } | undefined;
1177
+ }>>;
1178
+ }, "strict", z.ZodTypeAny, {
1179
+ op: "relationship.update";
1180
+ relationship: string;
1181
+ description?: string | null | undefined;
1182
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
1183
+ context?: {
1184
+ instructions?: string | null | undefined;
1185
+ synonyms?: {
1186
+ add?: string[] | undefined;
1187
+ remove?: string[] | undefined;
1188
+ } | undefined;
1189
+ examples?: {
1190
+ add?: string[] | undefined;
1191
+ remove?: string[] | undefined;
1192
+ } | undefined;
1193
+ } | undefined;
1194
+ isActive?: false | undefined;
1195
+ }, {
1196
+ op: "relationship.update";
1197
+ relationship: string;
1198
+ description?: string | null | undefined;
1199
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
1200
+ context?: {
1201
+ instructions?: string | null | undefined;
1202
+ synonyms?: {
1203
+ add?: string[] | undefined;
1204
+ remove?: string[] | undefined;
1205
+ } | undefined;
1206
+ examples?: {
1207
+ add?: string[] | undefined;
1208
+ remove?: string[] | undefined;
1209
+ } | undefined;
1210
+ } | undefined;
1211
+ isActive?: false | undefined;
1212
+ }>];
1213
+ export declare const domainEditChangeSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1214
+ label: z.ZodOptional<z.ZodString>;
1215
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ context: z.ZodOptional<z.ZodObject<{
1217
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1218
+ synonyms: z.ZodOptional<z.ZodObject<{
1219
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1220
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1221
+ }, "strict", z.ZodTypeAny, {
1222
+ add?: string[] | undefined;
1223
+ remove?: string[] | undefined;
1224
+ }, {
1225
+ add?: string[] | undefined;
1226
+ remove?: string[] | undefined;
1227
+ }>>;
1228
+ examples: z.ZodOptional<z.ZodObject<{
1229
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1230
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1231
+ }, "strict", z.ZodTypeAny, {
1232
+ add?: string[] | undefined;
1233
+ remove?: string[] | undefined;
1234
+ }, {
1235
+ add?: string[] | undefined;
1236
+ remove?: string[] | undefined;
1237
+ }>>;
1238
+ }, "strict", z.ZodTypeAny, {
1239
+ instructions?: string | null | undefined;
1240
+ synonyms?: {
1241
+ add?: string[] | undefined;
1242
+ remove?: string[] | undefined;
1243
+ } | undefined;
1244
+ examples?: {
1245
+ add?: string[] | undefined;
1246
+ remove?: string[] | undefined;
1247
+ } | undefined;
1248
+ }, {
1249
+ instructions?: string | null | undefined;
1250
+ synonyms?: {
1251
+ add?: string[] | undefined;
1252
+ remove?: string[] | undefined;
1253
+ } | undefined;
1254
+ examples?: {
1255
+ add?: string[] | undefined;
1256
+ remove?: string[] | undefined;
1257
+ } | undefined;
1258
+ }>>;
1259
+ name: z.ZodOptional<z.ZodNever>;
1260
+ op: z.ZodLiteral<"domain.update">;
1261
+ }, "strict", z.ZodTypeAny, {
1262
+ op: "domain.update";
1263
+ label?: string | undefined;
1264
+ name?: undefined;
1265
+ description?: string | null | undefined;
1266
+ context?: {
1267
+ instructions?: string | null | undefined;
1268
+ synonyms?: {
1269
+ add?: string[] | undefined;
1270
+ remove?: string[] | undefined;
1271
+ } | undefined;
1272
+ examples?: {
1273
+ add?: string[] | undefined;
1274
+ remove?: string[] | undefined;
1275
+ } | undefined;
1276
+ } | undefined;
1277
+ }, {
1278
+ op: "domain.update";
1279
+ label?: string | undefined;
1280
+ name?: undefined;
1281
+ description?: string | null | undefined;
1282
+ context?: {
1283
+ instructions?: string | null | undefined;
1284
+ synonyms?: {
1285
+ add?: string[] | undefined;
1286
+ remove?: string[] | undefined;
1287
+ } | undefined;
1288
+ examples?: {
1289
+ add?: string[] | undefined;
1290
+ remove?: string[] | undefined;
1291
+ } | undefined;
1292
+ } | undefined;
1293
+ }>, z.ZodObject<{
1294
+ primaryDateField: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ label: z.ZodOptional<z.ZodString>;
1296
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
+ context: z.ZodOptional<z.ZodObject<{
1298
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1299
+ synonyms: z.ZodOptional<z.ZodObject<{
1300
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1302
+ }, "strict", z.ZodTypeAny, {
1303
+ add?: string[] | undefined;
1304
+ remove?: string[] | undefined;
1305
+ }, {
1306
+ add?: string[] | undefined;
1307
+ remove?: string[] | undefined;
1308
+ }>>;
1309
+ examples: z.ZodOptional<z.ZodObject<{
1310
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1311
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1312
+ }, "strict", z.ZodTypeAny, {
1313
+ add?: string[] | undefined;
1314
+ remove?: string[] | undefined;
1315
+ }, {
1316
+ add?: string[] | undefined;
1317
+ remove?: string[] | undefined;
1318
+ }>>;
1319
+ }, "strict", z.ZodTypeAny, {
1320
+ instructions?: string | null | undefined;
1321
+ synonyms?: {
1322
+ add?: string[] | undefined;
1323
+ remove?: string[] | undefined;
1324
+ } | undefined;
1325
+ examples?: {
1326
+ add?: string[] | undefined;
1327
+ remove?: string[] | undefined;
1328
+ } | undefined;
1329
+ }, {
1330
+ instructions?: string | null | undefined;
1331
+ synonyms?: {
1332
+ add?: string[] | undefined;
1333
+ remove?: string[] | undefined;
1334
+ } | undefined;
1335
+ examples?: {
1336
+ add?: string[] | undefined;
1337
+ remove?: string[] | undefined;
1338
+ } | undefined;
1339
+ }>>;
1340
+ name: z.ZodOptional<z.ZodNever>;
1341
+ op: z.ZodLiteral<"dataset.update">;
1342
+ dataset: z.ZodString;
1343
+ }, "strict", z.ZodTypeAny, {
1344
+ dataset: string;
1345
+ op: "dataset.update";
1346
+ label?: string | undefined;
1347
+ name?: undefined;
1348
+ description?: string | null | undefined;
1349
+ context?: {
1350
+ instructions?: string | null | undefined;
1351
+ synonyms?: {
1352
+ add?: string[] | undefined;
1353
+ remove?: string[] | undefined;
1354
+ } | undefined;
1355
+ examples?: {
1356
+ add?: string[] | undefined;
1357
+ remove?: string[] | undefined;
1358
+ } | undefined;
1359
+ } | undefined;
1360
+ primaryDateField?: string | null | undefined;
1361
+ }, {
1362
+ dataset: string;
1363
+ op: "dataset.update";
1364
+ label?: string | undefined;
1365
+ name?: undefined;
1366
+ description?: string | null | undefined;
1367
+ context?: {
1368
+ instructions?: string | null | undefined;
1369
+ synonyms?: {
1370
+ add?: string[] | undefined;
1371
+ remove?: string[] | undefined;
1372
+ } | undefined;
1373
+ examples?: {
1374
+ add?: string[] | undefined;
1375
+ remove?: string[] | undefined;
1376
+ } | undefined;
1377
+ } | undefined;
1378
+ primaryDateField?: string | null | undefined;
1379
+ }>, z.ZodObject<{
1380
+ format: z.ZodOptional<z.ZodNullable<z.ZodType<SemaphorScalarValueFormat, z.ZodTypeDef, SemaphorScalarValueFormat>>>;
1381
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
1383
+ isDisplayField: z.ZodOptional<z.ZodBoolean>;
1384
+ hidden: z.ZodOptional<z.ZodLiteral<true>>;
1385
+ expression: z.ZodOptional<z.ZodString>;
1386
+ defaultAggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
1387
+ granularity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["second", "minute", "hour", "day", "week", "month", "quarter", "year"]>>>;
1388
+ label: z.ZodOptional<z.ZodString>;
1389
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1390
+ context: z.ZodOptional<z.ZodObject<{
1391
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1392
+ synonyms: z.ZodOptional<z.ZodObject<{
1393
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1394
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1395
+ }, "strict", z.ZodTypeAny, {
1396
+ add?: string[] | undefined;
1397
+ remove?: string[] | undefined;
1398
+ }, {
1399
+ add?: string[] | undefined;
1400
+ remove?: string[] | undefined;
1401
+ }>>;
1402
+ examples: z.ZodOptional<z.ZodObject<{
1403
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1404
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1405
+ }, "strict", z.ZodTypeAny, {
1406
+ add?: string[] | undefined;
1407
+ remove?: string[] | undefined;
1408
+ }, {
1409
+ add?: string[] | undefined;
1410
+ remove?: string[] | undefined;
1411
+ }>>;
1412
+ }, "strict", z.ZodTypeAny, {
1413
+ instructions?: string | null | undefined;
1414
+ synonyms?: {
1415
+ add?: string[] | undefined;
1416
+ remove?: string[] | undefined;
1417
+ } | undefined;
1418
+ examples?: {
1419
+ add?: string[] | undefined;
1420
+ remove?: string[] | undefined;
1421
+ } | undefined;
1422
+ }, {
1423
+ instructions?: string | null | undefined;
1424
+ synonyms?: {
1425
+ add?: string[] | undefined;
1426
+ remove?: string[] | undefined;
1427
+ } | undefined;
1428
+ examples?: {
1429
+ add?: string[] | undefined;
1430
+ remove?: string[] | undefined;
1431
+ } | undefined;
1432
+ }>>;
1433
+ name: z.ZodOptional<z.ZodNever>;
1434
+ op: z.ZodLiteral<"field.update">;
1435
+ dataset: z.ZodString;
1436
+ field: z.ZodString;
1437
+ }, "strict", z.ZodTypeAny, {
1438
+ field: string;
1439
+ dataset: string;
1440
+ op: "field.update";
1441
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
1442
+ label?: string | undefined;
1443
+ name?: undefined;
1444
+ description?: string | null | undefined;
1445
+ expression?: string | undefined;
1446
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1447
+ format?: SemaphorScalarValueFormat | null | undefined;
1448
+ unit?: string | null | undefined;
1449
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1450
+ hidden?: true | undefined;
1451
+ context?: {
1452
+ instructions?: string | null | undefined;
1453
+ synonyms?: {
1454
+ add?: string[] | undefined;
1455
+ remove?: string[] | undefined;
1456
+ } | undefined;
1457
+ examples?: {
1458
+ add?: string[] | undefined;
1459
+ remove?: string[] | undefined;
1460
+ } | undefined;
1461
+ } | undefined;
1462
+ isDisplayField?: boolean | undefined;
1463
+ }, {
1464
+ field: string;
1465
+ dataset: string;
1466
+ op: "field.update";
1467
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | null | undefined;
1468
+ label?: string | undefined;
1469
+ name?: undefined;
1470
+ description?: string | null | undefined;
1471
+ expression?: string | undefined;
1472
+ defaultAggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1473
+ format?: SemaphorScalarValueFormat | null | undefined;
1474
+ unit?: string | null | undefined;
1475
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1476
+ hidden?: true | undefined;
1477
+ context?: {
1478
+ instructions?: string | null | undefined;
1479
+ synonyms?: {
1480
+ add?: string[] | undefined;
1481
+ remove?: string[] | undefined;
1482
+ } | undefined;
1483
+ examples?: {
1484
+ add?: string[] | undefined;
1485
+ remove?: string[] | undefined;
1486
+ } | undefined;
1487
+ } | undefined;
1488
+ isDisplayField?: boolean | undefined;
1489
+ }>, z.ZodObject<{
1490
+ format: z.ZodOptional<z.ZodNullable<z.ZodType<SemaphorScalarValueFormat, z.ZodTypeDef, SemaphorScalarValueFormat>>>;
1491
+ comparisonPolarity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["higher_is_better", "lower_is_better", "neutral"]>>>;
1492
+ expression: z.ZodOptional<z.ZodString>;
1493
+ label: z.ZodOptional<z.ZodString>;
1494
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
+ context: z.ZodOptional<z.ZodObject<{
1496
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ synonyms: z.ZodOptional<z.ZodObject<{
1498
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1499
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1500
+ }, "strict", z.ZodTypeAny, {
1501
+ add?: string[] | undefined;
1502
+ remove?: string[] | undefined;
1503
+ }, {
1504
+ add?: string[] | undefined;
1505
+ remove?: string[] | undefined;
1506
+ }>>;
1507
+ examples: z.ZodOptional<z.ZodObject<{
1508
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1509
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1510
+ }, "strict", z.ZodTypeAny, {
1511
+ add?: string[] | undefined;
1512
+ remove?: string[] | undefined;
1513
+ }, {
1514
+ add?: string[] | undefined;
1515
+ remove?: string[] | undefined;
1516
+ }>>;
1517
+ }, "strict", z.ZodTypeAny, {
1518
+ instructions?: string | null | undefined;
1519
+ synonyms?: {
1520
+ add?: string[] | undefined;
1521
+ remove?: string[] | undefined;
1522
+ } | undefined;
1523
+ examples?: {
1524
+ add?: string[] | undefined;
1525
+ remove?: string[] | undefined;
1526
+ } | undefined;
1527
+ }, {
1528
+ instructions?: string | null | undefined;
1529
+ synonyms?: {
1530
+ add?: string[] | undefined;
1531
+ remove?: string[] | undefined;
1532
+ } | undefined;
1533
+ examples?: {
1534
+ add?: string[] | undefined;
1535
+ remove?: string[] | undefined;
1536
+ } | undefined;
1537
+ }>>;
1538
+ name: z.ZodOptional<z.ZodNever>;
1539
+ op: z.ZodLiteral<"metric.update">;
1540
+ metric: z.ZodString;
1541
+ dataset: z.ZodOptional<z.ZodString>;
1542
+ }, "strict", z.ZodTypeAny, {
1543
+ metric: string;
1544
+ op: "metric.update";
1545
+ label?: string | undefined;
1546
+ name?: undefined;
1547
+ description?: string | null | undefined;
1548
+ expression?: string | undefined;
1549
+ format?: SemaphorScalarValueFormat | null | undefined;
1550
+ dataset?: string | undefined;
1551
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1552
+ context?: {
1553
+ instructions?: string | null | undefined;
1554
+ synonyms?: {
1555
+ add?: string[] | undefined;
1556
+ remove?: string[] | undefined;
1557
+ } | undefined;
1558
+ examples?: {
1559
+ add?: string[] | undefined;
1560
+ remove?: string[] | undefined;
1561
+ } | undefined;
1562
+ } | undefined;
1563
+ }, {
1564
+ metric: string;
1565
+ op: "metric.update";
1566
+ label?: string | undefined;
1567
+ name?: undefined;
1568
+ description?: string | null | undefined;
1569
+ expression?: string | undefined;
1570
+ format?: SemaphorScalarValueFormat | null | undefined;
1571
+ dataset?: string | undefined;
1572
+ comparisonPolarity?: "higher_is_better" | "lower_is_better" | "neutral" | null | undefined;
1573
+ context?: {
1574
+ instructions?: string | null | undefined;
1575
+ synonyms?: {
1576
+ add?: string[] | undefined;
1577
+ remove?: string[] | undefined;
1578
+ } | undefined;
1579
+ examples?: {
1580
+ add?: string[] | undefined;
1581
+ remove?: string[] | undefined;
1582
+ } | undefined;
1583
+ } | undefined;
1584
+ }>, z.ZodObject<{
1585
+ op: z.ZodLiteral<"calculation.add">;
1586
+ dataset: z.ZodOptional<z.ZodString>;
1587
+ name: z.ZodString;
1588
+ label: z.ZodOptional<z.ZodString>;
1589
+ description: z.ZodOptional<z.ZodString>;
1590
+ expression: z.ZodString;
1591
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1592
+ dataset: z.ZodString;
1593
+ field: z.ZodString;
1594
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
1595
+ }, "strict", z.ZodTypeAny, {
1596
+ field: string;
1597
+ dataset: string;
1598
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1599
+ }, {
1600
+ field: string;
1601
+ dataset: string;
1602
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1603
+ }>, z.ZodObject<{
1604
+ metric: z.ZodString;
1605
+ dataset: z.ZodOptional<z.ZodString>;
1606
+ }, "strict", z.ZodTypeAny, {
1607
+ metric: string;
1608
+ dataset?: string | undefined;
1609
+ }, {
1610
+ metric: string;
1611
+ dataset?: string | undefined;
1612
+ }>]>>>;
1613
+ use: z.ZodOptional<z.ZodEnum<["aggregate", "group_or_filter"]>>;
1614
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime"]>>;
1615
+ }, "strict", z.ZodTypeAny, {
1616
+ name: string;
1617
+ expression: string;
1618
+ op: "calculation.add";
1619
+ label?: string | undefined;
1620
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
1621
+ description?: string | undefined;
1622
+ inputs?: Record<string, {
1623
+ field: string;
1624
+ dataset: string;
1625
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1626
+ } | {
1627
+ metric: string;
1628
+ dataset?: string | undefined;
1629
+ }> | undefined;
1630
+ dataset?: string | undefined;
1631
+ use?: "aggregate" | "group_or_filter" | undefined;
1632
+ }, {
1633
+ name: string;
1634
+ expression: string;
1635
+ op: "calculation.add";
1636
+ label?: string | undefined;
1637
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
1638
+ description?: string | undefined;
1639
+ inputs?: Record<string, {
1640
+ field: string;
1641
+ dataset: string;
1642
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
1643
+ } | {
1644
+ metric: string;
1645
+ dataset?: string | undefined;
1646
+ }> | undefined;
1647
+ dataset?: string | undefined;
1648
+ use?: "aggregate" | "group_or_filter" | undefined;
1649
+ }>, z.ZodObject<{
1650
+ op: z.ZodLiteral<"relationship.update">;
1651
+ relationship: z.ZodString;
1652
+ isActive: z.ZodOptional<z.ZodLiteral<false>>;
1653
+ defaultJoinType: z.ZodOptional<z.ZodEnum<["LEFT", "INNER"]>>;
1654
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1655
+ context: z.ZodOptional<z.ZodObject<{
1656
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1657
+ synonyms: z.ZodOptional<z.ZodObject<{
1658
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1659
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1660
+ }, "strict", z.ZodTypeAny, {
1661
+ add?: string[] | undefined;
1662
+ remove?: string[] | undefined;
1663
+ }, {
1664
+ add?: string[] | undefined;
1665
+ remove?: string[] | undefined;
1666
+ }>>;
1667
+ examples: z.ZodOptional<z.ZodObject<{
1668
+ add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1669
+ remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1670
+ }, "strict", z.ZodTypeAny, {
1671
+ add?: string[] | undefined;
1672
+ remove?: string[] | undefined;
1673
+ }, {
1674
+ add?: string[] | undefined;
1675
+ remove?: string[] | undefined;
1676
+ }>>;
1677
+ }, "strict", z.ZodTypeAny, {
1678
+ instructions?: string | null | undefined;
1679
+ synonyms?: {
1680
+ add?: string[] | undefined;
1681
+ remove?: string[] | undefined;
1682
+ } | undefined;
1683
+ examples?: {
1684
+ add?: string[] | undefined;
1685
+ remove?: string[] | undefined;
1686
+ } | undefined;
1687
+ }, {
1688
+ instructions?: string | null | undefined;
1689
+ synonyms?: {
1690
+ add?: string[] | undefined;
1691
+ remove?: string[] | undefined;
1692
+ } | undefined;
1693
+ examples?: {
1694
+ add?: string[] | undefined;
1695
+ remove?: string[] | undefined;
1696
+ } | undefined;
1697
+ }>>;
1698
+ }, "strict", z.ZodTypeAny, {
1699
+ op: "relationship.update";
1700
+ relationship: string;
1701
+ description?: string | null | undefined;
1702
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
1703
+ context?: {
1704
+ instructions?: string | null | undefined;
1705
+ synonyms?: {
1706
+ add?: string[] | undefined;
1707
+ remove?: string[] | undefined;
1708
+ } | undefined;
1709
+ examples?: {
1710
+ add?: string[] | undefined;
1711
+ remove?: string[] | undefined;
1712
+ } | undefined;
1713
+ } | undefined;
1714
+ isActive?: false | undefined;
1715
+ }, {
1716
+ op: "relationship.update";
1717
+ relationship: string;
1718
+ description?: string | null | undefined;
1719
+ defaultJoinType?: "INNER" | "LEFT" | undefined;
1720
+ context?: {
1721
+ instructions?: string | null | undefined;
1722
+ synonyms?: {
1723
+ add?: string[] | undefined;
1724
+ remove?: string[] | undefined;
1725
+ } | undefined;
1726
+ examples?: {
1727
+ add?: string[] | undefined;
1728
+ remove?: string[] | undefined;
1729
+ } | undefined;
1730
+ } | undefined;
1731
+ isActive?: false | undefined;
1732
+ }>]>;
1733
+ /** The ops that edit a domain's metadata: the one list callers route by (semaphor-app's MCP change tools, SE-D6). */
1734
+ export declare const DOMAIN_EDIT_CHANGE_OPS: readonly DomainEditChange['op'][];
1735
+ export type RelationshipAddChange = z.infer<typeof relationshipAddSchema>;
1736
+ export type DomainEditChange = z.infer<typeof domainEditChangeSchema>;
1737
+ export type ContextChange = z.infer<typeof contextChangeSchema>;
1738
+ export type DomainChange = RelationshipAddChange | DomainEditChange;