@atlaskit/rovo-triggers 7.6.0 → 8.0.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 +48 -0
- package/chat-context/package.json +1 -8
- package/chat-context/types/package.json +1 -8
- package/dist/cjs/types.js +14 -0
- package/dist/es2019/types.js +14 -0
- package/dist/esm/types.js +14 -0
- package/dist/types/types.d.ts +34 -1
- package/jsm-journey-builder-types/package.json +1 -8
- package/main/package.json +1 -8
- package/package.json +5 -13
- package/params/package.json +1 -8
- package/params-types/package.json +1 -8
- package/post-message-to-pubsub/package.json +1 -8
- package/solution-architect-types/package.json +1 -8
- package/types/package.json +1 -8
- package/dist/types-ts4.5/common/types/agent/index.d.ts +0 -7
- package/dist/types-ts4.5/common/types/jsm-journey-builder/index.d.ts +0 -11
- package/dist/types-ts4.5/common/types/solution-architect/index.d.ts +0 -59
- package/dist/types-ts4.5/common/utils/chat-context/index.d.ts +0 -1
- package/dist/types-ts4.5/common/utils/chat-context/types.d.ts +0 -7
- package/dist/types-ts4.5/common/utils/params/constants.d.ts +0 -3
- package/dist/types-ts4.5/common/utils/params/index.d.ts +0 -15
- package/dist/types-ts4.5/common/utils/params/types.d.ts +0 -28
- package/dist/types-ts4.5/common/utils/post-message-to-pubsub/index.d.ts +0 -19
- package/dist/types-ts4.5/index.d.ts +0 -8
- package/dist/types-ts4.5/main.d.ts +0 -17
- package/dist/types-ts4.5/types.d.ts +0 -555
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [`590fb0a5ecf3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/590fb0a5ecf3e) -
|
|
28
|
+
EDITOR-7664: allow chat-new to override auto send
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
31
|
+
## 7.7.0
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- [`fabc8bad29d1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fabc8bad29d1e) -
|
|
36
|
+
Add an `insights-open-in-chat` rovo-trigger so Rovo Insights opened from outside the conversation
|
|
37
|
+
assistant panel (e.g. the home insights carousel) reuse the same seeded-chat experience as
|
|
38
|
+
clicking an insight inside the in-panel insights feed.
|
|
39
|
+
- `@atlaskit/rovo-triggers`: add the `InsightsOpenInChatPayload` event type (carries the insight
|
|
40
|
+
ADF, conversation title, serializable icon string keys, and follow-ups).
|
|
41
|
+
- `@atlassian/rovo-growth-pulse`: extract the insight icon/appearance resolvers into a shared
|
|
42
|
+
`ui/insights-feed/resolveInsightIcon` module (new subpath export) and add optional
|
|
43
|
+
`iconKey`/`iconColor` raw API string fields to `InsightItem` so consumers can re-resolve icons.
|
|
44
|
+
`InsightReadyHostMeta.backButtonLabel` is now optional (the host supplies the standardized
|
|
45
|
+
label).
|
|
46
|
+
- `@atlassian/conversation-assistant`: extract the insight seeding logic into a shared
|
|
47
|
+
`useSeedInsightConversation` hook (used by both the in-panel feed and the new trigger) and
|
|
48
|
+
handle the `insights-open-in-chat` trigger in `PubSubListener`, gated behind the
|
|
49
|
+
`rovo_growth_chat_pulse` experiment.
|
|
50
|
+
|
|
3
51
|
## 7.6.0
|
|
4
52
|
|
|
5
53
|
### 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
|
package/dist/es2019/types.js
CHANGED
|
@@ -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
|
package/dist/types/types.d.ts
CHANGED
|
@@ -74,6 +74,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
74
74
|
}>;
|
|
75
75
|
prompt?: string | DocNode;
|
|
76
76
|
creationContextParams?: CreationContextParams;
|
|
77
|
+
/**
|
|
78
|
+
* Overrides the default auto-send behavior for prompts.
|
|
79
|
+
* Set this to true to insert prompts not containing backticks into the chat input for dynamic
|
|
80
|
+
* user completion, rather than sending them immediately.
|
|
81
|
+
*/
|
|
82
|
+
overrideAutoSend?: boolean;
|
|
77
83
|
isPromptPlaceholder?: boolean;
|
|
78
84
|
files?: UploadedFile[];
|
|
79
85
|
contentContext?: 'staging-area' | 'global';
|
|
@@ -107,6 +113,33 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
107
113
|
*/
|
|
108
114
|
tags?: string[];
|
|
109
115
|
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
116
|
+
/**
|
|
117
|
+
* Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
|
|
118
|
+
* reproducing the same experience as clicking an insight inside the in-panel
|
|
119
|
+
* InsightsFeed (seeded ADF agent message, insight header icon/title, seeded
|
|
120
|
+
* follow-ups, and a back-to-pulse override).
|
|
121
|
+
*
|
|
122
|
+
* Published by surfaces that render insights outside the panel (e.g. the home
|
|
123
|
+
* insights carousel). All fields are serializable: the icon is carried as the
|
|
124
|
+
* raw API string keys (`iconKey`/`iconColor`) and re-resolved panel-side via
|
|
125
|
+
* `resolveInsightIcon`/`resolveInsightIconAppearance`, since React components
|
|
126
|
+
* cannot cross the event bus. The standardized back-button label is owned
|
|
127
|
+
* panel-side and is intentionally not part of this payload.
|
|
128
|
+
*/
|
|
129
|
+
export type InsightsOpenInChatPayload = PayloadCore<'insights-open-in-chat', {
|
|
130
|
+
/** Stringified ADF JSON for the insight detail — seeded as the agent message. */
|
|
131
|
+
adf: string;
|
|
132
|
+
/** Conversation name / header title. */
|
|
133
|
+
conversationTitle: string;
|
|
134
|
+
/** Raw API `icon` string key (e.g. `'lightbulb'`), re-resolved panel-side. */
|
|
135
|
+
iconKey: string;
|
|
136
|
+
/** Raw API `color` string key (e.g. `'blueBold'`), re-resolved panel-side. */
|
|
137
|
+
iconColor: string;
|
|
138
|
+
/** Insight category (e.g. group category), used for click analytics attribution. */
|
|
139
|
+
insightCategory: string;
|
|
140
|
+
/** Follow-up prompt strings to seed into the conversation. */
|
|
141
|
+
followUps?: string[] | null;
|
|
142
|
+
}>;
|
|
110
143
|
export type EditorContextPayloadData = {
|
|
111
144
|
document: {
|
|
112
145
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -485,7 +518,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
485
518
|
openChat: false;
|
|
486
519
|
isActive: boolean;
|
|
487
520
|
};
|
|
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;
|
|
521
|
+
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
522
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
490
523
|
conversationId: string;
|
|
491
524
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.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": {
|
|
@@ -23,21 +23,13 @@
|
|
|
23
23
|
"module": "dist/esm/index.js",
|
|
24
24
|
"module:es2019": "dist/es2019/index.js",
|
|
25
25
|
"types": "dist/types/index.d.ts",
|
|
26
|
-
"typesVersions": {
|
|
27
|
-
">=4.5 <4.9": {
|
|
28
|
-
"*": [
|
|
29
|
-
"dist/types-ts4.5/*",
|
|
30
|
-
"dist/types-ts4.5/index.d.ts"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
26
|
"sideEffects": [
|
|
35
27
|
"*.compiled.css"
|
|
36
28
|
],
|
|
37
29
|
"atlaskit:src": "src/index.ts",
|
|
38
30
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^
|
|
40
|
-
"@atlaskit/platform-feature-flags": "^
|
|
31
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
32
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
41
33
|
"@atlassian/conversation-assistant-external-context": "^0.19.0",
|
|
42
34
|
"@babel/runtime": "^7.0.0",
|
|
43
35
|
"bind-event-listener": "^3.0.0"
|
|
@@ -48,8 +40,8 @@
|
|
|
48
40
|
"devDependencies": {
|
|
49
41
|
"@af/integration-testing": "workspace:^",
|
|
50
42
|
"@af/visual-regression": "workspace:^",
|
|
51
|
-
"@atlaskit/css": "^0.
|
|
52
|
-
"@atlaskit/primitives": "^
|
|
43
|
+
"@atlaskit/css": "^1.0.0",
|
|
44
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
53
45
|
"@atlaskit/ssr": "workspace:^",
|
|
54
46
|
"@atlassian/a11y-jest-testing": "^0.12.0",
|
|
55
47
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
package/params/package.json
CHANGED
|
@@ -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
|
}
|
package/types/package.json
CHANGED
|
@@ -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,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 {};
|