reveal-sdk-node-ai 1.2.0 → 1.2.2-rc.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.
- package/index.d.ts +48 -3
- package/native/AIPlugin.dll +0 -0
- package/native/Reveal.Sdk.AI.Abstractions.Debug.dll +0 -0
- package/native/Reveal.Sdk.AI.Anthropic.dll +0 -0
- package/native/Reveal.Sdk.AI.AspNetCore.dll +0 -0
- package/native/Reveal.Sdk.AI.AzureOpenAI.dll +0 -0
- package/native/Reveal.Sdk.AI.Google.dll +0 -0
- package/native/Reveal.Sdk.AI.OpenAI.dll +0 -0
- package/native/Reveal.Sdk.AI.dll +0 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -192,7 +192,8 @@ export interface MetadataManagerCallbacks {
|
|
|
192
192
|
getDatasourceList?: (userContext: any) => Promise<any[]>;
|
|
193
193
|
getMetadata?: (userContext: any, datasourceId: string, datasourceItemId: string | null, database: string, tables: string[], currentModel?: string | null) => Promise<any>;
|
|
194
194
|
getMetadataIndex?: (userContext: any, datasourceId: string, datasourceItemId?: string | null) => Promise<any>;
|
|
195
|
-
|
|
195
|
+
/** `alias` (optional) is the friendly table name the AI is shown instead of `name`. */
|
|
196
|
+
getTableSummaries?: (userContext: any, datasourceId: string, datasourceItemId: string | null, database: string, currentModel?: string | null) => Promise<Array<{ name: string; alias?: string | null; description?: string | null }>>;
|
|
196
197
|
deleteMetadata?: (userContext: any, datasourceId: string, datasourceItemId?: string | null) => Promise<void>;
|
|
197
198
|
getProgress?: (userContext: any, datasourceId: string, datasourceItemId?: string | null) => Promise<any>;
|
|
198
199
|
hasMetadata?: (userContext: any, datasourceId: string, datasourceItemId?: string | null) => Promise<boolean>;
|
|
@@ -207,16 +208,60 @@ export interface MetadataManagerCallbacks {
|
|
|
207
208
|
rankDatasourcesForPrompt?: (userContext: any, userPrompt: string, maxResults?: number) => Promise<any>;
|
|
208
209
|
}
|
|
209
210
|
|
|
211
|
+
/**
|
|
212
|
+
* One field (column) definition in the metadata catalog. Mirrors the C# `FieldSchema`.
|
|
213
|
+
* `Alias` is shown to the AI INSTEAD of `Name`; `expression` / `expressionType` / `dataType`
|
|
214
|
+
* define a virtual (calculated) field.
|
|
215
|
+
*/
|
|
216
|
+
export interface FieldSchemaJson {
|
|
217
|
+
Name: string;
|
|
218
|
+
Alias?: string | null;
|
|
219
|
+
Description?: string | null;
|
|
220
|
+
expression?: string | null;
|
|
221
|
+
expressionType?: 'CalculatedField' | 'PostCalculatedField';
|
|
222
|
+
dataType?: string | null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* One table (or cube) definition in the metadata catalog. Mirrors the C# `TableSchema`.
|
|
227
|
+
* `Alias` is the friendly name the AI is shown instead of `Name` (the SDK maps the AI's
|
|
228
|
+
* answer back to the real name).
|
|
229
|
+
*/
|
|
230
|
+
export interface TableSchemaJson {
|
|
231
|
+
Name: string;
|
|
232
|
+
Alias?: string | null;
|
|
233
|
+
Description?: string | null;
|
|
234
|
+
Fields?: FieldSchemaJson[] | null;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* One database (or XMLA catalog) definition in the metadata catalog. Mirrors the C#
|
|
239
|
+
* `DatabaseSchema`. `Name` accepts a single name or an array of names sharing the same
|
|
240
|
+
* configuration; `Alias` / `Description` then apply to each of them. `DiscoveryMode`
|
|
241
|
+
* 'Restricted' exposes only the listed tables.
|
|
242
|
+
*/
|
|
243
|
+
export interface DatabaseSchemaJson {
|
|
244
|
+
Name: string | string[];
|
|
245
|
+
Alias?: string | null;
|
|
246
|
+
Description?: string | null;
|
|
247
|
+
DiscoveryMode?: 'Default' | 'Restricted';
|
|
248
|
+
Tables?: TableSchemaJson[] | null;
|
|
249
|
+
}
|
|
250
|
+
|
|
210
251
|
/**
|
|
211
252
|
* One datasource definition in the metadata catalog. Property names match the C#
|
|
212
253
|
* `DatasourceSchema` (PascalCase); `Provider` is a Reveal provider enum name (e.g.
|
|
213
|
-
* 'SQLServer', 'PostgreSQL', 'MySQL', 'REST').
|
|
254
|
+
* 'SQLServer', 'PostgreSQL', 'MySQL', 'REST'). `Alias` is the friendly name the AI is
|
|
255
|
+
* shown instead of `Id` in ranking / selection prompts (useful when ids are opaque);
|
|
256
|
+
* `Description` is printed next to it.
|
|
214
257
|
*/
|
|
215
258
|
export interface DatasourceSchemaJson {
|
|
216
259
|
Id: string;
|
|
217
260
|
ItemId?: string | null;
|
|
218
261
|
Provider: string;
|
|
219
|
-
|
|
262
|
+
Alias?: string | null;
|
|
263
|
+
Description?: string | null;
|
|
264
|
+
Databases?: DatabaseSchemaJson[] | null;
|
|
220
265
|
}
|
|
221
266
|
|
|
222
267
|
/**
|
package/native/AIPlugin.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/native/Reveal.Sdk.AI.dll
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reveal-sdk-node-ai",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2-rc.1",
|
|
4
4
|
"description": "Reveal SDK AI plugin for Node.js — adds AI capabilities to Reveal BI dashboards",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"node": ">=16.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"reveal-sdk-node": ">=2.2.
|
|
26
|
+
"reveal-sdk-node": ">=2.2.1"
|
|
27
27
|
}
|
|
28
28
|
}
|