@xpert-ai/plugin-live-dashboard 0.4.1 → 0.5.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 (50) hide show
  1. package/.xpertai-plugin/plugin.json +1 -1
  2. package/README.md +4 -0
  3. package/dist/lib/agent.schema.d.ts +179 -25
  4. package/dist/lib/agent.schema.js +10 -9
  5. package/dist/lib/archive.service.d.ts +145 -0
  6. package/dist/lib/archive.service.js +133 -0
  7. package/dist/lib/content.provider.d.ts +1 -1
  8. package/dist/lib/dashboard-archive.d.ts +70 -0
  9. package/dist/lib/dashboard-archive.js +118 -0
  10. package/dist/lib/dashboard-sources.d.ts +69 -0
  11. package/dist/lib/dashboard-sources.js +37 -0
  12. package/dist/lib/dashboard-view.schema.d.ts +422 -88
  13. package/dist/lib/dashboard.schema.d.ts +379 -58
  14. package/dist/lib/dashboard.schema.js +18 -1
  15. package/dist/lib/dashboard.service.d.ts +60 -14
  16. package/dist/lib/dashboard.service.js +8 -2
  17. package/dist/lib/document-package.d.ts +19 -4
  18. package/dist/lib/editing-patch.d.ts +3 -0
  19. package/dist/lib/editing-patch.js +2 -1
  20. package/dist/lib/editing-session.d.ts +4 -4
  21. package/dist/lib/editing.d.ts +202 -19
  22. package/dist/lib/editing.js +5 -2
  23. package/dist/lib/html-validation-feedback.d.ts +7 -0
  24. package/dist/lib/html-validation-feedback.js +19 -0
  25. package/dist/lib/html-validation.js +2 -1
  26. package/dist/lib/inspection-host.d.ts +7 -0
  27. package/dist/lib/inspection-host.js +48 -0
  28. package/dist/lib/inspection-runtime.d.ts +2 -0
  29. package/dist/lib/inspection-runtime.js +77 -0
  30. package/dist/lib/json-input.d.ts +4 -0
  31. package/dist/lib/json-input.js +21 -0
  32. package/dist/lib/middleware.js +3 -2
  33. package/dist/lib/plugin.js +2 -1
  34. package/dist/lib/presentation.provider.d.ts +24 -9
  35. package/dist/lib/presentation.provider.js +2 -1
  36. package/dist/lib/source-executions.d.ts +196 -0
  37. package/dist/lib/source-executions.js +25 -0
  38. package/dist/lib/source-validation.d.ts +2 -0
  39. package/dist/lib/source-validation.js +21 -0
  40. package/dist/lib/view.provider.d.ts +178 -8
  41. package/dist/lib/view.provider.js +30 -4
  42. package/dist/remote/app.css +1 -1
  43. package/dist/remote/app.js +100 -27
  44. package/dist/remote/build-manifest.json +37 -23
  45. package/docs/docs.json +3 -1
  46. package/docs/sources-inspect-portability-acceptance.mdx +67 -0
  47. package/docs/sources-inspect-portability.mdx +115 -0
  48. package/package.json +6 -5
  49. package/skills/live-dashboard/SKILL.md +5 -4
  50. package/skills/live-dashboard/references/source-inspection.md +17 -0
@@ -4,6 +4,53 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  title: z.ZodString;
6
6
  bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
7
+ sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ bindingId: z.ZodString;
9
+ title: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ bindingId: string;
13
+ title: string;
14
+ description?: string | undefined;
15
+ }, {
16
+ bindingId: string;
17
+ title: string;
18
+ description?: string | undefined;
19
+ }>, "many">>;
20
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ elementId: z.ZodString;
23
+ title: z.ZodString;
24
+ kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
25
+ sources: z.ZodArray<z.ZodObject<{
26
+ bindingId: z.ZodString;
27
+ fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ bindingId: string;
30
+ fieldIds?: string[] | undefined;
31
+ }, {
32
+ bindingId: string;
33
+ fieldIds?: string[] | undefined;
34
+ }>, "many">;
35
+ }, "strict", z.ZodTypeAny, {
36
+ title: string;
37
+ id: string;
38
+ elementId: string;
39
+ kind: "filter" | "metric" | "chart" | "table" | "text";
40
+ sources: {
41
+ bindingId: string;
42
+ fieldIds?: string[] | undefined;
43
+ }[];
44
+ }, {
45
+ title: string;
46
+ id: string;
47
+ elementId: string;
48
+ kind: "filter" | "metric" | "chart" | "table" | "text";
49
+ sources: {
50
+ bindingId: string;
51
+ fieldIds?: string[] | undefined;
52
+ }[];
53
+ }>, "many">>;
7
54
  presentation: z.ZodOptional<z.ZodObject<{
8
55
  type: z.ZodLiteral<"html">;
9
56
  html: z.ZodEffects<z.ZodString, string, string>;
@@ -81,17 +128,17 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
81
128
  y: z.ZodString;
82
129
  color: z.ZodOptional<z.ZodString>;
83
130
  }, "strict", z.ZodTypeAny, {
131
+ title: string;
84
132
  type: "bar" | "line" | "area" | "pie" | "scatter";
85
133
  id: string;
86
- title: string;
87
134
  datasetId: string;
88
135
  x: string;
89
136
  y: string;
90
137
  color?: string | undefined;
91
138
  }, {
139
+ title: string;
92
140
  type: "bar" | "line" | "area" | "pie" | "scatter";
93
141
  id: string;
94
- title: string;
95
142
  datasetId: string;
96
143
  x: string;
97
144
  y: string;
@@ -103,20 +150,20 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
103
150
  datasetId: z.ZodString;
104
151
  fields: z.ZodArray<z.ZodString, "many">;
105
152
  }, "strict", z.ZodTypeAny, {
106
- id: string;
107
153
  title: string;
154
+ id: string;
108
155
  datasetId: string;
109
156
  fields: string[];
110
157
  }, {
111
- id: string;
112
158
  title: string;
159
+ id: string;
113
160
  datasetId: string;
114
161
  fields: string[];
115
162
  }>, "many">;
116
163
  }, "strict", z.ZodTypeAny, {
117
- schema: "xpert.live-dashboard";
118
- id: string;
119
164
  title: string;
165
+ id: string;
166
+ schema: "xpert.live-dashboard";
120
167
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
121
168
  controls: {
122
169
  type: "string" | "number" | "boolean" | "date";
@@ -126,29 +173,44 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
126
173
  allowedValues?: (string | number | boolean | null)[] | undefined;
127
174
  }[];
128
175
  charts: {
176
+ title: string;
129
177
  type: "bar" | "line" | "area" | "pie" | "scatter";
130
178
  id: string;
131
- title: string;
132
179
  datasetId: string;
133
180
  x: string;
134
181
  y: string;
135
182
  color?: string | undefined;
136
183
  }[];
137
184
  tables: {
138
- id: string;
139
185
  title: string;
186
+ id: string;
140
187
  datasetId: string;
141
188
  fields: string[];
142
189
  }[];
190
+ sourceMetadata?: {
191
+ bindingId: string;
192
+ title: string;
193
+ description?: string | undefined;
194
+ }[] | undefined;
195
+ components?: {
196
+ title: string;
197
+ id: string;
198
+ elementId: string;
199
+ kind: "filter" | "metric" | "chart" | "table" | "text";
200
+ sources: {
201
+ bindingId: string;
202
+ fieldIds?: string[] | undefined;
203
+ }[];
204
+ }[] | undefined;
143
205
  presentation?: {
144
206
  type: "html";
145
207
  html: string;
146
208
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
147
209
  } | undefined;
148
210
  }, {
149
- schema: "xpert.live-dashboard";
150
- id: string;
151
211
  title: string;
212
+ id: string;
213
+ schema: "xpert.live-dashboard";
152
214
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
153
215
  controls: {
154
216
  type: "string" | "number" | "boolean" | "date";
@@ -158,20 +220,35 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
158
220
  allowedValues?: (string | number | boolean | null)[] | undefined;
159
221
  }[];
160
222
  charts: {
223
+ title: string;
161
224
  type: "bar" | "line" | "area" | "pie" | "scatter";
162
225
  id: string;
163
- title: string;
164
226
  datasetId: string;
165
227
  x: string;
166
228
  y: string;
167
229
  color?: string | undefined;
168
230
  }[];
169
231
  tables: {
170
- id: string;
171
232
  title: string;
233
+ id: string;
172
234
  datasetId: string;
173
235
  fields: string[];
174
236
  }[];
237
+ sourceMetadata?: {
238
+ bindingId: string;
239
+ title: string;
240
+ description?: string | undefined;
241
+ }[] | undefined;
242
+ components?: {
243
+ title: string;
244
+ id: string;
245
+ elementId: string;
246
+ kind: "filter" | "metric" | "chart" | "table" | "text";
247
+ sources: {
248
+ bindingId: string;
249
+ fieldIds?: string[] | undefined;
250
+ }[];
251
+ }[] | undefined;
175
252
  presentation?: {
176
253
  type: "html";
177
254
  html: string;
@@ -184,9 +261,9 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
184
261
  }[] | undefined;
185
262
  } | undefined;
186
263
  }>, {
187
- schema: "xpert.live-dashboard";
188
- id: string;
189
264
  title: string;
265
+ id: string;
266
+ schema: "xpert.live-dashboard";
190
267
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
191
268
  controls: {
192
269
  type: "string" | "number" | "boolean" | "date";
@@ -196,29 +273,44 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
196
273
  allowedValues?: (string | number | boolean | null)[] | undefined;
197
274
  }[];
198
275
  charts: {
276
+ title: string;
199
277
  type: "bar" | "line" | "area" | "pie" | "scatter";
200
278
  id: string;
201
- title: string;
202
279
  datasetId: string;
203
280
  x: string;
204
281
  y: string;
205
282
  color?: string | undefined;
206
283
  }[];
207
284
  tables: {
208
- id: string;
209
285
  title: string;
286
+ id: string;
210
287
  datasetId: string;
211
288
  fields: string[];
212
289
  }[];
290
+ sourceMetadata?: {
291
+ bindingId: string;
292
+ title: string;
293
+ description?: string | undefined;
294
+ }[] | undefined;
295
+ components?: {
296
+ title: string;
297
+ id: string;
298
+ elementId: string;
299
+ kind: "filter" | "metric" | "chart" | "table" | "text";
300
+ sources: {
301
+ bindingId: string;
302
+ fieldIds?: string[] | undefined;
303
+ }[];
304
+ }[] | undefined;
213
305
  presentation?: {
214
306
  type: "html";
215
307
  html: string;
216
308
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
217
309
  } | undefined;
218
310
  }, {
219
- schema: "xpert.live-dashboard";
220
- id: string;
221
311
  title: string;
312
+ id: string;
313
+ schema: "xpert.live-dashboard";
222
314
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
223
315
  controls: {
224
316
  type: "string" | "number" | "boolean" | "date";
@@ -228,20 +320,35 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
228
320
  allowedValues?: (string | number | boolean | null)[] | undefined;
229
321
  }[];
230
322
  charts: {
323
+ title: string;
231
324
  type: "bar" | "line" | "area" | "pie" | "scatter";
232
325
  id: string;
233
- title: string;
234
326
  datasetId: string;
235
327
  x: string;
236
328
  y: string;
237
329
  color?: string | undefined;
238
330
  }[];
239
331
  tables: {
240
- id: string;
241
332
  title: string;
333
+ id: string;
242
334
  datasetId: string;
243
335
  fields: string[];
244
336
  }[];
337
+ sourceMetadata?: {
338
+ bindingId: string;
339
+ title: string;
340
+ description?: string | undefined;
341
+ }[] | undefined;
342
+ components?: {
343
+ title: string;
344
+ id: string;
345
+ elementId: string;
346
+ kind: "filter" | "metric" | "chart" | "table" | "text";
347
+ sources: {
348
+ bindingId: string;
349
+ fieldIds?: string[] | undefined;
350
+ }[];
351
+ }[] | undefined;
245
352
  presentation?: {
246
353
  type: "html";
247
354
  html: string;
@@ -262,6 +369,53 @@ export type DashboardManifest = z.output<typeof dashboardSchema>;
262
369
  export declare const dashboardChangesSchema: z.ZodObject<{
263
370
  title: z.ZodOptional<z.ZodString>;
264
371
  bindings: z.ZodOptional<z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">>;
372
+ sourceMetadata: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
373
+ bindingId: z.ZodString;
374
+ title: z.ZodString;
375
+ description: z.ZodOptional<z.ZodString>;
376
+ }, "strict", z.ZodTypeAny, {
377
+ bindingId: string;
378
+ title: string;
379
+ description?: string | undefined;
380
+ }, {
381
+ bindingId: string;
382
+ title: string;
383
+ description?: string | undefined;
384
+ }>, "many">>>;
385
+ components: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
386
+ id: z.ZodString;
387
+ elementId: z.ZodString;
388
+ title: z.ZodString;
389
+ kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
390
+ sources: z.ZodArray<z.ZodObject<{
391
+ bindingId: z.ZodString;
392
+ fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393
+ }, "strict", z.ZodTypeAny, {
394
+ bindingId: string;
395
+ fieldIds?: string[] | undefined;
396
+ }, {
397
+ bindingId: string;
398
+ fieldIds?: string[] | undefined;
399
+ }>, "many">;
400
+ }, "strict", z.ZodTypeAny, {
401
+ title: string;
402
+ id: string;
403
+ elementId: string;
404
+ kind: "filter" | "metric" | "chart" | "table" | "text";
405
+ sources: {
406
+ bindingId: string;
407
+ fieldIds?: string[] | undefined;
408
+ }[];
409
+ }, {
410
+ title: string;
411
+ id: string;
412
+ elementId: string;
413
+ kind: "filter" | "metric" | "chart" | "table" | "text";
414
+ sources: {
415
+ bindingId: string;
416
+ fieldIds?: string[] | undefined;
417
+ }[];
418
+ }>, "many">>>;
265
419
  presentation: z.ZodOptional<z.ZodOptional<z.ZodObject<{
266
420
  type: z.ZodLiteral<"html">;
267
421
  html: z.ZodEffects<z.ZodString, string, string>;
@@ -339,17 +493,17 @@ export declare const dashboardChangesSchema: z.ZodObject<{
339
493
  y: z.ZodString;
340
494
  color: z.ZodOptional<z.ZodString>;
341
495
  }, "strict", z.ZodTypeAny, {
496
+ title: string;
342
497
  type: "bar" | "line" | "area" | "pie" | "scatter";
343
498
  id: string;
344
- title: string;
345
499
  datasetId: string;
346
500
  x: string;
347
501
  y: string;
348
502
  color?: string | undefined;
349
503
  }, {
504
+ title: string;
350
505
  type: "bar" | "line" | "area" | "pie" | "scatter";
351
506
  id: string;
352
- title: string;
353
507
  datasetId: string;
354
508
  x: string;
355
509
  y: string;
@@ -361,19 +515,34 @@ export declare const dashboardChangesSchema: z.ZodObject<{
361
515
  datasetId: z.ZodString;
362
516
  fields: z.ZodArray<z.ZodString, "many">;
363
517
  }, "strict", z.ZodTypeAny, {
364
- id: string;
365
518
  title: string;
519
+ id: string;
366
520
  datasetId: string;
367
521
  fields: string[];
368
522
  }, {
369
- id: string;
370
523
  title: string;
524
+ id: string;
371
525
  datasetId: string;
372
526
  fields: string[];
373
527
  }>, "many">>;
374
528
  }, "strict", z.ZodTypeAny, {
375
529
  title?: string | undefined;
376
530
  bindings?: import("@xpert-ai/contracts").AnalyticsBinding[] | undefined;
531
+ sourceMetadata?: {
532
+ bindingId: string;
533
+ title: string;
534
+ description?: string | undefined;
535
+ }[] | undefined;
536
+ components?: {
537
+ title: string;
538
+ id: string;
539
+ elementId: string;
540
+ kind: "filter" | "metric" | "chart" | "table" | "text";
541
+ sources: {
542
+ bindingId: string;
543
+ fieldIds?: string[] | undefined;
544
+ }[];
545
+ }[] | undefined;
377
546
  presentation?: {
378
547
  type: "html";
379
548
  html: string;
@@ -387,23 +556,38 @@ export declare const dashboardChangesSchema: z.ZodObject<{
387
556
  allowedValues?: (string | number | boolean | null)[] | undefined;
388
557
  }[] | undefined;
389
558
  charts?: {
559
+ title: string;
390
560
  type: "bar" | "line" | "area" | "pie" | "scatter";
391
561
  id: string;
392
- title: string;
393
562
  datasetId: string;
394
563
  x: string;
395
564
  y: string;
396
565
  color?: string | undefined;
397
566
  }[] | undefined;
398
567
  tables?: {
399
- id: string;
400
568
  title: string;
569
+ id: string;
401
570
  datasetId: string;
402
571
  fields: string[];
403
572
  }[] | undefined;
404
573
  }, {
405
574
  title?: string | undefined;
406
575
  bindings?: import("@xpert-ai/contracts").AnalyticsBinding[] | undefined;
576
+ sourceMetadata?: {
577
+ bindingId: string;
578
+ title: string;
579
+ description?: string | undefined;
580
+ }[] | undefined;
581
+ components?: {
582
+ title: string;
583
+ id: string;
584
+ elementId: string;
585
+ kind: "filter" | "metric" | "chart" | "table" | "text";
586
+ sources: {
587
+ bindingId: string;
588
+ fieldIds?: string[] | undefined;
589
+ }[];
590
+ }[] | undefined;
407
591
  presentation?: {
408
592
  type: "html";
409
593
  html: string;
@@ -423,17 +607,17 @@ export declare const dashboardChangesSchema: z.ZodObject<{
423
607
  allowedValues?: (string | number | boolean | null)[] | undefined;
424
608
  }[] | undefined;
425
609
  charts?: {
610
+ title: string;
426
611
  type: "bar" | "line" | "area" | "pie" | "scatter";
427
612
  id: string;
428
- title: string;
429
613
  datasetId: string;
430
614
  x: string;
431
615
  y: string;
432
616
  color?: string | undefined;
433
617
  }[] | undefined;
434
618
  tables?: {
435
- id: string;
436
619
  title: string;
620
+ id: string;
437
621
  datasetId: string;
438
622
  fields: string[];
439
623
  }[] | undefined;
@@ -446,6 +630,53 @@ export declare const saveSchema: z.ZodObject<{
446
630
  id: z.ZodString;
447
631
  title: z.ZodString;
448
632
  bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
633
+ sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
634
+ bindingId: z.ZodString;
635
+ title: z.ZodString;
636
+ description: z.ZodOptional<z.ZodString>;
637
+ }, "strict", z.ZodTypeAny, {
638
+ bindingId: string;
639
+ title: string;
640
+ description?: string | undefined;
641
+ }, {
642
+ bindingId: string;
643
+ title: string;
644
+ description?: string | undefined;
645
+ }>, "many">>;
646
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
647
+ id: z.ZodString;
648
+ elementId: z.ZodString;
649
+ title: z.ZodString;
650
+ kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
651
+ sources: z.ZodArray<z.ZodObject<{
652
+ bindingId: z.ZodString;
653
+ fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
654
+ }, "strict", z.ZodTypeAny, {
655
+ bindingId: string;
656
+ fieldIds?: string[] | undefined;
657
+ }, {
658
+ bindingId: string;
659
+ fieldIds?: string[] | undefined;
660
+ }>, "many">;
661
+ }, "strict", z.ZodTypeAny, {
662
+ title: string;
663
+ id: string;
664
+ elementId: string;
665
+ kind: "filter" | "metric" | "chart" | "table" | "text";
666
+ sources: {
667
+ bindingId: string;
668
+ fieldIds?: string[] | undefined;
669
+ }[];
670
+ }, {
671
+ title: string;
672
+ id: string;
673
+ elementId: string;
674
+ kind: "filter" | "metric" | "chart" | "table" | "text";
675
+ sources: {
676
+ bindingId: string;
677
+ fieldIds?: string[] | undefined;
678
+ }[];
679
+ }>, "many">>;
449
680
  presentation: z.ZodOptional<z.ZodObject<{
450
681
  type: z.ZodLiteral<"html">;
451
682
  html: z.ZodEffects<z.ZodString, string, string>;
@@ -523,17 +754,17 @@ export declare const saveSchema: z.ZodObject<{
523
754
  y: z.ZodString;
524
755
  color: z.ZodOptional<z.ZodString>;
525
756
  }, "strict", z.ZodTypeAny, {
757
+ title: string;
526
758
  type: "bar" | "line" | "area" | "pie" | "scatter";
527
759
  id: string;
528
- title: string;
529
760
  datasetId: string;
530
761
  x: string;
531
762
  y: string;
532
763
  color?: string | undefined;
533
764
  }, {
765
+ title: string;
534
766
  type: "bar" | "line" | "area" | "pie" | "scatter";
535
767
  id: string;
536
- title: string;
537
768
  datasetId: string;
538
769
  x: string;
539
770
  y: string;
@@ -545,20 +776,20 @@ export declare const saveSchema: z.ZodObject<{
545
776
  datasetId: z.ZodString;
546
777
  fields: z.ZodArray<z.ZodString, "many">;
547
778
  }, "strict", z.ZodTypeAny, {
548
- id: string;
549
779
  title: string;
780
+ id: string;
550
781
  datasetId: string;
551
782
  fields: string[];
552
783
  }, {
553
- id: string;
554
784
  title: string;
785
+ id: string;
555
786
  datasetId: string;
556
787
  fields: string[];
557
788
  }>, "many">;
558
789
  }, "strict", z.ZodTypeAny, {
559
- schema: "xpert.live-dashboard";
560
- id: string;
561
790
  title: string;
791
+ id: string;
792
+ schema: "xpert.live-dashboard";
562
793
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
563
794
  controls: {
564
795
  type: "string" | "number" | "boolean" | "date";
@@ -568,29 +799,44 @@ export declare const saveSchema: z.ZodObject<{
568
799
  allowedValues?: (string | number | boolean | null)[] | undefined;
569
800
  }[];
570
801
  charts: {
802
+ title: string;
571
803
  type: "bar" | "line" | "area" | "pie" | "scatter";
572
804
  id: string;
573
- title: string;
574
805
  datasetId: string;
575
806
  x: string;
576
807
  y: string;
577
808
  color?: string | undefined;
578
809
  }[];
579
810
  tables: {
580
- id: string;
581
811
  title: string;
812
+ id: string;
582
813
  datasetId: string;
583
814
  fields: string[];
584
815
  }[];
816
+ sourceMetadata?: {
817
+ bindingId: string;
818
+ title: string;
819
+ description?: string | undefined;
820
+ }[] | undefined;
821
+ components?: {
822
+ title: string;
823
+ id: string;
824
+ elementId: string;
825
+ kind: "filter" | "metric" | "chart" | "table" | "text";
826
+ sources: {
827
+ bindingId: string;
828
+ fieldIds?: string[] | undefined;
829
+ }[];
830
+ }[] | undefined;
585
831
  presentation?: {
586
832
  type: "html";
587
833
  html: string;
588
834
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
589
835
  } | undefined;
590
836
  }, {
591
- schema: "xpert.live-dashboard";
592
- id: string;
593
837
  title: string;
838
+ id: string;
839
+ schema: "xpert.live-dashboard";
594
840
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
595
841
  controls: {
596
842
  type: "string" | "number" | "boolean" | "date";
@@ -600,20 +846,35 @@ export declare const saveSchema: z.ZodObject<{
600
846
  allowedValues?: (string | number | boolean | null)[] | undefined;
601
847
  }[];
602
848
  charts: {
849
+ title: string;
603
850
  type: "bar" | "line" | "area" | "pie" | "scatter";
604
851
  id: string;
605
- title: string;
606
852
  datasetId: string;
607
853
  x: string;
608
854
  y: string;
609
855
  color?: string | undefined;
610
856
  }[];
611
857
  tables: {
612
- id: string;
613
858
  title: string;
859
+ id: string;
614
860
  datasetId: string;
615
861
  fields: string[];
616
862
  }[];
863
+ sourceMetadata?: {
864
+ bindingId: string;
865
+ title: string;
866
+ description?: string | undefined;
867
+ }[] | undefined;
868
+ components?: {
869
+ title: string;
870
+ id: string;
871
+ elementId: string;
872
+ kind: "filter" | "metric" | "chart" | "table" | "text";
873
+ sources: {
874
+ bindingId: string;
875
+ fieldIds?: string[] | undefined;
876
+ }[];
877
+ }[] | undefined;
617
878
  presentation?: {
618
879
  type: "html";
619
880
  html: string;
@@ -626,9 +887,9 @@ export declare const saveSchema: z.ZodObject<{
626
887
  }[] | undefined;
627
888
  } | undefined;
628
889
  }>, {
629
- schema: "xpert.live-dashboard";
630
- id: string;
631
890
  title: string;
891
+ id: string;
892
+ schema: "xpert.live-dashboard";
632
893
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
633
894
  controls: {
634
895
  type: "string" | "number" | "boolean" | "date";
@@ -638,29 +899,44 @@ export declare const saveSchema: z.ZodObject<{
638
899
  allowedValues?: (string | number | boolean | null)[] | undefined;
639
900
  }[];
640
901
  charts: {
902
+ title: string;
641
903
  type: "bar" | "line" | "area" | "pie" | "scatter";
642
904
  id: string;
643
- title: string;
644
905
  datasetId: string;
645
906
  x: string;
646
907
  y: string;
647
908
  color?: string | undefined;
648
909
  }[];
649
910
  tables: {
650
- id: string;
651
911
  title: string;
912
+ id: string;
652
913
  datasetId: string;
653
914
  fields: string[];
654
915
  }[];
916
+ sourceMetadata?: {
917
+ bindingId: string;
918
+ title: string;
919
+ description?: string | undefined;
920
+ }[] | undefined;
921
+ components?: {
922
+ title: string;
923
+ id: string;
924
+ elementId: string;
925
+ kind: "filter" | "metric" | "chart" | "table" | "text";
926
+ sources: {
927
+ bindingId: string;
928
+ fieldIds?: string[] | undefined;
929
+ }[];
930
+ }[] | undefined;
655
931
  presentation?: {
656
932
  type: "html";
657
933
  html: string;
658
934
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
659
935
  } | undefined;
660
936
  }, {
661
- schema: "xpert.live-dashboard";
662
- id: string;
663
937
  title: string;
938
+ id: string;
939
+ schema: "xpert.live-dashboard";
664
940
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
665
941
  controls: {
666
942
  type: "string" | "number" | "boolean" | "date";
@@ -670,20 +946,35 @@ export declare const saveSchema: z.ZodObject<{
670
946
  allowedValues?: (string | number | boolean | null)[] | undefined;
671
947
  }[];
672
948
  charts: {
949
+ title: string;
673
950
  type: "bar" | "line" | "area" | "pie" | "scatter";
674
951
  id: string;
675
- title: string;
676
952
  datasetId: string;
677
953
  x: string;
678
954
  y: string;
679
955
  color?: string | undefined;
680
956
  }[];
681
957
  tables: {
682
- id: string;
683
958
  title: string;
959
+ id: string;
684
960
  datasetId: string;
685
961
  fields: string[];
686
962
  }[];
963
+ sourceMetadata?: {
964
+ bindingId: string;
965
+ title: string;
966
+ description?: string | undefined;
967
+ }[] | undefined;
968
+ components?: {
969
+ title: string;
970
+ id: string;
971
+ elementId: string;
972
+ kind: "filter" | "metric" | "chart" | "table" | "text";
973
+ sources: {
974
+ bindingId: string;
975
+ fieldIds?: string[] | undefined;
976
+ }[];
977
+ }[] | undefined;
687
978
  presentation?: {
688
979
  type: "html";
689
980
  html: string;
@@ -700,9 +991,9 @@ export declare const saveSchema: z.ZodObject<{
700
991
  expectedRevision: z.ZodDefault<z.ZodNumber>;
701
992
  }, "strict", z.ZodTypeAny, {
702
993
  manifest: {
703
- schema: "xpert.live-dashboard";
704
- id: string;
705
994
  title: string;
995
+ id: string;
996
+ schema: "xpert.live-dashboard";
706
997
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
707
998
  controls: {
708
999
  type: "string" | "number" | "boolean" | "date";
@@ -712,20 +1003,35 @@ export declare const saveSchema: z.ZodObject<{
712
1003
  allowedValues?: (string | number | boolean | null)[] | undefined;
713
1004
  }[];
714
1005
  charts: {
1006
+ title: string;
715
1007
  type: "bar" | "line" | "area" | "pie" | "scatter";
716
1008
  id: string;
717
- title: string;
718
1009
  datasetId: string;
719
1010
  x: string;
720
1011
  y: string;
721
1012
  color?: string | undefined;
722
1013
  }[];
723
1014
  tables: {
724
- id: string;
725
1015
  title: string;
1016
+ id: string;
726
1017
  datasetId: string;
727
1018
  fields: string[];
728
1019
  }[];
1020
+ sourceMetadata?: {
1021
+ bindingId: string;
1022
+ title: string;
1023
+ description?: string | undefined;
1024
+ }[] | undefined;
1025
+ components?: {
1026
+ title: string;
1027
+ id: string;
1028
+ elementId: string;
1029
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1030
+ sources: {
1031
+ bindingId: string;
1032
+ fieldIds?: string[] | undefined;
1033
+ }[];
1034
+ }[] | undefined;
729
1035
  presentation?: {
730
1036
  type: "html";
731
1037
  html: string;
@@ -736,9 +1042,9 @@ export declare const saveSchema: z.ZodObject<{
736
1042
  expectedRevision: number;
737
1043
  }, {
738
1044
  manifest: {
739
- schema: "xpert.live-dashboard";
740
- id: string;
741
1045
  title: string;
1046
+ id: string;
1047
+ schema: "xpert.live-dashboard";
742
1048
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
743
1049
  controls: {
744
1050
  type: "string" | "number" | "boolean" | "date";
@@ -748,20 +1054,35 @@ export declare const saveSchema: z.ZodObject<{
748
1054
  allowedValues?: (string | number | boolean | null)[] | undefined;
749
1055
  }[];
750
1056
  charts: {
1057
+ title: string;
751
1058
  type: "bar" | "line" | "area" | "pie" | "scatter";
752
1059
  id: string;
753
- title: string;
754
1060
  datasetId: string;
755
1061
  x: string;
756
1062
  y: string;
757
1063
  color?: string | undefined;
758
1064
  }[];
759
1065
  tables: {
760
- id: string;
761
1066
  title: string;
1067
+ id: string;
762
1068
  datasetId: string;
763
1069
  fields: string[];
764
1070
  }[];
1071
+ sourceMetadata?: {
1072
+ bindingId: string;
1073
+ title: string;
1074
+ description?: string | undefined;
1075
+ }[] | undefined;
1076
+ components?: {
1077
+ title: string;
1078
+ id: string;
1079
+ elementId: string;
1080
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1081
+ sources: {
1082
+ bindingId: string;
1083
+ fieldIds?: string[] | undefined;
1084
+ }[];
1085
+ }[] | undefined;
765
1086
  presentation?: {
766
1087
  type: "html";
767
1088
  html: string;
@@ -802,14 +1123,14 @@ export declare const queryBindingSchema: z.ZodObject<{
802
1123
  } & {
803
1124
  bindingId: z.ZodString;
804
1125
  }, "strict", z.ZodTypeAny, {
1126
+ bindingId: string;
805
1127
  controls: Record<string, string | number | boolean | null>;
806
1128
  artifactId: string;
807
- bindingId: string;
808
1129
  versionId?: string | undefined;
809
1130
  draftRevision?: number | undefined;
810
1131
  }, {
811
- artifactId: string;
812
1132
  bindingId: string;
1133
+ artifactId: string;
813
1134
  controls?: Record<string, string | number | boolean | null> | undefined;
814
1135
  versionId?: string | undefined;
815
1136
  draftRevision?: number | undefined;