{
  "namespace": "tabAutomationInput",
  "types": [
    {
      "id": "tabAutomationInput.ReleaseState",
      "type": "string",
      "enum": [
        "confirmed",
        "not_needed",
        "unknown"
      ]
    },
    {
      "id": "tabAutomationInput.PointerActionError",
      "type": "string",
      "enum": [
        "action_failed",
        "input_busy",
        "release_failed",
        "target_unavailable"
      ]
    },
    {
      "id": "tabAutomationInput.SupportedKey",
      "type": "string",
      "enum": [
        "Enter",
        "Escape",
        "Tab",
        "Backspace",
        "Delete",
        "ArrowUp",
        "ArrowDown",
        "ArrowLeft",
        "ArrowRight",
        "Home",
        "End",
        "PageUp",
        "PageDown",
        "Space"
      ]
    },
    {
      "id": "tabAutomationInput.PointerActionResult",
      "type": "object",
      "properties": {
        "completed": {
          "type": "boolean"
        },
        "releaseState": {
          "$ref": "tabAutomationInput.ReleaseState"
        },
        "error": {
          "$ref": "tabAutomationInput.PointerActionError",
          "optional": true
        }
      }
    }
  ],
  "functions": [
    {
      "name": "click",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "x",
          "type": "number"
        },
        {
          "name": "y",
          "type": "number"
        },
        {
          "name": "clickCount",
          "type": "integer",
          "optional": true,
          "minimum": 1,
          "maximum": 2
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "$ref": "tabAutomationInput.PointerActionResult"
          }
        ]
      }
    },
    {
      "name": "hover",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "x",
          "type": "number"
        },
        {
          "name": "y",
          "type": "number"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": []
      }
    },
    {
      "name": "drag",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "startX",
          "type": "number"
        },
        {
          "name": "startY",
          "type": "number"
        },
        {
          "name": "endX",
          "type": "number"
        },
        {
          "name": "endY",
          "type": "number"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "$ref": "tabAutomationInput.PointerActionResult"
          }
        ]
      }
    },
    {
      "name": "releasePointer",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "x",
          "type": "number"
        },
        {
          "name": "y",
          "type": "number"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "$ref": "tabAutomationInput.PointerActionResult"
          }
        ]
      }
    },
    {
      "name": "scroll",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "x",
          "type": "number"
        },
        {
          "name": "y",
          "type": "number"
        },
        {
          "name": "deltaX",
          "type": "number"
        },
        {
          "name": "deltaY",
          "type": "number"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": []
      }
    },
    {
      "name": "insertText",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "text",
          "type": "string"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": []
      }
    },
    {
      "name": "replaceText",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "text",
          "type": "string"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": []
      }
    },
    {
      "name": "pressKey",
      "type": "function",
      "parameters": [
        {
          "name": "tabId",
          "type": "integer"
        },
        {
          "name": "key",
          "$ref": "tabAutomationInput.SupportedKey"
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": []
      }
    }
  ]
}