{
  "openapi": "3.0.1",
  "info": {
    "title": "WordPress Vulnerability Watch",
    "description": "Monitor WordPress plugins, themes, and core for known vulnerabilities using the public WPVulnerability database.",
    "version": "0.1",
    "x-build-id": "kIL4SC6AdUkc5KZAm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~wp-vulnerability-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-wp-vulnerability-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/kayorama~wp-vulnerability-watch/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-wp-vulnerability-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/kayorama~wp-vulnerability-watch/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-wp-vulnerability-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "plugins"
        ],
        "properties": {
          "plugins": {
            "title": "Plugins to monitor",
            "maxItems": 100,
            "type": "array",
            "description": "WordPress.org plugins with optional installed versions. If omitted, the current directory version is used.",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "title": "Plugin slug",
                  "type": "string",
                  "description": "WordPress.org plugin slug such as woocommerce.",
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                },
                "installedVersion": {
                  "title": "Installed version",
                  "type": "string",
                  "description": "Optional installed plugin version used for affected-version matching.",
                  "pattern": "^\\d+(?:\\.\\d+){0,3}(?:[-+][A-Za-z0-9.-]+)?$"
                }
              },
              "required": [
                "slug"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "slug": "woocommerce",
                "installedVersion": "10.0.0"
              }
            ]
          },
          "themes": {
            "title": "Themes to monitor",
            "maxItems": 50,
            "type": "array",
            "description": "WordPress.org themes with optional installed versions.",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "title": "Theme slug",
                  "type": "string",
                  "description": "WordPress.org theme slug.",
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                },
                "installedVersion": {
                  "title": "Installed version",
                  "type": "string",
                  "description": "Optional installed theme version used for affected-version matching.",
                  "pattern": "^\\d+(?:\\.\\d+){0,3}(?:[-+][A-Za-z0-9.-]+)?$"
                }
              },
              "required": [
                "slug"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "coreVersion": {
            "title": "WordPress core version",
            "pattern": "^\\d+(?:\\.\\d+){0,3}(?:[-+][A-Za-z0-9.-]+)?$",
            "type": "string",
            "description": "Optional WordPress core version to check, such as 6.8.1."
          },
          "minimumSeverity": {
            "title": "Minimum severity",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Only report vulnerabilities at or above this CVSS severity.",
            "default": "low"
          },
          "previousSnapshots": {
            "title": "Previous snapshots",
            "maxItems": 151,
            "type": "array",
            "description": "Optional prior component_snapshot records. Explicit input, including an empty list, takes precedence over stored state.",
            "items": {
              "type": "object",
              "properties": {
                "recordType": {
                  "title": "Record type",
                  "type": "string",
                  "description": "Must be component_snapshot.",
                  "enum": [
                    "component_snapshot"
                  ]
                },
                "componentType": {
                  "title": "Component type",
                  "type": "string",
                  "description": "plugin, theme, or core.",
                  "enum": [
                    "plugin",
                    "theme",
                    "core"
                  ]
                },
                "slug": {
                  "title": "Component slug",
                  "type": "string",
                  "description": "WordPress.org slug, or wordpress for core."
                },
                "installedVersion": {
                  "title": "Installed version",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously monitored installed version."
                },
                "latestVersion": {
                  "title": "Latest version",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed latest version."
                },
                "affectedFindingIds": {
                  "title": "Affected finding IDs",
                  "type": "array",
                  "description": "Previously affected finding keys used for resolved detection.",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "recordType",
                "componentType",
                "slug"
              ],
              "additionalProperties": true
            }
          },
          "useStoredState": {
            "title": "Compare with stored state",
            "type": "boolean",
            "description": "Compare with and safely update prior component snapshots in a named key-value store after a complete run.",
            "default": true
          },
          "stateStoreName": {
            "title": "State store name",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$",
            "type": "string",
            "description": "Named Apify key-value store used to preserve component baselines across separate runs.",
            "default": "wp-vulnerability-watch-state"
          },
          "stateRecordKey": {
            "title": "Optional state record key",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
            "type": "string",
            "description": "Optional explicit record key for isolating one monitoring set within the named state store."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}