Generated from the public declaration entry point packages/core/dist/conformance.d.ts. Internal modules are intentionally excluded.
Kind: interface
One framework-independent entitlement-adapter conformance case.
export interface EntitlementAdapterConformanceCase {
readonly name: string;
run(createAdapter: EntitlementAdapterConformanceFactory): Promise<void>;
}Kind: const
Behaviour every request-time {@link EntitlementAdapter} must exhibit.
The cases have no test-framework dependency:
for (const testCase of entitlementAdapterConformanceCases) {
it(testCase.name, () => testCase.run(createEntitlementAdapter));
}export declare const entitlementAdapterConformanceCases: readonly EntitlementAdapterConformanceCase[];Kind: type
Build an adapter over the exact semantic fixture supplied by the suite.
The factory translates these states into its provider and persistence model; the public adapter remains principal-keyed and provider-neutral.
export type EntitlementAdapterConformanceFactory = (
fixture: EntitlementAdapterConformanceFixture,
) => Promise<EntitlementAdapter>;Kind: interface
Semantic entitlement state supplied to one conformance case.
Repeated entries for one principal are successive authoritative states. Factories must consume one entry on every resolution so the suite can prove that a previous success is not used as fallback.
export interface EntitlementAdapterConformanceFixture {
readonly states: readonly EntitlementAdapterConformanceState[];
}Kind: interface
One principal's state for one successive request-time resolution.
export interface EntitlementAdapterConformanceState {
readonly principalId: PrincipalId;
readonly state: EntitlementFixtureState;
}Kind: type
Semantic request-time state for one entitlement resolution.
export type EntitlementFixtureState =
| Readonly<{
readonly kind: "current";
readonly entitlements: readonly EntitlementName[];
}>
| Readonly<{
readonly kind: "missing" | "stale" | "future" | "corrupt" | "unavailable";
}>;Kind: interface
One framework-independent identity-adapter conformance case.
export interface IdentityAdapterConformanceCase {
readonly name: string;
run(createAdapter: IdentityAdapterConformanceFactory): Promise<void>;
}Kind: const
Behaviour every provider-neutral {@link IdentityAdapter} must exhibit.
The cases have no test-framework dependency:
for (const testCase of identityAdapterConformanceCases) {
it(testCase.name, () => testCase.run(createIdentityAdapter));
}export declare const identityAdapterConformanceCases: readonly IdentityAdapterConformanceCase[];Kind: type
Build an adapter over the exact semantic fixture supplied by the suite.
Provider-specific evidence, storage, and configuration remain inside the
factory. Return the adapter directly when it accepts an {@link IdentityLinkKey};
for richer adapter inputs, return a semantic-key resolver that supplies the
additional verified evidence before calling the real adapter. Keys in
unavailableKeys must exercise an operational failure.
export type IdentityAdapterConformanceFactory = (
fixture: IdentityAdapterConformanceFixture,
) => Promise<IdentityAdapterConformanceSubject>;Kind: interface
Semantic identity state supplied to one conformance case.
export interface IdentityAdapterConformanceFixture {
readonly links: readonly IdentityLink[];
readonly unavailableKeys: readonly IdentityLinkKey[];
}Kind: interface
Semantic-key lookup surface exercised by the identity conformance cases.
An {@link IdentityAdapter} whose input carries additional verified evidence can expose that real adapter through this surface by constructing its richer input for each supplied issuer-and-subject key.
export interface IdentityAdapterConformanceSubject {
readonly resolvePrincipalId: (
key: IdentityLinkKey,
) => Promise<PrincipalId | null>;
}