@lightdash/common 0.2032.0 → 0.2033.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 (89) hide show
  1. package/dist/cjs/ee/AiAgent/followUpTools.d.ts.map +1 -1
  2. package/dist/cjs/ee/AiAgent/followUpTools.js +1 -0
  3. package/dist/cjs/ee/AiAgent/followUpTools.js.map +1 -1
  4. package/dist/cjs/ee/AiAgent/index.d.ts +7 -4
  5. package/dist/cjs/ee/AiAgent/index.d.ts.map +1 -1
  6. package/dist/cjs/ee/AiAgent/index.js +1 -0
  7. package/dist/cjs/ee/AiAgent/index.js.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/index.d.ts +413 -0
  9. package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/index.js +1 -0
  11. package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  13. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  14. package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
  15. package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +419 -0
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -0
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.js +115 -0
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.js.map +1 -0
  20. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
  21. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +1 -0
  23. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  24. package/dist/cjs/ee/AiAgent/types.d.ts +2 -1
  25. package/dist/cjs/ee/AiAgent/types.d.ts.map +1 -1
  26. package/dist/cjs/ee/AiAgent/types.js +1 -0
  27. package/dist/cjs/ee/AiAgent/types.js.map +1 -1
  28. package/dist/cjs/index.d.ts +1 -0
  29. package/dist/cjs/index.d.ts.map +1 -1
  30. package/dist/cjs/index.js +1 -0
  31. package/dist/cjs/index.js.map +1 -1
  32. package/dist/cjs/types/changeset.d.ts +333 -0
  33. package/dist/cjs/types/changeset.d.ts.map +1 -0
  34. package/dist/cjs/types/changeset.js +54 -0
  35. package/dist/cjs/types/changeset.js.map +1 -0
  36. package/dist/esm/ee/AiAgent/followUpTools.d.ts.map +1 -1
  37. package/dist/esm/ee/AiAgent/followUpTools.js +1 -0
  38. package/dist/esm/ee/AiAgent/followUpTools.js.map +1 -1
  39. package/dist/esm/ee/AiAgent/index.d.ts +7 -4
  40. package/dist/esm/ee/AiAgent/index.d.ts.map +1 -1
  41. package/dist/esm/ee/AiAgent/index.js +1 -0
  42. package/dist/esm/ee/AiAgent/index.js.map +1 -1
  43. package/dist/esm/ee/AiAgent/schemas/index.d.ts +413 -0
  44. package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
  45. package/dist/esm/ee/AiAgent/schemas/index.js +2 -1
  46. package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
  47. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  48. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
  50. package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +419 -0
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -0
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.js +112 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.js.map +1 -0
  55. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
  56. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +1 -0
  58. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  59. package/dist/esm/ee/AiAgent/types.d.ts +2 -1
  60. package/dist/esm/ee/AiAgent/types.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/types.js +1 -0
  62. package/dist/esm/ee/AiAgent/types.js.map +1 -1
  63. package/dist/esm/index.d.ts +1 -0
  64. package/dist/esm/index.d.ts.map +1 -1
  65. package/dist/esm/index.js +1 -0
  66. package/dist/esm/index.js.map +1 -1
  67. package/dist/esm/types/changeset.d.ts +333 -0
  68. package/dist/esm/types/changeset.d.ts.map +1 -0
  69. package/dist/esm/types/changeset.js +51 -0
  70. package/dist/esm/types/changeset.js.map +1 -0
  71. package/dist/tsconfig.types.tsbuildinfo +1 -1
  72. package/dist/types/ee/AiAgent/followUpTools.d.ts.map +1 -1
  73. package/dist/types/ee/AiAgent/index.d.ts +7 -4
  74. package/dist/types/ee/AiAgent/index.d.ts.map +1 -1
  75. package/dist/types/ee/AiAgent/schemas/index.d.ts +413 -0
  76. package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
  77. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  78. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  79. package/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +419 -0
  80. package/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -0
  81. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
  82. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  83. package/dist/types/ee/AiAgent/types.d.ts +2 -1
  84. package/dist/types/ee/AiAgent/types.d.ts.map +1 -1
  85. package/dist/types/index.d.ts +1 -0
  86. package/dist/types/index.d.ts.map +1 -1
  87. package/dist/types/types/changeset.d.ts +333 -0
  88. package/dist/types/types/changeset.d.ts.map +1 -0
  89. package/package.json +1 -1
@@ -0,0 +1,419 @@
1
+ import { z } from 'zod';
2
+ import { AiResultType } from '../../types';
3
+ export declare const TOOL_PROPOSE_CHANGE_DESCRIPTION = "\nALWAYS first look up the tables/fields to understand what the current values are.\n\nUse this tool to propose changes to a table's metadata in the semantic layer. This tool creates a change proposal that can be reviewed and approved before being applied.\n\n- **When to use the Propose Change Tool:**\n - User requests to update a table description: \"Update the description of the customers table\"\n - User wants to improve a dimension description: \"Add a better description for the customer_name field\"\n - User asks to clarify a metric description: \"Update the total_revenue metric description to explain it's net revenue\"\n - User wants to document business logic in descriptions: \"Add a note that active_users excludes test accounts\"\n\n- **What this tool does:**\n - Creates a change proposal in the system\n - The change is NOT applied immediately - it requires review and approval\n - Supports updating descriptions for tables, dimensions, and metrics\n - Tracks who proposed the change and when\n - Change proposals can be reviewed, approved, or rejected by authorized users\n\n- **Examples:**\n\n User: \"Update the customers table description to mention it includes both B2B and B2C customers\"\n User: \"The revenue_net field should explain it's after taxes and discounts\"\n";
4
+ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
5
+ type: z.ZodLiteral<AiResultType.PROPOSE_CHANGE>;
6
+ } & {
7
+ entityTableName: z.ZodString;
8
+ rationale: z.ZodString;
9
+ change: z.ZodDiscriminatedUnion<"entityType", [z.ZodObject<{
10
+ entityType: z.ZodLiteral<"table">;
11
+ value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12
+ type: z.ZodLiteral<"update">;
13
+ patch: z.ZodObject<{
14
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
15
+ op: z.ZodLiteral<"replace">;
16
+ value: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ value: string;
19
+ op: "replace";
20
+ }, {
21
+ value: string;
22
+ op: "replace";
23
+ }>]>>;
24
+ label: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
25
+ op: z.ZodLiteral<"replace">;
26
+ value: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ value: string;
29
+ op: "replace";
30
+ }, {
31
+ value: string;
32
+ op: "replace";
33
+ }>]>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ label: {
36
+ value: string;
37
+ op: "replace";
38
+ } | null;
39
+ description: {
40
+ value: string;
41
+ op: "replace";
42
+ } | null;
43
+ }, {
44
+ label: {
45
+ value: string;
46
+ op: "replace";
47
+ } | null;
48
+ description: {
49
+ value: string;
50
+ op: "replace";
51
+ } | null;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ type: "update";
55
+ patch: {
56
+ label: {
57
+ value: string;
58
+ op: "replace";
59
+ } | null;
60
+ description: {
61
+ value: string;
62
+ op: "replace";
63
+ } | null;
64
+ };
65
+ }, {
66
+ type: "update";
67
+ patch: {
68
+ label: {
69
+ value: string;
70
+ op: "replace";
71
+ } | null;
72
+ description: {
73
+ value: string;
74
+ op: "replace";
75
+ } | null;
76
+ };
77
+ }>]>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ value: {
80
+ type: "update";
81
+ patch: {
82
+ label: {
83
+ value: string;
84
+ op: "replace";
85
+ } | null;
86
+ description: {
87
+ value: string;
88
+ op: "replace";
89
+ } | null;
90
+ };
91
+ };
92
+ entityType: "table";
93
+ }, {
94
+ value: {
95
+ type: "update";
96
+ patch: {
97
+ label: {
98
+ value: string;
99
+ op: "replace";
100
+ } | null;
101
+ description: {
102
+ value: string;
103
+ op: "replace";
104
+ } | null;
105
+ };
106
+ };
107
+ entityType: "table";
108
+ }>, z.ZodObject<{
109
+ entityType: z.ZodLiteral<"dimension">;
110
+ fieldId: z.ZodString;
111
+ value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
112
+ type: z.ZodLiteral<"update">;
113
+ patch: z.ZodObject<{
114
+ label: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
115
+ op: z.ZodLiteral<"replace">;
116
+ value: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ value: string;
119
+ op: "replace";
120
+ }, {
121
+ value: string;
122
+ op: "replace";
123
+ }>]>>;
124
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
125
+ op: z.ZodLiteral<"replace">;
126
+ value: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ value: string;
129
+ op: "replace";
130
+ }, {
131
+ value: string;
132
+ op: "replace";
133
+ }>]>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ label: {
136
+ value: string;
137
+ op: "replace";
138
+ } | null;
139
+ description: {
140
+ value: string;
141
+ op: "replace";
142
+ } | null;
143
+ }, {
144
+ label: {
145
+ value: string;
146
+ op: "replace";
147
+ } | null;
148
+ description: {
149
+ value: string;
150
+ op: "replace";
151
+ } | null;
152
+ }>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "update";
155
+ patch: {
156
+ label: {
157
+ value: string;
158
+ op: "replace";
159
+ } | null;
160
+ description: {
161
+ value: string;
162
+ op: "replace";
163
+ } | null;
164
+ };
165
+ }, {
166
+ type: "update";
167
+ patch: {
168
+ label: {
169
+ value: string;
170
+ op: "replace";
171
+ } | null;
172
+ description: {
173
+ value: string;
174
+ op: "replace";
175
+ } | null;
176
+ };
177
+ }>]>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ fieldId: string;
180
+ value: {
181
+ type: "update";
182
+ patch: {
183
+ label: {
184
+ value: string;
185
+ op: "replace";
186
+ } | null;
187
+ description: {
188
+ value: string;
189
+ op: "replace";
190
+ } | null;
191
+ };
192
+ };
193
+ entityType: "dimension";
194
+ }, {
195
+ fieldId: string;
196
+ value: {
197
+ type: "update";
198
+ patch: {
199
+ label: {
200
+ value: string;
201
+ op: "replace";
202
+ } | null;
203
+ description: {
204
+ value: string;
205
+ op: "replace";
206
+ } | null;
207
+ };
208
+ };
209
+ entityType: "dimension";
210
+ }>, z.ZodObject<{
211
+ entityType: z.ZodLiteral<"metric">;
212
+ fieldId: z.ZodString;
213
+ value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
214
+ type: z.ZodLiteral<"update">;
215
+ patch: z.ZodObject<{
216
+ label: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
217
+ op: z.ZodLiteral<"replace">;
218
+ value: z.ZodString;
219
+ }, "strip", z.ZodTypeAny, {
220
+ value: string;
221
+ op: "replace";
222
+ }, {
223
+ value: string;
224
+ op: "replace";
225
+ }>]>>;
226
+ description: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
227
+ op: z.ZodLiteral<"replace">;
228
+ value: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ value: string;
231
+ op: "replace";
232
+ }, {
233
+ value: string;
234
+ op: "replace";
235
+ }>]>>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ label: {
238
+ value: string;
239
+ op: "replace";
240
+ } | null;
241
+ description: {
242
+ value: string;
243
+ op: "replace";
244
+ } | null;
245
+ }, {
246
+ label: {
247
+ value: string;
248
+ op: "replace";
249
+ } | null;
250
+ description: {
251
+ value: string;
252
+ op: "replace";
253
+ } | null;
254
+ }>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: "update";
257
+ patch: {
258
+ label: {
259
+ value: string;
260
+ op: "replace";
261
+ } | null;
262
+ description: {
263
+ value: string;
264
+ op: "replace";
265
+ } | null;
266
+ };
267
+ }, {
268
+ type: "update";
269
+ patch: {
270
+ label: {
271
+ value: string;
272
+ op: "replace";
273
+ } | null;
274
+ description: {
275
+ value: string;
276
+ op: "replace";
277
+ } | null;
278
+ };
279
+ }>]>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ fieldId: string;
282
+ value: {
283
+ type: "update";
284
+ patch: {
285
+ label: {
286
+ value: string;
287
+ op: "replace";
288
+ } | null;
289
+ description: {
290
+ value: string;
291
+ op: "replace";
292
+ } | null;
293
+ };
294
+ };
295
+ entityType: "metric";
296
+ }, {
297
+ fieldId: string;
298
+ value: {
299
+ type: "update";
300
+ patch: {
301
+ label: {
302
+ value: string;
303
+ op: "replace";
304
+ } | null;
305
+ description: {
306
+ value: string;
307
+ op: "replace";
308
+ } | null;
309
+ };
310
+ };
311
+ entityType: "metric";
312
+ }>]>;
313
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
314
+ type: AiResultType.PROPOSE_CHANGE;
315
+ entityTableName: string;
316
+ rationale: string;
317
+ change: {
318
+ value: {
319
+ type: "update";
320
+ patch: {
321
+ label: {
322
+ value: string;
323
+ op: "replace";
324
+ } | null;
325
+ description: {
326
+ value: string;
327
+ op: "replace";
328
+ } | null;
329
+ };
330
+ };
331
+ entityType: "table";
332
+ } | {
333
+ fieldId: string;
334
+ value: {
335
+ type: "update";
336
+ patch: {
337
+ label: {
338
+ value: string;
339
+ op: "replace";
340
+ } | null;
341
+ description: {
342
+ value: string;
343
+ op: "replace";
344
+ } | null;
345
+ };
346
+ };
347
+ entityType: "dimension";
348
+ } | {
349
+ fieldId: string;
350
+ value: {
351
+ type: "update";
352
+ patch: {
353
+ label: {
354
+ value: string;
355
+ op: "replace";
356
+ } | null;
357
+ description: {
358
+ value: string;
359
+ op: "replace";
360
+ } | null;
361
+ };
362
+ };
363
+ entityType: "metric";
364
+ };
365
+ }, {
366
+ type: AiResultType.PROPOSE_CHANGE;
367
+ entityTableName: string;
368
+ rationale: string;
369
+ change: {
370
+ value: {
371
+ type: "update";
372
+ patch: {
373
+ label: {
374
+ value: string;
375
+ op: "replace";
376
+ } | null;
377
+ description: {
378
+ value: string;
379
+ op: "replace";
380
+ } | null;
381
+ };
382
+ };
383
+ entityType: "table";
384
+ } | {
385
+ fieldId: string;
386
+ value: {
387
+ type: "update";
388
+ patch: {
389
+ label: {
390
+ value: string;
391
+ op: "replace";
392
+ } | null;
393
+ description: {
394
+ value: string;
395
+ op: "replace";
396
+ } | null;
397
+ };
398
+ };
399
+ entityType: "dimension";
400
+ } | {
401
+ fieldId: string;
402
+ value: {
403
+ type: "update";
404
+ patch: {
405
+ label: {
406
+ value: string;
407
+ op: "replace";
408
+ } | null;
409
+ description: {
410
+ value: string;
411
+ op: "replace";
412
+ } | null;
413
+ };
414
+ };
415
+ entityType: "metric";
416
+ };
417
+ }>;
418
+ export type ToolProposeChangeArgs = z.infer<typeof toolProposeChangeArgsSchema>;
419
+ //# sourceMappingURL=toolProposeChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolProposeChange.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolProposeChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,eAAO,MAAM,+BAA+B,gyCAsB3C,CAAC;AAsFF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAC;AAEb,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toolProposeChangeArgsSchema = exports.TOOL_PROPOSE_CHANGE_DESCRIPTION = void 0;
4
+ const zod_1 = require("zod");
5
+ const types_1 = require("../../types");
6
+ const fieldId_1 = require("../fieldId");
7
+ const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
8
+ exports.TOOL_PROPOSE_CHANGE_DESCRIPTION = `
9
+ ALWAYS first look up the tables/fields to understand what the current values are.
10
+
11
+ Use this tool to propose changes to a table's metadata in the semantic layer. This tool creates a change proposal that can be reviewed and approved before being applied.
12
+
13
+ - **When to use the Propose Change Tool:**
14
+ - User requests to update a table description: "Update the description of the customers table"
15
+ - User wants to improve a dimension description: "Add a better description for the customer_name field"
16
+ - User asks to clarify a metric description: "Update the total_revenue metric description to explain it's net revenue"
17
+ - User wants to document business logic in descriptions: "Add a note that active_users excludes test accounts"
18
+
19
+ - **What this tool does:**
20
+ - Creates a change proposal in the system
21
+ - The change is NOT applied immediately - it requires review and approval
22
+ - Supports updating descriptions for tables, dimensions, and metrics
23
+ - Tracks who proposed the change and when
24
+ - Change proposals can be reviewed, approved, or rejected by authorized users
25
+
26
+ - **Examples:**
27
+
28
+ User: "Update the customers table description to mention it includes both B2B and B2C customers"
29
+ User: "The revenue_net field should explain it's after taxes and discounts"
30
+ `;
31
+ const getPatchDescription = (type) => `Patch to apply to the ${type}. You can omit/set-to-null any fields you don't want to change.`;
32
+ /**
33
+ * Op schema can be configured on per-field basis to have a appropriate type and allow applicable operations
34
+ */
35
+ const getOpSchema = (type) => zod_1.z.discriminatedUnion('op', [
36
+ zod_1.z
37
+ .object({ op: zod_1.z.literal('replace'), value: type })
38
+ .describe('Replace (overwrite) the value of the field.'),
39
+ // z.object({
40
+ // op: z.literal("push"),
41
+ // value: z.any(),
42
+ // index: z.number().nullable() // add later to support `"path": "/tags/-"` / "path": "/tags/0" if no index, default to ops on array
43
+ // }),
44
+ // z.object({ op: z.literal("remove") }),
45
+ ]);
46
+ const stringOpSchema = getOpSchema(zod_1.z.string());
47
+ const DimensionChangeSchema = zod_1.z.discriminatedUnion('type', [
48
+ // z.object({
49
+ // type: z.literal('create'),
50
+ // value: z.any(), // Full Dimension object
51
+ // }),
52
+ zod_1.z.object({
53
+ type: zod_1.z.literal('update'),
54
+ patch: zod_1.z
55
+ .object({
56
+ label: stringOpSchema.nullable(),
57
+ description: stringOpSchema.nullable(),
58
+ })
59
+ .describe(getPatchDescription('dimension')),
60
+ }),
61
+ // z.object({
62
+ // type: z.literal('delete'),
63
+ // })
64
+ ]);
65
+ const MetricChangeSchema = zod_1.z.discriminatedUnion('type', [
66
+ zod_1.z.object({
67
+ type: zod_1.z.literal('update'),
68
+ patch: zod_1.z
69
+ .object({
70
+ label: stringOpSchema.nullable(),
71
+ description: stringOpSchema.nullable(),
72
+ // aiHint: OpSchema,
73
+ })
74
+ .describe(getPatchDescription('metric')),
75
+ }),
76
+ ]);
77
+ const TableChangeSchema = zod_1.z.discriminatedUnion('type', [
78
+ zod_1.z.object({
79
+ type: zod_1.z.literal('update'),
80
+ patch: zod_1.z
81
+ .object({
82
+ description: stringOpSchema.nullable(),
83
+ label: stringOpSchema.nullable(),
84
+ })
85
+ .describe(getPatchDescription('table')),
86
+ }),
87
+ ]);
88
+ const changeSchema = zod_1.z.discriminatedUnion('entityType', [
89
+ zod_1.z.object({
90
+ entityType: zod_1.z.literal('table'),
91
+ value: TableChangeSchema,
92
+ }),
93
+ zod_1.z.object({
94
+ entityType: zod_1.z.literal('dimension'),
95
+ fieldId: (0, fieldId_1.getFieldIdSchema)({ additionalDescription: '' }),
96
+ value: DimensionChangeSchema,
97
+ }),
98
+ zod_1.z.object({
99
+ entityType: zod_1.z.literal('metric'),
100
+ fieldId: (0, fieldId_1.getFieldIdSchema)({ additionalDescription: '' }),
101
+ value: MetricChangeSchema,
102
+ }),
103
+ ]);
104
+ exports.toolProposeChangeArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.PROPOSE_CHANGE, exports.TOOL_PROPOSE_CHANGE_DESCRIPTION)
105
+ .extend({
106
+ entityTableName: zod_1.z
107
+ .string()
108
+ .describe('The name of the table/explore being modified'),
109
+ rationale: zod_1.z
110
+ .string()
111
+ .describe('Brief explanation of why this change is being proposed and what it improves'),
112
+ change: changeSchema,
113
+ })
114
+ .build();
115
+ //# sourceMappingURL=toolProposeChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolProposeChange.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolProposeChange.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAA2C;AAC3C,wCAA8C;AAC9C,4DAAwD;AAE3C,QAAA,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB9C,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,IAAsC,EAAE,EAAE,CACnE,yBAAyB,IAAI,iEAAiE,CAAC;AAEnG;;GAEG;AACH,MAAM,WAAW,GAAG,CAAyB,IAAO,EAAE,EAAE,CACpD,OAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;IACvB,OAAC;SACI,MAAM,CAAC,EAAE,EAAE,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SACjD,QAAQ,CAAC,6CAA6C,CAAC;IAC5D,aAAa;IACb,2BAA2B;IAC3B,oBAAoB;IACpB,sIAAsI;IACtI,MAAM;IACN,yCAAyC;CAC5C,CAAC,CAAC;AAEP,MAAM,cAAc,GAAG,WAAW,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAE/C,MAAM,qBAAqB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACvD,aAAa;IACb,+BAA+B;IAC/B,6CAA6C;IAC7C,MAAM;IACN,OAAC,CAAC,MAAM,CAAC;QACL,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,KAAK,EAAE,OAAC;aACH,MAAM,CAAC;YACJ,KAAK,EAAE,cAAc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AE,IAAA,0BAAgB,EAAC,EAAE,qBAAqB,EAAE,EAAE,EAAE,CAAC;QACxD,KAAK,EAAE,qBAAqB;KAC/B,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACL,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC/B,OAAO,EAAE,IAAA,0BAAgB,EAAC,EAAE,qBAAqB,EAAE,EAAE,EAAE,CAAC;QACxD,KAAK,EAAE,kBAAkB;KAC5B,CAAC;CACL,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,IAAA,oCAAgB,EACvD,oBAAY,CAAC,cAAc,EAC3B,uCAA+B,CAClC;KACI,MAAM,CAAC;IACJ,eAAe,EAAE,OAAC;SACb,MAAM,EAAE;SACR,QAAQ,CAAC,8CAA8C,CAAC;IAC7D,SAAS,EAAE,OAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACL,6EAA6E,CAChF;IACL,MAAM,EAAE,YAAY;CACvB,CAAC;KACD,KAAK,EAAE,CAAC"}
@@ -2,11 +2,11 @@ import { z } from 'zod';
2
2
  export * from './tableViz';
3
3
  export * from './timeSeriesViz';
4
4
  export * from './verticalBarViz';
5
- export declare const ToolNameSchema: z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext"]>;
5
+ export declare const ToolNameSchema: z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext", "proposeChange"]>;
6
6
  export type ToolName = z.infer<typeof ToolNameSchema>;
7
7
  export declare const isToolName: (toolName: string) => toolName is ToolName;
8
- export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext"]>, z.ZodString>;
9
- export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext", string>>;
10
- export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext", string>>;
8
+ export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig", "generateDashboard", "findExplores", "findFields", "searchFieldValues", "findDashboards", "findCharts", "improveContext", "proposeChange"]>, z.ZodString>;
9
+ export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext" | "proposeChange", string>>;
10
+ export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"generateBarVizConfig" | "generateTableVizConfig" | "generateTimeSeriesVizConfig" | "generateDashboard" | "findExplores" | "findFields" | "searchFieldValues" | "findDashboards" | "findCharts" | "improveContext" | "proposeChange", string>>;
11
11
  export declare const AVAILABLE_VISUALIZATION_TYPES: readonly ["generateBarVizConfig", "generateTableVizConfig", "generateTimeSeriesVizConfig"];
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AASjC,eAAO,MAAM,cAAc,wNASzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,QAAQ,IAAI,QACZ,CAAC;AAG/C,eAAO,MAAM,yBAAyB,kPAAuC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,6OAWhC,CAAC;AAGH,eAAO,MAAM,qCAAqC,6OAY5C,CAAC;AAEP,eAAO,MAAM,6BAA6B,4FAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AASjC,eAAO,MAAM,cAAc,yOAUzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,QAAQ,IAAI,QACZ,CAAC;AAG/C,eAAO,MAAM,yBAAyB,mQAAuC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,+PAWhC,CAAC;AAGH,eAAO,MAAM,qCAAqC,+PAY5C,CAAC;AAEP,eAAO,MAAM,6BAA6B,4FAAqB,CAAC"}
@@ -21,6 +21,7 @@ exports.ToolNameSchema = zod_1.z.enum([
21
21
  'findDashboards',
22
22
  'findCharts',
23
23
  'improveContext',
24
+ 'proposeChange',
24
25
  ]);
25
26
  const isToolName = (toolName) => exports.ToolNameSchema.safeParse(toolName).success;
26
27
  exports.isToolName = isToolName;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":";;;;AAA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IAC1C,UAAU,EAAE,uBAAuB;IACnC,cAAc,EAAE,kBAAkB;CACrC,CAAC,CAAC;AAEM,QAAA,6BAA6B,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAExB,qDAA2B;AAC3B,0DAAgC;AAChC,2DAAiC;AAEjC,MAAM,kBAAkB,GAAG;IACvB,sBAAsB;IACtB,wBAAwB;IACxB,6BAA6B;CACvB,CAAC;AAEX,oBAAoB;AACP,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC;IACjC,GAAG,kBAAkB;IACrB,mBAAmB;IACnB,cAAc;IACd,YAAY;IACZ,mBAAmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,eAAe;CAClB,CAAC,CAAC;AAII,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAwB,EAAE,CACjE,sBAAc,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;AADlC,QAAA,UAAU,cACwB;AAE/C,0BAA0B;AACb,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,sBAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAEjE,QAAA,qBAAqB,GAAG,iCAAyB,CAAC,KAAK,CAAC;IACjE,YAAY,EAAE,2BAA2B;IACzC,cAAc,EAAE,6BAA6B;IAC7C,UAAU,EAAE,yBAAyB;IACrC,iBAAiB,EAAE,wBAAwB;IAC3C,oBAAoB,EAAE,wBAAwB;IAC9C,sBAAsB,EAAE,oBAAoB;IAC5C,2BAA2B,EAAE,yBAAyB;IACtD,iBAAiB,EAAE,wBAAwB;IAC3C,UAAU,EAAE,yBAAyB;IACrC,cAAc,EAAE,mBAAmB;CACtC,CAAC,CAAC;AAEH,2BAA2B;AACd,QAAA,qCAAqC,GAC9C,iCAAyB,CAAC,KAAK,CAAC;IAC5B,YAAY,EAAE,yBAAyB;IACvC,cAAc,EAAE,2BAA2B;IAC3C,UAAU,EAAE,uBAAuB;IACnC,iBAAiB,EAAE,oBAAoB;IACvC,oBAAoB,EAAE,uBAAuB;IAC7C,sBAAsB,EAAE,mBAAmB;IAC3C,2BAA2B,EAAE,wBAAwB;IACrD,iBAAiB,EAAE,uBAAuB;IAC1C,UAAU,EAAE,uBAAuB;IACnC,cAAc,EAAE,kBAAkB;CACrC,CAAC,CAAC;AAEM,QAAA,6BAA6B,GAAG,kBAAkB,CAAC"}
@@ -6,7 +6,8 @@ export declare enum AiResultType {
6
6
  VERTICAL_BAR_RESULT = "vertical_bar_chart",
7
7
  TABLE_RESULT = "table",
8
8
  DASHBOARD_RESULT = "dashboard",
9
- IMPROVE_CONTEXT = "improve_context"
9
+ IMPROVE_CONTEXT = "improve_context",
10
+ PROPOSE_CHANGE = "propose_change"
10
11
  }
11
12
  export type AiMetricQuery = Pick<MetricQuery, 'metrics' | 'dimensions' | 'sorts' | 'limit' | 'exploreName'> & {
12
13
  additionalMetrics: Omit<AdditionalMetric, 'sql'>[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,YAAY;IACpB,kBAAkB,sBAAsB;IACxC,mBAAmB,uBAAuB;IAC1C,YAAY,UAAU;IACtB,gBAAgB,cAAc;IAC9B,eAAe,oBAAoB;CACtC;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,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BAAoB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;CAC/B,GACD;IACI,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,kBAAkB,CAAC;CAC9B,GACD;IACI,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
@@ -8,5 +8,6 @@ var AiResultType;
8
8
  AiResultType["TABLE_RESULT"] = "table";
9
9
  AiResultType["DASHBOARD_RESULT"] = "dashboard";
10
10
  AiResultType["IMPROVE_CONTEXT"] = "improve_context";
11
+ AiResultType["PROPOSE_CHANGE"] = "propose_change";
11
12
  })(AiResultType || (exports.AiResultType = AiResultType = {}));
12
13
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/AiAgent/types.ts"],"names":[],"mappings":";;;AAQA,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,wDAAwC,CAAA;IACxC,0DAA0C,CAAA;IAC1C,sCAAsB,CAAA;IACtB,8CAA8B,CAAA;IAC9B,mDAAmC,CAAA;AACvC,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/AiAgent/types.ts"],"names":[],"mappings":";;;AAQA,IAAY,YAOX;AAPD,WAAY,YAAY;IACpB,wDAAwC,CAAA;IACxC,0DAA0C,CAAA;IAC1C,sCAAsB,CAAA;IACtB,8CAA8B,CAAA;IAC9B,mDAAmC,CAAA;IACnC,iDAAiC,CAAA;AACrC,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB"}
@@ -91,6 +91,7 @@ export * from './types/api/uuid';
91
91
  export * from './types/auth';
92
92
  export * from './types/bigQuerySSO';
93
93
  export * from './types/catalog';
94
+ export * from './types/changeset';
94
95
  export * from './types/coder';
95
96
  export * from './types/comments';
96
97
  export * from './types/conditionalFormatting';