Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

5.0 KB
Raw Blame
// Types
export * from "./types";

// Overview types
export type {
  GetOverviewResponse,
  GetOverviewBucketedResponse,
  MetricResponse,
  LiveUserCountResponse,
} from "./overview";

// Events endpoints
export { fetchSiteEventCount } from "./events";
export type {
  Event,
  EventBucketedPoint,
  NewEventsResponse,
  CursorEventsResponse,
  EventName,
  EventNameStat,
  EventNameStats,
  EventTrendBucket,
  EventsOverview,
  SilentEvent,
  EventProperty,
  AutocaptureEvent,
  AutocaptureValue,
  OutboundLink,
  EventBucketedParams,
  EventPropertiesParams,
  SiteEventCountPoint,
  SiteEventCountParams,
} from "./events";

// Dashboards endpoints
export { fetchDashboards, fetchDashboard, createDashboard, updateDashboard, deleteDashboard } from "./dashboards";
export type { RunDashboardCardBody } from "./dashboards";

// Custom query endpoints
export { generateCustomQuery, runCustomQuery } from "./customQuery";
export type {
  CustomQueryGenerationMessage,
  CustomQueryRow,
  GenerateCustomQueryRequest,
  GenerateCustomQueryResponse,
  RunCustomQueryResponse,
} from "./customQuery";

// Errors types
export type {
  ErrorNameItem,
  ErrorNamesPaginatedResponse,
  ErrorEvent,
  ErrorEventsPaginatedResponse,
  GetErrorBucketedResponse,
  ErrorBucketedParams,
} from "./errors";

// Goals endpoints
export { createGoal, updateGoal, deleteGoal } from "./goals";
export type {
  Goal,
  GoalType,
  GoalConfig,
  GoalDefinition,
  GoalPreview,
  GoalsSummary,
  GoalTimeSeriesPoint,
  PaginationMeta,
  GoalsResponse,
  GoalsParams,
  GoalTimeSeriesParams,
  GoalSessionsParams,
  CreateGoalParams,
  UpdateGoalParams,
} from "./goals";

// Feature flag endpoints
export { fetchFeatureFlags, createFeatureFlag, updateFeatureFlag, deleteFeatureFlag } from "./featureFlags";
export type {
  FeatureFlag,
  FeatureFlagConditionSet,
  FeatureFlagPayload,
  FeatureFlagPayloadValue,
  FeatureFlagRule,
  FeatureFlagRuntime,
  FeatureFlagStats,
  FeatureFlagType,
  FeatureFlagUpdatePayload,
  FeatureFlagVariant,
} from "./featureFlags";

// Experiment endpoints
export { createExperiment, deleteExperiment, fetchExperiments, updateExperiment } from "./experiments";
export type {
  Experiment,
  ExperimentFeatureFlag,
  ExperimentGoal,
  ExperimentPayload,
  ExperimentResults,
  ExperimentStatus,
  ExperimentTimeseries,
  ExperimentTimeseriesPoint,
  ExperimentUpdatePayload,
  ExperimentVariantResult,
  ExperimentWindow,
  ExperimentWindowMode,
} from "./experiments";

// Funnels endpoints
export { saveFunnel, deleteFunnel, stepRequiresValue, hasIncompleteSteps } from "./funnels";
export type {
  SavedFunnel,
  FunnelStep,
  FunnelStepType,
  FunnelRequest,
  SaveFunnelRequest,
  FunnelResponse,
  FunnelSummary,
  FunnelSummariesResponse,
  AnalyzeFunnelParams,
  FunnelStepSessionsParams,
  SaveFunnelParams,
} from "./funnels";

// Performance types
export type {
  GetPerformanceOverviewResponse,
  GetPerformanceTimeSeriesResponse,
  PerformanceByDimensionItem,
  PerformanceOverviewParams,
  PerformanceTimeSeriesParams,
  PerformanceByDimensionParams,
  PaginatedPerformanceResponse,
  WebVitalRatingCounts,
} from "./performance";

// Bots types
export type {
  BotAiSummaryRow,
  BotDimensionKey,
  BotDimensionItem,
  BotDimensionParams,
  BotLayerKey,
  BotOverviewParams,
  BotPurpose,
  BotTimeSeriesParams,
  BotTimeSeriesPoint,
  GetBotAiSummaryResponse,
  GetBotOverviewResponse,
  GetBotTimeSeriesResponse,
  PaginatedBotDimensionResponse,
} from "./bots";

// Sessions endpoints
export { fetchSessions } from "./sessions";
export type {
  GetSessionsResponse,
  SessionDetails,
  SessionEvent,
  SessionEventProps,
  SessionGoal,
  SessionPageviewsAndEvents,
  SessionSort,
  SessionsSummary,
  SessionView,
  SessionViewCounts,
  LiveSessionLocation,
  SessionsParams,
  SessionDetailsParams,
} from "./sessions";

// Users endpoints
export { identifyUser, updateUserTraits, deleteUser } from "./users";
export type {
  UsersResponse,
  UserInfo,
  UserVitals,
  UserLocationBreakdown,
  UserDeviceBreakdown,
  LinkedDevice,
  UserSessionCountResponse,
  UsersListResponse,
  UsersSummary,
  IdentifyUserPayload,
} from "./users";

// Misc endpoints (retention, journeys, page titles, org event count)
export { fetchOrgEventCount } from "./misc";
export type {
  ProcessedRetentionData,
  RetentionMode,
  Journey,
  JourneysResponse,
  JourneyGrouping,
  JourneySummary,
  RetentionParams,
  JourneysParams,
  PageTitleItem,
  PageTitlesPaginatedResponse,
  PageTitlesParams,
  OrgEventCountResponse,
  GetOrgEventCountResponse,
  OrgEventCountParams,
} from "./misc";

// Session Replay endpoints
export { deleteSessionReplay } from "./sessionReplay";
export type {
  SessionReplayListItem,
  SessionReplayListResponse,
  SessionReplayEvent,
  SessionReplayMetadata,
  GetSessionReplayEventsResponse,
  SessionReplaysParams,
} from "./sessionReplay";

// User Traits types
export type { TraitKey, TraitKeysResponse, TraitGroupStats, TraitValueGroup, TraitBreakdown } from "./userTraits";

// Export endpoints
export { exportPdfReport } from "./export";
export type { ExportPdfParams } from "./export";