@xpert-ai/plugin-live-dashboard 0.5.0 → 0.6.1

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 (59) hide show
  1. package/.xpertai-plugin/plugin.json +1 -1
  2. package/README.md +4 -2
  3. package/dist/index.js +3 -1
  4. package/dist/lib/agent.schema.d.ts +9 -9
  5. package/dist/lib/agent.schema.js +2 -1
  6. package/dist/lib/archive.service.d.ts +26 -2
  7. package/dist/lib/archive.service.js +17 -3
  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/dashboard-archive.d.ts +1 -1
  13. package/dist/lib/dashboard-queries.d.ts +1 -1
  14. package/dist/lib/dashboard-queries.js +11 -6
  15. package/dist/lib/dashboard-receipt.js +1 -1
  16. package/dist/lib/dashboard-sources.js +3 -2
  17. package/dist/lib/dashboard-view.schema.d.ts +59 -20
  18. package/dist/lib/dashboard-view.schema.js +1 -1
  19. package/dist/lib/dashboard.schema.d.ts +18 -18
  20. package/dist/lib/dashboard.schema.js +2 -1
  21. package/dist/lib/dashboard.service.d.ts +34 -6
  22. package/dist/lib/dashboard.service.js +67 -15
  23. package/dist/lib/definition-tools.d.ts +4 -4
  24. package/dist/lib/document-host.js +1 -1
  25. package/dist/lib/document-package.d.ts +1 -1
  26. package/dist/lib/editing-patch.js +2 -1
  27. package/dist/lib/editing.d.ts +11 -10
  28. package/dist/lib/editing.js +5 -1
  29. package/dist/lib/filter-evidence.d.ts +28 -0
  30. package/dist/lib/filter-evidence.js +3 -2
  31. package/dist/lib/html-guidance.d.ts +1 -0
  32. package/dist/lib/html-guidance.js +2 -1
  33. package/dist/lib/html-validation.js +1 -1
  34. package/dist/lib/middleware.d.ts +3 -1
  35. package/dist/lib/middleware.js +89 -11
  36. package/dist/lib/plugin.js +2 -1
  37. package/dist/lib/presentation.provider.d.ts +1 -1
  38. package/dist/lib/preview-retry.d.ts +4 -3
  39. package/dist/lib/preview-retry.js +13 -7
  40. package/dist/lib/prompt-workflows.js +1 -1
  41. package/dist/lib/query-session.d.ts +9 -0
  42. package/dist/lib/query-session.js +64 -0
  43. package/dist/lib/save-requests.d.ts +118 -0
  44. package/dist/lib/save-requests.js +199 -0
  45. package/dist/lib/source-executions.d.ts +243 -2
  46. package/dist/lib/source-executions.js +29 -5
  47. package/dist/lib/view.provider.d.ts +52 -3
  48. package/dist/lib/view.provider.js +20 -4
  49. package/dist/remote/app.js +114 -65
  50. package/dist/remote/build-manifest.json +40 -35
  51. package/dist/sandbox-actions/action.json +1 -1
  52. package/dist/sandbox-actions/bundle/host.js +63 -14
  53. package/dist/sandbox-actions/bundle/validate.mjs +2 -2
  54. package/dist/validation/host-entry.d.ts +5 -1
  55. package/dist/validation/host-entry.js +21 -4
  56. package/docs/docs.json +2 -0
  57. package/docs/large-dashboards-acceptance.mdx +74 -0
  58. package/docs/large-dashboards.mdx +80 -0
  59. package/package.json +5 -5
@@ -8,6 +8,7 @@ export declare const dashboardSummarySchema: z.ZodObject<{
8
8
  draftRevision: z.ZodOptional<z.ZodNumber>;
9
9
  canDelete: z.ZodOptional<z.ZodBoolean>;
10
10
  isDraft: z.ZodOptional<z.ZodBoolean>;
11
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
11
12
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  artifactId: string;
@@ -19,6 +20,7 @@ export declare const dashboardSummarySchema: z.ZodObject<{
19
20
  isDraft?: boolean | undefined;
20
21
  updatedAt?: string | undefined;
21
22
  canDelete?: boolean | undefined;
23
+ isEmpty?: boolean | undefined;
22
24
  }, {
23
25
  artifactId: string;
24
26
  title?: string | null | undefined;
@@ -29,6 +31,7 @@ export declare const dashboardSummarySchema: z.ZodObject<{
29
31
  isDraft?: boolean | undefined;
30
32
  updatedAt?: string | undefined;
31
33
  canDelete?: boolean | undefined;
34
+ isEmpty?: boolean | undefined;
32
35
  }>;
33
36
  export declare const dashboardPickerPageSchema: z.ZodObject<{
34
37
  items: z.ZodArray<z.ZodObject<{
@@ -40,6 +43,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
40
43
  draftRevision: z.ZodOptional<z.ZodNumber>;
41
44
  canDelete: z.ZodOptional<z.ZodBoolean>;
42
45
  isDraft: z.ZodOptional<z.ZodBoolean>;
46
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
43
47
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
48
  }, "strip", z.ZodTypeAny, {
45
49
  artifactId: string;
@@ -51,6 +55,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
51
55
  isDraft?: boolean | undefined;
52
56
  updatedAt?: string | undefined;
53
57
  canDelete?: boolean | undefined;
58
+ isEmpty?: boolean | undefined;
54
59
  }, {
55
60
  artifactId: string;
56
61
  title?: string | null | undefined;
@@ -61,6 +66,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
61
66
  isDraft?: boolean | undefined;
62
67
  updatedAt?: string | undefined;
63
68
  canDelete?: boolean | undefined;
69
+ isEmpty?: boolean | undefined;
64
70
  }>, "many">;
65
71
  page: z.ZodNumber;
66
72
  hasMore: z.ZodBoolean;
@@ -79,6 +85,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
79
85
  isDraft?: boolean | undefined;
80
86
  updatedAt?: string | undefined;
81
87
  canDelete?: boolean | undefined;
88
+ isEmpty?: boolean | undefined;
82
89
  }[];
83
90
  hasMore: boolean;
84
91
  mode?: "draft" | "published" | undefined;
@@ -94,6 +101,7 @@ export declare const dashboardPickerPageSchema: z.ZodObject<{
94
101
  isDraft?: boolean | undefined;
95
102
  updatedAt?: string | undefined;
96
103
  canDelete?: boolean | undefined;
104
+ isEmpty?: boolean | undefined;
97
105
  }[];
98
106
  hasMore: boolean;
99
107
  mode?: "draft" | "published" | undefined;
@@ -108,6 +116,7 @@ export declare const dashboardSavedSchema: z.ZodObject<{
108
116
  draftRevision: z.ZodOptional<z.ZodNumber>;
109
117
  canDelete: z.ZodOptional<z.ZodBoolean>;
110
118
  isDraft: z.ZodOptional<z.ZodBoolean>;
119
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
111
120
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
121
  } & {
113
122
  manifest: z.ZodEffects<z.ZodObject<{
@@ -239,16 +248,16 @@ export declare const dashboardSavedSchema: z.ZodObject<{
239
248
  y: z.ZodString;
240
249
  color: z.ZodOptional<z.ZodString>;
241
250
  }, "strict", z.ZodTypeAny, {
242
- title: string;
243
251
  type: "bar" | "line" | "area" | "pie" | "scatter";
252
+ title: string;
244
253
  id: string;
245
254
  datasetId: string;
246
255
  x: string;
247
256
  y: string;
248
257
  color?: string | undefined;
249
258
  }, {
250
- title: string;
251
259
  type: "bar" | "line" | "area" | "pie" | "scatter";
260
+ title: string;
252
261
  id: string;
253
262
  datasetId: string;
254
263
  x: string;
@@ -284,8 +293,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
284
293
  allowedValues?: (string | number | boolean | null)[] | undefined;
285
294
  }[];
286
295
  charts: {
287
- title: string;
288
296
  type: "bar" | "line" | "area" | "pie" | "scatter";
297
+ title: string;
289
298
  id: string;
290
299
  datasetId: string;
291
300
  x: string;
@@ -331,8 +340,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
331
340
  allowedValues?: (string | number | boolean | null)[] | undefined;
332
341
  }[];
333
342
  charts: {
334
- title: string;
335
343
  type: "bar" | "line" | "area" | "pie" | "scatter";
344
+ title: string;
336
345
  id: string;
337
346
  datasetId: string;
338
347
  x: string;
@@ -384,8 +393,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
384
393
  allowedValues?: (string | number | boolean | null)[] | undefined;
385
394
  }[];
386
395
  charts: {
387
- title: string;
388
396
  type: "bar" | "line" | "area" | "pie" | "scatter";
397
+ title: string;
389
398
  id: string;
390
399
  datasetId: string;
391
400
  x: string;
@@ -431,8 +440,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
431
440
  allowedValues?: (string | number | boolean | null)[] | undefined;
432
441
  }[];
433
442
  charts: {
434
- title: string;
435
443
  type: "bar" | "line" | "area" | "pie" | "scatter";
444
+ title: string;
436
445
  id: string;
437
446
  datasetId: string;
438
447
  x: string;
@@ -516,8 +525,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
516
525
  allowedValues?: (string | number | boolean | null)[] | undefined;
517
526
  }[];
518
527
  charts: {
519
- title: string;
520
528
  type: "bar" | "line" | "area" | "pie" | "scatter";
529
+ title: string;
521
530
  id: string;
522
531
  datasetId: string;
523
532
  x: string;
@@ -561,6 +570,7 @@ export declare const dashboardSavedSchema: z.ZodObject<{
561
570
  isDraft?: boolean | undefined;
562
571
  updatedAt?: string | undefined;
563
572
  canDelete?: boolean | undefined;
573
+ isEmpty?: boolean | undefined;
564
574
  }, {
565
575
  manifest: {
566
576
  title: string;
@@ -575,8 +585,8 @@ export declare const dashboardSavedSchema: z.ZodObject<{
575
585
  allowedValues?: (string | number | boolean | null)[] | undefined;
576
586
  }[];
577
587
  charts: {
578
- title: string;
579
588
  type: "bar" | "line" | "area" | "pie" | "scatter";
589
+ title: string;
580
590
  id: string;
581
591
  datasetId: string;
582
592
  x: string;
@@ -633,6 +643,7 @@ export declare const dashboardSavedSchema: z.ZodObject<{
633
643
  isDraft?: boolean | undefined;
634
644
  updatedAt?: string | undefined;
635
645
  canDelete?: boolean | undefined;
646
+ isEmpty?: boolean | undefined;
636
647
  }>;
637
648
  export declare const dashboardViewDataSchema: z.ZodObject<{
638
649
  meta: z.ZodObject<{
@@ -699,6 +710,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
699
710
  draftRevision: z.ZodOptional<z.ZodNumber>;
700
711
  canDelete: z.ZodOptional<z.ZodBoolean>;
701
712
  isDraft: z.ZodOptional<z.ZodBoolean>;
713
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
702
714
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
715
  }, "strip", z.ZodTypeAny, {
704
716
  artifactId: string;
@@ -710,6 +722,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
710
722
  isDraft?: boolean | undefined;
711
723
  updatedAt?: string | undefined;
712
724
  canDelete?: boolean | undefined;
725
+ isEmpty?: boolean | undefined;
713
726
  }, {
714
727
  artifactId: string;
715
728
  title?: string | null | undefined;
@@ -720,6 +733,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
720
733
  isDraft?: boolean | undefined;
721
734
  updatedAt?: string | undefined;
722
735
  canDelete?: boolean | undefined;
736
+ isEmpty?: boolean | undefined;
723
737
  }>, "many">;
724
738
  selectedDashboard: z.ZodOptional<z.ZodObject<{
725
739
  artifactId: z.ZodString;
@@ -730,6 +744,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
730
744
  draftRevision: z.ZodOptional<z.ZodNumber>;
731
745
  canDelete: z.ZodOptional<z.ZodBoolean>;
732
746
  isDraft: z.ZodOptional<z.ZodBoolean>;
747
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
733
748
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
749
  }, "strip", z.ZodTypeAny, {
735
750
  artifactId: string;
@@ -741,6 +756,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
741
756
  isDraft?: boolean | undefined;
742
757
  updatedAt?: string | undefined;
743
758
  canDelete?: boolean | undefined;
759
+ isEmpty?: boolean | undefined;
744
760
  }, {
745
761
  artifactId: string;
746
762
  title?: string | null | undefined;
@@ -751,6 +767,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
751
767
  isDraft?: boolean | undefined;
752
768
  updatedAt?: string | undefined;
753
769
  canDelete?: boolean | undefined;
770
+ isEmpty?: boolean | undefined;
754
771
  }>>;
755
772
  sources: z.ZodArray<z.ZodObject<{
756
773
  source: z.ZodType<import("@xpert-ai/contracts").AnalyticsSourceRef, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsSourceRef>;
@@ -771,6 +788,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
771
788
  draftRevision: z.ZodOptional<z.ZodNumber>;
772
789
  canDelete: z.ZodOptional<z.ZodBoolean>;
773
790
  isDraft: z.ZodOptional<z.ZodBoolean>;
791
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
774
792
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
793
  } & {
776
794
  manifest: z.ZodEffects<z.ZodObject<{
@@ -902,16 +920,16 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
902
920
  y: z.ZodString;
903
921
  color: z.ZodOptional<z.ZodString>;
904
922
  }, "strict", z.ZodTypeAny, {
905
- title: string;
906
923
  type: "bar" | "line" | "area" | "pie" | "scatter";
924
+ title: string;
907
925
  id: string;
908
926
  datasetId: string;
909
927
  x: string;
910
928
  y: string;
911
929
  color?: string | undefined;
912
930
  }, {
913
- title: string;
914
931
  type: "bar" | "line" | "area" | "pie" | "scatter";
932
+ title: string;
915
933
  id: string;
916
934
  datasetId: string;
917
935
  x: string;
@@ -947,8 +965,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
947
965
  allowedValues?: (string | number | boolean | null)[] | undefined;
948
966
  }[];
949
967
  charts: {
950
- title: string;
951
968
  type: "bar" | "line" | "area" | "pie" | "scatter";
969
+ title: string;
952
970
  id: string;
953
971
  datasetId: string;
954
972
  x: string;
@@ -994,8 +1012,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
994
1012
  allowedValues?: (string | number | boolean | null)[] | undefined;
995
1013
  }[];
996
1014
  charts: {
997
- title: string;
998
1015
  type: "bar" | "line" | "area" | "pie" | "scatter";
1016
+ title: string;
999
1017
  id: string;
1000
1018
  datasetId: string;
1001
1019
  x: string;
@@ -1047,8 +1065,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1047
1065
  allowedValues?: (string | number | boolean | null)[] | undefined;
1048
1066
  }[];
1049
1067
  charts: {
1050
- title: string;
1051
1068
  type: "bar" | "line" | "area" | "pie" | "scatter";
1069
+ title: string;
1052
1070
  id: string;
1053
1071
  datasetId: string;
1054
1072
  x: string;
@@ -1094,8 +1112,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1094
1112
  allowedValues?: (string | number | boolean | null)[] | undefined;
1095
1113
  }[];
1096
1114
  charts: {
1097
- title: string;
1098
1115
  type: "bar" | "line" | "area" | "pie" | "scatter";
1116
+ title: string;
1099
1117
  id: string;
1100
1118
  datasetId: string;
1101
1119
  x: string;
@@ -1179,8 +1197,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1179
1197
  allowedValues?: (string | number | boolean | null)[] | undefined;
1180
1198
  }[];
1181
1199
  charts: {
1182
- title: string;
1183
1200
  type: "bar" | "line" | "area" | "pie" | "scatter";
1201
+ title: string;
1184
1202
  id: string;
1185
1203
  datasetId: string;
1186
1204
  x: string;
@@ -1224,6 +1242,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1224
1242
  isDraft?: boolean | undefined;
1225
1243
  updatedAt?: string | undefined;
1226
1244
  canDelete?: boolean | undefined;
1245
+ isEmpty?: boolean | undefined;
1227
1246
  }, {
1228
1247
  manifest: {
1229
1248
  title: string;
@@ -1238,8 +1257,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1238
1257
  allowedValues?: (string | number | boolean | null)[] | undefined;
1239
1258
  }[];
1240
1259
  charts: {
1241
- title: string;
1242
1260
  type: "bar" | "line" | "area" | "pie" | "scatter";
1261
+ title: string;
1243
1262
  id: string;
1244
1263
  datasetId: string;
1245
1264
  x: string;
@@ -1296,6 +1315,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1296
1315
  isDraft?: boolean | undefined;
1297
1316
  updatedAt?: string | undefined;
1298
1317
  canDelete?: boolean | undefined;
1318
+ isEmpty?: boolean | undefined;
1299
1319
  }>>;
1300
1320
  versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1301
1321
  artifactId: z.ZodString;
@@ -1306,6 +1326,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1306
1326
  draftRevision: z.ZodOptional<z.ZodNumber>;
1307
1327
  canDelete: z.ZodOptional<z.ZodBoolean>;
1308
1328
  isDraft: z.ZodOptional<z.ZodBoolean>;
1329
+ isEmpty: z.ZodOptional<z.ZodBoolean>;
1309
1330
  baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
1331
  }, "strip", z.ZodTypeAny, {
1311
1332
  artifactId: string;
@@ -1317,6 +1338,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1317
1338
  isDraft?: boolean | undefined;
1318
1339
  updatedAt?: string | undefined;
1319
1340
  canDelete?: boolean | undefined;
1341
+ isEmpty?: boolean | undefined;
1320
1342
  }, {
1321
1343
  artifactId: string;
1322
1344
  title?: string | null | undefined;
@@ -1327,6 +1349,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1327
1349
  isDraft?: boolean | undefined;
1328
1350
  updatedAt?: string | undefined;
1329
1351
  canDelete?: boolean | undefined;
1352
+ isEmpty?: boolean | undefined;
1330
1353
  }>, "many">>;
1331
1354
  }, "strip", z.ZodTypeAny, {
1332
1355
  sources: {
@@ -1343,6 +1366,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1343
1366
  isDraft?: boolean | undefined;
1344
1367
  updatedAt?: string | undefined;
1345
1368
  canDelete?: boolean | undefined;
1369
+ isEmpty?: boolean | undefined;
1346
1370
  }[];
1347
1371
  mode?: "draft" | "published" | undefined;
1348
1372
  saved?: {
@@ -1359,8 +1383,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1359
1383
  allowedValues?: (string | number | boolean | null)[] | undefined;
1360
1384
  }[];
1361
1385
  charts: {
1362
- title: string;
1363
1386
  type: "bar" | "line" | "area" | "pie" | "scatter";
1387
+ title: string;
1364
1388
  id: string;
1365
1389
  datasetId: string;
1366
1390
  x: string;
@@ -1404,6 +1428,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1404
1428
  isDraft?: boolean | undefined;
1405
1429
  updatedAt?: string | undefined;
1406
1430
  canDelete?: boolean | undefined;
1431
+ isEmpty?: boolean | undefined;
1407
1432
  } | undefined;
1408
1433
  access?: {
1409
1434
  project: boolean;
@@ -1436,6 +1461,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1436
1461
  isDraft?: boolean | undefined;
1437
1462
  updatedAt?: string | undefined;
1438
1463
  canDelete?: boolean | undefined;
1464
+ isEmpty?: boolean | undefined;
1439
1465
  } | undefined;
1440
1466
  versions?: {
1441
1467
  artifactId: string;
@@ -1447,6 +1473,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1447
1473
  isDraft?: boolean | undefined;
1448
1474
  updatedAt?: string | undefined;
1449
1475
  canDelete?: boolean | undefined;
1476
+ isEmpty?: boolean | undefined;
1450
1477
  }[] | undefined;
1451
1478
  }, {
1452
1479
  sources: {
@@ -1463,6 +1490,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1463
1490
  isDraft?: boolean | undefined;
1464
1491
  updatedAt?: string | undefined;
1465
1492
  canDelete?: boolean | undefined;
1493
+ isEmpty?: boolean | undefined;
1466
1494
  }[];
1467
1495
  mode?: "draft" | "published" | undefined;
1468
1496
  saved?: {
@@ -1479,8 +1507,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1479
1507
  allowedValues?: (string | number | boolean | null)[] | undefined;
1480
1508
  }[];
1481
1509
  charts: {
1482
- title: string;
1483
1510
  type: "bar" | "line" | "area" | "pie" | "scatter";
1511
+ title: string;
1484
1512
  id: string;
1485
1513
  datasetId: string;
1486
1514
  x: string;
@@ -1537,6 +1565,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1537
1565
  isDraft?: boolean | undefined;
1538
1566
  updatedAt?: string | undefined;
1539
1567
  canDelete?: boolean | undefined;
1568
+ isEmpty?: boolean | undefined;
1540
1569
  } | undefined;
1541
1570
  access?: {
1542
1571
  project: boolean;
@@ -1569,6 +1598,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1569
1598
  isDraft?: boolean | undefined;
1570
1599
  updatedAt?: string | undefined;
1571
1600
  canDelete?: boolean | undefined;
1601
+ isEmpty?: boolean | undefined;
1572
1602
  } | undefined;
1573
1603
  versions?: {
1574
1604
  artifactId: string;
@@ -1580,6 +1610,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1580
1610
  isDraft?: boolean | undefined;
1581
1611
  updatedAt?: string | undefined;
1582
1612
  canDelete?: boolean | undefined;
1613
+ isEmpty?: boolean | undefined;
1583
1614
  }[] | undefined;
1584
1615
  }>;
1585
1616
  }, "strip", z.ZodTypeAny, {
@@ -1598,6 +1629,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1598
1629
  isDraft?: boolean | undefined;
1599
1630
  updatedAt?: string | undefined;
1600
1631
  canDelete?: boolean | undefined;
1632
+ isEmpty?: boolean | undefined;
1601
1633
  }[];
1602
1634
  mode?: "draft" | "published" | undefined;
1603
1635
  saved?: {
@@ -1614,8 +1646,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1614
1646
  allowedValues?: (string | number | boolean | null)[] | undefined;
1615
1647
  }[];
1616
1648
  charts: {
1617
- title: string;
1618
1649
  type: "bar" | "line" | "area" | "pie" | "scatter";
1650
+ title: string;
1619
1651
  id: string;
1620
1652
  datasetId: string;
1621
1653
  x: string;
@@ -1659,6 +1691,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1659
1691
  isDraft?: boolean | undefined;
1660
1692
  updatedAt?: string | undefined;
1661
1693
  canDelete?: boolean | undefined;
1694
+ isEmpty?: boolean | undefined;
1662
1695
  } | undefined;
1663
1696
  access?: {
1664
1697
  project: boolean;
@@ -1691,6 +1724,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1691
1724
  isDraft?: boolean | undefined;
1692
1725
  updatedAt?: string | undefined;
1693
1726
  canDelete?: boolean | undefined;
1727
+ isEmpty?: boolean | undefined;
1694
1728
  } | undefined;
1695
1729
  versions?: {
1696
1730
  artifactId: string;
@@ -1702,6 +1736,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1702
1736
  isDraft?: boolean | undefined;
1703
1737
  updatedAt?: string | undefined;
1704
1738
  canDelete?: boolean | undefined;
1739
+ isEmpty?: boolean | undefined;
1705
1740
  }[] | undefined;
1706
1741
  };
1707
1742
  }, {
@@ -1720,6 +1755,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1720
1755
  isDraft?: boolean | undefined;
1721
1756
  updatedAt?: string | undefined;
1722
1757
  canDelete?: boolean | undefined;
1758
+ isEmpty?: boolean | undefined;
1723
1759
  }[];
1724
1760
  mode?: "draft" | "published" | undefined;
1725
1761
  saved?: {
@@ -1736,8 +1772,8 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1736
1772
  allowedValues?: (string | number | boolean | null)[] | undefined;
1737
1773
  }[];
1738
1774
  charts: {
1739
- title: string;
1740
1775
  type: "bar" | "line" | "area" | "pie" | "scatter";
1776
+ title: string;
1741
1777
  id: string;
1742
1778
  datasetId: string;
1743
1779
  x: string;
@@ -1794,6 +1830,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1794
1830
  isDraft?: boolean | undefined;
1795
1831
  updatedAt?: string | undefined;
1796
1832
  canDelete?: boolean | undefined;
1833
+ isEmpty?: boolean | undefined;
1797
1834
  } | undefined;
1798
1835
  access?: {
1799
1836
  project: boolean;
@@ -1826,6 +1863,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1826
1863
  isDraft?: boolean | undefined;
1827
1864
  updatedAt?: string | undefined;
1828
1865
  canDelete?: boolean | undefined;
1866
+ isEmpty?: boolean | undefined;
1829
1867
  } | undefined;
1830
1868
  versions?: {
1831
1869
  artifactId: string;
@@ -1837,6 +1875,7 @@ export declare const dashboardViewDataSchema: z.ZodObject<{
1837
1875
  isDraft?: boolean | undefined;
1838
1876
  updatedAt?: string | undefined;
1839
1877
  canDelete?: boolean | undefined;
1878
+ isEmpty?: boolean | undefined;
1840
1879
  }[] | undefined;
1841
1880
  };
1842
1881
  }>;
@@ -7,7 +7,7 @@ const artifact_document_1 = require("@xpert-ai/plugin-sdk/artifact-document");
7
7
  const projects_schema_1 = require("./projects.schema");
8
8
  const dashboard_schema_1 = require("./dashboard.schema");
9
9
  const dashboard_navigation_1 = require("./dashboard-navigation");
10
- exports.dashboardSummarySchema = v3_1.z.object({ artifactId: v3_1.z.string(), versionId: v3_1.z.string().nullish(), versionNumber: v3_1.z.number().optional(), title: v3_1.z.string().nullish(), updatedAt: v3_1.z.string().optional(), draftRevision: v3_1.z.number().optional(), canDelete: v3_1.z.boolean().optional(), isDraft: v3_1.z.boolean().optional(), baseVersionId: v3_1.z.string().nullish() });
10
+ exports.dashboardSummarySchema = v3_1.z.object({ artifactId: v3_1.z.string(), versionId: v3_1.z.string().nullish(), versionNumber: v3_1.z.number().optional(), title: v3_1.z.string().nullish(), updatedAt: v3_1.z.string().optional(), draftRevision: v3_1.z.number().optional(), canDelete: v3_1.z.boolean().optional(), isDraft: v3_1.z.boolean().optional(), isEmpty: v3_1.z.boolean().optional(), baseVersionId: v3_1.z.string().nullish() });
11
11
  exports.dashboardPickerPageSchema = v3_1.z.object({ items: v3_1.z.array(exports.dashboardSummarySchema), page: v3_1.z.number().int().positive(), hasMore: v3_1.z.boolean(), canEdit: v3_1.z.boolean().default(false), mode: v3_1.z.enum(['draft', 'published']).optional() });
12
12
  exports.dashboardSavedSchema = exports.dashboardSummarySchema.extend({ manifest: dashboard_schema_1.dashboardSchema, dependencies: artifact_document_1.artifactDocumentDependencyAssets.optional() });
13
13
  // Source identities belong to Analytics, including immutable Definitions and Artifacts.
@@ -128,16 +128,16 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
128
128
  y: z.ZodString;
129
129
  color: z.ZodOptional<z.ZodString>;
130
130
  }, "strict", z.ZodTypeAny, {
131
- title: string;
132
131
  type: "bar" | "line" | "area" | "pie" | "scatter";
132
+ title: string;
133
133
  id: string;
134
134
  datasetId: string;
135
135
  x: string;
136
136
  y: string;
137
137
  color?: string | undefined;
138
138
  }, {
139
- title: string;
140
139
  type: "bar" | "line" | "area" | "pie" | "scatter";
140
+ title: string;
141
141
  id: string;
142
142
  datasetId: string;
143
143
  x: string;
@@ -173,8 +173,8 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
173
173
  allowedValues?: (string | number | boolean | null)[] | undefined;
174
174
  }[];
175
175
  charts: {
176
- title: string;
177
176
  type: "bar" | "line" | "area" | "pie" | "scatter";
177
+ title: string;
178
178
  id: string;
179
179
  datasetId: string;
180
180
  x: string;
@@ -220,8 +220,8 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
220
220
  allowedValues?: (string | number | boolean | null)[] | undefined;
221
221
  }[];
222
222
  charts: {
223
- title: string;
224
223
  type: "bar" | "line" | "area" | "pie" | "scatter";
224
+ title: string;
225
225
  id: string;
226
226
  datasetId: string;
227
227
  x: string;
@@ -273,8 +273,8 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
273
273
  allowedValues?: (string | number | boolean | null)[] | undefined;
274
274
  }[];
275
275
  charts: {
276
- title: string;
277
276
  type: "bar" | "line" | "area" | "pie" | "scatter";
277
+ title: string;
278
278
  id: string;
279
279
  datasetId: string;
280
280
  x: string;
@@ -320,8 +320,8 @@ export declare const dashboardSchema: z.ZodEffects<z.ZodObject<{
320
320
  allowedValues?: (string | number | boolean | null)[] | undefined;
321
321
  }[];
322
322
  charts: {
323
- title: string;
324
323
  type: "bar" | "line" | "area" | "pie" | "scatter";
324
+ title: string;
325
325
  id: string;
326
326
  datasetId: string;
327
327
  x: string;
@@ -493,16 +493,16 @@ export declare const dashboardChangesSchema: z.ZodObject<{
493
493
  y: z.ZodString;
494
494
  color: z.ZodOptional<z.ZodString>;
495
495
  }, "strict", z.ZodTypeAny, {
496
- title: string;
497
496
  type: "bar" | "line" | "area" | "pie" | "scatter";
497
+ title: string;
498
498
  id: string;
499
499
  datasetId: string;
500
500
  x: string;
501
501
  y: string;
502
502
  color?: string | undefined;
503
503
  }, {
504
- title: string;
505
504
  type: "bar" | "line" | "area" | "pie" | "scatter";
505
+ title: string;
506
506
  id: string;
507
507
  datasetId: string;
508
508
  x: string;
@@ -556,8 +556,8 @@ export declare const dashboardChangesSchema: z.ZodObject<{
556
556
  allowedValues?: (string | number | boolean | null)[] | undefined;
557
557
  }[] | undefined;
558
558
  charts?: {
559
- title: string;
560
559
  type: "bar" | "line" | "area" | "pie" | "scatter";
560
+ title: string;
561
561
  id: string;
562
562
  datasetId: string;
563
563
  x: string;
@@ -607,8 +607,8 @@ export declare const dashboardChangesSchema: z.ZodObject<{
607
607
  allowedValues?: (string | number | boolean | null)[] | undefined;
608
608
  }[] | undefined;
609
609
  charts?: {
610
- title: string;
611
610
  type: "bar" | "line" | "area" | "pie" | "scatter";
611
+ title: string;
612
612
  id: string;
613
613
  datasetId: string;
614
614
  x: string;
@@ -754,16 +754,16 @@ export declare const saveSchema: z.ZodObject<{
754
754
  y: z.ZodString;
755
755
  color: z.ZodOptional<z.ZodString>;
756
756
  }, "strict", z.ZodTypeAny, {
757
- title: string;
758
757
  type: "bar" | "line" | "area" | "pie" | "scatter";
758
+ title: string;
759
759
  id: string;
760
760
  datasetId: string;
761
761
  x: string;
762
762
  y: string;
763
763
  color?: string | undefined;
764
764
  }, {
765
- title: string;
766
765
  type: "bar" | "line" | "area" | "pie" | "scatter";
766
+ title: string;
767
767
  id: string;
768
768
  datasetId: string;
769
769
  x: string;
@@ -799,8 +799,8 @@ export declare const saveSchema: z.ZodObject<{
799
799
  allowedValues?: (string | number | boolean | null)[] | undefined;
800
800
  }[];
801
801
  charts: {
802
- title: string;
803
802
  type: "bar" | "line" | "area" | "pie" | "scatter";
803
+ title: string;
804
804
  id: string;
805
805
  datasetId: string;
806
806
  x: string;
@@ -846,8 +846,8 @@ export declare const saveSchema: z.ZodObject<{
846
846
  allowedValues?: (string | number | boolean | null)[] | undefined;
847
847
  }[];
848
848
  charts: {
849
- title: string;
850
849
  type: "bar" | "line" | "area" | "pie" | "scatter";
850
+ title: string;
851
851
  id: string;
852
852
  datasetId: string;
853
853
  x: string;
@@ -899,8 +899,8 @@ export declare const saveSchema: z.ZodObject<{
899
899
  allowedValues?: (string | number | boolean | null)[] | undefined;
900
900
  }[];
901
901
  charts: {
902
- title: string;
903
902
  type: "bar" | "line" | "area" | "pie" | "scatter";
903
+ title: string;
904
904
  id: string;
905
905
  datasetId: string;
906
906
  x: string;
@@ -946,8 +946,8 @@ export declare const saveSchema: z.ZodObject<{
946
946
  allowedValues?: (string | number | boolean | null)[] | undefined;
947
947
  }[];
948
948
  charts: {
949
- title: string;
950
949
  type: "bar" | "line" | "area" | "pie" | "scatter";
950
+ title: string;
951
951
  id: string;
952
952
  datasetId: string;
953
953
  x: string;
@@ -1003,8 +1003,8 @@ export declare const saveSchema: z.ZodObject<{
1003
1003
  allowedValues?: (string | number | boolean | null)[] | undefined;
1004
1004
  }[];
1005
1005
  charts: {
1006
- title: string;
1007
1006
  type: "bar" | "line" | "area" | "pie" | "scatter";
1007
+ title: string;
1008
1008
  id: string;
1009
1009
  datasetId: string;
1010
1010
  x: string;
@@ -1054,8 +1054,8 @@ export declare const saveSchema: z.ZodObject<{
1054
1054
  allowedValues?: (string | number | boolean | null)[] | undefined;
1055
1055
  }[];
1056
1056
  charts: {
1057
- title: string;
1058
1057
  type: "bar" | "line" | "area" | "pie" | "scatter";
1058
+ title: string;
1059
1059
  id: string;
1060
1060
  datasetId: string;
1061
1061
  x: string;