@sisense/sdk-ai-core 0.15.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,4 +28,5 @@ export declare const HEADER_TRACEPARENT = "traceparent";
28
28
  export declare const HEADER_INTERFACE_NAME = "x-interface-name";
29
29
  export declare const HEADER_FEATURE_NAME = "x-feature-name";
30
30
  export declare const HEADER_QUOTA_ID = "x-quota-id";
31
+ export declare const HEADER_LLM_MODEL_OVERRIDE = "x-llm-model-override";
31
32
  export declare const ALLOWED_HEADERS: string[];
@@ -63,6 +63,17 @@ export interface ColumnSummary {
63
63
  name: string;
64
64
  type?: string;
65
65
  }
66
+ /**
67
+ * Chart types whose axesMapping has a `breakBy` array meaning "no series
68
+ * breakdown" when empty (cartesianChartSchema + rangeChartSchema). Models
69
+ * (esp. under Bedrock JSON mode, without native structured-output
70
+ * enforcement) sometimes omit this key entirely rather than sending `[]` —
71
+ * used to default it in before the resulting dataOptions reach the chart
72
+ * widget, whose own runtime validator expects the key to be present.
73
+ */
74
+ export declare const BREAK_BY_CHART_TYPES: Set<string>;
75
+ /** Chart types whose axesMapping has breakByPoint/breakByColor (scatterChartSchema). */
76
+ export declare const BREAK_BY_POINT_COLOR_CHART_TYPES: Set<string>;
66
77
  export declare const chartType: z.ZodEnum<{
67
78
  area: "area";
68
79
  table: "table";
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod/v4';
2
2
  import { DataSourceField } from '@sisense/sdk-data';
3
3
  import { HttpClient } from '@sisense/sdk-rest-client';
4
- import { DataSourceFieldWithDescription } from '../../services/data-sources/data-sources-service';
4
+ import { DataSourceFieldWithDescription, DisplayNameConfig } from '../../services/data-sources/data-sources-service';
5
5
  import { MeasureItemJSON } from '@sisense/sdk-ui/analytics-composer';
6
6
  /**
7
7
  * Canonical tool description for getDataSourceFields — reusable by any host (sdk-assistant, MCP server, custom integrations).
@@ -24,6 +24,10 @@ export interface GetDataSourceFieldsContext {
24
24
  */
25
25
  toolCallId: string;
26
26
  httpClient?: HttpClient;
27
+ /**
28
+ * From host AppSettings (e.g. useAppSettings). Omit → fields/search (viewer-safe).
29
+ */
30
+ displayNameConfig?: DisplayNameConfig;
27
31
  }
28
32
  /**
29
33
  * Result from getDataSourceFieldsEngine (raw data for UI and for building the LLM summary).
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './utils/dev-debug';
15
15
  export * from './utils/utils';
16
16
  export * from './utils/http-client';
17
17
  export * from './utils/llm-client';
18
+ export * from './utils/llm-model-override';
18
19
  export * from './utils/user-action-tracking';
19
20
  export * from './singleton-clients';
20
21
  export * from './utils/create-stream-completion';