2026-03-13 23:18:01 +00:00
|
|
|
import type { UserType } from "@/lib/auth";
|
2025-04-25 23:40:15 -07:00
|
|
|
|
2025-09-21 11:02:31 -07:00
|
|
|
type Entitlements = {
|
2026-03-04 19:20:57 +00:00
|
|
|
maxMessagesPerHour: number;
|
2025-09-21 11:02:31 -07:00
|
|
|
};
|
2025-04-25 23:40:15 -07:00
|
|
|
|
|
|
|
|
export const entitlementsByUserType: Record<UserType, Entitlements> = {
|
|
|
|
|
/*
|
|
|
|
|
* For users without an account
|
|
|
|
|
*/
|
|
|
|
|
guest: {
|
2026-03-04 19:20:57 +00:00
|
|
|
maxMessagesPerHour: 10,
|
2025-04-25 23:40:15 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* For users with an account
|
|
|
|
|
*/
|
|
|
|
|
regular: {
|
2026-03-04 19:20:57 +00:00
|
|
|
maxMessagesPerHour: 10,
|
2025-04-25 23:40:15 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: For users with an account and a paid membership
|
|
|
|
|
*/
|
|
|
|
|
};
|