import { defineModule, defineRoute } from "../../shared/define-module"
import type { AnalyticsRequest, AnalyticsResponse } from "./types"

/**
 * AI Analytics module definition for usage analytics and insights
 */
export const aiAnalyticsModule = defineModule({
  name: "ai-analytics",
  prefix: "/ai/analytics",
  routes: {
    // Get AI usage analytics
    get: defineRoute<AnalyticsRequest, AnalyticsResponse>("GET", "/"),
  },
})

// Export the API type
export type AIAnalyticsAPI = typeof aiAnalyticsModule.api

export type * from "./types"
