/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/dashboard/src/api/agents-plan-usage.ts
20 строк
660 B
Himanshu Garg
feat(api, dashboard, shared): introduce entitlements for agents fixes NV-7427 (#11519)
11 июн 2026, 21:12
Не верифицирован
11 июн 2026, 21:12
448665c
Код
Авторство
О чём код?
import type { ResourceLimitSource } from '@novu/shared'; /** * Per-environment usage of a plan-limited resource (agents, active channels) * against the organization plan limit. Promoted (synced) production copies do * not consume a second plan slot. */ export type PlanUsage = { used: number; limit: number; }; /** Agent plan usage, extended with the hard creation cap. */ export type AgentPlanUsage = PlanUsage & { /** Total agents in the environment, including inactive ones. */ totalCreated: number; /** Hard cap on total agents the organization can create per environment. */ creationLimit: number; limitSource: ResourceLimitSource; };