{
  "openapi": "3.1.0",
  "info": {
    "title": "Spurvik EU AI Act Guardrails & Provenance API",
    "version": "1.0.16",
    "summary": "EU Frankfurt (fra1) API & Streamable HTTP MCP server for EU AI Act Art. 50(1) AI notices, 2 Dec 2026 Art. 50(2) C2PA checks, Art. 12 zero-prompt HMAC-SHA256 receipts, and Art. 14 human approval gates.",
    "description": "Open-source MIT SDK (`spurvik@1.0.16`), MCP server (`spurvik-mcp-server@1.0.13`), and n8n community node (`n8n-nodes-spurvik@1.0.13`) operated in EU Frankfurt (`fra1`) by EyeTea Solutions ApS (CVR 37093378, Denmark).\n\n**Zero-Key Public Operations** (`scanPublicUrl`, `batchScanDomains`, `checkImageC2paUrl`, `testHumanGateVectors`, `generateVendorQuestionnaireAnswers`, `classifyAiActRisk`, `generateArt50BadgeSnippet`, `generateSetupSnippet`, `findUnwrappedAiCalls`, `verifyTelemetryReceipt`, `callMcpTool`, `getStatusShieldSvg`, `getHealth`) require no authentication.\n**Workspace Operations** (`ingestSignedTelemetry`, `createHumanApprovalRequest`) use a project Bearer key (`spurvik_live_...`) minted in 10 seconds at https://console.spurvik.com/signup (`Free €0`: 10k events/mo, 30d; `Pro €19/mo` or `€190/yr`: white-label badge, 250k/mo, 90d Frankfurt vault, hosted approval queue, DPO `.md` summary; `Team €79/mo` or `€790/yr`: 2M/mo, 12mo retention, webhook export, Annex IV technical draft; `Done-For-You €199` once: 24h engineer setup incl. 1 yr Pro).\n\nInformational engineering tooling — not legal advice.",
    "contact": {
      "name": "EyeTea Solutions ApS (Spurvik)",
      "url": "https://spurvik.com",
      "email": "hello@spurvik.com"
    },
    "license": {
      "name": "MIT",
      "url": "https://github.com/spurvik/spurvik/blob/main/LICENSE"
    }
  },
  "servers": [
    {
      "url": "https://console.spurvik.com",
      "description": "EU Frankfurt (fra1) production control plane"
    }
  ],
  "paths": {
    "/api/v1/sandbox/scan": {
      "get": {
        "operationId": "scanPublicUrl",
        "summary": "Scan a public domain or HTTPS URL for AI widgets, SDKs, CMS platforms, C2PA hero-image proxies & Art. 50(1) AI notices",
        "description": "Read-only, stateless frontpage scan (no API key, no cookies, SSRF-guarded). Detects 16 AI chat/voice widgets, AI SDK bundles, CMS/tag-manager platforms (Shopify, WordPress, Google Tag Manager, Webflow, Framer, Next.js), hero image URLs for 2 Dec 2026 C2PA CDN-strip checks, and visible Art. 50(1) AI interaction notices.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Public hostname or HTTPS URL to scan (for example folk.app or doctolib.fr).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scan completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxScanResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or non-public URL."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/portfolio/scan": {
      "get": {
        "operationId": "batchScanDomains",
        "summary": "Batch-scan 1 to 10 public domains in parallel for agency client audits & multi-brand portfolios",
        "description": "Zero-key, zero-cookie, SSRF-guarded parallel frontpage audit of 1 to 10 public domains in EU Frankfurt (`fra1`). Refuses the batch before any request runs if an entry is private, localhost, IP, or an email address. Returns per-domain detected AI widgets/SDKs, CMS/GTM installer links, 2 Dec 2026 hero-image C2PA CDN-strip diagnostics, shareable DPO brief URLs, live SVG status shields, and a paste-ready Markdown proposal table.",
        "parameters": [
          {
            "name": "domains",
            "in": "query",
            "required": true,
            "description": "Comma-separated list of 1 to 10 public domains (for example folk.app,stepnetwork.dk).",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 2048
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code for cockpit and plan links (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Portfolio batch scan completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioBatchScanResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing, >10, or non-public domain entry."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      },
      "post": {
        "operationId": "batchScanDomainsPost",
        "summary": "POST 1 to 10 public domains for parallel EU AI Act Art. 50 & C2PA portfolio audit",
        "description": "JSON body equivalent of `GET /api/v1/portfolio/scan` (`{\"domains\":[\"folk.app\",\"stepnetwork.dk\"]}`). Zero cookies, `Cache-Control: no-store`, and fail-closed SSRF filtering.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "domains"
                ],
                "properties": {
                  "domains": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 512
                    }
                  },
                  "locale": {
                    "type": "string",
                    "maxLength": 8
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Portfolio batch scan completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioBatchScanResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or non-public domain entry."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/report/markdown": {
      "get": {
        "operationId": "exportDomainReportMarkdown",
        "summary": "Export a shareable 1-page EU AI Act Art. 50(1) & 2 Dec 2026 Art. 50(2) domain readiness brief as JSON or raw Markdown",
        "description": "Zero-key, zero-cookie GET export in EU Frankfurt (`fra1`). Scans the public domain frontpage (`?skipScan=1` skips network fetch for instant offline export) and builds a Notion/Confluence/Linear/GitHub-ready Markdown brief in 10 EU languages carrying live `badge/status.svg` + `c2pa/status.svg` shields, `badge.js`, CMS/Cloudflare installers, and B2B plan links (`?format=raw` returns `text/markdown`).",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public hostname to audit and export (for example doctolib.fr or personio.de).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional UI & Markdown language (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`). Auto-inferred from ccTLD or `<html lang>` when omitted.",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Pass `raw` or `markdown` for `text/markdown; charset=utf-8`, or omit / pass `json` for structured JSON containing `markdown`.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "raw",
                "markdown"
              ]
            }
          },
          {
            "name": "skipScan",
            "in": "query",
            "required": false,
            "description": "Pass `1` to skip the live HTTPS frontpage fetch and generate the domain template immediately.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Domain readiness brief generated in JSON or `text/markdown`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "domain",
                    "locale",
                    "summary",
                    "badgeScript",
                    "shields",
                    "plans",
                    "markdown"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "endpoint": {
                      "type": "string",
                      "const": "report_markdown"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "checked": {
                      "type": "boolean"
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "detectedPlatforms": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "badgeScript": {
                      "type": "string"
                    },
                    "shields": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "plans": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "shareUrl": {
                      "type": "string"
                    },
                    "rawMarkdownUrl": {
                      "type": "string"
                    },
                    "markdown": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Missing or non-public domain."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      },
      "post": {
        "operationId": "exportDomainReportMarkdownPost",
        "summary": "POST equivalent of GET /api/v1/report/markdown",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "domain"
                ],
                "properties": {
                  "domain": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "locale": {
                    "type": "string",
                    "maxLength": 8
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "raw",
                      "markdown"
                    ]
                  },
                  "skipScan": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Domain readiness brief generated."
          },
          "400": {
            "description": "Invalid JSON or non-public domain."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/c2pa/check": {
      "get": {
        "operationId": "inspectPublicC2pa",
        "summary": "GET a public HTTPS image URL or store domain for C2PA JUMBF provenance & CDN stripping (2 Dec 2026 Art. 50(2))",
        "description": "Zero-key, zero-cookie GET inspection in EU Frankfurt (`fra1`) ahead of the 2 December 2026 EU AI Act Art. 50(2) provenance milestone. Accepts either a direct HTTPS PNG/JPEG/WebP URL or a public store/product domain (performing 1-hop frontpage `heroImageUrl` discovery through the SSRF-pinned scanner), inspects C2PA JUMBF superboxes (`c2pa` / `jumd`) in memory without storing bytes or URLs, flags CDN re-encoding proxies (Shopify CDN, Webflow CDN, Jetpack Photon, `/_next/image`, `/cdn-cgi/image/`, Cloudinary, Imgix), and returns localized `badge.js`, Cloudflare Worker, CI gate, and B2B plan links.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Public HTTPS image URL (PNG, JPEG, WebP up to 4 MB) or public store/site domain (for example folk.app or https://spurvik.com/media/c2pa-signed-sample.png).",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional buyer domain when checking an asset hosted on a shared CDN.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "C2PA JUMBF inspection and CDN-strip diagnosis.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/C2paRestInspectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or non-HTTPS URL."
          },
          "422": {
            "description": "Blocked private or non-public target."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      },
      "post": {
        "operationId": "inspectPublicC2paPost",
        "summary": "POST a public HTTPS image URL or store domain for C2PA JUMBF provenance & CDN stripping",
        "description": "JSON body equivalent of `GET /api/v1/c2pa/check` (`{\"url\":\"https://spurvik.com/media/c2pa-signed-sample.png\",\"locale\":\"fr\"}`). CORS-enabled, zero cookies, `Cache-Control: no-store`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "domain": {
                    "type": "string",
                    "maxLength": 253
                  },
                  "locale": {
                    "type": "string",
                    "maxLength": 8
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "C2PA JUMBF inspection and CDN-strip diagnosis.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/C2paRestInspectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or non-HTTPS URL."
          },
          "422": {
            "description": "Blocked private or non-public target."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/provenance/public-check-url": {
      "post": {
        "operationId": "checkImageC2paUrl",
        "summary": "Check a public HTTPS image URL for C2PA JUMBF provenance manifests & CDN stripping (2 Dec 2026 Art. 50(2))",
        "description": "Read-only byte inspection of a public HTTPS image URL for C2PA JUMBF superboxes (`c2pa` / `jumd`) ahead of the 2 December 2026 EU AI Act Art. 50(2) provenance milestone. Flags image-optimizing CDNs (Shopify CDN, Webflow CDN, Jetpack Photon, `/_next/image`, `/cdn-cgi/image/`, Cloudinary, Imgix) that strip C2PA manifests on delivery. Spurvik inspects manifests only and never signs media.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048,
                    "description": "Public HTTPS image URL (or webpage URL with an og:image hero asset)."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "C2PA manifest inspection result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/C2paUrlCheckResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or blocked target URL."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/gate/self-test": {
      "get": {
        "operationId": "testHumanGateVectors",
        "summary": "Execute 6 zero-key cryptographic EU AI Act Art. 14 fail-closed human-gate blocking vectors",
        "description": "Stateless, zero-cookie benchmark executing 6 deterministic `spurvik/channels` (`spurvik:art12:v1` + `spurvik:art14:decision:v1`) HMAC-SHA256 blocking vectors (`unapproved_default_halt`, `explicit_human_block`, `tampered_payload_hmac`, `decision_flip_forgery`, `expired_link_replay`, `authentic_signed_approval`) in EU Frankfurt (`fra1`) with localized cockpit and B2B plan links.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public company domain (for example doctolib.fr) to prefill localized cockpit and Console links.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (en, de, fr, nl, da, sv, es, it).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "6-vector cryptographic Art. 14 gate self-test result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GateSelfTestResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rfp/answers": {
      "get": {
        "operationId": "generateVendorQuestionnaireAnswers",
        "summary": "Generate 8-language EU AI Act vendor security questionnaire & DPO RFP answers (Q1-Q5 Markdown + JSON)",
        "description": "Stateless, zero-cookie generator returning deterministic technical answers (Q1 Art. 50(1) & 2 Dec 2026 Art. 50(2) provenance, Q2 Art. 12 keyed HMAC-SHA256 event logging, Q3 GDPR Art. 5(1)(c) zero-prompt minimisation & EU Frankfurt residency, Q4 Art. 14 human oversight gates, Q5 retention, DPO summary & Annex IV draft) across 8 EU languages (en, de, fr, nl, da, sv, es, it).",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public product domain (for example acme.eu) to prefill answers, live report, and localized cockpit links.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "description": "Spurvik plan described in the answers (free, pro, team, concierge).",
            "schema": {
              "type": "string",
              "enum": [
                "free",
                "pro",
                "team",
                "concierge"
              ]
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "description": "Model provider or framework (openai, anthropic, google-genai, vercel-ai-sdk, langgraph, openai-agents, mastra, python, custom).",
            "schema": {
              "type": "string",
              "enum": [
                "openai",
                "anthropic",
                "google-genai",
                "vercel-ai-sdk",
                "langgraph",
                "openai-agents",
                "mastra",
                "python",
                "custom"
              ]
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU answer language (en, de, fr, nl, da, sv, es, it); inferred from domain ccTLD when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "de",
                "fr",
                "nl",
                "da",
                "sv",
                "es",
                "it"
              ]
            }
          },
          {
            "name": "hasHighRiskActions",
            "in": "query",
            "required": false,
            "description": "Whether AI features can trigger consequential actions such as refunds, emails, or permission changes (default true).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "generatesMedia",
            "in": "query",
            "required": false,
            "description": "Whether the product generates synthetic images, audio, or video (default false).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Q1-Q5 Markdown answers, localized cockpit URL, and B2B plan links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RfpAnswersResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/risk/classify": {
      "get": {
        "operationId": "classifyAiActRisk",
        "summary": "Classify an EU AI Act use case across Art. 5, Annex III & Art. 50 and return a 10-language DPO Self-Assessment Markdown record",
        "description": "Stateless, zero-cookie, zero-PII classifier mapping AI systems against Art. 5 prohibited practices, Art. 6(2) / Annex III high-risk areas, and Art. 50 transparency obligations across 10 EU languages (en, de, fr, nl, da, sv, fi, es, it, pl). Optional `useCase` text is matched locally in memory and never echoed, cached, or logged.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public product domain (for example personio.de) to prefill DPO Markdown, report, and localized cockpit links.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "preset",
            "in": "query",
            "required": false,
            "description": "Quick preset (support-chatbot, media-generator, cv-screener, credit-scoring, internal-copilot).",
            "schema": {
              "type": "string",
              "enum": [
                "support-chatbot",
                "media-generator",
                "cv-screener",
                "credit-scoring",
                "internal-copilot"
              ]
            }
          },
          {
            "name": "area",
            "in": "query",
            "required": false,
            "description": "Annex III area or general (general, biometrics, critical_infrastructure, education, employment_hr, essential_services_credit, law_enforcement, migration_border, justice_democracy).",
            "schema": {
              "type": "string",
              "enum": [
                "general",
                "biometrics",
                "critical_infrastructure",
                "education",
                "employment_hr",
                "essential_services_credit",
                "law_enforcement",
                "migration_border",
                "justice_democracy"
              ]
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (en, de, fr, nl, da, sv, fi, es, it, pl); inferred from domain ccTLD when omitted.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "de",
                "fr",
                "nl",
                "da",
                "sv",
                "fi",
                "es",
                "it",
                "pl"
              ]
            }
          },
          {
            "name": "interactsWithHumans",
            "in": "query",
            "required": false,
            "description": "Whether users talk to or chat with the AI system (Art. 50(1)).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "generatesSyntheticMedia",
            "in": "query",
            "required": false,
            "description": "Whether the AI system generates synthetic audio, images, video, or text (Art. 50(2)).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Risk posture, localized DPO Self-Assessment Markdown record, cockpit deep link, and B2B plan links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RiskClassifyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/badge/snippet": {
      "get": {
        "operationId": "generateArt50BadgeSnippet",
        "summary": "Generate a 24-language EU AI Act Art. 50 badge.js script, React component & CMS installer JSON",
        "description": "Stateless, zero-cookie, zero-PII Art. 50(1)-(4) notice generator across all 24 official EU languages (auto-inferred from domain ccTLD when locale is omitted). Returns Shadow DOM `badge.js` `<script>`, React `<AIDisclosureLabel />`, WCAG 2.1 AA / EN 301 549 accessibility attributes, CMS/GTM downloads (Shopify, WordPress, Google Tag Manager, Framer), live SVG status shield, and B2B plan links.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public product domain (for example doctolib.fr or stepnetwork.dk) to infer EU language and prefill Label Studio & status shield URLs.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "systemName",
            "in": "query",
            "required": false,
            "description": "Optional AI assistant display name (defaults to domain or Support Assistant).",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Official EU language code (all 24 supported: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv).",
            "schema": {
              "type": "string",
              "enum": [
                "bg",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "et",
                "fi",
                "fr",
                "ga",
                "hr",
                "hu",
                "it",
                "lt",
                "lv",
                "mt",
                "nl",
                "pl",
                "pt",
                "ro",
                "sk",
                "sl",
                "sv"
              ]
            }
          },
          {
            "name": "notice",
            "in": "query",
            "required": false,
            "description": "Art. 50 notice type (interaction, generated, synthetic_media, public_interest_text, emotion_biometric).",
            "schema": {
              "type": "string",
              "enum": [
                "interaction",
                "generated",
                "synthetic_media",
                "public_interest_text",
                "emotion_biometric"
              ]
            }
          },
          {
            "name": "position",
            "in": "query",
            "required": false,
            "description": "Badge placement (bottom-left clears bottom-right chat launchers; bottom-right; inline).",
            "schema": {
              "type": "string",
              "enum": [
                "bottom-left",
                "bottom-right",
                "inline"
              ]
            }
          },
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "description": "Color theme (auto, dark, light).",
            "schema": {
              "type": "string",
              "enum": [
                "auto",
                "dark",
                "light"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "24-language Art. 50 script tag, React JSX snippet, CMS download URLs, and B2B plan links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadgeSnippetResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/setup/snippet": {
      "get": {
        "operationId": "generateSetupSnippet",
        "summary": "Generate copy-paste EU AI Act Art. 50, Art. 12 HMAC & Art. 14 human-gate setup code for 40+ SDK, Python, CMS, workflow & widget stacks",
        "description": "Stateless, zero-cookie setup generator returning ready-to-paste code blocks, install commands, localized 8-language interactive cockpit links, and B2B plan URLs across TypeScript/Node SDKs (openai, anthropic, google-genai, vercel-ai-sdk, nextjs, react, langgraph, openai-agents, mastra), Python 3.10+ (python, fastapi, langchain, pydantic-ai), vibe-coders (lovable, bolt, v0, replit), workflows (n8n, make), CMS/storefronts (shopify, wordpress, gtm, webflow, framer, html), support widgets (intercom, zendesk, tidio, hubspot, dixa, trengo, gorgias, crisp), and IDEs/CI (cursor, claude-code, vscode, github-actions).",
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": false,
            "description": "SDK, framework, CMS, workflow, or widget stack (for example openai, fastapi, nextjs, langgraph, shopify, wordpress, n8n, lovable, intercom, cursor).",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "runtime",
            "in": "query",
            "required": false,
            "description": "Optional execution runtime (node, next, vercel, supabase-edge, python).",
            "schema": {
              "type": "string",
              "enum": [
                "node",
                "next",
                "vercel",
                "supabase-edge",
                "python"
              ]
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public product domain (for example doctolib.fr or personio.de) to infer EU locale and prefill cockpit & Console links.",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (inferred from domain ccTLD when omitted).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Install command, extracted code blocks, Markdown guide, localized cockpit link, and B2B plan links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupSnippetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unsupported target or runtime parameter."
          }
        }
      }
    },
    "/api/v1/audit/unwrapped": {
      "post": {
        "operationId": "findUnwrappedAiCalls",
        "summary": "Scan TypeScript, JavaScript, or Python source code & PR diffs for unwrapped AI model calls (0 bytes echoed or stored)",
        "description": "Stateless, zero-cookie static code audit in EU Frankfurt (`fra1`) scanning inline `code` or multi-file PR diffs (`files`, up to 128 KB) for direct OpenAI, AsyncOpenAI, Anthropic, Google GenAI, Vercel AI SDK, LangChain, and PydanticAI calls lacking EU AI Act Art. 12 HMAC-SHA256 receipts. Sensitive filenames (`.env`, `.npmrc`, `.pem`, `.key`) are skipped automatically, and 0 bytes of caller source code are echoed, logged, or persisted.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditUnwrappedRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Findings with 1-based line numbers, fix targets, 1-hop setup snippet URLs, cockpit links, and B2B plan links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditUnwrappedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid code/files payload."
          },
          "413": {
            "description": "Source exceeds the 128 KB inline scan limit."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/v1/receipt/verify": {
      "post": {
        "operationId": "verifyTelemetryReceipt",
        "summary": "Inspect and cryptographically check an EU AI Act Art. 12 HMAC receipt or Art. 14 signed human-approval callback",
        "description": "Stateless, zero-cookie cryptographic inspector in EU Frankfurt (`fra1`) for Spurvik Art. 12 HMAC-SHA256 telemetry receipts and Art. 14 signed Slack/Teams/Email approval callbacks (`spurvik:art12:v1` & `spurvik:art14:decision:v1`). Strips prompt/completion fields automatically and never logs, echoes, or stores `signingSecret`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Field-by-field receipt explanation, optional HMAC match status, deterministic PERMIT_EXECUTION vs BLOCK_EXECUTION verdict on Art. 14 callbacks, and localized cockpit links.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed receipt or signingSecret."
          },
          "413": {
            "description": "Payload exceeds the 128 KB inline inspection limit."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "callMcpTool",
        "summary": "Invoke any of Spurvik's 10 zero-key EU AI Act MCP tools over stateless Streamable HTTP JSON-RPC 2.0",
        "description": "Stateless JSON-RPC 2.0 Model Context Protocol endpoint exposing 10 read-only tools with no API key: spurvik_setup_snippet, spurvik_find_unwrapped_calls, spurvik_explain_receipt, spurvik_marking_hooks, spurvik_scan_live_url, spurvik_batch_scan_domains, spurvik_classify_ai_act_risk, spurvik_generate_art50_badge, spurvik_check_image_c2pa_url, spurvik_vendor_questionnaire_answers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpJsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 tool result (`content` + optional `structuredContent`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/badge/status.svg": {
      "get": {
        "operationId": "getStatusShieldSvg",
        "summary": "Render a live EU AI Act Art. 50(1) SVG status shield for a public domain",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public hostname (for example spurvik.com).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          }
        ],
        "responses": {
          "200": {
            "description": "SVG shield image (`Notice detected · Spurvik` or `Art. 50 check · Spurvik`).",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/badge/card.svg": {
      "get": {
        "operationId": "getTrustCenterCardSvg",
        "summary": "Render a live 460x148 multi-row SVG readiness card for SaaS Trust Centers, Notion security pages, and GitHub READMEs",
        "description": "Zero-key, zero-cookie, edge-cached (`s-maxage=1800`) SVG summary card in 10 EU languages (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`). Displays HTTPS reachability, Art. 50(1) AI notice status, 2 Dec 2026 Art. 50(2) C2PA / CDN-strip risk, and default EU locale for any public domain.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public hostname (for example spurvik.com or folk.app).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "460x148 Obsidian Harbor SVG summary card (`image/svg+xml`).",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/badge/ai-act.json": {
      "get": {
        "operationId": "getAiActWellKnownManifest",
        "summary": "Generate a machine-readable /.well-known/ai-act.json EU AI Act Art. 50 & 2 Dec 2026 C2PA manifest for any public domain",
        "description": "Zero-key, zero-cookie, edge-cached (`s-maxage=1800`) JSON generator (`spurvik.ai-act-manifest.v1`) validated by `https://spurvik.com/r/ai-act-manifest.schema.json`. Summarizes HTTPS reachability, Art. 50(1) AI notice snippet, 2 Dec 2026 Art. 50(2) C2PA & CDN-strip status, Art. 12 Frankfurt HMAC logging, Art. 14 human approval gates, and DPO brief links.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public hostname (for example doctolib.fr or folk.app).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "description": "Optional EU language code (`en`, `de`, `fr`, `nl`, `da`, `sv`, `fi`, `es`, `it`, `pl`).",
            "schema": {
              "type": "string",
              "maxLength": 8
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Machine-readable `spurvik.ai-act-manifest.v1` JSON document (`application/json`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/annex-iv/preview": {
      "get": {
        "operationId": "getAnnexIvTechnicalDocPreview",
        "summary": "Preview a 9-section EU AI Act Article 11 & Annex IV technical documentation draft (Free skeleton vs Team €79/mo auto-populated)",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Optional public product domain (for example personio.de or acme-hr.eu).",
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "useCase",
            "in": "query",
            "required": false,
            "description": "Annex III area or agent preset (`employment`, `credit`, `education`, `essential_services`, `biometrics`, `support_agent`).",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "description": "Model runtime (`openai`, `anthropic`, `gemini`, `mistral`, `python`).",
            "schema": {
              "type": "string",
              "maxLength": 32
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "description": "Preview mode: `team` (€79/mo or €790/yr auto-populated 9/9 sections) or `free` (€0 static 4/9 skeleton).",
            "schema": {
              "type": "string",
              "enum": [
                "team",
                "free"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`json` (default) or `markdown` (`text/markdown` attachment with `download=1`).",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "markdown"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "9-section Annex IV technical documentation preview JSON or Markdown (`spurvik.annex-iv-preview.v1`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c2pa/status.svg": {
      "get": {
        "operationId": "getC2paStatusShieldSvg",
        "summary": "Render a live 2 Dec 2026 EU AI Act Art. 50(2) C2PA SVG status shield for a public domain or HTTPS image URL",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "Public store or product hostname (for example spurvik.com) for 1-hop heroImageUrl C2PA & CDN-strip shield.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 253
            }
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "Direct public HTTPS PNG/JPEG/WebP image URL (for example https://spurvik.com/media/c2pa-signed-sample.png).",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "SVG shield image (`C2PA manifest · Spurvik`, `CDN strip risk · Spurvik`, `Hero checked · Spurvik`, or `Check C2PA · Spurvik`).",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Check EU Frankfurt (fra1) API health",
        "responses": {
          "200": {
            "description": "Service health status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "region": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telemetry": {
      "post": {
        "operationId": "ingestSignedTelemetry",
        "summary": "Ingest zero-prompt-text keyed HMAC-SHA256 AI call receipts into EU Frankfurt (fra1)",
        "description": "Stores chained HMAC-SHA256 digests (`inputHash`, `outputHash`, `recordHash`, `prevLogHash`) in Frankfurt (`fra1`) with 0 bytes of raw prompt or completion text (supporting EU AI Act Art. 12 & GDPR Art. 5(1)(c)). Mint a Free `SPURVIK_API_KEY` (`€0`) or upgrade to Pro (`€19/mo` or `€190/yr`) / Team (`€79/mo` or `€790/yr`) at https://console.spurvik.com/signup.",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelemetryBatchRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Signed event batch recorded in Frankfurt (fra1)."
          },
          "401": {
            "description": "Missing or invalid Bearer `spurvik_live_...` API key."
          }
        }
      }
    },
    "/api/v1/hitl": {
      "post": {
        "operationId": "createHumanApprovalRequest",
        "summary": "Create a deterministic Art. 14 human-in-the-loop approval request before consequential agent actions",
        "description": "Pauses money transfers, contract/permission changes, deletions, or external messages behind a human decision in Spurvik's hosted queue (Pro `€19/mo` / Team `€79/mo` / Done-For-You `€199`). Accepts field-name-only payload summaries (`spurvik.payload_summary.v1`) so zero personal payload values are stored.",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "actionName"
                ],
                "properties": {
                  "actionName": {
                    "type": "string",
                    "description": "Consequential tool or action identifier (e.g. issue_refund)."
                  },
                  "payloadKeys": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Field names only (never pass raw customer values or PII)."
                  },
                  "callbackUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Approval gate queued."
          },
          "401": {
            "description": "Missing or invalid Bearer `spurvik_live_...` API key."
          },
          "402": {
            "description": "Hosted approval queue requires Pro (€19/mo) or Team (€79/mo)."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "spurvik_live_...",
        "description": "Project API key minted at https://console.spurvik.com/signup (Free €0, Pro €19/mo, Team €79/mo)."
      }
    },
    "schemas": {
      "SandboxScanResponse": {
        "type": "object",
        "required": [
          "ok",
          "scan"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "scan": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string"
              },
              "scannedUrl": {
                "type": "string"
              },
              "reachable": {
                "type": "boolean"
              },
              "detectedWidgets": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "detectedSdks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "detectedPlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "heroImageUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "readinessScore": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "PortfolioBatchScanResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "summary",
          "results",
          "markdownTable",
          "cockpitUrl",
          "plans"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "mcpVersion": {
            "type": "string"
          },
          "n8nNodesVersion": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "default"
            ]
          },
          "summary": {
            "type": "object",
            "required": [
              "scanned",
              "reachable",
              "aiFound",
              "missingNotice",
              "ready"
            ],
            "properties": {
              "scanned": {
                "type": "integer",
                "minimum": 1
              },
              "reachable": {
                "type": "integer",
                "minimum": 0
              },
              "aiFound": {
                "type": "integer",
                "minimum": 0
              },
              "missingNotice": {
                "type": "integer",
                "minimum": 0
              },
              "ready": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "domain",
                "reachable",
                "suggestedLocale",
                "detectedWidgets",
                "detectedPlatforms",
                "hasVisibleAiNotice",
                "reportUrl",
                "statusShieldMarkdown"
              ],
              "properties": {
                "domain": {
                  "type": "string"
                },
                "reachable": {
                  "type": "boolean"
                },
                "httpStatus": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "suggestedLocale": {
                  "type": "string"
                },
                "suggestedLanguage": {
                  "type": "string"
                },
                "detectedWidgets": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "detectedSdks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "detectedPlatforms": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "hasVisibleAiNotice": {
                  "type": "boolean"
                },
                "heroImageUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reportUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "labelsUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "c2paUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "statusShieldSvgUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "statusShieldMarkdown": {
                  "type": "string"
                },
                "doneForYouSetupEur199Url": {
                  "type": "string",
                  "format": "uri"
                },
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "markdownTable": {
            "type": "string"
          },
          "cockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "agencyPlaybookUrl": {
            "type": "string",
            "format": "uri"
          },
          "cliCommand": {
            "type": "string"
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string",
                "format": "uri"
              },
              "proMonthlyEur19": {
                "type": "string",
                "format": "uri"
              },
              "proAnnualEur190": {
                "type": "string",
                "format": "uri"
              },
              "teamMonthlyEur79": {
                "type": "string",
                "format": "uri"
              },
              "teamAnnualEur790": {
                "type": "string",
                "format": "uri"
              },
              "doneForYouEur199": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "C2paRestInspectResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "sdkVersion",
          "locale",
          "discoveredFromDomain",
          "inspectedHost",
          "fileName",
          "mediaType",
          "byteLength",
          "manifestFound",
          "embedded",
          "signatureMatches",
          "trustAnchor",
          "validationCodes",
          "generatedBadgeSnippet",
          "cockpitUrl",
          "reportUrl"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "mcpVersion": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "html",
              "default"
            ]
          },
          "discoveredFromDomain": {
            "type": "boolean"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "inspectedHost": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "mediaType": {
            "type": "string"
          },
          "byteLength": {
            "type": "integer",
            "minimum": 1
          },
          "manifestFound": {
            "type": "boolean"
          },
          "embedded": {
            "type": "boolean"
          },
          "claimGenerator": {
            "type": [
              "string",
              "null"
            ]
          },
          "signatureMatches": {
            "type": "boolean"
          },
          "trustAnchor": {
            "type": "string",
            "enum": [
              "not_on_trust_list",
              "no_failure_reported",
              "not_checked"
            ]
          },
          "validationCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "strippingProxy": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "fix": {
                "type": "string"
              }
            }
          },
          "generatedBadgeSnippet": {
            "type": "string"
          },
          "cliGateCommand": {
            "type": "string"
          },
          "cloudflareWorkerUrl": {
            "type": "string",
            "format": "uri"
          },
          "githubActionUrl": {
            "type": "string",
            "format": "uri"
          },
          "c2paShieldSvgUrl": {
            "type": "string",
            "format": "uri"
          },
          "c2paShieldMarkdown": {
            "type": "string"
          },
          "cockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "reportUrl": {
            "type": "string",
            "format": "uri"
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string",
                "format": "uri"
              },
              "proMonthlyEur19": {
                "type": "string",
                "format": "uri"
              },
              "proAnnualEur190": {
                "type": "string",
                "format": "uri"
              },
              "teamMonthlyEur79": {
                "type": "string",
                "format": "uri"
              },
              "teamAnnualEur790": {
                "type": "string",
                "format": "uri"
              },
              "doneForYouEur199": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "C2paUrlCheckResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "hasManifest": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "claimGenerator": {
            "type": [
              "string",
              "null"
            ]
          },
          "proxyWarning": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "fix": {
                "type": "string"
              }
            }
          }
        }
      },
      "GateSelfTestResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "domain",
          "passed",
          "total",
          "blockedCount",
          "permittedCount",
          "actionHmac",
          "vectors"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "passed": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "blockedCount": {
            "type": "integer"
          },
          "permittedCount": {
            "type": "integer"
          },
          "actionHmac": {
            "type": "string"
          },
          "vectors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "blocked": {
                  "type": "boolean"
                },
                "passed": {
                  "type": "boolean"
                },
                "detail": {
                  "type": "string"
                }
              }
            }
          },
          "cockpitUrl": {
            "type": "string"
          },
          "reportUrl": {
            "type": "string"
          }
        }
      },
      "RfpAnswersResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "plan": {
            "type": "string",
            "enum": [
              "free",
              "pro",
              "team",
              "concierge"
            ]
          },
          "provider": {
            "type": "string"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "de",
              "fr",
              "nl",
              "da",
              "sv",
              "es",
              "it"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "hasHighRiskActions": {
            "type": "boolean"
          },
          "generatesMedia": {
            "type": "boolean"
          },
          "markdown": {
            "type": "string",
            "description": "Copy-paste Q1-Q5 Markdown answers for procurement & DPO questionnaires."
          },
          "cockpitUrl": {
            "type": "string"
          },
          "reportUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string"
              },
              "proMonthlyEur19": {
                "type": "string"
              },
              "proAnnualEur190": {
                "type": "string"
              },
              "teamMonthlyEur79": {
                "type": "string"
              },
              "teamAnnualEur790": {
                "type": "string"
              },
              "doneForYouEur199": {
                "type": "string"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "RiskClassifyResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "posture": {
            "type": "string",
            "enum": [
              "prohibited",
              "high_risk",
              "transparency_only",
              "minimal_risk",
              "outside_eu"
            ]
          },
          "riskTier": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "high_annex3",
              "limited_art50",
              "minimal",
              null
            ]
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "de",
              "fr",
              "nl",
              "da",
              "sv",
              "fi",
              "es",
              "it",
              "pl"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "headline": {
            "type": "string"
          },
          "summaryLines": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "duties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "markdown": {
            "type": "string",
            "description": "Copy-paste DPO EU AI Act Risk Self-Assessment Markdown record."
          },
          "cockpitUrl": {
            "type": "string"
          },
          "rfpUrl": {
            "type": "string"
          },
          "reportUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "plans": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "freeEur0": {
                "type": "string"
              },
              "proMonthlyEur19": {
                "type": "string"
              },
              "proAnnualEur190": {
                "type": "string"
              },
              "teamMonthlyEur79": {
                "type": "string"
              },
              "teamAnnualEur790": {
                "type": "string"
              },
              "doneForYouEur199": {
                "type": "string"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "BadgeSnippetResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "systemName": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "languageLabel": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "default"
            ]
          },
          "notice": {
            "type": "string",
            "enum": [
              "interaction",
              "generated",
              "synthetic_media",
              "public_interest_text",
              "emotion_biometric"
            ]
          },
          "article": {
            "type": "string"
          },
          "position": {
            "type": "string",
            "enum": [
              "bottom-left",
              "bottom-right",
              "inline"
            ]
          },
          "theme": {
            "type": "string",
            "enum": [
              "auto",
              "dark",
              "light"
            ]
          },
          "preview": {
            "type": "string"
          },
          "accessibility": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string"
              },
              "ariaLive": {
                "type": "string"
              },
              "lang": {
                "type": "string"
              },
              "standard": {
                "type": "string"
              }
            }
          },
          "scriptTag": {
            "type": "string"
          },
          "reactSnippet": {
            "type": "string"
          },
          "cmsInstallers": {
            "type": "object",
            "properties": {
              "shopifyLiquidUrl": {
                "type": "string"
              },
              "wordpressPluginZipUrl": {
                "type": "string"
              },
              "gtmContainerJsonUrl": {
                "type": "string"
              },
              "framerComponentUrl": {
                "type": "string"
              },
              "cloudflareWorkerUrl": {
                "type": "string"
              }
            }
          },
          "statusShield": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "svgUrl": {
                "type": "string"
              },
              "markdown": {
                "type": "string"
              },
              "html": {
                "type": "string"
              }
            }
          },
          "labelsStudioUrl": {
            "type": "string"
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string"
              },
              "proMonthlyEur19": {
                "type": "string"
              },
              "proAnnualEur190": {
                "type": "string"
              },
              "teamMonthlyEur79": {
                "type": "string"
              },
              "teamAnnualEur790": {
                "type": "string"
              },
              "doneForYouEur199": {
                "type": "string"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "SetupSnippetResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "sdkVersion",
          "requestedTarget",
          "canonicalTarget",
          "runtime",
          "locale",
          "installCommand",
          "cockpitUrl",
          "codeBlocks",
          "markdown",
          "plans"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "mcpVersion": {
            "type": "string"
          },
          "n8nNodesVersion": {
            "type": "string"
          },
          "requestedTarget": {
            "type": "string"
          },
          "canonicalTarget": {
            "type": "string"
          },
          "runtime": {
            "type": "string"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "default"
            ]
          },
          "installCommand": {
            "type": "string"
          },
          "cockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "codeBlocks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "language",
                "code"
              ],
              "properties": {
                "language": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                }
              }
            }
          },
          "markdown": {
            "type": "string"
          },
          "links": {
            "type": "object",
            "properties": {
              "reportUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gateSelfTestUrl": {
                "type": "string",
                "format": "uri"
              },
              "rfpAnswersUrl": {
                "type": "string",
                "format": "uri"
              },
              "riskClassifyUrl": {
                "type": "string",
                "format": "uri"
              },
              "badgeSnippetUrl": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string",
                "format": "uri"
              },
              "proMonthlyEur19": {
                "type": "string",
                "format": "uri"
              },
              "proAnnualEur190": {
                "type": "string",
                "format": "uri"
              },
              "teamMonthlyEur79": {
                "type": "string",
                "format": "uri"
              },
              "teamAnnualEur790": {
                "type": "string",
                "format": "uri"
              },
              "doneForYouEur199": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "AuditUnwrappedRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 131072,
            "description": "Inline TypeScript, JavaScript, or Python source code to scan (up to 128 KB)."
          },
          "files": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "description": "Multi-file PR diff or repository slice (up to 128 KB combined).",
            "items": {
              "type": "object",
              "required": [
                "path",
                "content"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "maxLength": 260
                },
                "content": {
                  "type": "string",
                  "maxLength": 131072
                }
              }
            }
          },
          "domain": {
            "type": "string",
            "maxLength": 253,
            "description": "Optional public product domain (for example personio.de) to infer EU locale and prefill links."
          },
          "locale": {
            "type": "string",
            "maxLength": 8,
            "description": "Optional EU language code."
          }
        }
      },
      "AuditUnwrappedResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "sdkVersion",
          "status",
          "findingCount",
          "filesScanned",
          "findings",
          "suggestedTargets",
          "setupSnippetUrls",
          "cliCommand",
          "cockpitUrl",
          "plans"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "mcpVersion": {
            "type": "string"
          },
          "n8nNodesVersion": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "clean",
              "unwrapped_calls_found"
            ]
          },
          "findingCount": {
            "type": "integer",
            "minimum": 0
          },
          "filesScanned": {
            "type": "integer",
            "minimum": 0
          },
          "skippedSensitiveFiles": {
            "type": "integer",
            "minimum": 0
          },
          "truncated": {
            "type": "boolean"
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "default"
            ]
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "file",
                "line",
                "language",
                "call",
                "fixTarget",
                "setupSnippetUrl"
              ],
              "properties": {
                "file": {
                  "type": "string"
                },
                "line": {
                  "type": "integer",
                  "minimum": 1
                },
                "language": {
                  "type": "string",
                  "enum": [
                    "typescript",
                    "python"
                  ]
                },
                "call": {
                  "type": "string"
                },
                "fixTarget": {
                  "type": "string"
                },
                "setupSnippetUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "suggestedTargets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "setupSnippetUrls": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          },
          "cliCommand": {
            "type": "string"
          },
          "mcpServerUrl": {
            "type": "string",
            "format": "uri"
          },
          "cockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "mcpCockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "links": {
            "type": "object",
            "properties": {
              "reportUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hmacCockpitUrl": {
                "type": "string",
                "format": "uri"
              },
              "pythonCockpitUrl": {
                "type": "string",
                "format": "uri"
              },
              "hitlCockpitUrl": {
                "type": "string",
                "format": "uri"
              },
              "gateSelfTestUrl": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string",
                "format": "uri"
              },
              "proMonthlyEur19": {
                "type": "string",
                "format": "uri"
              },
              "proAnnualEur190": {
                "type": "string",
                "format": "uri"
              },
              "teamMonthlyEur79": {
                "type": "string",
                "format": "uri"
              },
              "teamAnnualEur790": {
                "type": "string",
                "format": "uri"
              },
              "doneForYouEur199": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "ReceiptVerifyRequest": {
        "type": "object",
        "properties": {
          "receipt": {
            "type": [
              "object",
              "string"
            ],
            "description": "Spurvik Art. 12 provenance record object/JSON string or Art. 14 signed callback URL."
          },
          "callbackUrl": {
            "type": "string",
            "maxLength": 4096,
            "description": "Alias for `receipt` when passing a signed Art. 14 Slack/Teams/Email callback URL."
          },
          "signingSecret": {
            "type": "string",
            "minLength": 16,
            "maxLength": 512,
            "description": "Optional caller-held HMAC secret (>= 16 chars) to check signature authenticity; never logged or echoed."
          },
          "domain": {
            "type": "string",
            "maxLength": 253,
            "description": "Optional public product domain (for example doctolib.fr) to infer EU locale and prefill cockpit links."
          },
          "locale": {
            "type": "string",
            "maxLength": 8,
            "description": "Optional EU language code."
          }
        }
      },
      "ReceiptVerifyResponse": {
        "type": "object",
        "required": [
          "ok",
          "region",
          "sdkVersion",
          "kind",
          "executionVerdict",
          "signatureMatches",
          "explanationMarkdown",
          "cockpitUrl",
          "plans"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "region": {
            "type": "string",
            "const": "fra1"
          },
          "sdkVersion": {
            "type": "string"
          },
          "mcpVersion": {
            "type": "string"
          },
          "n8nNodesVersion": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "art12_telemetry_receipt",
              "art14_approval_callback"
            ]
          },
          "executionVerdict": {
            "type": "string",
            "enum": [
              "PERMIT_EXECUTION",
              "BLOCK_EXECUTION",
              "INSPECT_ONLY"
            ]
          },
          "signatureMatches": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": "string"
          },
          "localeSource": {
            "type": "string",
            "enum": [
              "explicit",
              "domain",
              "default"
            ]
          },
          "explanationMarkdown": {
            "type": "string"
          },
          "cockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "hitlCockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "pythonCockpitUrl": {
            "type": "string",
            "format": "uri"
          },
          "links": {
            "type": "object",
            "properties": {
              "reportUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gateSelfTestUrl": {
                "type": "string",
                "format": "uri"
              },
              "setupSnippetUrl": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "plans": {
            "type": "object",
            "properties": {
              "freeEur0": {
                "type": "string",
                "format": "uri"
              },
              "proMonthlyEur19": {
                "type": "string",
                "format": "uri"
              },
              "proAnnualEur190": {
                "type": "string",
                "format": "uri"
              },
              "teamMonthlyEur79": {
                "type": "string",
                "format": "uri"
              },
              "teamAnnualEur790": {
                "type": "string",
                "format": "uri"
              },
              "doneForYouEur199": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "McpJsonRpcRequest": {
        "type": "object",
        "required": [
          "jsonrpc",
          "id",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "tools/list",
              "tools/call",
              "initialize"
            ]
          },
          "params": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "spurvik_setup_snippet",
                  "spurvik_find_unwrapped_calls",
                  "spurvik_explain_receipt",
                  "spurvik_marking_hooks",
                  "spurvik_scan_live_url",
                  "spurvik_batch_scan_domains",
                  "spurvik_classify_ai_act_risk",
                  "spurvik_generate_art50_badge",
                  "spurvik_check_image_c2pa_url",
                  "spurvik_vendor_questionnaire_answers"
                ]
              },
              "arguments": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "TelemetryBatchRequest": {
        "type": "object",
        "required": [
          "events"
        ],
        "properties": {
          "events": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "object",
              "required": [
                "eventId",
                "timestamp",
                "modelProvider",
                "modelVersion",
                "inputHash",
                "outputHash",
                "contentHashMode"
              ],
              "properties": {
                "eventId": {
                  "type": "string",
                  "format": "uuid"
                },
                "timestamp": {
                  "type": "string",
                  "format": "date-time"
                },
                "modelProvider": {
                  "type": "string"
                },
                "modelVersion": {
                  "type": "string"
                },
                "inputHash": {
                  "type": "string",
                  "description": "Keyed HMAC-SHA256 hex digest (never raw prompt text)."
                },
                "outputHash": {
                  "type": "string",
                  "description": "Keyed HMAC-SHA256 hex digest (never raw output text)."
                },
                "contentHashMode": {
                  "type": "string",
                  "const": "keyed"
                },
                "latencyMs": {
                  "type": "integer",
                  "minimum": 0
                },
                "contentMarkingApplied": {
                  "type": "boolean"
                },
                "hitlStatus": {
                  "type": "string",
                  "enum": [
                    "not_required",
                    "approved",
                    "rejected",
                    "pending"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
