@xpert-ai/plugin-live-dashboard 0.1.2 → 0.1.4

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.
@@ -0,0 +1,1249 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const dashboardSummarySchema: z.ZodObject<{
3
+ artifactId: z.ZodString;
4
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ versionNumber: z.ZodOptional<z.ZodNumber>;
6
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ updatedAt: z.ZodOptional<z.ZodString>;
8
+ draftRevision: z.ZodOptional<z.ZodNumber>;
9
+ isDraft: z.ZodOptional<z.ZodBoolean>;
10
+ baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ artifactId: string;
13
+ title?: string | null | undefined;
14
+ versionId?: string | null | undefined;
15
+ draftRevision?: number | undefined;
16
+ versionNumber?: number | undefined;
17
+ baseVersionId?: string | null | undefined;
18
+ isDraft?: boolean | undefined;
19
+ updatedAt?: string | undefined;
20
+ }, {
21
+ artifactId: string;
22
+ title?: string | null | undefined;
23
+ versionId?: string | null | undefined;
24
+ draftRevision?: number | undefined;
25
+ versionNumber?: number | undefined;
26
+ baseVersionId?: string | null | undefined;
27
+ isDraft?: boolean | undefined;
28
+ updatedAt?: string | undefined;
29
+ }>;
30
+ export declare const dashboardSavedSchema: z.ZodObject<{
31
+ artifactId: z.ZodString;
32
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ versionNumber: z.ZodOptional<z.ZodNumber>;
34
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ updatedAt: z.ZodOptional<z.ZodString>;
36
+ draftRevision: z.ZodOptional<z.ZodNumber>;
37
+ isDraft: z.ZodOptional<z.ZodBoolean>;
38
+ baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ } & {
40
+ manifest: z.ZodEffects<z.ZodObject<{
41
+ schema: z.ZodLiteral<"xpert.live-dashboard">;
42
+ id: z.ZodString;
43
+ title: z.ZodString;
44
+ bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
45
+ presentation: z.ZodOptional<z.ZodObject<{
46
+ type: z.ZodLiteral<"html">;
47
+ html: z.ZodEffects<z.ZodString, string, string>;
48
+ dependencies: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
49
+ id: z.ZodString;
50
+ version: z.ZodString;
51
+ format: z.ZodLiteral<"classic-script">;
52
+ global: z.ZodEffects<z.ZodString, string, string>;
53
+ sha256: z.ZodString;
54
+ }, "strict", z.ZodTypeAny, {
55
+ id?: string;
56
+ version?: string;
57
+ format?: "classic-script";
58
+ global?: string;
59
+ sha256?: string;
60
+ }, {
61
+ id?: string;
62
+ version?: string;
63
+ format?: "classic-script";
64
+ global?: string;
65
+ sha256?: string;
66
+ }>, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock, {
67
+ id?: string;
68
+ version?: string;
69
+ format?: "classic-script";
70
+ global?: string;
71
+ sha256?: string;
72
+ }>, "many">, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[], {
73
+ id?: string;
74
+ version?: string;
75
+ format?: "classic-script";
76
+ global?: string;
77
+ sha256?: string;
78
+ }[]>>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ type: "html";
81
+ html: string;
82
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
83
+ }, {
84
+ type: "html";
85
+ html: string;
86
+ dependencies?: {
87
+ id?: string;
88
+ version?: string;
89
+ format?: "classic-script";
90
+ global?: string;
91
+ sha256?: string;
92
+ }[] | undefined;
93
+ }>>;
94
+ controls: z.ZodArray<z.ZodObject<{
95
+ controlId: z.ZodString;
96
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
97
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
98
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
99
+ label: z.ZodString;
100
+ }, "strict", z.ZodTypeAny, {
101
+ type: "string" | "number" | "boolean" | "date";
102
+ controlId: string;
103
+ label: string;
104
+ defaultValue?: string | number | boolean | null | undefined;
105
+ allowedValues?: (string | number | boolean | null)[] | undefined;
106
+ }, {
107
+ type: "string" | "number" | "boolean" | "date";
108
+ controlId: string;
109
+ label: string;
110
+ defaultValue?: string | number | boolean | null | undefined;
111
+ allowedValues?: (string | number | boolean | null)[] | undefined;
112
+ }>, "many">;
113
+ charts: z.ZodArray<z.ZodObject<{
114
+ id: z.ZodString;
115
+ title: z.ZodString;
116
+ type: z.ZodEnum<["bar", "line", "area", "pie", "scatter"]>;
117
+ datasetId: z.ZodString;
118
+ x: z.ZodString;
119
+ y: z.ZodString;
120
+ color: z.ZodOptional<z.ZodString>;
121
+ }, "strict", z.ZodTypeAny, {
122
+ type: "bar" | "line" | "area" | "pie" | "scatter";
123
+ id: string;
124
+ title: string;
125
+ datasetId: string;
126
+ x: string;
127
+ y: string;
128
+ color?: string | undefined;
129
+ }, {
130
+ type: "bar" | "line" | "area" | "pie" | "scatter";
131
+ id: string;
132
+ title: string;
133
+ datasetId: string;
134
+ x: string;
135
+ y: string;
136
+ color?: string | undefined;
137
+ }>, "many">;
138
+ tables: z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ title: z.ZodString;
141
+ datasetId: z.ZodString;
142
+ fields: z.ZodArray<z.ZodString, "many">;
143
+ }, "strict", z.ZodTypeAny, {
144
+ id: string;
145
+ title: string;
146
+ datasetId: string;
147
+ fields: string[];
148
+ }, {
149
+ id: string;
150
+ title: string;
151
+ datasetId: string;
152
+ fields: string[];
153
+ }>, "many">;
154
+ }, "strict", z.ZodTypeAny, {
155
+ schema: "xpert.live-dashboard";
156
+ id: string;
157
+ title: string;
158
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
159
+ controls: {
160
+ type: "string" | "number" | "boolean" | "date";
161
+ controlId: string;
162
+ label: string;
163
+ defaultValue?: string | number | boolean | null | undefined;
164
+ allowedValues?: (string | number | boolean | null)[] | undefined;
165
+ }[];
166
+ charts: {
167
+ type: "bar" | "line" | "area" | "pie" | "scatter";
168
+ id: string;
169
+ title: string;
170
+ datasetId: string;
171
+ x: string;
172
+ y: string;
173
+ color?: string | undefined;
174
+ }[];
175
+ tables: {
176
+ id: string;
177
+ title: string;
178
+ datasetId: string;
179
+ fields: string[];
180
+ }[];
181
+ presentation?: {
182
+ type: "html";
183
+ html: string;
184
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
185
+ } | undefined;
186
+ }, {
187
+ schema: "xpert.live-dashboard";
188
+ id: string;
189
+ title: string;
190
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
191
+ controls: {
192
+ type: "string" | "number" | "boolean" | "date";
193
+ controlId: string;
194
+ label: string;
195
+ defaultValue?: string | number | boolean | null | undefined;
196
+ allowedValues?: (string | number | boolean | null)[] | undefined;
197
+ }[];
198
+ charts: {
199
+ type: "bar" | "line" | "area" | "pie" | "scatter";
200
+ id: string;
201
+ title: string;
202
+ datasetId: string;
203
+ x: string;
204
+ y: string;
205
+ color?: string | undefined;
206
+ }[];
207
+ tables: {
208
+ id: string;
209
+ title: string;
210
+ datasetId: string;
211
+ fields: string[];
212
+ }[];
213
+ presentation?: {
214
+ type: "html";
215
+ html: string;
216
+ dependencies?: {
217
+ id?: string;
218
+ version?: string;
219
+ format?: "classic-script";
220
+ global?: string;
221
+ sha256?: string;
222
+ }[] | undefined;
223
+ } | undefined;
224
+ }>, {
225
+ schema: "xpert.live-dashboard";
226
+ id: string;
227
+ title: string;
228
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
229
+ controls: {
230
+ type: "string" | "number" | "boolean" | "date";
231
+ controlId: string;
232
+ label: string;
233
+ defaultValue?: string | number | boolean | null | undefined;
234
+ allowedValues?: (string | number | boolean | null)[] | undefined;
235
+ }[];
236
+ charts: {
237
+ type: "bar" | "line" | "area" | "pie" | "scatter";
238
+ id: string;
239
+ title: string;
240
+ datasetId: string;
241
+ x: string;
242
+ y: string;
243
+ color?: string | undefined;
244
+ }[];
245
+ tables: {
246
+ id: string;
247
+ title: string;
248
+ datasetId: string;
249
+ fields: string[];
250
+ }[];
251
+ presentation?: {
252
+ type: "html";
253
+ html: string;
254
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
255
+ } | undefined;
256
+ }, {
257
+ schema: "xpert.live-dashboard";
258
+ id: string;
259
+ title: string;
260
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
261
+ controls: {
262
+ type: "string" | "number" | "boolean" | "date";
263
+ controlId: string;
264
+ label: string;
265
+ defaultValue?: string | number | boolean | null | undefined;
266
+ allowedValues?: (string | number | boolean | null)[] | undefined;
267
+ }[];
268
+ charts: {
269
+ type: "bar" | "line" | "area" | "pie" | "scatter";
270
+ id: string;
271
+ title: string;
272
+ datasetId: string;
273
+ x: string;
274
+ y: string;
275
+ color?: string | undefined;
276
+ }[];
277
+ tables: {
278
+ id: string;
279
+ title: string;
280
+ datasetId: string;
281
+ fields: string[];
282
+ }[];
283
+ presentation?: {
284
+ type: "html";
285
+ html: string;
286
+ dependencies?: {
287
+ id?: string;
288
+ version?: string;
289
+ format?: "classic-script";
290
+ global?: string;
291
+ sha256?: string;
292
+ }[] | undefined;
293
+ } | undefined;
294
+ }>;
295
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
296
+ id: z.ZodString;
297
+ version: z.ZodString;
298
+ format: z.ZodLiteral<"classic-script">;
299
+ global: z.ZodEffects<z.ZodString, string, string>;
300
+ sha256: z.ZodString;
301
+ } & {
302
+ source: z.ZodString;
303
+ }, "strict", z.ZodTypeAny, {
304
+ id?: string;
305
+ version?: string;
306
+ source?: string;
307
+ format?: "classic-script";
308
+ global?: string;
309
+ sha256?: string;
310
+ }, {
311
+ id?: string;
312
+ version?: string;
313
+ source?: string;
314
+ format?: "classic-script";
315
+ global?: string;
316
+ sha256?: string;
317
+ }>, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset, {
318
+ id?: string;
319
+ version?: string;
320
+ source?: string;
321
+ format?: "classic-script";
322
+ global?: string;
323
+ sha256?: string;
324
+ }>, "many">>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ manifest: {
327
+ schema: "xpert.live-dashboard";
328
+ id: string;
329
+ title: string;
330
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
331
+ controls: {
332
+ type: "string" | "number" | "boolean" | "date";
333
+ controlId: string;
334
+ label: string;
335
+ defaultValue?: string | number | boolean | null | undefined;
336
+ allowedValues?: (string | number | boolean | null)[] | undefined;
337
+ }[];
338
+ charts: {
339
+ type: "bar" | "line" | "area" | "pie" | "scatter";
340
+ id: string;
341
+ title: string;
342
+ datasetId: string;
343
+ x: string;
344
+ y: string;
345
+ color?: string | undefined;
346
+ }[];
347
+ tables: {
348
+ id: string;
349
+ title: string;
350
+ datasetId: string;
351
+ fields: string[];
352
+ }[];
353
+ presentation?: {
354
+ type: "html";
355
+ html: string;
356
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
357
+ } | undefined;
358
+ };
359
+ artifactId: string;
360
+ title?: string | null | undefined;
361
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset[] | undefined;
362
+ versionId?: string | null | undefined;
363
+ draftRevision?: number | undefined;
364
+ versionNumber?: number | undefined;
365
+ baseVersionId?: string | null | undefined;
366
+ isDraft?: boolean | undefined;
367
+ updatedAt?: string | undefined;
368
+ }, {
369
+ manifest: {
370
+ schema: "xpert.live-dashboard";
371
+ id: string;
372
+ title: string;
373
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
374
+ controls: {
375
+ type: "string" | "number" | "boolean" | "date";
376
+ controlId: string;
377
+ label: string;
378
+ defaultValue?: string | number | boolean | null | undefined;
379
+ allowedValues?: (string | number | boolean | null)[] | undefined;
380
+ }[];
381
+ charts: {
382
+ type: "bar" | "line" | "area" | "pie" | "scatter";
383
+ id: string;
384
+ title: string;
385
+ datasetId: string;
386
+ x: string;
387
+ y: string;
388
+ color?: string | undefined;
389
+ }[];
390
+ tables: {
391
+ id: string;
392
+ title: string;
393
+ datasetId: string;
394
+ fields: string[];
395
+ }[];
396
+ presentation?: {
397
+ type: "html";
398
+ html: string;
399
+ dependencies?: {
400
+ id?: string;
401
+ version?: string;
402
+ format?: "classic-script";
403
+ global?: string;
404
+ sha256?: string;
405
+ }[] | undefined;
406
+ } | undefined;
407
+ };
408
+ artifactId: string;
409
+ title?: string | null | undefined;
410
+ dependencies?: {
411
+ id?: string;
412
+ version?: string;
413
+ source?: string;
414
+ format?: "classic-script";
415
+ global?: string;
416
+ sha256?: string;
417
+ }[] | undefined;
418
+ versionId?: string | null | undefined;
419
+ draftRevision?: number | undefined;
420
+ versionNumber?: number | undefined;
421
+ baseVersionId?: string | null | undefined;
422
+ isDraft?: boolean | undefined;
423
+ updatedAt?: string | undefined;
424
+ }>;
425
+ export declare const dashboardViewDataSchema: z.ZodObject<{
426
+ meta: z.ZodObject<{
427
+ navigationTarget: z.ZodOptional<z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
428
+ target: z.ZodLiteral<"workbench.view">;
429
+ viewKey: z.ZodLiteral<"live-dashboard__live-dashboard">;
430
+ }, "strict", z.ZodTypeAny, {
431
+ target: "workbench.view";
432
+ viewKey: "live-dashboard__live-dashboard";
433
+ }, {
434
+ target: "workbench.view";
435
+ viewKey: "live-dashboard__live-dashboard";
436
+ }>, z.ZodObject<{
437
+ target: z.ZodLiteral<"assistant.project">;
438
+ projectId: z.ZodString;
439
+ viewKey: z.ZodLiteral<"live-dashboard__live-dashboard">;
440
+ }, "strict", z.ZodTypeAny, {
441
+ projectId: string;
442
+ target: "assistant.project";
443
+ viewKey: "live-dashboard__live-dashboard";
444
+ }, {
445
+ projectId: string;
446
+ target: "assistant.project";
447
+ viewKey: "live-dashboard__live-dashboard";
448
+ }>]>>;
449
+ dashboards: z.ZodArray<z.ZodObject<{
450
+ artifactId: z.ZodString;
451
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ versionNumber: z.ZodOptional<z.ZodNumber>;
453
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ updatedAt: z.ZodOptional<z.ZodString>;
455
+ draftRevision: z.ZodOptional<z.ZodNumber>;
456
+ isDraft: z.ZodOptional<z.ZodBoolean>;
457
+ baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ artifactId: string;
460
+ title?: string | null | undefined;
461
+ versionId?: string | null | undefined;
462
+ draftRevision?: number | undefined;
463
+ versionNumber?: number | undefined;
464
+ baseVersionId?: string | null | undefined;
465
+ isDraft?: boolean | undefined;
466
+ updatedAt?: string | undefined;
467
+ }, {
468
+ artifactId: string;
469
+ title?: string | null | undefined;
470
+ versionId?: string | null | undefined;
471
+ draftRevision?: number | undefined;
472
+ versionNumber?: number | undefined;
473
+ baseVersionId?: string | null | undefined;
474
+ isDraft?: boolean | undefined;
475
+ updatedAt?: string | undefined;
476
+ }>, "many">;
477
+ sources: z.ZodArray<z.ZodObject<{
478
+ source: z.ZodType<import("@xpert-ai/contracts").AnalyticsSourceRef, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsSourceRef>;
479
+ name: z.ZodString;
480
+ }, "strip", z.ZodTypeAny, {
481
+ name: string;
482
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
483
+ }, {
484
+ name: string;
485
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
486
+ }>, "many">;
487
+ saved: z.ZodOptional<z.ZodObject<{
488
+ artifactId: z.ZodString;
489
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ versionNumber: z.ZodOptional<z.ZodNumber>;
491
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ updatedAt: z.ZodOptional<z.ZodString>;
493
+ draftRevision: z.ZodOptional<z.ZodNumber>;
494
+ isDraft: z.ZodOptional<z.ZodBoolean>;
495
+ baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
+ } & {
497
+ manifest: z.ZodEffects<z.ZodObject<{
498
+ schema: z.ZodLiteral<"xpert.live-dashboard">;
499
+ id: z.ZodString;
500
+ title: z.ZodString;
501
+ bindings: z.ZodArray<z.ZodType<import("@xpert-ai/contracts").AnalyticsBinding, z.ZodTypeDef, import("@xpert-ai/contracts").AnalyticsBinding>, "many">;
502
+ presentation: z.ZodOptional<z.ZodObject<{
503
+ type: z.ZodLiteral<"html">;
504
+ html: z.ZodEffects<z.ZodString, string, string>;
505
+ dependencies: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
506
+ id: z.ZodString;
507
+ version: z.ZodString;
508
+ format: z.ZodLiteral<"classic-script">;
509
+ global: z.ZodEffects<z.ZodString, string, string>;
510
+ sha256: z.ZodString;
511
+ }, "strict", z.ZodTypeAny, {
512
+ id?: string;
513
+ version?: string;
514
+ format?: "classic-script";
515
+ global?: string;
516
+ sha256?: string;
517
+ }, {
518
+ id?: string;
519
+ version?: string;
520
+ format?: "classic-script";
521
+ global?: string;
522
+ sha256?: string;
523
+ }>, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock, {
524
+ id?: string;
525
+ version?: string;
526
+ format?: "classic-script";
527
+ global?: string;
528
+ sha256?: string;
529
+ }>, "many">, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[], {
530
+ id?: string;
531
+ version?: string;
532
+ format?: "classic-script";
533
+ global?: string;
534
+ sha256?: string;
535
+ }[]>>;
536
+ }, "strict", z.ZodTypeAny, {
537
+ type: "html";
538
+ html: string;
539
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
540
+ }, {
541
+ type: "html";
542
+ html: string;
543
+ dependencies?: {
544
+ id?: string;
545
+ version?: string;
546
+ format?: "classic-script";
547
+ global?: string;
548
+ sha256?: string;
549
+ }[] | undefined;
550
+ }>>;
551
+ controls: z.ZodArray<z.ZodObject<{
552
+ controlId: z.ZodString;
553
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
554
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
555
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">>;
556
+ label: z.ZodString;
557
+ }, "strict", z.ZodTypeAny, {
558
+ type: "string" | "number" | "boolean" | "date";
559
+ controlId: string;
560
+ label: string;
561
+ defaultValue?: string | number | boolean | null | undefined;
562
+ allowedValues?: (string | number | boolean | null)[] | undefined;
563
+ }, {
564
+ type: "string" | "number" | "boolean" | "date";
565
+ controlId: string;
566
+ label: string;
567
+ defaultValue?: string | number | boolean | null | undefined;
568
+ allowedValues?: (string | number | boolean | null)[] | undefined;
569
+ }>, "many">;
570
+ charts: z.ZodArray<z.ZodObject<{
571
+ id: z.ZodString;
572
+ title: z.ZodString;
573
+ type: z.ZodEnum<["bar", "line", "area", "pie", "scatter"]>;
574
+ datasetId: z.ZodString;
575
+ x: z.ZodString;
576
+ y: z.ZodString;
577
+ color: z.ZodOptional<z.ZodString>;
578
+ }, "strict", z.ZodTypeAny, {
579
+ type: "bar" | "line" | "area" | "pie" | "scatter";
580
+ id: string;
581
+ title: string;
582
+ datasetId: string;
583
+ x: string;
584
+ y: string;
585
+ color?: string | undefined;
586
+ }, {
587
+ type: "bar" | "line" | "area" | "pie" | "scatter";
588
+ id: string;
589
+ title: string;
590
+ datasetId: string;
591
+ x: string;
592
+ y: string;
593
+ color?: string | undefined;
594
+ }>, "many">;
595
+ tables: z.ZodArray<z.ZodObject<{
596
+ id: z.ZodString;
597
+ title: z.ZodString;
598
+ datasetId: z.ZodString;
599
+ fields: z.ZodArray<z.ZodString, "many">;
600
+ }, "strict", z.ZodTypeAny, {
601
+ id: string;
602
+ title: string;
603
+ datasetId: string;
604
+ fields: string[];
605
+ }, {
606
+ id: string;
607
+ title: string;
608
+ datasetId: string;
609
+ fields: string[];
610
+ }>, "many">;
611
+ }, "strict", z.ZodTypeAny, {
612
+ schema: "xpert.live-dashboard";
613
+ id: string;
614
+ title: string;
615
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
616
+ controls: {
617
+ type: "string" | "number" | "boolean" | "date";
618
+ controlId: string;
619
+ label: string;
620
+ defaultValue?: string | number | boolean | null | undefined;
621
+ allowedValues?: (string | number | boolean | null)[] | undefined;
622
+ }[];
623
+ charts: {
624
+ type: "bar" | "line" | "area" | "pie" | "scatter";
625
+ id: string;
626
+ title: string;
627
+ datasetId: string;
628
+ x: string;
629
+ y: string;
630
+ color?: string | undefined;
631
+ }[];
632
+ tables: {
633
+ id: string;
634
+ title: string;
635
+ datasetId: string;
636
+ fields: string[];
637
+ }[];
638
+ presentation?: {
639
+ type: "html";
640
+ html: string;
641
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
642
+ } | undefined;
643
+ }, {
644
+ schema: "xpert.live-dashboard";
645
+ id: string;
646
+ title: string;
647
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
648
+ controls: {
649
+ type: "string" | "number" | "boolean" | "date";
650
+ controlId: string;
651
+ label: string;
652
+ defaultValue?: string | number | boolean | null | undefined;
653
+ allowedValues?: (string | number | boolean | null)[] | undefined;
654
+ }[];
655
+ charts: {
656
+ type: "bar" | "line" | "area" | "pie" | "scatter";
657
+ id: string;
658
+ title: string;
659
+ datasetId: string;
660
+ x: string;
661
+ y: string;
662
+ color?: string | undefined;
663
+ }[];
664
+ tables: {
665
+ id: string;
666
+ title: string;
667
+ datasetId: string;
668
+ fields: string[];
669
+ }[];
670
+ presentation?: {
671
+ type: "html";
672
+ html: string;
673
+ dependencies?: {
674
+ id?: string;
675
+ version?: string;
676
+ format?: "classic-script";
677
+ global?: string;
678
+ sha256?: string;
679
+ }[] | undefined;
680
+ } | undefined;
681
+ }>, {
682
+ schema: "xpert.live-dashboard";
683
+ id: string;
684
+ title: string;
685
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
686
+ controls: {
687
+ type: "string" | "number" | "boolean" | "date";
688
+ controlId: string;
689
+ label: string;
690
+ defaultValue?: string | number | boolean | null | undefined;
691
+ allowedValues?: (string | number | boolean | null)[] | undefined;
692
+ }[];
693
+ charts: {
694
+ type: "bar" | "line" | "area" | "pie" | "scatter";
695
+ id: string;
696
+ title: string;
697
+ datasetId: string;
698
+ x: string;
699
+ y: string;
700
+ color?: string | undefined;
701
+ }[];
702
+ tables: {
703
+ id: string;
704
+ title: string;
705
+ datasetId: string;
706
+ fields: string[];
707
+ }[];
708
+ presentation?: {
709
+ type: "html";
710
+ html: string;
711
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
712
+ } | undefined;
713
+ }, {
714
+ schema: "xpert.live-dashboard";
715
+ id: string;
716
+ title: string;
717
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
718
+ controls: {
719
+ type: "string" | "number" | "boolean" | "date";
720
+ controlId: string;
721
+ label: string;
722
+ defaultValue?: string | number | boolean | null | undefined;
723
+ allowedValues?: (string | number | boolean | null)[] | undefined;
724
+ }[];
725
+ charts: {
726
+ type: "bar" | "line" | "area" | "pie" | "scatter";
727
+ id: string;
728
+ title: string;
729
+ datasetId: string;
730
+ x: string;
731
+ y: string;
732
+ color?: string | undefined;
733
+ }[];
734
+ tables: {
735
+ id: string;
736
+ title: string;
737
+ datasetId: string;
738
+ fields: string[];
739
+ }[];
740
+ presentation?: {
741
+ type: "html";
742
+ html: string;
743
+ dependencies?: {
744
+ id?: string;
745
+ version?: string;
746
+ format?: "classic-script";
747
+ global?: string;
748
+ sha256?: string;
749
+ }[] | undefined;
750
+ } | undefined;
751
+ }>;
752
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
753
+ id: z.ZodString;
754
+ version: z.ZodString;
755
+ format: z.ZodLiteral<"classic-script">;
756
+ global: z.ZodEffects<z.ZodString, string, string>;
757
+ sha256: z.ZodString;
758
+ } & {
759
+ source: z.ZodString;
760
+ }, "strict", z.ZodTypeAny, {
761
+ id?: string;
762
+ version?: string;
763
+ source?: string;
764
+ format?: "classic-script";
765
+ global?: string;
766
+ sha256?: string;
767
+ }, {
768
+ id?: string;
769
+ version?: string;
770
+ source?: string;
771
+ format?: "classic-script";
772
+ global?: string;
773
+ sha256?: string;
774
+ }>, import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset, {
775
+ id?: string;
776
+ version?: string;
777
+ source?: string;
778
+ format?: "classic-script";
779
+ global?: string;
780
+ sha256?: string;
781
+ }>, "many">>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ manifest: {
784
+ schema: "xpert.live-dashboard";
785
+ id: string;
786
+ title: string;
787
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
788
+ controls: {
789
+ type: "string" | "number" | "boolean" | "date";
790
+ controlId: string;
791
+ label: string;
792
+ defaultValue?: string | number | boolean | null | undefined;
793
+ allowedValues?: (string | number | boolean | null)[] | undefined;
794
+ }[];
795
+ charts: {
796
+ type: "bar" | "line" | "area" | "pie" | "scatter";
797
+ id: string;
798
+ title: string;
799
+ datasetId: string;
800
+ x: string;
801
+ y: string;
802
+ color?: string | undefined;
803
+ }[];
804
+ tables: {
805
+ id: string;
806
+ title: string;
807
+ datasetId: string;
808
+ fields: string[];
809
+ }[];
810
+ presentation?: {
811
+ type: "html";
812
+ html: string;
813
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
814
+ } | undefined;
815
+ };
816
+ artifactId: string;
817
+ title?: string | null | undefined;
818
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset[] | undefined;
819
+ versionId?: string | null | undefined;
820
+ draftRevision?: number | undefined;
821
+ versionNumber?: number | undefined;
822
+ baseVersionId?: string | null | undefined;
823
+ isDraft?: boolean | undefined;
824
+ updatedAt?: string | undefined;
825
+ }, {
826
+ manifest: {
827
+ schema: "xpert.live-dashboard";
828
+ id: string;
829
+ title: string;
830
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
831
+ controls: {
832
+ type: "string" | "number" | "boolean" | "date";
833
+ controlId: string;
834
+ label: string;
835
+ defaultValue?: string | number | boolean | null | undefined;
836
+ allowedValues?: (string | number | boolean | null)[] | undefined;
837
+ }[];
838
+ charts: {
839
+ type: "bar" | "line" | "area" | "pie" | "scatter";
840
+ id: string;
841
+ title: string;
842
+ datasetId: string;
843
+ x: string;
844
+ y: string;
845
+ color?: string | undefined;
846
+ }[];
847
+ tables: {
848
+ id: string;
849
+ title: string;
850
+ datasetId: string;
851
+ fields: string[];
852
+ }[];
853
+ presentation?: {
854
+ type: "html";
855
+ html: string;
856
+ dependencies?: {
857
+ id?: string;
858
+ version?: string;
859
+ format?: "classic-script";
860
+ global?: string;
861
+ sha256?: string;
862
+ }[] | undefined;
863
+ } | undefined;
864
+ };
865
+ artifactId: string;
866
+ title?: string | null | undefined;
867
+ dependencies?: {
868
+ id?: string;
869
+ version?: string;
870
+ source?: string;
871
+ format?: "classic-script";
872
+ global?: string;
873
+ sha256?: string;
874
+ }[] | undefined;
875
+ versionId?: string | null | undefined;
876
+ draftRevision?: number | undefined;
877
+ versionNumber?: number | undefined;
878
+ baseVersionId?: string | null | undefined;
879
+ isDraft?: boolean | undefined;
880
+ updatedAt?: string | undefined;
881
+ }>>;
882
+ versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
883
+ artifactId: z.ZodString;
884
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ versionNumber: z.ZodOptional<z.ZodNumber>;
886
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
+ updatedAt: z.ZodOptional<z.ZodString>;
888
+ draftRevision: z.ZodOptional<z.ZodNumber>;
889
+ isDraft: z.ZodOptional<z.ZodBoolean>;
890
+ baseVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ artifactId: string;
893
+ title?: string | null | undefined;
894
+ versionId?: string | null | undefined;
895
+ draftRevision?: number | undefined;
896
+ versionNumber?: number | undefined;
897
+ baseVersionId?: string | null | undefined;
898
+ isDraft?: boolean | undefined;
899
+ updatedAt?: string | undefined;
900
+ }, {
901
+ artifactId: string;
902
+ title?: string | null | undefined;
903
+ versionId?: string | null | undefined;
904
+ draftRevision?: number | undefined;
905
+ versionNumber?: number | undefined;
906
+ baseVersionId?: string | null | undefined;
907
+ isDraft?: boolean | undefined;
908
+ updatedAt?: string | undefined;
909
+ }>, "many">>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ sources: {
912
+ name: string;
913
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
914
+ }[];
915
+ dashboards: {
916
+ artifactId: string;
917
+ title?: string | null | undefined;
918
+ versionId?: string | null | undefined;
919
+ draftRevision?: number | undefined;
920
+ versionNumber?: number | undefined;
921
+ baseVersionId?: string | null | undefined;
922
+ isDraft?: boolean | undefined;
923
+ updatedAt?: string | undefined;
924
+ }[];
925
+ saved?: {
926
+ manifest: {
927
+ schema: "xpert.live-dashboard";
928
+ id: string;
929
+ title: string;
930
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
931
+ controls: {
932
+ type: "string" | "number" | "boolean" | "date";
933
+ controlId: string;
934
+ label: string;
935
+ defaultValue?: string | number | boolean | null | undefined;
936
+ allowedValues?: (string | number | boolean | null)[] | undefined;
937
+ }[];
938
+ charts: {
939
+ type: "bar" | "line" | "area" | "pie" | "scatter";
940
+ id: string;
941
+ title: string;
942
+ datasetId: string;
943
+ x: string;
944
+ y: string;
945
+ color?: string | undefined;
946
+ }[];
947
+ tables: {
948
+ id: string;
949
+ title: string;
950
+ datasetId: string;
951
+ fields: string[];
952
+ }[];
953
+ presentation?: {
954
+ type: "html";
955
+ html: string;
956
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
957
+ } | undefined;
958
+ };
959
+ artifactId: string;
960
+ title?: string | null | undefined;
961
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset[] | undefined;
962
+ versionId?: string | null | undefined;
963
+ draftRevision?: number | undefined;
964
+ versionNumber?: number | undefined;
965
+ baseVersionId?: string | null | undefined;
966
+ isDraft?: boolean | undefined;
967
+ updatedAt?: string | undefined;
968
+ } | undefined;
969
+ navigationTarget?: {
970
+ target: "workbench.view";
971
+ viewKey: "live-dashboard__live-dashboard";
972
+ } | {
973
+ projectId: string;
974
+ target: "assistant.project";
975
+ viewKey: "live-dashboard__live-dashboard";
976
+ } | undefined;
977
+ versions?: {
978
+ artifactId: string;
979
+ title?: string | null | undefined;
980
+ versionId?: string | null | undefined;
981
+ draftRevision?: number | undefined;
982
+ versionNumber?: number | undefined;
983
+ baseVersionId?: string | null | undefined;
984
+ isDraft?: boolean | undefined;
985
+ updatedAt?: string | undefined;
986
+ }[] | undefined;
987
+ }, {
988
+ sources: {
989
+ name: string;
990
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
991
+ }[];
992
+ dashboards: {
993
+ artifactId: string;
994
+ title?: string | null | undefined;
995
+ versionId?: string | null | undefined;
996
+ draftRevision?: number | undefined;
997
+ versionNumber?: number | undefined;
998
+ baseVersionId?: string | null | undefined;
999
+ isDraft?: boolean | undefined;
1000
+ updatedAt?: string | undefined;
1001
+ }[];
1002
+ saved?: {
1003
+ manifest: {
1004
+ schema: "xpert.live-dashboard";
1005
+ id: string;
1006
+ title: string;
1007
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1008
+ controls: {
1009
+ type: "string" | "number" | "boolean" | "date";
1010
+ controlId: string;
1011
+ label: string;
1012
+ defaultValue?: string | number | boolean | null | undefined;
1013
+ allowedValues?: (string | number | boolean | null)[] | undefined;
1014
+ }[];
1015
+ charts: {
1016
+ type: "bar" | "line" | "area" | "pie" | "scatter";
1017
+ id: string;
1018
+ title: string;
1019
+ datasetId: string;
1020
+ x: string;
1021
+ y: string;
1022
+ color?: string | undefined;
1023
+ }[];
1024
+ tables: {
1025
+ id: string;
1026
+ title: string;
1027
+ datasetId: string;
1028
+ fields: string[];
1029
+ }[];
1030
+ presentation?: {
1031
+ type: "html";
1032
+ html: string;
1033
+ dependencies?: {
1034
+ id?: string;
1035
+ version?: string;
1036
+ format?: "classic-script";
1037
+ global?: string;
1038
+ sha256?: string;
1039
+ }[] | undefined;
1040
+ } | undefined;
1041
+ };
1042
+ artifactId: string;
1043
+ title?: string | null | undefined;
1044
+ dependencies?: {
1045
+ id?: string;
1046
+ version?: string;
1047
+ source?: string;
1048
+ format?: "classic-script";
1049
+ global?: string;
1050
+ sha256?: string;
1051
+ }[] | undefined;
1052
+ versionId?: string | null | undefined;
1053
+ draftRevision?: number | undefined;
1054
+ versionNumber?: number | undefined;
1055
+ baseVersionId?: string | null | undefined;
1056
+ isDraft?: boolean | undefined;
1057
+ updatedAt?: string | undefined;
1058
+ } | undefined;
1059
+ navigationTarget?: {
1060
+ target: "workbench.view";
1061
+ viewKey: "live-dashboard__live-dashboard";
1062
+ } | {
1063
+ projectId: string;
1064
+ target: "assistant.project";
1065
+ viewKey: "live-dashboard__live-dashboard";
1066
+ } | undefined;
1067
+ versions?: {
1068
+ artifactId: string;
1069
+ title?: string | null | undefined;
1070
+ versionId?: string | null | undefined;
1071
+ draftRevision?: number | undefined;
1072
+ versionNumber?: number | undefined;
1073
+ baseVersionId?: string | null | undefined;
1074
+ isDraft?: boolean | undefined;
1075
+ updatedAt?: string | undefined;
1076
+ }[] | undefined;
1077
+ }>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ meta: {
1080
+ sources: {
1081
+ name: string;
1082
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1083
+ }[];
1084
+ dashboards: {
1085
+ artifactId: string;
1086
+ title?: string | null | undefined;
1087
+ versionId?: string | null | undefined;
1088
+ draftRevision?: number | undefined;
1089
+ versionNumber?: number | undefined;
1090
+ baseVersionId?: string | null | undefined;
1091
+ isDraft?: boolean | undefined;
1092
+ updatedAt?: string | undefined;
1093
+ }[];
1094
+ saved?: {
1095
+ manifest: {
1096
+ schema: "xpert.live-dashboard";
1097
+ id: string;
1098
+ title: string;
1099
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1100
+ controls: {
1101
+ type: "string" | "number" | "boolean" | "date";
1102
+ controlId: string;
1103
+ label: string;
1104
+ defaultValue?: string | number | boolean | null | undefined;
1105
+ allowedValues?: (string | number | boolean | null)[] | undefined;
1106
+ }[];
1107
+ charts: {
1108
+ type: "bar" | "line" | "area" | "pie" | "scatter";
1109
+ id: string;
1110
+ title: string;
1111
+ datasetId: string;
1112
+ x: string;
1113
+ y: string;
1114
+ color?: string | undefined;
1115
+ }[];
1116
+ tables: {
1117
+ id: string;
1118
+ title: string;
1119
+ datasetId: string;
1120
+ fields: string[];
1121
+ }[];
1122
+ presentation?: {
1123
+ type: "html";
1124
+ html: string;
1125
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyLock[] | undefined;
1126
+ } | undefined;
1127
+ };
1128
+ artifactId: string;
1129
+ title?: string | null | undefined;
1130
+ dependencies?: import("@xpert-ai/plugin-sdk/artifact-document").ArtifactDocumentDependencyAsset[] | undefined;
1131
+ versionId?: string | null | undefined;
1132
+ draftRevision?: number | undefined;
1133
+ versionNumber?: number | undefined;
1134
+ baseVersionId?: string | null | undefined;
1135
+ isDraft?: boolean | undefined;
1136
+ updatedAt?: string | undefined;
1137
+ } | undefined;
1138
+ navigationTarget?: {
1139
+ target: "workbench.view";
1140
+ viewKey: "live-dashboard__live-dashboard";
1141
+ } | {
1142
+ projectId: string;
1143
+ target: "assistant.project";
1144
+ viewKey: "live-dashboard__live-dashboard";
1145
+ } | undefined;
1146
+ versions?: {
1147
+ artifactId: string;
1148
+ title?: string | null | undefined;
1149
+ versionId?: string | null | undefined;
1150
+ draftRevision?: number | undefined;
1151
+ versionNumber?: number | undefined;
1152
+ baseVersionId?: string | null | undefined;
1153
+ isDraft?: boolean | undefined;
1154
+ updatedAt?: string | undefined;
1155
+ }[] | undefined;
1156
+ };
1157
+ }, {
1158
+ meta: {
1159
+ sources: {
1160
+ name: string;
1161
+ source: import("@xpert-ai/contracts").AnalyticsSourceRef;
1162
+ }[];
1163
+ dashboards: {
1164
+ artifactId: string;
1165
+ title?: string | null | undefined;
1166
+ versionId?: string | null | undefined;
1167
+ draftRevision?: number | undefined;
1168
+ versionNumber?: number | undefined;
1169
+ baseVersionId?: string | null | undefined;
1170
+ isDraft?: boolean | undefined;
1171
+ updatedAt?: string | undefined;
1172
+ }[];
1173
+ saved?: {
1174
+ manifest: {
1175
+ schema: "xpert.live-dashboard";
1176
+ id: string;
1177
+ title: string;
1178
+ bindings: import("@xpert-ai/contracts").AnalyticsBinding[];
1179
+ controls: {
1180
+ type: "string" | "number" | "boolean" | "date";
1181
+ controlId: string;
1182
+ label: string;
1183
+ defaultValue?: string | number | boolean | null | undefined;
1184
+ allowedValues?: (string | number | boolean | null)[] | undefined;
1185
+ }[];
1186
+ charts: {
1187
+ type: "bar" | "line" | "area" | "pie" | "scatter";
1188
+ id: string;
1189
+ title: string;
1190
+ datasetId: string;
1191
+ x: string;
1192
+ y: string;
1193
+ color?: string | undefined;
1194
+ }[];
1195
+ tables: {
1196
+ id: string;
1197
+ title: string;
1198
+ datasetId: string;
1199
+ fields: string[];
1200
+ }[];
1201
+ presentation?: {
1202
+ type: "html";
1203
+ html: string;
1204
+ dependencies?: {
1205
+ id?: string;
1206
+ version?: string;
1207
+ format?: "classic-script";
1208
+ global?: string;
1209
+ sha256?: string;
1210
+ }[] | undefined;
1211
+ } | undefined;
1212
+ };
1213
+ artifactId: string;
1214
+ title?: string | null | undefined;
1215
+ dependencies?: {
1216
+ id?: string;
1217
+ version?: string;
1218
+ source?: string;
1219
+ format?: "classic-script";
1220
+ global?: string;
1221
+ sha256?: string;
1222
+ }[] | undefined;
1223
+ versionId?: string | null | undefined;
1224
+ draftRevision?: number | undefined;
1225
+ versionNumber?: number | undefined;
1226
+ baseVersionId?: string | null | undefined;
1227
+ isDraft?: boolean | undefined;
1228
+ updatedAt?: string | undefined;
1229
+ } | undefined;
1230
+ navigationTarget?: {
1231
+ target: "workbench.view";
1232
+ viewKey: "live-dashboard__live-dashboard";
1233
+ } | {
1234
+ projectId: string;
1235
+ target: "assistant.project";
1236
+ viewKey: "live-dashboard__live-dashboard";
1237
+ } | undefined;
1238
+ versions?: {
1239
+ artifactId: string;
1240
+ title?: string | null | undefined;
1241
+ versionId?: string | null | undefined;
1242
+ draftRevision?: number | undefined;
1243
+ versionNumber?: number | undefined;
1244
+ baseVersionId?: string | null | undefined;
1245
+ isDraft?: boolean | undefined;
1246
+ updatedAt?: string | undefined;
1247
+ }[] | undefined;
1248
+ };
1249
+ }>;