{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-confirm-upload-response-schema.json",
  "title": "ConfirmUploadResponse",
  "description": "Response after confirming upload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctlsurf-com-files-api-openapi.yml#/components/schemas/ConfirmUploadResponse",
  "properties": {
    "file": {
      "$ref": "#/$defs/FileResponse"
    },
    "block": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Block"
    },
    "message": {
      "type": "string",
      "title": "Message",
      "default": "Upload confirmed successfully"
    }
  },
  "type": "object",
  "required": [
    "file"
  ],
  "$defs": {
    "FileResponse": {
      "properties": {
        "original_filename": {
          "type": "string",
          "title": "Original Filename"
        },
        "mime_type": {
          "type": "string",
          "title": "Mime Type"
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes"
        },
        "width": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Width"
        },
        "height": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Height"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "user_id": {
          "type": "string",
          "format": "uuid",
          "title": "User Id"
        },
        "page_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Id"
        },
        "block_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Block Id"
        },
        "filename": {
          "type": "string",
          "title": "Filename"
        },
        "s3_key": {
          "type": "string",
          "title": "S3 Key"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "has_extracted_text": {
          "type": "boolean",
          "title": "Has Extracted Text",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "original_filename",
        "mime_type",
        "size_bytes",
        "id",
        "user_id",
        "filename",
        "s3_key",
        "created_at"
      ],
      "title": "FileResponse",
      "description": "Schema for file response."
    }
  }
}