@atlaskit/rovo-triggers 7.6.0 → 7.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 7.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fabc8bad29d1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fabc8bad29d1e) -
8
+ Add an `insights-open-in-chat` rovo-trigger so Rovo Insights opened from outside the conversation
9
+ assistant panel (e.g. the home insights carousel) reuse the same seeded-chat experience as
10
+ clicking an insight inside the in-panel insights feed.
11
+ - `@atlaskit/rovo-triggers`: add the `InsightsOpenInChatPayload` event type (carries the insight
12
+ ADF, conversation title, serializable icon string keys, and follow-ups).
13
+ - `@atlassian/rovo-growth-pulse`: extract the insight icon/appearance resolvers into a shared
14
+ `ui/insights-feed/resolveInsightIcon` module (new subpath export) and add optional
15
+ `iconKey`/`iconColor` raw API string fields to `InsightItem` so consumers can re-resolve icons.
16
+ `InsightReadyHostMeta.backButtonLabel` is now optional (the host supplies the standardized
17
+ label).
18
+ - `@atlassian/conversation-assistant`: extract the insight seeding logic into a shared
19
+ `useSeedInsightConversation` hook (used by both the in-panel feed and the new trigger) and
20
+ handle the `insights-open-in-chat` trigger in `PubSubListener`, gated behind the
21
+ `rovo_growth_chat_pulse` experiment.
22
+
3
23
  ## 7.6.0
4
24
 
5
25
  ### Minor Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/utils/chat-context/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/utils/chat-context/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/utils/chat-context/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/common/utils/chat-context/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/common/utils/chat-context/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/common/utils/chat-context/types.d.ts"
17
10
  }
package/dist/cjs/types.js CHANGED
@@ -14,6 +14,20 @@ var Topics = exports.Topics = {
14
14
 
15
15
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
16
16
 
17
+ /**
18
+ * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
19
+ * reproducing the same experience as clicking an insight inside the in-panel
20
+ * InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
21
+ * follow-ups, and a back-to-pulse override).
22
+ *
23
+ * Published by surfaces that render insights outside the panel (e.g. the home
24
+ * insights carousel). All fields are serializable: the icon is carried as the
25
+ * raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
26
+ * `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
27
+ * cannot cross the event bus. The standardized back-button label is owned
28
+ * panel-side and is intentionally not part of this payload.
29
+ */
30
+
17
31
  /** Partial database context for iframe updates (e.g. selection-only). */
18
32
 
19
33
  // Not using the PayloadCore because the `data: type | undefined` is necessary
@@ -8,6 +8,20 @@ export const Topics = {
8
8
 
9
9
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
10
10
 
11
+ /**
12
+ * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
13
+ * reproducing the same experience as clicking an insight inside the in-panel
14
+ * InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
15
+ * follow-ups, and a back-to-pulse override).
16
+ *
17
+ * Published by surfaces that render insights outside the panel (e.g. the home
18
+ * insights carousel). All fields are serializable: the icon is carried as the
19
+ * raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
20
+ * `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
21
+ * cannot cross the event bus. The standardized back-button label is owned
22
+ * panel-side and is intentionally not part of this payload.
23
+ */
24
+
11
25
  /** Partial database context for iframe updates (e.g. selection-only). */
12
26
 
13
27
  // Not using the PayloadCore because the `data: type | undefined` is necessary
package/dist/esm/types.js CHANGED
@@ -8,6 +8,20 @@ export var Topics = {
8
8
 
9
9
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
10
10
 
11
+ /**
12
+ * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
13
+ * reproducing the same experience as clicking an insight inside the in-panel
14
+ * InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
15
+ * follow-ups, and a back-to-pulse override).
16
+ *
17
+ * Published by surfaces that render insights outside the panel (e.g. the home
18
+ * insights carousel). All fields are serializable: the icon is carried as the
19
+ * raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
20
+ * `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
21
+ * cannot cross the event bus. The standardized back-button label is owned
22
+ * panel-side and is intentionally not part of this payload.
23
+ */
24
+
11
25
  /** Partial database context for iframe updates (e.g. selection-only). */
12
26
 
13
27
  // Not using the PayloadCore because the `data: type | undefined` is necessary
@@ -107,6 +107,33 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
107
107
  */
108
108
  tags?: string[];
109
109
  } & Partial<TargetAgentParam> & PlaceholderParam>;
110
+ /**
111
+ * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
112
+ * reproducing the same experience as clicking an insight inside the in-panel
113
+ * InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
114
+ * follow-ups, and a back-to-pulse override).
115
+ *
116
+ * Published by surfaces that render insights outside the panel (e.g. the home
117
+ * insights carousel). All fields are serializable: the icon is carried as the
118
+ * raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
119
+ * `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
120
+ * cannot cross the event bus. The standardized back-button label is owned
121
+ * panel-side and is intentionally not part of this payload.
122
+ */
123
+ export type InsightsOpenInChatPayload = PayloadCore<'insights-open-in-chat', {
124
+ /** Stringified ADF JSON for the insight detail — seeded as the agent message. */
125
+ adf: string;
126
+ /** Conversation name / header title. */
127
+ conversationTitle: string;
128
+ /** Raw API `icon` string key (e.g. `'lightbulb'`), re-resolved panel-side. */
129
+ iconKey: string;
130
+ /** Raw API `color` string key (e.g. `'blueBold'`), re-resolved panel-side. */
131
+ iconColor: string;
132
+ /** Insight category (e.g. group category), used for click analytics attribution. */
133
+ insightCategory: string;
134
+ /** Follow-up prompt strings to seed into the conversation. */
135
+ followUps?: string[] | null;
136
+ }>;
110
137
  export type EditorContextPayloadData = {
111
138
  document: {
112
139
  type: 'text/markdown' | 'text/adf';
@@ -485,7 +512,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
485
512
  openChat: false;
486
513
  isActive: boolean;
487
514
  };
488
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
515
+ export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
489
516
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
490
517
  conversationId: string;
491
518
  planTitle: string;
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/types/jsm-journey-builder/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/types/jsm-journey-builder/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/types/jsm-journey-builder/index.d.ts"
17
10
  }
package/main/package.json CHANGED
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/main.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/main.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/main.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/utils/params/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/utils/params/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/utils/params/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/utils/params/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/utils/params/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/utils/params/types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/utils/post-message-to-pubsub/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/utils/post-message-to-pubsub/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/utils/post-message-to-pubsub/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/common/types/solution-architect/index.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/common/types/solution-architect/index.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/common/types/solution-architect/index.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/types.d.ts"
17
10
  }
@@ -1,7 +0,0 @@
1
- import type { PayloadCore } from '../../../types';
2
- export type SolutionDraftAgentUpdatePayload = PayloadCore<'solution-draft-agent-update'> & {
3
- data: {
4
- buildId: string;
5
- draftContent: string;
6
- };
7
- };
@@ -1,11 +0,0 @@
1
- import type { PayloadCore } from '../../../types';
2
- export type JsmJourneyBuilderAgentAction = {
3
- actionType: 'CREATE_JOURNEY' | 'UPDATE_JOURNEY' | 'DELETE_JOURNEY';
4
- journeyId: string;
5
- success: boolean;
6
- };
7
- export type JsmJourneyBuilderActionsPayload = PayloadCore<'jsm-journey-builder-actions', {
8
- invocationId?: string;
9
- conversationId?: string;
10
- agentActions: JsmJourneyBuilderAgentAction[];
11
- }>;
@@ -1,59 +0,0 @@
1
- import type { PayloadCore } from '../../../types';
2
- type BaseHandoffPayload = {
3
- conversationId: string;
4
- };
5
- export type AutomationHandoffPayload = BaseHandoffPayload & {
6
- type: 'AUTOMATION_RULE';
7
- ari?: never;
8
- buildId: string;
9
- appBuilderAutoStart?: never;
10
- shouldActivateAgent?: never;
11
- };
12
- export type AgentHandoffPayload = BaseHandoffPayload & {
13
- type: 'ROVO_AGENT';
14
- ari?: string | null | undefined;
15
- buildId: string;
16
- appBuilderAutoStart?: never;
17
- shouldActivateAgent?: boolean;
18
- };
19
- export type AppHandoffPayload = BaseHandoffPayload & {
20
- type: 'ECOSYSTEM_APP';
21
- ari: string;
22
- buildId?: never;
23
- appBuilderAutoStart: boolean;
24
- shouldActivateAgent?: never;
25
- };
26
- export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-handoff'> & {
27
- data: AutomationHandoffPayload | AppHandoffPayload | AgentHandoffPayload;
28
- };
29
- export type SolutionPlanStateUpdatePayload = PayloadCore<'solution-plan-state-updated'>;
30
- export type SolutionArchitectAgentActivationPayload = PayloadCore<'solution-architect-agent-activation', {
31
- draftBuildId: string;
32
- ari?: string | null | undefined;
33
- }>;
34
- export type SolutionArchitectAgentActivationFlowStartedPayload = PayloadCore<'solution-architect-agent-activation-flow-started', {
35
- draftBuildId: string;
36
- }>;
37
- export type SolutionArchitectAgentActivationFlowStoppedPayload = PayloadCore<'solution-architect-agent-activation-flow-stopped', {
38
- draftBuildId: string;
39
- }>;
40
- export type StudioAutomationBuildUpdatePayload = PayloadCore<'studio-automation-build-updated', {
41
- buildId: string;
42
- }>;
43
- export type AutomationRuleUpdatePayload = PayloadCore<'automation-rule-update'> & {
44
- data: {
45
- rule: string;
46
- };
47
- };
48
- export type UpdateAgentConfigurationPayload = PayloadCore<'agent-configuration-update'> & {
49
- data: {
50
- ari: string;
51
- };
52
- };
53
- export type StudioLandingPageRedirectPayload = PayloadCore<'studio-landing-page-redirect'> & {
54
- data: {
55
- ari: string;
56
- prompt: string;
57
- };
58
- };
59
- export {};
@@ -1 +0,0 @@
1
- export type { ChatContextState, ChatContextPayload } from './types';
@@ -1,7 +0,0 @@
1
- export type ChatContextState = {
2
- [contextKey: string]: unknown;
3
- };
4
- export type ChatContextPayload = {
5
- contextKey: string;
6
- setContext: <T>(chatContext: T) => T;
7
- };
@@ -1,3 +0,0 @@
1
- import { type ValidParam, type ValidPrefix } from './types';
2
- export declare const ROVO_PARAM_PREFIX: ValidPrefix;
3
- export declare const ROVO_VALID_PARAMS: ValidParam[];
@@ -1,15 +0,0 @@
1
- import { type RovoChatParams, type ValidParam } from './types';
2
- export declare const firstCharUpper: (str: string) => string;
3
- export declare const firstCharLower: (str: string) => string;
4
- export declare const addPrefix: (param: ValidParam) => string;
5
- export declare const removePrefix: (param: string) => string;
6
- export declare const getRovoParams: (url?: string) => RovoChatParams;
7
- export declare const updatePageRovoParams: (params: RovoChatParams) => void;
8
- export declare const addRovoParamsToUrl: (url: string, params: RovoChatParams) => string;
9
- export declare const encodeRovoParams: (params: RovoChatParams, encodeAsObject?: boolean) => string | {
10
- [key: string]: string;
11
- };
12
- export declare const assertOnlySpecificFieldsDefined: (params: RovoChatParams, fields: (keyof RovoChatParams)[]) => boolean;
13
- export declare const getListOfRovoParams: ({ resourceRouterQuery, }?: {
14
- resourceRouterQuery?: boolean | undefined;
15
- }) => string[];
@@ -1,28 +0,0 @@
1
- export type RovoChatPathway = 'chat' | 'agents-browse' | 'agents-create' | 'pulse';
2
- export type RovoChatOpenMode = 'sidebar' | 'mini-modal';
3
- export interface BaseRovoChatParams {
4
- pathway: RovoChatPathway;
5
- agentId: string;
6
- conversationId: string;
7
- prompt: string;
8
- cloudId: string;
9
- triggerOpen: boolean;
10
- initiator: string;
11
- insertPrompt: 'highlight-action';
12
- stagingAreaOpen: boolean;
13
- messageIdSelectedForPreview: string;
14
- promptLibraryOpen: boolean;
15
- openChatMode: RovoChatOpenMode;
16
- }
17
- export type ValidPrefix = 'rovoChat';
18
- export type ValidParam = keyof BaseRovoChatParams;
19
- export type ValidPrefixedParam = `${ValidPrefix}${ValidParam}`;
20
- type RovoParams<T extends RovoChatPathway, P = object> = BaseRovoChatParams & {
21
- pathway: T;
22
- } & P;
23
- type ChatParams = RovoParams<'chat'>;
24
- type AgentBrowseParams = RovoParams<'agents-browse'>;
25
- type AgentCreateParams = RovoParams<'agents-create'>;
26
- type PulseParams = RovoParams<'pulse'>;
27
- export type RovoChatParams = Partial<ChatParams | AgentCreateParams | AgentBrowseParams | PulseParams>;
28
- export {};
@@ -1,19 +0,0 @@
1
- import { type Payload } from '../../../types';
2
- export declare const ROVO_POST_MESSAGE_EVENT_TYPE = "rovo-post-message";
3
- export declare const ROVO_POST_MESSAGE_ACK_EVENT_TYPE = "rovo-post-message-ack";
4
- export declare const isAllowedOrigin: (origin: string | undefined) => boolean;
5
- export declare const RovoPostMessagePubsubListener: () => null;
6
- /**
7
- * Hook to send a publish event to parent iframe using postMessage
8
- * Only supports 1 pubsub event at a time and waits for acknowledgment or timed out
9
- */
10
- export declare const useRovoPostMessageToPubsub: () => {
11
- publishWithPostMessage: ({ targetWindow, payload, onAcknowledgeTimeout, }: {
12
- targetWindow?: Window;
13
- payload: Payload;
14
- onAcknowledgeTimeout: (params: {
15
- payload: Payload;
16
- }) => void;
17
- }) => void;
18
- isWaitingForAck: boolean;
19
- };
@@ -1,8 +0,0 @@
1
- export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, SlidesContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, DatabaseContextUpdatePayloadData, DatabaseContextPayload, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, SelectActionPayload, SmartLinksContextPayload, } from './types';
3
- export type { SolutionArchitectHandoffPayload, AutomationHandoffPayload, AgentHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, StudioAutomationBuildUpdatePayload, } from './common/types/solution-architect';
4
- export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
5
- export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
6
- export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
7
- export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
8
- export type { ChatContextState, ChatContextPayload } from './common/utils/chat-context/types';
@@ -1,17 +0,0 @@
1
- import type { Callback, Payload, Topic } from './types';
2
- interface SubscribeOptions {
3
- topic: Topic;
4
- triggerLatest?: boolean;
5
- consumeOnceKey?: string;
6
- }
7
- export declare const useSubscribe: ({ topic, triggerLatest, consumeOnceKey }: SubscribeOptions, callback: Callback) => void;
8
- export declare const useSubscribeAll: (callback: Callback) => void;
9
- export declare const usePublish: (topic: Topic) => ((payload: Payload) => void);
10
- export declare const Subscriber: ({ topic, triggerLatest, onEvent, flushQueueOnUnmount, consumeOnceKey, }: {
11
- topic: Topic;
12
- triggerLatest?: boolean;
13
- onEvent: Callback;
14
- flushQueueOnUnmount?: boolean;
15
- consumeOnceKey?: string;
16
- }) => null;
17
- export {};
@@ -1,555 +0,0 @@
1
- import type { DocNode } from '@atlaskit/adf-schema';
2
- import type { CreationContextParams } from '@atlassian/conversation-assistant-external-context/types';
3
- import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
4
- import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
5
- import type { SolutionArchitectAgentActivationFlowStoppedPayload, SolutionArchitectAgentActivationPayload, SolutionArchitectAgentActivationFlowStartedPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, StudioLandingPageRedirectPayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
6
- import type { ChatContextPayload } from './common/utils/chat-context/types';
7
- export declare const Topics: {
8
- readonly AI_MATE: "ai-mate";
9
- readonly AI_MATE_ACTIONS: "ai-mate-actions";
10
- readonly AI_MATE_INSERT_URLS: "ai-mate-chat-inserts";
11
- readonly AI_MATE_CHAT_INPUT_OVERLAY: "ai-mate-chat-input-overlay";
12
- readonly AVP: "avp";
13
- };
14
- export type Topic = (typeof Topics)[keyof typeof Topics];
15
- export type PayloadCore<TKey extends string, TData = void> = {
16
- type: TKey;
17
- source: string;
18
- openChat?: boolean;
19
- openChatMode?: 'sidebar' | 'mini-modal';
20
- product?: string;
21
- interactionSource?: string;
22
- /**
23
- * When true, subscribers that opt into the same consumeOnceKey should process this
24
- * logical event once total. The delivery id used for deduplication is internal to
25
- * rovo-triggers and is generated for each publish call.
26
- */
27
- consumeOnce?: boolean;
28
- } & (TData extends void ? {} : {
29
- data: TData;
30
- });
31
- export type MessageSendPayload = PayloadCore<'message-send', {
32
- prompt: string;
33
- productKey?: string;
34
- minionAlias?: string;
35
- files?: UploadedFile[];
36
- }>;
37
- export type ChatClosePayload = PayloadCore<'chat-close', {}>;
38
- export type SmartCreationModalOpenPayload = PayloadCore<'open-smart-creation-modal', {
39
- channelId?: string;
40
- entryPoint: string;
41
- stagingAreaActive: boolean;
42
- isFloating: boolean;
43
- shouldShowBackButton: boolean;
44
- }>;
45
- type TargetAgentParam = {
46
- agentId: string;
47
- agentExternalConfigReference?: never;
48
- } | {
49
- agentId?: never;
50
- agentExternalConfigReference: string;
51
- };
52
- type PlaceholderParam = {
53
- placeholderType?: 'person' | 'link' | 'generic' | 'skill';
54
- };
55
- type ChatModeParam = {
56
- deepResearchEnabled?: boolean;
57
- thinkDeeperEnabled?: boolean;
58
- fastModeEnabled?: boolean;
59
- webSearchEnabled?: boolean;
60
- useCurrentPageContext?: boolean;
61
- appFilters?: unknown[];
62
- };
63
- export type ChatNewPayload = PayloadCore<'chat-new', {
64
- name?: string;
65
- dialogues: Array<{
66
- human_message: {
67
- content: string;
68
- mimeType?: 'text/markdown' | 'text/adf';
69
- };
70
- agent_message: {
71
- content: string;
72
- mimeType?: 'text/markdown' | 'text/adf';
73
- };
74
- }>;
75
- prompt?: string | DocNode;
76
- creationContextParams?: CreationContextParams;
77
- isPromptPlaceholder?: boolean;
78
- files?: UploadedFile[];
79
- contentContext?: 'staging-area' | 'global';
80
- sourceId?: string;
81
- minionAlias?: string;
82
- skipCreatingSeededConversation?: boolean;
83
- selectedSpace?: {
84
- id: string;
85
- name: string;
86
- emoji?: string;
87
- };
88
- resetActiveMenu?: boolean;
89
- mode?: ChatModeParam;
90
- aiFeatureContext?: Record<string, unknown>;
91
- agentVersion?: {
92
- versionId?: string;
93
- versionType?: string;
94
- versionNumber?: number;
95
- };
96
- spaceId?: string;
97
- /**
98
- * Optional artifact representing the object the user is currently interacting with or
99
- * acting on (e.g. 3P forge artifacts that are not resolvable without an ARI).
100
- * Sent as `search_artifact` in `body.context`.
101
- */
102
- searchArtifact?: SendMessageSearchArtifact;
103
- /**
104
- * Optional conversation-channel tags forwarded to the backend on conversation creation.
105
- * Used by the agent-mention-in-comment feature to pass mention-in-comment, page:<pageId>,
106
- * and comment:<commentId> so the backend can create a SessionAssociationPublic record.
107
- */
108
- tags?: string[];
109
- } & Partial<TargetAgentParam> & PlaceholderParam>;
110
- export type EditorContextPayloadData = {
111
- document: {
112
- type: 'text/markdown' | 'text/adf';
113
- content: string;
114
- };
115
- selection: {
116
- type: 'text/markdown' | 'text/plain';
117
- content: string;
118
- };
119
- selectionFragment?: string;
120
- selectionLocalIds?: string;
121
- contentMauiId?: string;
122
- mediaFileId?: string;
123
- dynamicUiSource?: {
124
- contentType: string;
125
- startLocalId?: string;
126
- endLocalId?: string;
127
- startIndex?: number;
128
- endIndex?: number;
129
- fragmentAdf?: string;
130
- };
131
- dynamicUiType?: string;
132
- isViewMode?: boolean;
133
- isDraftLockedForEditing?: boolean;
134
- useGenericEditorSkill?: boolean;
135
- additionalContext?: Record<string, unknown>;
136
- } | undefined;
137
- export type WhiteboardContextPayloadData = {
138
- type: 'image/svg+xml' | 'text/plain';
139
- content: string;
140
- contentId?: string;
141
- isViewMode?: boolean;
142
- } | undefined;
143
- export type SlidesContextPayloadData = {
144
- xml: string;
145
- contentId: string;
146
- title: string;
147
- url: string;
148
- selectedSlideIndex: number;
149
- selectedElementIds: string[];
150
- isViewMode?: boolean;
151
- } | undefined;
152
- export type DatabaseContextPayloadData = {
153
- contentId: string;
154
- csv: string;
155
- title: string;
156
- url: string;
157
- selectedElementIds?: string[];
158
- isViewMode?: boolean;
159
- } | undefined;
160
- /** Partial database context for iframe updates (e.g. selection-only). */
161
- export type DatabaseContextUpdatePayloadData = Partial<NonNullable<DatabaseContextPayloadData>>;
162
- export type DatabaseContextPayload = PayloadCore<'database-context-payload', DatabaseContextUpdatePayloadData>;
163
- export type BrowserContextPayloadData = {
164
- context: {
165
- browserUrl: string;
166
- htmlBody?: string;
167
- canvasText?: string;
168
- } | undefined;
169
- };
170
- export type WorkflowContextPayloadData = {
171
- currentWorkflowDocument?: Record<string, unknown>;
172
- };
173
- export type JiraCreateContextPayloadData = {
174
- draftWorkItems: {
175
- projectIdOrKey: string;
176
- issueTypeId: string;
177
- summary: string;
178
- fields: Record<string, unknown>;
179
- }[] | null;
180
- };
181
- export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
182
- data: EditorContextPayloadData;
183
- };
184
- export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
185
- data: BrowserContextPayloadData;
186
- };
187
- export type WhiteboardContextPayload = PayloadCore<'whiteboard-context-payload'> & {
188
- data: WhiteboardContextPayloadData;
189
- };
190
- export type JiraCreateContextPayload = PayloadCore<'jira-create-context-payload'> & {
191
- data: JiraCreateContextPayloadData;
192
- };
193
- export type ChatDraftPayload = PayloadCore<'chat-draft'>;
194
- export type SmartLink3PProjectContext = {
195
- projectId: string;
196
- projectName: string;
197
- projectUrl: string;
198
- };
199
- export type SmartLink3PPostAuthProvider = 'Google Drive';
200
- /**
201
- * Experiment-scoped Smart Link post-auth launch event for
202
- * platform_sl_3p_post_auth_chat_open_fg / platform_sl_3p_post_auth_chat_open_exp.
203
- *
204
- * This opens Rovo Chat in mini-modal mode with custom post-auth UI, without sending
205
- * a prompt. If the experiment does not become permanent, remove this event type as
206
- * part of the experiment cleanup.
207
- */
208
- export type ChatSmartLink3PPostAuthLaunchPayload = PayloadCore<'chat-smartlink-3p-post-auth-launch', {
209
- extensionKey: string;
210
- provider: SmartLink3PPostAuthProvider;
211
- projectContext: SmartLink3PProjectContext;
212
- }>;
213
- export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
214
- export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
215
- export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
216
- mode: 'insert' | 'replace';
217
- content: string;
218
- agentId?: string;
219
- }>;
220
- export type UploadAndInsertMediaPayload = PayloadCore<'upload-and-insert-media', {
221
- sourceUrl: string;
222
- }>;
223
- export type EditorAgentChangedPayload = PayloadCore<'agent-changed', {
224
- agent: {
225
- id: string;
226
- name: string;
227
- identityAccountId?: string | null;
228
- } | null;
229
- }>;
230
- export type ChatOpenPayload = PayloadCore<'chat-open', {
231
- channelId: string;
232
- agentId?: string;
233
- agentName?: string;
234
- agentIdentityAccountId?: string;
235
- avatarUrl?: string;
236
- resetActiveMenu?: boolean;
237
- openAgentSelector?: boolean;
238
- aiFeatureContext?: Record<string, unknown>;
239
- }>;
240
- export type ForgeAppAuthSuccess = PayloadCore<'forge-auth-success', {
241
- is3pActionAuth?: boolean;
242
- agentMessageId?: string;
243
- authUrl?: string;
244
- }>;
245
- export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
246
- is3pActionAuth?: boolean;
247
- errorMessage: string | undefined;
248
- }>;
249
- /** Inserts a prompt into the chat input - either:
250
- * - A prompt without a placeholder - sends as a message
251
- * - A prompt with a placeholder - inserts the prompt into the chat input
252
- */
253
- export type InsertPromptPayload = PayloadCore<'insert-prompt', {
254
- prompt: string;
255
- /**
256
- * Optional complete ADF document to seed the chat input with instead of the plain-string
257
- * `prompt`. When provided, rich nodes (skill pills, links, inline cards, mentions) are
258
- * preserved rather than being flattened to text. `prompt` is still used as a fallback.
259
- */
260
- promptAdf?: DocNode;
261
- /**
262
- * Overrides the default auto-send behavior for prompts.
263
- * By default, prompts with backticks (`) are inserted as placeholders into the chat input
264
- * (backticks indicate a placeholder), while prompts without backticks are sent immediately.
265
- * Set this to true to insert prompts not containing backticks into the chat input for dynamic
266
- * user completion, rather than sending them immediately.
267
- */
268
- overrideAutoSend?: boolean;
269
- /**
270
- * Optional conversation ID to target. When provided, the handler will resume
271
- * the specified conversation (setting placeholder agent, opening the channel,
272
- * and selecting the conversation) before inserting or sending the prompt.
273
- */
274
- channelId?: string;
275
- agentId?: string;
276
- agentName?: string;
277
- agentIdentityAccountId?: string;
278
- avatarUrl?: string;
279
- /**
280
- * Optional files to attach to the chat input alongside the prompt.
281
- * Gated by the enable_rovo_static_prompt_file_uploads experiment.
282
- */
283
- files?: UploadedFile[];
284
- } & PlaceholderParam>;
285
- /** Inserts URLs as inline nodes into the chat input
286
- * - URLs are deduplicated against existing content
287
- * - Formatted as inline card nodes in the editor
288
- * - Supports multiple card types (Jira, Confluence, Trello, etc.)
289
- */
290
- export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
291
- urls: string[];
292
- }>;
293
- /** Selects a conversation action by ID
294
- * - Used to programmatically open a specific action in the conversation actions list
295
- * - The action screen must be already open, and the actions list populated
296
- * - The action must exist in the current actions list
297
- */
298
- export type SelectActionPayload = PayloadCore<'select-action', {
299
- actionId: string;
300
- }>;
301
- /**
302
- * Result shape when a chart is added to an AVP dashboard.
303
- * Matches the return type of ChartApiService.addChartToDashboard().
304
- */
305
- export type AddChartToDashboardResult = {
306
- chart: Record<string, unknown> | null;
307
- canvasLayout: Record<string, unknown> | null;
308
- };
309
- /**
310
- * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
311
- */
312
- export type AddChartToDashboardPayload = PayloadCore<'add-chart-to-dashboard', AddChartToDashboardResult>;
313
- export type TransitionId = string;
314
- export type StatusId = string;
315
- export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
316
- export type RuleConfig = {
317
- [key: string]: string;
318
- };
319
- export type AddStatusRovoPayload = {
320
- statusId: StatusId;
321
- statusName: string;
322
- statusCategory: StatusCategory;
323
- };
324
- export type UpdateStatusRovoPayload = {
325
- oldStatusName: string;
326
- oldStatusCategory: StatusCategory;
327
- newStatusName: string;
328
- newStatusCategory: StatusCategory;
329
- };
330
- export type DeleteStatusRovoPayload = {
331
- statusId: string;
332
- statusName: string;
333
- statusCategory: StatusCategory;
334
- };
335
- export type AddNewTransitionRovoPayload = {
336
- id: TransitionId;
337
- name: string;
338
- toStatusId: StatusId;
339
- toStatusName: string;
340
- toStatusCategory: StatusCategory;
341
- links: {
342
- fromStatusId: StatusId;
343
- fromStatusName: string;
344
- fromStatusCategory: StatusCategory;
345
- }[];
346
- };
347
- export type UpdateTransitionRovoPayload = {
348
- id: TransitionId;
349
- name: string;
350
- toStatusId: StatusId;
351
- toStatusName: string;
352
- toStatusCategory: StatusCategory;
353
- links: {
354
- fromStatusId: StatusId;
355
- fromStatusName: string;
356
- fromStatusCategory: StatusCategory;
357
- }[];
358
- };
359
- export type DeleteTransitionRovoPayloadOld = {
360
- transitionId: TransitionId;
361
- transitionName: string;
362
- };
363
- export type DeleteTransitionRovoPayload = {
364
- id: TransitionId;
365
- name: string;
366
- toStatusId: StatusId;
367
- toStatusName: string;
368
- toStatusCategory: StatusCategory;
369
- links: {
370
- fromStatusId: StatusId;
371
- fromStatusName: string;
372
- fromStatusCategory: StatusCategory;
373
- }[];
374
- };
375
- export type AddRuleRovoPayload = {
376
- ruleTemplateKey: string;
377
- ruleConfig: RuleConfig;
378
- ruleDescription: string;
379
- transitionId: TransitionId;
380
- };
381
- export type UpdateRuleRovoPayload = {
382
- ruleTemplateKey: string;
383
- ruleConfig: RuleConfig;
384
- transitionId: TransitionId;
385
- ruleIdBeingEdited: string;
386
- ruleDescription: string;
387
- };
388
- export type DeleteRuleRovoPayload = {
389
- ruleId: string;
390
- ruleTemplateKey: string;
391
- ruleDescription: string;
392
- transitionId: TransitionId;
393
- };
394
- export type RedirectToWorkflowRovoPayload = {
395
- conversationId: string;
396
- url: string;
397
- };
398
- export type JiraWorkflowWizardAction = {
399
- operationType: 'ADD_STATUS';
400
- payload: AddStatusRovoPayload;
401
- } | {
402
- operationType: 'UPDATE_STATUS';
403
- payload: UpdateStatusRovoPayload;
404
- } | {
405
- operationType: 'DELETE_STATUS';
406
- payload: DeleteStatusRovoPayload;
407
- } | {
408
- operationType: 'ADD_TRANSITION';
409
- payload: AddNewTransitionRovoPayload;
410
- } | {
411
- operationType: 'UPDATE_TRANSITION';
412
- payload: UpdateTransitionRovoPayload;
413
- } | {
414
- operationType: 'DELETE_TRANSITION';
415
- payload: DeleteTransitionRovoPayloadOld | DeleteTransitionRovoPayload;
416
- } | {
417
- operationType: 'ADD_RULE';
418
- payload: AddRuleRovoPayload;
419
- } | {
420
- operationType: 'UPDATE_RULE';
421
- payload: UpdateRuleRovoPayload;
422
- } | {
423
- operationType: 'DELETE_RULE';
424
- payload: DeleteRuleRovoPayload;
425
- } | {
426
- operationType: 'REDIRECT_TO_WORKFLOW';
427
- payload: RedirectToWorkflowRovoPayload;
428
- };
429
- export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
430
- invocationId?: string;
431
- operations?: JiraWorkflowWizardAction[];
432
- currentWorkflowDocument?: Record<string, unknown>;
433
- }>;
434
- type MessageDescriptorWithValues = {
435
- id?: string;
436
- description?: string | object;
437
- defaultMessage?: string;
438
- messageValues?: Record<string, string | number | boolean | null | undefined | Date>;
439
- };
440
- export type GenericExternalActionErrorPayload = PayloadCore<'generic-external-action-error', {
441
- invocationId: string;
442
- errors: (string | MessageDescriptorWithValues)[];
443
- }>;
444
- export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
445
- data?: DashboardInsightsActionsPayloadData;
446
- };
447
- export type DashboardInsightsActionsPayloadData = {
448
- content: string;
449
- } | undefined;
450
- export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
451
- export type OpenChatDebugModalPayload = PayloadCore<'open-chat-debug-modal'>;
452
- export type OpenChatFeedbackModalPayload = PayloadCore<'open-chat-feedback-modal', {
453
- answerQuality: 'good' | 'bad' | 'general';
454
- }>;
455
- export type SmartLinksContextPayload = PayloadCore<'smartlinks-context-payload'> & {
456
- /** Never opens chat — internal signal only. */
457
- openChat: false;
458
- data?: Array<{
459
- /**
460
- * ORS auth key from meta.auth[0].key (e.g. 'gdrive', 'notion', 'miro').
461
- * Matches the `serviceKey` query param in Knowledge API outboundAuthUrl,
462
- * enabling the chat to cross-reference with Knowledge API without a mapping table.
463
- */
464
- orsAuthKey: string;
465
- /**
466
- * Human-readable provider name from ORS generator (e.g. 'Google Drive', 'Slack').
467
- * Available regardless of SmartLinks auth state — matched against connector friendlyName.
468
- */
469
- generatorName?: string;
470
- /** Number of occurrences on the page — used for ranking in the banner. */
471
- count: number;
472
- }>;
473
- };
474
- /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
475
- export type SpaceSelectedPayload = PayloadCore<'space-selected', {
476
- spaceId: string;
477
- title: string;
478
- emoji: string;
479
- description?: string;
480
- }>;
481
- export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
482
- export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
483
- export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
484
- /** Never opens chat — internal signal only. */
485
- openChat: false;
486
- isActive: boolean;
487
- };
488
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
489
- export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
490
- conversationId: string;
491
- planTitle: string;
492
- }>;
493
- export type TaskAskQuestionRenderedPayload = PayloadCore<'task-ask-question-rendered', {
494
- conversationId: string;
495
- invocationId: string;
496
- }>;
497
- export type TaskPlanRenderedPayload = PayloadCore<'task-plan-rendered', {
498
- conversationId: string;
499
- invocationId: string;
500
- }>;
501
- export type TaskSkipAllQuestionsPayload = PayloadCore<'task-skip-all-questions', {
502
- conversationId: string;
503
- invocationId: string;
504
- }>;
505
- export type TaskAskQuestionConfirmedPayload = PayloadCore<'task-ask-question-confirmed', {
506
- conversationId: string;
507
- invocationId: string;
508
- }>;
509
- export type TaskCancelPlanPayload = PayloadCore<'task-cancel-plan', {
510
- conversationId: string;
511
- invocationId: string;
512
- }>;
513
- export type TaskModifyPlanRequestedPayload = PayloadCore<'task-modify-plan-requested', {
514
- conversationId: string;
515
- invocationId: string;
516
- }>;
517
- export type TaskModifyPlanSubmittedPayload = PayloadCore<'task-modify-plan-submitted', {
518
- conversationId: string;
519
- invocationId: string;
520
- prompt: string;
521
- }>;
522
- export declare const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT: "jira-inline-agent-creation-agent-assigned";
523
- export type JiraInlineAgentCreationAgentAssignedPayload = PayloadCore<typeof JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT, {
524
- issueId: string;
525
- }>;
526
- export type Callback = (payload: Payload) => void;
527
- export type TopicEvents = {
528
- [key in Topic]?: Array<{
529
- id: string;
530
- callback: Callback;
531
- }>;
532
- };
533
- export type TopicEventQueue = {
534
- [key in Topic]?: Payload;
535
- };
536
- export type UploadedFile = {
537
- id: string;
538
- conversation_channel_id?: string;
539
- blob_id?: string;
540
- name: string;
541
- size?: number;
542
- type?: string;
543
- created_at?: string;
544
- owner?: string;
545
- isLoading: boolean;
546
- error?: string;
547
- fileObject?: File;
548
- };
549
- type SendMessageSearchArtifact = {
550
- /** The Atlassian Resource Identifier (ARI) of the object. */
551
- ari?: string;
552
- /** The URL of the object. */
553
- url?: string;
554
- };
555
- export {};