@mastra/mcp-apps-components 0.1.0-alpha.6 → 0.1.0-alpha.7

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.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_observability_dashboard = require("./observability-dashboard-D_iAY-Ff.cjs");
2
+ const require_observability_dashboard = require("./observability-dashboard-CUTNAsy0.cjs");
3
3
  let _mastra_core_storage_dashboards = require("@mastra/core/storage/dashboards");
4
4
  let zod_v4 = require("zod/v4");
5
5
  // src/dashboards.ts
@@ -1 +1 @@
1
- {"version":3,"file":"dashboards.cjs","names":["z","dashboardWidgetSchema","zodIssues","widgetIssues","dashboardDefinitionSchema"],"sources":["../src/dashboards.ts"],"sourcesContent":["import { dashboardDefinitionSchema, dashboardWidgetSchema } from '@mastra/core/storage/dashboards';\nimport type {\n DashboardColumn,\n DashboardDefinition,\n DashboardWidget,\n DashboardWidgetView,\n} from '@mastra/core/storage/dashboards';\nimport { z } from 'zod/v4';\nimport { widgetIssues, zodIssues } from './dashboard-views';\nimport type { WidgetIssue } from './dashboard-views';\n\nexport {\n OBSERVABILITY_CATALOG_MAX_METRIC_NAMES,\n createObservabilityDraftSchemas,\n createObservabilityWidgetInputSchema,\n observabilityWidgetInputSchema,\n toObservabilityDashboard,\n toObservabilityWidget,\n} from './observability-dashboard';\nexport type {\n ObservabilityCatalog,\n ObservabilityDashboardDraft,\n ObservabilityDashboardInput,\n ObservabilityDashboardOpened,\n ObservabilityDraftOptions,\n ObservabilityDraftSchemas,\n ObservabilityWidgetDraft,\n} from './observability-dashboard';\n\n/*\n * Dashboards to store, and the drafts a model writes them as. The stored format is checked at least\n * as strictly as the dashboard renderer checks it: core's `dashboardDefinitionSchema`, then each\n * widget's kind, each view's options and each table column's options, then what each kind checks\n * beyond its schema (queries an option names, labels, ...). It also rejects columns on views that\n * aren't tables, which the renderer ignores. A draft (`createObservabilityDraftSchemas`) converts to\n * a widget or definition that passes those checks.\n *\n * The types are written out here rather than inferred, so this entry's declarations need nothing\n * beyond `@mastra/core` and `zod`; the package's tests check they match the kinds' own schemas.\n */\n\n/** A number read from one of the view's queries, named by its `id`. */\nexport type DashboardValueRef = {\n query: string;\n field?: 'value' | 'estimatedCost';\n measure?: string;\n percentile?: number;\n groups?: string[];\n notGroups?: string[];\n};\n\n/** A number a view shows: a query's value, or a fixed combination of several. */\nexport type DashboardValueExpr =\n | DashboardValueRef\n | { const: number }\n | { sum: DashboardValueExpr[] }\n | { minus: [DashboardValueExpr, DashboardValueExpr] }\n | { ratio: { of: DashboardValueExpr; over: DashboardValueExpr } }\n | { max: DashboardValueExpr[] }\n | { coalesce: DashboardValueExpr[] };\n\nexport type DashboardValueFormat = 'count' | 'usd' | 'duration' | 'percent' | 'score';\n\nexport type DashboardChartColor = 'green' | 'sky' | 'violet' | 'teal' | 'indigo' | 'warning' | 'error' | 'neutral';\n\n/** A `kpis` view's options: a row of headline numbers. */\nexport type DashboardKpisOptions = {\n items: {\n label: string;\n icon: 'bot' | 'coins' | 'hash' | 'threads';\n format: 'count' | 'usd';\n value: DashboardValueExpr;\n detail: string;\n lowerIsBetter?: boolean;\n }[];\n};\n\n/** A `table` column's options, told apart by `type`. */\nexport type DashboardTableColumnOptions =\n | {\n type: 'name';\n as?: 'project';\n unnamed?: string;\n mark?: { icon: 'agent' | 'workflow' | 'tool' } | { providerDimension: string };\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'dimension';\n dimension: string;\n as?: 'project';\n query?: string;\n joinOn?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'value';\n value: DashboardValueExpr;\n format: 'count' | 'usd' | 'duration' | 'percent';\n emphasis?: boolean;\n missing?: number;\n additive?: boolean;\n better?: 'higher' | 'lower';\n unpricedWhen?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | { type: 'change'; description?: string };\n\n/** A `table` view's options: one row per group. */\nexport type DashboardTableOptions = {\n groupBy: string[];\n defaultSort: { column: string; direction: 'asc' | 'desc' };\n pageSize?: number;\n emptyMessage: string;\n ariaLabel?: string;\n hideUnnamed?: boolean;\n dropped?: boolean;\n openWhen?: { minRows: number };\n rowDrilldown?: {\n fields: Record<\n string,\n | 'projectId'\n | 'entityName'\n | 'threadId'\n | 'resourceId'\n | 'environment'\n | 'sessionId'\n | 'userId'\n | 'model'\n | 'provider'\n >;\n spanTypes?: string[];\n keepEmpty?: boolean;\n };\n};\n\n/** A `timeseries` view's options: values per time bucket as stacked bars or lines. */\nexport type DashboardTimeseriesOptions = {\n chart: 'stackedBar' | 'line';\n format: DashboardValueFormat;\n axis?: boolean;\n series: {\n dataKey: string;\n label: string;\n color: DashboardChartColor;\n emphasis?: boolean;\n value: DashboardValueExpr;\n rangeTotal?: DashboardValueExpr;\n round?: boolean;\n }[];\n buckets?: 'chart' | 'api';\n totals?: string[];\n hideEmpty?: boolean;\n emphasizeFirst?: boolean;\n xLabels?: 'edges';\n flatYDomain?: [number, number];\n yDomain?: [number, number];\n total?: { value: 'total' | { peak: string } | DashboardValueExpr; format?: DashboardValueFormat };\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n emptyWhenZero?: DashboardValueExpr;\n};\n\n/** A `scores` view's options: one line per scorer. */\nexport type DashboardScoresOptions = {\n average: string;\n series: string;\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n};\n\n/** A table column whose options its kind accepts. */\nexport type StrictDashboardTableColumn = Omit<DashboardColumn, 'options'> & { options: DashboardTableColumnOptions };\n\n/** A view whose options its kind accepts. Only table views have columns. */\nexport type StrictDashboardWidgetView<Options, Column = never> = Omit<DashboardWidgetView, 'options' | 'columns'> & {\n options: Options;\n columns?: Column[];\n};\n\ntype WidgetOf<Kind extends string, Options, Column = never> = Omit<DashboardWidget, 'kind' | 'views'> & {\n kind: Kind;\n views: StrictDashboardWidgetView<Options, Column>[];\n};\n\n/** A widget of a built-in kind that the dashboard renderer can draw. */\nexport type StrictDashboardWidget =\n | WidgetOf<'kpis', DashboardKpisOptions>\n | WidgetOf<'table', DashboardTableOptions, StrictDashboardTableColumn>\n | WidgetOf<'timeseries', DashboardTimeseriesOptions>\n | WidgetOf<'scores', DashboardScoresOptions>;\n\n/** A dashboard definition whose every widget the dashboard renderer can draw. */\nexport type StrictDashboardDefinition = Omit<DashboardDefinition, 'rows'> & {\n rows: { widgets: StrictDashboardWidget[] }[];\n};\n\ntype Issue = WidgetIssue;\n\nconst report = (ctx: z.RefinementCtx, issues: Issue[], prefix: PropertyKey[] = []) => {\n for (const issue of issues) {\n ctx.addIssue({ code: 'custom', path: [...prefix, ...issue.path], message: issue.message });\n }\n};\n\n/**\n * One widget as the dashboard renderer draws it: core's `dashboardWidgetSchema`, a built-in kind,\n * options that kind accepts, and nothing else it would reject, at every scope the widget shows at.\n * It also rejects columns on views that aren't tables: the renderer ignores them, but they usually\n * mean the widget was written as another kind. Paths are relative to the widget. Unique widget ids, the widget count and the size limit are the\n * definition's to check, so check the whole definition with `strictDashboardDefinitionSchema` too\n * before storing it.\n *\n * Parsing returns the widget as given: no defaults are filled in. It's a validator, not a schema to\n * show a model: its JSON schema is empty. Its input type is `unknown`, so check with it where you\n * store, not in a request schema.\n */\nexport const strictDashboardWidgetSchema: z.ZodType<StrictDashboardWidget> = z.unknown().superRefine((value, ctx) => {\n const core = dashboardWidgetSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n report(ctx, widgetIssues(value as DashboardWidget));\n}) as z.ZodType<StrictDashboardWidget>;\n\n/**\n * A dashboard definition as the dashboard renderer draws it: core's `dashboardDefinitionSchema`,\n * then every widget as `strictDashboardWidgetSchema` checks it, paths from the definition (e.g.\n * `rows.0.widgets.1.views.0.options.series.0.value`; problems a kind finds point at the view).\n * Check every definition with it before storing it, so each stored widget renders. Widgets of a\n * host's own kinds are rejected: check those with core's schema.\n *\n * Parsing returns the definition as given: no defaults are filled in. It's a validator, not a\n * schema to show a model: its JSON schema is empty. Its input type is `unknown`, so check with it\n * where you store, not in a request schema.\n */\nexport const strictDashboardDefinitionSchema: z.ZodType<StrictDashboardDefinition> = z\n .unknown()\n .superRefine((value, ctx) => {\n const core = dashboardDefinitionSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n for (const [r, row] of (value as DashboardDefinition).rows.entries()) {\n for (const [w, widget] of row.widgets.entries()) {\n report(ctx, widgetIssues(widget), ['rows', r, 'widgets', w]);\n }\n }\n }) as z.ZodType<StrictDashboardDefinition>;\n"],"mappings":";;;;;AA4MA,MAAM,UAAU,KAAsB,QAAiB,SAAwB,CAAC,MAAM;CACpF,KAAK,MAAM,SAAS,QAClB,IAAI,SAAS;EAAE,MAAM;EAAU,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;EAAG,SAAS,MAAM;CAAQ,CAAC;AAE7F;;;;;;;;;;;;;AAcA,MAAa,8BAAgEA,OAAAA,EAAE,QAAQ,CAAC,CAAC,aAAa,OAAO,QAAQ;CACnH,MAAM,OAAOC,gCAAAA,sBAAsB,UAAU,KAAK;CAClD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAKC,gCAAAA,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,OAAO,KAAKC,gCAAAA,aAAa,KAAwB,CAAC;AACpD,CAAC;;;;;;;;;;;;AAaD,MAAa,kCAAwEH,OAAAA,EAClF,QAAQ,CAAC,CACT,aAAa,OAAO,QAAQ;CAC3B,MAAM,OAAOI,gCAAAA,0BAA0B,UAAU,KAAK;CACtD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAKF,gCAAAA,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,KAAK,MAAM,CAAC,GAAG,QAAS,MAA8B,KAAK,QAAQ,GACjE,KAAK,MAAM,CAAC,GAAG,WAAW,IAAI,QAAQ,QAAQ,GAC5C,OAAO,KAAKC,gCAAAA,aAAa,MAAM,GAAG;EAAC;EAAQ;EAAG;EAAW;CAAC,CAAC;AAGjE,CAAC"}
1
+ {"version":3,"file":"dashboards.cjs","names":["z","dashboardWidgetSchema","zodIssues","widgetIssues","dashboardDefinitionSchema"],"sources":["../src/dashboards.ts"],"sourcesContent":["import { dashboardDefinitionSchema, dashboardWidgetSchema } from '@mastra/core/storage/dashboards';\nimport type {\n DashboardColumn,\n DashboardDefinition,\n DashboardWidget,\n DashboardWidgetView,\n} from '@mastra/core/storage/dashboards';\nimport { z } from 'zod/v4';\nimport { widgetIssues, zodIssues } from './dashboard-views';\nimport type { WidgetIssue } from './dashboard-views';\n\nexport {\n OBSERVABILITY_CATALOG_MAX_METRIC_NAMES,\n createObservabilityDraftSchemas,\n createObservabilityWidgetInputSchema,\n observabilityWidgetInputSchema,\n toObservabilityDashboard,\n toObservabilityWidget,\n} from './observability-dashboard';\nexport type {\n ObservabilityCatalog,\n ObservabilityDashboardDraft,\n ObservabilityDashboardInput,\n ObservabilityDashboardOpened,\n ObservabilityDraftOptions,\n ObservabilityDraftSchemas,\n ObservabilityWidgetDraft,\n} from './observability-dashboard';\n\n/*\n * Dashboards to store, and the drafts a model writes them as. The stored format is checked at least\n * as strictly as the dashboard renderer checks it: core's `dashboardDefinitionSchema`, then each\n * widget's kind, each view's options and each table column's options, then what each kind checks\n * beyond its schema (queries an option names, labels, ...). It also rejects columns on views that\n * aren't tables, which the renderer ignores. A draft (`createObservabilityDraftSchemas`) converts to\n * a widget or definition that passes those checks.\n *\n * The types are written out here rather than inferred, so this entry's declarations need nothing\n * beyond `@mastra/core` and `zod`; the package's tests check they match the kinds' own schemas.\n */\n\n/** A number read from one of the view's queries, named by its `id`. */\nexport type DashboardValueRef = {\n query: string;\n field?: 'value' | 'estimatedCost';\n measure?: string;\n percentile?: number;\n groups?: string[];\n notGroups?: string[];\n};\n\n/** A number a view shows: a query's value, or a fixed combination of several. */\nexport type DashboardValueExpr =\n | DashboardValueRef\n | { const: number }\n | { sum: DashboardValueExpr[] }\n | { minus: [DashboardValueExpr, DashboardValueExpr] }\n | { ratio: { of: DashboardValueExpr; over: DashboardValueExpr } }\n | { max: DashboardValueExpr[] }\n | { coalesce: DashboardValueExpr[] };\n\nexport type DashboardValueFormat = 'count' | 'usd' | 'duration' | 'percent' | 'score';\n\nexport type DashboardChartColor =\n | 'green'\n | 'sky'\n | 'violet'\n | 'teal'\n | 'indigo'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'blue'\n | 'orange'\n | 'pink'\n | 'yellow'\n | 'red'\n | 'purple';\n\n/** A `kpis` view's options: a row of headline numbers. */\nexport type DashboardKpisOptions = {\n items: {\n label: string;\n icon?: 'bot' | 'coins' | 'hash' | 'threads';\n format: DashboardValueFormat;\n value: DashboardValueExpr;\n detail?: string;\n lowerIsBetter?: boolean;\n }[];\n};\n\n/** A `table` column's options, told apart by `type`. */\nexport type DashboardTableColumnOptions =\n | {\n type: 'name';\n as?: 'project';\n unnamed?: string;\n mark?: { icon: 'agent' | 'workflow' | 'tool' } | { providerDimension: string };\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'dimension';\n dimension: string;\n as?: 'project';\n query?: string;\n joinOn?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'value';\n value: DashboardValueExpr;\n format: 'count' | 'usd' | 'duration' | 'percent';\n emphasis?: boolean;\n missing?: number;\n additive?: boolean;\n better?: 'higher' | 'lower';\n unpricedWhen?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | { type: 'change'; description?: string };\n\n/** A `table` view's options: one row per group. */\nexport type DashboardTableOptions = {\n groupBy: string[];\n defaultSort: { column: string; direction: 'asc' | 'desc' };\n pageSize?: number;\n emptyMessage?: string;\n ariaLabel?: string;\n hideUnnamed?: boolean;\n dropped?: boolean;\n openWhen?: { minRows: number };\n rowDrilldown?: {\n fields: Record<\n string,\n | 'projectId'\n | 'entityName'\n | 'threadId'\n | 'resourceId'\n | 'environment'\n | 'sessionId'\n | 'userId'\n | 'model'\n | 'provider'\n >;\n spanTypes?: string[];\n keepEmpty?: boolean;\n };\n};\n\n/** A `timeseries` view's options: values per time bucket as stacked bars or lines. */\nexport type DashboardTimeseriesOptions = {\n chart: 'stackedBar' | 'line';\n format: DashboardValueFormat;\n axis?: boolean;\n series: {\n dataKey: string;\n label: string;\n color?: DashboardChartColor;\n emphasis?: boolean;\n value: DashboardValueExpr;\n rangeTotal?: DashboardValueExpr;\n round?: boolean;\n }[];\n buckets?: 'chart' | 'api';\n totals?: string[];\n hideEmpty?: boolean;\n emphasizeFirst?: boolean;\n xLabels?: 'edges';\n flatYDomain?: [number, number];\n yDomain?: [number, number];\n total?: { value: 'total' | { peak: string } | DashboardValueExpr; format?: DashboardValueFormat };\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n emptyWhenZero?: DashboardValueExpr;\n};\n\n/** A `scores` view's options: one line per scorer. */\nexport type DashboardScoresOptions = {\n average: string;\n series: string;\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n};\n\n/** A table column whose options its kind accepts. */\nexport type StrictDashboardTableColumn = Omit<DashboardColumn, 'options'> & { options: DashboardTableColumnOptions };\n\n/** A view whose options its kind accepts. Only table views have columns. */\nexport type StrictDashboardWidgetView<Options, Column = never> = Omit<DashboardWidgetView, 'options' | 'columns'> & {\n options: Options;\n columns?: Column[];\n};\n\ntype WidgetOf<Kind extends string, Options, Column = never> = Omit<DashboardWidget, 'kind' | 'views'> & {\n kind: Kind;\n views: StrictDashboardWidgetView<Options, Column>[];\n};\n\n/** A widget of a built-in kind that the dashboard renderer can draw. */\nexport type StrictDashboardWidget =\n | WidgetOf<'kpis', DashboardKpisOptions>\n | WidgetOf<'table', DashboardTableOptions, StrictDashboardTableColumn>\n | WidgetOf<'timeseries', DashboardTimeseriesOptions>\n | WidgetOf<'scores', DashboardScoresOptions>;\n\n/** A dashboard definition whose every widget the dashboard renderer can draw. */\nexport type StrictDashboardDefinition = Omit<DashboardDefinition, 'rows'> & {\n rows: { widgets: StrictDashboardWidget[] }[];\n};\n\ntype Issue = WidgetIssue;\n\nconst report = (ctx: z.RefinementCtx, issues: Issue[], prefix: PropertyKey[] = []) => {\n for (const issue of issues) {\n ctx.addIssue({ code: 'custom', path: [...prefix, ...issue.path], message: issue.message });\n }\n};\n\n/**\n * One widget as the dashboard renderer draws it: core's `dashboardWidgetSchema`, a built-in kind,\n * options that kind accepts, and nothing else it would reject, at every scope the widget shows at.\n * It also rejects columns on views that aren't tables: the renderer ignores them, but they usually\n * mean the widget was written as another kind. Paths are relative to the widget. Unique widget ids, the widget count and the size limit are the\n * definition's to check, so check the whole definition with `strictDashboardDefinitionSchema` too\n * before storing it.\n *\n * Parsing returns the widget as given: no defaults are filled in. It's a validator, not a schema to\n * show a model: its JSON schema is empty. Its input type is `unknown`, so check with it where you\n * store, not in a request schema.\n */\nexport const strictDashboardWidgetSchema: z.ZodType<StrictDashboardWidget> = z.unknown().superRefine((value, ctx) => {\n const core = dashboardWidgetSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n report(ctx, widgetIssues(value as DashboardWidget));\n}) as z.ZodType<StrictDashboardWidget>;\n\n/**\n * A dashboard definition as the dashboard renderer draws it: core's `dashboardDefinitionSchema`,\n * then every widget as `strictDashboardWidgetSchema` checks it, paths from the definition (e.g.\n * `rows.0.widgets.1.views.0.options.series.0.value`; problems a kind finds point at the view).\n * Check every definition with it before storing it, so each stored widget renders. Widgets of a\n * host's own kinds are rejected: check those with core's schema.\n *\n * Parsing returns the definition as given: no defaults are filled in. It's a validator, not a\n * schema to show a model: its JSON schema is empty. Its input type is `unknown`, so check with it\n * where you store, not in a request schema.\n */\nexport const strictDashboardDefinitionSchema: z.ZodType<StrictDashboardDefinition> = z\n .unknown()\n .superRefine((value, ctx) => {\n const core = dashboardDefinitionSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n for (const [r, row] of (value as DashboardDefinition).rows.entries()) {\n for (const [w, widget] of row.widgets.entries()) {\n report(ctx, widgetIssues(widget), ['rows', r, 'widgets', w]);\n }\n }\n }) as z.ZodType<StrictDashboardDefinition>;\n"],"mappings":";;;;;AA0NA,MAAM,UAAU,KAAsB,QAAiB,SAAwB,CAAC,MAAM;CACpF,KAAK,MAAM,SAAS,QAClB,IAAI,SAAS;EAAE,MAAM;EAAU,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;EAAG,SAAS,MAAM;CAAQ,CAAC;AAE7F;;;;;;;;;;;;;AAcA,MAAa,8BAAgEA,OAAAA,EAAE,QAAQ,CAAC,CAAC,aAAa,OAAO,QAAQ;CACnH,MAAM,OAAOC,gCAAAA,sBAAsB,UAAU,KAAK;CAClD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAKC,gCAAAA,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,OAAO,KAAKC,gCAAAA,aAAa,KAAwB,CAAC;AACpD,CAAC;;;;;;;;;;;;AAaD,MAAa,kCAAwEH,OAAAA,EAClF,QAAQ,CAAC,CACT,aAAa,OAAO,QAAQ;CAC3B,MAAM,OAAOI,gCAAAA,0BAA0B,UAAU,KAAK;CACtD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAKF,gCAAAA,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,KAAK,MAAM,CAAC,GAAG,QAAS,MAA8B,KAAK,QAAQ,GACjE,KAAK,MAAM,CAAC,GAAG,WAAW,IAAI,QAAQ,QAAQ,GAC5C,OAAO,KAAKC,gCAAAA,aAAa,MAAM,GAAG;EAAC;EAAQ;EAAG;EAAW;CAAC,CAAC;AAGjE,CAAC"}
@@ -29,15 +29,15 @@ export type DashboardValueExpr = DashboardValueRef | {
29
29
  coalesce: DashboardValueExpr[];
30
30
  };
31
31
  export type DashboardValueFormat = 'count' | 'usd' | 'duration' | 'percent' | 'score';
32
- export type DashboardChartColor = 'green' | 'sky' | 'violet' | 'teal' | 'indigo' | 'warning' | 'error' | 'neutral';
32
+ export type DashboardChartColor = 'green' | 'sky' | 'violet' | 'teal' | 'indigo' | 'warning' | 'error' | 'neutral' | 'blue' | 'orange' | 'pink' | 'yellow' | 'red' | 'purple';
33
33
  /** A `kpis` view's options: a row of headline numbers. */
34
34
  export type DashboardKpisOptions = {
35
35
  items: {
36
36
  label: string;
37
- icon: 'bot' | 'coins' | 'hash' | 'threads';
38
- format: 'count' | 'usd';
37
+ icon?: 'bot' | 'coins' | 'hash' | 'threads';
38
+ format: DashboardValueFormat;
39
39
  value: DashboardValueExpr;
40
- detail: string;
40
+ detail?: string;
41
41
  lowerIsBetter?: boolean;
42
42
  }[];
43
43
  };
@@ -87,7 +87,7 @@ export type DashboardTableOptions = {
87
87
  direction: 'asc' | 'desc';
88
88
  };
89
89
  pageSize?: number;
90
- emptyMessage: string;
90
+ emptyMessage?: string;
91
91
  ariaLabel?: string;
92
92
  hideUnnamed?: boolean;
93
93
  dropped?: boolean;
@@ -108,7 +108,7 @@ export type DashboardTimeseriesOptions = {
108
108
  series: {
109
109
  dataKey: string;
110
110
  label: string;
111
- color: DashboardChartColor;
111
+ color?: DashboardChartColor;
112
112
  emphasis?: boolean;
113
113
  value: DashboardValueExpr;
114
114
  rangeTotal?: DashboardValueExpr;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboards.d.ts","sourceRoot":"","sources":["../src/dashboards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EACL,sCAAsC,EACtC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAA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AI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IACtG,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;CACrD,CAAC;AAEF,wEAAwE;AACxE,MAAM,MAAM,qBAAqB,GAC7B,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC,GACtC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,CAAC,GACpE,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC,GAClD,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;AAE/C,iFAAiF;AACjF,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,GAAG;IAC1E,IAAI,EAAE;QAAE,OAAO,EAAE,qBAAqB,EAAE,CAAA;KAAE,EAAE,CAAC;CAC9C,CAAC;AAUF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAInC,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAUrC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { c as toObservabilityDashboard, d as zodIssues, i as createObservabilityWidgetInputSchema, l as toObservabilityWidget, r as createObservabilityDraftSchemas, s as observabilityWidgetInputSchema, t as OBSERVABILITY_CATALOG_MAX_METRIC_NAMES, u as widgetIssues } from "./observability-dashboard-BH7Qi5Nh.js";
1
+ import { c as toObservabilityDashboard, d as zodIssues, i as createObservabilityWidgetInputSchema, l as toObservabilityWidget, r as createObservabilityDraftSchemas, s as observabilityWidgetInputSchema, t as OBSERVABILITY_CATALOG_MAX_METRIC_NAMES, u as widgetIssues } from "./observability-dashboard-BsPT3Mon.js";
2
2
  import { dashboardDefinitionSchema, dashboardWidgetSchema } from "@mastra/core/storage/dashboards";
3
3
  import { z } from "zod/v4";
4
4
  // src/dashboards.ts
@@ -1 +1 @@
1
- {"version":3,"file":"dashboards.js","names":[],"sources":["../src/dashboards.ts"],"sourcesContent":["import { dashboardDefinitionSchema, dashboardWidgetSchema } from '@mastra/core/storage/dashboards';\nimport type {\n DashboardColumn,\n DashboardDefinition,\n DashboardWidget,\n DashboardWidgetView,\n} from '@mastra/core/storage/dashboards';\nimport { z } from 'zod/v4';\nimport { widgetIssues, zodIssues } from './dashboard-views';\nimport type { WidgetIssue } from './dashboard-views';\n\nexport {\n OBSERVABILITY_CATALOG_MAX_METRIC_NAMES,\n createObservabilityDraftSchemas,\n createObservabilityWidgetInputSchema,\n observabilityWidgetInputSchema,\n toObservabilityDashboard,\n toObservabilityWidget,\n} from './observability-dashboard';\nexport type {\n ObservabilityCatalog,\n ObservabilityDashboardDraft,\n ObservabilityDashboardInput,\n ObservabilityDashboardOpened,\n ObservabilityDraftOptions,\n ObservabilityDraftSchemas,\n ObservabilityWidgetDraft,\n} from './observability-dashboard';\n\n/*\n * Dashboards to store, and the drafts a model writes them as. The stored format is checked at least\n * as strictly as the dashboard renderer checks it: core's `dashboardDefinitionSchema`, then each\n * widget's kind, each view's options and each table column's options, then what each kind checks\n * beyond its schema (queries an option names, labels, ...). It also rejects columns on views that\n * aren't tables, which the renderer ignores. A draft (`createObservabilityDraftSchemas`) converts to\n * a widget or definition that passes those checks.\n *\n * The types are written out here rather than inferred, so this entry's declarations need nothing\n * beyond `@mastra/core` and `zod`; the package's tests check they match the kinds' own schemas.\n */\n\n/** A number read from one of the view's queries, named by its `id`. */\nexport type DashboardValueRef = {\n query: string;\n field?: 'value' | 'estimatedCost';\n measure?: string;\n percentile?: number;\n groups?: string[];\n notGroups?: string[];\n};\n\n/** A number a view shows: a query's value, or a fixed combination of several. */\nexport type DashboardValueExpr =\n | DashboardValueRef\n | { const: number }\n | { sum: DashboardValueExpr[] }\n | { minus: [DashboardValueExpr, DashboardValueExpr] }\n | { ratio: { of: DashboardValueExpr; over: DashboardValueExpr } }\n | { max: DashboardValueExpr[] }\n | { coalesce: DashboardValueExpr[] };\n\nexport type DashboardValueFormat = 'count' | 'usd' | 'duration' | 'percent' | 'score';\n\nexport type DashboardChartColor = 'green' | 'sky' | 'violet' | 'teal' | 'indigo' | 'warning' | 'error' | 'neutral';\n\n/** A `kpis` view's options: a row of headline numbers. */\nexport type DashboardKpisOptions = {\n items: {\n label: string;\n icon: 'bot' | 'coins' | 'hash' | 'threads';\n format: 'count' | 'usd';\n value: DashboardValueExpr;\n detail: string;\n lowerIsBetter?: boolean;\n }[];\n};\n\n/** A `table` column's options, told apart by `type`. */\nexport type DashboardTableColumnOptions =\n | {\n type: 'name';\n as?: 'project';\n unnamed?: string;\n mark?: { icon: 'agent' | 'workflow' | 'tool' } | { providerDimension: string };\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'dimension';\n dimension: string;\n as?: 'project';\n query?: string;\n joinOn?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'value';\n value: DashboardValueExpr;\n format: 'count' | 'usd' | 'duration' | 'percent';\n emphasis?: boolean;\n missing?: number;\n additive?: boolean;\n better?: 'higher' | 'lower';\n unpricedWhen?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | { type: 'change'; description?: string };\n\n/** A `table` view's options: one row per group. */\nexport type DashboardTableOptions = {\n groupBy: string[];\n defaultSort: { column: string; direction: 'asc' | 'desc' };\n pageSize?: number;\n emptyMessage: string;\n ariaLabel?: string;\n hideUnnamed?: boolean;\n dropped?: boolean;\n openWhen?: { minRows: number };\n rowDrilldown?: {\n fields: Record<\n string,\n | 'projectId'\n | 'entityName'\n | 'threadId'\n | 'resourceId'\n | 'environment'\n | 'sessionId'\n | 'userId'\n | 'model'\n | 'provider'\n >;\n spanTypes?: string[];\n keepEmpty?: boolean;\n };\n};\n\n/** A `timeseries` view's options: values per time bucket as stacked bars or lines. */\nexport type DashboardTimeseriesOptions = {\n chart: 'stackedBar' | 'line';\n format: DashboardValueFormat;\n axis?: boolean;\n series: {\n dataKey: string;\n label: string;\n color: DashboardChartColor;\n emphasis?: boolean;\n value: DashboardValueExpr;\n rangeTotal?: DashboardValueExpr;\n round?: boolean;\n }[];\n buckets?: 'chart' | 'api';\n totals?: string[];\n hideEmpty?: boolean;\n emphasizeFirst?: boolean;\n xLabels?: 'edges';\n flatYDomain?: [number, number];\n yDomain?: [number, number];\n total?: { value: 'total' | { peak: string } | DashboardValueExpr; format?: DashboardValueFormat };\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n emptyWhenZero?: DashboardValueExpr;\n};\n\n/** A `scores` view's options: one line per scorer. */\nexport type DashboardScoresOptions = {\n average: string;\n series: string;\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n};\n\n/** A table column whose options its kind accepts. */\nexport type StrictDashboardTableColumn = Omit<DashboardColumn, 'options'> & { options: DashboardTableColumnOptions };\n\n/** A view whose options its kind accepts. Only table views have columns. */\nexport type StrictDashboardWidgetView<Options, Column = never> = Omit<DashboardWidgetView, 'options' | 'columns'> & {\n options: Options;\n columns?: Column[];\n};\n\ntype WidgetOf<Kind extends string, Options, Column = never> = Omit<DashboardWidget, 'kind' | 'views'> & {\n kind: Kind;\n views: StrictDashboardWidgetView<Options, Column>[];\n};\n\n/** A widget of a built-in kind that the dashboard renderer can draw. */\nexport type StrictDashboardWidget =\n | WidgetOf<'kpis', DashboardKpisOptions>\n | WidgetOf<'table', DashboardTableOptions, StrictDashboardTableColumn>\n | WidgetOf<'timeseries', DashboardTimeseriesOptions>\n | WidgetOf<'scores', DashboardScoresOptions>;\n\n/** A dashboard definition whose every widget the dashboard renderer can draw. */\nexport type StrictDashboardDefinition = Omit<DashboardDefinition, 'rows'> & {\n rows: { widgets: StrictDashboardWidget[] }[];\n};\n\ntype Issue = WidgetIssue;\n\nconst report = (ctx: z.RefinementCtx, issues: Issue[], prefix: PropertyKey[] = []) => {\n for (const issue of issues) {\n ctx.addIssue({ code: 'custom', path: [...prefix, ...issue.path], message: issue.message });\n }\n};\n\n/**\n * One widget as the dashboard renderer draws it: core's `dashboardWidgetSchema`, a built-in kind,\n * options that kind accepts, and nothing else it would reject, at every scope the widget shows at.\n * It also rejects columns on views that aren't tables: the renderer ignores them, but they usually\n * mean the widget was written as another kind. Paths are relative to the widget. Unique widget ids, the widget count and the size limit are the\n * definition's to check, so check the whole definition with `strictDashboardDefinitionSchema` too\n * before storing it.\n *\n * Parsing returns the widget as given: no defaults are filled in. It's a validator, not a schema to\n * show a model: its JSON schema is empty. Its input type is `unknown`, so check with it where you\n * store, not in a request schema.\n */\nexport const strictDashboardWidgetSchema: z.ZodType<StrictDashboardWidget> = z.unknown().superRefine((value, ctx) => {\n const core = dashboardWidgetSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n report(ctx, widgetIssues(value as DashboardWidget));\n}) as z.ZodType<StrictDashboardWidget>;\n\n/**\n * A dashboard definition as the dashboard renderer draws it: core's `dashboardDefinitionSchema`,\n * then every widget as `strictDashboardWidgetSchema` checks it, paths from the definition (e.g.\n * `rows.0.widgets.1.views.0.options.series.0.value`; problems a kind finds point at the view).\n * Check every definition with it before storing it, so each stored widget renders. Widgets of a\n * host's own kinds are rejected: check those with core's schema.\n *\n * Parsing returns the definition as given: no defaults are filled in. It's a validator, not a\n * schema to show a model: its JSON schema is empty. Its input type is `unknown`, so check with it\n * where you store, not in a request schema.\n */\nexport const strictDashboardDefinitionSchema: z.ZodType<StrictDashboardDefinition> = z\n .unknown()\n .superRefine((value, ctx) => {\n const core = dashboardDefinitionSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n for (const [r, row] of (value as DashboardDefinition).rows.entries()) {\n for (const [w, widget] of row.widgets.entries()) {\n report(ctx, widgetIssues(widget), ['rows', r, 'widgets', w]);\n }\n }\n }) as z.ZodType<StrictDashboardDefinition>;\n"],"mappings":";;;;AA4MA,MAAM,UAAU,KAAsB,QAAiB,SAAwB,CAAC,MAAM;CACpF,KAAK,MAAM,SAAS,QAClB,IAAI,SAAS;EAAE,MAAM;EAAU,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;EAAG,SAAS,MAAM;CAAQ,CAAC;AAE7F;;;;;;;;;;;;;AAcA,MAAa,8BAAgE,EAAE,QAAQ,CAAC,CAAC,aAAa,OAAO,QAAQ;CACnH,MAAM,OAAO,sBAAsB,UAAU,KAAK;CAClD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAK,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,OAAO,KAAK,aAAa,KAAwB,CAAC;AACpD,CAAC;;;;;;;;;;;;AAaD,MAAa,kCAAwE,EAClF,QAAQ,CAAC,CACT,aAAa,OAAO,QAAQ;CAC3B,MAAM,OAAO,0BAA0B,UAAU,KAAK;CACtD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAK,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,KAAK,MAAM,CAAC,GAAG,QAAS,MAA8B,KAAK,QAAQ,GACjE,KAAK,MAAM,CAAC,GAAG,WAAW,IAAI,QAAQ,QAAQ,GAC5C,OAAO,KAAK,aAAa,MAAM,GAAG;EAAC;EAAQ;EAAG;EAAW;CAAC,CAAC;AAGjE,CAAC"}
1
+ {"version":3,"file":"dashboards.js","names":[],"sources":["../src/dashboards.ts"],"sourcesContent":["import { dashboardDefinitionSchema, dashboardWidgetSchema } from '@mastra/core/storage/dashboards';\nimport type {\n DashboardColumn,\n DashboardDefinition,\n DashboardWidget,\n DashboardWidgetView,\n} from '@mastra/core/storage/dashboards';\nimport { z } from 'zod/v4';\nimport { widgetIssues, zodIssues } from './dashboard-views';\nimport type { WidgetIssue } from './dashboard-views';\n\nexport {\n OBSERVABILITY_CATALOG_MAX_METRIC_NAMES,\n createObservabilityDraftSchemas,\n createObservabilityWidgetInputSchema,\n observabilityWidgetInputSchema,\n toObservabilityDashboard,\n toObservabilityWidget,\n} from './observability-dashboard';\nexport type {\n ObservabilityCatalog,\n ObservabilityDashboardDraft,\n ObservabilityDashboardInput,\n ObservabilityDashboardOpened,\n ObservabilityDraftOptions,\n ObservabilityDraftSchemas,\n ObservabilityWidgetDraft,\n} from './observability-dashboard';\n\n/*\n * Dashboards to store, and the drafts a model writes them as. The stored format is checked at least\n * as strictly as the dashboard renderer checks it: core's `dashboardDefinitionSchema`, then each\n * widget's kind, each view's options and each table column's options, then what each kind checks\n * beyond its schema (queries an option names, labels, ...). It also rejects columns on views that\n * aren't tables, which the renderer ignores. A draft (`createObservabilityDraftSchemas`) converts to\n * a widget or definition that passes those checks.\n *\n * The types are written out here rather than inferred, so this entry's declarations need nothing\n * beyond `@mastra/core` and `zod`; the package's tests check they match the kinds' own schemas.\n */\n\n/** A number read from one of the view's queries, named by its `id`. */\nexport type DashboardValueRef = {\n query: string;\n field?: 'value' | 'estimatedCost';\n measure?: string;\n percentile?: number;\n groups?: string[];\n notGroups?: string[];\n};\n\n/** A number a view shows: a query's value, or a fixed combination of several. */\nexport type DashboardValueExpr =\n | DashboardValueRef\n | { const: number }\n | { sum: DashboardValueExpr[] }\n | { minus: [DashboardValueExpr, DashboardValueExpr] }\n | { ratio: { of: DashboardValueExpr; over: DashboardValueExpr } }\n | { max: DashboardValueExpr[] }\n | { coalesce: DashboardValueExpr[] };\n\nexport type DashboardValueFormat = 'count' | 'usd' | 'duration' | 'percent' | 'score';\n\nexport type DashboardChartColor =\n | 'green'\n | 'sky'\n | 'violet'\n | 'teal'\n | 'indigo'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'blue'\n | 'orange'\n | 'pink'\n | 'yellow'\n | 'red'\n | 'purple';\n\n/** A `kpis` view's options: a row of headline numbers. */\nexport type DashboardKpisOptions = {\n items: {\n label: string;\n icon?: 'bot' | 'coins' | 'hash' | 'threads';\n format: DashboardValueFormat;\n value: DashboardValueExpr;\n detail?: string;\n lowerIsBetter?: boolean;\n }[];\n};\n\n/** A `table` column's options, told apart by `type`. */\nexport type DashboardTableColumnOptions =\n | {\n type: 'name';\n as?: 'project';\n unnamed?: string;\n mark?: { icon: 'agent' | 'workflow' | 'tool' } | { providerDimension: string };\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'dimension';\n dimension: string;\n as?: 'project';\n query?: string;\n joinOn?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | {\n type: 'value';\n value: DashboardValueExpr;\n format: 'count' | 'usd' | 'duration' | 'percent';\n emphasis?: boolean;\n missing?: number;\n additive?: boolean;\n better?: 'higher' | 'lower';\n unpricedWhen?: string;\n description?: string;\n width?: string;\n sortable?: boolean;\n }\n | { type: 'change'; description?: string };\n\n/** A `table` view's options: one row per group. */\nexport type DashboardTableOptions = {\n groupBy: string[];\n defaultSort: { column: string; direction: 'asc' | 'desc' };\n pageSize?: number;\n emptyMessage?: string;\n ariaLabel?: string;\n hideUnnamed?: boolean;\n dropped?: boolean;\n openWhen?: { minRows: number };\n rowDrilldown?: {\n fields: Record<\n string,\n | 'projectId'\n | 'entityName'\n | 'threadId'\n | 'resourceId'\n | 'environment'\n | 'sessionId'\n | 'userId'\n | 'model'\n | 'provider'\n >;\n spanTypes?: string[];\n keepEmpty?: boolean;\n };\n};\n\n/** A `timeseries` view's options: values per time bucket as stacked bars or lines. */\nexport type DashboardTimeseriesOptions = {\n chart: 'stackedBar' | 'line';\n format: DashboardValueFormat;\n axis?: boolean;\n series: {\n dataKey: string;\n label: string;\n color?: DashboardChartColor;\n emphasis?: boolean;\n value: DashboardValueExpr;\n rangeTotal?: DashboardValueExpr;\n round?: boolean;\n }[];\n buckets?: 'chart' | 'api';\n totals?: string[];\n hideEmpty?: boolean;\n emphasizeFirst?: boolean;\n xLabels?: 'edges';\n flatYDomain?: [number, number];\n yDomain?: [number, number];\n total?: { value: 'total' | { peak: string } | DashboardValueExpr; format?: DashboardValueFormat };\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n emptyWhenZero?: DashboardValueExpr;\n};\n\n/** A `scores` view's options: one line per scorer. */\nexport type DashboardScoresOptions = {\n average: string;\n series: string;\n /** @deprecated Accepted so saved definitions still parse. */\n emptyMessage?: string;\n};\n\n/** A table column whose options its kind accepts. */\nexport type StrictDashboardTableColumn = Omit<DashboardColumn, 'options'> & { options: DashboardTableColumnOptions };\n\n/** A view whose options its kind accepts. Only table views have columns. */\nexport type StrictDashboardWidgetView<Options, Column = never> = Omit<DashboardWidgetView, 'options' | 'columns'> & {\n options: Options;\n columns?: Column[];\n};\n\ntype WidgetOf<Kind extends string, Options, Column = never> = Omit<DashboardWidget, 'kind' | 'views'> & {\n kind: Kind;\n views: StrictDashboardWidgetView<Options, Column>[];\n};\n\n/** A widget of a built-in kind that the dashboard renderer can draw. */\nexport type StrictDashboardWidget =\n | WidgetOf<'kpis', DashboardKpisOptions>\n | WidgetOf<'table', DashboardTableOptions, StrictDashboardTableColumn>\n | WidgetOf<'timeseries', DashboardTimeseriesOptions>\n | WidgetOf<'scores', DashboardScoresOptions>;\n\n/** A dashboard definition whose every widget the dashboard renderer can draw. */\nexport type StrictDashboardDefinition = Omit<DashboardDefinition, 'rows'> & {\n rows: { widgets: StrictDashboardWidget[] }[];\n};\n\ntype Issue = WidgetIssue;\n\nconst report = (ctx: z.RefinementCtx, issues: Issue[], prefix: PropertyKey[] = []) => {\n for (const issue of issues) {\n ctx.addIssue({ code: 'custom', path: [...prefix, ...issue.path], message: issue.message });\n }\n};\n\n/**\n * One widget as the dashboard renderer draws it: core's `dashboardWidgetSchema`, a built-in kind,\n * options that kind accepts, and nothing else it would reject, at every scope the widget shows at.\n * It also rejects columns on views that aren't tables: the renderer ignores them, but they usually\n * mean the widget was written as another kind. Paths are relative to the widget. Unique widget ids, the widget count and the size limit are the\n * definition's to check, so check the whole definition with `strictDashboardDefinitionSchema` too\n * before storing it.\n *\n * Parsing returns the widget as given: no defaults are filled in. It's a validator, not a schema to\n * show a model: its JSON schema is empty. Its input type is `unknown`, so check with it where you\n * store, not in a request schema.\n */\nexport const strictDashboardWidgetSchema: z.ZodType<StrictDashboardWidget> = z.unknown().superRefine((value, ctx) => {\n const core = dashboardWidgetSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n report(ctx, widgetIssues(value as DashboardWidget));\n}) as z.ZodType<StrictDashboardWidget>;\n\n/**\n * A dashboard definition as the dashboard renderer draws it: core's `dashboardDefinitionSchema`,\n * then every widget as `strictDashboardWidgetSchema` checks it, paths from the definition (e.g.\n * `rows.0.widgets.1.views.0.options.series.0.value`; problems a kind finds point at the view).\n * Check every definition with it before storing it, so each stored widget renders. Widgets of a\n * host's own kinds are rejected: check those with core's schema.\n *\n * Parsing returns the definition as given: no defaults are filled in. It's a validator, not a\n * schema to show a model: its JSON schema is empty. Its input type is `unknown`, so check with it\n * where you store, not in a request schema.\n */\nexport const strictDashboardDefinitionSchema: z.ZodType<StrictDashboardDefinition> = z\n .unknown()\n .superRefine((value, ctx) => {\n const core = dashboardDefinitionSchema.safeParse(value);\n if (!core.success) return report(ctx, zodIssues(core.error, []));\n for (const [r, row] of (value as DashboardDefinition).rows.entries()) {\n for (const [w, widget] of row.widgets.entries()) {\n report(ctx, widgetIssues(widget), ['rows', r, 'widgets', w]);\n }\n }\n }) as z.ZodType<StrictDashboardDefinition>;\n"],"mappings":";;;;AA0NA,MAAM,UAAU,KAAsB,QAAiB,SAAwB,CAAC,MAAM;CACpF,KAAK,MAAM,SAAS,QAClB,IAAI,SAAS;EAAE,MAAM;EAAU,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;EAAG,SAAS,MAAM;CAAQ,CAAC;AAE7F;;;;;;;;;;;;;AAcA,MAAa,8BAAgE,EAAE,QAAQ,CAAC,CAAC,aAAa,OAAO,QAAQ;CACnH,MAAM,OAAO,sBAAsB,UAAU,KAAK;CAClD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAK,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,OAAO,KAAK,aAAa,KAAwB,CAAC;AACpD,CAAC;;;;;;;;;;;;AAaD,MAAa,kCAAwE,EAClF,QAAQ,CAAC,CACT,aAAa,OAAO,QAAQ;CAC3B,MAAM,OAAO,0BAA0B,UAAU,KAAK;CACtD,IAAI,CAAC,KAAK,SAAS,OAAO,OAAO,KAAK,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC;CAC/D,KAAK,MAAM,CAAC,GAAG,QAAS,MAA8B,KAAK,QAAQ,GACjE,KAAK,MAAM,CAAC,GAAG,WAAW,IAAI,QAAQ,QAAQ,GAC5C,OAAO,KAAK,aAAa,MAAM,GAAG;EAAC;EAAQ;EAAG;EAAW;CAAC,CAAC;AAGjE,CAAC"}