{
  "openapi": "3.0.1",
  "info": {
    "title": "WordPress Plugin Release & Compatibility Risk Monitor",
    "description": "Monitor WordPress.org plugin releases, requirements, tested-up-to lag, staleness, availability, and deterministic upgrade-risk signals.",
    "version": "0.1",
    "x-build-id": "pwmdoKcFEwLxRGj1s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~wordpress-plugin-release-risk-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-wordpress-plugin-release-risk-monitor",
        "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~wordpress-plugin-release-risk-monitor/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-wordpress-plugin-release-risk-monitor",
        "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~wordpress-plugin-release-risk-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-wordpress-plugin-release-risk-monitor",
        "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": [
          "pluginSlugs"
        ],
        "properties": {
          "pluginSlugs": {
            "title": "WordPress.org plugin slugs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Directory slugs such as woocommerce or wordfence.",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
            },
            "default": [
              "woocommerce",
              "wordfence"
            ]
          },
          "currentWordPressVersion": {
            "title": "Target WordPress version",
            "pattern": "^\\d+(?:\\.\\d+){0,2}$",
            "type": "string",
            "description": "Optional target used to flag tested-up-to lag, such as 6.8."
          },
          "staleAfterDays": {
            "title": "Stale release threshold",
            "minimum": 30,
            "maximum": 3650,
            "type": "integer",
            "description": "Flag plugins whose latest recorded release is older than this number of days.",
            "default": 365
          },
          "previousSnapshots": {
            "title": "Previous snapshots",
            "maxItems": 100,
            "type": "array",
            "description": "Optional prior plugin_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 plugin_snapshot.",
                  "enum": [
                    "plugin_snapshot"
                  ]
                },
                "slug": {
                  "title": "Plugin slug",
                  "type": "string",
                  "description": "WordPress.org directory slug for this prior snapshot.",
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                },
                "version": {
                  "title": "Previous version",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed plugin version, or null."
                },
                "requiresWordPress": {
                  "title": "Previous WordPress requirement",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed minimum WordPress version, or null."
                },
                "testedUpTo": {
                  "title": "Previous tested-through version",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed tested-up-to version, or null."
                },
                "requiresPhp": {
                  "title": "Previous PHP requirement",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed minimum PHP version, or null."
                },
                "lastUpdated": {
                  "title": "Previous update time",
                  "type": "string",
                  "nullable": true,
                  "description": "Previously observed directory update timestamp, or null."
                }
              },
              "required": [
                "recordType",
                "slug"
              ],
              "additionalProperties": true
            }
          },
          "useStoredState": {
            "title": "Compare with stored state",
            "type": "boolean",
            "description": "Compare with and safely update prior 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 plugin baselines across separate runs.",
            "default": "wp-plugin-release-risk-monitor-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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}