{
  "openapi": "3.0.1",
  "info": {
    "title": "Vendor Terms Monitor",
    "description": "Monitor vendor terms, legal pages, subprocessors, SLAs, security, privacy, and data-retention changes from supplied previous/current snapshots.",
    "version": "1.0",
    "x-build-id": "LhvvBkDaVSGC4yaFj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~vendor-terms-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-vendor-terms-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~vendor-terms-monitor/runs": {
      "post": {
        "operationId": "runs-sync-junipr-vendor-terms-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~vendor-terms-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-vendor-terms-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 label for this vendor or legal page snapshot pair.",
            "default": "example-vendor-terms"
          },
          "vendorName": {
            "title": "Vendor Name",
            "type": "string",
            "description": "Human-readable vendor or service name.",
            "default": "Example Vendor"
          },
          "sourceUrl": {
            "title": "Source URL",
            "type": "string",
            "description": "Optional canonical legal, privacy, trust, or terms page URL used for labeling output.",
            "default": "https://example.com/legal/terms"
          },
          "previousUrl": {
            "title": "Previous Snapshot URL",
            "type": "string",
            "description": "Optional older page URL. Fetched only when Allow URL Fetch is enabled and previousText is blank.",
            "default": ""
          },
          "currentUrl": {
            "title": "Current Snapshot URL",
            "type": "string",
            "description": "Optional newer page URL. Fetched only when Allow URL Fetch is enabled and currentText is blank.",
            "default": ""
          },
          "previousLabel": {
            "title": "Previous Label",
            "type": "string",
            "description": "Label for the older legal/policy snapshot.",
            "default": "previous"
          },
          "currentLabel": {
            "title": "Current Label",
            "type": "string",
            "description": "Label for the newer legal/policy snapshot.",
            "default": "current"
          },
          "previousEffectiveDate": {
            "title": "Previous Effective Date",
            "type": "string",
            "description": "Optional effective date override for the previous snapshot. If blank, the actor tries to extract it from text.",
            "default": ""
          },
          "currentEffectiveDate": {
            "title": "Current Effective Date",
            "type": "string",
            "description": "Optional effective date override for the current snapshot. If blank, the actor tries to extract it from text.",
            "default": ""
          },
          "previousText": {
            "title": "Previous Legal Page Text",
            "type": "string",
            "description": "Older vendor terms, privacy, trust-center, SLA, DPA, or subprocessor page text.",
            "default": "Effective date: June 1, 2026\n\n# Example Vendor Terms\n\nWe will provide at least 30 days notice before material changes to these Terms.\nCustomer liability is capped at fees paid in the prior 12 months.\n\n# Subprocessors\nSubprocessors: AWS, Stripe.\n\n# Service Levels\nThe service target is 99.9% monthly uptime with service credits for qualifying downtime.\n\n# Security\nVendor maintains SOC 2 Type II controls, encryption at rest and in transit, MFA for administrative access, and annual penetration testing.\n\n# Privacy and Data Retention\nCustomer personal data is processed only to provide the service.\nCustomer data is deleted within 30 days after account termination unless retention is required by law.\n\n# Support\nCritical support requests receive a first response within 4 business hours."
          },
          "currentText": {
            "title": "Current Legal Page Text",
            "type": "string",
            "description": "Newer vendor terms, privacy, trust-center, SLA, DPA, or subprocessor page text.",
            "default": "Effective date: July 1, 2026\n\n# Example Vendor Terms\n\nWe may update these Terms without notice when we determine changes are necessary.\nCustomer must indemnify Vendor for claims related to use of the service.\n\n# Subprocessors\nSubprocessors: AWS, Stripe, Snowflake.\n\n# Service Levels\nThe service target is 99.0% monthly uptime and service credits are no longer offered.\n\n# Security\nVendor maintains encryption in transit and MFA for administrative access.\n\n# Privacy and Data Retention\nCustomer personal data may be shared with affiliates for analytics and service improvement.\nCustomer data may be retained for 180 days after account termination.\n\n# Support\nCritical support requests receive a first response within 1 business day."
          },
          "targets": {
            "title": "Vendor Targets",
            "type": "array",
            "description": "Optional list of vendor snapshot pairs. When provided, these override the top-level snapshot fields.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 50,
            "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": 50,
            "type": "integer",
            "description": "Maximum vendor snapshot pairs to audit in one run.",
            "default": 1
          },
          "maxSignals": {
            "title": "Maximum Signals Per Target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum stable diff signals emitted per target after severity sorting.",
            "default": 100
          },
          "includeReport": {
            "title": "Generate Summary Report",
            "type": "boolean",
            "description": "Store dataset rows, summary JSON, and a Markdown report in the default key-value store.",
            "default": true
          },
          "allowUrlFetch": {
            "title": "Allow URL Fetch",
            "type": "boolean",
            "description": "Disabled by default. When enabled, the actor may fetch previous/current URLs with strict timeout and byte caps.",
            "default": false
          },
          "maxChargeUsd": {
            "title": "Maximum Charge (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Hard local spending cap for actor-start, per-item, and report events. The actor stops before work or withholds uncharged output when the next event would exceed this amount.",
            "default": 10
          },
          "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 target normalization, billing decisions, 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}