{
  "namespace": "tabAiPrivacy",
  "types": [
    {
      "id": "tabAiPrivacy.MatchType",
      "type": "string",
      "enum": [
        "exact",
        "fuzzy"
      ]
    },
    {
      "id": "tabAiPrivacy.BlockedUrlEntry",
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "matchType": {
          "$ref": "tabAiPrivacy.MatchType"
        }
      }
    },
    {
      "id": "tabAiPrivacy.ApiResponse",
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean"
        },
        "error": {
          "type": "string",
          "optional": true
        }
      }
    }
  ],
  "functions": [
    {
      "name": "getBlockedUrls",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean"
              },
              "entries": {
                "type": "array",
                "items": {
                  "$ref": "tabAiPrivacy.BlockedUrlEntry"
                },
                "optional": true
              },
              "error": {
                "type": "string",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "getPolicyBlockedUrlList",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean"
              },
              "urls": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "optional": true
              },
              "error": {
                "type": "string",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "addBlockedUrls",
      "type": "function",
      "parameters": [
        {
          "name": "entries",
          "type": "array",
          "items": {
            "$ref": "tabAiPrivacy.BlockedUrlEntry"
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean"
              },
              "entries": {
                "type": "array",
                "items": {
                  "$ref": "tabAiPrivacy.BlockedUrlEntry"
                },
                "optional": true
              },
              "error": {
                "type": "string",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "removeBlockedUrls",
      "type": "function",
      "parameters": [
        {
          "name": "entries",
          "type": "array",
          "items": {
            "$ref": "tabAiPrivacy.BlockedUrlEntry"
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "$ref": "tabAiPrivacy.ApiResponse"
          }
        ]
      }
    },
    {
      "name": "clearAllBlockedUrls",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "$ref": "tabAiPrivacy.ApiResponse"
          }
        ]
      }
    },
    {
      "name": "checkMoaCertificate",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "status",
            "type": "object",
            "properties": {
              "hasMoaCertificate": {
                "type": "boolean"
              },
              "platform": {
                "type": "string"
              }
            }
          }
        ]
      }
    }
  ],
  "events": [
    {
      "name": "onBlockedUrlsAdded",
      "type": "function",
      "parameters": [
        {
          "name": "entries",
          "type": "array",
          "items": {
            "$ref": "tabAiPrivacy.BlockedUrlEntry"
          }
        }
      ]
    },
    {
      "name": "onBlockedUrlsRemoved",
      "type": "function",
      "parameters": [
        {
          "name": "entries",
          "type": "array",
          "items": {
            "$ref": "tabAiPrivacy.BlockedUrlEntry"
          }
        }
      ]
    },
    {
      "name": "onBlockedUrlListChanged",
      "type": "function",
      "parameters": []
    }
  ]
}