Files
zpan/shared/types/licensing.ts
T
Jasper Van a5c281b26a refactor(api)!: make site routes RESTful (#526)
Move site configuration under settings, model analytics and licensing as resources, and isolate scheduler runs under the internal API.

BREAKING CHANGE: site email, branding, analytics, licensing, WebDAV verification, and scheduler endpoint paths have changed.

Refs #451
2026-07-27 15:22:28 -04:00

42 lines
945 B
TypeScript

import type { LicenseFeature } from '../feature-registry'
export type { LicenseFeature, ProFeature } from '../feature-registry'
export type LicenseEdition = 'pro' | 'business'
export interface LicenseAssertion {
type: 'zpan.license'
issuer: string
subject: string
accountId: string
instanceId: string
edition: LicenseEdition
licenseId?: string
authorizedHosts: string[]
licenseValidUntil: number
issuedAt: number
notBefore: number
expiresAt: number
}
export interface BindingState {
bound: boolean
active?: boolean
account_email?: string
edition?: LicenseEdition
features?: LicenseFeature[]
license_id?: string
license_valid_until?: number
certificate_expires_at?: number
last_refresh_at?: number
last_refresh_error?: string
cloud_dashboard_url?: string
}
export interface LicenseEntitlements {
bound: boolean
active: boolean
edition: LicenseEdition | null
features: LicenseFeature[]
}