Membrane SDK - v0.29.2
    Preparing search index...

    Variable EXTERNAL_EVENT_TYPE_FUNCTION_KEYSConst

    EXTERNAL_EVENT_TYPE_FUNCTION_KEYS: readonly [
        "subscribe",
        "unsubscribe",
        "handle",
        "refresh",
    ] = ...

    Top-level function slots on an ExternalEventType.

    Each slot stores a GenericFunctionDefinition (JavaScript) that the engine runs at a specific lifecycle point on the connection that subscribed to this event type:

    • subscribe — register a webhook with the external system on subscription create
    • unsubscribe — deregister the webhook on subscription delete
    • handle — process an incoming webhook body/headers/query and return events
    • refresh — keep an external subscription alive on the existing refresh scheduler

    Required slots per type (mirrors ConnectorEventHandlerMethods):

    • webhook → subscribe, unsubscribe, handle (refresh optional)