@xpert-ai/plugin-live-dashboard 0.4.1 → 0.6.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 (79) hide show
  1. package/.xpertai-plugin/plugin.json +1 -1
  2. package/README.md +8 -2
  3. package/dist/index.js +3 -1
  4. package/dist/lib/agent.schema.d.ts +177 -23
  5. package/dist/lib/agent.schema.js +11 -9
  6. package/dist/lib/archive.service.d.ts +169 -0
  7. package/dist/lib/archive.service.js +147 -0
  8. package/dist/lib/bounded-map.d.ts +2 -0
  9. package/dist/lib/bounded-map.js +25 -0
  10. package/dist/lib/capacity.d.ts +14 -0
  11. package/dist/lib/capacity.js +16 -0
  12. package/dist/lib/content.provider.d.ts +1 -1
  13. package/dist/lib/dashboard-archive.d.ts +70 -0
  14. package/dist/lib/dashboard-archive.js +118 -0
  15. package/dist/lib/dashboard-queries.d.ts +1 -1
  16. package/dist/lib/dashboard-queries.js +11 -6
  17. package/dist/lib/dashboard-receipt.js +1 -1
  18. package/dist/lib/dashboard-sources.d.ts +69 -0
  19. package/dist/lib/dashboard-sources.js +38 -0
  20. package/dist/lib/dashboard-view.schema.d.ts +422 -88
  21. package/dist/lib/dashboard.schema.d.ts +379 -58
  22. package/dist/lib/dashboard.schema.js +20 -2
  23. package/dist/lib/dashboard.service.d.ts +80 -15
  24. package/dist/lib/dashboard.service.js +65 -9
  25. package/dist/lib/definition-tools.d.ts +4 -4
  26. package/dist/lib/document-host.js +1 -1
  27. package/dist/lib/document-package.d.ts +19 -4
  28. package/dist/lib/editing-patch.d.ts +3 -0
  29. package/dist/lib/editing-patch.js +4 -2
  30. package/dist/lib/editing-session.d.ts +4 -4
  31. package/dist/lib/editing.d.ts +204 -20
  32. package/dist/lib/editing.js +10 -3
  33. package/dist/lib/filter-evidence.d.ts +28 -0
  34. package/dist/lib/filter-evidence.js +3 -2
  35. package/dist/lib/html-guidance.d.ts +1 -0
  36. package/dist/lib/html-guidance.js +2 -1
  37. package/dist/lib/html-validation-feedback.d.ts +7 -0
  38. package/dist/lib/html-validation-feedback.js +19 -0
  39. package/dist/lib/html-validation.js +3 -2
  40. package/dist/lib/inspection-host.d.ts +7 -0
  41. package/dist/lib/inspection-host.js +48 -0
  42. package/dist/lib/inspection-runtime.d.ts +2 -0
  43. package/dist/lib/inspection-runtime.js +77 -0
  44. package/dist/lib/json-input.d.ts +4 -0
  45. package/dist/lib/json-input.js +21 -0
  46. package/dist/lib/middleware.d.ts +3 -1
  47. package/dist/lib/middleware.js +92 -13
  48. package/dist/lib/plugin.js +3 -1
  49. package/dist/lib/presentation.provider.d.ts +24 -9
  50. package/dist/lib/presentation.provider.js +2 -1
  51. package/dist/lib/preview-retry.d.ts +4 -3
  52. package/dist/lib/preview-retry.js +13 -7
  53. package/dist/lib/prompt-workflows.js +1 -1
  54. package/dist/lib/query-session.d.ts +9 -0
  55. package/dist/lib/query-session.js +64 -0
  56. package/dist/lib/save-requests.d.ts +118 -0
  57. package/dist/lib/save-requests.js +199 -0
  58. package/dist/lib/source-executions.d.ts +437 -0
  59. package/dist/lib/source-executions.js +49 -0
  60. package/dist/lib/source-validation.d.ts +2 -0
  61. package/dist/lib/source-validation.js +21 -0
  62. package/dist/lib/view.provider.d.ts +213 -8
  63. package/dist/lib/view.provider.js +47 -5
  64. package/dist/remote/app.css +1 -1
  65. package/dist/remote/app.js +185 -63
  66. package/dist/remote/build-manifest.json +52 -33
  67. package/dist/sandbox-actions/action.json +1 -1
  68. package/dist/sandbox-actions/bundle/host.js +63 -14
  69. package/dist/sandbox-actions/bundle/validate.mjs +2 -2
  70. package/dist/validation/host-entry.d.ts +5 -1
  71. package/dist/validation/host-entry.js +21 -4
  72. package/docs/docs.json +5 -1
  73. package/docs/large-dashboards-acceptance.mdx +74 -0
  74. package/docs/large-dashboards.mdx +80 -0
  75. package/docs/sources-inspect-portability-acceptance.mdx +67 -0
  76. package/docs/sources-inspect-portability.mdx +115 -0
  77. package/package.json +8 -7
  78. package/skills/live-dashboard/SKILL.md +5 -4
  79. package/skills/live-dashboard/references/source-inspection.md +17 -0
@@ -115,6 +115,53 @@ export declare const dashboardSavedSchema: z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  title: z.ZodString;
117
117
  bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
118
+ sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ bindingId: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ }, "strict", z.ZodTypeAny, {
123
+ bindingId: string;
124
+ title: string;
125
+ description?: string | undefined;
126
+ }, {
127
+ bindingId: string;
128
+ title: string;
129
+ description?: string | undefined;
130
+ }>, "many">>;
131
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ id: z.ZodString;
133
+ elementId: z.ZodString;
134
+ title: z.ZodString;
135
+ kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
136
+ sources: z.ZodArray<z.ZodObject<{
137
+ bindingId: z.ZodString;
138
+ fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ }, "strict", z.ZodTypeAny, {
140
+ bindingId: string;
141
+ fieldIds?: string[] | undefined;
142
+ }, {
143
+ bindingId: string;
144
+ fieldIds?: string[] | undefined;
145
+ }>, "many">;
146
+ }, "strict", z.ZodTypeAny, {
147
+ title: string;
148
+ id: string;
149
+ elementId: string;
150
+ kind: "filter" | "metric" | "chart" | "table" | "text";
151
+ sources: {
152
+ bindingId: string;
153
+ fieldIds?: string[] | undefined;
154
+ }[];
155
+ }, {
156
+ title: string;
157
+ id: string;
158
+ elementId: string;
159
+ kind: "filter" | "metric" | "chart" | "table" | "text";
160
+ sources: {
161
+ bindingId: string;
162
+ fieldIds?: string[] | undefined;
163
+ }[];
164
+ }>, "many">>;
118
165
  presentation: z.ZodOptional<z.ZodObject<{
119
166
  type: z.ZodLiteral<"html">;
120
167
  html: z.ZodEffects<z.ZodString, string, string>;
@@ -193,16 +240,16 @@ export declare const dashboardSavedSchema: z.ZodObject<{
193
240
  color: z.ZodOptional<z.ZodString>;
194
241
  }, "strict", z.ZodTypeAny, {
195
242
  type: "bar" | "line" | "area" | "pie" | "scatter";
196
- id: string;
197
243
  title: string;
244
+ id: string;
198
245
  datasetId: string;
199
246
  x: string;
200
247
  y: string;
201
248
  color?: string | undefined;
202
249
  }, {
203
250
  type: "bar" | "line" | "area" | "pie" | "scatter";
204
- id: string;
205
251
  title: string;
252
+ id: string;
206
253
  datasetId: string;
207
254
  x: string;
208
255
  y: string;
@@ -214,20 +261,20 @@ export declare const dashboardSavedSchema: z.ZodObject<{
214
261
  datasetId: z.ZodString;
215
262
  fields: z.ZodArray<z.ZodString, "many">;
216
263
  }, "strict", z.ZodTypeAny, {
217
- id: string;
218
264
  title: string;
265
+ id: string;
219
266
  datasetId: string;
220
267
  fields: string[];
221
268
  }, {
222
- id: string;
223
269
  title: string;
270
+ id: string;
224
271
  datasetId: string;
225
272
  fields: string[];
226
273
  }>, "many">;
227
274
  }, "strict", z.ZodTypeAny, {
228
- schema: "xpert.live-dashboard";
229
- id: string;
230
275
  title: string;
276
+ id: string;
277
+ schema: "xpert.live-dashboard";
231
278
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
232
279
  controls: {
233
280
  type: "string" | "number" | "boolean" | "date";
@@ -238,28 +285,43 @@ export declare const dashboardSavedSchema: z.ZodObject<{
238
285
  }[];
239
286
  charts: {
240
287
  type: "bar" | "line" | "area" | "pie" | "scatter";
241
- id: string;
242
288
  title: string;
289
+ id: string;
243
290
  datasetId: string;
244
291
  x: string;
245
292
  y: string;
246
293
  color?: string | undefined;
247
294
  }[];
248
295
  tables: {
249
- id: string;
250
296
  title: string;
297
+ id: string;
251
298
  datasetId: string;
252
299
  fields: string[];
253
300
  }[];
301
+ sourceMetadata?: {
302
+ bindingId: string;
303
+ title: string;
304
+ description?: string | undefined;
305
+ }[] | undefined;
306
+ components?: {
307
+ title: string;
308
+ id: string;
309
+ elementId: string;
310
+ kind: "filter" | "metric" | "chart" | "table" | "text";
311
+ sources: {
312
+ bindingId: string;
313
+ fieldIds?: string[] | undefined;
314
+ }[];
315
+ }[] | undefined;
254
316
  presentation?: {
255
317
  type: "html";
256
318
  html: string;
257
319
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
258
320
  } | undefined;
259
321
  }, {
260
- schema: "xpert.live-dashboard";
261
- id: string;
262
322
  title: string;
323
+ id: string;
324
+ schema: "xpert.live-dashboard";
263
325
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
264
326
  controls: {
265
327
  type: "string" | "number" | "boolean" | "date";
@@ -270,19 +332,34 @@ export declare const dashboardSavedSchema: z.ZodObject<{
270
332
  }[];
271
333
  charts: {
272
334
  type: "bar" | "line" | "area" | "pie" | "scatter";
273
- id: string;
274
335
  title: string;
336
+ id: string;
275
337
  datasetId: string;
276
338
  x: string;
277
339
  y: string;
278
340
  color?: string | undefined;
279
341
  }[];
280
342
  tables: {
281
- id: string;
282
343
  title: string;
344
+ id: string;
283
345
  datasetId: string;
284
346
  fields: string[];
285
347
  }[];
348
+ sourceMetadata?: {
349
+ bindingId: string;
350
+ title: string;
351
+ description?: string | undefined;
352
+ }[] | undefined;
353
+ components?: {
354
+ title: string;
355
+ id: string;
356
+ elementId: string;
357
+ kind: "filter" | "metric" | "chart" | "table" | "text";
358
+ sources: {
359
+ bindingId: string;
360
+ fieldIds?: string[] | undefined;
361
+ }[];
362
+ }[] | undefined;
286
363
  presentation?: {
287
364
  type: "html";
288
365
  html: string;
@@ -295,9 +372,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
295
372
  }[] | undefined;
296
373
  } | undefined;
297
374
  }>, {
298
- schema: "xpert.live-dashboard";
299
- id: string;
300
375
  title: string;
376
+ id: string;
377
+ schema: "xpert.live-dashboard";
301
378
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
302
379
  controls: {
303
380
  type: "string" | "number" | "boolean" | "date";
@@ -308,28 +385,43 @@ export declare const dashboardSavedSchema: z.ZodObject<{
308
385
  }[];
309
386
  charts: {
310
387
  type: "bar" | "line" | "area" | "pie" | "scatter";
311
- id: string;
312
388
  title: string;
389
+ id: string;
313
390
  datasetId: string;
314
391
  x: string;
315
392
  y: string;
316
393
  color?: string | undefined;
317
394
  }[];
318
395
  tables: {
319
- id: string;
320
396
  title: string;
397
+ id: string;
321
398
  datasetId: string;
322
399
  fields: string[];
323
400
  }[];
401
+ sourceMetadata?: {
402
+ bindingId: string;
403
+ title: string;
404
+ description?: string | undefined;
405
+ }[] | undefined;
406
+ components?: {
407
+ title: string;
408
+ id: string;
409
+ elementId: string;
410
+ kind: "filter" | "metric" | "chart" | "table" | "text";
411
+ sources: {
412
+ bindingId: string;
413
+ fieldIds?: string[] | undefined;
414
+ }[];
415
+ }[] | undefined;
324
416
  presentation?: {
325
417
  type: "html";
326
418
  html: string;
327
419
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
328
420
  } | undefined;
329
421
  }, {
330
- schema: "xpert.live-dashboard";
331
- id: string;
332
422
  title: string;
423
+ id: string;
424
+ schema: "xpert.live-dashboard";
333
425
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
334
426
  controls: {
335
427
  type: "string" | "number" | "boolean" | "date";
@@ -340,19 +432,34 @@ export declare const dashboardSavedSchema: z.ZodObject<{
340
432
  }[];
341
433
  charts: {
342
434
  type: "bar" | "line" | "area" | "pie" | "scatter";
343
- id: string;
344
435
  title: string;
436
+ id: string;
345
437
  datasetId: string;
346
438
  x: string;
347
439
  y: string;
348
440
  color?: string | undefined;
349
441
  }[];
350
442
  tables: {
351
- id: string;
352
443
  title: string;
444
+ id: string;
353
445
  datasetId: string;
354
446
  fields: string[];
355
447
  }[];
448
+ sourceMetadata?: {
449
+ bindingId: string;
450
+ title: string;
451
+ description?: string | undefined;
452
+ }[] | undefined;
453
+ components?: {
454
+ title: string;
455
+ id: string;
456
+ elementId: string;
457
+ kind: "filter" | "metric" | "chart" | "table" | "text";
458
+ sources: {
459
+ bindingId: string;
460
+ fieldIds?: string[] | undefined;
461
+ }[];
462
+ }[] | undefined;
356
463
  presentation?: {
357
464
  type: "html";
358
465
  html: string;
@@ -397,9 +504,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
397
504
  }>, "many">>;
398
505
  }, "strip", z.ZodTypeAny, {
399
506
  manifest: {
400
- schema: "xpert.live-dashboard";
401
- id: string;
402
507
  title: string;
508
+ id: string;
509
+ schema: "xpert.live-dashboard";
403
510
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
404
511
  controls: {
405
512
  type: "string" | "number" | "boolean" | "date";
@@ -410,19 +517,34 @@ export declare const dashboardSavedSchema: z.ZodObject<{
410
517
  }[];
411
518
  charts: {
412
519
  type: "bar" | "line" | "area" | "pie" | "scatter";
413
- id: string;
414
520
  title: string;
521
+ id: string;
415
522
  datasetId: string;
416
523
  x: string;
417
524
  y: string;
418
525
  color?: string | undefined;
419
526
  }[];
420
527
  tables: {
421
- id: string;
422
528
  title: string;
529
+ id: string;
423
530
  datasetId: string;
424
531
  fields: string[];
425
532
  }[];
533
+ sourceMetadata?: {
534
+ bindingId: string;
535
+ title: string;
536
+ description?: string | undefined;
537
+ }[] | undefined;
538
+ components?: {
539
+ title: string;
540
+ id: string;
541
+ elementId: string;
542
+ kind: "filter" | "metric" | "chart" | "table" | "text";
543
+ sources: {
544
+ bindingId: string;
545
+ fieldIds?: string[] | undefined;
546
+ }[];
547
+ }[] | undefined;
426
548
  presentation?: {
427
549
  type: "html";
428
550
  html: string;
@@ -441,9 +563,9 @@ export declare const dashboardSavedSchema: z.ZodObject<{
441
563
  canDelete?: boolean | undefined;
442
564
  }, {
443
565
  manifest: {
444
- schema: "xpert.live-dashboard";
445
- id: string;
446
566
  title: string;
567
+ id: string;
568
+ schema: "xpert.live-dashboard";
447
569
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
448
570
  controls: {
449
571
  type: "string" | "number" | "boolean" | "date";
@@ -454,19 +576,34 @@ export declare const dashboardSavedSchema: z.ZodObject<{
454
576
  }[];
455
577
  charts: {
456
578
  type: "bar" | "line" | "area" | "pie" | "scatter";
457
- id: string;
458
579
  title: string;
580
+ id: string;
459
581
  datasetId: string;
460
582
  x: string;
461
583
  y: string;
462
584
  color?: string | undefined;
463
585
  }[];
464
586
  tables: {
465
- id: string;
466
587
  title: string;
588
+ id: string;
467
589
  datasetId: string;
468
590
  fields: string[];
469
591
  }[];
592
+ sourceMetadata?: {
593
+ bindingId: string;
594
+ title: string;
595
+ description?: string | undefined;
596
+ }[] | undefined;
597
+ components?: {
598
+ title: string;
599
+ id: string;
600
+ elementId: string;
601
+ kind: "filter" | "metric" | "chart" | "table" | "text";
602
+ sources: {
603
+ bindingId: string;
604
+ fieldIds?: string[] | undefined;
605
+ }[];
606
+ }[] | undefined;
470
607
  presentation?: {
471
608
  type: "html";
472
609
  html: string;
@@ -641,6 +778,53 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
641
778
  id: z.ZodString;
642
779
  title: z.ZodString;
643
780
  bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
781
+ sourceMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
782
+ bindingId: z.ZodString;
783
+ title: z.ZodString;
784
+ description: z.ZodOptional<z.ZodString>;
785
+ }, "strict", z.ZodTypeAny, {
786
+ bindingId: string;
787
+ title: string;
788
+ description?: string | undefined;
789
+ }, {
790
+ bindingId: string;
791
+ title: string;
792
+ description?: string | undefined;
793
+ }>, "many">>;
794
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ id: z.ZodString;
796
+ elementId: z.ZodString;
797
+ title: z.ZodString;
798
+ kind: z.ZodEnum<["metric", "chart", "table", "filter", "text"]>;
799
+ sources: z.ZodArray<z.ZodObject<{
800
+ bindingId: z.ZodString;
801
+ fieldIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
802
+ }, "strict", z.ZodTypeAny, {
803
+ bindingId: string;
804
+ fieldIds?: string[] | undefined;
805
+ }, {
806
+ bindingId: string;
807
+ fieldIds?: string[] | undefined;
808
+ }>, "many">;
809
+ }, "strict", z.ZodTypeAny, {
810
+ title: string;
811
+ id: string;
812
+ elementId: string;
813
+ kind: "filter" | "metric" | "chart" | "table" | "text";
814
+ sources: {
815
+ bindingId: string;
816
+ fieldIds?: string[] | undefined;
817
+ }[];
818
+ }, {
819
+ title: string;
820
+ id: string;
821
+ elementId: string;
822
+ kind: "filter" | "metric" | "chart" | "table" | "text";
823
+ sources: {
824
+ bindingId: string;
825
+ fieldIds?: string[] | undefined;
826
+ }[];
827
+ }>, "many">>;
644
828
  presentation: z.ZodOptional<z.ZodObject<{
645
829
  type: z.ZodLiteral<"html">;
646
830
  html: z.ZodEffects<z.ZodString, string, string>;
@@ -719,16 +903,16 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
719
903
  color: z.ZodOptional<z.ZodString>;
720
904
  }, "strict", z.ZodTypeAny, {
721
905
  type: "bar" | "line" | "area" | "pie" | "scatter";
722
- id: string;
723
906
  title: string;
907
+ id: string;
724
908
  datasetId: string;
725
909
  x: string;
726
910
  y: string;
727
911
  color?: string | undefined;
728
912
  }, {
729
913
  type: "bar" | "line" | "area" | "pie" | "scatter";
730
- id: string;
731
914
  title: string;
915
+ id: string;
732
916
  datasetId: string;
733
917
  x: string;
734
918
  y: string;
@@ -740,20 +924,20 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
740
924
  datasetId: z.ZodString;
741
925
  fields: z.ZodArray<z.ZodString, "many">;
742
926
  }, "strict", z.ZodTypeAny, {
743
- id: string;
744
927
  title: string;
928
+ id: string;
745
929
  datasetId: string;
746
930
  fields: string[];
747
931
  }, {
748
- id: string;
749
932
  title: string;
933
+ id: string;
750
934
  datasetId: string;
751
935
  fields: string[];
752
936
  }>, "many">;
753
937
  }, "strict", z.ZodTypeAny, {
754
- schema: "xpert.live-dashboard";
755
- id: string;
756
938
  title: string;
939
+ id: string;
940
+ schema: "xpert.live-dashboard";
757
941
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
758
942
  controls: {
759
943
  type: "string" | "number" | "boolean" | "date";
@@ -764,28 +948,43 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
764
948
  }[];
765
949
  charts: {
766
950
  type: "bar" | "line" | "area" | "pie" | "scatter";
767
- id: string;
768
951
  title: string;
952
+ id: string;
769
953
  datasetId: string;
770
954
  x: string;
771
955
  y: string;
772
956
  color?: string | undefined;
773
957
  }[];
774
958
  tables: {
775
- id: string;
776
959
  title: string;
960
+ id: string;
777
961
  datasetId: string;
778
962
  fields: string[];
779
963
  }[];
964
+ sourceMetadata?: {
965
+ bindingId: string;
966
+ title: string;
967
+ description?: string | undefined;
968
+ }[] | undefined;
969
+ components?: {
970
+ title: string;
971
+ id: string;
972
+ elementId: string;
973
+ kind: "filter" | "metric" | "chart" | "table" | "text";
974
+ sources: {
975
+ bindingId: string;
976
+ fieldIds?: string[] | undefined;
977
+ }[];
978
+ }[] | undefined;
780
979
  presentation?: {
781
980
  type: "html";
782
981
  html: string;
783
982
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
784
983
  } | undefined;
785
984
  }, {
786
- schema: "xpert.live-dashboard";
787
- id: string;
788
985
  title: string;
986
+ id: string;
987
+ schema: "xpert.live-dashboard";
789
988
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
790
989
  controls: {
791
990
  type: "string" | "number" | "boolean" | "date";
@@ -796,19 +995,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
796
995
  }[];
797
996
  charts: {
798
997
  type: "bar" | "line" | "area" | "pie" | "scatter";
799
- id: string;
800
998
  title: string;
999
+ id: string;
801
1000
  datasetId: string;
802
1001
  x: string;
803
1002
  y: string;
804
1003
  color?: string | undefined;
805
1004
  }[];
806
1005
  tables: {
807
- id: string;
808
1006
  title: string;
1007
+ id: string;
809
1008
  datasetId: string;
810
1009
  fields: string[];
811
1010
  }[];
1011
+ sourceMetadata?: {
1012
+ bindingId: string;
1013
+ title: string;
1014
+ description?: string | undefined;
1015
+ }[] | undefined;
1016
+ components?: {
1017
+ title: string;
1018
+ id: string;
1019
+ elementId: string;
1020
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1021
+ sources: {
1022
+ bindingId: string;
1023
+ fieldIds?: string[] | undefined;
1024
+ }[];
1025
+ }[] | undefined;
812
1026
  presentation?: {
813
1027
  type: "html";
814
1028
  html: string;
@@ -821,9 +1035,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
821
1035
  }[] | undefined;
822
1036
  } | undefined;
823
1037
  }>, {
824
- schema: "xpert.live-dashboard";
825
- id: string;
826
1038
  title: string;
1039
+ id: string;
1040
+ schema: "xpert.live-dashboard";
827
1041
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
828
1042
  controls: {
829
1043
  type: "string" | "number" | "boolean" | "date";
@@ -834,28 +1048,43 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
834
1048
  }[];
835
1049
  charts: {
836
1050
  type: "bar" | "line" | "area" | "pie" | "scatter";
837
- id: string;
838
1051
  title: string;
1052
+ id: string;
839
1053
  datasetId: string;
840
1054
  x: string;
841
1055
  y: string;
842
1056
  color?: string | undefined;
843
1057
  }[];
844
1058
  tables: {
845
- id: string;
846
1059
  title: string;
1060
+ id: string;
847
1061
  datasetId: string;
848
1062
  fields: string[];
849
1063
  }[];
1064
+ sourceMetadata?: {
1065
+ bindingId: string;
1066
+ title: string;
1067
+ description?: string | undefined;
1068
+ }[] | undefined;
1069
+ components?: {
1070
+ title: string;
1071
+ id: string;
1072
+ elementId: string;
1073
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1074
+ sources: {
1075
+ bindingId: string;
1076
+ fieldIds?: string[] | undefined;
1077
+ }[];
1078
+ }[] | undefined;
850
1079
  presentation?: {
851
1080
  type: "html";
852
1081
  html: string;
853
1082
  dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
854
1083
  } | undefined;
855
1084
  }, {
856
- schema: "xpert.live-dashboard";
857
- id: string;
858
1085
  title: string;
1086
+ id: string;
1087
+ schema: "xpert.live-dashboard";
859
1088
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
860
1089
  controls: {
861
1090
  type: "string" | "number" | "boolean" | "date";
@@ -866,19 +1095,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
866
1095
  }[];
867
1096
  charts: {
868
1097
  type: "bar" | "line" | "area" | "pie" | "scatter";
869
- id: string;
870
1098
  title: string;
1099
+ id: string;
871
1100
  datasetId: string;
872
1101
  x: string;
873
1102
  y: string;
874
1103
  color?: string | undefined;
875
1104
  }[];
876
1105
  tables: {
877
- id: string;
878
1106
  title: string;
1107
+ id: string;
879
1108
  datasetId: string;
880
1109
  fields: string[];
881
1110
  }[];
1111
+ sourceMetadata?: {
1112
+ bindingId: string;
1113
+ title: string;
1114
+ description?: string | undefined;
1115
+ }[] | undefined;
1116
+ components?: {
1117
+ title: string;
1118
+ id: string;
1119
+ elementId: string;
1120
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1121
+ sources: {
1122
+ bindingId: string;
1123
+ fieldIds?: string[] | undefined;
1124
+ }[];
1125
+ }[] | undefined;
882
1126
  presentation?: {
883
1127
  type: "html";
884
1128
  html: string;
@@ -923,9 +1167,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
923
1167
  }>, "many">>;
924
1168
  }, "strip", z.ZodTypeAny, {
925
1169
  manifest: {
926
- schema: "xpert.live-dashboard";
927
- id: string;
928
1170
  title: string;
1171
+ id: string;
1172
+ schema: "xpert.live-dashboard";
929
1173
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
930
1174
  controls: {
931
1175
  type: "string" | "number" | "boolean" | "date";
@@ -936,19 +1180,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
936
1180
  }[];
937
1181
  charts: {
938
1182
  type: "bar" | "line" | "area" | "pie" | "scatter";
939
- id: string;
940
1183
  title: string;
1184
+ id: string;
941
1185
  datasetId: string;
942
1186
  x: string;
943
1187
  y: string;
944
1188
  color?: string | undefined;
945
1189
  }[];
946
1190
  tables: {
947
- id: string;
948
1191
  title: string;
1192
+ id: string;
949
1193
  datasetId: string;
950
1194
  fields: string[];
951
1195
  }[];
1196
+ sourceMetadata?: {
1197
+ bindingId: string;
1198
+ title: string;
1199
+ description?: string | undefined;
1200
+ }[] | undefined;
1201
+ components?: {
1202
+ title: string;
1203
+ id: string;
1204
+ elementId: string;
1205
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1206
+ sources: {
1207
+ bindingId: string;
1208
+ fieldIds?: string[] | undefined;
1209
+ }[];
1210
+ }[] | undefined;
952
1211
  presentation?: {
953
1212
  type: "html";
954
1213
  html: string;
@@ -967,9 +1226,9 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
967
1226
  canDelete?: boolean | undefined;
968
1227
  }, {
969
1228
  manifest: {
970
- schema: "xpert.live-dashboard";
971
- id: string;
972
1229
  title: string;
1230
+ id: string;
1231
+ schema: "xpert.live-dashboard";
973
1232
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
974
1233
  controls: {
975
1234
  type: "string" | "number" | "boolean" | "date";
@@ -980,19 +1239,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
980
1239
  }[];
981
1240
  charts: {
982
1241
  type: "bar" | "line" | "area" | "pie" | "scatter";
983
- id: string;
984
1242
  title: string;
1243
+ id: string;
985
1244
  datasetId: string;
986
1245
  x: string;
987
1246
  y: string;
988
1247
  color?: string | undefined;
989
1248
  }[];
990
1249
  tables: {
991
- id: string;
992
1250
  title: string;
1251
+ id: string;
993
1252
  datasetId: string;
994
1253
  fields: string[];
995
1254
  }[];
1255
+ sourceMetadata?: {
1256
+ bindingId: string;
1257
+ title: string;
1258
+ description?: string | undefined;
1259
+ }[] | undefined;
1260
+ components?: {
1261
+ title: string;
1262
+ id: string;
1263
+ elementId: string;
1264
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1265
+ sources: {
1266
+ bindingId: string;
1267
+ fieldIds?: string[] | undefined;
1268
+ }[];
1269
+ }[] | undefined;
996
1270
  presentation?: {
997
1271
  type: "html";
998
1272
  html: string;
@@ -1055,6 +1329,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1055
1329
  canDelete?: boolean | undefined;
1056
1330
  }>, "many">>;
1057
1331
  }, "strip", z.ZodTypeAny, {
1332
+ sources: {
1333
+ name: string;
1334
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1335
+ }[];
1058
1336
  dashboards: {
1059
1337
  artifactId: string;
1060
1338
  title?: string | null | undefined;
@@ -1066,16 +1344,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1066
1344
  updatedAt?: string | undefined;
1067
1345
  canDelete?: boolean | undefined;
1068
1346
  }[];
1069
- sources: {
1070
- name: string;
1071
- source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1072
- }[];
1073
1347
  mode?: "draft" | "published" | undefined;
1074
1348
  saved?: {
1075
1349
  manifest: {
1076
- schema: "xpert.live-dashboard";
1077
- id: string;
1078
1350
  title: string;
1351
+ id: string;
1352
+ schema: "xpert.live-dashboard";
1079
1353
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1080
1354
  controls: {
1081
1355
  type: "string" | "number" | "boolean" | "date";
@@ -1086,19 +1360,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1086
1360
  }[];
1087
1361
  charts: {
1088
1362
  type: "bar" | "line" | "area" | "pie" | "scatter";
1089
- id: string;
1090
1363
  title: string;
1364
+ id: string;
1091
1365
  datasetId: string;
1092
1366
  x: string;
1093
1367
  y: string;
1094
1368
  color?: string | undefined;
1095
1369
  }[];
1096
1370
  tables: {
1097
- id: string;
1098
1371
  title: string;
1372
+ id: string;
1099
1373
  datasetId: string;
1100
1374
  fields: string[];
1101
1375
  }[];
1376
+ sourceMetadata?: {
1377
+ bindingId: string;
1378
+ title: string;
1379
+ description?: string | undefined;
1380
+ }[] | undefined;
1381
+ components?: {
1382
+ title: string;
1383
+ id: string;
1384
+ elementId: string;
1385
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1386
+ sources: {
1387
+ bindingId: string;
1388
+ fieldIds?: string[] | undefined;
1389
+ }[];
1390
+ }[] | undefined;
1102
1391
  presentation?: {
1103
1392
  type: "html";
1104
1393
  html: string;
@@ -1160,6 +1449,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1160
1449
  canDelete?: boolean | undefined;
1161
1450
  }[] | undefined;
1162
1451
  }, {
1452
+ sources: {
1453
+ name: string;
1454
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1455
+ }[];
1163
1456
  dashboards: {
1164
1457
  artifactId: string;
1165
1458
  title?: string | null | undefined;
@@ -1171,16 +1464,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1171
1464
  updatedAt?: string | undefined;
1172
1465
  canDelete?: boolean | undefined;
1173
1466
  }[];
1174
- sources: {
1175
- name: string;
1176
- source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1177
- }[];
1178
1467
  mode?: "draft" | "published" | undefined;
1179
1468
  saved?: {
1180
1469
  manifest: {
1181
- schema: "xpert.live-dashboard";
1182
- id: string;
1183
1470
  title: string;
1471
+ id: string;
1472
+ schema: "xpert.live-dashboard";
1184
1473
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1185
1474
  controls: {
1186
1475
  type: "string" | "number" | "boolean" | "date";
@@ -1191,19 +1480,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1191
1480
  }[];
1192
1481
  charts: {
1193
1482
  type: "bar" | "line" | "area" | "pie" | "scatter";
1194
- id: string;
1195
1483
  title: string;
1484
+ id: string;
1196
1485
  datasetId: string;
1197
1486
  x: string;
1198
1487
  y: string;
1199
1488
  color?: string | undefined;
1200
1489
  }[];
1201
1490
  tables: {
1202
- id: string;
1203
1491
  title: string;
1492
+ id: string;
1204
1493
  datasetId: string;
1205
1494
  fields: string[];
1206
1495
  }[];
1496
+ sourceMetadata?: {
1497
+ bindingId: string;
1498
+ title: string;
1499
+ description?: string | undefined;
1500
+ }[] | undefined;
1501
+ components?: {
1502
+ title: string;
1503
+ id: string;
1504
+ elementId: string;
1505
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1506
+ sources: {
1507
+ bindingId: string;
1508
+ fieldIds?: string[] | undefined;
1509
+ }[];
1510
+ }[] | undefined;
1207
1511
  presentation?: {
1208
1512
  type: "html";
1209
1513
  html: string;
@@ -1280,6 +1584,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1280
1584
  }>;
1281
1585
  }, "strip", z.ZodTypeAny, {
1282
1586
  meta: {
1587
+ sources: {
1588
+ name: string;
1589
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1590
+ }[];
1283
1591
  dashboards: {
1284
1592
  artifactId: string;
1285
1593
  title?: string | null | undefined;
@@ -1291,16 +1599,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1291
1599
  updatedAt?: string | undefined;
1292
1600
  canDelete?: boolean | undefined;
1293
1601
  }[];
1294
- sources: {
1295
- name: string;
1296
- source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1297
- }[];
1298
1602
  mode?: "draft" | "published" | undefined;
1299
1603
  saved?: {
1300
1604
  manifest: {
1301
- schema: "xpert.live-dashboard";
1302
- id: string;
1303
1605
  title: string;
1606
+ id: string;
1607
+ schema: "xpert.live-dashboard";
1304
1608
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1305
1609
  controls: {
1306
1610
  type: "string" | "number" | "boolean" | "date";
@@ -1311,19 +1615,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1311
1615
  }[];
1312
1616
  charts: {
1313
1617
  type: "bar" | "line" | "area" | "pie" | "scatter";
1314
- id: string;
1315
1618
  title: string;
1619
+ id: string;
1316
1620
  datasetId: string;
1317
1621
  x: string;
1318
1622
  y: string;
1319
1623
  color?: string | undefined;
1320
1624
  }[];
1321
1625
  tables: {
1322
- id: string;
1323
1626
  title: string;
1627
+ id: string;
1324
1628
  datasetId: string;
1325
1629
  fields: string[];
1326
1630
  }[];
1631
+ sourceMetadata?: {
1632
+ bindingId: string;
1633
+ title: string;
1634
+ description?: string | undefined;
1635
+ }[] | undefined;
1636
+ components?: {
1637
+ title: string;
1638
+ id: string;
1639
+ elementId: string;
1640
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1641
+ sources: {
1642
+ bindingId: string;
1643
+ fieldIds?: string[] | undefined;
1644
+ }[];
1645
+ }[] | undefined;
1327
1646
  presentation?: {
1328
1647
  type: "html";
1329
1648
  html: string;
@@ -1387,6 +1706,10 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1387
1706
  };
1388
1707
  }, {
1389
1708
  meta: {
1709
+ sources: {
1710
+ name: string;
1711
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1712
+ }[];
1390
1713
  dashboards: {
1391
1714
  artifactId: string;
1392
1715
  title?: string | null | undefined;
@@ -1398,16 +1721,12 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1398
1721
  updatedAt?: string | undefined;
1399
1722
  canDelete?: boolean | undefined;
1400
1723
  }[];
1401
- sources: {
1402
- name: string;
1403
- source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1404
- }[];
1405
1724
  mode?: "draft" | "published" | undefined;
1406
1725
  saved?: {
1407
1726
  manifest: {
1408
- schema: "xpert.live-dashboard";
1409
- id: string;
1410
1727
  title: string;
1728
+ id: string;
1729
+ schema: "xpert.live-dashboard";
1411
1730
  bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1412
1731
  controls: {
1413
1732
  type: "string" | "number" | "boolean" | "date";
@@ -1418,19 +1737,34 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1418
1737
  }[];
1419
1738
  charts: {
1420
1739
  type: "bar" | "line" | "area" | "pie" | "scatter";
1421
- id: string;
1422
1740
  title: string;
1741
+ id: string;
1423
1742
  datasetId: string;
1424
1743
  x: string;
1425
1744
  y: string;
1426
1745
  color?: string | undefined;
1427
1746
  }[];
1428
1747
  tables: {
1429
- id: string;
1430
1748
  title: string;
1749
+ id: string;
1431
1750
  datasetId: string;
1432
1751
  fields: string[];
1433
1752
  }[];
1753
+ sourceMetadata?: {
1754
+ bindingId: string;
1755
+ title: string;
1756
+ description?: string | undefined;
1757
+ }[] | undefined;
1758
+ components?: {
1759
+ title: string;
1760
+ id: string;
1761
+ elementId: string;
1762
+ kind: "filter" | "metric" | "chart" | "table" | "text";
1763
+ sources: {
1764
+ bindingId: string;
1765
+ fieldIds?: string[] | undefined;
1766
+ }[];
1767
+ }[] | undefined;
1434
1768
  presentation?: {
1435
1769
  type: "html";
1436
1770
  html: string;