@informatiq/admin-contract (1.0.0)
Published 2026-08-12 19:36:15 +02:00 by Malin
Installation
@informatiq:registry=https://devops.cloudhost.es/api/packages/CloudHost/npm/npm install @informatiq/admin-contract@1.0.0"@informatiq/admin-contract": "1.0.0"About this package
CloudHost fleet product admin API v1 types and service-token middleware
@informatiq/admin-contract
Stable v1 contract for a CloudHost product's founder-only service API. All routes use the X-Admin-Token header through requireServiceAuth; this token is deliberately independent of the product's tenant JWT secret.
Routes: GET /api/admin/tenants, GET /api/admin/tenants/:id/staff, PATCH /api/admin/staff/:id, POST /api/admin/staff/:id/reset, and GET /api/admin/usage.
The reset response is deliberately Record<string, unknown> because reset semantics differ by product. Usage is Record<string, number> so each product can expose meaningful numeric counters without changing this package.
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| @types/express | ^5.0.3 |
| express | ^5.1.0 |
| typescript | ^5.9.2 |
Peer Dependencies
| ID | Version |
|---|---|
| express | >=4 <6 |
Details
2026-08-12 19:36:15 +02:00
Assets (1)
Versions (1)
View all
npm
2
latest
1.5 KiB
admin-contract-1.0.0.tgz
1.5 KiB
1.0.0
2026-08-12