openmixer — generated API reference
    Preparing search index...

    Interface ResourceLifecycle

    The erased lifecycle view the registry dispatches on — id-in, outcome-out, with the address codec already applied. One implementation (LifecycleGate) serves every mold.

    interface ResourceLifecycle {
        creatable: boolean;
        removable: boolean;
        create(id: ResourceId, delta: WireDelta): Promise<CreateOutcome>;
        remove(id: ResourceId): Promise<RemoveOutcome>;
        ripples(id: ResourceId): readonly RippleTarget[];
    }

    Implemented by

    Index
    creatable: boolean

    Whether this entity declares a POST door at all. Drives OPTIONS/Allow.

    removable: boolean

    Whether this entity declares a DELETE door at all. Drives OPTIONS/Allow.