react-semaphor 0.1.537 → 0.1.539

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 (174) hide show
  1. package/dist/analytics-protocol/index.js +352 -341
  2. package/dist/assistant-context/index.js +10 -0
  3. package/dist/assistant-protocol/index.js +104 -0
  4. package/dist/brand-studio/index.js +35 -31
  5. package/dist/briefings/index.js +46 -45
  6. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +28 -0
  7. package/dist/chunks/add-to-dashboard-CxtTfISD.js +56 -0
  8. package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +979 -0
  9. package/dist/chunks/analytics-base-schemas-BFAoRlkU.js +472 -0
  10. package/dist/chunks/apply-dashboard-operations-C-iahGka.js +402 -0
  11. package/dist/chunks/assistant-chat-DgiSuFT4.js +8083 -0
  12. package/dist/chunks/availability-Bp5Gfu1I.js +44 -0
  13. package/dist/chunks/{bookmark-state-B-I9BDD0.js → bookmark-state-k7y5SNGf.js} +9 -9
  14. package/dist/chunks/{braces-8TRlDwDw.js → braces-o9UiRQes.js} +1 -1
  15. package/dist/chunks/calculated-field-identity-DcBS2NPP.js +2161 -0
  16. package/dist/chunks/calendar-day-equality-Bpl15IBo.js +487 -0
  17. package/dist/chunks/class-utils-Df1OVOT1.js +2315 -0
  18. package/dist/chunks/{field-dependencies-CpRUwr9J.js → common-types-CUf03Htv.js} +65 -58
  19. package/dist/chunks/context-HD9usB1P.js +349 -0
  20. package/dist/chunks/conversation-sQiWYUOb.js +16 -0
  21. package/dist/chunks/csv-utils-GUfKyT1J.js +56 -0
  22. package/dist/chunks/custom-visual-inputs-BrUOIwln.js +3288 -0
  23. package/dist/chunks/{dashboard-briefing-launcher-A2uVpHCp.js → dashboard-briefing-launcher-Bl3gCeBR.js} +580 -556
  24. package/dist/chunks/{dashboard-controls-DxTuVis_.js → dashboard-controls-0EX0HiJt.js} +683 -686
  25. package/dist/chunks/{common-types-g7yS12Cg.js → dashboard-filter-value-compatibility-D95O4nd7.js} +18 -24
  26. package/dist/chunks/dashboard-json-6X_2BDiL.js +69 -0
  27. package/dist/chunks/{dashboard-BPJo-Fnd.js → dashboard-y5BwcvzT.js} +1 -1
  28. package/dist/chunks/document-dashboard-inputs-BrYYlRVo.js +10678 -0
  29. package/dist/chunks/document-sheet-utils-C1eEldxs.js +1076 -0
  30. package/dist/chunks/{edit-dashboard-visual-ByV0OwSp.js → edit-dashboard-visual-Bzchfgga.js} +4744 -4746
  31. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +15 -0
  32. package/dist/chunks/filter-value-text-BhWugPWE.js +163 -0
  33. package/dist/chunks/index-CqMiAkay.js +3164 -0
  34. package/dist/chunks/index-CuHybtft.js +51 -0
  35. package/dist/chunks/layout-grid-Bgzth8vd.js +16 -0
  36. package/dist/chunks/{matrix-analytical-definition-CgBTD6H8.js → matrix-analytical-definition-bcprSe4u.js} +1 -1
  37. package/dist/chunks/{matrix-card-CAdizkUl.js → matrix-card-CJn1hB5V.js} +13 -12
  38. package/dist/chunks/matrix-definition-DQDI2okF.js +206 -0
  39. package/dist/chunks/{matrix-formatter-DJCk8Znf.js → matrix-formatter-DQ8avoIQ.js} +648 -457
  40. package/dist/chunks/matrix-member-presentation-BNPSDKBG.js +105 -0
  41. package/dist/chunks/{matrix-operation-contract-BKupLHXL.js → matrix-operation-contract-B8PBF1Gd.js} +134 -133
  42. package/dist/chunks/{metric-comparison-BKHyvnAy.js → metric-comparison-CojWeLqx.js} +1 -1
  43. package/dist/chunks/{palette-Cp1hqZtm.js → palette-D10o_yYX.js} +1 -1
  44. package/dist/chunks/pivot-header-presentation-MkcKnjn3.js +42 -0
  45. package/dist/chunks/{pivot-result-identity-Bs4tLtLo.js → pivot-result-identity-D6hhcRXi.js} +1 -1
  46. package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +804 -0
  47. package/dist/chunks/raw-temporal-D61lr48Y.js +1464 -0
  48. package/dist/chunks/{raw-temporal-contract-mLFS-9wk.js → raw-temporal-contract-C51YG48G.js} +1 -1
  49. package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +1808 -0
  50. package/dist/chunks/{report-runtime-context-CG_I0PPW.js → report-runtime-context-B984Nq1E.js} +8 -7
  51. package/dist/chunks/save-CfJpQQ68.js +21 -0
  52. package/dist/chunks/saved-dashboard-context-Dqve2jlB.js +566 -0
  53. package/dist/chunks/{selection-reducer-CiDEtmAq.js → selection-reducer-vKIb_jS6.js} +2 -2
  54. package/dist/chunks/{semaphor-ready-indicator-CHu1L-lo.js → semaphor-ready-indicator-ldcwmLoY.js} +65803 -62954
  55. package/dist/chunks/{shelf-drop-preview-context-i-H6DFyU.js → shelf-drop-preview-context-BWxunXTq.js} +199 -196
  56. package/dist/chunks/{source-entity-resolution-C-oNyYMp.js → source-entity-resolution-CVA1a85c.js} +8 -8
  57. package/dist/chunks/switch-CvItuC1Q.js +8199 -0
  58. package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-D8JF7zKz.js} +86 -71
  59. package/dist/chunks/{temporal-bucket-contract-D2OuaVZ7.js → temporal-bucket-contract-DaOajRC7.js} +1 -1
  60. package/dist/chunks/{token-types-DtSJOUjh.js → token-types-bxUxXDX2.js} +1 -1
  61. package/dist/chunks/{upload-CAIpsti1.js → upload-BFX7apKV.js} +1 -1
  62. package/dist/chunks/{use-create-flow-overlay-state-Bj63WwHc.js → use-create-flow-overlay-state-RHgzVfcz.js} +331 -339
  63. package/dist/chunks/{validators-DMSH81OM.js → validators-Ej1DdCXa.js} +1050 -1510
  64. package/dist/chunks/visual-choice-JiJ-_3bi.js +204 -0
  65. package/dist/chunks/x-4f5U2XwU.js +100 -0
  66. package/dist/chunks/{zoned-wall-clock-1qlWCE20.js → zoned-wall-clock-MulfA26h.js} +2 -2
  67. package/dist/dashboard/index.js +2 -2
  68. package/dist/dashboard-authoring/index.js +823 -661
  69. package/dist/data-app-sdk/index.js +32 -30
  70. package/dist/data-app-sdk-adapters/index.js +23 -22
  71. package/dist/data-app-sdk-validation/index.js +23 -22
  72. package/dist/format-utils/index.js +173 -168
  73. package/dist/index.js +267 -258
  74. package/dist/layouts/index.js +236 -24
  75. package/dist/report-runtime-context/index.js +2 -2
  76. package/dist/style.css +1 -1
  77. package/dist/surfboard/index.js +2 -2
  78. package/dist/types/assistant-context.d.ts +2 -0
  79. package/dist/types/assistant-protocol.d.ts +2 -0
  80. package/dist/types/components/assistant/assistant-entry-points.d.ts +18 -0
  81. package/dist/types/components/assistant/assistant-provider.d.ts +19 -0
  82. package/dist/types/components/assistant/assistant-store.d.ts +52 -0
  83. package/dist/types/components/assistant/use-assistant.d.ts +38 -0
  84. package/dist/types/components/index.d.ts +5 -1
  85. package/dist/types/components/surfboard/filter/types.d.ts +5 -2
  86. package/dist/types/index.js +50 -51
  87. package/dist/types/lib/api/invalidate-token.d.ts +7 -0
  88. package/dist/types/lib/charts/cartesian-fields.d.ts +64 -0
  89. package/dist/types/lib/charts/types.d.ts +7 -0
  90. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +14 -2
  91. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +5 -6
  92. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +8 -3
  93. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +11 -6
  94. package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +7 -0
  95. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +79 -0
  96. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +3 -2
  97. package/dist/types/lib/document/document-table-data-policy.d.ts +15 -0
  98. package/dist/types/lib/filter-values/filter-mode.d.ts +22 -0
  99. package/dist/types/lib/hooks/use-calendar-context.d.ts +5 -0
  100. package/dist/types/lib/hooks/use-filter-option-browse.d.ts +5 -0
  101. package/dist/types/lib/hooks/use-text-filter.d.ts +9 -0
  102. package/dist/types/lib/print/print-inputs.d.ts +4 -2
  103. package/dist/types/lib/query-context/build-card-query-context.d.ts +12 -4
  104. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +93 -0
  105. package/dist/types/lib/query-context/card-server-request.d.ts +72 -0
  106. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +7 -0
  107. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +56 -0
  108. package/dist/types/lib/query-context/document-section-card-query.d.ts +45 -0
  109. package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +17 -2
  110. package/dist/types/lib/stores/dashboard-store.d.ts +34 -11
  111. package/dist/types/lib/stores/editor-store.d.ts +4 -2
  112. package/dist/types/lib/types/token-types.d.ts +11 -0
  113. package/dist/types/lib/utils/card-type-change.d.ts +30 -0
  114. package/dist/types/lib/utils/comparison-window-caption.d.ts +12 -0
  115. package/dist/types/lib/utils/filter-default-value-utils.d.ts +13 -2
  116. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +74 -0
  117. package/dist/types/shared/analytics-protocol/contracts.d.ts +3 -0
  118. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +43 -0
  119. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  120. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +1 -1
  121. package/dist/types/shared/analytics-protocol/visual-choice.d.ts +75 -0
  122. package/dist/types/shared/assistant-context/index.d.ts +9 -0
  123. package/dist/types/shared/assistant-context/project-context.d.ts +55 -0
  124. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +130 -0
  125. package/dist/types/shared/assistant-protocol/add-to-dashboard.d.ts +17 -0
  126. package/dist/types/shared/assistant-protocol/artifact.d.ts +63 -0
  127. package/dist/types/shared/assistant-protocol/availability.d.ts +39 -0
  128. package/dist/types/shared/assistant-protocol/context.d.ts +952 -0
  129. package/dist/types/shared/assistant-protocol/conversation.d.ts +38 -0
  130. package/dist/types/shared/assistant-protocol/index.d.ts +16 -0
  131. package/dist/types/shared/assistant-protocol/limits.d.ts +53 -0
  132. package/dist/types/shared/assistant-protocol/parts.d.ts +140 -0
  133. package/dist/types/shared/assistant-protocol/request.d.ts +77 -0
  134. package/dist/types/shared/assistant-protocol/sources.d.ts +27 -0
  135. package/dist/types/shared/assistant-protocol/token-config.d.ts +32 -0
  136. package/dist/types/shared/assistant-protocol/transcript.d.ts +40 -0
  137. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +112 -0
  138. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +1794 -0
  139. package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
  140. package/dist/types/shared/dashboard-authoring/new-card.d.ts +10 -0
  141. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +40 -0
  142. package/dist/types/shared/dashboard-authoring/resolved-primary-date-field-validation.d.ts +16 -0
  143. package/dist/types/shared/format-utils/filter-detail.d.ts +70 -0
  144. package/dist/types/shared/format-utils/filter-value-text.d.ts +15 -0
  145. package/dist/types/shared/format-utils/index.d.ts +3 -0
  146. package/dist/types/shared/format-utils/raw-temporal.d.ts +7 -0
  147. package/dist/types/shared/format-utils/temporal-bucket.d.ts +7 -0
  148. package/dist/types/shared/layouts/frame-layouts.d.ts +23 -0
  149. package/dist/types/shared/layouts/index.d.ts +1 -0
  150. package/package.json +12 -2
  151. package/dist/chunks/calculated-field-identity-BptYhyOP.js +0 -1326
  152. package/dist/chunks/calendar-day-equality-BRjN1S9h.js +0 -383
  153. package/dist/chunks/card-config-utils-BOM1dxCk.js +0 -1150
  154. package/dist/chunks/constants-DNWVy8Y3.js +0 -9
  155. package/dist/chunks/dashboard-json-B1dEQu98.js +0 -65
  156. package/dist/chunks/field-aggregations-CoLzYHeL.js +0 -1229
  157. package/dist/chunks/index-DTcTAGGM.js +0 -4101
  158. package/dist/chunks/matrix-continuation-C4sRcjZU.js +0 -72
  159. package/dist/chunks/matrix-control-sources-DTqcA2_L.js +0 -636
  160. package/dist/chunks/matrix-definition-D9iShKZI.js +0 -87
  161. package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +0 -209
  162. package/dist/chunks/numeric-presentation-CWu3gunq.js +0 -537
  163. package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +0 -753
  164. package/dist/chunks/pivot-result-lifecycle-DQz_gjGu.js +0 -789
  165. package/dist/chunks/raw-temporal-iMXRK-Qz.js +0 -930
  166. package/dist/chunks/report-preferences-dialog-DXPjteCU.js +0 -1623
  167. package/dist/chunks/save-kO6cIaob.js +0 -34
  168. package/dist/chunks/semantic-format-DiqYeKwU.js +0 -192
  169. package/dist/chunks/switch-DO8a0EfJ.js +0 -25004
  170. package/dist/chunks/temporal-input-presentation-BD7YNUzu.js +0 -195
  171. package/dist/chunks/x-CXDkqdur.js +0 -149
  172. package/dist/types/lib/class-utils.d.ts +0 -2
  173. package/dist/types/lib/document/document-input-runtime.d.ts +0 -26
  174. package/dist/types/lib/utils.d.ts +0 -51
@@ -0,0 +1,1794 @@
1
+ import { z } from 'zod';
2
+ import { ControlBinding, ControlDefinition } from '../../lib/types/common-types.js';
3
+ /**
4
+ * The execution contract of a card's controls: the definitions, bindings and
5
+ * values a query request carries, checked before the query runs. One owner
6
+ * for every reader: the query route and executor, CSV export, Matrix, the
7
+ * analytics agent's card replay (analytics agent Plan 1, ledger P3-78, P3-79).
8
+ * Typed by the package's own `ControlDefinition` and `ControlBinding`, so a
9
+ * binding the package authors is a binding the server accepts.
10
+ */
11
+ /** A binding that only changes how values are shown: the control picks a currency. */
12
+ export declare function isPresentationCurrencyBinding(binding: ControlBinding): binding is Extract<ControlBinding, {
13
+ target: 'presentation_currency';
14
+ }>;
15
+ /** A binding that changes the query's structure (fields, metrics, aggregation, grain). */
16
+ export declare function isStructuralControlBinding(binding: ControlBinding): binding is Exclude<ControlBinding, {
17
+ target: 'sql_param' | 'presentation_currency';
18
+ }>;
19
+ export declare function isValidControlOptionPresentation(value: unknown): boolean;
20
+ export declare const controlDefinitionExecutionSchema: z.ZodEffects<z.ZodObject<{
21
+ id: z.ZodString;
22
+ label: z.ZodString;
23
+ scope: z.ZodEnum<["dashboard", "card"]>;
24
+ type: z.ZodEnum<["enum", "multi_enum", "text", "number", "boolean", "date", "field_selector", "metric_selector", "aggregation_selector", "grain_selector"]>;
25
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
26
+ kind: z.ZodLiteral<"manual">;
27
+ options: z.ZodArray<z.ZodObject<{
28
+ value: z.ZodString;
29
+ label: z.ZodString;
30
+ presentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
31
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
32
+ format: z.ZodOptional<z.ZodType<import('../analytics-protocol/index.js').TemporalBucketFormat, z.ZodTypeDef, import('../analytics-protocol/index.js').TemporalBucketFormat>>;
33
+ dateFormat: z.ZodOptional<z.ZodString>;
34
+ customFormat: z.ZodOptional<z.ZodString>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
37
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
38
+ dateFormat?: string | undefined;
39
+ customFormat?: string | undefined;
40
+ }, {
41
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
42
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
43
+ dateFormat?: string | undefined;
44
+ customFormat?: string | undefined;
45
+ }>, {
46
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
47
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
48
+ dateFormat?: string | undefined;
49
+ customFormat?: string | undefined;
50
+ }, {
51
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
52
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
53
+ dateFormat?: string | undefined;
54
+ customFormat?: string | undefined;
55
+ }>>;
56
+ }, "strict", z.ZodTypeAny, {
57
+ value: string;
58
+ label: string;
59
+ presentation?: {
60
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
61
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
62
+ dateFormat?: string | undefined;
63
+ customFormat?: string | undefined;
64
+ } | undefined;
65
+ }, {
66
+ value: string;
67
+ label: string;
68
+ presentation?: {
69
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
70
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
71
+ dateFormat?: string | undefined;
72
+ customFormat?: string | undefined;
73
+ } | undefined;
74
+ }>, "many">;
75
+ }, "strict", z.ZodTypeAny, {
76
+ options: {
77
+ value: string;
78
+ label: string;
79
+ presentation?: {
80
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
81
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
82
+ dateFormat?: string | undefined;
83
+ customFormat?: string | undefined;
84
+ } | undefined;
85
+ }[];
86
+ kind: "manual";
87
+ }, {
88
+ options: {
89
+ value: string;
90
+ label: string;
91
+ presentation?: {
92
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
93
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
94
+ dateFormat?: string | undefined;
95
+ customFormat?: string | undefined;
96
+ } | undefined;
97
+ }[];
98
+ kind: "manual";
99
+ }>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"dataset_values">;
101
+ fieldId: z.ZodString;
102
+ connectionId: z.ZodOptional<z.ZodString>;
103
+ }, "strict", z.ZodTypeAny, {
104
+ kind: "dataset_values";
105
+ fieldId: string;
106
+ connectionId?: string | undefined;
107
+ }, {
108
+ kind: "dataset_values";
109
+ fieldId: string;
110
+ connectionId?: string | undefined;
111
+ }>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"field_allowlist">;
113
+ fieldIds: z.ZodArray<z.ZodString, "many">;
114
+ }, "strict", z.ZodTypeAny, {
115
+ kind: "field_allowlist";
116
+ fieldIds: string[];
117
+ }, {
118
+ kind: "field_allowlist";
119
+ fieldIds: string[];
120
+ }>, z.ZodObject<{
121
+ kind: z.ZodLiteral<"metric_allowlist">;
122
+ metricIds: z.ZodArray<z.ZodString, "many">;
123
+ }, "strict", z.ZodTypeAny, {
124
+ kind: "metric_allowlist";
125
+ metricIds: string[];
126
+ }, {
127
+ kind: "metric_allowlist";
128
+ metricIds: string[];
129
+ }>, z.ZodObject<{
130
+ kind: z.ZodLiteral<"sql_query">;
131
+ connectionId: z.ZodString;
132
+ sql: z.ZodString;
133
+ valueColumn: z.ZodString;
134
+ labelColumn: z.ZodOptional<z.ZodString>;
135
+ }, "strict", z.ZodTypeAny, {
136
+ kind: "sql_query";
137
+ connectionId: string;
138
+ sql: string;
139
+ valueColumn: string;
140
+ labelColumn?: string | undefined;
141
+ }, {
142
+ kind: "sql_query";
143
+ connectionId: string;
144
+ sql: string;
145
+ valueColumn: string;
146
+ labelColumn?: string | undefined;
147
+ }>]>;
148
+ initialValueStrategy: z.ZodEnum<["saved_default", "builtin", "embed_required", "schedule_snapshot"]>;
149
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
150
+ requiredAtExecution: z.ZodBoolean;
151
+ hidden: z.ZodOptional<z.ZodBoolean>;
152
+ locked: z.ZodOptional<z.ZodBoolean>;
153
+ helpText: z.ZodOptional<z.ZodString>;
154
+ placement: z.ZodOptional<z.ZodEnum<["toolbar", "card_header", "advanced"]>>;
155
+ showLabel: z.ZodOptional<z.ZodBoolean>;
156
+ toolbarWidth: z.ZodOptional<z.ZodNumber>;
157
+ }, "strict", z.ZodTypeAny, {
158
+ type: "number" | "boolean" | "date" | "text" | "enum" | "multi_enum" | "field_selector" | "metric_selector" | "aggregation_selector" | "grain_selector";
159
+ id: string;
160
+ label: string;
161
+ source: {
162
+ options: {
163
+ value: string;
164
+ label: string;
165
+ presentation?: {
166
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
167
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
168
+ dateFormat?: string | undefined;
169
+ customFormat?: string | undefined;
170
+ } | undefined;
171
+ }[];
172
+ kind: "manual";
173
+ } | {
174
+ kind: "dataset_values";
175
+ fieldId: string;
176
+ connectionId?: string | undefined;
177
+ } | {
178
+ kind: "field_allowlist";
179
+ fieldIds: string[];
180
+ } | {
181
+ kind: "metric_allowlist";
182
+ metricIds: string[];
183
+ } | {
184
+ kind: "sql_query";
185
+ connectionId: string;
186
+ sql: string;
187
+ valueColumn: string;
188
+ labelColumn?: string | undefined;
189
+ };
190
+ scope: "card" | "dashboard";
191
+ requiredAtExecution: boolean;
192
+ initialValueStrategy: "saved_default" | "builtin" | "embed_required" | "schedule_snapshot";
193
+ defaultValue?: unknown;
194
+ showLabel?: boolean | undefined;
195
+ toolbarWidth?: number | undefined;
196
+ placement?: "toolbar" | "card_header" | "advanced" | undefined;
197
+ hidden?: boolean | undefined;
198
+ locked?: boolean | undefined;
199
+ helpText?: string | undefined;
200
+ }, {
201
+ type: "number" | "boolean" | "date" | "text" | "enum" | "multi_enum" | "field_selector" | "metric_selector" | "aggregation_selector" | "grain_selector";
202
+ id: string;
203
+ label: string;
204
+ source: {
205
+ options: {
206
+ value: string;
207
+ label: string;
208
+ presentation?: {
209
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
210
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
211
+ dateFormat?: string | undefined;
212
+ customFormat?: string | undefined;
213
+ } | undefined;
214
+ }[];
215
+ kind: "manual";
216
+ } | {
217
+ kind: "dataset_values";
218
+ fieldId: string;
219
+ connectionId?: string | undefined;
220
+ } | {
221
+ kind: "field_allowlist";
222
+ fieldIds: string[];
223
+ } | {
224
+ kind: "metric_allowlist";
225
+ metricIds: string[];
226
+ } | {
227
+ kind: "sql_query";
228
+ connectionId: string;
229
+ sql: string;
230
+ valueColumn: string;
231
+ labelColumn?: string | undefined;
232
+ };
233
+ scope: "card" | "dashboard";
234
+ requiredAtExecution: boolean;
235
+ initialValueStrategy: "saved_default" | "builtin" | "embed_required" | "schedule_snapshot";
236
+ defaultValue?: unknown;
237
+ showLabel?: boolean | undefined;
238
+ toolbarWidth?: number | undefined;
239
+ placement?: "toolbar" | "card_header" | "advanced" | undefined;
240
+ hidden?: boolean | undefined;
241
+ locked?: boolean | undefined;
242
+ helpText?: string | undefined;
243
+ }>, {
244
+ type: "number" | "boolean" | "date" | "text" | "enum" | "multi_enum" | "field_selector" | "metric_selector" | "aggregation_selector" | "grain_selector";
245
+ id: string;
246
+ label: string;
247
+ source: {
248
+ options: {
249
+ value: string;
250
+ label: string;
251
+ presentation?: {
252
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
253
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
254
+ dateFormat?: string | undefined;
255
+ customFormat?: string | undefined;
256
+ } | undefined;
257
+ }[];
258
+ kind: "manual";
259
+ } | {
260
+ kind: "dataset_values";
261
+ fieldId: string;
262
+ connectionId?: string | undefined;
263
+ } | {
264
+ kind: "field_allowlist";
265
+ fieldIds: string[];
266
+ } | {
267
+ kind: "metric_allowlist";
268
+ metricIds: string[];
269
+ } | {
270
+ kind: "sql_query";
271
+ connectionId: string;
272
+ sql: string;
273
+ valueColumn: string;
274
+ labelColumn?: string | undefined;
275
+ };
276
+ scope: "card" | "dashboard";
277
+ requiredAtExecution: boolean;
278
+ initialValueStrategy: "saved_default" | "builtin" | "embed_required" | "schedule_snapshot";
279
+ defaultValue?: unknown;
280
+ showLabel?: boolean | undefined;
281
+ toolbarWidth?: number | undefined;
282
+ placement?: "toolbar" | "card_header" | "advanced" | undefined;
283
+ hidden?: boolean | undefined;
284
+ locked?: boolean | undefined;
285
+ helpText?: string | undefined;
286
+ }, {
287
+ type: "number" | "boolean" | "date" | "text" | "enum" | "multi_enum" | "field_selector" | "metric_selector" | "aggregation_selector" | "grain_selector";
288
+ id: string;
289
+ label: string;
290
+ source: {
291
+ options: {
292
+ value: string;
293
+ label: string;
294
+ presentation?: {
295
+ granularity?: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined;
296
+ format?: import('../analytics-protocol/index.js').TemporalBucketFormat | undefined;
297
+ dateFormat?: string | undefined;
298
+ customFormat?: string | undefined;
299
+ } | undefined;
300
+ }[];
301
+ kind: "manual";
302
+ } | {
303
+ kind: "dataset_values";
304
+ fieldId: string;
305
+ connectionId?: string | undefined;
306
+ } | {
307
+ kind: "field_allowlist";
308
+ fieldIds: string[];
309
+ } | {
310
+ kind: "metric_allowlist";
311
+ metricIds: string[];
312
+ } | {
313
+ kind: "sql_query";
314
+ connectionId: string;
315
+ sql: string;
316
+ valueColumn: string;
317
+ labelColumn?: string | undefined;
318
+ };
319
+ scope: "card" | "dashboard";
320
+ requiredAtExecution: boolean;
321
+ initialValueStrategy: "saved_default" | "builtin" | "embed_required" | "schedule_snapshot";
322
+ defaultValue?: unknown;
323
+ showLabel?: boolean | undefined;
324
+ toolbarWidth?: number | undefined;
325
+ placement?: "toolbar" | "card_header" | "advanced" | undefined;
326
+ hidden?: boolean | undefined;
327
+ locked?: boolean | undefined;
328
+ helpText?: string | undefined;
329
+ }>;
330
+ export declare const controlBindingExecutionSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
331
+ controlId: z.ZodString;
332
+ target: z.ZodLiteral<"sql_param">;
333
+ paramId: z.ZodString;
334
+ }, "strict", z.ZodTypeAny, {
335
+ target: "sql_param";
336
+ paramId: string;
337
+ controlId: string;
338
+ }, {
339
+ target: "sql_param";
340
+ paramId: string;
341
+ controlId: string;
342
+ }>, z.ZodObject<{
343
+ controlId: z.ZodString;
344
+ target: z.ZodLiteral<"config_metric_selector">;
345
+ matrixTargetId: z.ZodOptional<z.ZodString>;
346
+ mapping: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
347
+ kind: z.ZodLiteral<"matrix_instance">;
348
+ id: z.ZodString;
349
+ }, "strict", z.ZodTypeAny, {
350
+ id: string;
351
+ kind: "matrix_instance";
352
+ }, {
353
+ id: string;
354
+ kind: "matrix_instance";
355
+ }>, z.ZodEffects<z.ZodObject<{
356
+ id: z.ZodString;
357
+ name: z.ZodString;
358
+ label: z.ZodString;
359
+ alias: z.ZodOptional<z.ZodString>;
360
+ qualifiedFieldName: z.ZodString;
361
+ dataType: z.ZodString;
362
+ description: z.ZodOptional<z.ZodString>;
363
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
364
+ dateFormat: z.ZodOptional<z.ZodString>;
365
+ customFormat: z.ZodOptional<z.ZodString>;
366
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
367
+ entityId: z.ZodString;
368
+ entityName: z.ZodString;
369
+ entityType: z.ZodString;
370
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
371
+ kind: z.ZodLiteral<"semantic">;
372
+ datasetId: z.ZodOptional<z.ZodString>;
373
+ label: z.ZodOptional<z.ZodString>;
374
+ connectionId: z.ZodOptional<z.ZodString>;
375
+ } & {
376
+ domainId: z.ZodEffects<z.ZodString, string, string>;
377
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
378
+ }, "strict", z.ZodTypeAny, {
379
+ kind: "semantic";
380
+ domainId: string;
381
+ datasetName: string;
382
+ datasetId?: string | undefined;
383
+ label?: string | undefined;
384
+ connectionId?: string | undefined;
385
+ }, {
386
+ kind: "semantic";
387
+ domainId: string;
388
+ datasetName: string;
389
+ datasetId?: string | undefined;
390
+ label?: string | undefined;
391
+ connectionId?: string | undefined;
392
+ }>, z.ZodObject<{
393
+ kind: z.ZodLiteral<"physical">;
394
+ connectionType: z.ZodOptional<z.ZodString>;
395
+ databaseName: z.ZodOptional<z.ZodString>;
396
+ schemaName: z.ZodOptional<z.ZodString>;
397
+ label: z.ZodOptional<z.ZodString>;
398
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
399
+ } & {
400
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
401
+ tableName: z.ZodEffects<z.ZodString, string, string>;
402
+ }, "strict", z.ZodTypeAny, {
403
+ kind: "physical";
404
+ connectionId: string;
405
+ tableName: string;
406
+ label?: string | undefined;
407
+ connectionType?: string | undefined;
408
+ databaseName?: string | undefined;
409
+ schemaName?: string | undefined;
410
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
411
+ }, {
412
+ kind: "physical";
413
+ connectionId: string;
414
+ tableName: string;
415
+ label?: string | undefined;
416
+ connectionType?: string | undefined;
417
+ databaseName?: string | undefined;
418
+ schemaName?: string | undefined;
419
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
420
+ }>]>>;
421
+ expression: z.ZodOptional<z.ZodString>;
422
+ format: z.ZodOptional<z.ZodUnknown>;
423
+ } & {
424
+ role: z.ZodLiteral<"metric">;
425
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
426
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
427
+ id: z.ZodString;
428
+ name: z.ZodString;
429
+ label: z.ZodString;
430
+ alias: z.ZodOptional<z.ZodString>;
431
+ qualifiedFieldName: z.ZodString;
432
+ dataType: z.ZodString;
433
+ description: z.ZodOptional<z.ZodString>;
434
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
435
+ dateFormat: z.ZodOptional<z.ZodString>;
436
+ customFormat: z.ZodOptional<z.ZodString>;
437
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
438
+ entityId: z.ZodString;
439
+ entityName: z.ZodString;
440
+ entityType: z.ZodString;
441
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
442
+ kind: z.ZodLiteral<"semantic">;
443
+ datasetId: z.ZodOptional<z.ZodString>;
444
+ label: z.ZodOptional<z.ZodString>;
445
+ connectionId: z.ZodOptional<z.ZodString>;
446
+ } & {
447
+ domainId: z.ZodEffects<z.ZodString, string, string>;
448
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
449
+ }, "strict", z.ZodTypeAny, {
450
+ kind: "semantic";
451
+ domainId: string;
452
+ datasetName: string;
453
+ datasetId?: string | undefined;
454
+ label?: string | undefined;
455
+ connectionId?: string | undefined;
456
+ }, {
457
+ kind: "semantic";
458
+ domainId: string;
459
+ datasetName: string;
460
+ datasetId?: string | undefined;
461
+ label?: string | undefined;
462
+ connectionId?: string | undefined;
463
+ }>, z.ZodObject<{
464
+ kind: z.ZodLiteral<"physical">;
465
+ connectionType: z.ZodOptional<z.ZodString>;
466
+ databaseName: z.ZodOptional<z.ZodString>;
467
+ schemaName: z.ZodOptional<z.ZodString>;
468
+ label: z.ZodOptional<z.ZodString>;
469
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
470
+ } & {
471
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
472
+ tableName: z.ZodEffects<z.ZodString, string, string>;
473
+ }, "strict", z.ZodTypeAny, {
474
+ kind: "physical";
475
+ connectionId: string;
476
+ tableName: string;
477
+ label?: string | undefined;
478
+ connectionType?: string | undefined;
479
+ databaseName?: string | undefined;
480
+ schemaName?: string | undefined;
481
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
482
+ }, {
483
+ kind: "physical";
484
+ connectionId: string;
485
+ tableName: string;
486
+ label?: string | undefined;
487
+ connectionType?: string | undefined;
488
+ databaseName?: string | undefined;
489
+ schemaName?: string | undefined;
490
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
491
+ }>]>>;
492
+ expression: z.ZodOptional<z.ZodString>;
493
+ format: z.ZodOptional<z.ZodUnknown>;
494
+ } & {
495
+ role: z.ZodLiteral<"metric">;
496
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
497
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
498
+ id: z.ZodString;
499
+ name: z.ZodString;
500
+ label: z.ZodString;
501
+ alias: z.ZodOptional<z.ZodString>;
502
+ qualifiedFieldName: z.ZodString;
503
+ dataType: z.ZodString;
504
+ description: z.ZodOptional<z.ZodString>;
505
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
506
+ dateFormat: z.ZodOptional<z.ZodString>;
507
+ customFormat: z.ZodOptional<z.ZodString>;
508
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
509
+ entityId: z.ZodString;
510
+ entityName: z.ZodString;
511
+ entityType: z.ZodString;
512
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
513
+ kind: z.ZodLiteral<"semantic">;
514
+ datasetId: z.ZodOptional<z.ZodString>;
515
+ label: z.ZodOptional<z.ZodString>;
516
+ connectionId: z.ZodOptional<z.ZodString>;
517
+ } & {
518
+ domainId: z.ZodEffects<z.ZodString, string, string>;
519
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
520
+ }, "strict", z.ZodTypeAny, {
521
+ kind: "semantic";
522
+ domainId: string;
523
+ datasetName: string;
524
+ datasetId?: string | undefined;
525
+ label?: string | undefined;
526
+ connectionId?: string | undefined;
527
+ }, {
528
+ kind: "semantic";
529
+ domainId: string;
530
+ datasetName: string;
531
+ datasetId?: string | undefined;
532
+ label?: string | undefined;
533
+ connectionId?: string | undefined;
534
+ }>, z.ZodObject<{
535
+ kind: z.ZodLiteral<"physical">;
536
+ connectionType: z.ZodOptional<z.ZodString>;
537
+ databaseName: z.ZodOptional<z.ZodString>;
538
+ schemaName: z.ZodOptional<z.ZodString>;
539
+ label: z.ZodOptional<z.ZodString>;
540
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
541
+ } & {
542
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
543
+ tableName: z.ZodEffects<z.ZodString, string, string>;
544
+ }, "strict", z.ZodTypeAny, {
545
+ kind: "physical";
546
+ connectionId: string;
547
+ tableName: string;
548
+ label?: string | undefined;
549
+ connectionType?: string | undefined;
550
+ databaseName?: string | undefined;
551
+ schemaName?: string | undefined;
552
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
553
+ }, {
554
+ kind: "physical";
555
+ connectionId: string;
556
+ tableName: string;
557
+ label?: string | undefined;
558
+ connectionType?: string | undefined;
559
+ databaseName?: string | undefined;
560
+ schemaName?: string | undefined;
561
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
562
+ }>]>>;
563
+ expression: z.ZodOptional<z.ZodString>;
564
+ format: z.ZodOptional<z.ZodUnknown>;
565
+ } & {
566
+ role: z.ZodLiteral<"metric">;
567
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
568
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
569
+ id: z.ZodString;
570
+ name: z.ZodString;
571
+ label: z.ZodString;
572
+ alias: z.ZodOptional<z.ZodString>;
573
+ qualifiedFieldName: z.ZodString;
574
+ dataType: z.ZodString;
575
+ description: z.ZodOptional<z.ZodString>;
576
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
577
+ dateFormat: z.ZodOptional<z.ZodString>;
578
+ customFormat: z.ZodOptional<z.ZodString>;
579
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
580
+ entityId: z.ZodString;
581
+ entityName: z.ZodString;
582
+ entityType: z.ZodString;
583
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
584
+ kind: z.ZodLiteral<"semantic">;
585
+ datasetId: z.ZodOptional<z.ZodString>;
586
+ label: z.ZodOptional<z.ZodString>;
587
+ connectionId: z.ZodOptional<z.ZodString>;
588
+ } & {
589
+ domainId: z.ZodEffects<z.ZodString, string, string>;
590
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
591
+ }, "strict", z.ZodTypeAny, {
592
+ kind: "semantic";
593
+ domainId: string;
594
+ datasetName: string;
595
+ datasetId?: string | undefined;
596
+ label?: string | undefined;
597
+ connectionId?: string | undefined;
598
+ }, {
599
+ kind: "semantic";
600
+ domainId: string;
601
+ datasetName: string;
602
+ datasetId?: string | undefined;
603
+ label?: string | undefined;
604
+ connectionId?: string | undefined;
605
+ }>, z.ZodObject<{
606
+ kind: z.ZodLiteral<"physical">;
607
+ connectionType: z.ZodOptional<z.ZodString>;
608
+ databaseName: z.ZodOptional<z.ZodString>;
609
+ schemaName: z.ZodOptional<z.ZodString>;
610
+ label: z.ZodOptional<z.ZodString>;
611
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
612
+ } & {
613
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
614
+ tableName: z.ZodEffects<z.ZodString, string, string>;
615
+ }, "strict", z.ZodTypeAny, {
616
+ kind: "physical";
617
+ connectionId: string;
618
+ tableName: string;
619
+ label?: string | undefined;
620
+ connectionType?: string | undefined;
621
+ databaseName?: string | undefined;
622
+ schemaName?: string | undefined;
623
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
624
+ }, {
625
+ kind: "physical";
626
+ connectionId: string;
627
+ tableName: string;
628
+ label?: string | undefined;
629
+ connectionType?: string | undefined;
630
+ databaseName?: string | undefined;
631
+ schemaName?: string | undefined;
632
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
633
+ }>]>>;
634
+ expression: z.ZodOptional<z.ZodString>;
635
+ format: z.ZodOptional<z.ZodUnknown>;
636
+ } & {
637
+ role: z.ZodLiteral<"metric">;
638
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
639
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
640
+ id: z.ZodString;
641
+ name: z.ZodString;
642
+ label: z.ZodString;
643
+ alias: z.ZodOptional<z.ZodString>;
644
+ qualifiedFieldName: z.ZodString;
645
+ dataType: z.ZodString;
646
+ description: z.ZodOptional<z.ZodString>;
647
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
648
+ dateFormat: z.ZodOptional<z.ZodString>;
649
+ customFormat: z.ZodOptional<z.ZodString>;
650
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
651
+ entityId: z.ZodString;
652
+ entityName: z.ZodString;
653
+ entityType: z.ZodString;
654
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
655
+ kind: z.ZodLiteral<"semantic">;
656
+ datasetId: z.ZodOptional<z.ZodString>;
657
+ label: z.ZodOptional<z.ZodString>;
658
+ connectionId: z.ZodOptional<z.ZodString>;
659
+ } & {
660
+ domainId: z.ZodEffects<z.ZodString, string, string>;
661
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
662
+ }, "strict", z.ZodTypeAny, {
663
+ kind: "semantic";
664
+ domainId: string;
665
+ datasetName: string;
666
+ datasetId?: string | undefined;
667
+ label?: string | undefined;
668
+ connectionId?: string | undefined;
669
+ }, {
670
+ kind: "semantic";
671
+ domainId: string;
672
+ datasetName: string;
673
+ datasetId?: string | undefined;
674
+ label?: string | undefined;
675
+ connectionId?: string | undefined;
676
+ }>, z.ZodObject<{
677
+ kind: z.ZodLiteral<"physical">;
678
+ connectionType: z.ZodOptional<z.ZodString>;
679
+ databaseName: z.ZodOptional<z.ZodString>;
680
+ schemaName: z.ZodOptional<z.ZodString>;
681
+ label: z.ZodOptional<z.ZodString>;
682
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
683
+ } & {
684
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
685
+ tableName: z.ZodEffects<z.ZodString, string, string>;
686
+ }, "strict", z.ZodTypeAny, {
687
+ kind: "physical";
688
+ connectionId: string;
689
+ tableName: string;
690
+ label?: string | undefined;
691
+ connectionType?: string | undefined;
692
+ databaseName?: string | undefined;
693
+ schemaName?: string | undefined;
694
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
695
+ }, {
696
+ kind: "physical";
697
+ connectionId: string;
698
+ tableName: string;
699
+ label?: string | undefined;
700
+ connectionType?: string | undefined;
701
+ databaseName?: string | undefined;
702
+ schemaName?: string | undefined;
703
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
704
+ }>]>>;
705
+ expression: z.ZodOptional<z.ZodString>;
706
+ format: z.ZodOptional<z.ZodUnknown>;
707
+ } & {
708
+ role: z.ZodLiteral<"metric">;
709
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
710
+ }, z.ZodTypeAny, "passthrough">>]>>, Record<string, z.objectOutputType<{
711
+ id: z.ZodString;
712
+ name: z.ZodString;
713
+ label: z.ZodString;
714
+ alias: z.ZodOptional<z.ZodString>;
715
+ qualifiedFieldName: z.ZodString;
716
+ dataType: z.ZodString;
717
+ description: z.ZodOptional<z.ZodString>;
718
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
719
+ dateFormat: z.ZodOptional<z.ZodString>;
720
+ customFormat: z.ZodOptional<z.ZodString>;
721
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
722
+ entityId: z.ZodString;
723
+ entityName: z.ZodString;
724
+ entityType: z.ZodString;
725
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
726
+ kind: z.ZodLiteral<"semantic">;
727
+ datasetId: z.ZodOptional<z.ZodString>;
728
+ label: z.ZodOptional<z.ZodString>;
729
+ connectionId: z.ZodOptional<z.ZodString>;
730
+ } & {
731
+ domainId: z.ZodEffects<z.ZodString, string, string>;
732
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
733
+ }, "strict", z.ZodTypeAny, {
734
+ kind: "semantic";
735
+ domainId: string;
736
+ datasetName: string;
737
+ datasetId?: string | undefined;
738
+ label?: string | undefined;
739
+ connectionId?: string | undefined;
740
+ }, {
741
+ kind: "semantic";
742
+ domainId: string;
743
+ datasetName: string;
744
+ datasetId?: string | undefined;
745
+ label?: string | undefined;
746
+ connectionId?: string | undefined;
747
+ }>, z.ZodObject<{
748
+ kind: z.ZodLiteral<"physical">;
749
+ connectionType: z.ZodOptional<z.ZodString>;
750
+ databaseName: z.ZodOptional<z.ZodString>;
751
+ schemaName: z.ZodOptional<z.ZodString>;
752
+ label: z.ZodOptional<z.ZodString>;
753
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
754
+ } & {
755
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
756
+ tableName: z.ZodEffects<z.ZodString, string, string>;
757
+ }, "strict", z.ZodTypeAny, {
758
+ kind: "physical";
759
+ connectionId: string;
760
+ tableName: string;
761
+ label?: string | undefined;
762
+ connectionType?: string | undefined;
763
+ databaseName?: string | undefined;
764
+ schemaName?: string | undefined;
765
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
766
+ }, {
767
+ kind: "physical";
768
+ connectionId: string;
769
+ tableName: string;
770
+ label?: string | undefined;
771
+ connectionType?: string | undefined;
772
+ databaseName?: string | undefined;
773
+ schemaName?: string | undefined;
774
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
775
+ }>]>>;
776
+ expression: z.ZodOptional<z.ZodString>;
777
+ format: z.ZodOptional<z.ZodUnknown>;
778
+ } & {
779
+ role: z.ZodLiteral<"metric">;
780
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
781
+ }, z.ZodTypeAny, "passthrough"> | {
782
+ id: string;
783
+ kind: "matrix_instance";
784
+ }>, Record<string, z.objectInputType<{
785
+ id: z.ZodString;
786
+ name: z.ZodString;
787
+ label: z.ZodString;
788
+ alias: z.ZodOptional<z.ZodString>;
789
+ qualifiedFieldName: z.ZodString;
790
+ dataType: z.ZodString;
791
+ description: z.ZodOptional<z.ZodString>;
792
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
793
+ dateFormat: z.ZodOptional<z.ZodString>;
794
+ customFormat: z.ZodOptional<z.ZodString>;
795
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
796
+ entityId: z.ZodString;
797
+ entityName: z.ZodString;
798
+ entityType: z.ZodString;
799
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
800
+ kind: z.ZodLiteral<"semantic">;
801
+ datasetId: z.ZodOptional<z.ZodString>;
802
+ label: z.ZodOptional<z.ZodString>;
803
+ connectionId: z.ZodOptional<z.ZodString>;
804
+ } & {
805
+ domainId: z.ZodEffects<z.ZodString, string, string>;
806
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
807
+ }, "strict", z.ZodTypeAny, {
808
+ kind: "semantic";
809
+ domainId: string;
810
+ datasetName: string;
811
+ datasetId?: string | undefined;
812
+ label?: string | undefined;
813
+ connectionId?: string | undefined;
814
+ }, {
815
+ kind: "semantic";
816
+ domainId: string;
817
+ datasetName: string;
818
+ datasetId?: string | undefined;
819
+ label?: string | undefined;
820
+ connectionId?: string | undefined;
821
+ }>, z.ZodObject<{
822
+ kind: z.ZodLiteral<"physical">;
823
+ connectionType: z.ZodOptional<z.ZodString>;
824
+ databaseName: z.ZodOptional<z.ZodString>;
825
+ schemaName: z.ZodOptional<z.ZodString>;
826
+ label: z.ZodOptional<z.ZodString>;
827
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
828
+ } & {
829
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
830
+ tableName: z.ZodEffects<z.ZodString, string, string>;
831
+ }, "strict", z.ZodTypeAny, {
832
+ kind: "physical";
833
+ connectionId: string;
834
+ tableName: string;
835
+ label?: string | undefined;
836
+ connectionType?: string | undefined;
837
+ databaseName?: string | undefined;
838
+ schemaName?: string | undefined;
839
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
840
+ }, {
841
+ kind: "physical";
842
+ connectionId: string;
843
+ tableName: string;
844
+ label?: string | undefined;
845
+ connectionType?: string | undefined;
846
+ databaseName?: string | undefined;
847
+ schemaName?: string | undefined;
848
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
849
+ }>]>>;
850
+ expression: z.ZodOptional<z.ZodString>;
851
+ format: z.ZodOptional<z.ZodUnknown>;
852
+ } & {
853
+ role: z.ZodLiteral<"metric">;
854
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
855
+ }, z.ZodTypeAny, "passthrough"> | {
856
+ id: string;
857
+ kind: "matrix_instance";
858
+ }>>;
859
+ }, "strict", z.ZodTypeAny, {
860
+ target: "config_metric_selector";
861
+ controlId: string;
862
+ mapping: Record<string, z.objectOutputType<{
863
+ id: z.ZodString;
864
+ name: z.ZodString;
865
+ label: z.ZodString;
866
+ alias: z.ZodOptional<z.ZodString>;
867
+ qualifiedFieldName: z.ZodString;
868
+ dataType: z.ZodString;
869
+ description: z.ZodOptional<z.ZodString>;
870
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
871
+ dateFormat: z.ZodOptional<z.ZodString>;
872
+ customFormat: z.ZodOptional<z.ZodString>;
873
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
874
+ entityId: z.ZodString;
875
+ entityName: z.ZodString;
876
+ entityType: z.ZodString;
877
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
878
+ kind: z.ZodLiteral<"semantic">;
879
+ datasetId: z.ZodOptional<z.ZodString>;
880
+ label: z.ZodOptional<z.ZodString>;
881
+ connectionId: z.ZodOptional<z.ZodString>;
882
+ } & {
883
+ domainId: z.ZodEffects<z.ZodString, string, string>;
884
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
885
+ }, "strict", z.ZodTypeAny, {
886
+ kind: "semantic";
887
+ domainId: string;
888
+ datasetName: string;
889
+ datasetId?: string | undefined;
890
+ label?: string | undefined;
891
+ connectionId?: string | undefined;
892
+ }, {
893
+ kind: "semantic";
894
+ domainId: string;
895
+ datasetName: string;
896
+ datasetId?: string | undefined;
897
+ label?: string | undefined;
898
+ connectionId?: string | undefined;
899
+ }>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"physical">;
901
+ connectionType: z.ZodOptional<z.ZodString>;
902
+ databaseName: z.ZodOptional<z.ZodString>;
903
+ schemaName: z.ZodOptional<z.ZodString>;
904
+ label: z.ZodOptional<z.ZodString>;
905
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
906
+ } & {
907
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
908
+ tableName: z.ZodEffects<z.ZodString, string, string>;
909
+ }, "strict", z.ZodTypeAny, {
910
+ kind: "physical";
911
+ connectionId: string;
912
+ tableName: string;
913
+ label?: string | undefined;
914
+ connectionType?: string | undefined;
915
+ databaseName?: string | undefined;
916
+ schemaName?: string | undefined;
917
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
918
+ }, {
919
+ kind: "physical";
920
+ connectionId: string;
921
+ tableName: string;
922
+ label?: string | undefined;
923
+ connectionType?: string | undefined;
924
+ databaseName?: string | undefined;
925
+ schemaName?: string | undefined;
926
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
927
+ }>]>>;
928
+ expression: z.ZodOptional<z.ZodString>;
929
+ format: z.ZodOptional<z.ZodUnknown>;
930
+ } & {
931
+ role: z.ZodLiteral<"metric">;
932
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
933
+ }, z.ZodTypeAny, "passthrough"> | {
934
+ id: string;
935
+ kind: "matrix_instance";
936
+ }>;
937
+ matrixTargetId?: string | undefined;
938
+ }, {
939
+ target: "config_metric_selector";
940
+ controlId: string;
941
+ mapping: Record<string, z.objectInputType<{
942
+ id: z.ZodString;
943
+ name: z.ZodString;
944
+ label: z.ZodString;
945
+ alias: z.ZodOptional<z.ZodString>;
946
+ qualifiedFieldName: z.ZodString;
947
+ dataType: z.ZodString;
948
+ description: z.ZodOptional<z.ZodString>;
949
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
950
+ dateFormat: z.ZodOptional<z.ZodString>;
951
+ customFormat: z.ZodOptional<z.ZodString>;
952
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
953
+ entityId: z.ZodString;
954
+ entityName: z.ZodString;
955
+ entityType: z.ZodString;
956
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
957
+ kind: z.ZodLiteral<"semantic">;
958
+ datasetId: z.ZodOptional<z.ZodString>;
959
+ label: z.ZodOptional<z.ZodString>;
960
+ connectionId: z.ZodOptional<z.ZodString>;
961
+ } & {
962
+ domainId: z.ZodEffects<z.ZodString, string, string>;
963
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
964
+ }, "strict", z.ZodTypeAny, {
965
+ kind: "semantic";
966
+ domainId: string;
967
+ datasetName: string;
968
+ datasetId?: string | undefined;
969
+ label?: string | undefined;
970
+ connectionId?: string | undefined;
971
+ }, {
972
+ kind: "semantic";
973
+ domainId: string;
974
+ datasetName: string;
975
+ datasetId?: string | undefined;
976
+ label?: string | undefined;
977
+ connectionId?: string | undefined;
978
+ }>, z.ZodObject<{
979
+ kind: z.ZodLiteral<"physical">;
980
+ connectionType: z.ZodOptional<z.ZodString>;
981
+ databaseName: z.ZodOptional<z.ZodString>;
982
+ schemaName: z.ZodOptional<z.ZodString>;
983
+ label: z.ZodOptional<z.ZodString>;
984
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
985
+ } & {
986
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
987
+ tableName: z.ZodEffects<z.ZodString, string, string>;
988
+ }, "strict", z.ZodTypeAny, {
989
+ kind: "physical";
990
+ connectionId: string;
991
+ tableName: string;
992
+ label?: string | undefined;
993
+ connectionType?: string | undefined;
994
+ databaseName?: string | undefined;
995
+ schemaName?: string | undefined;
996
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
997
+ }, {
998
+ kind: "physical";
999
+ connectionId: string;
1000
+ tableName: string;
1001
+ label?: string | undefined;
1002
+ connectionType?: string | undefined;
1003
+ databaseName?: string | undefined;
1004
+ schemaName?: string | undefined;
1005
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1006
+ }>]>>;
1007
+ expression: z.ZodOptional<z.ZodString>;
1008
+ format: z.ZodOptional<z.ZodUnknown>;
1009
+ } & {
1010
+ role: z.ZodLiteral<"metric">;
1011
+ aggregate: z.ZodOptional<z.ZodEnum<["COUNT", "SUM", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
1012
+ }, z.ZodTypeAny, "passthrough"> | {
1013
+ id: string;
1014
+ kind: "matrix_instance";
1015
+ }>;
1016
+ matrixTargetId?: string | undefined;
1017
+ }>, z.ZodObject<{
1018
+ controlId: z.ZodString;
1019
+ target: z.ZodLiteral<"config_field_selector">;
1020
+ matrixTargetId: z.ZodOptional<z.ZodString>;
1021
+ mapping: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1022
+ kind: z.ZodLiteral<"matrix_instance">;
1023
+ id: z.ZodString;
1024
+ }, "strict", z.ZodTypeAny, {
1025
+ id: string;
1026
+ kind: "matrix_instance";
1027
+ }, {
1028
+ id: string;
1029
+ kind: "matrix_instance";
1030
+ }>, z.ZodEffects<z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ name: z.ZodString;
1033
+ label: z.ZodString;
1034
+ alias: z.ZodOptional<z.ZodString>;
1035
+ qualifiedFieldName: z.ZodString;
1036
+ dataType: z.ZodString;
1037
+ description: z.ZodOptional<z.ZodString>;
1038
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1039
+ dateFormat: z.ZodOptional<z.ZodString>;
1040
+ customFormat: z.ZodOptional<z.ZodString>;
1041
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1042
+ entityId: z.ZodString;
1043
+ entityName: z.ZodString;
1044
+ entityType: z.ZodString;
1045
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1046
+ kind: z.ZodLiteral<"semantic">;
1047
+ datasetId: z.ZodOptional<z.ZodString>;
1048
+ label: z.ZodOptional<z.ZodString>;
1049
+ connectionId: z.ZodOptional<z.ZodString>;
1050
+ } & {
1051
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1052
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1053
+ }, "strict", z.ZodTypeAny, {
1054
+ kind: "semantic";
1055
+ domainId: string;
1056
+ datasetName: string;
1057
+ datasetId?: string | undefined;
1058
+ label?: string | undefined;
1059
+ connectionId?: string | undefined;
1060
+ }, {
1061
+ kind: "semantic";
1062
+ domainId: string;
1063
+ datasetName: string;
1064
+ datasetId?: string | undefined;
1065
+ label?: string | undefined;
1066
+ connectionId?: string | undefined;
1067
+ }>, z.ZodObject<{
1068
+ kind: z.ZodLiteral<"physical">;
1069
+ connectionType: z.ZodOptional<z.ZodString>;
1070
+ databaseName: z.ZodOptional<z.ZodString>;
1071
+ schemaName: z.ZodOptional<z.ZodString>;
1072
+ label: z.ZodOptional<z.ZodString>;
1073
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1074
+ } & {
1075
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1076
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1077
+ }, "strict", z.ZodTypeAny, {
1078
+ kind: "physical";
1079
+ connectionId: string;
1080
+ tableName: string;
1081
+ label?: string | undefined;
1082
+ connectionType?: string | undefined;
1083
+ databaseName?: string | undefined;
1084
+ schemaName?: string | undefined;
1085
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1086
+ }, {
1087
+ kind: "physical";
1088
+ connectionId: string;
1089
+ tableName: string;
1090
+ label?: string | undefined;
1091
+ connectionType?: string | undefined;
1092
+ databaseName?: string | undefined;
1093
+ schemaName?: string | undefined;
1094
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1095
+ }>]>>;
1096
+ expression: z.ZodOptional<z.ZodString>;
1097
+ format: z.ZodOptional<z.ZodUnknown>;
1098
+ } & {
1099
+ role: z.ZodLiteral<"groupby">;
1100
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1101
+ id: z.ZodString;
1102
+ name: z.ZodString;
1103
+ label: z.ZodString;
1104
+ alias: z.ZodOptional<z.ZodString>;
1105
+ qualifiedFieldName: z.ZodString;
1106
+ dataType: z.ZodString;
1107
+ description: z.ZodOptional<z.ZodString>;
1108
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1109
+ dateFormat: z.ZodOptional<z.ZodString>;
1110
+ customFormat: z.ZodOptional<z.ZodString>;
1111
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1112
+ entityId: z.ZodString;
1113
+ entityName: z.ZodString;
1114
+ entityType: z.ZodString;
1115
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1116
+ kind: z.ZodLiteral<"semantic">;
1117
+ datasetId: z.ZodOptional<z.ZodString>;
1118
+ label: z.ZodOptional<z.ZodString>;
1119
+ connectionId: z.ZodOptional<z.ZodString>;
1120
+ } & {
1121
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1122
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1123
+ }, "strict", z.ZodTypeAny, {
1124
+ kind: "semantic";
1125
+ domainId: string;
1126
+ datasetName: string;
1127
+ datasetId?: string | undefined;
1128
+ label?: string | undefined;
1129
+ connectionId?: string | undefined;
1130
+ }, {
1131
+ kind: "semantic";
1132
+ domainId: string;
1133
+ datasetName: string;
1134
+ datasetId?: string | undefined;
1135
+ label?: string | undefined;
1136
+ connectionId?: string | undefined;
1137
+ }>, z.ZodObject<{
1138
+ kind: z.ZodLiteral<"physical">;
1139
+ connectionType: z.ZodOptional<z.ZodString>;
1140
+ databaseName: z.ZodOptional<z.ZodString>;
1141
+ schemaName: z.ZodOptional<z.ZodString>;
1142
+ label: z.ZodOptional<z.ZodString>;
1143
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1144
+ } & {
1145
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1146
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1147
+ }, "strict", z.ZodTypeAny, {
1148
+ kind: "physical";
1149
+ connectionId: string;
1150
+ tableName: string;
1151
+ label?: string | undefined;
1152
+ connectionType?: string | undefined;
1153
+ databaseName?: string | undefined;
1154
+ schemaName?: string | undefined;
1155
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1156
+ }, {
1157
+ kind: "physical";
1158
+ connectionId: string;
1159
+ tableName: string;
1160
+ label?: string | undefined;
1161
+ connectionType?: string | undefined;
1162
+ databaseName?: string | undefined;
1163
+ schemaName?: string | undefined;
1164
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1165
+ }>]>>;
1166
+ expression: z.ZodOptional<z.ZodString>;
1167
+ format: z.ZodOptional<z.ZodUnknown>;
1168
+ } & {
1169
+ role: z.ZodLiteral<"groupby">;
1170
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1171
+ id: z.ZodString;
1172
+ name: z.ZodString;
1173
+ label: z.ZodString;
1174
+ alias: z.ZodOptional<z.ZodString>;
1175
+ qualifiedFieldName: z.ZodString;
1176
+ dataType: z.ZodString;
1177
+ description: z.ZodOptional<z.ZodString>;
1178
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1179
+ dateFormat: z.ZodOptional<z.ZodString>;
1180
+ customFormat: z.ZodOptional<z.ZodString>;
1181
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1182
+ entityId: z.ZodString;
1183
+ entityName: z.ZodString;
1184
+ entityType: z.ZodString;
1185
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1186
+ kind: z.ZodLiteral<"semantic">;
1187
+ datasetId: z.ZodOptional<z.ZodString>;
1188
+ label: z.ZodOptional<z.ZodString>;
1189
+ connectionId: z.ZodOptional<z.ZodString>;
1190
+ } & {
1191
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1192
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1193
+ }, "strict", z.ZodTypeAny, {
1194
+ kind: "semantic";
1195
+ domainId: string;
1196
+ datasetName: string;
1197
+ datasetId?: string | undefined;
1198
+ label?: string | undefined;
1199
+ connectionId?: string | undefined;
1200
+ }, {
1201
+ kind: "semantic";
1202
+ domainId: string;
1203
+ datasetName: string;
1204
+ datasetId?: string | undefined;
1205
+ label?: string | undefined;
1206
+ connectionId?: string | undefined;
1207
+ }>, z.ZodObject<{
1208
+ kind: z.ZodLiteral<"physical">;
1209
+ connectionType: z.ZodOptional<z.ZodString>;
1210
+ databaseName: z.ZodOptional<z.ZodString>;
1211
+ schemaName: z.ZodOptional<z.ZodString>;
1212
+ label: z.ZodOptional<z.ZodString>;
1213
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1214
+ } & {
1215
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1216
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1217
+ }, "strict", z.ZodTypeAny, {
1218
+ kind: "physical";
1219
+ connectionId: string;
1220
+ tableName: string;
1221
+ label?: string | undefined;
1222
+ connectionType?: string | undefined;
1223
+ databaseName?: string | undefined;
1224
+ schemaName?: string | undefined;
1225
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1226
+ }, {
1227
+ kind: "physical";
1228
+ connectionId: string;
1229
+ tableName: string;
1230
+ label?: string | undefined;
1231
+ connectionType?: string | undefined;
1232
+ databaseName?: string | undefined;
1233
+ schemaName?: string | undefined;
1234
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1235
+ }>]>>;
1236
+ expression: z.ZodOptional<z.ZodString>;
1237
+ format: z.ZodOptional<z.ZodUnknown>;
1238
+ } & {
1239
+ role: z.ZodLiteral<"groupby">;
1240
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
1241
+ id: z.ZodString;
1242
+ name: z.ZodString;
1243
+ label: z.ZodString;
1244
+ alias: z.ZodOptional<z.ZodString>;
1245
+ qualifiedFieldName: z.ZodString;
1246
+ dataType: z.ZodString;
1247
+ description: z.ZodOptional<z.ZodString>;
1248
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1249
+ dateFormat: z.ZodOptional<z.ZodString>;
1250
+ customFormat: z.ZodOptional<z.ZodString>;
1251
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1252
+ entityId: z.ZodString;
1253
+ entityName: z.ZodString;
1254
+ entityType: z.ZodString;
1255
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1256
+ kind: z.ZodLiteral<"semantic">;
1257
+ datasetId: z.ZodOptional<z.ZodString>;
1258
+ label: z.ZodOptional<z.ZodString>;
1259
+ connectionId: z.ZodOptional<z.ZodString>;
1260
+ } & {
1261
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1262
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1263
+ }, "strict", z.ZodTypeAny, {
1264
+ kind: "semantic";
1265
+ domainId: string;
1266
+ datasetName: string;
1267
+ datasetId?: string | undefined;
1268
+ label?: string | undefined;
1269
+ connectionId?: string | undefined;
1270
+ }, {
1271
+ kind: "semantic";
1272
+ domainId: string;
1273
+ datasetName: string;
1274
+ datasetId?: string | undefined;
1275
+ label?: string | undefined;
1276
+ connectionId?: string | undefined;
1277
+ }>, z.ZodObject<{
1278
+ kind: z.ZodLiteral<"physical">;
1279
+ connectionType: z.ZodOptional<z.ZodString>;
1280
+ databaseName: z.ZodOptional<z.ZodString>;
1281
+ schemaName: z.ZodOptional<z.ZodString>;
1282
+ label: z.ZodOptional<z.ZodString>;
1283
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1284
+ } & {
1285
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1286
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1287
+ }, "strict", z.ZodTypeAny, {
1288
+ kind: "physical";
1289
+ connectionId: string;
1290
+ tableName: string;
1291
+ label?: string | undefined;
1292
+ connectionType?: string | undefined;
1293
+ databaseName?: string | undefined;
1294
+ schemaName?: string | undefined;
1295
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1296
+ }, {
1297
+ kind: "physical";
1298
+ connectionId: string;
1299
+ tableName: string;
1300
+ label?: string | undefined;
1301
+ connectionType?: string | undefined;
1302
+ databaseName?: string | undefined;
1303
+ schemaName?: string | undefined;
1304
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1305
+ }>]>>;
1306
+ expression: z.ZodOptional<z.ZodString>;
1307
+ format: z.ZodOptional<z.ZodUnknown>;
1308
+ } & {
1309
+ role: z.ZodLiteral<"groupby">;
1310
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1311
+ id: z.ZodString;
1312
+ name: z.ZodString;
1313
+ label: z.ZodString;
1314
+ alias: z.ZodOptional<z.ZodString>;
1315
+ qualifiedFieldName: z.ZodString;
1316
+ dataType: z.ZodString;
1317
+ description: z.ZodOptional<z.ZodString>;
1318
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1319
+ dateFormat: z.ZodOptional<z.ZodString>;
1320
+ customFormat: z.ZodOptional<z.ZodString>;
1321
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1322
+ entityId: z.ZodString;
1323
+ entityName: z.ZodString;
1324
+ entityType: z.ZodString;
1325
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1326
+ kind: z.ZodLiteral<"semantic">;
1327
+ datasetId: z.ZodOptional<z.ZodString>;
1328
+ label: z.ZodOptional<z.ZodString>;
1329
+ connectionId: z.ZodOptional<z.ZodString>;
1330
+ } & {
1331
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1332
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1333
+ }, "strict", z.ZodTypeAny, {
1334
+ kind: "semantic";
1335
+ domainId: string;
1336
+ datasetName: string;
1337
+ datasetId?: string | undefined;
1338
+ label?: string | undefined;
1339
+ connectionId?: string | undefined;
1340
+ }, {
1341
+ kind: "semantic";
1342
+ domainId: string;
1343
+ datasetName: string;
1344
+ datasetId?: string | undefined;
1345
+ label?: string | undefined;
1346
+ connectionId?: string | undefined;
1347
+ }>, z.ZodObject<{
1348
+ kind: z.ZodLiteral<"physical">;
1349
+ connectionType: z.ZodOptional<z.ZodString>;
1350
+ databaseName: z.ZodOptional<z.ZodString>;
1351
+ schemaName: z.ZodOptional<z.ZodString>;
1352
+ label: z.ZodOptional<z.ZodString>;
1353
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1354
+ } & {
1355
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1356
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1357
+ }, "strict", z.ZodTypeAny, {
1358
+ kind: "physical";
1359
+ connectionId: string;
1360
+ tableName: string;
1361
+ label?: string | undefined;
1362
+ connectionType?: string | undefined;
1363
+ databaseName?: string | undefined;
1364
+ schemaName?: string | undefined;
1365
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1366
+ }, {
1367
+ kind: "physical";
1368
+ connectionId: string;
1369
+ tableName: string;
1370
+ label?: string | undefined;
1371
+ connectionType?: string | undefined;
1372
+ databaseName?: string | undefined;
1373
+ schemaName?: string | undefined;
1374
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1375
+ }>]>>;
1376
+ expression: z.ZodOptional<z.ZodString>;
1377
+ format: z.ZodOptional<z.ZodUnknown>;
1378
+ } & {
1379
+ role: z.ZodLiteral<"groupby">;
1380
+ }, z.ZodTypeAny, "passthrough">>]>>, Record<string, z.objectOutputType<{
1381
+ id: z.ZodString;
1382
+ name: z.ZodString;
1383
+ label: z.ZodString;
1384
+ alias: z.ZodOptional<z.ZodString>;
1385
+ qualifiedFieldName: z.ZodString;
1386
+ dataType: z.ZodString;
1387
+ description: z.ZodOptional<z.ZodString>;
1388
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1389
+ dateFormat: z.ZodOptional<z.ZodString>;
1390
+ customFormat: z.ZodOptional<z.ZodString>;
1391
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1392
+ entityId: z.ZodString;
1393
+ entityName: z.ZodString;
1394
+ entityType: z.ZodString;
1395
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1396
+ kind: z.ZodLiteral<"semantic">;
1397
+ datasetId: z.ZodOptional<z.ZodString>;
1398
+ label: z.ZodOptional<z.ZodString>;
1399
+ connectionId: z.ZodOptional<z.ZodString>;
1400
+ } & {
1401
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1402
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1403
+ }, "strict", z.ZodTypeAny, {
1404
+ kind: "semantic";
1405
+ domainId: string;
1406
+ datasetName: string;
1407
+ datasetId?: string | undefined;
1408
+ label?: string | undefined;
1409
+ connectionId?: string | undefined;
1410
+ }, {
1411
+ kind: "semantic";
1412
+ domainId: string;
1413
+ datasetName: string;
1414
+ datasetId?: string | undefined;
1415
+ label?: string | undefined;
1416
+ connectionId?: string | undefined;
1417
+ }>, z.ZodObject<{
1418
+ kind: z.ZodLiteral<"physical">;
1419
+ connectionType: z.ZodOptional<z.ZodString>;
1420
+ databaseName: z.ZodOptional<z.ZodString>;
1421
+ schemaName: z.ZodOptional<z.ZodString>;
1422
+ label: z.ZodOptional<z.ZodString>;
1423
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1424
+ } & {
1425
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1426
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1427
+ }, "strict", z.ZodTypeAny, {
1428
+ kind: "physical";
1429
+ connectionId: string;
1430
+ tableName: string;
1431
+ label?: string | undefined;
1432
+ connectionType?: string | undefined;
1433
+ databaseName?: string | undefined;
1434
+ schemaName?: string | undefined;
1435
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1436
+ }, {
1437
+ kind: "physical";
1438
+ connectionId: string;
1439
+ tableName: string;
1440
+ label?: string | undefined;
1441
+ connectionType?: string | undefined;
1442
+ databaseName?: string | undefined;
1443
+ schemaName?: string | undefined;
1444
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1445
+ }>]>>;
1446
+ expression: z.ZodOptional<z.ZodString>;
1447
+ format: z.ZodOptional<z.ZodUnknown>;
1448
+ } & {
1449
+ role: z.ZodLiteral<"groupby">;
1450
+ }, z.ZodTypeAny, "passthrough"> | {
1451
+ id: string;
1452
+ kind: "matrix_instance";
1453
+ }>, Record<string, z.objectInputType<{
1454
+ id: z.ZodString;
1455
+ name: z.ZodString;
1456
+ label: z.ZodString;
1457
+ alias: z.ZodOptional<z.ZodString>;
1458
+ qualifiedFieldName: z.ZodString;
1459
+ dataType: z.ZodString;
1460
+ description: z.ZodOptional<z.ZodString>;
1461
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1462
+ dateFormat: z.ZodOptional<z.ZodString>;
1463
+ customFormat: z.ZodOptional<z.ZodString>;
1464
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1465
+ entityId: z.ZodString;
1466
+ entityName: z.ZodString;
1467
+ entityType: z.ZodString;
1468
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1469
+ kind: z.ZodLiteral<"semantic">;
1470
+ datasetId: z.ZodOptional<z.ZodString>;
1471
+ label: z.ZodOptional<z.ZodString>;
1472
+ connectionId: z.ZodOptional<z.ZodString>;
1473
+ } & {
1474
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1475
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1476
+ }, "strict", z.ZodTypeAny, {
1477
+ kind: "semantic";
1478
+ domainId: string;
1479
+ datasetName: string;
1480
+ datasetId?: string | undefined;
1481
+ label?: string | undefined;
1482
+ connectionId?: string | undefined;
1483
+ }, {
1484
+ kind: "semantic";
1485
+ domainId: string;
1486
+ datasetName: string;
1487
+ datasetId?: string | undefined;
1488
+ label?: string | undefined;
1489
+ connectionId?: string | undefined;
1490
+ }>, z.ZodObject<{
1491
+ kind: z.ZodLiteral<"physical">;
1492
+ connectionType: z.ZodOptional<z.ZodString>;
1493
+ databaseName: z.ZodOptional<z.ZodString>;
1494
+ schemaName: z.ZodOptional<z.ZodString>;
1495
+ label: z.ZodOptional<z.ZodString>;
1496
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1497
+ } & {
1498
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1499
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1500
+ }, "strict", z.ZodTypeAny, {
1501
+ kind: "physical";
1502
+ connectionId: string;
1503
+ tableName: string;
1504
+ label?: string | undefined;
1505
+ connectionType?: string | undefined;
1506
+ databaseName?: string | undefined;
1507
+ schemaName?: string | undefined;
1508
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1509
+ }, {
1510
+ kind: "physical";
1511
+ connectionId: string;
1512
+ tableName: string;
1513
+ label?: string | undefined;
1514
+ connectionType?: string | undefined;
1515
+ databaseName?: string | undefined;
1516
+ schemaName?: string | undefined;
1517
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1518
+ }>]>>;
1519
+ expression: z.ZodOptional<z.ZodString>;
1520
+ format: z.ZodOptional<z.ZodUnknown>;
1521
+ } & {
1522
+ role: z.ZodLiteral<"groupby">;
1523
+ }, z.ZodTypeAny, "passthrough"> | {
1524
+ id: string;
1525
+ kind: "matrix_instance";
1526
+ }>>;
1527
+ }, "strict", z.ZodTypeAny, {
1528
+ target: "config_field_selector";
1529
+ controlId: string;
1530
+ mapping: Record<string, z.objectOutputType<{
1531
+ id: z.ZodString;
1532
+ name: z.ZodString;
1533
+ label: z.ZodString;
1534
+ alias: z.ZodOptional<z.ZodString>;
1535
+ qualifiedFieldName: z.ZodString;
1536
+ dataType: z.ZodString;
1537
+ description: z.ZodOptional<z.ZodString>;
1538
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1539
+ dateFormat: z.ZodOptional<z.ZodString>;
1540
+ customFormat: z.ZodOptional<z.ZodString>;
1541
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1542
+ entityId: z.ZodString;
1543
+ entityName: z.ZodString;
1544
+ entityType: z.ZodString;
1545
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1546
+ kind: z.ZodLiteral<"semantic">;
1547
+ datasetId: z.ZodOptional<z.ZodString>;
1548
+ label: z.ZodOptional<z.ZodString>;
1549
+ connectionId: z.ZodOptional<z.ZodString>;
1550
+ } & {
1551
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1552
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1553
+ }, "strict", z.ZodTypeAny, {
1554
+ kind: "semantic";
1555
+ domainId: string;
1556
+ datasetName: string;
1557
+ datasetId?: string | undefined;
1558
+ label?: string | undefined;
1559
+ connectionId?: string | undefined;
1560
+ }, {
1561
+ kind: "semantic";
1562
+ domainId: string;
1563
+ datasetName: string;
1564
+ datasetId?: string | undefined;
1565
+ label?: string | undefined;
1566
+ connectionId?: string | undefined;
1567
+ }>, z.ZodObject<{
1568
+ kind: z.ZodLiteral<"physical">;
1569
+ connectionType: z.ZodOptional<z.ZodString>;
1570
+ databaseName: z.ZodOptional<z.ZodString>;
1571
+ schemaName: z.ZodOptional<z.ZodString>;
1572
+ label: z.ZodOptional<z.ZodString>;
1573
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1574
+ } & {
1575
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1576
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1577
+ }, "strict", z.ZodTypeAny, {
1578
+ kind: "physical";
1579
+ connectionId: string;
1580
+ tableName: string;
1581
+ label?: string | undefined;
1582
+ connectionType?: string | undefined;
1583
+ databaseName?: string | undefined;
1584
+ schemaName?: string | undefined;
1585
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1586
+ }, {
1587
+ kind: "physical";
1588
+ connectionId: string;
1589
+ tableName: string;
1590
+ label?: string | undefined;
1591
+ connectionType?: string | undefined;
1592
+ databaseName?: string | undefined;
1593
+ schemaName?: string | undefined;
1594
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1595
+ }>]>>;
1596
+ expression: z.ZodOptional<z.ZodString>;
1597
+ format: z.ZodOptional<z.ZodUnknown>;
1598
+ } & {
1599
+ role: z.ZodLiteral<"groupby">;
1600
+ }, z.ZodTypeAny, "passthrough"> | {
1601
+ id: string;
1602
+ kind: "matrix_instance";
1603
+ }>;
1604
+ matrixTargetId?: string | undefined;
1605
+ }, {
1606
+ target: "config_field_selector";
1607
+ controlId: string;
1608
+ mapping: Record<string, z.objectInputType<{
1609
+ id: z.ZodString;
1610
+ name: z.ZodString;
1611
+ label: z.ZodString;
1612
+ alias: z.ZodOptional<z.ZodString>;
1613
+ qualifiedFieldName: z.ZodString;
1614
+ dataType: z.ZodString;
1615
+ description: z.ZodOptional<z.ZodString>;
1616
+ qualifiedEntityName: z.ZodOptional<z.ZodString>;
1617
+ dateFormat: z.ZodOptional<z.ZodString>;
1618
+ customFormat: z.ZodOptional<z.ZodString>;
1619
+ granularity: z.ZodOptional<z.ZodEnum<["day", "week", "month", "quarter", "year", "hour", "minute", "second"]>>;
1620
+ entityId: z.ZodString;
1621
+ entityName: z.ZodString;
1622
+ entityType: z.ZodString;
1623
+ source: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1624
+ kind: z.ZodLiteral<"semantic">;
1625
+ datasetId: z.ZodOptional<z.ZodString>;
1626
+ label: z.ZodOptional<z.ZodString>;
1627
+ connectionId: z.ZodOptional<z.ZodString>;
1628
+ } & {
1629
+ domainId: z.ZodEffects<z.ZodString, string, string>;
1630
+ datasetName: z.ZodEffects<z.ZodString, string, string>;
1631
+ }, "strict", z.ZodTypeAny, {
1632
+ kind: "semantic";
1633
+ domainId: string;
1634
+ datasetName: string;
1635
+ datasetId?: string | undefined;
1636
+ label?: string | undefined;
1637
+ connectionId?: string | undefined;
1638
+ }, {
1639
+ kind: "semantic";
1640
+ domainId: string;
1641
+ datasetName: string;
1642
+ datasetId?: string | undefined;
1643
+ label?: string | undefined;
1644
+ connectionId?: string | undefined;
1645
+ }>, z.ZodObject<{
1646
+ kind: z.ZodLiteral<"physical">;
1647
+ connectionType: z.ZodOptional<z.ZodString>;
1648
+ databaseName: z.ZodOptional<z.ZodString>;
1649
+ schemaName: z.ZodOptional<z.ZodString>;
1650
+ label: z.ZodOptional<z.ZodString>;
1651
+ dialect: z.ZodOptional<z.ZodEnum<["postgres", "mysql", "mssql", "snowflake", "clickhouse", "bigquery", "redshift", "duckdb", "sqlite", "unknown"]>>;
1652
+ } & {
1653
+ connectionId: z.ZodEffects<z.ZodString, string, string>;
1654
+ tableName: z.ZodEffects<z.ZodString, string, string>;
1655
+ }, "strict", z.ZodTypeAny, {
1656
+ kind: "physical";
1657
+ connectionId: string;
1658
+ tableName: string;
1659
+ label?: string | undefined;
1660
+ connectionType?: string | undefined;
1661
+ databaseName?: string | undefined;
1662
+ schemaName?: string | undefined;
1663
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1664
+ }, {
1665
+ kind: "physical";
1666
+ connectionId: string;
1667
+ tableName: string;
1668
+ label?: string | undefined;
1669
+ connectionType?: string | undefined;
1670
+ databaseName?: string | undefined;
1671
+ schemaName?: string | undefined;
1672
+ dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
1673
+ }>]>>;
1674
+ expression: z.ZodOptional<z.ZodString>;
1675
+ format: z.ZodOptional<z.ZodUnknown>;
1676
+ } & {
1677
+ role: z.ZodLiteral<"groupby">;
1678
+ }, z.ZodTypeAny, "passthrough"> | {
1679
+ id: string;
1680
+ kind: "matrix_instance";
1681
+ }>;
1682
+ matrixTargetId?: string | undefined;
1683
+ }>, z.ZodObject<{
1684
+ controlId: z.ZodString;
1685
+ target: z.ZodLiteral<"config_aggregation">;
1686
+ matrixTargetId: z.ZodOptional<z.ZodString>;
1687
+ mapping: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
1688
+ }, "strict", z.ZodTypeAny, {
1689
+ target: "config_aggregation";
1690
+ controlId: string;
1691
+ mapping: Record<string, string>;
1692
+ matrixTargetId?: string | undefined;
1693
+ }, {
1694
+ target: "config_aggregation";
1695
+ controlId: string;
1696
+ mapping: Record<string, string>;
1697
+ matrixTargetId?: string | undefined;
1698
+ }>, z.ZodObject<{
1699
+ controlId: z.ZodString;
1700
+ target: z.ZodLiteral<"config_grain">;
1701
+ matrixTargetId: z.ZodOptional<z.ZodString>;
1702
+ mapping: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
1703
+ }, "strict", z.ZodTypeAny, {
1704
+ target: "config_grain";
1705
+ controlId: string;
1706
+ mapping: Record<string, string>;
1707
+ matrixTargetId?: string | undefined;
1708
+ }, {
1709
+ target: "config_grain";
1710
+ controlId: string;
1711
+ mapping: Record<string, string>;
1712
+ matrixTargetId?: string | undefined;
1713
+ }>, z.ZodObject<{
1714
+ controlId: z.ZodString;
1715
+ target: z.ZodLiteral<"presentation_currency">;
1716
+ presentationTarget: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1717
+ kind: z.ZodLiteral<"metric">;
1718
+ metricId: z.ZodString;
1719
+ }, "strict", z.ZodTypeAny, {
1720
+ kind: "metric";
1721
+ metricId: string;
1722
+ }, {
1723
+ kind: "metric";
1724
+ metricId: string;
1725
+ }>, z.ZodObject<{
1726
+ kind: z.ZodLiteral<"column">;
1727
+ columnKey: z.ZodString;
1728
+ }, "strict", z.ZodTypeAny, {
1729
+ kind: "column";
1730
+ columnKey: string;
1731
+ }, {
1732
+ kind: "column";
1733
+ columnKey: string;
1734
+ }>, z.ZodObject<{
1735
+ kind: z.ZodLiteral<"matrix_measure">;
1736
+ measureId: z.ZodString;
1737
+ }, "strict", z.ZodTypeAny, {
1738
+ kind: "matrix_measure";
1739
+ measureId: string;
1740
+ }, {
1741
+ kind: "matrix_measure";
1742
+ measureId: string;
1743
+ }>]>;
1744
+ }, "strict", z.ZodTypeAny, {
1745
+ target: "presentation_currency";
1746
+ controlId: string;
1747
+ presentationTarget: {
1748
+ kind: "metric";
1749
+ metricId: string;
1750
+ } | {
1751
+ kind: "column";
1752
+ columnKey: string;
1753
+ } | {
1754
+ kind: "matrix_measure";
1755
+ measureId: string;
1756
+ };
1757
+ }, {
1758
+ target: "presentation_currency";
1759
+ controlId: string;
1760
+ presentationTarget: {
1761
+ kind: "metric";
1762
+ metricId: string;
1763
+ } | {
1764
+ kind: "column";
1765
+ columnKey: string;
1766
+ } | {
1767
+ kind: "matrix_measure";
1768
+ measureId: string;
1769
+ };
1770
+ }>]>;
1771
+ export declare class ExecutionControlContractError extends Error {
1772
+ constructor(message: string);
1773
+ }
1774
+ export declare function parseExecutionControlBindingsShallow(input: unknown): ControlBinding[];
1775
+ export declare function parseExecutionControlContract(input: {
1776
+ controlDefinitions?: unknown;
1777
+ cardControlDefinitions?: unknown;
1778
+ controlBindings?: unknown;
1779
+ }): {
1780
+ controlDefinitions: ControlDefinition[];
1781
+ cardControlDefinitions: ControlDefinition[];
1782
+ controlBindings: ControlBinding[];
1783
+ };
1784
+ export declare function parseExecutionControlContext(input: {
1785
+ controlValues?: unknown;
1786
+ controlDefinitions?: unknown;
1787
+ cardControlDefinitions?: unknown;
1788
+ controlBindings?: unknown;
1789
+ }): {
1790
+ controlValues: Record<string, unknown>;
1791
+ controlDefinitions: ControlDefinition[];
1792
+ cardControlDefinitions: ControlDefinition[];
1793
+ controlBindings: ControlBinding[];
1794
+ };