@lightdash/common 1.136.1 → 1.137.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/compiler/parameters.d.ts +11 -1
- package/dist/cjs/compiler/parameters.d.ts.map +1 -1
- package/dist/cjs/compiler/parameters.js +35 -1
- package/dist/cjs/compiler/parameters.js.map +1 -1
- package/dist/cjs/compiler/parameters.test.js +58 -0
- package/dist/cjs/compiler/parameters.test.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +155 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +22 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts +9 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js +3 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +25 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +13 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +166 -3
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/compiler/parameters.d.ts +11 -1
- package/dist/esm/compiler/parameters.d.ts.map +1 -1
- package/dist/esm/compiler/parameters.js +31 -0
- package/dist/esm/compiler/parameters.js.map +1 -1
- package/dist/esm/compiler/parameters.test.js +59 -1
- package/dist/esm/compiler/parameters.test.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +1 -0
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +155 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +22 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts +9 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js +3 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +25 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +13 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +1 -0
- package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/esm/schemas/json/mcp-tools-1.0.json +166 -3
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/compiler/parameters.d.ts +11 -1
- package/dist/types/compiler/parameters.d.ts.map +1 -1
- package/dist/types/compiler/parameters.js +31 -0
- package/dist/types/compiler/parameters.js.map +1 -1
- package/dist/types/compiler/parameters.test.js +59 -1
- package/dist/types/compiler/parameters.test.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +1 -0
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +155 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +22 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts +9 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js +3 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +25 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +13 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +1 -0
- package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/types/schemas/json/mcp-tools-1.0.json +166 -3
- package/package.json +1 -1
|
@@ -60,6 +60,53 @@ export declare const getMetadataInputSchema: z.ZodObject<{
|
|
|
60
60
|
})[];
|
|
61
61
|
}>;
|
|
62
62
|
export type ToolGetMetadataArgs = z.infer<typeof getMetadataInputSchema>;
|
|
63
|
+
declare const getMetadataParameterSchema: z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
description: z.ZodNullable<z.ZodString>;
|
|
67
|
+
type: z.ZodEnum<["string", "number", "date"]>;
|
|
68
|
+
default: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
69
|
+
multiple: z.ZodBoolean;
|
|
70
|
+
allowCustomValues: z.ZodBoolean;
|
|
71
|
+
options: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
72
|
+
optionsFromDimension: z.ZodNullable<z.ZodObject<{
|
|
73
|
+
model: z.ZodString;
|
|
74
|
+
dimension: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
model: string;
|
|
77
|
+
dimension: string;
|
|
78
|
+
}, {
|
|
79
|
+
model: string;
|
|
80
|
+
dimension: string;
|
|
81
|
+
}>>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
name: string;
|
|
84
|
+
label: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
type: "date" | "number" | "string";
|
|
87
|
+
default: string | number | string[] | number[] | null;
|
|
88
|
+
multiple: boolean;
|
|
89
|
+
allowCustomValues: boolean;
|
|
90
|
+
options: (string | number)[] | null;
|
|
91
|
+
optionsFromDimension: {
|
|
92
|
+
model: string;
|
|
93
|
+
dimension: string;
|
|
94
|
+
} | null;
|
|
95
|
+
}, {
|
|
96
|
+
name: string;
|
|
97
|
+
label: string;
|
|
98
|
+
description: string | null;
|
|
99
|
+
type: "date" | "number" | "string";
|
|
100
|
+
default: string | number | string[] | number[] | null;
|
|
101
|
+
multiple: boolean;
|
|
102
|
+
allowCustomValues: boolean;
|
|
103
|
+
options: (string | number)[] | null;
|
|
104
|
+
optionsFromDimension: {
|
|
105
|
+
model: string;
|
|
106
|
+
dimension: string;
|
|
107
|
+
} | null;
|
|
108
|
+
}>;
|
|
109
|
+
export type GetMetadataParameter = z.infer<typeof getMetadataParameterSchema>;
|
|
63
110
|
export declare const getMetadataResultSchema: z.ZodObject<{
|
|
64
111
|
explores: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
65
112
|
exploreId: z.ZodString;
|
|
@@ -94,6 +141,52 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
94
141
|
settings?: unknown;
|
|
95
142
|
required: boolean;
|
|
96
143
|
}>, "many">;
|
|
144
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
label: z.ZodString;
|
|
147
|
+
description: z.ZodNullable<z.ZodString>;
|
|
148
|
+
type: z.ZodEnum<["string", "number", "date"]>;
|
|
149
|
+
default: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
150
|
+
multiple: z.ZodBoolean;
|
|
151
|
+
allowCustomValues: z.ZodBoolean;
|
|
152
|
+
options: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
153
|
+
optionsFromDimension: z.ZodNullable<z.ZodObject<{
|
|
154
|
+
model: z.ZodString;
|
|
155
|
+
dimension: z.ZodString;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
model: string;
|
|
158
|
+
dimension: string;
|
|
159
|
+
}, {
|
|
160
|
+
model: string;
|
|
161
|
+
dimension: string;
|
|
162
|
+
}>>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
name: string;
|
|
165
|
+
label: string;
|
|
166
|
+
description: string | null;
|
|
167
|
+
type: "date" | "number" | "string";
|
|
168
|
+
default: string | number | string[] | number[] | null;
|
|
169
|
+
multiple: boolean;
|
|
170
|
+
allowCustomValues: boolean;
|
|
171
|
+
options: (string | number)[] | null;
|
|
172
|
+
optionsFromDimension: {
|
|
173
|
+
model: string;
|
|
174
|
+
dimension: string;
|
|
175
|
+
} | null;
|
|
176
|
+
}, {
|
|
177
|
+
name: string;
|
|
178
|
+
label: string;
|
|
179
|
+
description: string | null;
|
|
180
|
+
type: "date" | "number" | "string";
|
|
181
|
+
default: string | number | string[] | number[] | null;
|
|
182
|
+
multiple: boolean;
|
|
183
|
+
allowCustomValues: boolean;
|
|
184
|
+
options: (string | number)[] | null;
|
|
185
|
+
optionsFromDimension: {
|
|
186
|
+
model: string;
|
|
187
|
+
dimension: string;
|
|
188
|
+
} | null;
|
|
189
|
+
}>, "many">;
|
|
97
190
|
baseDimensions: z.ZodObject<{
|
|
98
191
|
count: z.ZodNumber;
|
|
99
192
|
fieldIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -131,6 +224,20 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
131
224
|
settings?: unknown;
|
|
132
225
|
required: boolean;
|
|
133
226
|
}[];
|
|
227
|
+
parameters: {
|
|
228
|
+
name: string;
|
|
229
|
+
label: string;
|
|
230
|
+
description: string | null;
|
|
231
|
+
type: "date" | "number" | "string";
|
|
232
|
+
default: string | number | string[] | number[] | null;
|
|
233
|
+
multiple: boolean;
|
|
234
|
+
allowCustomValues: boolean;
|
|
235
|
+
options: (string | number)[] | null;
|
|
236
|
+
optionsFromDimension: {
|
|
237
|
+
model: string;
|
|
238
|
+
dimension: string;
|
|
239
|
+
} | null;
|
|
240
|
+
}[];
|
|
134
241
|
baseDimensions: {
|
|
135
242
|
count: number;
|
|
136
243
|
fieldIds: string[];
|
|
@@ -156,6 +263,20 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
156
263
|
settings?: unknown;
|
|
157
264
|
required: boolean;
|
|
158
265
|
}[];
|
|
266
|
+
parameters: {
|
|
267
|
+
name: string;
|
|
268
|
+
label: string;
|
|
269
|
+
description: string | null;
|
|
270
|
+
type: "date" | "number" | "string";
|
|
271
|
+
default: string | number | string[] | number[] | null;
|
|
272
|
+
multiple: boolean;
|
|
273
|
+
allowCustomValues: boolean;
|
|
274
|
+
options: (string | number)[] | null;
|
|
275
|
+
optionsFromDimension: {
|
|
276
|
+
model: string;
|
|
277
|
+
dimension: string;
|
|
278
|
+
} | null;
|
|
279
|
+
}[];
|
|
159
280
|
baseDimensions: {
|
|
160
281
|
count: number;
|
|
161
282
|
fieldIds: string[];
|
|
@@ -190,6 +311,7 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
190
311
|
caseSensitiveFilters: z.ZodNullable<z.ZodBoolean>;
|
|
191
312
|
defaultTimeDimension: z.ZodNullable<z.ZodString>;
|
|
192
313
|
defaultTimeDimensionGranularity: z.ZodNullable<z.ZodString>;
|
|
314
|
+
requiredParameters: z.ZodArray<z.ZodString, "many">;
|
|
193
315
|
description: z.ZodNullable<z.ZodString>;
|
|
194
316
|
hint: z.ZodNullable<z.ZodString>;
|
|
195
317
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -205,6 +327,7 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
205
327
|
caseSensitiveFilters: boolean | null;
|
|
206
328
|
defaultTimeDimension: string | null;
|
|
207
329
|
defaultTimeDimensionGranularity: string | null;
|
|
330
|
+
requiredParameters: string[];
|
|
208
331
|
description: string | null;
|
|
209
332
|
hint: string | null;
|
|
210
333
|
}, {
|
|
@@ -220,6 +343,7 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
220
343
|
caseSensitiveFilters: boolean | null;
|
|
221
344
|
defaultTimeDimension: string | null;
|
|
222
345
|
defaultTimeDimensionGranularity: string | null;
|
|
346
|
+
requiredParameters: string[];
|
|
223
347
|
description: string | null;
|
|
224
348
|
hint: string | null;
|
|
225
349
|
}>, z.ZodObject<{
|
|
@@ -256,6 +380,20 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
256
380
|
settings?: unknown;
|
|
257
381
|
required: boolean;
|
|
258
382
|
}[];
|
|
383
|
+
parameters: {
|
|
384
|
+
name: string;
|
|
385
|
+
label: string;
|
|
386
|
+
description: string | null;
|
|
387
|
+
type: "date" | "number" | "string";
|
|
388
|
+
default: string | number | string[] | number[] | null;
|
|
389
|
+
multiple: boolean;
|
|
390
|
+
allowCustomValues: boolean;
|
|
391
|
+
options: (string | number)[] | null;
|
|
392
|
+
optionsFromDimension: {
|
|
393
|
+
model: string;
|
|
394
|
+
dimension: string;
|
|
395
|
+
} | null;
|
|
396
|
+
}[];
|
|
259
397
|
baseDimensions: {
|
|
260
398
|
count: number;
|
|
261
399
|
fieldIds: string[];
|
|
@@ -282,6 +420,7 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
282
420
|
caseSensitiveFilters: boolean | null;
|
|
283
421
|
defaultTimeDimension: string | null;
|
|
284
422
|
defaultTimeDimensionGranularity: string | null;
|
|
423
|
+
requiredParameters: string[];
|
|
285
424
|
description: string | null;
|
|
286
425
|
hint: string | null;
|
|
287
426
|
} | {
|
|
@@ -308,6 +447,20 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
308
447
|
settings?: unknown;
|
|
309
448
|
required: boolean;
|
|
310
449
|
}[];
|
|
450
|
+
parameters: {
|
|
451
|
+
name: string;
|
|
452
|
+
label: string;
|
|
453
|
+
description: string | null;
|
|
454
|
+
type: "date" | "number" | "string";
|
|
455
|
+
default: string | number | string[] | number[] | null;
|
|
456
|
+
multiple: boolean;
|
|
457
|
+
allowCustomValues: boolean;
|
|
458
|
+
options: (string | number)[] | null;
|
|
459
|
+
optionsFromDimension: {
|
|
460
|
+
model: string;
|
|
461
|
+
dimension: string;
|
|
462
|
+
} | null;
|
|
463
|
+
}[];
|
|
311
464
|
baseDimensions: {
|
|
312
465
|
count: number;
|
|
313
466
|
fieldIds: string[];
|
|
@@ -334,6 +487,7 @@ export declare const getMetadataResultSchema: z.ZodObject<{
|
|
|
334
487
|
caseSensitiveFilters: boolean | null;
|
|
335
488
|
defaultTimeDimension: string | null;
|
|
336
489
|
defaultTimeDimensionGranularity: string | null;
|
|
490
|
+
requiredParameters: string[];
|
|
337
491
|
description: string | null;
|
|
338
492
|
hint: string | null;
|
|
339
493
|
} | {
|
|
@@ -365,4 +519,5 @@ export declare const toolGetMetadataOutputSchema: z.ZodObject<{
|
|
|
365
519
|
}>;
|
|
366
520
|
export type GetMetadataResult = z.infer<typeof getMetadataResultSchema>;
|
|
367
521
|
export type ToolGetMetadataOutput = z.infer<typeof toolGetMetadataOutputSchema>;
|
|
522
|
+
export {};
|
|
368
523
|
//# sourceMappingURL=toolGetMetadataArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGetMetadataArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetMetadataArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAK5D,eAAO,MAAM,wBAAwB,iBAElC,sBAAsB,KAAG,MAe3B,CAAC;AA6BF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAajC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"toolGetMetadataArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/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AAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@ export const GET_METADATA_DESCRIPTION = ({ runtime, }) => {
|
|
|
9
9
|
return `Tool: ${getMetadata}
|
|
10
10
|
|
|
11
11
|
Purpose:
|
|
12
|
-
Get the full metadata for specific explores and/or fields that you already know the IDs of (typically from ${grepFields}). ${grepFields} is lean — it tells you WHICH fields exist; ${getMetadata} gives you the DETAIL you need to build a correct query: an explore's joined tables
|
|
12
|
+
Get the full metadata for specific explores and/or fields that you already know the IDs of (typically from ${grepFields}). ${grepFields} is lean — it tells you WHICH fields exist; ${getMetadata} gives you the DETAIL you need to build a correct query: an explore's joined tables, table filters, and parameters, and a field's filter type, case-sensitivity, resolved default time dimension, parameter dependencies, hints, and whether it comes from a joined table. A field marked with required parameters returns different results depending on the parameter values the query runs with — unset parameters resolve to their default.
|
|
13
13
|
|
|
14
14
|
Call this AFTER ${grepFields}, once you have narrowed down to the explore(s) and field(s) you intend to use, and BEFORE ${visualization}. You can ask for several explores and several fields across explores in a SINGLE call — batch everything you need at once instead of one request per item.
|
|
15
15
|
|
|
@@ -51,6 +51,25 @@ export const getMetadataInputSchema = z.object({
|
|
|
51
51
|
.max(20)
|
|
52
52
|
.describe('A batch of explore and/or field metadata requests, resolved together in one call.'),
|
|
53
53
|
});
|
|
54
|
+
const parameterValueSchema = z.union([
|
|
55
|
+
z.string(),
|
|
56
|
+
z.number(),
|
|
57
|
+
z.array(z.string()),
|
|
58
|
+
z.array(z.number()),
|
|
59
|
+
]);
|
|
60
|
+
const getMetadataParameterSchema = z.object({
|
|
61
|
+
name: z.string(),
|
|
62
|
+
label: z.string(),
|
|
63
|
+
description: z.string().nullable(),
|
|
64
|
+
type: z.enum(['string', 'number', 'date']),
|
|
65
|
+
default: parameterValueSchema.nullable(),
|
|
66
|
+
multiple: z.boolean(),
|
|
67
|
+
allowCustomValues: z.boolean(),
|
|
68
|
+
options: z.array(z.union([z.string(), z.number()])).nullable(),
|
|
69
|
+
optionsFromDimension: z
|
|
70
|
+
.object({ model: z.string(), dimension: z.string() })
|
|
71
|
+
.nullable(),
|
|
72
|
+
});
|
|
54
73
|
const getMetadataExploreFoundSchema = z.object({
|
|
55
74
|
exploreId: z.string(),
|
|
56
75
|
status: z.literal('found'),
|
|
@@ -60,6 +79,7 @@ const getMetadataExploreFoundSchema = z.object({
|
|
|
60
79
|
baseTable: z.string(),
|
|
61
80
|
joinedTables: z.array(z.string()),
|
|
62
81
|
requiredFilters: z.array(findExploresRequiredFilterSchema),
|
|
82
|
+
parameters: z.array(getMetadataParameterSchema),
|
|
63
83
|
baseDimensions: z.object({
|
|
64
84
|
count: z.number(),
|
|
65
85
|
fieldIds: z.array(z.string()),
|
|
@@ -87,6 +107,7 @@ const getMetadataFieldFoundSchema = z.object({
|
|
|
87
107
|
caseSensitiveFilters: z.boolean().nullable(),
|
|
88
108
|
defaultTimeDimension: z.string().nullable(),
|
|
89
109
|
defaultTimeDimensionGranularity: z.string().nullable(),
|
|
110
|
+
requiredParameters: z.array(z.string()),
|
|
90
111
|
description: z.string().nullable(),
|
|
91
112
|
hint: z.string().nullable(),
|
|
92
113
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGetMetadataArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetMetadataArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACrC,OAAO,GACc,EAAU,EAAE;IACjC,MAAM,WAAW,GAAG,WAAW,CAAC,aAAa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,CAAC;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,KAAK,CAAC;QACJ,6BAA6B;QAC7B,gCAAgC;KACnC,CAAC,CACL;IACD,MAAM,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,CAAC,CACzE;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB;CACrC,CAAC,CAAC"}
|
|
@@ -78,6 +78,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
78
78
|
hint: z.ZodNullable<z.ZodString>;
|
|
79
79
|
defaultTimeDimension: z.ZodNullable<z.ZodString>;
|
|
80
80
|
defaultTimeDimensionGranularity: z.ZodNullable<z.ZodString>;
|
|
81
|
+
requiredParameters: z.ZodArray<z.ZodString, "many">;
|
|
81
82
|
usageInVerifiedCharts: z.ZodNumber;
|
|
82
83
|
matchLocality: z.ZodEnum<["name", "description", "hint", "mixed"]>;
|
|
83
84
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -92,6 +93,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
92
93
|
hint: string | null;
|
|
93
94
|
defaultTimeDimension: string | null;
|
|
94
95
|
defaultTimeDimensionGranularity: string | null;
|
|
96
|
+
requiredParameters: string[];
|
|
95
97
|
usageInVerifiedCharts: number;
|
|
96
98
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
97
99
|
}, {
|
|
@@ -106,6 +108,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
106
108
|
hint: string | null;
|
|
107
109
|
defaultTimeDimension: string | null;
|
|
108
110
|
defaultTimeDimensionGranularity: string | null;
|
|
111
|
+
requiredParameters: string[];
|
|
109
112
|
usageInVerifiedCharts: number;
|
|
110
113
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
111
114
|
}>, "many">;
|
|
@@ -133,6 +136,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
133
136
|
hint: string | null;
|
|
134
137
|
defaultTimeDimension: string | null;
|
|
135
138
|
defaultTimeDimensionGranularity: string | null;
|
|
139
|
+
requiredParameters: string[];
|
|
136
140
|
usageInVerifiedCharts: number;
|
|
137
141
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
138
142
|
}[];
|
|
@@ -160,6 +164,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
160
164
|
hint: string | null;
|
|
161
165
|
defaultTimeDimension: string | null;
|
|
162
166
|
defaultTimeDimensionGranularity: string | null;
|
|
167
|
+
requiredParameters: string[];
|
|
163
168
|
usageInVerifiedCharts: number;
|
|
164
169
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
165
170
|
}[];
|
|
@@ -206,6 +211,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
206
211
|
hint: string | null;
|
|
207
212
|
defaultTimeDimension: string | null;
|
|
208
213
|
defaultTimeDimensionGranularity: string | null;
|
|
214
|
+
requiredParameters: string[];
|
|
209
215
|
usageInVerifiedCharts: number;
|
|
210
216
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
211
217
|
}[];
|
|
@@ -246,6 +252,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
246
252
|
hint: string | null;
|
|
247
253
|
defaultTimeDimension: string | null;
|
|
248
254
|
defaultTimeDimensionGranularity: string | null;
|
|
255
|
+
requiredParameters: string[];
|
|
249
256
|
usageInVerifiedCharts: number;
|
|
250
257
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
251
258
|
}[];
|
|
@@ -343,6 +350,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
343
350
|
hint: string | null;
|
|
344
351
|
defaultTimeDimension: string | null;
|
|
345
352
|
defaultTimeDimensionGranularity: string | null;
|
|
353
|
+
requiredParameters: string[];
|
|
346
354
|
usageInVerifiedCharts: number;
|
|
347
355
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
348
356
|
}[];
|
|
@@ -406,6 +414,7 @@ export declare const grepFieldsResultSchema: z.ZodObject<{
|
|
|
406
414
|
hint: string | null;
|
|
407
415
|
defaultTimeDimension: string | null;
|
|
408
416
|
defaultTimeDimensionGranularity: string | null;
|
|
417
|
+
requiredParameters: string[];
|
|
409
418
|
usageInVerifiedCharts: number;
|
|
410
419
|
matchLocality: "description" | "hint" | "mixed" | "name";
|
|
411
420
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGrepFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAQ5D,eAAO,MAAM,uBAAuB,iBAEjC,sBAAsB,KAAG,
|
|
1
|
+
{"version":3,"file":"toolGrepFieldsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/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16,8 @@ Use this as the FIRST step whenever the user asks a data question (counts, total
|
|
|
16
16
|
Each pattern is a case-insensitive keyword pattern (not a full regex): use \`|\` to OR synonyms ("revenue|sales") and a space or \`.*\` between words to require all of them ("order.*status" matches fields mentioning both "order" and "status"). Pass 1–5 patterns in a SINGLE call covering the different angles of the question — they run together so you see all results at once instead of grepping one at a time. Start broad with meaningful keywords (e.g. ["revenue|sales", "country|region", "segment|tier"]) and narrow from there — long natural-language phrases will not match. If results are empty, try synonyms or broader patterns before giving up. Read the returned fieldIds and pick the single explore that answers at the right grain before building a query.
|
|
17
17
|
|
|
18
18
|
A description or hint ending in "...(truncated)" is incomplete — call ${getMetadata} to read the full text before using that field.
|
|
19
|
+
|
|
20
|
+
A field annotated with \`⚠params: <names>\` depends on those Lightdash parameters — what it returns changes with the parameter values the query runs with (unset parameters resolve to their default). Call ${getMetadata} on its explore to see the parameter definitions before querying such a field.
|
|
19
21
|
`;
|
|
20
22
|
};
|
|
21
23
|
export const grepFieldsInputSchema = z.object({
|
|
@@ -50,6 +52,7 @@ const grepFieldsPatternFieldSchema = z.object({
|
|
|
50
52
|
hint: z.string().nullable(),
|
|
51
53
|
defaultTimeDimension: z.string().nullable(),
|
|
52
54
|
defaultTimeDimensionGranularity: z.string().nullable(),
|
|
55
|
+
requiredParameters: z.array(z.string()),
|
|
53
56
|
usageInVerifiedCharts: z.number(),
|
|
54
57
|
matchLocality: z.enum(['name', 'description', 'hint', 'mixed']),
|
|
55
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGrepFieldsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGrepFieldsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EACH,w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AAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC;IAChD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;IACjD,uBAAuB,EAAE,CAAC;SACrB,KAAK,CAAC,wCAAwC,CAAC;SAC/C,QAAQ,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB,CAAC,MAAM,CAAC;QACtC,YAAY,EAAE,4BAA4B,CAAC,QAAQ,EAAE;KACxD,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -955,6 +955,7 @@ export declare const toolRunQueryArgsSchemaV1: z.ZodObject<{
|
|
|
955
955
|
nullsFirst: boolean | null;
|
|
956
956
|
}>, "many">;
|
|
957
957
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
958
|
+
parameters: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>;
|
|
958
959
|
} & {
|
|
959
960
|
filters: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
960
961
|
type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
|
|
@@ -2034,6 +2035,7 @@ export declare const toolRunQueryArgsSchemaV1: z.ZodObject<{
|
|
|
2034
2035
|
nullsFirst: boolean | null;
|
|
2035
2036
|
}[];
|
|
2036
2037
|
limit: number | null;
|
|
2038
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
2037
2039
|
filters: {
|
|
2038
2040
|
type: "and" | "or";
|
|
2039
2041
|
dimensions: ({
|
|
@@ -2249,6 +2251,7 @@ export declare const toolRunQueryArgsSchemaV1: z.ZodObject<{
|
|
|
2249
2251
|
nullsFirst: boolean | null;
|
|
2250
2252
|
}[];
|
|
2251
2253
|
limit: number | null;
|
|
2254
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
2252
2255
|
filters?: {
|
|
2253
2256
|
type: "and" | "or";
|
|
2254
2257
|
dimensions: ({
|
|
@@ -3739,6 +3742,7 @@ export declare const toolRunQueryArgsSchemaV1: z.ZodObject<{
|
|
|
3739
3742
|
nullsFirst: boolean | null;
|
|
3740
3743
|
}[];
|
|
3741
3744
|
limit: number | null;
|
|
3745
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
3742
3746
|
filters: {
|
|
3743
3747
|
type: "and" | "or";
|
|
3744
3748
|
dimensions: ({
|
|
@@ -4342,6 +4346,7 @@ export declare const toolRunQueryArgsSchemaV1: z.ZodObject<{
|
|
|
4342
4346
|
nullsFirst: boolean | null;
|
|
4343
4347
|
}[];
|
|
4344
4348
|
limit: number | null;
|
|
4349
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
4345
4350
|
filters?: {
|
|
4346
4351
|
type: "and" | "or";
|
|
4347
4352
|
dimensions: ({
|
|
@@ -4788,6 +4793,7 @@ export declare const toolRunQueryArgsSchemaV2: z.ZodObject<{
|
|
|
4788
4793
|
nullsFirst: boolean | null;
|
|
4789
4794
|
}>, "many">;
|
|
4790
4795
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
4796
|
+
parameters: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>;
|
|
4791
4797
|
} & {
|
|
4792
4798
|
customMetrics: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
4793
4799
|
kind: z.ZodLiteral<"aggregation">;
|
|
@@ -6801,6 +6807,7 @@ export declare const toolRunQueryArgsSchemaV2: z.ZodObject<{
|
|
|
6801
6807
|
nullsFirst: boolean | null;
|
|
6802
6808
|
}[];
|
|
6803
6809
|
limit: number | null;
|
|
6810
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
6804
6811
|
customMetrics: ({
|
|
6805
6812
|
kind: "aggregation";
|
|
6806
6813
|
name: string;
|
|
@@ -7182,6 +7189,7 @@ export declare const toolRunQueryArgsSchemaV2: z.ZodObject<{
|
|
|
7182
7189
|
nullsFirst: boolean | null;
|
|
7183
7190
|
}[];
|
|
7184
7191
|
limit: number | null;
|
|
7192
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
7185
7193
|
customMetrics: ({
|
|
7186
7194
|
kind: "aggregation";
|
|
7187
7195
|
name: string;
|
|
@@ -7604,6 +7612,7 @@ export declare const toolRunQueryArgsSchemaV2: z.ZodObject<{
|
|
|
7604
7612
|
nullsFirst: boolean | null;
|
|
7605
7613
|
}[];
|
|
7606
7614
|
limit: number | null;
|
|
7615
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
7607
7616
|
customMetrics: ({
|
|
7608
7617
|
kind: "aggregation";
|
|
7609
7618
|
name: string;
|
|
@@ -8002,6 +8011,7 @@ export declare const toolRunQueryArgsSchemaV2: z.ZodObject<{
|
|
|
8002
8011
|
nullsFirst: boolean | null;
|
|
8003
8012
|
}[];
|
|
8004
8013
|
limit: number | null;
|
|
8014
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
8005
8015
|
customMetrics: ({
|
|
8006
8016
|
kind: "aggregation";
|
|
8007
8017
|
name: string;
|
|
@@ -8409,6 +8419,7 @@ export declare const toolRunQueryArgsSchema: z.ZodObject<{
|
|
|
8409
8419
|
nullsFirst: boolean | null;
|
|
8410
8420
|
}>, "many">;
|
|
8411
8421
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
8422
|
+
parameters: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>;
|
|
8412
8423
|
} & {
|
|
8413
8424
|
customMetrics: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
8414
8425
|
kind: z.ZodLiteral<"aggregation">;
|
|
@@ -10422,6 +10433,7 @@ export declare const toolRunQueryArgsSchema: z.ZodObject<{
|
|
|
10422
10433
|
nullsFirst: boolean | null;
|
|
10423
10434
|
}[];
|
|
10424
10435
|
limit: number | null;
|
|
10436
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
10425
10437
|
customMetrics: ({
|
|
10426
10438
|
kind: "aggregation";
|
|
10427
10439
|
name: string;
|
|
@@ -10803,6 +10815,7 @@ export declare const toolRunQueryArgsSchema: z.ZodObject<{
|
|
|
10803
10815
|
nullsFirst: boolean | null;
|
|
10804
10816
|
}[];
|
|
10805
10817
|
limit: number | null;
|
|
10818
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
10806
10819
|
customMetrics: ({
|
|
10807
10820
|
kind: "aggregation";
|
|
10808
10821
|
name: string;
|
|
@@ -11225,6 +11238,7 @@ export declare const toolRunQueryArgsSchema: z.ZodObject<{
|
|
|
11225
11238
|
nullsFirst: boolean | null;
|
|
11226
11239
|
}[];
|
|
11227
11240
|
limit: number | null;
|
|
11241
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
11228
11242
|
customMetrics: ({
|
|
11229
11243
|
kind: "aggregation";
|
|
11230
11244
|
name: string;
|
|
@@ -11623,6 +11637,7 @@ export declare const toolRunQueryArgsSchema: z.ZodObject<{
|
|
|
11623
11637
|
nullsFirst: boolean | null;
|
|
11624
11638
|
}[];
|
|
11625
11639
|
limit: number | null;
|
|
11640
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
11626
11641
|
customMetrics: ({
|
|
11627
11642
|
kind: "aggregation";
|
|
11628
11643
|
name: string;
|
|
@@ -12033,6 +12048,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
12033
12048
|
nullsFirst: boolean | null;
|
|
12034
12049
|
}>, "many">;
|
|
12035
12050
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
12051
|
+
parameters: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>;
|
|
12036
12052
|
} & {
|
|
12037
12053
|
customMetrics: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
12038
12054
|
kind: z.ZodLiteral<"aggregation">;
|
|
@@ -14046,6 +14062,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
14046
14062
|
nullsFirst: boolean | null;
|
|
14047
14063
|
}[];
|
|
14048
14064
|
limit: number | null;
|
|
14065
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
14049
14066
|
customMetrics: ({
|
|
14050
14067
|
kind: "aggregation";
|
|
14051
14068
|
name: string;
|
|
@@ -14427,6 +14444,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
14427
14444
|
nullsFirst: boolean | null;
|
|
14428
14445
|
}[];
|
|
14429
14446
|
limit: number | null;
|
|
14447
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
14430
14448
|
customMetrics: ({
|
|
14431
14449
|
kind: "aggregation";
|
|
14432
14450
|
name: string;
|
|
@@ -14849,6 +14867,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
14849
14867
|
nullsFirst: boolean | null;
|
|
14850
14868
|
}[];
|
|
14851
14869
|
limit: number | null;
|
|
14870
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
14852
14871
|
customMetrics: ({
|
|
14853
14872
|
kind: "aggregation";
|
|
14854
14873
|
name: string;
|
|
@@ -15247,6 +15266,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
15247
15266
|
nullsFirst: boolean | null;
|
|
15248
15267
|
}[];
|
|
15249
15268
|
limit: number | null;
|
|
15269
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
15250
15270
|
customMetrics: ({
|
|
15251
15271
|
kind: "aggregation";
|
|
15252
15272
|
name: string;
|
|
@@ -15653,6 +15673,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
15653
15673
|
nullsFirst: boolean | null;
|
|
15654
15674
|
}>, "many">;
|
|
15655
15675
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
15676
|
+
parameters: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>>;
|
|
15656
15677
|
} & {
|
|
15657
15678
|
customMetrics: z.ZodEffects<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
15658
15679
|
kind: z.ZodLiteral<"aggregation">;
|
|
@@ -19512,6 +19533,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
19512
19533
|
nullsFirst: boolean | null;
|
|
19513
19534
|
}[];
|
|
19514
19535
|
limit: number | null;
|
|
19536
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
19515
19537
|
customMetrics: import("..").TransformedCustomMetric[] | null;
|
|
19516
19538
|
tableCalculations: ({
|
|
19517
19539
|
name: string;
|
|
@@ -19583,6 +19605,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
19583
19605
|
nullsFirst: boolean | null;
|
|
19584
19606
|
}[];
|
|
19585
19607
|
limit: number | null;
|
|
19608
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
19586
19609
|
customMetrics: ({
|
|
19587
19610
|
kind: "aggregation";
|
|
19588
19611
|
name: string;
|
|
@@ -20250,6 +20273,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
20250
20273
|
nullsFirst: boolean | null;
|
|
20251
20274
|
}[];
|
|
20252
20275
|
limit: number | null;
|
|
20276
|
+
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
20253
20277
|
customMetrics: import("..").TransformedCustomMetric[] | null;
|
|
20254
20278
|
tableCalculations: ({
|
|
20255
20279
|
name: string;
|
|
@@ -20338,6 +20362,7 @@ export declare const toolRunQueryArgsSchemaTransformed: z.ZodPipeline<z.ZodObjec
|
|
|
20338
20362
|
nullsFirst: boolean | null;
|
|
20339
20363
|
}[];
|
|
20340
20364
|
limit: number | null;
|
|
20365
|
+
parameters?: Record<string, string | number | string[] | number[]> | null | undefined;
|
|
20341
20366
|
customMetrics: ({
|
|
20342
20367
|
kind: "aggregation";
|
|
20343
20368
|
name: string;
|