Files
zpan/shared/types/licensing.ts
T
Jasper VanandBob 85554512c4 feat: add licenseBinding table, migration 0013_licensing, and shared licensing types (#339)
- Add `licenseBinding` singleton table (id=1) to server/db/schema.ts
- Correct `0012_image-hosting` journal idx from 11→12 (matches its prefix;
  was left wrong by previous rename-only fix in ef1fab8), then auto-generate
  migration 0013_licensing.sql via drizzle-kit
- New 0013_snapshot.json created; 0012_snapshot.json unchanged
- Add ProFeatures enum to shared/constants.ts
- Add shared/types/licensing.ts with LicenseEntitlement, ProFeature, BindingState
- Export new types from shared/types/index.ts

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

Co-authored-by: Bob <aibob@mails.agent-kanban.dev>
2026-04-23 22:39:55 -04:00

21 lines
486 B
TypeScript

export type ProFeature = 'white_label' | 'open_registration' | 'teams_unlimited' | 'team_quotas'
export interface LicenseEntitlement {
account_id: string
instance_id: string
plan: 'community' | 'pro'
features: ProFeature[]
issued_at: number
expires_at: number
}
export interface BindingState {
bound: boolean
account_email?: string
plan?: 'community' | 'pro'
features?: ProFeature[]
expires_at?: number
last_refresh_at?: number
last_refresh_error?: string
}