@@ -211,6 +211,8 @@ export interface FolderRegisteredProperties {
211211// Navigation events
212212export interface CommandMenuActionProperties {
213213 action_type : CommandMenuAction ;
214+ /** Channel acted on for the bluebird `open-channel` / `open-task` actions. */
215+ channel_id ?: string ;
214216}
215217
216218export interface SkillButtonTriggeredProperties {
@@ -764,6 +766,119 @@ export interface AgentsActionProperties {
764766 success ?: boolean ;
765767}
766768
769+ // ── Project Bluebird / Channels (Website) space events ──
770+
771+ /** Where within the Channels space an interaction originated. */
772+ export type ChannelsSurface =
773+ | "header_button"
774+ | "title_bar"
775+ | "nav"
776+ | "sidebar"
777+ | "command_menu"
778+ | "new_task"
779+ | "dashboards_grid"
780+ | "canvas"
781+ | "context" ;
782+
783+ export type ChannelActionType =
784+ | "enter_space"
785+ | "leave_space"
786+ | "leave_feedback"
787+ | "nav_click"
788+ | "open_channel"
789+ | "collapse_channel"
790+ | "view_more_tasks"
791+ | "create"
792+ | "rename"
793+ | "delete"
794+ | "star"
795+ | "unstar"
796+ | "edit_context_open"
797+ | "new_task_open"
798+ | "new_task_suggestion"
799+ | "file_task"
800+ | "unfile_task"
801+ | "archive_task"
802+ | "open_task" ;
803+
804+ export interface ChannelActionProperties {
805+ action_type : ChannelActionType ;
806+ surface : ChannelsSurface ;
807+ /** The channel acted on, when one is in scope. */
808+ channel_id ?: string ;
809+ /** For file/unfile/archive/open task actions. */
810+ task_id ?: string ;
811+ /** For file_task: destination channel when different from `channel_id`. */
812+ target_channel_id ?: string ;
813+ /** For nav_click: which destination ("home"|"inbox"|"canvas"|"agents"|"files"|"settings"). */
814+ nav_target ?: string ;
815+ /** For new_task_suggestion: the starter-prompt card label. */
816+ suggestion_label ?: string ;
817+ /** Whether the underlying mutation resolved successfully. */
818+ success ?: boolean ;
819+ }
820+
821+ export type DashboardActionType =
822+ | "open"
823+ | "create"
824+ | "delete"
825+ | "save"
826+ | "fork"
827+ | "edit_toggle"
828+ | "revert"
829+ | "refresh"
830+ | "poll_mode_change"
831+ | "date_range_apply" ;
832+
833+ export interface DashboardActionProperties {
834+ action_type : DashboardActionType ;
835+ surface : ChannelsSurface ;
836+ channel_id ?: string ;
837+ dashboard_id ?: string ;
838+ /** The canvas render kind. */
839+ kind ?: "json-render" | "freeform" ;
840+ /** Template chosen on create. */
841+ template_id ?: string ;
842+ /** edit_toggle: the state being entered. */
843+ editing ?: boolean ;
844+ /** poll_mode_change: the new value ("static"|"10s"|"10min"). */
845+ poll_mode ?: string ;
846+ /** date_range_apply: the named range, when not custom. */
847+ range_name ?: string ;
848+ /** Whether the underlying mutation resolved successfully. */
849+ success ?: boolean ;
850+ }
851+
852+ export type CanvasPromptSurface = "json" | "freeform" ;
853+
854+ export interface CanvasPromptSentProperties {
855+ surface : CanvasPromptSurface ;
856+ dashboard_id ?: string ;
857+ /** True when sent via a suggestion chip rather than free-typed. */
858+ from_suggestion : boolean ;
859+ /** "ask_agent_to_fix" for the freeform self-repair path; absent otherwise. */
860+ intent ?: "ask_agent_to_fix" ;
861+ prompt_length_chars : number ;
862+ }
863+
864+ export type ContextActionType = "save_version" | "generate_started" | "discard" ;
865+
866+ export interface ContextActionProperties {
867+ action_type : ContextActionType ;
868+ channel_id : string ;
869+ /** generate_started only. */
870+ execution_type ?: "local" | "cloud" ;
871+ /** save_version: whether this created the first version vs. an update. */
872+ is_first_version ?: boolean ;
873+ success ?: boolean ;
874+ }
875+
876+ export interface ChannelsSpaceViewedProperties {
877+ /** Total channels visible when the space mounts. */
878+ channel_count : number ;
879+ starred_count : number ;
880+ }
881+
767882// Subscription / billing events
768883
769884export type UpgradePromptShownSurface = "usage_limit_modal" | "upgrade_dialog" ;
@@ -936,6 +1051,13 @@ export const ANALYTICS_EVENTS = {
9361051 CLOUD_TASK_USAGE_BLOCKED : "Cloud task usage blocked" ,
9371052 SUBSCRIPTION_STARTED : "Subscription started" ,
9381053 SUBSCRIPTION_CANCELLED : "Subscription cancelled" ,
1054+
1055+ // Project Bluebird (Channels) events
1056+ CHANNELS_SPACE_VIEWED : "Channels space viewed" ,
1057+ CHANNEL_ACTION : "Channel action" ,
1058+ DASHBOARD_ACTION : "Dashboard action" ,
1059+ CANVAS_PROMPT_SENT : "Canvas prompt sent" ,
1060+ CONTEXT_ACTION : "Context action" ,
9391061} as const ;
9401062
9411063// Event property mapping
@@ -1071,4 +1193,11 @@ export type EventPropertyMap = {
10711193 [ ANALYTICS_EVENTS . CLOUD_TASK_USAGE_BLOCKED ] : CloudTaskUsageBlockedProperties ;
10721194 [ ANALYTICS_EVENTS . SUBSCRIPTION_STARTED ] : SubscriptionStartedProperties ;
10731195 [ ANALYTICS_EVENTS . SUBSCRIPTION_CANCELLED ] : SubscriptionCancelledProperties ;
1196+
1197+ // Project Bluebird (Channels) events
1198+ [ ANALYTICS_EVENTS . CHANNELS_SPACE_VIEWED ] : ChannelsSpaceViewedProperties ;
1199+ [ ANALYTICS_EVENTS . CHANNEL_ACTION ] : ChannelActionProperties ;
1200+ [ ANALYTICS_EVENTS . DASHBOARD_ACTION ] : DashboardActionProperties ;
1201+ [ ANALYTICS_EVENTS . CANVAS_PROMPT_SENT ] : CanvasPromptSentProperties ;
1202+ [ ANALYTICS_EVENTS . CONTEXT_ACTION ] : ContextActionProperties ;
10741203} ;
0 commit comments