Body, Mind & Soul — API Reference
    Preparing search index...

    Function buildTriggerSchemaJson

    • Machine-readable (JSON-serializable) equivalent of the schema data for a single consumer type — same underlying registry walk as buildTriggerImportPrompt, just shaped for consumption by code/an external LLM's fetch instead of prose.

      Parameters

      • consumerType: string

        Key in TRIGGER_CONSUMER_REGISTRY (e.g. "feature", "effect", "action")

      Returns {
          conditionTypes: string[];
          consumerType: string;
          hookMode: string;
          hooks: string[] | null;
          iterators: string[] | null;
          outcomeTypes: string[];
      }