25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
/**
|
|
* Runtime sentinel identifying this capability — string-keyed so it
|
|
* survives type erasure and is safe to log / pass through wire formats.
|
|
*
|
|
* Plugins that declare `perTenant: true` jobs in their manifest
|
|
* implicitly require this capability — the host resolves it
|
|
* automatically — but the literal MUST exist as a value so
|
|
* manifest-shape checks and host-side lookups can compare against it.
|
|
*/
|
|
export const TENANT_PROVIDER_CAPABILITY_ID = "tenant.provider" as const;
|
|
|
|
export type TenantProviderCapabilityId = typeof TENANT_PROVIDER_CAPABILITY_ID;
|
|
|
|
/**
|
|
* Re-export of the canonical {@link
|
|
* import("@suaveplan/api-types/capabilities").CapabilityId} union.
|
|
*
|
|
* As of the Stage-1 coherence fixes, `"tenant.provider"` is part of the
|
|
* `CapabilityIdRegistry` shipped by `@suaveplan/api-types/capabilities`
|
|
* directly, so this package no longer needs a widening alias. The
|
|
* re-export remains for source compatibility with consumers that
|
|
* imported `CapabilityId` from `@suaveplan/api-tenant-provider`.
|
|
*/
|
|
export type { CapabilityId } from "@suaveplan/api-types/capabilities";
|