{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-data-file-upload-response-schema.json",
  "title": "DataFileUploadResponse",
  "description": "A reserved data file and the presigned PUT that fills it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-data-api-openapi.yml#/components/schemas/DataFileUploadResponse",
  "properties": {
    "file": {
      "$ref": "#/$defs/DataFileResponse"
    },
    "upload_url": {
      "type": "string",
      "title": "Upload Url"
    }
  },
  "type": "object",
  "required": [
    "file",
    "upload_url"
  ],
  "$defs": {
    "DataFileResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "team_id": {
          "type": "string",
          "format": "uuid",
          "title": "Team Id"
        },
        "membership_id": {
          "type": "integer",
          "title": "Membership Id"
        },
        "scope": {
          "type": "string",
          "enum": [
            "member",
            "team"
          ],
          "title": "Scope"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "ready"
          ],
          "title": "Status"
        },
        "filename": {
          "type": "string",
          "title": "Filename"
        },
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Type"
        },
        "size_bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size Bytes"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "team_id",
        "membership_id",
        "scope",
        "status",
        "filename",
        "content_type",
        "size_bytes",
        "created_at",
        "updated_at"
      ],
      "title": "DataFileResponse",
      "description": "Size is reserved up front and verified against the stored object on completion."
    }
  }
}