@follow-app/client-sdk
Version:
TypeScript client SDK for Follow RSS Server API
20 lines (16 loc) • 546 B
text/typescript
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"