mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-29 00:01:42 +08:00
a5c281b26a
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
42 lines
945 B
TypeScript
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[]
|
|
}
|