@gooddata/sdk-ui-gen-ai 11.67.0-alpha.2 → 11.67.0-alpha.4
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/NOTICE +798 -2473
- package/README.md +58 -1
- package/esm/components/ConfigContext.d.ts +3 -1
- package/esm/components/ConfigContext.d.ts.map +1 -1
- package/esm/components/ConfigContext.js +14 -2
- package/esm/components/GenAIChat.d.ts +5 -0
- package/esm/components/GenAIChat.d.ts.map +1 -1
- package/esm/components/GenAIChat.js +2 -1
- package/esm/components/GenAIChatDialog.d.ts +2 -1
- package/esm/components/GenAIChatDialog.d.ts.map +1 -1
- package/esm/components/GenAIChatDialog.js +4 -4
- package/esm/components/GenAIChatDialogConnected.d.ts +6 -8
- package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
- package/esm/components/GenAIChatDialogConnected.js +5 -6
- package/esm/components/GenAIChatWrapper.js +1 -1
- package/esm/components/GenAIStandaloneInput.d.ts +6 -1
- package/esm/components/GenAIStandaloneInput.d.ts.map +1 -1
- package/esm/components/GenAIStandaloneInput.js +2 -2
- package/esm/components/GenAiConversations.js +1 -1
- package/esm/components/Input.d.ts.map +1 -1
- package/esm/components/Input.js +3 -1
- package/esm/components/customized/types.d.ts +22 -0
- package/esm/components/customized/types.d.ts.map +1 -1
- package/esm/components/hooks/useAppEventSync.d.ts +18 -0
- package/esm/components/hooks/useAppEventSync.d.ts.map +1 -0
- package/esm/components/hooks/useAppEventSync.js +35 -0
- package/esm/components/hooks/useSettingsClick.d.ts +1 -2
- package/esm/components/hooks/useSettingsClick.d.ts.map +1 -1
- package/esm/components/hooks/useSettingsClick.js +7 -20
- package/esm/components/intelligence/data/constants.d.ts +1 -1
- package/esm/components/intelligence/data/constants.js +1 -1
- package/esm/components/intelligence/detail/IntelligenceStepCarousel.d.ts +1 -1
- package/esm/components/intelligence/detail/IntelligenceStepCarousel.js +1 -1
- package/esm/components/intelligence/panel/IntelligenceDurationTokens.d.ts +1 -1
- package/esm/components/intelligence/panel/IntelligenceDurationTokens.js +1 -1
- package/esm/components/messages/ConversationItemContents.d.ts +1 -1
- package/esm/components/messages/ConversationItemContents.d.ts.map +1 -1
- package/esm/components/messages/ConversationItemContents.js +10 -1
- package/esm/components/messages/ItemsGroup.d.ts.map +1 -1
- package/esm/components/messages/ItemsGroup.js +4 -11
- package/esm/components/messages/contents/CustomHyperlink.js +2 -2
- package/esm/components/messages/conversationContents/ConversationErrorContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationErrorContent.js +1 -4
- package/esm/components/messages/conversationContents/ConversationPublisherDocumentContent.js +2 -2
- package/esm/components/messages/conversationContents/utils/errors.d.ts +4 -4
- package/esm/components/messages/conversationContents/utils/errors.js +4 -4
- package/esm/components/utils/groupUtility.d.ts +1 -0
- package/esm/components/utils/groupUtility.d.ts.map +1 -1
- package/esm/components/utils/groupUtility.js +11 -0
- package/esm/copilot/CopilotComposingOverlay.d.ts +4 -0
- package/esm/copilot/CopilotComposingOverlay.d.ts.map +1 -0
- package/esm/copilot/CopilotComposingOverlay.js +151 -0
- package/esm/copilot/CopilotInteractionComposing.d.ts +29 -0
- package/esm/copilot/CopilotInteractionComposing.d.ts.map +1 -0
- package/esm/copilot/CopilotInteractionComposing.js +39 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts +15 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts.map +1 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.js +11 -0
- package/esm/copilot/selectors.d.ts +4 -2
- package/esm/copilot/selectors.d.ts.map +1 -1
- package/esm/copilot/selectors.js +73 -14
- package/esm/copilot/transitions.d.ts.map +1 -1
- package/esm/copilot/transitions.js +264 -81
- package/esm/copilot/types.d.ts +10 -4
- package/esm/copilot/types.d.ts.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/internal.d.ts +1 -2
- package/esm/internal.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-AU.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-GB.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-US.localization-bundle.js +12 -4
- package/esm/localization/bundles/es-419.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-419.localization-bundle.js +4 -2
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-ES.localization-bundle.js +4 -2
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.js +4 -2
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.js +4 -2
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.js +4 -2
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/id-ID.localization-bundle.js +4 -2
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/it-IT.localization-bundle.js +4 -2
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.js +4 -2
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.js +4 -2
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.js +4 -2
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.js +4 -2
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.js +4 -2
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.js +4 -2
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.js +4 -2
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.js +4 -2
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/th-TH.localization-bundle.js +4 -2
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.js +4 -2
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.js +4 -2
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +4 -2
- package/esm/sdk-ui-gen-ai.d.ts +85 -51
- package/esm/store/events.d.ts +6 -45
- package/esm/store/events.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.js +2 -0
- package/esm/store/sideEffects/onEvent.d.ts +11 -3
- package/esm/store/sideEffects/onEvent.d.ts.map +1 -1
- package/esm/store/sideEffects/onEvent.js +32 -25
- package/esm/utils.d.ts +0 -4
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js +3 -23
- package/package.json +28 -29
- package/styles/css/copilotInteractionComposing.css +94 -0
- package/styles/css/copilotInteractionComposing.css.map +1 -0
- package/styles/css/input.css +4 -4
- package/styles/css/main.css +97 -4
- package/styles/css/main.css.map +1 -1
- package/styles/scss/copilotInteractionComposing.scss +106 -0
- package/styles/scss/input.scss +1 -1
- package/styles/scss/main.scss +1 -0
- package/esm/components/hooks/useDashboardSavedSync.d.ts +0 -13
- package/esm/components/hooks/useDashboardSavedSync.d.ts.map +0 -1
- package/esm/components/hooks/useDashboardSavedSync.js +0 -14
- package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts +0 -20
- package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts.map +0 -1
- package/esm/components/hooks/usePublisherDocumentSavedSync.js +0 -18
package/esm/sdk-ui-gen-ai.d.ts
CHANGED
|
@@ -15,8 +15,7 @@ import { EnhancedStore } from '@reduxjs/toolkit';
|
|
|
15
15
|
import { GenAIChatEffort } from '@gooddata/sdk-model';
|
|
16
16
|
import { GenAIObjectType } from '@gooddata/sdk-model';
|
|
17
17
|
import { GenAIPublisherDocumentFormat } from '@gooddata/sdk-backend-spi';
|
|
18
|
-
import {
|
|
19
|
-
import { IAiAssistantPublisherDocumentDefinitionV2 } from '@gooddata/sdk-pluggable-application-model';
|
|
18
|
+
import { IAiAssistantDefinitionReceivedPayload } from '@gooddata/sdk-pluggable-application-model';
|
|
20
19
|
import { IAlertProposal } from '@gooddata/sdk-backend-spi';
|
|
21
20
|
import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
|
|
22
21
|
import { IChatConversation } from '@gooddata/sdk-backend-spi';
|
|
@@ -34,6 +33,7 @@ import { IExecutionConfig } from '@gooddata/sdk-model';
|
|
|
34
33
|
import { IGenAIUserContext } from '@gooddata/sdk-model';
|
|
35
34
|
import { IInsight } from '@gooddata/sdk-model';
|
|
36
35
|
import { IListedDashboard } from '@gooddata/sdk-model';
|
|
36
|
+
import { ILocale } from '@gooddata/sdk-ui';
|
|
37
37
|
import { ISlotProps } from '@gooddata/sdk-ui-kit';
|
|
38
38
|
import { IUiButtonProps } from '@gooddata/sdk-ui-kit';
|
|
39
39
|
import { IUiMenuGroupItemProps } from '@gooddata/sdk-ui-kit';
|
|
@@ -298,52 +298,13 @@ export declare type ChatCopyToClipboardEvent = BaseEvent & {
|
|
|
298
298
|
*
|
|
299
299
|
* @remarks
|
|
300
300
|
* The payload fields depend on `definitionType`; not every optional field is populated for every event.
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* The v2 payload is inherited from IAiAssistantPublisherDocumentDefinitionV2.publisherDocumentV2.
|
|
301
|
+
* The ids, the dashboard draft and the Publisher document drafts are inherited from
|
|
302
|
+
* IAiAssistantDefinitionReceivedPayload, which documents each of them.
|
|
304
303
|
*
|
|
305
304
|
* @public
|
|
306
305
|
*/
|
|
307
|
-
export declare type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
308
|
-
/**
|
|
309
|
-
* The type of the event.
|
|
310
|
-
*/
|
|
306
|
+
export declare type ChatDefinitionReceivedEvent = BaseEvent & IAiAssistantDefinitionReceivedPayload & {
|
|
311
307
|
type: "onDefinitionReceived";
|
|
312
|
-
/**
|
|
313
|
-
* The kind of definition received and the corresponding payload fields.
|
|
314
|
-
*
|
|
315
|
-
* @remarks
|
|
316
|
-
* - `dashboard`: a dashboard definition in `dashboard` and its referenced insights in `insights`.
|
|
317
|
-
* - `visualization`: a visualization definition in `visualization`.
|
|
318
|
-
* - `publisherDocument`: a Publisher document definition in `publisherDocument`.
|
|
319
|
-
* - `publisherDocumentV2`: a Publisher v2 document definition in `publisherDocumentV2`.
|
|
320
|
-
* - `alert`: an alert proposal in `alertProposal`.
|
|
321
|
-
*/
|
|
322
|
-
definitionType: "dashboard" | "visualization" | "publisherDocument" | "publisherDocumentV2" | "alert";
|
|
323
|
-
/**
|
|
324
|
-
* Identifier of the item containing the definition: the streamed interaction ID for live responses,
|
|
325
|
-
* or the stored conversation item ID for history replays.
|
|
326
|
-
*/
|
|
327
|
-
itemId: string;
|
|
328
|
-
/**
|
|
329
|
-
* Local identifier of the conversation containing the definition, not the backend thread ID.
|
|
330
|
-
* The backend thread ID is available in the inherited `threadId` property when known.
|
|
331
|
-
*/
|
|
332
|
-
conversationId: string;
|
|
333
|
-
/**
|
|
334
|
-
* Stored response ID for a definition replayed from chat history.
|
|
335
|
-
* Live definitions leave this unset or empty, which distinguishes them from history replays.
|
|
336
|
-
*/
|
|
337
|
-
interactionId?: string;
|
|
338
|
-
/**
|
|
339
|
-
* Dashboard definition, populated when `definitionType` is `dashboard`.
|
|
340
|
-
*/
|
|
341
|
-
dashboard?: IDashboard;
|
|
342
|
-
/**
|
|
343
|
-
* Insights referenced by the dashboard, populated when `definitionType` is `dashboard`.
|
|
344
|
-
* An empty array is emitted if the dashboard content contains no insights.
|
|
345
|
-
*/
|
|
346
|
-
insights?: IInsight[];
|
|
347
308
|
/**
|
|
348
309
|
* Visualization definition, populated when `definitionType` is `visualization`.
|
|
349
310
|
*/
|
|
@@ -352,7 +313,7 @@ export declare type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
|
352
313
|
* Alert proposal, populated when `definitionType` is `alert`.
|
|
353
314
|
*/
|
|
354
315
|
alertProposal?: IAlertProposal;
|
|
355
|
-
}
|
|
316
|
+
};
|
|
356
317
|
|
|
357
318
|
/**
|
|
358
319
|
* A union type for all chat events.
|
|
@@ -597,6 +558,20 @@ export declare type CopilotInput<TBuild extends string = CopilotBuildType> = {
|
|
|
597
558
|
readonly id: string;
|
|
598
559
|
};
|
|
599
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Wrap content with a composing animation and optional reasoning or reply banner.
|
|
563
|
+
*
|
|
564
|
+
* @remarks
|
|
565
|
+
* This controlled component has no workflow state or store dependency. Its container fills its
|
|
566
|
+
* host; give the host a size and import `@gooddata/sdk-ui-gen-ai/styles/css/copilotInteractionComposing.css`.
|
|
567
|
+
* A visibility predicate is not a subscription; rerender when external visibility facts change.
|
|
568
|
+
* @alpha
|
|
569
|
+
*/
|
|
570
|
+
export declare function CopilotInteractionComposing({ children, status, reasoningTitle, isVisible, onReplyInChat, locale, }: ICopilotInteractionComposingProps): JSX.Element;
|
|
571
|
+
|
|
572
|
+
/** Subscribe to a copilot instance without introducing another workflow state owner. @alpha */
|
|
573
|
+
export declare function CopilotInteractionComposingWithHandler<TBuild extends string = CopilotBuildType>({ copilot, scope, onReplyInChat, ...props }: ICopilotInteractionComposingWithHandlerProps<TBuild>): JSX.Element;
|
|
574
|
+
|
|
600
575
|
/** Derived workflow progress, independent of host presentation. @alpha */
|
|
601
576
|
export declare type CopilotStatus = "idle" | "generating" | "building" | "waiting";
|
|
602
577
|
|
|
@@ -869,6 +844,11 @@ export declare type GenAIAssistantProps = Omit<GenAiStoreProps, "children"> & {
|
|
|
869
844
|
* The locale to use for the chat UI.
|
|
870
845
|
*/
|
|
871
846
|
locale?: string;
|
|
847
|
+
/**
|
|
848
|
+
* Placeholder text for the chat input. Defaults to the bundled localized placeholder when omitted.
|
|
849
|
+
* The supplied text is used as-is and is not translated.
|
|
850
|
+
*/
|
|
851
|
+
inputPlaceholder?: string;
|
|
872
852
|
/**
|
|
873
853
|
* When provided, references to the metadata objects will be rendered as clickable links.
|
|
874
854
|
* Otherwise, the metadata objects will be rendered as plain text (using object title).
|
|
@@ -1241,6 +1221,32 @@ export declare interface ICopilotInteraction<TBuild extends string = CopilotBuil
|
|
|
1241
1221
|
};
|
|
1242
1222
|
}
|
|
1243
1223
|
|
|
1224
|
+
/** Configuration of the workflow-independent composing presentation. @alpha */
|
|
1225
|
+
export declare interface ICopilotInteractionComposingProps {
|
|
1226
|
+
/** Content that remains mounted and visible regardless of composing progress. */
|
|
1227
|
+
children: ReactNode;
|
|
1228
|
+
/** Loading, building, waiting for a reply, or idle. */
|
|
1229
|
+
status: CopilotStatus;
|
|
1230
|
+
/** Optional reasoning heading displayed while generating or building. */
|
|
1231
|
+
reasoningTitle?: string;
|
|
1232
|
+
/** Pure host visibility predicate, evaluated on each render. Only composing UI is hidden. */
|
|
1233
|
+
isVisible?: () => boolean;
|
|
1234
|
+
/** Open the originating chat when the user chooses to reply. */
|
|
1235
|
+
onReplyInChat?: () => void;
|
|
1236
|
+
/** Locale for the waiting message and reply button. Defaults to en-US. */
|
|
1237
|
+
locale?: ILocale;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/** Composing presentation driven directly by an existing copilot instance. @alpha */
|
|
1241
|
+
export declare interface ICopilotInteractionComposingWithHandlerProps<TBuild extends string = CopilotBuildType> extends Omit<ICopilotInteractionComposingProps, "status" | "reasoningTitle" | "onReplyInChat"> {
|
|
1242
|
+
/** Runtime-owned handler. This component never disposes it. */
|
|
1243
|
+
copilot: CopilotHandler<TBuild>;
|
|
1244
|
+
/** Workflow and optional target whose progress should be displayed. */
|
|
1245
|
+
scope: ICopilotScope<TBuild>;
|
|
1246
|
+
/** Open the waiting workflow's originating thread; falls back to the foreground thread. */
|
|
1247
|
+
onReplyInChat?: (threadId?: string) => void;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1244
1250
|
/** Pure matching policy and host effect for one workflow. @alpha */
|
|
1245
1251
|
export declare interface ICopilotRegistration<TBuild extends string = CopilotBuildType> {
|
|
1246
1252
|
/** Workflow activated by these skills. */
|
|
@@ -1263,13 +1269,19 @@ export declare interface ICopilotRequest<TBuild extends string = CopilotBuildTyp
|
|
|
1263
1269
|
readonly threadId?: string;
|
|
1264
1270
|
/** Resolved skill's workflow; absent until activation. */
|
|
1265
1271
|
readonly type?: TBuild;
|
|
1272
|
+
/** Creation workflow requested for this response, even before skill activation. */
|
|
1273
|
+
readonly generation?: TBuild;
|
|
1274
|
+
/** Workflow intent captured at skill activation, independent of the selected conversation. */
|
|
1275
|
+
readonly intent?: "create" | "edit";
|
|
1266
1276
|
/** Resolved object identifier. */
|
|
1267
1277
|
readonly objectId?: string;
|
|
1278
|
+
/** Another conversation activated this workflow; late events must not regain ownership. */
|
|
1279
|
+
readonly superseded?: boolean;
|
|
1268
1280
|
/** Whether this response awaits clarification. */
|
|
1269
1281
|
readonly awaitingClarification?: boolean;
|
|
1270
1282
|
/** Unanswered clarification item identifiers for this response. */
|
|
1271
1283
|
readonly pendingClarificationIds?: readonly string[];
|
|
1272
|
-
/**
|
|
1284
|
+
/** Response ended; waiting for a user reply or in-progress definition application. */
|
|
1273
1285
|
readonly responseFinished?: boolean;
|
|
1274
1286
|
/** In-progress host applications. */
|
|
1275
1287
|
readonly applicationIds: readonly string[];
|
|
@@ -1279,11 +1291,11 @@ export declare interface ICopilotRequest<TBuild extends string = CopilotBuildTyp
|
|
|
1279
1291
|
export declare interface ICopilotScope<TBuild extends string = CopilotBuildType> {
|
|
1280
1292
|
/** Workflow to query. */
|
|
1281
1293
|
readonly type: TBuild;
|
|
1282
|
-
/** Restrict
|
|
1294
|
+
/** Restrict activated requests to this object. */
|
|
1283
1295
|
readonly objectId?: string;
|
|
1284
1296
|
/** Include activated edit requests. */
|
|
1285
1297
|
readonly isEditing?: boolean;
|
|
1286
|
-
/** Include an existing foreground edit build. */
|
|
1298
|
+
/** Include activated requests and an existing foreground edit build. */
|
|
1287
1299
|
readonly isBuilder?: boolean;
|
|
1288
1300
|
}
|
|
1289
1301
|
|
|
@@ -1297,7 +1309,7 @@ export declare interface ICopilotSnapshot<TBuild extends string = CopilotBuildTy
|
|
|
1297
1309
|
readonly generationRevision?: number;
|
|
1298
1310
|
/** Foreground chat interaction. */
|
|
1299
1311
|
readonly interaction: ICopilotInteraction<TBuild>;
|
|
1300
|
-
/**
|
|
1312
|
+
/** Running responses and workflows waiting for user input across conversations. */
|
|
1301
1313
|
readonly requests: readonly ICopilotRequest<TBuild>[];
|
|
1302
1314
|
/** In-progress host installations. */
|
|
1303
1315
|
readonly applications: readonly ICopilotApplication<TBuild>[];
|
|
@@ -1687,6 +1699,28 @@ export declare type IGenAIAssistantMessageReasoningContentProps = {
|
|
|
1687
1699
|
* The objects to render as links in the reasoning.
|
|
1688
1700
|
*/
|
|
1689
1701
|
objects: TextContentObject[];
|
|
1702
|
+
/**
|
|
1703
|
+
* Reasoning-group duration in milliseconds, matching the reasoning header. Calculated from
|
|
1704
|
+
* the last message timestamps of this group and the preceding group, including grouped tool
|
|
1705
|
+
* activity but excluding answer generation. Available during streaming and after reloading
|
|
1706
|
+
* conversation history; undefined when the required group timestamps are unavailable.
|
|
1707
|
+
*/
|
|
1708
|
+
durationMs?: number;
|
|
1709
|
+
/**
|
|
1710
|
+
* The user-selected agent recorded for this message, not an internally routed sub-agent.
|
|
1711
|
+
* Undefined when the message does not carry an agent ID; independent of the conversation's
|
|
1712
|
+
* current agent selection.
|
|
1713
|
+
*/
|
|
1714
|
+
agent?: {
|
|
1715
|
+
/**
|
|
1716
|
+
* The agent ID recorded on the message.
|
|
1717
|
+
*/
|
|
1718
|
+
id: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* The agent's current display name, resolved from the loaded agent list when available.
|
|
1721
|
+
*/
|
|
1722
|
+
name?: string;
|
|
1723
|
+
};
|
|
1690
1724
|
/**
|
|
1691
1725
|
* Whether the message is still loading.
|
|
1692
1726
|
*/
|
|
@@ -2233,8 +2267,8 @@ title: string;
|
|
|
2233
2267
|
/** Whether creation is pending, including an activated creation build. @alpha */
|
|
2234
2268
|
export declare function selectCopilotGenerationPending<TBuild extends string = CopilotBuildType>(state: ICopilotSnapshot<TBuild>, type: TBuild): boolean;
|
|
2235
2269
|
|
|
2236
|
-
/** Query
|
|
2237
|
-
export declare function selectCopilotReasoningTitle<TBuild extends string = CopilotBuildType>(state: ICopilotSnapshot<TBuild>): string | undefined;
|
|
2270
|
+
/** Query foreground reasoning, optionally restricted to the owning workflow. @alpha */
|
|
2271
|
+
export declare function selectCopilotReasoningTitle<TBuild extends string = CopilotBuildType>(state: ICopilotSnapshot<TBuild>, scope?: ICopilotScope<TBuild>): string | undefined;
|
|
2238
2272
|
|
|
2239
2273
|
/** Query the originating conversation of an applied object. @alpha */
|
|
2240
2274
|
export declare function selectCopilotSource<TBuild extends string = CopilotBuildType>(state: ICopilotSnapshot<TBuild>, target: ICopilotTarget<TBuild>): ICopilotSource | undefined;
|
package/esm/store/events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IAlertProposal, type IChatConversation, type IChatConversationVisualisationContent } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { type AgentCustomSkill, type
|
|
3
|
-
import { type
|
|
2
|
+
import { type AgentCustomSkill, type IGenAIUserContext } from "@gooddata/sdk-model";
|
|
3
|
+
import { type IAiAssistantDefinitionReceivedPayload } from "@gooddata/sdk-pluggable-application-model";
|
|
4
4
|
import { type SdkErrorType } from "@gooddata/sdk-ui";
|
|
5
5
|
import { type GenAIAssistantMode } from "../components/ConfigContext.js";
|
|
6
6
|
import { type IChatConversationLocal, type TextContentObject } from "../model.js";
|
|
@@ -389,52 +389,13 @@ export declare const isChatConversationChangedEvent: (event: ChatEvent) => event
|
|
|
389
389
|
*
|
|
390
390
|
* @remarks
|
|
391
391
|
* The payload fields depend on `definitionType`; not every optional field is populated for every event.
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
* The v2 payload is inherited from IAiAssistantPublisherDocumentDefinitionV2.publisherDocumentV2.
|
|
392
|
+
* The ids, the dashboard draft and the Publisher document drafts are inherited from
|
|
393
|
+
* IAiAssistantDefinitionReceivedPayload, which documents each of them.
|
|
395
394
|
*
|
|
396
395
|
* @public
|
|
397
396
|
*/
|
|
398
|
-
export type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
399
|
-
/**
|
|
400
|
-
* The type of the event.
|
|
401
|
-
*/
|
|
397
|
+
export type ChatDefinitionReceivedEvent = BaseEvent & IAiAssistantDefinitionReceivedPayload & {
|
|
402
398
|
type: "onDefinitionReceived";
|
|
403
|
-
/**
|
|
404
|
-
* The kind of definition received and the corresponding payload fields.
|
|
405
|
-
*
|
|
406
|
-
* @remarks
|
|
407
|
-
* - `dashboard`: a dashboard definition in `dashboard` and its referenced insights in `insights`.
|
|
408
|
-
* - `visualization`: a visualization definition in `visualization`.
|
|
409
|
-
* - `publisherDocument`: a Publisher document definition in `publisherDocument`.
|
|
410
|
-
* - `publisherDocumentV2`: a Publisher v2 document definition in `publisherDocumentV2`.
|
|
411
|
-
* - `alert`: an alert proposal in `alertProposal`.
|
|
412
|
-
*/
|
|
413
|
-
definitionType: "dashboard" | "visualization" | "publisherDocument" | "publisherDocumentV2" | "alert";
|
|
414
|
-
/**
|
|
415
|
-
* Identifier of the item containing the definition: the streamed interaction ID for live responses,
|
|
416
|
-
* or the stored conversation item ID for history replays.
|
|
417
|
-
*/
|
|
418
|
-
itemId: string;
|
|
419
|
-
/**
|
|
420
|
-
* Local identifier of the conversation containing the definition, not the backend thread ID.
|
|
421
|
-
* The backend thread ID is available in the inherited `threadId` property when known.
|
|
422
|
-
*/
|
|
423
|
-
conversationId: string;
|
|
424
|
-
/**
|
|
425
|
-
* Stored response ID for a definition replayed from chat history.
|
|
426
|
-
* Live definitions leave this unset or empty, which distinguishes them from history replays.
|
|
427
|
-
*/
|
|
428
|
-
interactionId?: string;
|
|
429
|
-
/**
|
|
430
|
-
* Dashboard definition, populated when `definitionType` is `dashboard`.
|
|
431
|
-
*/
|
|
432
|
-
dashboard?: IDashboard;
|
|
433
|
-
/**
|
|
434
|
-
* Insights referenced by the dashboard, populated when `definitionType` is `dashboard`.
|
|
435
|
-
* An empty array is emitted if the dashboard content contains no insights.
|
|
436
|
-
*/
|
|
437
|
-
insights?: IInsight[];
|
|
438
399
|
/**
|
|
439
400
|
* Visualization definition, populated when `definitionType` is `visualization`.
|
|
440
401
|
*/
|
|
@@ -443,7 +404,7 @@ export type ChatDefinitionReceivedEvent = BaseEvent & {
|
|
|
443
404
|
* Alert proposal, populated when `definitionType` is `alert`.
|
|
444
405
|
*/
|
|
445
406
|
alertProposal?: IAlertProposal;
|
|
446
|
-
}
|
|
407
|
+
};
|
|
447
408
|
/**
|
|
448
409
|
* Type guard for the ChatDefinitionReceivedEvent.
|
|
449
410
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/store/events.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC7C,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/store/events.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qCAAqC,EAC7C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAElF;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG;IACtC,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAW,SAAS,KAAG,KAAK,IAAI,eAE7D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG;IACtC,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAW,SAAS,KAAG,KAAK,IAAI,eAE7D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACrC,IAAI,EAAE,WAAW,CAAC;CACrB,CAAC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BACA,MAAM;qBACH,MAAM;aACd,4BAA4B;;AAkSjD;;GAEG;AACH,oBAAoB;oBA7QQ,MAAM;yBACD,MAAM;sBACT,MAAM;mBACT,aAAa,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;;AAwQd;;GAEG;AACH,wBAAwB;kBAtIE,sBAAsB;WAC7B,MAAM;;AAsIzB;;GAEG;AACH,qBAAqB;kBA3LK,sBAAsB;YAC5B,OAAO;;AA2L3B;;GAEG;AACH,wBAAwB;kBAhGqD,sBAAsB;;AAiGnG;;GAEG;AACH,sBAAsB;aA1vBD,MAAM,GAAG,SAAS;sBACT,MAAM,GAAG,SAAS;sBAClB,OAAO;;AAyvBrC;;GAEG;AACH,uBAAuB;YAltBmD,eAAe;;AAmtBzF;;GAEG;AACH,4BAA4B;kBA/yBuB,sBAAsB;;AAgzBzE;;GAEG;AACH,0BAA0B;AAC1B;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,gBAAgB,8GACK,CAAC"}
|
|
@@ -258,6 +258,7 @@ const messagesSlice = createSlice({
|
|
|
258
258
|
assistantMessage.cancelled = false;
|
|
259
259
|
assistantMessage.responseId = payload.item?.responseId ?? "";
|
|
260
260
|
assistantMessage.replyTo = payload.item?.replyTo;
|
|
261
|
+
assistantMessage.agentId = payload.item?.agentId ?? assistantMessage.agentId;
|
|
261
262
|
// Also update the interaction id in the relevant user message (if one exists)
|
|
262
263
|
// Note: dynamically created assistant messages (for multi-interaction streams)
|
|
263
264
|
// may not have a preceding user message
|
|
@@ -293,6 +294,7 @@ const messagesSlice = createSlice({
|
|
|
293
294
|
userMessage.responseId = message.responseId;
|
|
294
295
|
userMessage.replyTo = message.replyTo;
|
|
295
296
|
userMessage.createdAt = message.createdAt;
|
|
297
|
+
userMessage.agentId = message.agentId ?? userMessage.agentId;
|
|
296
298
|
},
|
|
297
299
|
evaluateMessageCompleteAction: (state, { payload, }) => {
|
|
298
300
|
// Always clear the async process first to avoid stranding the UI
|
|
@@ -2,11 +2,15 @@ import { type GenAIChatRoutingUseCase } from "@gooddata/sdk-model";
|
|
|
2
2
|
import { type ChatAssistantMessageEvent, type ChatClarificationQuestion, type EventDispatcher } from "../events.js";
|
|
3
3
|
import { evaluateMessageCompleteAction, evaluateMessageStreamingAction, filledFormAction, newMessageAction } from "../messages/messagesSlice.js";
|
|
4
4
|
export declare function onEvent(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
|
|
5
|
-
export declare function onNewMessage({ payload: message }: ReturnType<typeof newMessageAction>): Generator<import("redux-saga/effects").
|
|
5
|
+
export declare function onNewMessage({ payload: message }: ReturnType<typeof newMessageAction>): Generator<Generator<import("redux-saga/effects").SelectEffect, string | undefined, (import("@gooddata/sdk-backend-spi").IChatConversation & {
|
|
6
6
|
localId: string;
|
|
7
7
|
generatingTitle?: boolean;
|
|
8
8
|
inProgress?: boolean;
|
|
9
|
-
}
|
|
9
|
+
} & string) | undefined> | import("redux-saga/effects").GetContextEffect | import("redux-saga/effects").SelectEffect, void, EventDispatcher & import("@gooddata/sdk-backend-spi").IChatConversation & {
|
|
10
|
+
localId: string;
|
|
11
|
+
generatingTitle?: boolean;
|
|
12
|
+
inProgress?: boolean;
|
|
13
|
+
} & string>;
|
|
10
14
|
export declare function onEvaluateMessageComplete({ payload: { assistantMessageId, cancelled, conversationId, responseCompleted }, }: ReturnType<typeof evaluateMessageCompleteAction>): Generator<import("redux-saga/effects").CallEffect<Generator<unknown, MessageInfo | null, any>> | import("redux-saga/effects").GetContextEffect | import("redux-saga/effects").SelectEffect, void, MessageInfo & EventDispatcher & import("@gooddata/sdk-backend-spi").IChatConversation & {
|
|
11
15
|
localId: string;
|
|
12
16
|
generatingTitle?: boolean;
|
|
@@ -17,7 +21,11 @@ export declare function onEvaluateMessageStreaming({ payload: { assistantMessage
|
|
|
17
21
|
generatingTitle?: boolean;
|
|
18
22
|
inProgress?: boolean;
|
|
19
23
|
}>;
|
|
20
|
-
export declare function onClarificationQuestionsAnswered({ payload: { assistantMessageId, responses }, }: ReturnType<typeof filledFormAction>): Generator<import("redux-saga/effects").CallEffect<Generator<unknown, MessageInfo | null, any>> | import("redux-saga/effects").
|
|
24
|
+
export declare function onClarificationQuestionsAnswered({ payload: { assistantMessageId, responses }, }: ReturnType<typeof filledFormAction>): Generator<import("redux-saga/effects").CallEffect<Generator<unknown, MessageInfo | null, any>> | Generator<import("redux-saga/effects").SelectEffect, string | undefined, (import("@gooddata/sdk-backend-spi").IChatConversation & {
|
|
25
|
+
localId: string;
|
|
26
|
+
generatingTitle?: boolean;
|
|
27
|
+
inProgress?: boolean;
|
|
28
|
+
} & string) | undefined> | import("redux-saga/effects").GetContextEffect, void, MessageInfo & EventDispatcher & string>;
|
|
21
29
|
type MessageInfo = {
|
|
22
30
|
id: string;
|
|
23
31
|
localId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onEvent.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAiBnE,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAStB,OAAO,EAKH,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAEhB,gBAAgB,EAanB,MAAM,8BAA8B,CAAC;AAKtC,wBAAiB,OAAO,6EA6BvB;AA2MD,wBAAiB,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"onEvent.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAiBnE,OAAO,EACH,KAAK,yBAAyB,EAC9B,K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