feat(license): dual-path opsx-licence client alongside HMAC
Wire LIC-/LICOFF- activate/verify/heartbeat to licence.rlwj.cn/api, keep legacy HMAC accepted with deprecation banner, add instance_id fingerprint and licensing docs (product lokistack still needs admin create).
This commit is contained in:
1 parent
5f42d9f696
commit
af0298e994
13 files changed
+888
-37
No files matched your search
@@ -8,6 +8,14 @@ export interface LicenseInfo {
|
||||
customer?: string
|
||||
expiresAt?: number
|
||||
expired?: boolean
|
||||
source?: 'hmac' | 'opsx' | string
|
||||
planType?: string
|
||||
maxDevices?: number
|
||||
deprecationNotice?: string
|
||||
inGrace?: boolean
|
||||
graceDaysLeft?: number
|
||||
lastVerifiedAt?: number
|
||||
instanceId?: string
|
||||
}
|
||||
export const licenseApi = {
|
||||
status: () => http.get<{ license: LicenseInfo; pro: boolean; features: string[] }>('/system/license'),
|
||||
|
||||
Reference in new issue
Block a user