import type { RunEnvironment } from '../../automation/flow-run/flow-run'; import type { FlowId } from '../../automation/flows/flow'; import type { McpId } from '../../automation/mcp/mcp'; import type { ProjectId } from '../../management/project/project'; import type { UserId } from '../user/user'; type FlowCreated = { flowId: FlowId; }; type PiecesSearch = { target: 'steps' | 'triggers'; search: string; }; type TemplateSearch = { search: string; tags: string[]; pieces: string[]; }; type RunCreated = { projectId: ProjectId; flowId: FlowId; environment: RunEnvironment; count: number; }; type FlowPublished = { flowId: FlowId; }; type SignedUp = { userId: UserId; email: string; firstName: string; lastName: string; projectId: ProjectId; }; type QuotaAlert = { percentageUsed: number; }; type FlowImported = { id: string; name: string; location: 'import flow view' | 'inside the builder' | 'import flow by uri encoded query param'; tab?: string; }; type FlowImportedUsingFile = { location: 'inside dashboard' | 'inside the builder'; multiple: boolean; }; type FlowIssueClicked = { flowId: string; }; type FlowIssueResolved = { flowId: string; }; type RequestTrialSubmitted = { fullName: string; email: string; numberOfEmployees: string; companyName: string; goal: string; }; type RequestTrialClicked = { location: string; }; type KeyActivated = { date: string; key: string; }; type UpgradeClicked = { limitType?: 'team'; }; type UpgradePopup = { limitType?: 'team'; }; type ReferralLinkCopied = { userId: UserId; }; type RewardButtonClicked = { source: 'note' | 'rewards-button'; }; type RewardInstructionsClicked = { type: 'share-template' | 'linkedin' | 'referral' | 'contribute-piece'; }; type Referral = { referredUserId: UserId; }; type FlowShared = { flowId: FlowId; projectId: ProjectId; }; type OpenedFromDashboard = { location: 'sidenav' | 'tasks-progress'; }; type FormsViewed = { flowId: string; projectId: string; formProps: Record; }; type UserInvited = { platformId: string; projectId?: string; email: string; }; type TriggerFailuresExceeded = { projectId: string; flowId: string; pieceName: string; pieceVersion: string; }; type AiProviderConfiguredOrUsed = { provider: string; projectId: string; platformId: string; }; type McpToolCalled = { mcpId: McpId; toolName: string; }; type McpServerConnected = { projectId: string; userId: string; }; type PieceSelectorSearch = { search: string; isTrigger: boolean; selectedActionOrTriggerName: string | null; }; export declare enum TelemetryEventName { SIGNED_UP = "signed.up", QUOTA_ALERT = "quota.alert", REQUEST_TRIAL_CLICKED = "request.trial.clicked", REQUEST_TRIAL_SUBMITTED = "request.trial.submitted", KEY_ACTIVATED = "key.activated", FLOW_ISSUE_CLICKED = "flow.issue.clicked", FLOW_ISSUE_RESOLVED = "flow.issue.resolved", USER_INVITED = "user.invited", UPGRADE_POPUP = "upgrade.popup", CREATED_FLOW = "flow.created", DEMO_IMPORTED = "demo.imported", FLOW_RUN_CREATED = "run.created", FLOW_PUBLISHED = "flow.published", /**used with templates dialog + import flow component + flows imported by uri query param*/ FLOW_IMPORTED = "flow.imported", /**used only with import flow dialog*/ FLOW_IMPORTED_USING_FILE = "flow.imported.using.file", PIECES_SEARCH = "pieces.search", REFERRAL = "referral", REFERRAL_LINK_COPIED = "referral.link.copied", FLOW_SHARED = "flow.shared", TEMPLATE_SEARCH = "template.search", FORMS_VIEWED = "forms.viewed", FORMS_SUBMITTED = "forms.submitted", REWARDS_OPENED = "rewards.opened", REWARDS_INSTRUCTION_CLICKED = "rewards.instructions.clicked", TRIGGER_FAILURES_EXCEEDED = "trigger.failures.exceeded", AI_PROVIDER_USED = "ai.provider.used", AI_PROVIDER_CONFIGURED = "ai.provider.configured", MCP_TOOL_CALLED = "mcp.tool.called", MCP_SERVER_CONNECTED = "mcp.server.connected", UPGRADE_POPUP_OPENED = "upgrade.popup.opened", UPGRADE_CLICKED = "upgrade.clicked", OPENED_PRICING_FROM_DASHBOARD = "opened.pricing.from.dashboard", PIECE_SELECTOR_SEARCH = "piece.selector.search" } type BaseTelemetryEvent = { name: T; payload: P; }; export type TelemetryEvent = BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent> | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent | BaseTelemetryEvent; export {}; //# sourceMappingURL=telemetry.d.ts.map