Member Junction
    Preparing search index...

    Interface MJActionEntity_IRuntimeActionConfiguration

    Configuration stored on Action.RuntimeActionConfiguration when Action.Type='Runtime'.

    Runtime actions are JavaScript payloads executed inside MJ's isolated-vm sandbox that call back to the host via a permissioned bridge (utilities object) to access metadata, views, queries, entity CRUD, other actions, agents, and AI capabilities.

    This configuration is the security and resource contract for a single Runtime action:

    • What it is permitted to touch (permissions)
    • How much it is allowed to consume (limits)
    • What sandbox affordances it needs (sandbox)
    • How it relates to prior versions of itself (version / previousVersionId)

    The JSON blob is evolvable — new optional keys can be added without a schema migration. Required keys MUST be marked required here and enforced at Save time (see the zod validator in @memberjunction/actions-base).

    Only applicable when Action.Type='Runtime'. NULL for Custom / Generated actions.

    interface MJActionEntity_IRuntimeActionConfiguration {
        limits?: MJActionEntity_IRuntimeActionLimits;
        permissions: MJActionEntity_IRuntimeActionPermissions;
        previousVersionId?: string;
        sandbox?: MJActionEntity_IRuntimeActionSandboxOptions;
        version?: string;
    }
    Index

    Properties

    Resource limits (memory, bridge-call count). Defaults applied when omitted.

    Declarative permission scopes. The bridge validates every call against these.

    previousVersionId?: string

    ID of the previous Action record this version was derived from, if any.

    Sandbox options — additional libraries, debug mode, etc.

    version?: string

    Semantic version of this action (e.g. "1.0.3"). Tracked in version history.