import type { FEATURE } from '../constants/common.js'; export type Feature = (typeof FEATURE)[keyof typeof FEATURE]; export type ProductGates = { [FEATURE.asyncapi]: boolean; [FEATURE.apiFunctions]: boolean; [FEATURE.reactPages]: boolean; [FEATURE.catalog]: boolean; [FEATURE.catalogClassic]: boolean; [FEATURE.lint]: boolean; [FEATURE.scorecard]: boolean; [FEATURE.l10n]: boolean; [FEATURE.openapi]: boolean; [FEATURE.graphql]: boolean; [FEATURE.markdown]: boolean; [FEATURE.devOnboarding]: boolean; [FEATURE.seo]: boolean; [FEATURE.redirects]: boolean; [FEATURE.customPlugins]: boolean; [FEATURE.themeEjecting]: boolean; [FEATURE.products]: boolean; [FEATURE.breadcrumbs]: boolean; [FEATURE.mockServer]: boolean; [FEATURE.soap]: boolean; [FEATURE.codeWalkthrough]: boolean; [FEATURE.scorecards]: boolean; [FEATURE.banner]: boolean; }; export type PlanGates = { [FEATURE.sso]: boolean; [FEATURE.rbac]: boolean; [FEATURE.analytics]: boolean; [FEATURE.removeAttribution]: boolean; [FEATURE.advancedSearch]: boolean; [FEATURE.ssoDirect]: boolean; [FEATURE.aiSearchLimit]: number; [FEATURE.kvStorageLimit]: number; [FEATURE.mcp]: boolean; [FEATURE.mcpGateway]: boolean; [FEATURE.mcpMode]: 'tools' | 'code'; [FEATURE.gatewayFetchRatePerMin]: number; [FEATURE.gatewayFetchQuotaPerDay]: number; [FEATURE.gatewayFetchBudgetPerExec]: number; [FEATURE.mcpRequestRatePerMin]: number; [FEATURE.mcpRequestQuotaPerDay]: number; [FEATURE.cookieConsent]: boolean; [FEATURE.sdkGeneration]: boolean; /** Absent at runtime from legacy tokens, which keep every npm package. */ [FEATURE.customPackages]: boolean; /** Absent at runtime from tokens signed before the claim, which keep the project's Markdoc tags. */ [FEATURE.customMarkdocTags]: boolean; /** Absent at runtime from tokens signed before the claim, which keep the tools in `@mcp` folders. */ [FEATURE.customMcpTools]: boolean; /** The new-pricing tier of the order; `null` or absent for legacy orders. */ pricingTier?: PricingTier | null; }; export type Entitlements = { [key in Feature]: boolean | number | string; } & { /** Signed only when `customPackages` is false. */ allowedPackages?: unknown; pricingTier?: PricingTier | null; }; export type PricingTier = 'pro' | 'scale' | 'enterprise'; //# sourceMappingURL=entitlements.d.ts.map