{
  "openapi": "3.0.1",
  "info": {
    "title": "API Docs Changelog Diff Monitor",
    "description": "Compare API docs, SDK docs, changelog, and pricing-doc snapshots for endpoint, header, auth, version, pricing, deprecation, and release-note changes.",
    "version": "1.0",
    "x-build-id": "rv2bgSF0FbeTAhRfi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~api-docs-changelog-diff-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-api-docs-changelog-diff-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/junipr~api-docs-changelog-diff-monitor/runs": {
      "post": {
        "operationId": "runs-sync-junipr-api-docs-changelog-diff-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/junipr~api-docs-changelog-diff-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-api-docs-changelog-diff-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",
        "properties": {
          "sourceId": {
            "title": "Source ID",
            "type": "string",
            "description": "Stable name for this API docs or changelog source.",
            "default": "example-api-docs"
          },
          "sourceUrl": {
            "title": "Source URL",
            "type": "string",
            "description": "Optional URL label for traceability only. The actor does not fetch this URL.",
            "default": ""
          },
          "previousLabel": {
            "title": "Previous Label",
            "type": "string",
            "description": "Label for the older snapshot.",
            "default": "previous"
          },
          "currentLabel": {
            "title": "Current Label",
            "type": "string",
            "description": "Label for the newer snapshot.",
            "default": "current"
          },
          "previousSnapshot": {
            "title": "Previous Snapshot",
            "type": "string",
            "description": "Older API docs or changelog snapshot as plain text, Markdown, or HTML.",
            "default": "# Example API Changelog\n\n## 2026-06-01\n- Added POST /v1/users for user creation. Requires Idempotency-Key header.\n- GET /v1/users lists active users with Authorization: Bearer token.\n- Deprecated GET /v1/legacy-users. Sunset planned for 2026-09-01.\n\nHeaders:\n- Authorization\n- Idempotency-Key\n\nAuth: Bearer token\nAPI version: v1"
          },
          "currentSnapshot": {
            "title": "Current Snapshot",
            "type": "string",
            "description": "Newer API docs or changelog snapshot as plain text, Markdown, or HTML.",
            "default": "# Example API Changelog\n\n## 2026-07-01\n- Added POST /v1/users for user creation. Requires Idempotency-Key header.\n- GET /v1/users lists active and invited users with Authorization: Bearer token.\n- Added GET /v1/teams for team membership lookup.\n- Deprecated GET /v1/legacy-users. Removal date confirmed for 2026-09-01.\n\nHeaders:\n- Authorization\n- Idempotency-Key\n- X-API-Version\n\nAuth: Bearer token\nAPI version: v1"
          },
          "targets": {
            "title": "Snapshot Targets",
            "type": "array",
            "description": "Optional list of snapshot pairs. When provided, these override the top-level Previous and Current Snapshot fields.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "contentType": {
            "title": "Content Type",
            "enum": [
              "auto",
              "text",
              "markdown",
              "html",
              "openapi"
            ],
            "type": "string",
            "description": "How to normalize snapshots before extracting API signals.",
            "default": "auto"
          },
          "includeCategories": {
            "title": "Signal Categories",
            "type": "array",
            "description": "API, changelog, and pricing-doc signal categories to include in the diff output. Valid values: endpoint, header, auth, version, pricing, deprecation, release-note.",
            "items": {
              "type": "string"
            },
            "default": [
              "endpoint",
              "header",
              "auth",
              "version",
              "pricing",
              "deprecation",
              "release-note"
            ]
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Alias for Max Targets/Maximum Records used by the Junipr actor baseline. When both are provided, actor-specific limits still apply.",
            "default": 1
          },
          "maxTargets": {
            "title": "Maximum Targets",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum snapshot pairs to compare in one run.",
            "default": 1
          },
          "maxChanges": {
            "title": "Maximum Changes Per Target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum structured diff rows emitted per target after sorting by severity and category.",
            "default": 100
          },
          "includeReport": {
            "title": "Generate Summary Report",
            "type": "boolean",
            "description": "Store diff rows, summary JSON, and a Markdown report in the default key-value store.",
            "default": true
          },
          "dryRun": {
            "title": "Dry Run",
            "type": "boolean",
            "description": "Validate input and write a dry-run summary without PPE charges or dataset output.",
            "default": false
          },
          "debug": {
            "title": "Debug Logging",
            "type": "boolean",
            "description": "Enable additional logs for snapshot normalization and signal extraction.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}