{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynn-com/json-schema/bynn-com-bynn-v1-entities-session-schema.json",
  "title": "Bynn_V1_Entities_Session",
  "description": "Bynn_V1_Entities_Session model",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynn-com-sessions-api-openapi.yml#/components/schemas/Bynn_V1_Entities_Session",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "description": "Unique session token"
    },
    "url": {
      "type": "string",
      "description": "URL to the session"
    },
    "qr_base64_png": {
      "type": "string",
      "description": "QR code image as base64 encoded PNG"
    },
    "branding": {
      "allOf": [
        {
          "$ref": "#/$defs/Bynn_V1_Entities_SessionBranding"
        }
      ],
      "description": "Brand configuration parameters for the session."
    },
    "websocket_url": {
      "type": "string",
      "description": "URL to websocket for event status updates for this specific session"
    }
  },
  "required": [
    "session_id",
    "url",
    "qr_base64_png",
    "branding",
    "websocket_url"
  ],
  "$defs": {
    "Bynn_V1_Entities_SessionBranding": {
      "type": "object",
      "properties": {
        "whitelabel": {
          "type": "boolean",
          "description": "Indicates if Bynn logos shall be hidden."
        },
        "name": {
          "type": "string",
          "description": ""
        },
        "jurisdiction": {
          "type": "string",
          "description": ""
        },
        "url": {
          "type": "string",
          "description": ""
        },
        "url_data_processing_consent": {
          "type": "string",
          "description": ""
        },
        "url_terms": {
          "type": "string",
          "description": ""
        },
        "url_privacy": {
          "type": "string",
          "description": ""
        },
        "text_data_processing_consent": {
          "type": "string",
          "description": ""
        },
        "url_icon": {
          "type": "string",
          "description": "Can be url or base64 encoded (strict) image url"
        },
        "url_logo": {
          "type": "string",
          "description": "Can be url or base64 encoded (strict) image url"
        },
        "brand_color": {
          "type": "string",
          "description": ""
        },
        "accent_color": {
          "type": "string",
          "description": ""
        },
        "web_sdk_return_url": {
          "type": "string",
          "description": ""
        },
        "is_test": {
          "type": "boolean",
          "description": "Indicates if this is a test verification."
        }
      },
      "required": [
        "whitelabel",
        "name",
        "jurisdiction",
        "url",
        "url_data_processing_consent",
        "url_terms",
        "url_privacy",
        "text_data_processing_consent",
        "url_icon",
        "url_logo",
        "brand_color",
        "accent_color",
        "web_sdk_return_url",
        "is_test"
      ]
    }
  }
}