Saxonberg Server API
    Preparing search index...

    Public shape provided by AliasMixin — methods only, per the inter-stuff contract. The persistent (aliases) and session (aliasesSession) stores live as public fields on the implementing class so the Hydrator can reflect into them by name, but they are NOT part of the contract surface; every external read or write goes through the methods below. Tests that need to seed raw state reach for the concrete class type rather than the Alias narrowing.

    interface Alias {
        getAlias(name: string): AliasEntry | undefined;
        getAliases(): ReadonlyMap<string, AliasEntry>;
        hasAlias(name: string): boolean;
        listOverrides(): AliasOverridesSnapshot;
        removeAlias(name: string, actor: Stuff): boolean;
        setAlias(
            name: string,
            body: string,
            opts: {
                actor: Stuff;
                description?: string;
                lifetime?: "persistent" | "session";
            },
        ): void;
    }
    Index

    Methods

    • Drop an alias. Returns true iff something was effectively removed (or a tombstone was newly written for a default-only name). Tombstones the persistent tier when removing a name that has a default; otherwise just deletes the override.

      Parameters

      Returns boolean

    • Set or override an alias. Persistent unless opts.lifetime === 'session'. Validates name shape and body shape at set-time; throws on invalid input.

      Parameters

      • name: string
      • body: string
      • opts: { actor: Stuff; description?: string; lifetime?: "persistent" | "session" }

      Returns void