{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidnotes-app/json-schema/vidnotes-app-client-failure-request-schema.json",
  "title": "ClientFailureRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidnotes-app-openapi.json#/components/schemas/ClientFailureRequest",
  "properties": {
    "stage": {
      "type": "string",
      "enum": [
        "import",
        "audio_extract",
        "no_audio_track",
        "upload",
        "network",
        "other"
      ],
      "title": "Stage"
    },
    "error_code": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[a-z0-9_.-]{1,64}$",
      "title": "Error Code"
    },
    "source": {
      "type": "string",
      "enum": [
        "local",
        "camera_roll",
        "files",
        "voice"
      ],
      "title": "Source",
      "default": "local"
    },
    "duration_seconds": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 604800.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Seconds"
    },
    "file_size_bytes": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 1099511627776.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "File Size Bytes"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    },
    "app_version": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "App Version"
    },
    "app_build": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "App Build"
    }
  },
  "type": "object",
  "required": [
    "stage",
    "error_code"
  ]
}