@gooddata/sdk-backend-spi 11.36.0-alpha.2 → 11.36.0-alpha.6

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 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 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";
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 IChatSuggestions, isChatConversationError, isChatConversationItem, isChatConversationTextContent, isChatConversationReasoningContent, isChatConversationMultipartContent, isChatConversationToolCallContent, isChatConversationToolResultContent, isChatConversationVisualisationContent, isChatConversationKeyDriverAnalysisContent, isChatConversationWhatIfContent, isChatConversationSearchContent, } 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/index.js CHANGED
@@ -11,6 +11,6 @@
11
11
  */
12
12
  export { prepareExecution, } from "./backend/index.js";
13
13
  export { isElementsQueryOptionsElementsByValue, isElementsQueryOptionsElementsByPrimaryDisplayFormValue, isValueBasedElementsQueryOptionsElements, } from "./workspace/attributes/elements/index.js";
14
- export { isChatConversationError, isChatConversationItem, isChatConversationTextContent, isChatConversationReasoningContent, isChatConversationMultipartContent, isChatConversationToolCallContent, isChatConversationToolResultContent, isChatConversationVisualisationContent, isChatConversationKeyDriverAnalysisContent, isChatConversationWhatIfContent, isChatConversationSearchContent, isChatSuggestionsItem, } from "./workspace/genAI/index.js";
14
+ export { isChatConversationError, isChatConversationItem, isChatConversationTextContent, isChatConversationReasoningContent, isChatConversationMultipartContent, isChatConversationToolCallContent, isChatConversationToolResultContent, isChatConversationVisualisationContent, isChatConversationKeyDriverAnalysisContent, isChatConversationWhatIfContent, isChatConversationSearchContent, } from "./workspace/genAI/index.js";
15
15
  export { AnalyticalBackendError, NoDataError, DataTooLargeError, TimeoutError, ProtectedDataError, UnexpectedResponseError, UnexpectedError, NotSupported, NotImplemented, NotAuthenticated, LimitReached, ContractExpired, AbortError, isAnalyticalBackendError, isNoDataError, isDataTooLargeError, isProtectedDataError, isUnexpectedResponseError, isUnexpectedError, isNotSupported, isNotImplemented, isNotAuthenticated, isLimitReached, isContractExpired, AnalyticalBackendErrorTypes, isAbortError, } from "./errors/index.js";
16
16
  export { isDashboardLayoutEmpty, layoutWidgets, layoutWidgetsWithPaths, walkLayout, } from "./workspace/dashboards/utils.js";
@@ -1746,6 +1746,7 @@ export declare type IChatConversationKeyDriverAnalysisContent = {
1746
1746
  export declare type IChatConversationMultipartContent = {
1747
1747
  type: "multipart";
1748
1748
  parts: IChatConversationMultipartPart[];
1749
+ suggestions?: IChatSuggestions;
1749
1750
  };
1750
1751
 
1751
1752
  /**
@@ -1882,7 +1883,7 @@ export declare interface IChatConversationThreadQuery {
1882
1883
  /**
1883
1884
  * Execute the chat thread and stream the results.
1884
1885
  */
1885
- stream(): ReadableStream<IChatConversationItem | IChatConversationError | IChatSuggestionsItem>;
1886
+ stream(): ReadableStream<IChatConversationItem | IChatConversationError>;
1886
1887
  }
1887
1888
 
1888
1889
  /**
@@ -1948,23 +1949,14 @@ export declare type IChatSuggestion = {
1948
1949
  };
1949
1950
 
1950
1951
  /**
1951
- * Represents an action for chat suggestions, typically used within a chat interface
1952
- * or a search-based system to provide users with actionable suggestions.
1953
- * @internal
1954
- */
1955
- export declare type IChatSuggestionsAction = {
1956
- label: string;
1957
- query: string;
1958
- };
1959
-
1960
- /**
1961
- * GenAI Chat Suggestion Item
1952
+ * Represents AI-generated suggestions, which may include a follow-up question
1953
+ * and a list of actions with associated labels and queries.
1962
1954
  * @internal
1955
+ *
1963
1956
  */
1964
- export declare type IChatSuggestionsItem = {
1965
- type: "suggestions";
1966
- followUp?: string;
1967
- actions?: IChatSuggestionsAction[];
1957
+ export declare type IChatSuggestions = {
1958
+ followUpQuestion?: string;
1959
+ actions?: IChatSuggestion[];
1968
1960
  };
1969
1961
 
1970
1962
  /**
@@ -6887,7 +6879,7 @@ export declare function isAnalyticalBackendError(obj: unknown): obj is Analytica
6887
6879
  * Is chat conversation error
6888
6880
  * @internal
6889
6881
  */
6890
- export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError | IChatSuggestionsItem>): item is IChatConversationError;
6882
+ export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError>): item is IChatConversationError;
6891
6883
 
6892
6884
  /**
6893
6885
  * Is chat conversation item
@@ -6949,12 +6941,6 @@ export declare function isChatConversationVisualisationContent(content: IChatCon
6949
6941
  */
6950
6942
  export declare function isChatConversationWhatIfContent(content: IChatConversationMultipartPart): content is IChatConversationWhatIfContent;
6951
6943
 
6952
- /**
6953
- * Is chat conversation item
6954
- * @internal
6955
- */
6956
- export declare function isChatSuggestionsItem(item: unknown): item is IChatSuggestionsItem;
6957
-
6958
6944
  /**
6959
6945
  * Type guard checking whether input is an instance of {@link ContractExpired}
6960
6946
  *
@@ -752,7 +752,7 @@ export type IChatConversationError = {
752
752
  * Is chat conversation error
753
753
  * @internal
754
754
  */
755
- export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError | IChatSuggestionsItem>): item is IChatConversationError;
755
+ export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError>): item is IChatConversationError;
756
756
  /**
757
757
  * GenAI Chat Conversation item
758
758
  * @internal
@@ -772,29 +772,6 @@ export type IChatConversationItem = {
772
772
  * @internal
773
773
  */
774
774
  export declare function isChatConversationItem(item: unknown): item is IChatConversationItem;
775
- /**
776
- * GenAI Chat Suggestion Item
777
- * @internal
778
- */
779
- export type IChatSuggestionsItem = {
780
- type: "suggestions";
781
- followUp?: string;
782
- actions?: IChatSuggestionsAction[];
783
- };
784
- /**
785
- * Represents an action for chat suggestions, typically used within a chat interface
786
- * or a search-based system to provide users with actionable suggestions.
787
- * @internal
788
- */
789
- export type IChatSuggestionsAction = {
790
- label: string;
791
- query: string;
792
- };
793
- /**
794
- * Is chat conversation item
795
- * @internal
796
- */
797
- export declare function isChatSuggestionsItem(item: unknown): item is IChatSuggestionsItem;
798
775
  /**
799
776
  * GenAI Chat Conversation content
800
777
  * @internal
@@ -838,6 +815,7 @@ export declare function isChatConversationReasoningContent(content: IChatConvers
838
815
  export type IChatConversationMultipartContent = {
839
816
  type: "multipart";
840
817
  parts: IChatConversationMultipartPart[];
818
+ suggestions?: IChatSuggestions;
841
819
  };
842
820
  /**
843
821
  * Is chat conversation multipart content
@@ -1002,6 +980,16 @@ export type IChatSuggestion = {
1002
980
  label: string;
1003
981
  query: string;
1004
982
  };
983
+ /**
984
+ * Represents AI-generated suggestions, which may include a follow-up question
985
+ * and a list of actions with associated labels and queries.
986
+ * @internal
987
+ *
988
+ */
989
+ export type IChatSuggestions = {
990
+ followUpQuestion?: string;
991
+ actions?: IChatSuggestion[];
992
+ };
1005
993
  /**
1006
994
  * Chatbot conversations thread.
1007
995
  * @internal
@@ -1065,5 +1053,5 @@ export interface IChatConversationThreadQuery {
1065
1053
  /**
1066
1054
  * Execute the chat thread and stream the results.
1067
1055
  */
1068
- stream(): ReadableStream<IChatConversationItem | IChatConversationError | IChatSuggestionsItem>;
1056
+ stream(): ReadableStream<IChatConversationItem | IChatConversationError>;
1069
1057
  }
@@ -13,13 +13,6 @@ export function isChatConversationError(item) {
13
13
  export function isChatConversationItem(item) {
14
14
  return typeof item === "object" && item !== null && "type" in item && item.type === "item";
15
15
  }
16
- /**
17
- * Is chat conversation item
18
- * @internal
19
- */
20
- export function isChatSuggestionsItem(item) {
21
- return typeof item === "object" && item !== null && "type" in item && item.type === "suggestions";
22
- }
23
16
  /**
24
17
  * Is chat conversation text content
25
18
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-spi",
3
- "version": "11.36.0-alpha.2",
3
+ "version": "11.36.0-alpha.6",
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.36.0-alpha.2"
27
+ "@gooddata/sdk-model": "11.36.0-alpha.6"
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/oxlint-config": "11.36.0-alpha.2",
52
- "@gooddata/eslint-config": "11.36.0-alpha.2"
51
+ "@gooddata/eslint-config": "11.36.0-alpha.6",
52
+ "@gooddata/oxlint-config": "11.36.0-alpha.6"
53
53
  },
54
54
  "scripts": {
55
55
  "_phase:build": "npm run build",