{
  "openapi": "3.0.1",
  "info": {
    "title": "CNCF CLOMonitor Cloud-Native Security & SBOM Scraper",
    "description": "Audit official CNCF, LF AI & Data, CDF, and LF Networking project health, OpenSSF Scorecard security, SBOM, signed releases, SPDX license scanning, and AI Agent Readiness (AFDocs/llms.txt) scores via CLOMonitor JSON APIs with zero API keys.",
    "version": "1.0",
    "x-build-id": "E52ht0TjFhYfO1DNm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~cncf-clomonitor-compliance-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-cncf-clomonitor-compliance-scraper",
        "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/bifrost-data~cncf-clomonitor-compliance-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-cncf-clomonitor-compliance-scraper",
        "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/bifrost-data~cncf-clomonitor-compliance-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-cncf-clomonitor-compliance-scraper",
        "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": {
          "foundations": {
            "title": "Linux Foundation Umbrellas (Optional)",
            "type": "array",
            "description": "Filter by Linux Foundation umbrellas tracked on CLOMonitor: 'cncf' (Cloud Native Computing Foundation), 'lfaidata' (LF AI & Data), 'cdf' (Continuous Delivery Foundation), 'lfnetworking' (LF Networking). Leave empty for all foundations.",
            "items": {
              "type": "string"
            }
          },
          "maturities": {
            "title": "Project Maturity Levels (Optional)",
            "type": "array",
            "description": "Filter by project maturity tier: 'graduated', 'incubating', 'sandbox'. Leave empty to include all maturity tiers.",
            "items": {
              "type": "string"
            }
          },
          "ratings": {
            "title": "CLOMonitor Compliance Grades (Optional)",
            "type": "array",
            "description": "Filter by overall compliance grade: 'a' (75-100), 'b' (50-74), 'c' (25-49), 'd' (0-24). Leave empty for all grades.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "exact_projects": {
            "title": "Exact Project Coordinates or URLs (Optional)",
            "type": "array",
            "description": "Fetch specific projects directly by 'foundation/project' coordinate (e.g., 'cncf/argo', 'cncf/cilium', 'cncf/connect-rpc', 'lfaidata/milvus'), bare CNCF slug ('opentelemetry'), or full clomonitor.io project URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "search_query": {
            "title": "Keyword Filter / Search Query (Optional)",
            "type": "string",
            "description": "Case-insensitive keyword filter matching project slug, display name, description, category, or repository URL (e.g., 'ebpf', 'gitops', 'service mesh', 'opentelemetry').",
            "default": ""
          },
          "required_passing_checks": {
            "title": "Must Pass Specific Check IDs (Optional)",
            "type": "array",
            "description": "Only emit projects passing (or exempt on) all listed CLOMonitor check IDs across evaluated repos — e.g., 'sbom', 'signed_releases', 'security_insights', 'token_permissions', 'license_scanning', 'content_discoverability' (llms.txt), 'markdown_availability'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "required_failing_checks": {
            "title": "Must Fail Specific Check IDs — Gap Discovery (Optional)",
            "type": "array",
            "description": "Compliance gap hunter: only emit projects currently failing at least one repository check for all listed IDs (e.g., 'sbom', 'signed_releases', 'content_discoverability' to identify projects missing SBOMs or llms.txt).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_global_score": {
            "title": "Minimum Global Compliance Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only emit projects whose overall CLOMonitor global score is at least this threshold (0-100).",
            "default": 0
          },
          "min_security_score": {
            "title": "Minimum Security Category Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only emit projects whose Security category score (OpenSSF Scorecard, SBOM, Security Policy, Signed Releases) is at least this threshold (0-100).",
            "default": 0
          },
          "min_agent_readiness_score": {
            "title": "Minimum AI Agent Readiness / AFDocs Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only emit projects whose AI Agent Readiness score (AFDocs: llms.txt discoverability, Markdown negotiation, truncation safety) is at least this threshold (0-100).",
            "default": 0
          },
          "sort_by": {
            "title": "Sort Results By",
            "enum": [
              "score",
              "name"
            ],
            "type": "string",
            "description": "Sort projects by overall compliance score or alphabetically by name.",
            "default": "score"
          },
          "sort_direction": {
            "title": "Sort Direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending (highest score / Z-A) or ascending (lowest score / A-Z).",
            "default": "desc"
          },
          "exclude_unscored_projects": {
            "title": "Exclude Unscanned / Unscored Project Shells",
            "type": "boolean",
            "description": "Skip newly registered project shells that have no repositories or no calculated global compliance score ($0 charge).",
            "default": true
          },
          "deep_enrich_checks": {
            "title": "Deep Enrich Repository Check Matrix (SBOM, OpenSSF Scorecard & AFDocs)",
            "type": "boolean",
            "description": "Fetch each project's full detail JSON (/api/projects/{foundation}/{name}) to extract all 42+ check flags (SBOM, signed releases, token permissions, SPDX licenses, FOSSA/Snyk URLs, and AFDocs llms.txt readiness).",
            "default": true
          },
          "include_failed_check_diagnostics": {
            "title": "Include Diagnostic Hints for Failed Checks",
            "type": "boolean",
            "description": "Attach concise OpenSSF Scorecard and AFDocs remediation reasons for failing checks on each project.",
            "default": false
          },
          "max_items": {
            "title": "Max Verified Project Records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of verified CLOMonitor project records to emit in this run.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}