@lightdash/common 0.2077.5 → 0.2078.0

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 (101) hide show
  1. package/dist/cjs/ee/AiAgent/schemas/index.d.ts +1200 -0
  2. package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
  3. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  4. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +8 -4
  5. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  7. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +4 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  11. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  12. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +103 -0
  13. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
  14. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  15. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +87 -30
  17. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  28. package/dist/cjs/ee/AiAgent/utils.d.ts +69 -0
  29. package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
  30. package/dist/cjs/types/field.d.ts +42 -1
  31. package/dist/cjs/types/field.d.ts.map +1 -1
  32. package/dist/cjs/types/field.js +25 -1
  33. package/dist/cjs/types/field.js.map +1 -1
  34. package/dist/esm/ee/AiAgent/schemas/index.d.ts +1200 -0
  35. package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
  36. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  37. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js +8 -4
  38. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.js.map +1 -1
  39. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  40. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  41. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js +5 -1
  42. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.js.map +1 -1
  43. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  44. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  45. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js +100 -0
  46. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.js.map +1 -0
  47. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  48. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.js +88 -31
  50. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/utils.d.ts +69 -0
  62. package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
  63. package/dist/esm/types/field.d.ts +42 -1
  64. package/dist/esm/types/field.d.ts.map +1 -1
  65. package/dist/esm/types/field.js +24 -0
  66. package/dist/esm/types/field.js.map +1 -1
  67. package/dist/tsconfig.types.tsbuildinfo +1 -1
  68. package/dist/types/ee/AiAgent/schemas/index.d.ts +1200 -0
  69. package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
  70. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcBaseSchemas.d.ts.map +1 -1
  71. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts +3 -0
  72. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcPercentOfColumnTotal.d.ts.map +1 -1
  73. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts +109 -0
  74. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcWindowFunction.d.ts.map +1 -0
  75. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts +216 -0
  76. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.d.ts.map +1 -1
  77. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +2218 -4
  78. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
  79. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +354 -0
  80. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
  81. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +354 -0
  82. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  83. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +354 -0
  84. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  85. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +354 -0
  86. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  87. package/dist/types/ee/AiAgent/utils.d.ts +69 -0
  88. package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
  89. package/dist/types/types/field.d.ts +42 -1
  90. package/dist/types/types/field.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  93. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  94. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -56
  95. package/dist/cjs/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  96. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  97. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
  98. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js +0 -54
  99. package/dist/esm/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.js.map +0 -1
  100. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts +0 -2
  101. package/dist/types/ee/AiAgent/schemas/tableCalcs/tableCalcs.test.d.ts.map +0 -1
@@ -109,16 +109,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
109
109
  } & {
110
110
  type: z.ZodLiteral<"percent_of_column_total">;
111
111
  fieldId: z.ZodString;
112
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
112
113
  }, "strip", z.ZodTypeAny, {
113
114
  name: string;
114
115
  fieldId: string;
115
116
  type: "percent_of_column_total";
116
117
  displayName: string;
118
+ partitionBy: string[] | null;
117
119
  }, {
118
120
  name: string;
119
121
  fieldId: string;
120
122
  type: "percent_of_column_total";
121
123
  displayName: string;
124
+ partitionBy: string[] | null;
122
125
  }>, z.ZodObject<{
123
126
  name: z.ZodString;
124
127
  displayName: z.ZodString;
@@ -151,6 +154,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
151
154
  fieldId: string;
152
155
  type: "running_total";
153
156
  displayName: string;
157
+ }>, z.ZodObject<{
158
+ name: z.ZodString;
159
+ displayName: z.ZodString;
160
+ } & {
161
+ type: z.ZodLiteral<"window_function">;
162
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
163
+ fieldId: z.ZodNullable<z.ZodString>;
164
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
165
+ fieldId: z.ZodString;
166
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ fieldId: string;
169
+ order: "asc" | "desc" | null;
170
+ }, {
171
+ fieldId: string;
172
+ order: "asc" | "desc" | null;
173
+ }>, "many">>;
174
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
175
+ frame: z.ZodNullable<z.ZodObject<{
176
+ frameType: z.ZodEnum<["rows", "range"]>;
177
+ start: z.ZodNullable<z.ZodObject<{
178
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
179
+ offset: z.ZodNullable<z.ZodNumber>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
182
+ offset: number | null;
183
+ }, {
184
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
185
+ offset: number | null;
186
+ }>>;
187
+ end: z.ZodObject<{
188
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
189
+ offset: z.ZodNullable<z.ZodNumber>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
192
+ offset: number | null;
193
+ }, {
194
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
195
+ offset: number | null;
196
+ }>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ start: {
199
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
200
+ offset: number | null;
201
+ } | null;
202
+ end: {
203
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
204
+ offset: number | null;
205
+ };
206
+ frameType: "rows" | "range";
207
+ }, {
208
+ start: {
209
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
210
+ offset: number | null;
211
+ } | null;
212
+ end: {
213
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
214
+ offset: number | null;
215
+ };
216
+ frameType: "rows" | "range";
217
+ }>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ name: string;
220
+ fieldId: string | null;
221
+ type: "window_function";
222
+ displayName: string;
223
+ orderBy: {
224
+ fieldId: string;
225
+ order: "asc" | "desc" | null;
226
+ }[] | null;
227
+ partitionBy: string[] | null;
228
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
229
+ frame: {
230
+ start: {
231
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
232
+ offset: number | null;
233
+ } | null;
234
+ end: {
235
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
236
+ offset: number | null;
237
+ };
238
+ frameType: "rows" | "range";
239
+ } | null;
240
+ }, {
241
+ name: string;
242
+ fieldId: string | null;
243
+ type: "window_function";
244
+ displayName: string;
245
+ orderBy: {
246
+ fieldId: string;
247
+ order: "asc" | "desc" | null;
248
+ }[] | null;
249
+ partitionBy: string[] | null;
250
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
251
+ frame: {
252
+ start: {
253
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
254
+ offset: number | null;
255
+ } | null;
256
+ end: {
257
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
258
+ offset: number | null;
259
+ };
260
+ frameType: "rows" | "range";
261
+ } | null;
154
262
  }>]>, "many">>;
155
263
  filters: z.ZodNullable<z.ZodObject<{
156
264
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -1287,6 +1395,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1287
1395
  fieldId: string;
1288
1396
  type: "percent_of_column_total";
1289
1397
  displayName: string;
1398
+ partitionBy: string[] | null;
1290
1399
  } | {
1291
1400
  name: string;
1292
1401
  fieldId: string;
@@ -1297,6 +1406,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1297
1406
  fieldId: string;
1298
1407
  type: "running_total";
1299
1408
  displayName: string;
1409
+ } | {
1410
+ name: string;
1411
+ fieldId: string | null;
1412
+ type: "window_function";
1413
+ displayName: string;
1414
+ orderBy: {
1415
+ fieldId: string;
1416
+ order: "asc" | "desc" | null;
1417
+ }[] | null;
1418
+ partitionBy: string[] | null;
1419
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
1420
+ frame: {
1421
+ start: {
1422
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1423
+ offset: number | null;
1424
+ } | null;
1425
+ end: {
1426
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1427
+ offset: number | null;
1428
+ };
1429
+ frameType: "rows" | "range";
1430
+ } | null;
1300
1431
  })[] | null;
1301
1432
  type: import("..").AiResultType.TABLE_RESULT;
1302
1433
  description: string;
@@ -1549,6 +1680,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1549
1680
  fieldId: string;
1550
1681
  type: "percent_of_column_total";
1551
1682
  displayName: string;
1683
+ partitionBy: string[] | null;
1552
1684
  } | {
1553
1685
  name: string;
1554
1686
  fieldId: string;
@@ -1559,6 +1691,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1559
1691
  fieldId: string;
1560
1692
  type: "running_total";
1561
1693
  displayName: string;
1694
+ } | {
1695
+ name: string;
1696
+ fieldId: string | null;
1697
+ type: "window_function";
1698
+ displayName: string;
1699
+ orderBy: {
1700
+ fieldId: string;
1701
+ order: "asc" | "desc" | null;
1702
+ }[] | null;
1703
+ partitionBy: string[] | null;
1704
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
1705
+ frame: {
1706
+ start: {
1707
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1708
+ offset: number | null;
1709
+ } | null;
1710
+ end: {
1711
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
1712
+ offset: number | null;
1713
+ };
1714
+ frameType: "rows" | "range";
1715
+ } | null;
1562
1716
  })[] | null;
1563
1717
  type: import("..").AiResultType.TABLE_RESULT;
1564
1718
  description: string;
@@ -1884,16 +2038,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1884
2038
  } & {
1885
2039
  type: z.ZodLiteral<"percent_of_column_total">;
1886
2040
  fieldId: z.ZodString;
2041
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1887
2042
  }, "strip", z.ZodTypeAny, {
1888
2043
  name: string;
1889
2044
  fieldId: string;
1890
2045
  type: "percent_of_column_total";
1891
2046
  displayName: string;
2047
+ partitionBy: string[] | null;
1892
2048
  }, {
1893
2049
  name: string;
1894
2050
  fieldId: string;
1895
2051
  type: "percent_of_column_total";
1896
2052
  displayName: string;
2053
+ partitionBy: string[] | null;
1897
2054
  }>, z.ZodObject<{
1898
2055
  name: z.ZodString;
1899
2056
  displayName: z.ZodString;
@@ -1926,6 +2083,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
1926
2083
  fieldId: string;
1927
2084
  type: "running_total";
1928
2085
  displayName: string;
2086
+ }>, z.ZodObject<{
2087
+ name: z.ZodString;
2088
+ displayName: z.ZodString;
2089
+ } & {
2090
+ type: z.ZodLiteral<"window_function">;
2091
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
2092
+ fieldId: z.ZodNullable<z.ZodString>;
2093
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
2094
+ fieldId: z.ZodString;
2095
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ fieldId: string;
2098
+ order: "asc" | "desc" | null;
2099
+ }, {
2100
+ fieldId: string;
2101
+ order: "asc" | "desc" | null;
2102
+ }>, "many">>;
2103
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
2104
+ frame: z.ZodNullable<z.ZodObject<{
2105
+ frameType: z.ZodEnum<["rows", "range"]>;
2106
+ start: z.ZodNullable<z.ZodObject<{
2107
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
2108
+ offset: z.ZodNullable<z.ZodNumber>;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2111
+ offset: number | null;
2112
+ }, {
2113
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2114
+ offset: number | null;
2115
+ }>>;
2116
+ end: z.ZodObject<{
2117
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
2118
+ offset: z.ZodNullable<z.ZodNumber>;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2121
+ offset: number | null;
2122
+ }, {
2123
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2124
+ offset: number | null;
2125
+ }>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ start: {
2128
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2129
+ offset: number | null;
2130
+ } | null;
2131
+ end: {
2132
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2133
+ offset: number | null;
2134
+ };
2135
+ frameType: "rows" | "range";
2136
+ }, {
2137
+ start: {
2138
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2139
+ offset: number | null;
2140
+ } | null;
2141
+ end: {
2142
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2143
+ offset: number | null;
2144
+ };
2145
+ frameType: "rows" | "range";
2146
+ }>>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ name: string;
2149
+ fieldId: string | null;
2150
+ type: "window_function";
2151
+ displayName: string;
2152
+ orderBy: {
2153
+ fieldId: string;
2154
+ order: "asc" | "desc" | null;
2155
+ }[] | null;
2156
+ partitionBy: string[] | null;
2157
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
2158
+ frame: {
2159
+ start: {
2160
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2161
+ offset: number | null;
2162
+ } | null;
2163
+ end: {
2164
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2165
+ offset: number | null;
2166
+ };
2167
+ frameType: "rows" | "range";
2168
+ } | null;
2169
+ }, {
2170
+ name: string;
2171
+ fieldId: string | null;
2172
+ type: "window_function";
2173
+ displayName: string;
2174
+ orderBy: {
2175
+ fieldId: string;
2176
+ order: "asc" | "desc" | null;
2177
+ }[] | null;
2178
+ partitionBy: string[] | null;
2179
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
2180
+ frame: {
2181
+ start: {
2182
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2183
+ offset: number | null;
2184
+ } | null;
2185
+ end: {
2186
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
2187
+ offset: number | null;
2188
+ };
2189
+ frameType: "rows" | "range";
2190
+ } | null;
1929
2191
  }>]>, "many">>;
1930
2192
  filters: z.ZodNullable<z.ZodObject<{
1931
2193
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -3074,6 +3336,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3074
3336
  fieldId: string;
3075
3337
  type: "percent_of_column_total";
3076
3338
  displayName: string;
3339
+ partitionBy: string[] | null;
3077
3340
  } | {
3078
3341
  name: string;
3079
3342
  fieldId: string;
@@ -3084,6 +3347,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3084
3347
  fieldId: string;
3085
3348
  type: "running_total";
3086
3349
  displayName: string;
3350
+ } | {
3351
+ name: string;
3352
+ fieldId: string | null;
3353
+ type: "window_function";
3354
+ displayName: string;
3355
+ orderBy: {
3356
+ fieldId: string;
3357
+ order: "asc" | "desc" | null;
3358
+ }[] | null;
3359
+ partitionBy: string[] | null;
3360
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
3361
+ frame: {
3362
+ start: {
3363
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3364
+ offset: number | null;
3365
+ } | null;
3366
+ end: {
3367
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3368
+ offset: number | null;
3369
+ };
3370
+ frameType: "rows" | "range";
3371
+ } | null;
3087
3372
  })[] | null;
3088
3373
  type: import("..").AiResultType.TIME_SERIES_RESULT;
3089
3374
  description: string;
@@ -3340,6 +3625,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3340
3625
  fieldId: string;
3341
3626
  type: "percent_of_column_total";
3342
3627
  displayName: string;
3628
+ partitionBy: string[] | null;
3343
3629
  } | {
3344
3630
  name: string;
3345
3631
  fieldId: string;
@@ -3350,6 +3636,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3350
3636
  fieldId: string;
3351
3637
  type: "running_total";
3352
3638
  displayName: string;
3639
+ } | {
3640
+ name: string;
3641
+ fieldId: string | null;
3642
+ type: "window_function";
3643
+ displayName: string;
3644
+ orderBy: {
3645
+ fieldId: string;
3646
+ order: "asc" | "desc" | null;
3647
+ }[] | null;
3648
+ partitionBy: string[] | null;
3649
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
3650
+ frame: {
3651
+ start: {
3652
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3653
+ offset: number | null;
3654
+ } | null;
3655
+ end: {
3656
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
3657
+ offset: number | null;
3658
+ };
3659
+ frameType: "rows" | "range";
3660
+ } | null;
3353
3661
  })[] | null;
3354
3662
  type: import("..").AiResultType.TIME_SERIES_RESULT;
3355
3663
  description: string;
@@ -3679,16 +3987,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3679
3987
  } & {
3680
3988
  type: z.ZodLiteral<"percent_of_column_total">;
3681
3989
  fieldId: z.ZodString;
3990
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
3682
3991
  }, "strip", z.ZodTypeAny, {
3683
3992
  name: string;
3684
3993
  fieldId: string;
3685
3994
  type: "percent_of_column_total";
3686
3995
  displayName: string;
3996
+ partitionBy: string[] | null;
3687
3997
  }, {
3688
3998
  name: string;
3689
3999
  fieldId: string;
3690
4000
  type: "percent_of_column_total";
3691
4001
  displayName: string;
4002
+ partitionBy: string[] | null;
3692
4003
  }>, z.ZodObject<{
3693
4004
  name: z.ZodString;
3694
4005
  displayName: z.ZodString;
@@ -3721,6 +4032,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
3721
4032
  fieldId: string;
3722
4033
  type: "running_total";
3723
4034
  displayName: string;
4035
+ }>, z.ZodObject<{
4036
+ name: z.ZodString;
4037
+ displayName: z.ZodString;
4038
+ } & {
4039
+ type: z.ZodLiteral<"window_function">;
4040
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
4041
+ fieldId: z.ZodNullable<z.ZodString>;
4042
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
4043
+ fieldId: z.ZodString;
4044
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
4045
+ }, "strip", z.ZodTypeAny, {
4046
+ fieldId: string;
4047
+ order: "asc" | "desc" | null;
4048
+ }, {
4049
+ fieldId: string;
4050
+ order: "asc" | "desc" | null;
4051
+ }>, "many">>;
4052
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
4053
+ frame: z.ZodNullable<z.ZodObject<{
4054
+ frameType: z.ZodEnum<["rows", "range"]>;
4055
+ start: z.ZodNullable<z.ZodObject<{
4056
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
4057
+ offset: z.ZodNullable<z.ZodNumber>;
4058
+ }, "strip", z.ZodTypeAny, {
4059
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4060
+ offset: number | null;
4061
+ }, {
4062
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4063
+ offset: number | null;
4064
+ }>>;
4065
+ end: z.ZodObject<{
4066
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
4067
+ offset: z.ZodNullable<z.ZodNumber>;
4068
+ }, "strip", z.ZodTypeAny, {
4069
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4070
+ offset: number | null;
4071
+ }, {
4072
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4073
+ offset: number | null;
4074
+ }>;
4075
+ }, "strip", z.ZodTypeAny, {
4076
+ start: {
4077
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4078
+ offset: number | null;
4079
+ } | null;
4080
+ end: {
4081
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4082
+ offset: number | null;
4083
+ };
4084
+ frameType: "rows" | "range";
4085
+ }, {
4086
+ start: {
4087
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4088
+ offset: number | null;
4089
+ } | null;
4090
+ end: {
4091
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4092
+ offset: number | null;
4093
+ };
4094
+ frameType: "rows" | "range";
4095
+ }>>;
4096
+ }, "strip", z.ZodTypeAny, {
4097
+ name: string;
4098
+ fieldId: string | null;
4099
+ type: "window_function";
4100
+ displayName: string;
4101
+ orderBy: {
4102
+ fieldId: string;
4103
+ order: "asc" | "desc" | null;
4104
+ }[] | null;
4105
+ partitionBy: string[] | null;
4106
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
4107
+ frame: {
4108
+ start: {
4109
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4110
+ offset: number | null;
4111
+ } | null;
4112
+ end: {
4113
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4114
+ offset: number | null;
4115
+ };
4116
+ frameType: "rows" | "range";
4117
+ } | null;
4118
+ }, {
4119
+ name: string;
4120
+ fieldId: string | null;
4121
+ type: "window_function";
4122
+ displayName: string;
4123
+ orderBy: {
4124
+ fieldId: string;
4125
+ order: "asc" | "desc" | null;
4126
+ }[] | null;
4127
+ partitionBy: string[] | null;
4128
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
4129
+ frame: {
4130
+ start: {
4131
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4132
+ offset: number | null;
4133
+ } | null;
4134
+ end: {
4135
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
4136
+ offset: number | null;
4137
+ };
4138
+ frameType: "rows" | "range";
4139
+ } | null;
3724
4140
  }>]>, "many">>;
3725
4141
  filters: z.ZodNullable<z.ZodObject<{
3726
4142
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
@@ -4872,6 +5288,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
4872
5288
  fieldId: string;
4873
5289
  type: "percent_of_column_total";
4874
5290
  displayName: string;
5291
+ partitionBy: string[] | null;
4875
5292
  } | {
4876
5293
  name: string;
4877
5294
  fieldId: string;
@@ -4882,6 +5299,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
4882
5299
  fieldId: string;
4883
5300
  type: "running_total";
4884
5301
  displayName: string;
5302
+ } | {
5303
+ name: string;
5304
+ fieldId: string | null;
5305
+ type: "window_function";
5306
+ displayName: string;
5307
+ orderBy: {
5308
+ fieldId: string;
5309
+ order: "asc" | "desc" | null;
5310
+ }[] | null;
5311
+ partitionBy: string[] | null;
5312
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5313
+ frame: {
5314
+ start: {
5315
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5316
+ offset: number | null;
5317
+ } | null;
5318
+ end: {
5319
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5320
+ offset: number | null;
5321
+ };
5322
+ frameType: "rows" | "range";
5323
+ } | null;
4885
5324
  })[] | null;
4886
5325
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
4887
5326
  description: string;
@@ -5139,6 +5578,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5139
5578
  fieldId: string;
5140
5579
  type: "percent_of_column_total";
5141
5580
  displayName: string;
5581
+ partitionBy: string[] | null;
5142
5582
  } | {
5143
5583
  name: string;
5144
5584
  fieldId: string;
@@ -5149,6 +5589,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5149
5589
  fieldId: string;
5150
5590
  type: "running_total";
5151
5591
  displayName: string;
5592
+ } | {
5593
+ name: string;
5594
+ fieldId: string | null;
5595
+ type: "window_function";
5596
+ displayName: string;
5597
+ orderBy: {
5598
+ fieldId: string;
5599
+ order: "asc" | "desc" | null;
5600
+ }[] | null;
5601
+ partitionBy: string[] | null;
5602
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5603
+ frame: {
5604
+ start: {
5605
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5606
+ offset: number | null;
5607
+ } | null;
5608
+ end: {
5609
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5610
+ offset: number | null;
5611
+ };
5612
+ frameType: "rows" | "range";
5613
+ } | null;
5152
5614
  })[] | null;
5153
5615
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
5154
5616
  description: string;
@@ -5407,6 +5869,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5407
5869
  fieldId: string;
5408
5870
  type: "percent_of_column_total";
5409
5871
  displayName: string;
5872
+ partitionBy: string[] | null;
5410
5873
  } | {
5411
5874
  name: string;
5412
5875
  fieldId: string;
@@ -5417,6 +5880,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5417
5880
  fieldId: string;
5418
5881
  type: "running_total";
5419
5882
  displayName: string;
5883
+ } | {
5884
+ name: string;
5885
+ fieldId: string | null;
5886
+ type: "window_function";
5887
+ displayName: string;
5888
+ orderBy: {
5889
+ fieldId: string;
5890
+ order: "asc" | "desc" | null;
5891
+ }[] | null;
5892
+ partitionBy: string[] | null;
5893
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
5894
+ frame: {
5895
+ start: {
5896
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5897
+ offset: number | null;
5898
+ } | null;
5899
+ end: {
5900
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
5901
+ offset: number | null;
5902
+ };
5903
+ frameType: "rows" | "range";
5904
+ } | null;
5420
5905
  })[] | null;
5421
5906
  type: import("..").AiResultType.TABLE_RESULT;
5422
5907
  description: string;
@@ -5670,6 +6155,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5670
6155
  fieldId: string;
5671
6156
  type: "percent_of_column_total";
5672
6157
  displayName: string;
6158
+ partitionBy: string[] | null;
5673
6159
  } | {
5674
6160
  name: string;
5675
6161
  fieldId: string;
@@ -5680,6 +6166,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5680
6166
  fieldId: string;
5681
6167
  type: "running_total";
5682
6168
  displayName: string;
6169
+ } | {
6170
+ name: string;
6171
+ fieldId: string | null;
6172
+ type: "window_function";
6173
+ displayName: string;
6174
+ orderBy: {
6175
+ fieldId: string;
6176
+ order: "asc" | "desc" | null;
6177
+ }[] | null;
6178
+ partitionBy: string[] | null;
6179
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6180
+ frame: {
6181
+ start: {
6182
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6183
+ offset: number | null;
6184
+ } | null;
6185
+ end: {
6186
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6187
+ offset: number | null;
6188
+ };
6189
+ frameType: "rows" | "range";
6190
+ } | null;
5683
6191
  })[] | null;
5684
6192
  type: import("..").AiResultType.TIME_SERIES_RESULT;
5685
6193
  description: string;
@@ -5937,6 +6445,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5937
6445
  fieldId: string;
5938
6446
  type: "percent_of_column_total";
5939
6447
  displayName: string;
6448
+ partitionBy: string[] | null;
5940
6449
  } | {
5941
6450
  name: string;
5942
6451
  fieldId: string;
@@ -5947,6 +6456,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
5947
6456
  fieldId: string;
5948
6457
  type: "running_total";
5949
6458
  displayName: string;
6459
+ } | {
6460
+ name: string;
6461
+ fieldId: string | null;
6462
+ type: "window_function";
6463
+ displayName: string;
6464
+ orderBy: {
6465
+ fieldId: string;
6466
+ order: "asc" | "desc" | null;
6467
+ }[] | null;
6468
+ partitionBy: string[] | null;
6469
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6470
+ frame: {
6471
+ start: {
6472
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6473
+ offset: number | null;
6474
+ } | null;
6475
+ end: {
6476
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6477
+ offset: number | null;
6478
+ };
6479
+ frameType: "rows" | "range";
6480
+ } | null;
5950
6481
  })[] | null;
5951
6482
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
5952
6483
  description: string;
@@ -6204,6 +6735,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6204
6735
  fieldId: string;
6205
6736
  type: "percent_of_column_total";
6206
6737
  displayName: string;
6738
+ partitionBy: string[] | null;
6207
6739
  } | {
6208
6740
  name: string;
6209
6741
  fieldId: string;
@@ -6214,6 +6746,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6214
6746
  fieldId: string;
6215
6747
  type: "running_total";
6216
6748
  displayName: string;
6749
+ } | {
6750
+ name: string;
6751
+ fieldId: string | null;
6752
+ type: "window_function";
6753
+ displayName: string;
6754
+ orderBy: {
6755
+ fieldId: string;
6756
+ order: "asc" | "desc" | null;
6757
+ }[] | null;
6758
+ partitionBy: string[] | null;
6759
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
6760
+ frame: {
6761
+ start: {
6762
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6763
+ offset: number | null;
6764
+ } | null;
6765
+ end: {
6766
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
6767
+ offset: number | null;
6768
+ };
6769
+ frameType: "rows" | "range";
6770
+ } | null;
6217
6771
  })[] | null;
6218
6772
  type: import("..").AiResultType.TABLE_RESULT;
6219
6773
  description: string;
@@ -6466,6 +7020,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6466
7020
  fieldId: string;
6467
7021
  type: "percent_of_column_total";
6468
7022
  displayName: string;
7023
+ partitionBy: string[] | null;
6469
7024
  } | {
6470
7025
  name: string;
6471
7026
  fieldId: string;
@@ -6476,6 +7031,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6476
7031
  fieldId: string;
6477
7032
  type: "running_total";
6478
7033
  displayName: string;
7034
+ } | {
7035
+ name: string;
7036
+ fieldId: string | null;
7037
+ type: "window_function";
7038
+ displayName: string;
7039
+ orderBy: {
7040
+ fieldId: string;
7041
+ order: "asc" | "desc" | null;
7042
+ }[] | null;
7043
+ partitionBy: string[] | null;
7044
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7045
+ frame: {
7046
+ start: {
7047
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7048
+ offset: number | null;
7049
+ } | null;
7050
+ end: {
7051
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7052
+ offset: number | null;
7053
+ };
7054
+ frameType: "rows" | "range";
7055
+ } | null;
6479
7056
  })[] | null;
6480
7057
  type: import("..").AiResultType.TIME_SERIES_RESULT;
6481
7058
  description: string;
@@ -6732,6 +7309,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6732
7309
  fieldId: string;
6733
7310
  type: "percent_of_column_total";
6734
7311
  displayName: string;
7312
+ partitionBy: string[] | null;
6735
7313
  } | {
6736
7314
  name: string;
6737
7315
  fieldId: string;
@@ -6742,6 +7320,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
6742
7320
  fieldId: string;
6743
7321
  type: "running_total";
6744
7322
  displayName: string;
7323
+ } | {
7324
+ name: string;
7325
+ fieldId: string | null;
7326
+ type: "window_function";
7327
+ displayName: string;
7328
+ orderBy: {
7329
+ fieldId: string;
7330
+ order: "asc" | "desc" | null;
7331
+ }[] | null;
7332
+ partitionBy: string[] | null;
7333
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7334
+ frame: {
7335
+ start: {
7336
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7337
+ offset: number | null;
7338
+ } | null;
7339
+ end: {
7340
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7341
+ offset: number | null;
7342
+ };
7343
+ frameType: "rows" | "range";
7344
+ } | null;
6745
7345
  })[] | null;
6746
7346
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
6747
7347
  description: string;
@@ -7005,6 +7605,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7005
7605
  fieldId: string;
7006
7606
  type: "percent_of_column_total";
7007
7607
  displayName: string;
7608
+ partitionBy: string[] | null;
7008
7609
  } | {
7009
7610
  name: string;
7010
7611
  fieldId: string;
@@ -7015,6 +7616,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7015
7616
  fieldId: string;
7016
7617
  type: "running_total";
7017
7618
  displayName: string;
7619
+ } | {
7620
+ name: string;
7621
+ fieldId: string | null;
7622
+ type: "window_function";
7623
+ displayName: string;
7624
+ orderBy: {
7625
+ fieldId: string;
7626
+ order: "asc" | "desc" | null;
7627
+ }[] | null;
7628
+ partitionBy: string[] | null;
7629
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7630
+ frame: {
7631
+ start: {
7632
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7633
+ offset: number | null;
7634
+ } | null;
7635
+ end: {
7636
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7637
+ offset: number | null;
7638
+ };
7639
+ frameType: "rows" | "range";
7640
+ } | null;
7018
7641
  })[] | null;
7019
7642
  type: import("..").AiResultType.TABLE_RESULT;
7020
7643
  description: string;
@@ -7268,6 +7891,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7268
7891
  fieldId: string;
7269
7892
  type: "percent_of_column_total";
7270
7893
  displayName: string;
7894
+ partitionBy: string[] | null;
7271
7895
  } | {
7272
7896
  name: string;
7273
7897
  fieldId: string;
@@ -7278,6 +7902,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7278
7902
  fieldId: string;
7279
7903
  type: "running_total";
7280
7904
  displayName: string;
7905
+ } | {
7906
+ name: string;
7907
+ fieldId: string | null;
7908
+ type: "window_function";
7909
+ displayName: string;
7910
+ orderBy: {
7911
+ fieldId: string;
7912
+ order: "asc" | "desc" | null;
7913
+ }[] | null;
7914
+ partitionBy: string[] | null;
7915
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
7916
+ frame: {
7917
+ start: {
7918
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7919
+ offset: number | null;
7920
+ } | null;
7921
+ end: {
7922
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
7923
+ offset: number | null;
7924
+ };
7925
+ frameType: "rows" | "range";
7926
+ } | null;
7281
7927
  })[] | null;
7282
7928
  type: import("..").AiResultType.TIME_SERIES_RESULT;
7283
7929
  description: string;
@@ -7535,6 +8181,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7535
8181
  fieldId: string;
7536
8182
  type: "percent_of_column_total";
7537
8183
  displayName: string;
8184
+ partitionBy: string[] | null;
7538
8185
  } | {
7539
8186
  name: string;
7540
8187
  fieldId: string;
@@ -7545,6 +8192,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7545
8192
  fieldId: string;
7546
8193
  type: "running_total";
7547
8194
  displayName: string;
8195
+ } | {
8196
+ name: string;
8197
+ fieldId: string | null;
8198
+ type: "window_function";
8199
+ displayName: string;
8200
+ orderBy: {
8201
+ fieldId: string;
8202
+ order: "asc" | "desc" | null;
8203
+ }[] | null;
8204
+ partitionBy: string[] | null;
8205
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
8206
+ frame: {
8207
+ start: {
8208
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8209
+ offset: number | null;
8210
+ } | null;
8211
+ end: {
8212
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8213
+ offset: number | null;
8214
+ };
8215
+ frameType: "rows" | "range";
8216
+ } | null;
7548
8217
  })[] | null;
7549
8218
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
7550
8219
  description: string;
@@ -7807,6 +8476,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7807
8476
  fieldId: string;
7808
8477
  type: "percent_of_column_total";
7809
8478
  displayName: string;
8479
+ partitionBy: string[] | null;
7810
8480
  } | {
7811
8481
  name: string;
7812
8482
  fieldId: string;
@@ -7817,6 +8487,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
7817
8487
  fieldId: string;
7818
8488
  type: "running_total";
7819
8489
  displayName: string;
8490
+ } | {
8491
+ name: string;
8492
+ fieldId: string | null;
8493
+ type: "window_function";
8494
+ displayName: string;
8495
+ orderBy: {
8496
+ fieldId: string;
8497
+ order: "asc" | "desc" | null;
8498
+ }[] | null;
8499
+ partitionBy: string[] | null;
8500
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
8501
+ frame: {
8502
+ start: {
8503
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8504
+ offset: number | null;
8505
+ } | null;
8506
+ end: {
8507
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8508
+ offset: number | null;
8509
+ };
8510
+ frameType: "rows" | "range";
8511
+ } | null;
7820
8512
  })[] | null;
7821
8513
  type: import("..").AiResultType.TABLE_RESULT;
7822
8514
  description: string;
@@ -8069,6 +8761,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
8069
8761
  fieldId: string;
8070
8762
  type: "percent_of_column_total";
8071
8763
  displayName: string;
8764
+ partitionBy: string[] | null;
8072
8765
  } | {
8073
8766
  name: string;
8074
8767
  fieldId: string;
@@ -8079,6 +8772,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
8079
8772
  fieldId: string;
8080
8773
  type: "running_total";
8081
8774
  displayName: string;
8775
+ } | {
8776
+ name: string;
8777
+ fieldId: string | null;
8778
+ type: "window_function";
8779
+ displayName: string;
8780
+ orderBy: {
8781
+ fieldId: string;
8782
+ order: "asc" | "desc" | null;
8783
+ }[] | null;
8784
+ partitionBy: string[] | null;
8785
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
8786
+ frame: {
8787
+ start: {
8788
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8789
+ offset: number | null;
8790
+ } | null;
8791
+ end: {
8792
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
8793
+ offset: number | null;
8794
+ };
8795
+ frameType: "rows" | "range";
8796
+ } | null;
8082
8797
  })[] | null;
8083
8798
  type: import("..").AiResultType.TIME_SERIES_RESULT;
8084
8799
  description: string;
@@ -8335,6 +9050,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
8335
9050
  fieldId: string;
8336
9051
  type: "percent_of_column_total";
8337
9052
  displayName: string;
9053
+ partitionBy: string[] | null;
8338
9054
  } | {
8339
9055
  name: string;
8340
9056
  fieldId: string;
@@ -8345,6 +9061,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
8345
9061
  fieldId: string;
8346
9062
  type: "running_total";
8347
9063
  displayName: string;
9064
+ } | {
9065
+ name: string;
9066
+ fieldId: string | null;
9067
+ type: "window_function";
9068
+ displayName: string;
9069
+ orderBy: {
9070
+ fieldId: string;
9071
+ order: "asc" | "desc" | null;
9072
+ }[] | null;
9073
+ partitionBy: string[] | null;
9074
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
9075
+ frame: {
9076
+ start: {
9077
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9078
+ offset: number | null;
9079
+ } | null;
9080
+ end: {
9081
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
9082
+ offset: number | null;
9083
+ };
9084
+ frameType: "rows" | "range";
9085
+ } | null;
8348
9086
  })[] | null;
8349
9087
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
8350
9088
  description: string;
@@ -11008,16 +11746,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
11008
11746
  } & {
11009
11747
  type: z.ZodLiteral<"percent_of_column_total">;
11010
11748
  fieldId: z.ZodString;
11749
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
11011
11750
  }, "strip", z.ZodTypeAny, {
11012
11751
  name: string;
11013
11752
  fieldId: string;
11014
11753
  type: "percent_of_column_total";
11015
11754
  displayName: string;
11755
+ partitionBy: string[] | null;
11016
11756
  }, {
11017
11757
  name: string;
11018
11758
  fieldId: string;
11019
11759
  type: "percent_of_column_total";
11020
11760
  displayName: string;
11761
+ partitionBy: string[] | null;
11021
11762
  }>, z.ZodObject<{
11022
11763
  name: z.ZodString;
11023
11764
  displayName: z.ZodString;
@@ -11050,6 +11791,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
11050
11791
  fieldId: string;
11051
11792
  type: "running_total";
11052
11793
  displayName: string;
11794
+ }>, z.ZodObject<{
11795
+ name: z.ZodString;
11796
+ displayName: z.ZodString;
11797
+ } & {
11798
+ type: z.ZodLiteral<"window_function">;
11799
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
11800
+ fieldId: z.ZodNullable<z.ZodString>;
11801
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
11802
+ fieldId: z.ZodString;
11803
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
11804
+ }, "strip", z.ZodTypeAny, {
11805
+ fieldId: string;
11806
+ order: "asc" | "desc" | null;
11807
+ }, {
11808
+ fieldId: string;
11809
+ order: "asc" | "desc" | null;
11810
+ }>, "many">>;
11811
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
11812
+ frame: z.ZodNullable<z.ZodObject<{
11813
+ frameType: z.ZodEnum<["rows", "range"]>;
11814
+ start: z.ZodNullable<z.ZodObject<{
11815
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
11816
+ offset: z.ZodNullable<z.ZodNumber>;
11817
+ }, "strip", z.ZodTypeAny, {
11818
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11819
+ offset: number | null;
11820
+ }, {
11821
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11822
+ offset: number | null;
11823
+ }>>;
11824
+ end: z.ZodObject<{
11825
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
11826
+ offset: z.ZodNullable<z.ZodNumber>;
11827
+ }, "strip", z.ZodTypeAny, {
11828
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11829
+ offset: number | null;
11830
+ }, {
11831
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11832
+ offset: number | null;
11833
+ }>;
11834
+ }, "strip", z.ZodTypeAny, {
11835
+ start: {
11836
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11837
+ offset: number | null;
11838
+ } | null;
11839
+ end: {
11840
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11841
+ offset: number | null;
11842
+ };
11843
+ frameType: "rows" | "range";
11844
+ }, {
11845
+ start: {
11846
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11847
+ offset: number | null;
11848
+ } | null;
11849
+ end: {
11850
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11851
+ offset: number | null;
11852
+ };
11853
+ frameType: "rows" | "range";
11854
+ }>>;
11855
+ }, "strip", z.ZodTypeAny, {
11856
+ name: string;
11857
+ fieldId: string | null;
11858
+ type: "window_function";
11859
+ displayName: string;
11860
+ orderBy: {
11861
+ fieldId: string;
11862
+ order: "asc" | "desc" | null;
11863
+ }[] | null;
11864
+ partitionBy: string[] | null;
11865
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
11866
+ frame: {
11867
+ start: {
11868
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11869
+ offset: number | null;
11870
+ } | null;
11871
+ end: {
11872
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11873
+ offset: number | null;
11874
+ };
11875
+ frameType: "rows" | "range";
11876
+ } | null;
11877
+ }, {
11878
+ name: string;
11879
+ fieldId: string | null;
11880
+ type: "window_function";
11881
+ displayName: string;
11882
+ orderBy: {
11883
+ fieldId: string;
11884
+ order: "asc" | "desc" | null;
11885
+ }[] | null;
11886
+ partitionBy: string[] | null;
11887
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
11888
+ frame: {
11889
+ start: {
11890
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11891
+ offset: number | null;
11892
+ } | null;
11893
+ end: {
11894
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
11895
+ offset: number | null;
11896
+ };
11897
+ frameType: "rows" | "range";
11898
+ } | null;
11053
11899
  }>]>, "many">>;
11054
11900
  vizConfig: z.ZodObject<{
11055
11901
  exploreName: z.ZodString;
@@ -12200,6 +13046,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12200
13046
  fieldId: string;
12201
13047
  type: "percent_of_column_total";
12202
13048
  displayName: string;
13049
+ partitionBy: string[] | null;
12203
13050
  } | {
12204
13051
  name: string;
12205
13052
  fieldId: string;
@@ -12210,6 +13057,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12210
13057
  fieldId: string;
12211
13058
  type: "running_total";
12212
13059
  displayName: string;
13060
+ } | {
13061
+ name: string;
13062
+ fieldId: string | null;
13063
+ type: "window_function";
13064
+ displayName: string;
13065
+ orderBy: {
13066
+ fieldId: string;
13067
+ order: "asc" | "desc" | null;
13068
+ }[] | null;
13069
+ partitionBy: string[] | null;
13070
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13071
+ frame: {
13072
+ start: {
13073
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13074
+ offset: number | null;
13075
+ } | null;
13076
+ end: {
13077
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13078
+ offset: number | null;
13079
+ };
13080
+ frameType: "rows" | "range";
13081
+ } | null;
12213
13082
  })[] | null;
12214
13083
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
12215
13084
  description: string;
@@ -12468,6 +13337,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12468
13337
  fieldId: string;
12469
13338
  type: "percent_of_column_total";
12470
13339
  displayName: string;
13340
+ partitionBy: string[] | null;
12471
13341
  } | {
12472
13342
  name: string;
12473
13343
  fieldId: string;
@@ -12478,6 +13348,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12478
13348
  fieldId: string;
12479
13349
  type: "running_total";
12480
13350
  displayName: string;
13351
+ } | {
13352
+ name: string;
13353
+ fieldId: string | null;
13354
+ type: "window_function";
13355
+ displayName: string;
13356
+ orderBy: {
13357
+ fieldId: string;
13358
+ order: "asc" | "desc" | null;
13359
+ }[] | null;
13360
+ partitionBy: string[] | null;
13361
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13362
+ frame: {
13363
+ start: {
13364
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13365
+ offset: number | null;
13366
+ } | null;
13367
+ end: {
13368
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13369
+ offset: number | null;
13370
+ };
13371
+ frameType: "rows" | "range";
13372
+ } | null;
12481
13373
  })[] | null;
12482
13374
  type: import("..").AiResultType.VERTICAL_BAR_RESULT;
12483
13375
  description: string;
@@ -12811,16 +13703,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12811
13703
  } & {
12812
13704
  type: z.ZodLiteral<"percent_of_column_total">;
12813
13705
  fieldId: z.ZodString;
13706
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
12814
13707
  }, "strip", z.ZodTypeAny, {
12815
13708
  name: string;
12816
13709
  fieldId: string;
12817
13710
  type: "percent_of_column_total";
12818
13711
  displayName: string;
13712
+ partitionBy: string[] | null;
12819
13713
  }, {
12820
13714
  name: string;
12821
13715
  fieldId: string;
12822
13716
  type: "percent_of_column_total";
12823
13717
  displayName: string;
13718
+ partitionBy: string[] | null;
12824
13719
  }>, z.ZodObject<{
12825
13720
  name: z.ZodString;
12826
13721
  displayName: z.ZodString;
@@ -12853,6 +13748,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
12853
13748
  fieldId: string;
12854
13749
  type: "running_total";
12855
13750
  displayName: string;
13751
+ }>, z.ZodObject<{
13752
+ name: z.ZodString;
13753
+ displayName: z.ZodString;
13754
+ } & {
13755
+ type: z.ZodLiteral<"window_function">;
13756
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
13757
+ fieldId: z.ZodNullable<z.ZodString>;
13758
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
13759
+ fieldId: z.ZodString;
13760
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
13761
+ }, "strip", z.ZodTypeAny, {
13762
+ fieldId: string;
13763
+ order: "asc" | "desc" | null;
13764
+ }, {
13765
+ fieldId: string;
13766
+ order: "asc" | "desc" | null;
13767
+ }>, "many">>;
13768
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
13769
+ frame: z.ZodNullable<z.ZodObject<{
13770
+ frameType: z.ZodEnum<["rows", "range"]>;
13771
+ start: z.ZodNullable<z.ZodObject<{
13772
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
13773
+ offset: z.ZodNullable<z.ZodNumber>;
13774
+ }, "strip", z.ZodTypeAny, {
13775
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13776
+ offset: number | null;
13777
+ }, {
13778
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13779
+ offset: number | null;
13780
+ }>>;
13781
+ end: z.ZodObject<{
13782
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
13783
+ offset: z.ZodNullable<z.ZodNumber>;
13784
+ }, "strip", z.ZodTypeAny, {
13785
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13786
+ offset: number | null;
13787
+ }, {
13788
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13789
+ offset: number | null;
13790
+ }>;
13791
+ }, "strip", z.ZodTypeAny, {
13792
+ start: {
13793
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13794
+ offset: number | null;
13795
+ } | null;
13796
+ end: {
13797
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13798
+ offset: number | null;
13799
+ };
13800
+ frameType: "rows" | "range";
13801
+ }, {
13802
+ start: {
13803
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13804
+ offset: number | null;
13805
+ } | null;
13806
+ end: {
13807
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13808
+ offset: number | null;
13809
+ };
13810
+ frameType: "rows" | "range";
13811
+ }>>;
13812
+ }, "strip", z.ZodTypeAny, {
13813
+ name: string;
13814
+ fieldId: string | null;
13815
+ type: "window_function";
13816
+ displayName: string;
13817
+ orderBy: {
13818
+ fieldId: string;
13819
+ order: "asc" | "desc" | null;
13820
+ }[] | null;
13821
+ partitionBy: string[] | null;
13822
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13823
+ frame: {
13824
+ start: {
13825
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13826
+ offset: number | null;
13827
+ } | null;
13828
+ end: {
13829
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13830
+ offset: number | null;
13831
+ };
13832
+ frameType: "rows" | "range";
13833
+ } | null;
13834
+ }, {
13835
+ name: string;
13836
+ fieldId: string | null;
13837
+ type: "window_function";
13838
+ displayName: string;
13839
+ orderBy: {
13840
+ fieldId: string;
13841
+ order: "asc" | "desc" | null;
13842
+ }[] | null;
13843
+ partitionBy: string[] | null;
13844
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
13845
+ frame: {
13846
+ start: {
13847
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13848
+ offset: number | null;
13849
+ } | null;
13850
+ end: {
13851
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
13852
+ offset: number | null;
13853
+ };
13854
+ frameType: "rows" | "range";
13855
+ } | null;
12856
13856
  }>]>, "many">>;
12857
13857
  vizConfig: z.ZodObject<{
12858
13858
  exploreName: z.ZodString;
@@ -13988,6 +14988,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
13988
14988
  fieldId: string;
13989
14989
  type: "percent_of_column_total";
13990
14990
  displayName: string;
14991
+ partitionBy: string[] | null;
13991
14992
  } | {
13992
14993
  name: string;
13993
14994
  fieldId: string;
@@ -13998,6 +14999,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
13998
14999
  fieldId: string;
13999
15000
  type: "running_total";
14000
15001
  displayName: string;
15002
+ } | {
15003
+ name: string;
15004
+ fieldId: string | null;
15005
+ type: "window_function";
15006
+ displayName: string;
15007
+ orderBy: {
15008
+ fieldId: string;
15009
+ order: "asc" | "desc" | null;
15010
+ }[] | null;
15011
+ partitionBy: string[] | null;
15012
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15013
+ frame: {
15014
+ start: {
15015
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15016
+ offset: number | null;
15017
+ } | null;
15018
+ end: {
15019
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15020
+ offset: number | null;
15021
+ };
15022
+ frameType: "rows" | "range";
15023
+ } | null;
14001
15024
  })[] | null;
14002
15025
  type: import("..").AiResultType.TABLE_RESULT;
14003
15026
  description: string;
@@ -14251,6 +15274,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
14251
15274
  fieldId: string;
14252
15275
  type: "percent_of_column_total";
14253
15276
  displayName: string;
15277
+ partitionBy: string[] | null;
14254
15278
  } | {
14255
15279
  name: string;
14256
15280
  fieldId: string;
@@ -14261,6 +15285,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
14261
15285
  fieldId: string;
14262
15286
  type: "running_total";
14263
15287
  displayName: string;
15288
+ } | {
15289
+ name: string;
15290
+ fieldId: string | null;
15291
+ type: "window_function";
15292
+ displayName: string;
15293
+ orderBy: {
15294
+ fieldId: string;
15295
+ order: "asc" | "desc" | null;
15296
+ }[] | null;
15297
+ partitionBy: string[] | null;
15298
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15299
+ frame: {
15300
+ start: {
15301
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15302
+ offset: number | null;
15303
+ } | null;
15304
+ end: {
15305
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15306
+ offset: number | null;
15307
+ };
15308
+ frameType: "rows" | "range";
15309
+ } | null;
14264
15310
  })[] | null;
14265
15311
  type: import("..").AiResultType.TABLE_RESULT;
14266
15312
  description: string;
@@ -14589,16 +15635,19 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
14589
15635
  } & {
14590
15636
  type: z.ZodLiteral<"percent_of_column_total">;
14591
15637
  fieldId: z.ZodString;
15638
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
14592
15639
  }, "strip", z.ZodTypeAny, {
14593
15640
  name: string;
14594
15641
  fieldId: string;
14595
15642
  type: "percent_of_column_total";
14596
15643
  displayName: string;
15644
+ partitionBy: string[] | null;
14597
15645
  }, {
14598
15646
  name: string;
14599
15647
  fieldId: string;
14600
15648
  type: "percent_of_column_total";
14601
15649
  displayName: string;
15650
+ partitionBy: string[] | null;
14602
15651
  }>, z.ZodObject<{
14603
15652
  name: z.ZodString;
14604
15653
  displayName: z.ZodString;
@@ -14631,6 +15680,111 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
14631
15680
  fieldId: string;
14632
15681
  type: "running_total";
14633
15682
  displayName: string;
15683
+ }>, z.ZodObject<{
15684
+ name: z.ZodString;
15685
+ displayName: z.ZodString;
15686
+ } & {
15687
+ type: z.ZodLiteral<"window_function">;
15688
+ windowFunction: z.ZodEnum<["row_number", "percent_rank", "sum", "avg", "count", "min", "max"]>;
15689
+ fieldId: z.ZodNullable<z.ZodString>;
15690
+ orderBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
15691
+ fieldId: z.ZodString;
15692
+ order: z.ZodNullable<z.ZodEnum<["asc", "desc"]>>;
15693
+ }, "strip", z.ZodTypeAny, {
15694
+ fieldId: string;
15695
+ order: "asc" | "desc" | null;
15696
+ }, {
15697
+ fieldId: string;
15698
+ order: "asc" | "desc" | null;
15699
+ }>, "many">>;
15700
+ partitionBy: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
15701
+ frame: z.ZodNullable<z.ZodObject<{
15702
+ frameType: z.ZodEnum<["rows", "range"]>;
15703
+ start: z.ZodNullable<z.ZodObject<{
15704
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
15705
+ offset: z.ZodNullable<z.ZodNumber>;
15706
+ }, "strip", z.ZodTypeAny, {
15707
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15708
+ offset: number | null;
15709
+ }, {
15710
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15711
+ offset: number | null;
15712
+ }>>;
15713
+ end: z.ZodObject<{
15714
+ type: z.ZodEnum<["unbounded_preceding", "preceding", "current_row", "following", "unbounded_following"]>;
15715
+ offset: z.ZodNullable<z.ZodNumber>;
15716
+ }, "strip", z.ZodTypeAny, {
15717
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15718
+ offset: number | null;
15719
+ }, {
15720
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15721
+ offset: number | null;
15722
+ }>;
15723
+ }, "strip", z.ZodTypeAny, {
15724
+ start: {
15725
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15726
+ offset: number | null;
15727
+ } | null;
15728
+ end: {
15729
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15730
+ offset: number | null;
15731
+ };
15732
+ frameType: "rows" | "range";
15733
+ }, {
15734
+ start: {
15735
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15736
+ offset: number | null;
15737
+ } | null;
15738
+ end: {
15739
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15740
+ offset: number | null;
15741
+ };
15742
+ frameType: "rows" | "range";
15743
+ }>>;
15744
+ }, "strip", z.ZodTypeAny, {
15745
+ name: string;
15746
+ fieldId: string | null;
15747
+ type: "window_function";
15748
+ displayName: string;
15749
+ orderBy: {
15750
+ fieldId: string;
15751
+ order: "asc" | "desc" | null;
15752
+ }[] | null;
15753
+ partitionBy: string[] | null;
15754
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15755
+ frame: {
15756
+ start: {
15757
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15758
+ offset: number | null;
15759
+ } | null;
15760
+ end: {
15761
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15762
+ offset: number | null;
15763
+ };
15764
+ frameType: "rows" | "range";
15765
+ } | null;
15766
+ }, {
15767
+ name: string;
15768
+ fieldId: string | null;
15769
+ type: "window_function";
15770
+ displayName: string;
15771
+ orderBy: {
15772
+ fieldId: string;
15773
+ order: "asc" | "desc" | null;
15774
+ }[] | null;
15775
+ partitionBy: string[] | null;
15776
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
15777
+ frame: {
15778
+ start: {
15779
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15780
+ offset: number | null;
15781
+ } | null;
15782
+ end: {
15783
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
15784
+ offset: number | null;
15785
+ };
15786
+ frameType: "rows" | "range";
15787
+ } | null;
14634
15788
  }>]>, "many">>;
14635
15789
  vizConfig: z.ZodObject<{
14636
15790
  exploreName: z.ZodString;
@@ -15778,6 +16932,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
15778
16932
  fieldId: string;
15779
16933
  type: "percent_of_column_total";
15780
16934
  displayName: string;
16935
+ partitionBy: string[] | null;
15781
16936
  } | {
15782
16937
  name: string;
15783
16938
  fieldId: string;
@@ -15788,6 +16943,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
15788
16943
  fieldId: string;
15789
16944
  type: "running_total";
15790
16945
  displayName: string;
16946
+ } | {
16947
+ name: string;
16948
+ fieldId: string | null;
16949
+ type: "window_function";
16950
+ displayName: string;
16951
+ orderBy: {
16952
+ fieldId: string;
16953
+ order: "asc" | "desc" | null;
16954
+ }[] | null;
16955
+ partitionBy: string[] | null;
16956
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
16957
+ frame: {
16958
+ start: {
16959
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16960
+ offset: number | null;
16961
+ } | null;
16962
+ end: {
16963
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
16964
+ offset: number | null;
16965
+ };
16966
+ frameType: "rows" | "range";
16967
+ } | null;
15791
16968
  })[] | null;
15792
16969
  type: import("..").AiResultType.TIME_SERIES_RESULT;
15793
16970
  description: string;
@@ -16045,6 +17222,7 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
16045
17222
  fieldId: string;
16046
17223
  type: "percent_of_column_total";
16047
17224
  displayName: string;
17225
+ partitionBy: string[] | null;
16048
17226
  } | {
16049
17227
  name: string;
16050
17228
  fieldId: string;
@@ -16055,6 +17233,28 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
16055
17233
  fieldId: string;
16056
17234
  type: "running_total";
16057
17235
  displayName: string;
17236
+ } | {
17237
+ name: string;
17238
+ fieldId: string | null;
17239
+ type: "window_function";
17240
+ displayName: string;
17241
+ orderBy: {
17242
+ fieldId: string;
17243
+ order: "asc" | "desc" | null;
17244
+ }[] | null;
17245
+ partitionBy: string[] | null;
17246
+ windowFunction: "row_number" | "percent_rank" | "sum" | "avg" | "count" | "min" | "max";
17247
+ frame: {
17248
+ start: {
17249
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17250
+ offset: number | null;
17251
+ } | null;
17252
+ end: {
17253
+ type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
17254
+ offset: number | null;
17255
+ };
17256
+ frameType: "rows" | "range";
17257
+ } | null;
16058
17258
  })[] | null;
16059
17259
  type: import("..").AiResultType.TIME_SERIES_RESULT;
16060
17260
  description: string;