@gooddata/sdk-backend-spi 11.35.0-alpha.6 → 11.35.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.
- package/esm/index.d.ts +1 -1
- package/esm/sdk-backend-spi.d.ts +54 -0
- package/esm/workspace/genAI/index.d.ts +51 -1
- package/package.json +4 -4
package/esm/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type { IGetInsightOptions, IGetVisualizationClassesOptions, IWorkspaceIns
|
|
|
20
20
|
export type { ExportDefinitionOrdering, IExportDefinitionsQuery, IExportDefinitionsQueryOptions, IExportDefinitionsQueryResult, IGetExportDefinitionOptions, IWorkspaceExportDefinitionsService, ExportDefinitionQuerySortDirection, ExportDefinitionQuerySortProperty, ExportDefinitionQuerySort, } from "./workspace/exportDefinitions/index.js";
|
|
21
21
|
export { type IElementsQueryFactory, type IElementsQueryResult, type IElementsQuery, type IElementsQueryOptions, type IElementsQueryAttributeFilter, type IElementsQueryOptionsElementsByUri, type IElementsQueryOptionsElementsByValue, type IElementsQueryOptionsElementsByPrimaryDisplayFormValue, type ElementsQueryOptionsElementsSpecification, type IFilterElementsQuery, type FilterWithResolvableElements, isElementsQueryOptionsElementsByValue, isElementsQueryOptionsElementsByPrimaryDisplayFormValue, isValueBasedElementsQueryOptionsElements, } from "./workspace/attributes/elements/index.js";
|
|
22
22
|
export type { IExportConfig, IExportResult, IExportPdfConfig } from "./workspace/execution/export.js";
|
|
23
|
-
export { type AnalyticsCatalogGenerateTitleObjectType, type IAnalyticsCatalogGenerateTitleRequest, type IAnalyticsCatalogGenerateTitleResponse, type IAnalyticsCatalogTrendingObject, type IAnalyticsCatalogTrendingObjects, type IKnowledgeDocumentsService, type IKnowledgeDocumentMetadata, type ICreateKnowledgeDocumentRequest, type IUpsertKnowledgeDocumentRequest, type IDeleteKnowledgeDocumentResponse, type IPatchKnowledgeDocumentRequest, type IKnowledgeSearchResult, type IKnowledgeSearchStatistics, type ISearchKnowledgeResponse, type ISearchKnowledgeOptions, type IListKnowledgeDocumentsOptions, type IKnowledgeDocumentsPage, type AnalyticsCatalogGenerateDescriptionObjectType, type IAnalyticsCatalogGenerateDescriptionRequest, type IAnalyticsCatalogGenerateDescriptionResponse, type IGenAIService, type IAnalyticsCatalogService, type IAnalyticsCatalogTags, type IAnalyticsCatalogCreatedBy, type ISemanticSearchQuery, type ISemanticSearchResult, type IChatThread, type IChatThreadHistory, type IChatThreadQuery, type IGenAIChatEvaluation, type ISemanticQualityService, type IMemoryItemsService, type IMemoryCreatedByUsers, type IMemoryItemsQuery, type IMemoryItemsFilterOptions, type IMemoryItemsQueryResult, type IChatConversationError, type IChatConversationThread, type IChatConversationThreadQuery, type IChatConversation, type IChatConversationItem, type IChatConversationItemsQuery, type IChatConversationItemsQueryResult, type IChatConversationFeedback, type IChatConversations, type IChatConversationContent, type IChatConversationMultipartContent, type IChatConversationKeyDriverAnalysisContent, type IChatConversationWhatIfContent, type IChatConversationReasoningContent, type IChatConversationMultipartPart, type IChatConversationToolCallContent, type IChatConversationTextContent, type IChatConversationToolResultContent, type IChatConversationVisualisationContent, type IChatConversationSearchContent, type IChatKdaDefinition, type IChatWhatIfDefinition, type IChatWhatIfAdjustment, type IChatWhatIfScenario, type IChatSuggestion, type IChatSuggestionsItem, type IChatSuggestionsAction, isChatConversationError, isChatConversationItem, isChatConversationTextContent, isChatConversationReasoningContent, isChatConversationMultipartContent, isChatConversationToolCallContent, isChatConversationToolResultContent, isChatConversationVisualisationContent, isChatConversationKeyDriverAnalysisContent, isChatConversationWhatIfContent, isChatConversationSearchContent, isChatSuggestionsItem, } from "./workspace/genAI/index.js";
|
|
23
|
+
export { type AnalyticsCatalogGenerateTitleObjectType, type IAnalyticsCatalogGenerateTitleRequest, type IAnalyticsCatalogGenerateTitleResponse, type IAnalyticsCatalogTrendingObject, type IAnalyticsCatalogTrendingObjects, type IKnowledgeDocumentsService, type IKnowledgeDocumentMetadata, type ICreateKnowledgeDocumentRequest, type IUpsertKnowledgeDocumentRequest, type IDeleteKnowledgeDocumentResponse, type IPatchKnowledgeDocumentRequest, type IKnowledgeSearchResult, type IKnowledgeSearchStatistics, type ISearchKnowledgeResponse, type ISearchKnowledgeOptions, type IListKnowledgeDocumentsOptions, type IKnowledgeDocumentsPage, type AnalyticsCatalogGenerateDescriptionObjectType, type IAnalyticsCatalogGenerateDescriptionRequest, type IAnalyticsCatalogGenerateDescriptionResponse, type IGenAIService, type IDashboardSummaryRequest, type IDashboardSummary, type IDashboardSummaryIncludedVisualization, type IDashboardSummaryExcludedVisualization, type IAnalyticsCatalogService, type IAnalyticsCatalogTags, type IAnalyticsCatalogCreatedBy, type ISemanticSearchQuery, type ISemanticSearchResult, type IChatThread, type IChatThreadHistory, type IChatThreadQuery, type IGenAIChatEvaluation, type ISemanticQualityService, type IMemoryItemsService, type IMemoryCreatedByUsers, type IMemoryItemsQuery, type IMemoryItemsFilterOptions, type IMemoryItemsQueryResult, type IChatConversationError, type IChatConversationThread, type IChatConversationThreadQuery, type IChatConversation, type IChatConversationItem, type IChatConversationItemsQuery, type IChatConversationItemsQueryResult, type IChatConversationFeedback, type IChatConversations, type IChatConversationContent, type IChatConversationMultipartContent, type IChatConversationKeyDriverAnalysisContent, type IChatConversationWhatIfContent, type IChatConversationReasoningContent, type IChatConversationMultipartPart, type IChatConversationToolCallContent, type IChatConversationTextContent, type IChatConversationToolResultContent, type IChatConversationVisualisationContent, type IChatConversationSearchContent, type IChatKdaDefinition, type IChatWhatIfDefinition, type IChatWhatIfAdjustment, type IChatWhatIfScenario, type IChatSuggestion, type IChatSuggestionsItem, type IChatSuggestionsAction, isChatConversationError, isChatConversationItem, isChatConversationTextContent, isChatConversationReasoningContent, isChatConversationMultipartContent, isChatConversationToolCallContent, isChatConversationToolResultContent, isChatConversationVisualisationContent, isChatConversationKeyDriverAnalysisContent, isChatConversationWhatIfContent, isChatConversationSearchContent, isChatSuggestionsItem, } from "./workspace/genAI/index.js";
|
|
24
24
|
export type { IOrganizationGenAIService } from "./organization/genAI/index.js";
|
|
25
25
|
export type { IReferencesResult, IReferencesOption, IReferencesService, } from "./workspace/references/index.js";
|
|
26
26
|
export type { IWorkspaceStylingService } from "./workspace/styling/index.js";
|
package/esm/sdk-backend-spi.d.ts
CHANGED
|
@@ -2444,6 +2444,53 @@ export declare interface IDashboardsQuery {
|
|
|
2444
2444
|
*/
|
|
2445
2445
|
export declare type IDashboardsQueryResult = IPagedResource<IListedDashboard>;
|
|
2446
2446
|
|
|
2447
|
+
/**
|
|
2448
|
+
* Response payload for AI dashboard summarization.
|
|
2449
|
+
* @beta
|
|
2450
|
+
*/
|
|
2451
|
+
export declare interface IDashboardSummary {
|
|
2452
|
+
summary: string;
|
|
2453
|
+
filterContext: FilterContextItem[];
|
|
2454
|
+
visualizationsIncluded: IDashboardSummaryIncludedVisualization[];
|
|
2455
|
+
visualizationsExcluded: IDashboardSummaryExcludedVisualization[];
|
|
2456
|
+
generatedAt: string;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* A visualization excluded from the AI dashboard summary, along with the reason.
|
|
2461
|
+
* @beta
|
|
2462
|
+
*/
|
|
2463
|
+
export declare interface IDashboardSummaryExcludedVisualization {
|
|
2464
|
+
visualizationId: string;
|
|
2465
|
+
reason: string;
|
|
2466
|
+
title?: string | null;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* A visualization included in the AI dashboard summary.
|
|
2471
|
+
* @beta
|
|
2472
|
+
*/
|
|
2473
|
+
export declare interface IDashboardSummaryIncludedVisualization {
|
|
2474
|
+
visualizationId: string;
|
|
2475
|
+
title?: string | null;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* Request payload for AI dashboard summarization.
|
|
2480
|
+
* @beta
|
|
2481
|
+
*/
|
|
2482
|
+
export declare interface IDashboardSummaryRequest {
|
|
2483
|
+
dashboardId: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Visualizations to include in the summary. `null` means include all visualizations on the dashboard.
|
|
2486
|
+
*/
|
|
2487
|
+
visualizations: string[] | null;
|
|
2488
|
+
/**
|
|
2489
|
+
* Filter context to apply when generating the summary. `null` means use all dashboard filters.
|
|
2490
|
+
*/
|
|
2491
|
+
filterContext: FilterContextItem[] | null;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2447
2494
|
/**
|
|
2448
2495
|
* Result returned when the dashboard summary workflow is started.
|
|
2449
2496
|
*
|
|
@@ -3969,6 +4016,13 @@ export declare interface IGenAIService {
|
|
|
3969
4016
|
* Get check if LLM is configured.
|
|
3970
4017
|
*/
|
|
3971
4018
|
getLlmConfigured(): Promise<boolean>;
|
|
4019
|
+
/**
|
|
4020
|
+
* Generate an AI summary of a dashboard for the given visualizations and filter context.
|
|
4021
|
+
* @beta
|
|
4022
|
+
*/
|
|
4023
|
+
summarizeDashboard(request: IDashboardSummaryRequest, options?: {
|
|
4024
|
+
signal?: AbortSignal;
|
|
4025
|
+
}): Promise<IDashboardSummary>;
|
|
3972
4026
|
}
|
|
3973
4027
|
|
|
3974
4028
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DateAttributeGranularity, GenAIChatInteractionUserFeedback, GenAIChatInteractionUserVisualisation, GenAIObjectType, IAllowedRelationshipType, IAttribute, IFilter, IGenAIChangeAnalysisParams, IGenAIChatInteraction, IGenAIChatReasoning, IGenAIChatRouting, IGenAICreatedVisualizations, IGenAIFoundObjects, IGenAIUserContext, IInsight, IMeasure, IMemoryItemDefinition, IMemoryItemMetadataObject, ISemanticQualityIssuesCalculation, ISemanticQualityReport, ISemanticSearchRelationship, ISemanticSearchResult, ISemanticSearchResultItem, IUser, MemoryItemStrategy, ObjRef, ObjectOrigin, ObjectType } from "@gooddata/sdk-model";
|
|
1
|
+
import type { DateAttributeGranularity, FilterContextItem, GenAIChatInteractionUserFeedback, GenAIChatInteractionUserVisualisation, GenAIObjectType, IAllowedRelationshipType, IAttribute, IFilter, IGenAIChangeAnalysisParams, IGenAIChatInteraction, IGenAIChatReasoning, IGenAIChatRouting, IGenAICreatedVisualizations, IGenAIFoundObjects, IGenAIUserContext, IInsight, IMeasure, IMemoryItemDefinition, IMemoryItemMetadataObject, ISemanticQualityIssuesCalculation, ISemanticQualityReport, ISemanticSearchRelationship, ISemanticSearchResult, ISemanticSearchResultItem, IUser, MemoryItemStrategy, ObjRef, ObjectOrigin, ObjectType } from "@gooddata/sdk-model";
|
|
2
2
|
import type { IFilterBaseOptions } from "../../common/filtering.js";
|
|
3
3
|
import type { IPagedResource } from "../../common/paging.js";
|
|
4
4
|
/**
|
|
@@ -55,6 +55,56 @@ export interface IGenAIService {
|
|
|
55
55
|
* Get check if LLM is configured.
|
|
56
56
|
*/
|
|
57
57
|
getLlmConfigured(): Promise<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate an AI summary of a dashboard for the given visualizations and filter context.
|
|
60
|
+
* @beta
|
|
61
|
+
*/
|
|
62
|
+
summarizeDashboard(request: IDashboardSummaryRequest, options?: {
|
|
63
|
+
signal?: AbortSignal;
|
|
64
|
+
}): Promise<IDashboardSummary>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Request payload for AI dashboard summarization.
|
|
68
|
+
* @beta
|
|
69
|
+
*/
|
|
70
|
+
export interface IDashboardSummaryRequest {
|
|
71
|
+
dashboardId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Visualizations to include in the summary. `null` means include all visualizations on the dashboard.
|
|
74
|
+
*/
|
|
75
|
+
visualizations: string[] | null;
|
|
76
|
+
/**
|
|
77
|
+
* Filter context to apply when generating the summary. `null` means use all dashboard filters.
|
|
78
|
+
*/
|
|
79
|
+
filterContext: FilterContextItem[] | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* A visualization included in the AI dashboard summary.
|
|
83
|
+
* @beta
|
|
84
|
+
*/
|
|
85
|
+
export interface IDashboardSummaryIncludedVisualization {
|
|
86
|
+
visualizationId: string;
|
|
87
|
+
title?: string | null;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A visualization excluded from the AI dashboard summary, along with the reason.
|
|
91
|
+
* @beta
|
|
92
|
+
*/
|
|
93
|
+
export interface IDashboardSummaryExcludedVisualization {
|
|
94
|
+
visualizationId: string;
|
|
95
|
+
reason: string;
|
|
96
|
+
title?: string | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Response payload for AI dashboard summarization.
|
|
100
|
+
* @beta
|
|
101
|
+
*/
|
|
102
|
+
export interface IDashboardSummary {
|
|
103
|
+
summary: string;
|
|
104
|
+
filterContext: FilterContextItem[];
|
|
105
|
+
visualizationsIncluded: IDashboardSummaryIncludedVisualization[];
|
|
106
|
+
visualizationsExcluded: IDashboardSummaryExcludedVisualization[];
|
|
107
|
+
generatedAt: string;
|
|
58
108
|
}
|
|
59
109
|
/**
|
|
60
110
|
* Semantic search query.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-spi",
|
|
3
|
-
"version": "11.35.0-alpha.
|
|
3
|
+
"version": "11.35.0-alpha.7",
|
|
4
4
|
"description": "GoodData Backend SPI abstraction interfaces",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lodash-es": "^4.17.23",
|
|
25
25
|
"ts-invariant": "0.10.3",
|
|
26
26
|
"tslib": "2.8.1",
|
|
27
|
-
"@gooddata/sdk-model": "11.35.0-alpha.
|
|
27
|
+
"@gooddata/sdk-model": "11.35.0-alpha.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"oxlint-tsgolint": "0.11.4",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vitest": "4.1.0",
|
|
51
|
-
"@gooddata/
|
|
52
|
-
"@gooddata/
|
|
51
|
+
"@gooddata/eslint-config": "11.35.0-alpha.7",
|
|
52
|
+
"@gooddata/oxlint-config": "11.35.0-alpha.7"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"_phase:build": "npm run build",
|