@xpert-ai/plugin-live-dashboard 0.6.2 → 0.7.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 (283) hide show
  1. package/.xpertai-plugin/plugin.json +1 -1
  2. package/README.md +14 -2
  3. package/assets/explore/PROVENANCE.md +9 -0
  4. package/assets/explore/category-contribution.webp +0 -0
  5. package/assets/explore/ecommerce-operations.webp +0 -0
  6. package/assets/explore/extensions.svg +1 -0
  7. package/assets/explore/generation-prompts.json +107 -0
  8. package/assets/explore/global-assets.webp +0 -0
  9. package/assets/explore/hotel-cancellation.webp +0 -0
  10. package/assets/explore/hotel-operations.webp +0 -0
  11. package/assets/explore/insights.svg +1 -0
  12. package/assets/explore/knowledge.svg +1 -0
  13. package/assets/explore/legal-defense.webp +0 -0
  14. package/assets/explore/order-promotion.webp +0 -0
  15. package/assets/explore/outbound-travel.webp +0 -0
  16. package/assets/explore/schedule.svg +1 -0
  17. package/assets/explore/steam-market.webp +0 -0
  18. package/assets/explore/weather-alerts.webp +0 -0
  19. package/assets/library/catalog/README.md +11 -0
  20. package/assets/library/catalog/analysis-template-conversion-diagnosis.svg +1 -0
  21. package/assets/library/catalog/analysis-template-customer-lifecycle.svg +1 -0
  22. package/assets/library/catalog/analysis-template-growth-attribution.svg +1 -0
  23. package/assets/library/catalog/analysis-template-multi-criteria.svg +1 -0
  24. package/assets/library/catalog/analysis-template-regional-flow.svg +1 -0
  25. package/assets/library/catalog/analysis-template-risk-monitoring.svg +1 -0
  26. package/assets/library/catalog/component-analysis-note.svg +1 -0
  27. package/assets/library/catalog/component-box-plot.svg +1 -0
  28. package/assets/library/catalog/component-bullet.svg +1 -0
  29. package/assets/library/catalog/component-calendar-heatmap.svg +1 -0
  30. package/assets/library/catalog/component-collapsible-panel.svg +1 -0
  31. package/assets/library/catalog/component-combo-chart.svg +1 -0
  32. package/assets/library/catalog/component-content-panel.svg +1 -0
  33. package/assets/library/catalog/component-date-range.svg +1 -0
  34. package/assets/library/catalog/component-detail-table.svg +1 -0
  35. package/assets/library/catalog/component-donut.svg +1 -0
  36. package/assets/library/catalog/component-dumbbell.svg +1 -0
  37. package/assets/library/catalog/component-event-timeline.svg +1 -0
  38. package/assets/library/catalog/component-funnel.svg +1 -0
  39. package/assets/library/catalog/component-histogram.svg +1 -0
  40. package/assets/library/catalog/component-keyword-filter.svg +1 -0
  41. package/assets/library/catalog/component-matrix-heatmap.svg +1 -0
  42. package/assets/library/catalog/component-metric-card.svg +1 -0
  43. package/assets/library/catalog/component-metric-group.svg +1 -0
  44. package/assets/library/catalog/component-multi-series.svg +1 -0
  45. package/assets/library/catalog/component-number-range.svg +1 -0
  46. package/assets/library/catalog/component-option-filter.svg +1 -0
  47. package/assets/library/catalog/component-pareto.svg +1 -0
  48. package/assets/library/catalog/component-percent-stacked.svg +1 -0
  49. package/assets/library/catalog/component-pivot-table.svg +1 -0
  50. package/assets/library/catalog/component-radar.svg +1 -0
  51. package/assets/library/catalog/component-ranking.svg +1 -0
  52. package/assets/library/catalog/component-sankey.svg +1 -0
  53. package/assets/library/catalog/component-scatter-bubble.svg +1 -0
  54. package/assets/library/catalog/component-segmented-filter.svg +1 -0
  55. package/assets/library/catalog/component-small-multiples.svg +1 -0
  56. package/assets/library/catalog/component-sunburst.svg +1 -0
  57. package/assets/library/catalog/component-tabbed-panel.svg +1 -0
  58. package/assets/library/catalog/component-target-progress.svg +1 -0
  59. package/assets/library/catalog/component-toggle-filter.svg +1 -0
  60. package/assets/library/catalog/component-treemap.svg +1 -0
  61. package/assets/library/catalog/component-trend-comparison.svg +1 -0
  62. package/assets/library/catalog/component-waterfall.svg +1 -0
  63. package/assets/library/catalog/provenance.json +524 -0
  64. package/assets/library/catalog/visual-theme-amber-sunset.svg +1 -0
  65. package/assets/library/catalog/visual-theme-art-deco.svg +1 -0
  66. package/assets/library/catalog/visual-theme-bauhaus.svg +1 -0
  67. package/assets/library/catalog/visual-theme-burgundy-night.svg +1 -0
  68. package/assets/library/catalog/visual-theme-cinematic.svg +1 -0
  69. package/assets/library/catalog/visual-theme-clarity-blue.svg +1 -0
  70. package/assets/library/catalog/visual-theme-clay.svg +1 -0
  71. package/assets/library/catalog/visual-theme-cobalt-diagonal.svg +1 -0
  72. package/assets/library/catalog/visual-theme-coral-cream.svg +1 -0
  73. package/assets/library/catalog/visual-theme-crimson-black.svg +1 -0
  74. package/assets/library/catalog/visual-theme-cyberpunk.svg +1 -0
  75. package/assets/library/catalog/visual-theme-dark-olive.svg +1 -0
  76. package/assets/library/catalog/visual-theme-dark-tech.svg +1 -0
  77. package/assets/library/catalog/visual-theme-deep-sea-blue.svg +1 -0
  78. package/assets/library/catalog/visual-theme-deep-sea-mist.svg +1 -0
  79. package/assets/library/catalog/visual-theme-financial-trading.svg +1 -0
  80. package/assets/library/catalog/visual-theme-flat.svg +1 -0
  81. package/assets/library/catalog/visual-theme-frosted-tech.svg +1 -0
  82. package/assets/library/catalog/visual-theme-golden-eye.svg +1 -0
  83. package/assets/library/catalog/visual-theme-hand-drawn.svg +1 -0
  84. package/assets/library/catalog/visual-theme-industrial.svg +1 -0
  85. package/assets/library/catalog/visual-theme-layered-paper.svg +1 -0
  86. package/assets/library/catalog/visual-theme-material.svg +1 -0
  87. package/assets/library/catalog/visual-theme-maximalism.svg +1 -0
  88. package/assets/library/catalog/visual-theme-midnight-emerald.svg +1 -0
  89. package/assets/library/catalog/visual-theme-minimal-modern.svg +1 -0
  90. package/assets/library/catalog/visual-theme-misty-green.svg +1 -0
  91. package/assets/library/catalog/visual-theme-misty-rose.svg +1 -0
  92. package/assets/library/catalog/visual-theme-natural-terrain.svg +1 -0
  93. package/assets/library/catalog/visual-theme-neo-brutalism.svg +1 -0
  94. package/assets/library/catalog/visual-theme-newsprint.svg +1 -0
  95. package/assets/library/catalog/visual-theme-olive-terracotta.svg +1 -0
  96. package/assets/library/catalog/visual-theme-paper-journal.svg +1 -0
  97. package/assets/library/catalog/visual-theme-pastel-matrix.svg +1 -0
  98. package/assets/library/catalog/visual-theme-pixel-dashboard.svg +1 -0
  99. package/assets/library/catalog/visual-theme-premium-business.svg +1 -0
  100. package/assets/library/catalog/visual-theme-redline-brief.svg +1 -0
  101. package/assets/library/catalog/visual-theme-sage.svg +1 -0
  102. package/assets/library/catalog/visual-theme-soft-porcelain.svg +1 -0
  103. package/assets/library/catalog/visual-theme-swiss-grid.svg +1 -0
  104. package/assets/library/catalog/visual-theme-tdesign-enterprise.svg +1 -0
  105. package/assets/library/catalog/visual-theme-terminal-green.svg +1 -0
  106. package/assets/library/catalog/visual-theme-warm-sand.svg +1 -0
  107. package/dist/lib/agent.schema.d.ts +514 -32
  108. package/dist/lib/analysis-scene-chart.d.ts +8 -0
  109. package/dist/lib/analysis-scene-chart.js +61 -0
  110. package/dist/lib/analysis-scene-tool.d.ts +87 -0
  111. package/dist/lib/analysis-scene-tool.js +33 -0
  112. package/dist/lib/analysis-scene-widget.d.ts +6 -0
  113. package/dist/lib/analysis-scene-widget.js +107 -0
  114. package/dist/lib/analysis-scene.schema.d.ts +66 -0
  115. package/dist/lib/analysis-scene.schema.js +20 -0
  116. package/dist/lib/archive.service.d.ts +35 -0
  117. package/dist/lib/artifact-type.provider.d.ts +1 -0
  118. package/dist/lib/artifact-type.provider.js +18 -0
  119. package/dist/lib/bundled-example-source.d.ts +11 -0
  120. package/dist/lib/bundled-example-source.js +60 -0
  121. package/dist/lib/certification.schema.d.ts +4 -0
  122. package/dist/lib/certification.schema.js +14 -0
  123. package/dist/lib/content-capability.js +1 -0
  124. package/dist/lib/content-type.d.ts +2 -0
  125. package/dist/lib/content-type.js +5 -0
  126. package/dist/lib/content.provider.js +5 -3
  127. package/dist/lib/dashboard-archive.d.ts +35 -0
  128. package/dist/lib/dashboard-artifact.d.ts +93 -0
  129. package/dist/lib/dashboard-artifact.js +24 -0
  130. package/dist/lib/dashboard-delivery.d.ts +11 -0
  131. package/dist/lib/dashboard-delivery.js +55 -0
  132. package/dist/lib/dashboard-discovery.schema.d.ts +446 -0
  133. package/dist/lib/dashboard-discovery.schema.js +35 -0
  134. package/dist/lib/dashboard-navigation.d.ts +22 -21
  135. package/dist/lib/dashboard-navigation.js +5 -4
  136. package/dist/lib/dashboard-queries.d.ts +2 -2
  137. package/dist/lib/dashboard-queries.js +2 -2
  138. package/dist/lib/dashboard-receipt.js +1 -1
  139. package/dist/lib/dashboard-view.schema.d.ts +964 -64
  140. package/dist/lib/dashboard.schema.d.ts +738 -23
  141. package/dist/lib/dashboard.schema.js +8 -2
  142. package/dist/lib/dashboard.service.d.ts +155 -2
  143. package/dist/lib/dashboard.service.js +38 -4
  144. package/dist/lib/dataset-artifact.provider.d.ts +13 -0
  145. package/dist/lib/dataset-artifact.provider.js +57 -0
  146. package/dist/lib/dataset.schema.d.ts +195 -0
  147. package/dist/lib/dataset.schema.js +23 -0
  148. package/dist/lib/dataset.service.d.ts +54 -0
  149. package/dist/lib/dataset.service.js +119 -0
  150. package/dist/lib/definition-tools.d.ts +14 -54
  151. package/dist/lib/definition-tools.js +29 -9
  152. package/dist/lib/document-package.d.ts +35 -0
  153. package/dist/lib/editing.d.ts +552 -2
  154. package/dist/lib/evidence/evidence-diff.d.ts +17 -0
  155. package/dist/lib/evidence/evidence-diff.js +30 -0
  156. package/dist/lib/evidence/evidence-transfers.d.ts +14 -0
  157. package/dist/lib/evidence/evidence-transfers.js +41 -0
  158. package/dist/lib/evidence/evidence-view.provider.d.ts +91 -0
  159. package/dist/lib/evidence/evidence-view.provider.js +92 -0
  160. package/dist/lib/evidence/evidence.entity.d.ts +14 -0
  161. package/dist/lib/evidence/evidence.entity.js +62 -0
  162. package/dist/lib/evidence/evidence.provider.d.ts +43 -0
  163. package/dist/lib/evidence/evidence.provider.js +91 -0
  164. package/dist/lib/evidence/evidence.service.d.ts +67 -0
  165. package/dist/lib/evidence/evidence.service.js +218 -0
  166. package/dist/lib/explore-catalog.d.ts +15 -0
  167. package/dist/lib/explore-catalog.js +51 -0
  168. package/dist/lib/explore-catalog.json +131 -0
  169. package/dist/lib/explore.schema.d.ts +69 -0
  170. package/dist/lib/explore.schema.js +9 -0
  171. package/dist/lib/group-sharing.d.ts +17 -0
  172. package/dist/lib/group-sharing.js +39 -0
  173. package/dist/lib/hotel-document.d.ts +3 -0
  174. package/dist/lib/hotel-document.js +26 -0
  175. package/dist/lib/hotel-template.d.ts +246 -0
  176. package/dist/lib/hotel-template.js +77 -0
  177. package/dist/lib/library/access.d.ts +9 -0
  178. package/dist/lib/library/access.js +14 -0
  179. package/dist/lib/library/actions.d.ts +7 -0
  180. package/dist/lib/library/actions.js +55 -0
  181. package/dist/lib/library/archive.d.ts +13 -0
  182. package/dist/lib/library/archive.js +123 -0
  183. package/dist/lib/library/asset-validation.d.ts +4 -0
  184. package/dist/lib/library/asset-validation.js +77 -0
  185. package/dist/lib/library/catalog-blueprints.json +3225 -0
  186. package/dist/lib/library/catalog.service.d.ts +2427 -0
  187. package/dist/lib/library/catalog.service.js +270 -0
  188. package/dist/lib/library/dataset-binding.service.d.ts +65 -0
  189. package/dist/lib/library/dataset-binding.service.js +152 -0
  190. package/dist/lib/library/directory-contract.d.ts +161 -0
  191. package/dist/lib/library/directory-contract.js +19 -0
  192. package/dist/lib/library/directory.service.d.ts +33 -0
  193. package/dist/lib/library/directory.service.js +69 -0
  194. package/dist/lib/library/entities.d.ts +80 -0
  195. package/dist/lib/library/entities.js +280 -0
  196. package/dist/lib/library/execution-contract.d.ts +200 -0
  197. package/dist/lib/library/execution-contract.js +19 -0
  198. package/dist/lib/library/execution-resolution.d.ts +2490 -0
  199. package/dist/lib/library/execution-resolution.js +101 -0
  200. package/dist/lib/library/file-artifact.provider.d.ts +7 -0
  201. package/dist/lib/library/file-artifact.provider.js +35 -0
  202. package/dist/lib/library/files.service.d.ts +20 -0
  203. package/dist/lib/library/files.service.js +112 -0
  204. package/dist/lib/library/origin.schema.d.ts +171 -0
  205. package/dist/lib/library/origin.schema.js +14 -0
  206. package/dist/lib/library/resource-contract.d.ts +2779 -0
  207. package/dist/lib/library/resource-contract.js +167 -0
  208. package/dist/lib/library/resource-json.d.ts +11 -0
  209. package/dist/lib/library/resource-json.js +53 -0
  210. package/dist/lib/library/task-preparation.service.d.ts +14 -0
  211. package/dist/lib/library/task-preparation.service.js +85 -0
  212. package/dist/lib/library/template-compiler.d.ts +19 -0
  213. package/dist/lib/library/template-compiler.js +73 -0
  214. package/dist/lib/library/template-execution.service.d.ts +79 -0
  215. package/dist/lib/library/template-execution.service.js +135 -0
  216. package/dist/lib/library/transfers.service.d.ts +94 -0
  217. package/dist/lib/library/transfers.service.js +193 -0
  218. package/dist/lib/library/zip-container.d.ts +10 -0
  219. package/dist/lib/library/zip-container.js +79 -0
  220. package/dist/lib/library-view.provider.d.ts +88 -0
  221. package/dist/lib/library-view.provider.js +164 -0
  222. package/dist/lib/library.schema.d.ts +347 -0
  223. package/dist/lib/library.schema.js +41 -0
  224. package/dist/lib/middleware.d.ts +8 -2
  225. package/dist/lib/middleware.js +119 -11
  226. package/dist/lib/monitor.js +2 -2
  227. package/dist/lib/plugin.js +21 -1
  228. package/dist/lib/presentation.provider.d.ts +35 -0
  229. package/dist/lib/presentation.provider.js +4 -15
  230. package/dist/lib/projects.schema.d.ts +4 -4
  231. package/dist/lib/query-session.d.ts +1 -1
  232. package/dist/lib/query-session.js +13 -8
  233. package/dist/lib/remote-entry.d.ts +1 -1
  234. package/dist/lib/remote-entry.js +2 -2
  235. package/dist/lib/resource.schema.d.ts +1067 -0
  236. package/dist/lib/resource.schema.js +76 -0
  237. package/dist/lib/runtime-context.d.ts +2 -0
  238. package/dist/lib/runtime-context.js +22 -0
  239. package/dist/lib/sharing.service.d.ts +12 -0
  240. package/dist/lib/sharing.service.js +4 -0
  241. package/dist/lib/source-executions.d.ts +69 -51
  242. package/dist/lib/source-executions.js +2 -1
  243. package/dist/lib/template.schema.d.ts +36 -0
  244. package/dist/lib/template.schema.js +17 -0
  245. package/dist/lib/template.service.d.ts +21 -0
  246. package/dist/lib/template.service.js +56 -0
  247. package/dist/lib/templates.js +5 -5
  248. package/dist/lib/view.provider.d.ts +129 -4
  249. package/dist/lib/view.provider.js +61 -35
  250. package/dist/remote/app.css +1 -1
  251. package/dist/remote/app.js +54 -53
  252. package/dist/remote/build-manifest.json +238 -46
  253. package/dist/sandbox-actions/action.json +1 -1
  254. package/dist/sandbox-actions/bundle/host.js +2 -2
  255. package/docs/content-packages.mdx +43 -0
  256. package/docs/dashboard-starter.mdx +22 -0
  257. package/docs/data-view.mdx +30 -0
  258. package/docs/dataset-generation.mdx +32 -0
  259. package/docs/dataset-storage.mdx +29 -0
  260. package/docs/docs.json +15 -0
  261. package/docs/editing.mdx +6 -0
  262. package/docs/html-mode.md +1 -1
  263. package/docs/index.mdx +8 -0
  264. package/docs/inline-analysis.mdx +62 -0
  265. package/docs/library-browser-verification.mdx +46 -0
  266. package/docs/library-detail-ui.mdx +21 -0
  267. package/docs/library-directory-ui.mdx +24 -0
  268. package/docs/library-execution.mdx +49 -0
  269. package/docs/library-import-ui.mdx +20 -0
  270. package/docs/library-storage.mdx +63 -0
  271. package/docs/proposals/resource-sharing-decoupling.mdx +83 -0
  272. package/docs/standard-theme.mdx +28 -0
  273. package/docs/template-agent-handoff.mdx +37 -0
  274. package/docs/verification.mdx +4 -0
  275. package/package.json +9 -5
  276. package/skills/live-dashboard/SKILL.md +41 -1
  277. package/skills/live-dashboard/examples/README.md +2 -2
  278. package/skills/live-dashboard/examples/production-quality/README.md +2 -2
  279. package/skills/live-dashboard/examples/regional-sales/README.md +3 -3
  280. package/skills/live-dashboard/examples/regional-sales/query.json +49 -1
  281. package/skills/live-dashboard/examples/sales-overview/README.md +2 -2
  282. package/skills/live-dashboard/references/attribution-analysis.md +8 -0
  283. package/skills/live-dashboard/references/pareto-analysis.md +8 -0
@@ -0,0 +1,2427 @@
1
+ import { Repository, type EntityManager } from 'typeorm';
2
+ import type { XpertResolvedViewHostContext } from '@xpert-ai/contracts';
3
+ import { z } from 'zod/v3';
4
+ import { DashboardService } from '../dashboard.service';
5
+ import { type LibraryActor } from './access';
6
+ import { LibraryVersionRecord } from './entities';
7
+ import { catalogV2Query, type ResourceDocumentV2, type AssetDescriptor } from './resource-contract';
8
+ import { type ResourcePackage } from './archive';
9
+ import { LibraryFilesService } from './files.service';
10
+ export declare const versionItem: (row: LibraryVersionRecord) => {
11
+ createdAt: string;
12
+ presentation?: {
13
+ coverAssetId?: string | undefined;
14
+ previewAssetIds?: string[] | undefined;
15
+ appearance?: "light" | "dark" | undefined;
16
+ } | undefined;
17
+ license: {
18
+ identifier: string;
19
+ attribution: string;
20
+ };
21
+ locale: string;
22
+ translations?: Record<string, {
23
+ title: string;
24
+ description: string;
25
+ }> | undefined;
26
+ tags: string[];
27
+ taskData?: {
28
+ mode: "demo" | "web" | "external";
29
+ tools: string[];
30
+ };
31
+ releaseId: string;
32
+ logicalId: string;
33
+ version: string;
34
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
35
+ title: string;
36
+ description: string;
37
+ categories: string[];
38
+ sha256: string;
39
+ formatVersion: number;
40
+ };
41
+ /** @beta Canonical V2 catalog. Legacy V1 entries remain read-only migration inputs, not silently reinterpreted. */
42
+ export declare class LibraryCatalogService {
43
+ readonly versions: Repository<LibraryVersionRecord>;
44
+ private readonly dashboards;
45
+ readonly files: LibraryFilesService;
46
+ constructor(versions: Repository<LibraryVersionRecord>, dashboards: DashboardService, files: LibraryFilesService);
47
+ actor(context: XpertResolvedViewHostContext, write?: boolean): Promise<LibraryActor>;
48
+ list(context: XpertResolvedViewHostContext, input: z.input<typeof catalogV2Query>): Promise<{
49
+ items: {
50
+ createdAt: string;
51
+ presentation?: {
52
+ coverAssetId?: string | undefined;
53
+ previewAssetIds?: string[] | undefined;
54
+ appearance?: "light" | "dark" | undefined;
55
+ } | undefined;
56
+ license: {
57
+ identifier: string;
58
+ attribution: string;
59
+ };
60
+ locale: string;
61
+ translations?: Record<string, {
62
+ title: string;
63
+ description: string;
64
+ }> | undefined;
65
+ tags: string[];
66
+ taskData?: {
67
+ mode: "demo" | "web" | "external";
68
+ tools: string[];
69
+ };
70
+ releaseId: string;
71
+ logicalId: string;
72
+ version: string;
73
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
74
+ title: string;
75
+ description: string;
76
+ categories: string[];
77
+ sha256: string;
78
+ formatVersion: number;
79
+ }[];
80
+ total: number;
81
+ page: number;
82
+ pageSize: number;
83
+ }>;
84
+ matchOwned(context: XpertResolvedViewHostContext, entries: {
85
+ logicalId: string;
86
+ kind: string;
87
+ }[]): Promise<LibraryVersionRecord[]>;
88
+ resolve(context: XpertResolvedViewHostContext, id: string, write?: boolean): Promise<{
89
+ row: LibraryVersionRecord;
90
+ own: boolean;
91
+ actor: LibraryActor;
92
+ document: {
93
+ title: string;
94
+ description: string;
95
+ kind: "example-task";
96
+ schema: "xpert.library.resource";
97
+ version: string;
98
+ logicalId: string;
99
+ dependencies: {
100
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
101
+ version: string;
102
+ logicalId: string;
103
+ sha256: string;
104
+ alias: string;
105
+ }[];
106
+ license: {
107
+ identifier: string;
108
+ attribution: string;
109
+ };
110
+ formatVersion: 2;
111
+ locale: string;
112
+ categories: string[];
113
+ tags: string[];
114
+ provenance: {
115
+ description: string;
116
+ kind: "synthetic" | "user-provided" | "open-data";
117
+ };
118
+ assets: {
119
+ id: string;
120
+ sha256: string;
121
+ size: number;
122
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
123
+ fileName: string;
124
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
125
+ license: {
126
+ identifier: string;
127
+ attribution: string;
128
+ };
129
+ }[];
130
+ content: {
131
+ prompt: string;
132
+ execution: {
133
+ mode: "template";
134
+ templateAlias: string;
135
+ } | {
136
+ mode: "agent";
137
+ };
138
+ dataAliases: string[];
139
+ requirements: {
140
+ skills: {
141
+ name: string;
142
+ required: boolean;
143
+ }[];
144
+ plugins: {
145
+ name: string;
146
+ versionRange: string;
147
+ }[];
148
+ capabilities: string[];
149
+ };
150
+ dataRequirement?: {
151
+ mode: "demo" | "web" | "external";
152
+ tools: string[];
153
+ } | undefined;
154
+ themeAlias?: string | undefined;
155
+ inputBindings?: {
156
+ slot: string;
157
+ mapping: Record<string, string>;
158
+ dataAlias: string;
159
+ }[] | undefined;
160
+ };
161
+ presentation?: {
162
+ coverAssetId?: string | undefined;
163
+ previewAssetIds?: string[] | undefined;
164
+ appearance?: "light" | "dark" | undefined;
165
+ } | undefined;
166
+ catalogKey?: string | undefined;
167
+ translations?: Record<string, {
168
+ title: string;
169
+ description: string;
170
+ }> | undefined;
171
+ } | {
172
+ title: string;
173
+ description: string;
174
+ kind: "analysis-template";
175
+ schema: "xpert.library.resource";
176
+ version: string;
177
+ logicalId: string;
178
+ dependencies: {
179
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
180
+ version: string;
181
+ logicalId: string;
182
+ sha256: string;
183
+ alias: string;
184
+ }[];
185
+ license: {
186
+ identifier: string;
187
+ attribution: string;
188
+ };
189
+ formatVersion: 2;
190
+ locale: string;
191
+ categories: string[];
192
+ tags: string[];
193
+ provenance: {
194
+ description: string;
195
+ kind: "synthetic" | "user-provided" | "open-data";
196
+ };
197
+ assets: {
198
+ id: string;
199
+ sha256: string;
200
+ size: number;
201
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
202
+ fileName: string;
203
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
204
+ license: {
205
+ identifier: string;
206
+ attribution: string;
207
+ };
208
+ }[];
209
+ content: {
210
+ parameters: {
211
+ type: "string" | "number" | "boolean" | "date";
212
+ defaultValue: string | number | boolean | null;
213
+ label: string;
214
+ key: string;
215
+ allowedValues?: (string | number | boolean | null)[] | undefined;
216
+ }[];
217
+ presentation: {
218
+ type: "standard";
219
+ charts: {
220
+ type: "bar" | "line" | "area" | "pie" | "scatter";
221
+ title: string;
222
+ id: string;
223
+ slot: string;
224
+ x: string;
225
+ y: string;
226
+ color?: string | undefined;
227
+ }[];
228
+ tables: {
229
+ title: string;
230
+ id: string;
231
+ slot: string;
232
+ fields: string[];
233
+ }[];
234
+ } | {
235
+ type: "html";
236
+ documentAssetId: string;
237
+ };
238
+ requirements: {
239
+ skills: {
240
+ name: string;
241
+ required: boolean;
242
+ }[];
243
+ plugins: {
244
+ name: string;
245
+ versionRange: string;
246
+ }[];
247
+ capabilities: string[];
248
+ };
249
+ inputSlots: {
250
+ fields: {
251
+ label: string;
252
+ required: boolean;
253
+ role: string;
254
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
255
+ nullable: boolean;
256
+ }[];
257
+ key: string;
258
+ grain: string[];
259
+ }[];
260
+ metrics: {
261
+ label: string;
262
+ key: string;
263
+ unit: string;
264
+ definition: string;
265
+ }[];
266
+ };
267
+ presentation?: {
268
+ coverAssetId?: string | undefined;
269
+ previewAssetIds?: string[] | undefined;
270
+ appearance?: "light" | "dark" | undefined;
271
+ } | undefined;
272
+ catalogKey?: string | undefined;
273
+ translations?: Record<string, {
274
+ title: string;
275
+ description: string;
276
+ }> | undefined;
277
+ } | {
278
+ title: string;
279
+ description: string;
280
+ kind: "visual-theme";
281
+ schema: "xpert.library.resource";
282
+ version: string;
283
+ logicalId: string;
284
+ dependencies: {
285
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
286
+ version: string;
287
+ logicalId: string;
288
+ sha256: string;
289
+ alias: string;
290
+ }[];
291
+ license: {
292
+ identifier: string;
293
+ attribution: string;
294
+ };
295
+ formatVersion: 2;
296
+ locale: string;
297
+ categories: string[];
298
+ tags: string[];
299
+ provenance: {
300
+ description: string;
301
+ kind: "synthetic" | "user-provided" | "open-data";
302
+ };
303
+ assets: {
304
+ id: string;
305
+ sha256: string;
306
+ size: number;
307
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
308
+ fileName: string;
309
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
310
+ license: {
311
+ identifier: string;
312
+ attribution: string;
313
+ };
314
+ }[];
315
+ content: {
316
+ theme: "system" | "slate" | "contrast";
317
+ renderer: "live-dashboard.standard";
318
+ };
319
+ presentation?: {
320
+ coverAssetId?: string | undefined;
321
+ previewAssetIds?: string[] | undefined;
322
+ appearance?: "light" | "dark" | undefined;
323
+ } | undefined;
324
+ catalogKey?: string | undefined;
325
+ translations?: Record<string, {
326
+ title: string;
327
+ description: string;
328
+ }> | undefined;
329
+ } | {
330
+ title: string;
331
+ description: string;
332
+ kind: "component";
333
+ schema: "xpert.library.resource";
334
+ version: string;
335
+ logicalId: string;
336
+ dependencies: {
337
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
338
+ version: string;
339
+ logicalId: string;
340
+ sha256: string;
341
+ alias: string;
342
+ }[];
343
+ license: {
344
+ identifier: string;
345
+ attribution: string;
346
+ };
347
+ formatVersion: 2;
348
+ locale: string;
349
+ categories: string[];
350
+ tags: string[];
351
+ provenance: {
352
+ description: string;
353
+ kind: "synthetic" | "user-provided" | "open-data";
354
+ };
355
+ assets: {
356
+ id: string;
357
+ sha256: string;
358
+ size: number;
359
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
360
+ fileName: string;
361
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
362
+ license: {
363
+ identifier: string;
364
+ attribution: string;
365
+ };
366
+ }[];
367
+ content: {
368
+ title: string;
369
+ fields: {
370
+ label: string;
371
+ required: boolean;
372
+ role: string;
373
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
374
+ nullable: boolean;
375
+ }[];
376
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
377
+ rendererVersion: 1;
378
+ };
379
+ presentation?: {
380
+ coverAssetId?: string | undefined;
381
+ previewAssetIds?: string[] | undefined;
382
+ appearance?: "light" | "dark" | undefined;
383
+ } | undefined;
384
+ catalogKey?: string | undefined;
385
+ translations?: Record<string, {
386
+ title: string;
387
+ description: string;
388
+ }> | undefined;
389
+ } | {
390
+ title: string;
391
+ description: string;
392
+ kind: "public-dataset";
393
+ schema: "xpert.library.resource";
394
+ version: string;
395
+ logicalId: string;
396
+ dependencies: {
397
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
398
+ version: string;
399
+ logicalId: string;
400
+ sha256: string;
401
+ alias: string;
402
+ }[];
403
+ license: {
404
+ identifier: string;
405
+ attribution: string;
406
+ };
407
+ formatVersion: 2;
408
+ locale: string;
409
+ categories: string[];
410
+ tags: string[];
411
+ provenance: {
412
+ description: string;
413
+ kind: "synthetic" | "user-provided" | "open-data";
414
+ };
415
+ assets: {
416
+ id: string;
417
+ sha256: string;
418
+ size: number;
419
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
420
+ fileName: string;
421
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
422
+ license: {
423
+ identifier: string;
424
+ attribution: string;
425
+ };
426
+ }[];
427
+ content: {
428
+ dataAssetId: string;
429
+ format: "csv" | "json";
430
+ readerOptions: {
431
+ encoding: "utf-8";
432
+ delimiter?: "," | ";" | "\t" | undefined;
433
+ rowsPath?: string[] | undefined;
434
+ };
435
+ columns: {
436
+ label: string;
437
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
438
+ nullable: boolean;
439
+ key: string;
440
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
441
+ }[];
442
+ statistics: {
443
+ rowCount: number | null;
444
+ };
445
+ };
446
+ presentation?: {
447
+ coverAssetId?: string | undefined;
448
+ previewAssetIds?: string[] | undefined;
449
+ appearance?: "light" | "dark" | undefined;
450
+ } | undefined;
451
+ catalogKey?: string | undefined;
452
+ translations?: Record<string, {
453
+ title: string;
454
+ description: string;
455
+ }> | undefined;
456
+ };
457
+ }>;
458
+ read(context: XpertResolvedViewHostContext, id: string): Promise<{
459
+ item: {
460
+ createdAt: string;
461
+ presentation?: {
462
+ coverAssetId?: string | undefined;
463
+ previewAssetIds?: string[] | undefined;
464
+ appearance?: "light" | "dark" | undefined;
465
+ } | undefined;
466
+ license: {
467
+ identifier: string;
468
+ attribution: string;
469
+ };
470
+ locale: string;
471
+ translations?: Record<string, {
472
+ title: string;
473
+ description: string;
474
+ }> | undefined;
475
+ tags: string[];
476
+ taskData?: {
477
+ mode: "demo" | "web" | "external";
478
+ tools: string[];
479
+ };
480
+ releaseId: string;
481
+ logicalId: string;
482
+ version: string;
483
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
484
+ title: string;
485
+ description: string;
486
+ categories: string[];
487
+ sha256: string;
488
+ formatVersion: number;
489
+ };
490
+ document: {
491
+ title: string;
492
+ description: string;
493
+ kind: "example-task";
494
+ schema: "xpert.library.resource";
495
+ version: string;
496
+ logicalId: string;
497
+ dependencies: {
498
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
499
+ version: string;
500
+ logicalId: string;
501
+ sha256: string;
502
+ alias: string;
503
+ }[];
504
+ license: {
505
+ identifier: string;
506
+ attribution: string;
507
+ };
508
+ formatVersion: 2;
509
+ locale: string;
510
+ categories: string[];
511
+ tags: string[];
512
+ provenance: {
513
+ description: string;
514
+ kind: "synthetic" | "user-provided" | "open-data";
515
+ };
516
+ assets: {
517
+ id: string;
518
+ sha256: string;
519
+ size: number;
520
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
521
+ fileName: string;
522
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
523
+ license: {
524
+ identifier: string;
525
+ attribution: string;
526
+ };
527
+ }[];
528
+ content: {
529
+ prompt: string;
530
+ execution: {
531
+ mode: "template";
532
+ templateAlias: string;
533
+ } | {
534
+ mode: "agent";
535
+ };
536
+ dataAliases: string[];
537
+ requirements: {
538
+ skills: {
539
+ name: string;
540
+ required: boolean;
541
+ }[];
542
+ plugins: {
543
+ name: string;
544
+ versionRange: string;
545
+ }[];
546
+ capabilities: string[];
547
+ };
548
+ dataRequirement?: {
549
+ mode: "demo" | "web" | "external";
550
+ tools: string[];
551
+ } | undefined;
552
+ themeAlias?: string | undefined;
553
+ inputBindings?: {
554
+ slot: string;
555
+ mapping: Record<string, string>;
556
+ dataAlias: string;
557
+ }[] | undefined;
558
+ };
559
+ presentation?: {
560
+ coverAssetId?: string | undefined;
561
+ previewAssetIds?: string[] | undefined;
562
+ appearance?: "light" | "dark" | undefined;
563
+ } | undefined;
564
+ catalogKey?: string | undefined;
565
+ translations?: Record<string, {
566
+ title: string;
567
+ description: string;
568
+ }> | undefined;
569
+ } | {
570
+ title: string;
571
+ description: string;
572
+ kind: "analysis-template";
573
+ schema: "xpert.library.resource";
574
+ version: string;
575
+ logicalId: string;
576
+ dependencies: {
577
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
578
+ version: string;
579
+ logicalId: string;
580
+ sha256: string;
581
+ alias: string;
582
+ }[];
583
+ license: {
584
+ identifier: string;
585
+ attribution: string;
586
+ };
587
+ formatVersion: 2;
588
+ locale: string;
589
+ categories: string[];
590
+ tags: string[];
591
+ provenance: {
592
+ description: string;
593
+ kind: "synthetic" | "user-provided" | "open-data";
594
+ };
595
+ assets: {
596
+ id: string;
597
+ sha256: string;
598
+ size: number;
599
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
600
+ fileName: string;
601
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
602
+ license: {
603
+ identifier: string;
604
+ attribution: string;
605
+ };
606
+ }[];
607
+ content: {
608
+ parameters: {
609
+ type: "string" | "number" | "boolean" | "date";
610
+ defaultValue: string | number | boolean | null;
611
+ label: string;
612
+ key: string;
613
+ allowedValues?: (string | number | boolean | null)[] | undefined;
614
+ }[];
615
+ presentation: {
616
+ type: "standard";
617
+ charts: {
618
+ type: "bar" | "line" | "area" | "pie" | "scatter";
619
+ title: string;
620
+ id: string;
621
+ slot: string;
622
+ x: string;
623
+ y: string;
624
+ color?: string | undefined;
625
+ }[];
626
+ tables: {
627
+ title: string;
628
+ id: string;
629
+ slot: string;
630
+ fields: string[];
631
+ }[];
632
+ } | {
633
+ type: "html";
634
+ documentAssetId: string;
635
+ };
636
+ requirements: {
637
+ skills: {
638
+ name: string;
639
+ required: boolean;
640
+ }[];
641
+ plugins: {
642
+ name: string;
643
+ versionRange: string;
644
+ }[];
645
+ capabilities: string[];
646
+ };
647
+ inputSlots: {
648
+ fields: {
649
+ label: string;
650
+ required: boolean;
651
+ role: string;
652
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
653
+ nullable: boolean;
654
+ }[];
655
+ key: string;
656
+ grain: string[];
657
+ }[];
658
+ metrics: {
659
+ label: string;
660
+ key: string;
661
+ unit: string;
662
+ definition: string;
663
+ }[];
664
+ };
665
+ presentation?: {
666
+ coverAssetId?: string | undefined;
667
+ previewAssetIds?: string[] | undefined;
668
+ appearance?: "light" | "dark" | undefined;
669
+ } | undefined;
670
+ catalogKey?: string | undefined;
671
+ translations?: Record<string, {
672
+ title: string;
673
+ description: string;
674
+ }> | undefined;
675
+ } | {
676
+ title: string;
677
+ description: string;
678
+ kind: "visual-theme";
679
+ schema: "xpert.library.resource";
680
+ version: string;
681
+ logicalId: string;
682
+ dependencies: {
683
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
684
+ version: string;
685
+ logicalId: string;
686
+ sha256: string;
687
+ alias: string;
688
+ }[];
689
+ license: {
690
+ identifier: string;
691
+ attribution: string;
692
+ };
693
+ formatVersion: 2;
694
+ locale: string;
695
+ categories: string[];
696
+ tags: string[];
697
+ provenance: {
698
+ description: string;
699
+ kind: "synthetic" | "user-provided" | "open-data";
700
+ };
701
+ assets: {
702
+ id: string;
703
+ sha256: string;
704
+ size: number;
705
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
706
+ fileName: string;
707
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
708
+ license: {
709
+ identifier: string;
710
+ attribution: string;
711
+ };
712
+ }[];
713
+ content: {
714
+ theme: "system" | "slate" | "contrast";
715
+ renderer: "live-dashboard.standard";
716
+ };
717
+ presentation?: {
718
+ coverAssetId?: string | undefined;
719
+ previewAssetIds?: string[] | undefined;
720
+ appearance?: "light" | "dark" | undefined;
721
+ } | undefined;
722
+ catalogKey?: string | undefined;
723
+ translations?: Record<string, {
724
+ title: string;
725
+ description: string;
726
+ }> | undefined;
727
+ } | {
728
+ title: string;
729
+ description: string;
730
+ kind: "component";
731
+ schema: "xpert.library.resource";
732
+ version: string;
733
+ logicalId: string;
734
+ dependencies: {
735
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
736
+ version: string;
737
+ logicalId: string;
738
+ sha256: string;
739
+ alias: string;
740
+ }[];
741
+ license: {
742
+ identifier: string;
743
+ attribution: string;
744
+ };
745
+ formatVersion: 2;
746
+ locale: string;
747
+ categories: string[];
748
+ tags: string[];
749
+ provenance: {
750
+ description: string;
751
+ kind: "synthetic" | "user-provided" | "open-data";
752
+ };
753
+ assets: {
754
+ id: string;
755
+ sha256: string;
756
+ size: number;
757
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
758
+ fileName: string;
759
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
760
+ license: {
761
+ identifier: string;
762
+ attribution: string;
763
+ };
764
+ }[];
765
+ content: {
766
+ title: string;
767
+ fields: {
768
+ label: string;
769
+ required: boolean;
770
+ role: string;
771
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
772
+ nullable: boolean;
773
+ }[];
774
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
775
+ rendererVersion: 1;
776
+ };
777
+ presentation?: {
778
+ coverAssetId?: string | undefined;
779
+ previewAssetIds?: string[] | undefined;
780
+ appearance?: "light" | "dark" | undefined;
781
+ } | undefined;
782
+ catalogKey?: string | undefined;
783
+ translations?: Record<string, {
784
+ title: string;
785
+ description: string;
786
+ }> | undefined;
787
+ } | {
788
+ title: string;
789
+ description: string;
790
+ kind: "public-dataset";
791
+ schema: "xpert.library.resource";
792
+ version: string;
793
+ logicalId: string;
794
+ dependencies: {
795
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
796
+ version: string;
797
+ logicalId: string;
798
+ sha256: string;
799
+ alias: string;
800
+ }[];
801
+ license: {
802
+ identifier: string;
803
+ attribution: string;
804
+ };
805
+ formatVersion: 2;
806
+ locale: string;
807
+ categories: string[];
808
+ tags: string[];
809
+ provenance: {
810
+ description: string;
811
+ kind: "synthetic" | "user-provided" | "open-data";
812
+ };
813
+ assets: {
814
+ id: string;
815
+ sha256: string;
816
+ size: number;
817
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
818
+ fileName: string;
819
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
820
+ license: {
821
+ identifier: string;
822
+ attribution: string;
823
+ };
824
+ }[];
825
+ content: {
826
+ dataAssetId: string;
827
+ format: "csv" | "json";
828
+ readerOptions: {
829
+ encoding: "utf-8";
830
+ delimiter?: "," | ";" | "\t" | undefined;
831
+ rowsPath?: string[] | undefined;
832
+ };
833
+ columns: {
834
+ label: string;
835
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
836
+ nullable: boolean;
837
+ key: string;
838
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
839
+ }[];
840
+ statistics: {
841
+ rowCount: number | null;
842
+ };
843
+ };
844
+ presentation?: {
845
+ coverAssetId?: string | undefined;
846
+ previewAssetIds?: string[] | undefined;
847
+ appearance?: "light" | "dark" | undefined;
848
+ } | undefined;
849
+ catalogKey?: string | undefined;
850
+ translations?: Record<string, {
851
+ title: string;
852
+ description: string;
853
+ }> | undefined;
854
+ };
855
+ capabilities: {
856
+ canExport: boolean;
857
+ canPublish: boolean;
858
+ canWithdraw: boolean;
859
+ reasons: string[];
860
+ };
861
+ }>;
862
+ /** @beta Reads a bounded preview asset of an authorized fixed resource version. */
863
+ thumbnail(context: XpertResolvedViewHostContext, releaseId: string, assetId: string): Promise<{
864
+ src: string;
865
+ }>;
866
+ closure(context: XpertResolvedViewHostContext, ids: string[], ownOnly?: boolean): Promise<{
867
+ resources: ({
868
+ title: string;
869
+ description: string;
870
+ kind: "example-task";
871
+ schema: "xpert.library.resource";
872
+ version: string;
873
+ logicalId: string;
874
+ dependencies: {
875
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
876
+ version: string;
877
+ logicalId: string;
878
+ sha256: string;
879
+ alias: string;
880
+ }[];
881
+ license: {
882
+ identifier: string;
883
+ attribution: string;
884
+ };
885
+ formatVersion: 2;
886
+ locale: string;
887
+ categories: string[];
888
+ tags: string[];
889
+ provenance: {
890
+ description: string;
891
+ kind: "synthetic" | "user-provided" | "open-data";
892
+ };
893
+ assets: {
894
+ id: string;
895
+ sha256: string;
896
+ size: number;
897
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
898
+ fileName: string;
899
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
900
+ license: {
901
+ identifier: string;
902
+ attribution: string;
903
+ };
904
+ }[];
905
+ content: {
906
+ prompt: string;
907
+ execution: {
908
+ mode: "template";
909
+ templateAlias: string;
910
+ } | {
911
+ mode: "agent";
912
+ };
913
+ dataAliases: string[];
914
+ requirements: {
915
+ skills: {
916
+ name: string;
917
+ required: boolean;
918
+ }[];
919
+ plugins: {
920
+ name: string;
921
+ versionRange: string;
922
+ }[];
923
+ capabilities: string[];
924
+ };
925
+ dataRequirement?: {
926
+ mode: "demo" | "web" | "external";
927
+ tools: string[];
928
+ } | undefined;
929
+ themeAlias?: string | undefined;
930
+ inputBindings?: {
931
+ slot: string;
932
+ mapping: Record<string, string>;
933
+ dataAlias: string;
934
+ }[] | undefined;
935
+ };
936
+ presentation?: {
937
+ coverAssetId?: string | undefined;
938
+ previewAssetIds?: string[] | undefined;
939
+ appearance?: "light" | "dark" | undefined;
940
+ } | undefined;
941
+ catalogKey?: string | undefined;
942
+ translations?: Record<string, {
943
+ title: string;
944
+ description: string;
945
+ }> | undefined;
946
+ } | {
947
+ title: string;
948
+ description: string;
949
+ kind: "analysis-template";
950
+ schema: "xpert.library.resource";
951
+ version: string;
952
+ logicalId: string;
953
+ dependencies: {
954
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
955
+ version: string;
956
+ logicalId: string;
957
+ sha256: string;
958
+ alias: string;
959
+ }[];
960
+ license: {
961
+ identifier: string;
962
+ attribution: string;
963
+ };
964
+ formatVersion: 2;
965
+ locale: string;
966
+ categories: string[];
967
+ tags: string[];
968
+ provenance: {
969
+ description: string;
970
+ kind: "synthetic" | "user-provided" | "open-data";
971
+ };
972
+ assets: {
973
+ id: string;
974
+ sha256: string;
975
+ size: number;
976
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
977
+ fileName: string;
978
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
979
+ license: {
980
+ identifier: string;
981
+ attribution: string;
982
+ };
983
+ }[];
984
+ content: {
985
+ parameters: {
986
+ type: "string" | "number" | "boolean" | "date";
987
+ defaultValue: string | number | boolean | null;
988
+ label: string;
989
+ key: string;
990
+ allowedValues?: (string | number | boolean | null)[] | undefined;
991
+ }[];
992
+ presentation: {
993
+ type: "standard";
994
+ charts: {
995
+ type: "bar" | "line" | "area" | "pie" | "scatter";
996
+ title: string;
997
+ id: string;
998
+ slot: string;
999
+ x: string;
1000
+ y: string;
1001
+ color?: string | undefined;
1002
+ }[];
1003
+ tables: {
1004
+ title: string;
1005
+ id: string;
1006
+ slot: string;
1007
+ fields: string[];
1008
+ }[];
1009
+ } | {
1010
+ type: "html";
1011
+ documentAssetId: string;
1012
+ };
1013
+ requirements: {
1014
+ skills: {
1015
+ name: string;
1016
+ required: boolean;
1017
+ }[];
1018
+ plugins: {
1019
+ name: string;
1020
+ versionRange: string;
1021
+ }[];
1022
+ capabilities: string[];
1023
+ };
1024
+ inputSlots: {
1025
+ fields: {
1026
+ label: string;
1027
+ required: boolean;
1028
+ role: string;
1029
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1030
+ nullable: boolean;
1031
+ }[];
1032
+ key: string;
1033
+ grain: string[];
1034
+ }[];
1035
+ metrics: {
1036
+ label: string;
1037
+ key: string;
1038
+ unit: string;
1039
+ definition: string;
1040
+ }[];
1041
+ };
1042
+ presentation?: {
1043
+ coverAssetId?: string | undefined;
1044
+ previewAssetIds?: string[] | undefined;
1045
+ appearance?: "light" | "dark" | undefined;
1046
+ } | undefined;
1047
+ catalogKey?: string | undefined;
1048
+ translations?: Record<string, {
1049
+ title: string;
1050
+ description: string;
1051
+ }> | undefined;
1052
+ } | {
1053
+ title: string;
1054
+ description: string;
1055
+ kind: "visual-theme";
1056
+ schema: "xpert.library.resource";
1057
+ version: string;
1058
+ logicalId: string;
1059
+ dependencies: {
1060
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1061
+ version: string;
1062
+ logicalId: string;
1063
+ sha256: string;
1064
+ alias: string;
1065
+ }[];
1066
+ license: {
1067
+ identifier: string;
1068
+ attribution: string;
1069
+ };
1070
+ formatVersion: 2;
1071
+ locale: string;
1072
+ categories: string[];
1073
+ tags: string[];
1074
+ provenance: {
1075
+ description: string;
1076
+ kind: "synthetic" | "user-provided" | "open-data";
1077
+ };
1078
+ assets: {
1079
+ id: string;
1080
+ sha256: string;
1081
+ size: number;
1082
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1083
+ fileName: string;
1084
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1085
+ license: {
1086
+ identifier: string;
1087
+ attribution: string;
1088
+ };
1089
+ }[];
1090
+ content: {
1091
+ theme: "system" | "slate" | "contrast";
1092
+ renderer: "live-dashboard.standard";
1093
+ };
1094
+ presentation?: {
1095
+ coverAssetId?: string | undefined;
1096
+ previewAssetIds?: string[] | undefined;
1097
+ appearance?: "light" | "dark" | undefined;
1098
+ } | undefined;
1099
+ catalogKey?: string | undefined;
1100
+ translations?: Record<string, {
1101
+ title: string;
1102
+ description: string;
1103
+ }> | undefined;
1104
+ } | {
1105
+ title: string;
1106
+ description: string;
1107
+ kind: "component";
1108
+ schema: "xpert.library.resource";
1109
+ version: string;
1110
+ logicalId: string;
1111
+ dependencies: {
1112
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1113
+ version: string;
1114
+ logicalId: string;
1115
+ sha256: string;
1116
+ alias: string;
1117
+ }[];
1118
+ license: {
1119
+ identifier: string;
1120
+ attribution: string;
1121
+ };
1122
+ formatVersion: 2;
1123
+ locale: string;
1124
+ categories: string[];
1125
+ tags: string[];
1126
+ provenance: {
1127
+ description: string;
1128
+ kind: "synthetic" | "user-provided" | "open-data";
1129
+ };
1130
+ assets: {
1131
+ id: string;
1132
+ sha256: string;
1133
+ size: number;
1134
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1135
+ fileName: string;
1136
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1137
+ license: {
1138
+ identifier: string;
1139
+ attribution: string;
1140
+ };
1141
+ }[];
1142
+ content: {
1143
+ title: string;
1144
+ fields: {
1145
+ label: string;
1146
+ required: boolean;
1147
+ role: string;
1148
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1149
+ nullable: boolean;
1150
+ }[];
1151
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
1152
+ rendererVersion: 1;
1153
+ };
1154
+ presentation?: {
1155
+ coverAssetId?: string | undefined;
1156
+ previewAssetIds?: string[] | undefined;
1157
+ appearance?: "light" | "dark" | undefined;
1158
+ } | undefined;
1159
+ catalogKey?: string | undefined;
1160
+ translations?: Record<string, {
1161
+ title: string;
1162
+ description: string;
1163
+ }> | undefined;
1164
+ } | {
1165
+ title: string;
1166
+ description: string;
1167
+ kind: "public-dataset";
1168
+ schema: "xpert.library.resource";
1169
+ version: string;
1170
+ logicalId: string;
1171
+ dependencies: {
1172
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1173
+ version: string;
1174
+ logicalId: string;
1175
+ sha256: string;
1176
+ alias: string;
1177
+ }[];
1178
+ license: {
1179
+ identifier: string;
1180
+ attribution: string;
1181
+ };
1182
+ formatVersion: 2;
1183
+ locale: string;
1184
+ categories: string[];
1185
+ tags: string[];
1186
+ provenance: {
1187
+ description: string;
1188
+ kind: "synthetic" | "user-provided" | "open-data";
1189
+ };
1190
+ assets: {
1191
+ id: string;
1192
+ sha256: string;
1193
+ size: number;
1194
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1195
+ fileName: string;
1196
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1197
+ license: {
1198
+ identifier: string;
1199
+ attribution: string;
1200
+ };
1201
+ }[];
1202
+ content: {
1203
+ dataAssetId: string;
1204
+ format: "csv" | "json";
1205
+ readerOptions: {
1206
+ encoding: "utf-8";
1207
+ delimiter?: "," | ";" | "\t" | undefined;
1208
+ rowsPath?: string[] | undefined;
1209
+ };
1210
+ columns: {
1211
+ label: string;
1212
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1213
+ nullable: boolean;
1214
+ key: string;
1215
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
1216
+ }[];
1217
+ statistics: {
1218
+ rowCount: number | null;
1219
+ };
1220
+ };
1221
+ presentation?: {
1222
+ coverAssetId?: string | undefined;
1223
+ previewAssetIds?: string[] | undefined;
1224
+ appearance?: "light" | "dark" | undefined;
1225
+ } | undefined;
1226
+ catalogKey?: string | undefined;
1227
+ translations?: Record<string, {
1228
+ title: string;
1229
+ description: string;
1230
+ }> | undefined;
1231
+ })[];
1232
+ rows: LibraryVersionRecord[];
1233
+ roots: {
1234
+ version: string;
1235
+ logicalId: string;
1236
+ sha256: string;
1237
+ }[];
1238
+ }>;
1239
+ exportPackage(context: XpertResolvedViewHostContext, ids: string[]): Promise<ResourcePackage>;
1240
+ upload(context: XpertResolvedViewHostContext, asset: AssetDescriptor, bytes: Buffer): Promise<{
1241
+ sha256: string;
1242
+ size: number;
1243
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1244
+ }>;
1245
+ private resource;
1246
+ saveDraft(context: XpertResolvedViewHostContext, document: ResourceDocumentV2, expectedRevision: number): Promise<{
1247
+ draftId: string;
1248
+ resourceId: string;
1249
+ revision: number;
1250
+ document: {
1251
+ title: string;
1252
+ description: string;
1253
+ kind: "example-task";
1254
+ schema: "xpert.library.resource";
1255
+ version: string;
1256
+ logicalId: string;
1257
+ dependencies: {
1258
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1259
+ version: string;
1260
+ logicalId: string;
1261
+ sha256: string;
1262
+ alias: string;
1263
+ }[];
1264
+ license: {
1265
+ identifier: string;
1266
+ attribution: string;
1267
+ };
1268
+ formatVersion: 2;
1269
+ locale: string;
1270
+ categories: string[];
1271
+ tags: string[];
1272
+ provenance: {
1273
+ description: string;
1274
+ kind: "synthetic" | "user-provided" | "open-data";
1275
+ };
1276
+ assets: {
1277
+ id: string;
1278
+ sha256: string;
1279
+ size: number;
1280
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1281
+ fileName: string;
1282
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1283
+ license: {
1284
+ identifier: string;
1285
+ attribution: string;
1286
+ };
1287
+ }[];
1288
+ content: {
1289
+ prompt: string;
1290
+ execution: {
1291
+ mode: "template";
1292
+ templateAlias: string;
1293
+ } | {
1294
+ mode: "agent";
1295
+ };
1296
+ dataAliases: string[];
1297
+ requirements: {
1298
+ skills: {
1299
+ name: string;
1300
+ required: boolean;
1301
+ }[];
1302
+ plugins: {
1303
+ name: string;
1304
+ versionRange: string;
1305
+ }[];
1306
+ capabilities: string[];
1307
+ };
1308
+ dataRequirement?: {
1309
+ mode: "demo" | "web" | "external";
1310
+ tools: string[];
1311
+ } | undefined;
1312
+ themeAlias?: string | undefined;
1313
+ inputBindings?: {
1314
+ slot: string;
1315
+ mapping: Record<string, string>;
1316
+ dataAlias: string;
1317
+ }[] | undefined;
1318
+ };
1319
+ presentation?: {
1320
+ coverAssetId?: string | undefined;
1321
+ previewAssetIds?: string[] | undefined;
1322
+ appearance?: "light" | "dark" | undefined;
1323
+ } | undefined;
1324
+ catalogKey?: string | undefined;
1325
+ translations?: Record<string, {
1326
+ title: string;
1327
+ description: string;
1328
+ }> | undefined;
1329
+ } | {
1330
+ title: string;
1331
+ description: string;
1332
+ kind: "analysis-template";
1333
+ schema: "xpert.library.resource";
1334
+ version: string;
1335
+ logicalId: string;
1336
+ dependencies: {
1337
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1338
+ version: string;
1339
+ logicalId: string;
1340
+ sha256: string;
1341
+ alias: string;
1342
+ }[];
1343
+ license: {
1344
+ identifier: string;
1345
+ attribution: string;
1346
+ };
1347
+ formatVersion: 2;
1348
+ locale: string;
1349
+ categories: string[];
1350
+ tags: string[];
1351
+ provenance: {
1352
+ description: string;
1353
+ kind: "synthetic" | "user-provided" | "open-data";
1354
+ };
1355
+ assets: {
1356
+ id: string;
1357
+ sha256: string;
1358
+ size: number;
1359
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1360
+ fileName: string;
1361
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1362
+ license: {
1363
+ identifier: string;
1364
+ attribution: string;
1365
+ };
1366
+ }[];
1367
+ content: {
1368
+ parameters: {
1369
+ type: "string" | "number" | "boolean" | "date";
1370
+ defaultValue: string | number | boolean | null;
1371
+ label: string;
1372
+ key: string;
1373
+ allowedValues?: (string | number | boolean | null)[] | undefined;
1374
+ }[];
1375
+ presentation: {
1376
+ type: "standard";
1377
+ charts: {
1378
+ type: "bar" | "line" | "area" | "pie" | "scatter";
1379
+ title: string;
1380
+ id: string;
1381
+ slot: string;
1382
+ x: string;
1383
+ y: string;
1384
+ color?: string | undefined;
1385
+ }[];
1386
+ tables: {
1387
+ title: string;
1388
+ id: string;
1389
+ slot: string;
1390
+ fields: string[];
1391
+ }[];
1392
+ } | {
1393
+ type: "html";
1394
+ documentAssetId: string;
1395
+ };
1396
+ requirements: {
1397
+ skills: {
1398
+ name: string;
1399
+ required: boolean;
1400
+ }[];
1401
+ plugins: {
1402
+ name: string;
1403
+ versionRange: string;
1404
+ }[];
1405
+ capabilities: string[];
1406
+ };
1407
+ inputSlots: {
1408
+ fields: {
1409
+ label: string;
1410
+ required: boolean;
1411
+ role: string;
1412
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1413
+ nullable: boolean;
1414
+ }[];
1415
+ key: string;
1416
+ grain: string[];
1417
+ }[];
1418
+ metrics: {
1419
+ label: string;
1420
+ key: string;
1421
+ unit: string;
1422
+ definition: string;
1423
+ }[];
1424
+ };
1425
+ presentation?: {
1426
+ coverAssetId?: string | undefined;
1427
+ previewAssetIds?: string[] | undefined;
1428
+ appearance?: "light" | "dark" | undefined;
1429
+ } | undefined;
1430
+ catalogKey?: string | undefined;
1431
+ translations?: Record<string, {
1432
+ title: string;
1433
+ description: string;
1434
+ }> | undefined;
1435
+ } | {
1436
+ title: string;
1437
+ description: string;
1438
+ kind: "visual-theme";
1439
+ schema: "xpert.library.resource";
1440
+ version: string;
1441
+ logicalId: string;
1442
+ dependencies: {
1443
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1444
+ version: string;
1445
+ logicalId: string;
1446
+ sha256: string;
1447
+ alias: string;
1448
+ }[];
1449
+ license: {
1450
+ identifier: string;
1451
+ attribution: string;
1452
+ };
1453
+ formatVersion: 2;
1454
+ locale: string;
1455
+ categories: string[];
1456
+ tags: string[];
1457
+ provenance: {
1458
+ description: string;
1459
+ kind: "synthetic" | "user-provided" | "open-data";
1460
+ };
1461
+ assets: {
1462
+ id: string;
1463
+ sha256: string;
1464
+ size: number;
1465
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1466
+ fileName: string;
1467
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1468
+ license: {
1469
+ identifier: string;
1470
+ attribution: string;
1471
+ };
1472
+ }[];
1473
+ content: {
1474
+ theme: "system" | "slate" | "contrast";
1475
+ renderer: "live-dashboard.standard";
1476
+ };
1477
+ presentation?: {
1478
+ coverAssetId?: string | undefined;
1479
+ previewAssetIds?: string[] | undefined;
1480
+ appearance?: "light" | "dark" | undefined;
1481
+ } | undefined;
1482
+ catalogKey?: string | undefined;
1483
+ translations?: Record<string, {
1484
+ title: string;
1485
+ description: string;
1486
+ }> | undefined;
1487
+ } | {
1488
+ title: string;
1489
+ description: string;
1490
+ kind: "component";
1491
+ schema: "xpert.library.resource";
1492
+ version: string;
1493
+ logicalId: string;
1494
+ dependencies: {
1495
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1496
+ version: string;
1497
+ logicalId: string;
1498
+ sha256: string;
1499
+ alias: string;
1500
+ }[];
1501
+ license: {
1502
+ identifier: string;
1503
+ attribution: string;
1504
+ };
1505
+ formatVersion: 2;
1506
+ locale: string;
1507
+ categories: string[];
1508
+ tags: string[];
1509
+ provenance: {
1510
+ description: string;
1511
+ kind: "synthetic" | "user-provided" | "open-data";
1512
+ };
1513
+ assets: {
1514
+ id: string;
1515
+ sha256: string;
1516
+ size: number;
1517
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1518
+ fileName: string;
1519
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1520
+ license: {
1521
+ identifier: string;
1522
+ attribution: string;
1523
+ };
1524
+ }[];
1525
+ content: {
1526
+ title: string;
1527
+ fields: {
1528
+ label: string;
1529
+ required: boolean;
1530
+ role: string;
1531
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1532
+ nullable: boolean;
1533
+ }[];
1534
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
1535
+ rendererVersion: 1;
1536
+ };
1537
+ presentation?: {
1538
+ coverAssetId?: string | undefined;
1539
+ previewAssetIds?: string[] | undefined;
1540
+ appearance?: "light" | "dark" | undefined;
1541
+ } | undefined;
1542
+ catalogKey?: string | undefined;
1543
+ translations?: Record<string, {
1544
+ title: string;
1545
+ description: string;
1546
+ }> | undefined;
1547
+ } | {
1548
+ title: string;
1549
+ description: string;
1550
+ kind: "public-dataset";
1551
+ schema: "xpert.library.resource";
1552
+ version: string;
1553
+ logicalId: string;
1554
+ dependencies: {
1555
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1556
+ version: string;
1557
+ logicalId: string;
1558
+ sha256: string;
1559
+ alias: string;
1560
+ }[];
1561
+ license: {
1562
+ identifier: string;
1563
+ attribution: string;
1564
+ };
1565
+ formatVersion: 2;
1566
+ locale: string;
1567
+ categories: string[];
1568
+ tags: string[];
1569
+ provenance: {
1570
+ description: string;
1571
+ kind: "synthetic" | "user-provided" | "open-data";
1572
+ };
1573
+ assets: {
1574
+ id: string;
1575
+ sha256: string;
1576
+ size: number;
1577
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1578
+ fileName: string;
1579
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1580
+ license: {
1581
+ identifier: string;
1582
+ attribution: string;
1583
+ };
1584
+ }[];
1585
+ content: {
1586
+ dataAssetId: string;
1587
+ format: "csv" | "json";
1588
+ readerOptions: {
1589
+ encoding: "utf-8";
1590
+ delimiter?: "," | ";" | "\t" | undefined;
1591
+ rowsPath?: string[] | undefined;
1592
+ };
1593
+ columns: {
1594
+ label: string;
1595
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1596
+ nullable: boolean;
1597
+ key: string;
1598
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
1599
+ }[];
1600
+ statistics: {
1601
+ rowCount: number | null;
1602
+ };
1603
+ };
1604
+ presentation?: {
1605
+ coverAssetId?: string | undefined;
1606
+ previewAssetIds?: string[] | undefined;
1607
+ appearance?: "light" | "dark" | undefined;
1608
+ } | undefined;
1609
+ catalogKey?: string | undefined;
1610
+ translations?: Record<string, {
1611
+ title: string;
1612
+ description: string;
1613
+ }> | undefined;
1614
+ };
1615
+ }>;
1616
+ getDraft(context: XpertResolvedViewHostContext, id: string): Promise<{
1617
+ draftId: string;
1618
+ resourceId: string;
1619
+ revision: number;
1620
+ document: {
1621
+ title: string;
1622
+ description: string;
1623
+ kind: "example-task";
1624
+ schema: "xpert.library.resource";
1625
+ version: string;
1626
+ logicalId: string;
1627
+ dependencies: {
1628
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1629
+ version: string;
1630
+ logicalId: string;
1631
+ sha256: string;
1632
+ alias: string;
1633
+ }[];
1634
+ license: {
1635
+ identifier: string;
1636
+ attribution: string;
1637
+ };
1638
+ formatVersion: 2;
1639
+ locale: string;
1640
+ categories: string[];
1641
+ tags: string[];
1642
+ provenance: {
1643
+ description: string;
1644
+ kind: "synthetic" | "user-provided" | "open-data";
1645
+ };
1646
+ assets: {
1647
+ id: string;
1648
+ sha256: string;
1649
+ size: number;
1650
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1651
+ fileName: string;
1652
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1653
+ license: {
1654
+ identifier: string;
1655
+ attribution: string;
1656
+ };
1657
+ }[];
1658
+ content: {
1659
+ prompt: string;
1660
+ execution: {
1661
+ mode: "template";
1662
+ templateAlias: string;
1663
+ } | {
1664
+ mode: "agent";
1665
+ };
1666
+ dataAliases: string[];
1667
+ requirements: {
1668
+ skills: {
1669
+ name: string;
1670
+ required: boolean;
1671
+ }[];
1672
+ plugins: {
1673
+ name: string;
1674
+ versionRange: string;
1675
+ }[];
1676
+ capabilities: string[];
1677
+ };
1678
+ dataRequirement?: {
1679
+ mode: "demo" | "web" | "external";
1680
+ tools: string[];
1681
+ } | undefined;
1682
+ themeAlias?: string | undefined;
1683
+ inputBindings?: {
1684
+ slot: string;
1685
+ mapping: Record<string, string>;
1686
+ dataAlias: string;
1687
+ }[] | undefined;
1688
+ };
1689
+ presentation?: {
1690
+ coverAssetId?: string | undefined;
1691
+ previewAssetIds?: string[] | undefined;
1692
+ appearance?: "light" | "dark" | undefined;
1693
+ } | undefined;
1694
+ catalogKey?: string | undefined;
1695
+ translations?: Record<string, {
1696
+ title: string;
1697
+ description: string;
1698
+ }> | undefined;
1699
+ } | {
1700
+ title: string;
1701
+ description: string;
1702
+ kind: "analysis-template";
1703
+ schema: "xpert.library.resource";
1704
+ version: string;
1705
+ logicalId: string;
1706
+ dependencies: {
1707
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1708
+ version: string;
1709
+ logicalId: string;
1710
+ sha256: string;
1711
+ alias: string;
1712
+ }[];
1713
+ license: {
1714
+ identifier: string;
1715
+ attribution: string;
1716
+ };
1717
+ formatVersion: 2;
1718
+ locale: string;
1719
+ categories: string[];
1720
+ tags: string[];
1721
+ provenance: {
1722
+ description: string;
1723
+ kind: "synthetic" | "user-provided" | "open-data";
1724
+ };
1725
+ assets: {
1726
+ id: string;
1727
+ sha256: string;
1728
+ size: number;
1729
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1730
+ fileName: string;
1731
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1732
+ license: {
1733
+ identifier: string;
1734
+ attribution: string;
1735
+ };
1736
+ }[];
1737
+ content: {
1738
+ parameters: {
1739
+ type: "string" | "number" | "boolean" | "date";
1740
+ defaultValue: string | number | boolean | null;
1741
+ label: string;
1742
+ key: string;
1743
+ allowedValues?: (string | number | boolean | null)[] | undefined;
1744
+ }[];
1745
+ presentation: {
1746
+ type: "standard";
1747
+ charts: {
1748
+ type: "bar" | "line" | "area" | "pie" | "scatter";
1749
+ title: string;
1750
+ id: string;
1751
+ slot: string;
1752
+ x: string;
1753
+ y: string;
1754
+ color?: string | undefined;
1755
+ }[];
1756
+ tables: {
1757
+ title: string;
1758
+ id: string;
1759
+ slot: string;
1760
+ fields: string[];
1761
+ }[];
1762
+ } | {
1763
+ type: "html";
1764
+ documentAssetId: string;
1765
+ };
1766
+ requirements: {
1767
+ skills: {
1768
+ name: string;
1769
+ required: boolean;
1770
+ }[];
1771
+ plugins: {
1772
+ name: string;
1773
+ versionRange: string;
1774
+ }[];
1775
+ capabilities: string[];
1776
+ };
1777
+ inputSlots: {
1778
+ fields: {
1779
+ label: string;
1780
+ required: boolean;
1781
+ role: string;
1782
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1783
+ nullable: boolean;
1784
+ }[];
1785
+ key: string;
1786
+ grain: string[];
1787
+ }[];
1788
+ metrics: {
1789
+ label: string;
1790
+ key: string;
1791
+ unit: string;
1792
+ definition: string;
1793
+ }[];
1794
+ };
1795
+ presentation?: {
1796
+ coverAssetId?: string | undefined;
1797
+ previewAssetIds?: string[] | undefined;
1798
+ appearance?: "light" | "dark" | undefined;
1799
+ } | undefined;
1800
+ catalogKey?: string | undefined;
1801
+ translations?: Record<string, {
1802
+ title: string;
1803
+ description: string;
1804
+ }> | undefined;
1805
+ } | {
1806
+ title: string;
1807
+ description: string;
1808
+ kind: "visual-theme";
1809
+ schema: "xpert.library.resource";
1810
+ version: string;
1811
+ logicalId: string;
1812
+ dependencies: {
1813
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1814
+ version: string;
1815
+ logicalId: string;
1816
+ sha256: string;
1817
+ alias: string;
1818
+ }[];
1819
+ license: {
1820
+ identifier: string;
1821
+ attribution: string;
1822
+ };
1823
+ formatVersion: 2;
1824
+ locale: string;
1825
+ categories: string[];
1826
+ tags: string[];
1827
+ provenance: {
1828
+ description: string;
1829
+ kind: "synthetic" | "user-provided" | "open-data";
1830
+ };
1831
+ assets: {
1832
+ id: string;
1833
+ sha256: string;
1834
+ size: number;
1835
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1836
+ fileName: string;
1837
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1838
+ license: {
1839
+ identifier: string;
1840
+ attribution: string;
1841
+ };
1842
+ }[];
1843
+ content: {
1844
+ theme: "system" | "slate" | "contrast";
1845
+ renderer: "live-dashboard.standard";
1846
+ };
1847
+ presentation?: {
1848
+ coverAssetId?: string | undefined;
1849
+ previewAssetIds?: string[] | undefined;
1850
+ appearance?: "light" | "dark" | undefined;
1851
+ } | undefined;
1852
+ catalogKey?: string | undefined;
1853
+ translations?: Record<string, {
1854
+ title: string;
1855
+ description: string;
1856
+ }> | undefined;
1857
+ } | {
1858
+ title: string;
1859
+ description: string;
1860
+ kind: "component";
1861
+ schema: "xpert.library.resource";
1862
+ version: string;
1863
+ logicalId: string;
1864
+ dependencies: {
1865
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1866
+ version: string;
1867
+ logicalId: string;
1868
+ sha256: string;
1869
+ alias: string;
1870
+ }[];
1871
+ license: {
1872
+ identifier: string;
1873
+ attribution: string;
1874
+ };
1875
+ formatVersion: 2;
1876
+ locale: string;
1877
+ categories: string[];
1878
+ tags: string[];
1879
+ provenance: {
1880
+ description: string;
1881
+ kind: "synthetic" | "user-provided" | "open-data";
1882
+ };
1883
+ assets: {
1884
+ id: string;
1885
+ sha256: string;
1886
+ size: number;
1887
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1888
+ fileName: string;
1889
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1890
+ license: {
1891
+ identifier: string;
1892
+ attribution: string;
1893
+ };
1894
+ }[];
1895
+ content: {
1896
+ title: string;
1897
+ fields: {
1898
+ label: string;
1899
+ required: boolean;
1900
+ role: string;
1901
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1902
+ nullable: boolean;
1903
+ }[];
1904
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
1905
+ rendererVersion: 1;
1906
+ };
1907
+ presentation?: {
1908
+ coverAssetId?: string | undefined;
1909
+ previewAssetIds?: string[] | undefined;
1910
+ appearance?: "light" | "dark" | undefined;
1911
+ } | undefined;
1912
+ catalogKey?: string | undefined;
1913
+ translations?: Record<string, {
1914
+ title: string;
1915
+ description: string;
1916
+ }> | undefined;
1917
+ } | {
1918
+ title: string;
1919
+ description: string;
1920
+ kind: "public-dataset";
1921
+ schema: "xpert.library.resource";
1922
+ version: string;
1923
+ logicalId: string;
1924
+ dependencies: {
1925
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
1926
+ version: string;
1927
+ logicalId: string;
1928
+ sha256: string;
1929
+ alias: string;
1930
+ }[];
1931
+ license: {
1932
+ identifier: string;
1933
+ attribution: string;
1934
+ };
1935
+ formatVersion: 2;
1936
+ locale: string;
1937
+ categories: string[];
1938
+ tags: string[];
1939
+ provenance: {
1940
+ description: string;
1941
+ kind: "synthetic" | "user-provided" | "open-data";
1942
+ };
1943
+ assets: {
1944
+ id: string;
1945
+ sha256: string;
1946
+ size: number;
1947
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
1948
+ fileName: string;
1949
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
1950
+ license: {
1951
+ identifier: string;
1952
+ attribution: string;
1953
+ };
1954
+ }[];
1955
+ content: {
1956
+ dataAssetId: string;
1957
+ format: "csv" | "json";
1958
+ readerOptions: {
1959
+ encoding: "utf-8";
1960
+ delimiter?: "," | ";" | "\t" | undefined;
1961
+ rowsPath?: string[] | undefined;
1962
+ };
1963
+ columns: {
1964
+ label: string;
1965
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
1966
+ nullable: boolean;
1967
+ key: string;
1968
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
1969
+ }[];
1970
+ statistics: {
1971
+ rowCount: number | null;
1972
+ };
1973
+ };
1974
+ presentation?: {
1975
+ coverAssetId?: string | undefined;
1976
+ previewAssetIds?: string[] | undefined;
1977
+ appearance?: "light" | "dark" | undefined;
1978
+ } | undefined;
1979
+ catalogKey?: string | undefined;
1980
+ translations?: Record<string, {
1981
+ title: string;
1982
+ description: string;
1983
+ }> | undefined;
1984
+ };
1985
+ }>;
1986
+ releaseDraft(context: XpertResolvedViewHostContext, id: string, expectedRevision: number): Promise<{
1987
+ createdAt: string;
1988
+ presentation?: {
1989
+ coverAssetId?: string | undefined;
1990
+ previewAssetIds?: string[] | undefined;
1991
+ appearance?: "light" | "dark" | undefined;
1992
+ } | undefined;
1993
+ license: {
1994
+ identifier: string;
1995
+ attribution: string;
1996
+ };
1997
+ locale: string;
1998
+ translations?: Record<string, {
1999
+ title: string;
2000
+ description: string;
2001
+ }> | undefined;
2002
+ tags: string[];
2003
+ taskData?: {
2004
+ mode: "demo" | "web" | "external";
2005
+ tools: string[];
2006
+ };
2007
+ releaseId: string;
2008
+ logicalId: string;
2009
+ version: string;
2010
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2011
+ title: string;
2012
+ description: string;
2013
+ categories: string[];
2014
+ sha256: string;
2015
+ formatVersion: number;
2016
+ }>;
2017
+ /** Used by release and import within their transaction. No public caller controls storage identities. */
2018
+ persistVersion(manager: EntityManager, actor: LibraryActor, input: ResourceDocumentV2, jobId: string | null): Promise<LibraryVersionRecord>;
2019
+ promote(manager: EntityManager, actor: LibraryActor, rows: LibraryVersionRecord[]): Promise<void>;
2020
+ publish(context: XpertResolvedViewHostContext, id: string, confirmed: boolean): Promise<{
2021
+ item: {
2022
+ createdAt: string;
2023
+ presentation?: {
2024
+ coverAssetId?: string | undefined;
2025
+ previewAssetIds?: string[] | undefined;
2026
+ appearance?: "light" | "dark" | undefined;
2027
+ } | undefined;
2028
+ license: {
2029
+ identifier: string;
2030
+ attribution: string;
2031
+ };
2032
+ locale: string;
2033
+ translations?: Record<string, {
2034
+ title: string;
2035
+ description: string;
2036
+ }> | undefined;
2037
+ tags: string[];
2038
+ taskData?: {
2039
+ mode: "demo" | "web" | "external";
2040
+ tools: string[];
2041
+ };
2042
+ releaseId: string;
2043
+ logicalId: string;
2044
+ version: string;
2045
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2046
+ title: string;
2047
+ description: string;
2048
+ categories: string[];
2049
+ sha256: string;
2050
+ formatVersion: number;
2051
+ };
2052
+ document: {
2053
+ title: string;
2054
+ description: string;
2055
+ kind: "example-task";
2056
+ schema: "xpert.library.resource";
2057
+ version: string;
2058
+ logicalId: string;
2059
+ dependencies: {
2060
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2061
+ version: string;
2062
+ logicalId: string;
2063
+ sha256: string;
2064
+ alias: string;
2065
+ }[];
2066
+ license: {
2067
+ identifier: string;
2068
+ attribution: string;
2069
+ };
2070
+ formatVersion: 2;
2071
+ locale: string;
2072
+ categories: string[];
2073
+ tags: string[];
2074
+ provenance: {
2075
+ description: string;
2076
+ kind: "synthetic" | "user-provided" | "open-data";
2077
+ };
2078
+ assets: {
2079
+ id: string;
2080
+ sha256: string;
2081
+ size: number;
2082
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
2083
+ fileName: string;
2084
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
2085
+ license: {
2086
+ identifier: string;
2087
+ attribution: string;
2088
+ };
2089
+ }[];
2090
+ content: {
2091
+ prompt: string;
2092
+ execution: {
2093
+ mode: "template";
2094
+ templateAlias: string;
2095
+ } | {
2096
+ mode: "agent";
2097
+ };
2098
+ dataAliases: string[];
2099
+ requirements: {
2100
+ skills: {
2101
+ name: string;
2102
+ required: boolean;
2103
+ }[];
2104
+ plugins: {
2105
+ name: string;
2106
+ versionRange: string;
2107
+ }[];
2108
+ capabilities: string[];
2109
+ };
2110
+ dataRequirement?: {
2111
+ mode: "demo" | "web" | "external";
2112
+ tools: string[];
2113
+ } | undefined;
2114
+ themeAlias?: string | undefined;
2115
+ inputBindings?: {
2116
+ slot: string;
2117
+ mapping: Record<string, string>;
2118
+ dataAlias: string;
2119
+ }[] | undefined;
2120
+ };
2121
+ presentation?: {
2122
+ coverAssetId?: string | undefined;
2123
+ previewAssetIds?: string[] | undefined;
2124
+ appearance?: "light" | "dark" | undefined;
2125
+ } | undefined;
2126
+ catalogKey?: string | undefined;
2127
+ translations?: Record<string, {
2128
+ title: string;
2129
+ description: string;
2130
+ }> | undefined;
2131
+ } | {
2132
+ title: string;
2133
+ description: string;
2134
+ kind: "analysis-template";
2135
+ schema: "xpert.library.resource";
2136
+ version: string;
2137
+ logicalId: string;
2138
+ dependencies: {
2139
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2140
+ version: string;
2141
+ logicalId: string;
2142
+ sha256: string;
2143
+ alias: string;
2144
+ }[];
2145
+ license: {
2146
+ identifier: string;
2147
+ attribution: string;
2148
+ };
2149
+ formatVersion: 2;
2150
+ locale: string;
2151
+ categories: string[];
2152
+ tags: string[];
2153
+ provenance: {
2154
+ description: string;
2155
+ kind: "synthetic" | "user-provided" | "open-data";
2156
+ };
2157
+ assets: {
2158
+ id: string;
2159
+ sha256: string;
2160
+ size: number;
2161
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
2162
+ fileName: string;
2163
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
2164
+ license: {
2165
+ identifier: string;
2166
+ attribution: string;
2167
+ };
2168
+ }[];
2169
+ content: {
2170
+ parameters: {
2171
+ type: "string" | "number" | "boolean" | "date";
2172
+ defaultValue: string | number | boolean | null;
2173
+ label: string;
2174
+ key: string;
2175
+ allowedValues?: (string | number | boolean | null)[] | undefined;
2176
+ }[];
2177
+ presentation: {
2178
+ type: "standard";
2179
+ charts: {
2180
+ type: "bar" | "line" | "area" | "pie" | "scatter";
2181
+ title: string;
2182
+ id: string;
2183
+ slot: string;
2184
+ x: string;
2185
+ y: string;
2186
+ color?: string | undefined;
2187
+ }[];
2188
+ tables: {
2189
+ title: string;
2190
+ id: string;
2191
+ slot: string;
2192
+ fields: string[];
2193
+ }[];
2194
+ } | {
2195
+ type: "html";
2196
+ documentAssetId: string;
2197
+ };
2198
+ requirements: {
2199
+ skills: {
2200
+ name: string;
2201
+ required: boolean;
2202
+ }[];
2203
+ plugins: {
2204
+ name: string;
2205
+ versionRange: string;
2206
+ }[];
2207
+ capabilities: string[];
2208
+ };
2209
+ inputSlots: {
2210
+ fields: {
2211
+ label: string;
2212
+ required: boolean;
2213
+ role: string;
2214
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
2215
+ nullable: boolean;
2216
+ }[];
2217
+ key: string;
2218
+ grain: string[];
2219
+ }[];
2220
+ metrics: {
2221
+ label: string;
2222
+ key: string;
2223
+ unit: string;
2224
+ definition: string;
2225
+ }[];
2226
+ };
2227
+ presentation?: {
2228
+ coverAssetId?: string | undefined;
2229
+ previewAssetIds?: string[] | undefined;
2230
+ appearance?: "light" | "dark" | undefined;
2231
+ } | undefined;
2232
+ catalogKey?: string | undefined;
2233
+ translations?: Record<string, {
2234
+ title: string;
2235
+ description: string;
2236
+ }> | undefined;
2237
+ } | {
2238
+ title: string;
2239
+ description: string;
2240
+ kind: "visual-theme";
2241
+ schema: "xpert.library.resource";
2242
+ version: string;
2243
+ logicalId: string;
2244
+ dependencies: {
2245
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2246
+ version: string;
2247
+ logicalId: string;
2248
+ sha256: string;
2249
+ alias: string;
2250
+ }[];
2251
+ license: {
2252
+ identifier: string;
2253
+ attribution: string;
2254
+ };
2255
+ formatVersion: 2;
2256
+ locale: string;
2257
+ categories: string[];
2258
+ tags: string[];
2259
+ provenance: {
2260
+ description: string;
2261
+ kind: "synthetic" | "user-provided" | "open-data";
2262
+ };
2263
+ assets: {
2264
+ id: string;
2265
+ sha256: string;
2266
+ size: number;
2267
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
2268
+ fileName: string;
2269
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
2270
+ license: {
2271
+ identifier: string;
2272
+ attribution: string;
2273
+ };
2274
+ }[];
2275
+ content: {
2276
+ theme: "system" | "slate" | "contrast";
2277
+ renderer: "live-dashboard.standard";
2278
+ };
2279
+ presentation?: {
2280
+ coverAssetId?: string | undefined;
2281
+ previewAssetIds?: string[] | undefined;
2282
+ appearance?: "light" | "dark" | undefined;
2283
+ } | undefined;
2284
+ catalogKey?: string | undefined;
2285
+ translations?: Record<string, {
2286
+ title: string;
2287
+ description: string;
2288
+ }> | undefined;
2289
+ } | {
2290
+ title: string;
2291
+ description: string;
2292
+ kind: "component";
2293
+ schema: "xpert.library.resource";
2294
+ version: string;
2295
+ logicalId: string;
2296
+ dependencies: {
2297
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2298
+ version: string;
2299
+ logicalId: string;
2300
+ sha256: string;
2301
+ alias: string;
2302
+ }[];
2303
+ license: {
2304
+ identifier: string;
2305
+ attribution: string;
2306
+ };
2307
+ formatVersion: 2;
2308
+ locale: string;
2309
+ categories: string[];
2310
+ tags: string[];
2311
+ provenance: {
2312
+ description: string;
2313
+ kind: "synthetic" | "user-provided" | "open-data";
2314
+ };
2315
+ assets: {
2316
+ id: string;
2317
+ sha256: string;
2318
+ size: number;
2319
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
2320
+ fileName: string;
2321
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
2322
+ license: {
2323
+ identifier: string;
2324
+ attribution: string;
2325
+ };
2326
+ }[];
2327
+ content: {
2328
+ title: string;
2329
+ fields: {
2330
+ label: string;
2331
+ required: boolean;
2332
+ role: string;
2333
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
2334
+ nullable: boolean;
2335
+ }[];
2336
+ renderer: "bar" | "line" | "area" | "pie" | "scatter" | "details";
2337
+ rendererVersion: 1;
2338
+ };
2339
+ presentation?: {
2340
+ coverAssetId?: string | undefined;
2341
+ previewAssetIds?: string[] | undefined;
2342
+ appearance?: "light" | "dark" | undefined;
2343
+ } | undefined;
2344
+ catalogKey?: string | undefined;
2345
+ translations?: Record<string, {
2346
+ title: string;
2347
+ description: string;
2348
+ }> | undefined;
2349
+ } | {
2350
+ title: string;
2351
+ description: string;
2352
+ kind: "public-dataset";
2353
+ schema: "xpert.library.resource";
2354
+ version: string;
2355
+ logicalId: string;
2356
+ dependencies: {
2357
+ kind: "example-task" | "analysis-template" | "visual-theme" | "component" | "public-dataset";
2358
+ version: string;
2359
+ logicalId: string;
2360
+ sha256: string;
2361
+ alias: string;
2362
+ }[];
2363
+ license: {
2364
+ identifier: string;
2365
+ attribution: string;
2366
+ };
2367
+ formatVersion: 2;
2368
+ locale: string;
2369
+ categories: string[];
2370
+ tags: string[];
2371
+ provenance: {
2372
+ description: string;
2373
+ kind: "synthetic" | "user-provided" | "open-data";
2374
+ };
2375
+ assets: {
2376
+ id: string;
2377
+ sha256: string;
2378
+ size: number;
2379
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/svg+xml" | "application/json" | "text/csv" | "text/html" | "text/plain";
2380
+ fileName: string;
2381
+ purpose: "cover" | "preview" | "data" | "document" | "supporting";
2382
+ license: {
2383
+ identifier: string;
2384
+ attribution: string;
2385
+ };
2386
+ }[];
2387
+ content: {
2388
+ dataAssetId: string;
2389
+ format: "csv" | "json";
2390
+ readerOptions: {
2391
+ encoding: "utf-8";
2392
+ delimiter?: "," | ";" | "\t" | undefined;
2393
+ rowsPath?: string[] | undefined;
2394
+ };
2395
+ columns: {
2396
+ label: string;
2397
+ logicalType: "string" | "boolean" | "date" | "int64" | "float64" | "decimal" | "timestamp";
2398
+ nullable: boolean;
2399
+ key: string;
2400
+ role?: "identifier" | "dimension" | "measure" | "time" | undefined;
2401
+ }[];
2402
+ statistics: {
2403
+ rowCount: number | null;
2404
+ };
2405
+ };
2406
+ presentation?: {
2407
+ coverAssetId?: string | undefined;
2408
+ previewAssetIds?: string[] | undefined;
2409
+ appearance?: "light" | "dark" | undefined;
2410
+ } | undefined;
2411
+ catalogKey?: string | undefined;
2412
+ translations?: Record<string, {
2413
+ title: string;
2414
+ description: string;
2415
+ }> | undefined;
2416
+ };
2417
+ capabilities: {
2418
+ canExport: boolean;
2419
+ canPublish: boolean;
2420
+ canWithdraw: boolean;
2421
+ reasons: string[];
2422
+ };
2423
+ }>;
2424
+ withdraw(context: XpertResolvedViewHostContext, id: string): Promise<{
2425
+ releaseId: string;
2426
+ }>;
2427
+ }