{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aifinpay-io/json-schema/aifinpay-io-reporting-flow-request-schema.json",
  "title": "ReportingFlowRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aifinpay-io-reporting-api-openapi.yml#/components/schemas/ReportingFlowRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "version": {
      "type": "integer",
      "const": 2
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[0-9a-f-]{36}$"
    },
    "resource": {
      "type": "string",
      "maxLength": 512
    },
    "channel": {
      "type": "string",
      "enum": [
        "browser",
        "api",
        "unknown"
      ]
    },
    "consent": {
      "type": "string",
      "enum": [
        "granted",
        "denied",
        "unknown"
      ]
    },
    "client_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[0-9a-f-]{36}$"
    }
  },
  "required": [
    "version",
    "request_id",
    "resource",
    "channel",
    "consent"
  ]
}