@lightdash/common 2.240.0 → 2.241.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 (73) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +28 -28
  3. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  4. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  5. package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
  6. package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
  7. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +447 -0
  8. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js +128 -0
  10. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -0
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +441 -0
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +26 -1
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  18. package/dist/cjs/ee/AiAgent/utils.d.ts +13 -13
  19. package/dist/cjs/types/document.d.ts +5 -0
  20. package/dist/cjs/types/document.d.ts.map +1 -1
  21. package/dist/cjs/utils/document.d.ts +1 -0
  22. package/dist/cjs/utils/document.d.ts.map +1 -1
  23. package/dist/cjs/utils/document.js +3 -1
  24. package/dist/cjs/utils/document.js.map +1 -1
  25. package/dist/esm/.tsbuildinfo +1 -1
  26. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +13 -13
  27. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  28. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  29. package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
  30. package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
  31. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +447 -0
  32. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -0
  33. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js +125 -0
  34. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -0
  35. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
  36. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +441 -0
  37. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  38. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +25 -0
  39. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  40. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  41. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  42. package/dist/esm/ee/AiAgent/utils.d.ts +12 -12
  43. package/dist/esm/types/document.d.ts +5 -0
  44. package/dist/esm/types/document.d.ts.map +1 -1
  45. package/dist/esm/utils/document.d.ts +1 -0
  46. package/dist/esm/utils/document.d.ts.map +1 -1
  47. package/dist/esm/utils/document.js +1 -0
  48. package/dist/esm/utils/document.js.map +1 -1
  49. package/dist/types/.tsbuildinfo +1 -1
  50. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +13 -13
  51. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  52. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  53. package/dist/types/ee/AiAgent/schemas/tools/index.js +1 -0
  54. package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
  55. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +447 -0
  56. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -0
  57. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js +125 -0
  58. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -0
  59. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
  60. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +441 -0
  61. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  62. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +25 -0
  63. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  64. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +62 -62
  65. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  66. package/dist/types/ee/AiAgent/utils.d.ts +12 -12
  67. package/dist/types/types/document.d.ts +5 -0
  68. package/dist/types/types/document.d.ts.map +1 -1
  69. package/dist/types/utils/document.d.ts +1 -0
  70. package/dist/types/utils/document.d.ts.map +1 -1
  71. package/dist/types/utils/document.js +1 -0
  72. package/dist/types/utils/document.js.map +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mcpEditContentArgsSchema = exports.mcpReadContentArgsSchema = exports.mcpCreateContentArgsSchema = exports.mcpDocumentEditSchema = exports.documentAsCodeSchema = exports.mcpDocumentCellSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const toolCreateContentArgs_1 = require("./toolCreateContentArgs");
6
+ const toolEditContentArgs_1 = require("./toolEditContentArgs");
7
+ const toolReadContentArgs_1 = require("./toolReadContentArgs");
8
+ const chartSchema = zod_1.z
9
+ .object({
10
+ name: zod_1.z.string().min(1),
11
+ description: zod_1.z.string().optional(),
12
+ tableName: zod_1.z.string().min(1),
13
+ metricQuery: toolCreateContentArgs_1.toolChartAsCodeMetricQuerySchema,
14
+ chartConfig: zod_1.z.unknown(),
15
+ tableConfig: zod_1.z.unknown().optional(),
16
+ pivotConfig: zod_1.z.unknown().optional(),
17
+ parameters: zod_1.z.unknown().optional(),
18
+ })
19
+ .strict();
20
+ const mergeSchema = zod_1.z
21
+ .object({
22
+ primarySourceId: zod_1.z.string().min(1),
23
+ sources: zod_1.z.array(zod_1.z.discriminatedUnion('kind', [
24
+ zod_1.z.object({ id: zod_1.z.string(), kind: zod_1.z.literal('chart') }).strict(),
25
+ zod_1.z
26
+ .object({
27
+ id: zod_1.z.string(),
28
+ kind: zod_1.z.literal('query'),
29
+ metricQuery: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
30
+ })
31
+ .strict(),
32
+ ])),
33
+ joinKey: zod_1.z.array(zod_1.z.unknown()),
34
+ joinType: zod_1.z.enum(['full', 'left', 'inner']),
35
+ tableCalculations: zod_1.z.array(zod_1.z.unknown()),
36
+ })
37
+ .strict()
38
+ .describe('Durable SavedMergeQuery. Query sources contain full metric queries, never query UUIDs or result rows.');
39
+ exports.mcpDocumentCellSchema = zod_1.z.discriminatedUnion('type', [
40
+ zod_1.z
41
+ .object({
42
+ type: zod_1.z.literal('markdown'),
43
+ content: zod_1.z.object({ markdown: zod_1.z.string() }).strict(),
44
+ })
45
+ .strict(),
46
+ zod_1.z
47
+ .object({
48
+ type: zod_1.z.literal('chart'),
49
+ content: zod_1.z.discriminatedUnion('source', [
50
+ zod_1.z
51
+ .object({
52
+ source: zod_1.z.literal('semantic'),
53
+ chart: chartSchema,
54
+ })
55
+ .strict(),
56
+ zod_1.z
57
+ .object({
58
+ source: zod_1.z.literal('merge'),
59
+ chart: chartSchema.extend({ merge: mergeSchema }),
60
+ })
61
+ .strict(),
62
+ ]),
63
+ })
64
+ .strict(),
65
+ ]);
66
+ exports.documentAsCodeSchema = zod_1.z
67
+ .object({
68
+ name: zod_1.z.string().min(1),
69
+ slug: zod_1.z.string().min(1),
70
+ description: zod_1.z.string(),
71
+ spaceSlug: zod_1.z.string().min(1),
72
+ schemaVersion: zod_1.z.literal(3),
73
+ content: zod_1.z.object({ cells: zod_1.z.array(exports.mcpDocumentCellSchema) }).strict(),
74
+ })
75
+ .strict()
76
+ .describe('Document schema version 3. Supply ordered cells without IDs; IDs are server-managed. Headings come from Markdown and chart names.');
77
+ exports.mcpDocumentEditSchema = zod_1.z.discriminatedUnion('type', [
78
+ zod_1.z
79
+ .object({
80
+ type: zod_1.z.literal('content'),
81
+ baseVersionUuid: zod_1.z
82
+ .string()
83
+ .uuid()
84
+ .describe('Version UUID from read_content. Stale edits fail; reload and retry.'),
85
+ content: exports.documentAsCodeSchema.shape.content.describe('Complete replacement content. Include all cells to keep, including unchanged charts. Omitted cells are removed.'),
86
+ })
87
+ .strict(),
88
+ zod_1.z
89
+ .object({
90
+ type: zod_1.z.literal('metadata'),
91
+ name: zod_1.z.string().min(1).optional(),
92
+ slug: zod_1.z.string().min(1).optional(),
93
+ description: zod_1.z.string().optional(),
94
+ })
95
+ .strict(),
96
+ ]);
97
+ exports.mcpCreateContentArgsSchema = toolCreateContentArgs_1.toolCreateContentArgsSchema.extend({
98
+ type: zod_1.z.enum(['dashboard', 'chart', 'document']),
99
+ content: zod_1.z.union([
100
+ exports.documentAsCodeSchema,
101
+ toolCreateContentArgs_1.toolCreateContentArgsSchema.shape.content,
102
+ ]),
103
+ });
104
+ exports.mcpReadContentArgsSchema = toolReadContentArgs_1.toolReadContentArgsSchema.extend({
105
+ slug: zod_1.z
106
+ .string()
107
+ .min(1)
108
+ .optional()
109
+ .describe('Content slug. Required unless reading a Document by documentUuid.'),
110
+ documentUuid: zod_1.z
111
+ .string()
112
+ .uuid()
113
+ .optional()
114
+ .describe('For Documents only: UUID from a canonical Document URL, instead of slug.'),
115
+ type: zod_1.z.enum(['dashboard', 'chart', 'data_app', 'document']),
116
+ });
117
+ exports.mcpEditContentArgsSchema = toolEditContentArgs_1.toolEditContentArgsSchema.extend({
118
+ slug: zod_1.z
119
+ .string()
120
+ .min(1)
121
+ .describe('Exact content slug, as returned by read_content.'),
122
+ type: zod_1.z.enum(['dashboard', 'chart', 'document']),
123
+ patch: toolEditContentArgs_1.toolEditContentArgsSchema.shape.patch.optional(),
124
+ documentEdit: exports.mcpDocumentEditSchema
125
+ .optional()
126
+ .describe('Required for Documents instead of patch. Replace all content with baseVersionUuid, or update metadata separately. Cell IDs are server-managed.'),
127
+ });
128
+ //# sourceMappingURL=mcpDocumentContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpDocumentContent.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/mcpDocumentContent.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAGiC;AACjC,+DAAkE;AAClE,+DAAkE;AAElE,MAAM,WAAW,GAAG,OAAC;KAChB,MAAM,CAAC;IACJ,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,WAAW,EAAE,wDAAgC;IAC7C,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAA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,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;CAC/D,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,+CAAyB,CAAC,MAAM,CAAC;IACrE,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,kDAAkD,CAAC;IACjE,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAChD,KAAK,EAAE,+CAAyB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE;IACvD,YAAY,EAAE,QAAA,qBAAqB;SAC9B,QAAQ,EAAE;SACV,QAAQ,CACL,gJAAgJ,CACnJ;CACR,CAAC,CAAC"}
@@ -2543,13 +2543,31 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2543
2543
  tableCalculations: ({
2544
2544
  name: string;
2545
2545
  displayName: string;
2546
- type: "percent_of_previous_value";
2546
+ type: "percent_of_column_total";
2547
2547
  fieldId: string;
2548
+ partitionBy: string[] | null;
2549
+ } | {
2550
+ name: string;
2551
+ displayName: string;
2552
+ type: "window_function";
2553
+ windowFunction: import("../../../..").WindowFunctionType;
2554
+ fieldId: string | null;
2548
2555
  orderBy: {
2549
2556
  fieldId: string;
2550
2557
  order: "asc" | "desc" | null;
2551
- }[];
2558
+ }[] | null;
2552
2559
  partitionBy: string[] | null;
2560
+ frame: {
2561
+ frameType: "range" | "rows";
2562
+ start: {
2563
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2564
+ offset: number | null;
2565
+ } | null;
2566
+ end: {
2567
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2568
+ offset: number | null;
2569
+ };
2570
+ } | null;
2553
2571
  } | {
2554
2572
  name: string;
2555
2573
  displayName: string;
@@ -2570,8 +2588,12 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2570
2588
  } | {
2571
2589
  name: string;
2572
2590
  displayName: string;
2573
- type: "percent_of_column_total";
2591
+ type: "percent_of_previous_value";
2574
2592
  fieldId: string;
2593
+ orderBy: {
2594
+ fieldId: string;
2595
+ order: "asc" | "desc" | null;
2596
+ }[];
2575
2597
  partitionBy: string[] | null;
2576
2598
  } | {
2577
2599
  name: string;
@@ -2583,28 +2605,6 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2583
2605
  displayName: string;
2584
2606
  type: "running_total";
2585
2607
  fieldId: string;
2586
- } | {
2587
- name: string;
2588
- displayName: string;
2589
- type: "window_function";
2590
- windowFunction: import("../../../..").WindowFunctionType;
2591
- fieldId: string | null;
2592
- orderBy: {
2593
- fieldId: string;
2594
- order: "asc" | "desc" | null;
2595
- }[] | null;
2596
- partitionBy: string[] | null;
2597
- frame: {
2598
- frameType: "range" | "rows";
2599
- start: {
2600
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2601
- offset: number | null;
2602
- } | null;
2603
- end: {
2604
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2605
- offset: number | null;
2606
- };
2607
- } | null;
2608
2608
  })[] | null;
2609
2609
  filters: import("../../../..").Filters;
2610
2610
  };
@@ -2779,13 +2779,31 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2779
2779
  tableCalculations: ({
2780
2780
  name: string;
2781
2781
  displayName: string;
2782
- type: "percent_of_previous_value";
2782
+ type: "percent_of_column_total";
2783
2783
  fieldId: string;
2784
+ partitionBy: string[] | null;
2785
+ } | {
2786
+ name: string;
2787
+ displayName: string;
2788
+ type: "window_function";
2789
+ windowFunction: import("../../../..").WindowFunctionType;
2790
+ fieldId: string | null;
2784
2791
  orderBy: {
2785
2792
  fieldId: string;
2786
2793
  order: "asc" | "desc" | null;
2787
- }[];
2794
+ }[] | null;
2788
2795
  partitionBy: string[] | null;
2796
+ frame: {
2797
+ frameType: "range" | "rows";
2798
+ start: {
2799
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2800
+ offset: number | null;
2801
+ } | null;
2802
+ end: {
2803
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2804
+ offset: number | null;
2805
+ };
2806
+ } | null;
2789
2807
  } | {
2790
2808
  name: string;
2791
2809
  displayName: string;
@@ -2806,8 +2824,12 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2806
2824
  } | {
2807
2825
  name: string;
2808
2826
  displayName: string;
2809
- type: "percent_of_column_total";
2827
+ type: "percent_of_previous_value";
2810
2828
  fieldId: string;
2829
+ orderBy: {
2830
+ fieldId: string;
2831
+ order: "asc" | "desc" | null;
2832
+ }[];
2811
2833
  partitionBy: string[] | null;
2812
2834
  } | {
2813
2835
  name: string;
@@ -2819,28 +2841,6 @@ export declare const toolDashboardV2ArgsSchemaTransformed: z.ZodPipe<z.ZodObject
2819
2841
  displayName: string;
2820
2842
  type: "running_total";
2821
2843
  fieldId: string;
2822
- } | {
2823
- name: string;
2824
- displayName: string;
2825
- type: "window_function";
2826
- windowFunction: import("../../../..").WindowFunctionType;
2827
- fieldId: string | null;
2828
- orderBy: {
2829
- fieldId: string;
2830
- order: "asc" | "desc" | null;
2831
- }[] | null;
2832
- partitionBy: string[] | null;
2833
- frame: {
2834
- frameType: "range" | "rows";
2835
- start: {
2836
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2837
- offset: number | null;
2838
- } | null;
2839
- end: {
2840
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
2841
- offset: number | null;
2842
- };
2843
- } | null;
2844
2844
  })[] | null;
2845
2845
  filters: {
2846
2846
  type: "and" | "or";