feat: deliver client activation credentials and upgrade guidance
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
2026-10-12 09:27:39 +08:00
parent 54c318c615
commit 099878dbba
13 changed files with 163 additions and 11 deletions

View File

@@ -28,3 +28,5 @@ export async function listLicenseInstances(id:number) { return api.get<{data:Lic
export async function getLicense(id:number) { return api.get<{data:License}>(`/licenses/${id}`) }
export async function revokeLicense(id:number,idempotencyKey:string) { return api.post(`/licenses/${id}/revoke`,{}, {headers:{'Idempotency-Key':idempotencyKey}}) }
export async function renewLicense(id:number,expires_at:string,idempotencyKey:string) { return api.post(`/licenses/${id}/renew`,{expires_at},{headers:{'Idempotency-Key':idempotencyKey}}) }
export async function provisionLicenseInstance(id:number) { return api.post<{data:{id:number;instance_id:string;license_id:number;status:string;secret:string}}>(`/licenses/${id}/instances`,{}) }