@gooddata/sdk-backend-spi 11.36.0-alpha.1 → 11.36.0-alpha.3

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";
@@ -1,4 +1,4 @@
1
- import { type ILlmEndpointOpenAI, type LlmEndpointOpenAIPatch, type LlmEndpointTestResults } from "@gooddata/sdk-model";
1
+ import { type ILlmEndpointOpenAI, type LlmEndpointOpenAIPatch } from "@gooddata/sdk-model";
2
2
  import { type IPagedResource } from "../../common/paging.js";
3
3
  /**
4
4
  * Service to query LLM endpoints.
@@ -105,12 +105,4 @@ export interface IOrganizationLlmEndpointsService {
105
105
  * @returns Promise resolved when the llm endpoint is patched.
106
106
  */
107
107
  patchLlmEndpoint(endpoint: LlmEndpointOpenAIPatch, token?: string): Promise<ILlmEndpointOpenAI>;
108
- /**
109
- * Test existing llm endpoint
110
- *
111
- * @param endpoint - definition of the llm endpoint
112
- * @param token - token for the llm endpoint, if applicable
113
- * @returns Promise resolved with test results.
114
- */
115
- testLlmEndpoint(endpoint: Partial<LlmEndpointOpenAIPatch>, token?: string): Promise<LlmEndpointTestResults>;
116
108
  }
@@ -69,6 +69,7 @@ import { IDataSourcePermissionAssignment } from '@gooddata/sdk-model';
69
69
  import type { IDateFilter } from '@gooddata/sdk-model';
70
70
  import { IDateFilterConfig } from '@gooddata/sdk-model';
71
71
  import { IDateHierarchyTemplate } from '@gooddata/sdk-model';
72
+ import { IdentifierRef } from '@gooddata/sdk-model';
72
73
  import { IDimension } from '@gooddata/sdk-model';
73
74
  import { IDimensionDescriptor } from '@gooddata/sdk-model';
74
75
  import { IEntitlementDescriptor } from '@gooddata/sdk-model';
@@ -161,7 +162,6 @@ import { IWorkspaceSettings } from '@gooddata/sdk-model';
161
162
  import { IWorkspaceUser } from '@gooddata/sdk-model';
162
163
  import { IWorkspaceUserGroup } from '@gooddata/sdk-model';
163
164
  import { LlmEndpointOpenAIPatch } from '@gooddata/sdk-model';
164
- import { LlmEndpointTestResults } from '@gooddata/sdk-model';
165
165
  import { LlmProviderListModelsResults } from '@gooddata/sdk-model';
166
166
  import { LlmProviderPatch } from '@gooddata/sdk-model';
167
167
  import { LlmProviderTestResults } from '@gooddata/sdk-model';
@@ -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
  /**
@@ -5642,14 +5634,6 @@ export declare interface IOrganizationLlmEndpointsService {
5642
5634
  * @returns Promise resolved when the llm endpoint is patched.
5643
5635
  */
5644
5636
  patchLlmEndpoint(endpoint: LlmEndpointOpenAIPatch, token?: string): Promise<ILlmEndpointOpenAI>;
5645
- /**
5646
- * Test existing llm endpoint
5647
- *
5648
- * @param endpoint - definition of the llm endpoint
5649
- * @param token - token for the llm endpoint, if applicable
5650
- * @returns Promise resolved with test results.
5651
- */
5652
- testLlmEndpoint(endpoint: Partial<LlmEndpointOpenAIPatch>, token?: string): Promise<LlmEndpointTestResults>;
5653
5637
  }
5654
5638
 
5655
5639
  /**
@@ -6846,13 +6830,13 @@ export declare interface IReferencesOption {
6846
6830
  * @alpha
6847
6831
  */
6848
6832
  export declare interface IReferencesResult {
6849
- nodes: (ObjRef & {
6833
+ nodes: (IdentifierRef & {
6850
6834
  title: string;
6851
6835
  isRoot?: boolean;
6852
6836
  })[];
6853
6837
  edges: {
6854
- from: ObjRef;
6855
- to: ObjRef;
6838
+ from: IdentifierRef;
6839
+ to: IdentifierRef;
6856
6840
  }[];
6857
6841
  }
6858
6842
 
@@ -6860,7 +6844,7 @@ export declare interface IReferencesResult {
6860
6844
  * @alpha
6861
6845
  */
6862
6846
  export declare interface IReferencesService {
6863
- getReferences(root: ObjRef, opts?: IReferencesOption): Promise<IReferencesResult>;
6847
+ getReferences(root: IdentifierRef | IdentifierRef[], opts?: IReferencesOption): Promise<IReferencesResult>;
6864
6848
  }
6865
6849
 
6866
6850
  /**
@@ -6895,7 +6879,7 @@ export declare function isAnalyticalBackendError(obj: unknown): obj is Analytica
6895
6879
  * Is chat conversation error
6896
6880
  * @internal
6897
6881
  */
6898
- export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError | IChatSuggestionsItem>): item is IChatConversationError;
6882
+ export declare function isChatConversationError(item: Partial<IChatConversationItem | IChatConversationError>): item is IChatConversationError;
6899
6883
 
6900
6884
  /**
6901
6885
  * Is chat conversation item
@@ -6957,12 +6941,6 @@ export declare function isChatConversationVisualisationContent(content: IChatCon
6957
6941
  */
6958
6942
  export declare function isChatConversationWhatIfContent(content: IChatConversationMultipartPart): content is IChatConversationWhatIfContent;
6959
6943
 
6960
- /**
6961
- * Is chat conversation item
6962
- * @internal
6963
- */
6964
- export declare function isChatSuggestionsItem(item: unknown): item is IChatSuggestionsItem;
6965
-
6966
6944
  /**
6967
6945
  * Type guard checking whether input is an instance of {@link ContractExpired}
6968
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
@@ -1,4 +1,4 @@
1
- import { type ObjRef } from "@gooddata/sdk-model";
1
+ import { type IdentifierRef } from "@gooddata/sdk-model";
2
2
  /**
3
3
  * @alpha
4
4
  */
@@ -9,18 +9,18 @@ export interface IReferencesOption {
9
9
  * @alpha
10
10
  */
11
11
  export interface IReferencesResult {
12
- nodes: (ObjRef & {
12
+ nodes: (IdentifierRef & {
13
13
  title: string;
14
14
  isRoot?: boolean;
15
15
  })[];
16
16
  edges: {
17
- from: ObjRef;
18
- to: ObjRef;
17
+ from: IdentifierRef;
18
+ to: IdentifierRef;
19
19
  }[];
20
20
  }
21
21
  /**
22
22
  * @alpha
23
23
  */
24
24
  export interface IReferencesService {
25
- getReferences(root: ObjRef, opts?: IReferencesOption): Promise<IReferencesResult>;
25
+ getReferences(root: IdentifierRef | IdentifierRef[], opts?: IReferencesOption): Promise<IReferencesResult>;
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-spi",
3
- "version": "11.36.0-alpha.1",
3
+ "version": "11.36.0-alpha.3",
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.1"
27
+ "@gooddata/sdk-model": "11.36.0-alpha.3"
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.1",
52
- "@gooddata/eslint-config": "11.36.0-alpha.1"
51
+ "@gooddata/eslint-config": "11.36.0-alpha.3",
52
+ "@gooddata/oxlint-config": "11.36.0-alpha.3"
53
53
  },
54
54
  "scripts": {
55
55
  "_phase:build": "npm run build",