{
  "generatedAt": "2026-07-13T04:55:37.985Z",
  "source": "myop-sdk/src/common/MyopMessages.ts",
  "envelope": {
    "myop": true,
    "messageType": "string — one of the keys below",
    "id": "uuid",
    "direction": "\"up\" | \"down\"",
    "route": "string[] (optional, internal routing)",
    "content": "message-specific payload"
  },
  "transport": "window.postMessage between host and component iframes",
  "directions": {
    "hostToComponent": [
      "AddEventListenerMessage",
      "BindClickMessage",
      "ChangeTextMessage",
      "CleanupMessage",
      "CreateRefComponentMessage",
      "DetectMyopRefsMessage",
      "DisposeMessage",
      "EnvelopedMessage",
      "ExecuteComponentMethod",
      "ExecuteScriptMessage",
      "GetAttributeMessage",
      "GetElementValueMessage",
      "InitMessage",
      "InitRequest",
      "InitResponse",
      "SetAttributeMessage",
      "SetInnerHtml",
      "SetMutationObserverMessage",
      "SetResizeObserverMessage"
    ],
    "componentToHost": [
      "CleanupReplayMessage",
      "ClickReplayMessage",
      "DetectedMyopRefsMessage",
      "ElementValueReplayMessage",
      "EnvelopedMessage",
      "EventListenerCallbackMessage",
      "ExecuteScriptReplyMessage",
      "MutationObserverMessage",
      "RefComponentCreatedMessage",
      "ResizeObserverMessage"
    ]
  },
  "note": "The full type definitions live in @myop/sdk dist/*.d.ts. For agents: fetch the package from npm and read the .d.ts files for exact shapes."
}