chatbot-template/lib/ai/entitlements.ts

26 lines
429 B
TypeScript
Raw Normal View History

import type { UserType } from "@/app/(auth)/auth";
2025-04-25 23:40:15 -07:00
type Entitlements = {
2025-04-25 23:40:15 -07:00
maxMessagesPerDay: number;
};
2025-04-25 23:40:15 -07:00
export const entitlementsByUserType: Record<UserType, Entitlements> = {
/*
* For users without an account
*/
guest: {
maxMessagesPerDay: 10,
2025-04-25 23:40:15 -07:00
},
/*
* For users with an account
*/
regular: {
maxMessagesPerDay: 10,
2025-04-25 23:40:15 -07:00
},
/*
* TODO: For users with an account and a paid membership
*/
};