diff --git a/packages/x-components/src/x-modules/related-prompts/events.types.ts b/packages/x-components/src/x-modules/related-prompts/events.types.ts index 12d8c1f126..23998df6a3 100644 --- a/packages/x-components/src/x-modules/related-prompts/events.types.ts +++ b/packages/x-components/src/x-modules/related-prompts/events.types.ts @@ -13,4 +13,14 @@ export interface RelatedPromptsXEvents { * to conform a valid request. */ RelatedPromptsRequestUpdated: RelatedPromptsRequest | null; + /** + * The selected prompt has changed. + * Payload: The index of the prompt in the RelatedPrompts list or -1 to remove selection. + */ + UserSelectedARelatedPrompt: number; + /** + * The selected next query of the selected prompt has changed. + * Payload: The index of the next query in the NextQueries list or -1 to remove selection. + */ + UserSelectedARelatedPromptQuery: number; }