{
  "openapi": "3.0.1",
  "info": {
    "title": "EU CAO Compliance Check",
    "description": "Find Dutch generally binding collective agreements that may cover a company. Uses Staatscourant AVV decisions, CBS SBI titles and the statutory minimum-wage table. Checklist items are flagged possible obligation, verify. Indicator, not legal advice.",
    "version": "0.1",
    "x-build-id": "gLr2d0Fk22uE5bSua"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mikee368~eu-cao-compliance-check/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mikee368-eu-cao-compliance-check",
        "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/mikee368~eu-cao-compliance-check/runs": {
      "post": {
        "operationId": "runs-sync-mikee368-eu-cao-compliance-check",
        "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/mikee368~eu-cao-compliance-check/run-sync": {
      "post": {
        "operationId": "run-sync-mikee368-eu-cao-compliance-check",
        "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": {
          "country": {
            "title": "Country",
            "enum": [
              "NL"
            ],
            "type": "string",
            "description": "ISO country. NL is supported. Other EU countries are refused before any fetch until a country module is added.",
            "default": "NL"
          },
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Each item is a KvK number (8 digits), a name, or an object with name, kvkNumber, sbiCodes (58.11 or 5811), sector and employeeCount. SBI or sector is what the match uses. The KvK number is not looked up."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "check",
              "watch"
            ],
            "type": "string",
            "description": "check returns the candidate list. watch does the same and stores seen Staatscourant ids for this monitorId. A later watch run adds a row for each new or changed AVV publication.",
            "default": "check"
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Separate watch state for each schedule. Letters, digits, _ and - only.",
            "default": "default"
          },
          "lookbackDays": {
            "title": "AVV lookback (days)",
            "minimum": 30,
            "maximum": 800,
            "type": "integer",
            "description": "How far back the Staatscourant search goes. The minimum-wage search uses at least 400 days so a short lookback still finds the latest indexation.",
            "default": 550
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Companies after this cap are not checked and are counted on the run summary.",
            "default": 5
          },
          "maxDecisions": {
            "title": "Max AVV texts to read",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many decision XML files to download per company after the search page (20 metadata records). A truncated page is flagged on the summary.",
            "default": 4
          },
          "contractText": {
            "title": "Contract or policy text",
            "type": "string",
            "description": "Optional employer policy text or a template. Do not paste text with names, BSN or salaries of employees. The Actor does not write this text to its output, but Apify keeps your run input under your account retention."
          },
          "contractUrl": {
            "title": "Contract or policy URL",
            "type": "string",
            "description": "Optional public https URL on port 443 of a plain-text or HTML policy. Userinfo, IP literals, localhost, and hosts ending in .local, .internal, .lan, .home, or .corp are refused. Redirects are not followed. HTML is reduced to text. The download stops at 200000 bytes."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Watch mode only. One POST of the digest JSON when a baseline is stored, a change is found, or notifyWhenQuiet is on. The digest lists company names; you are the controller for the destination. The URL must be https on port 443. The Actor does not send e-mail and does not log the URL."
          },
          "notifyWhenQuiet": {
            "title": "Notify when nothing changed",
            "type": "boolean",
            "description": "Also POST the digest after a watch run that finds no new AVV publication.",
            "default": false
          },
          "resetState": {
            "title": "Reset watch state",
            "type": "boolean",
            "description": "Drop seen AVV ids for this monitorId and store a new baseline. That run does not emit change rows.",
            "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}