{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-project-upload-handoff-schema.json",
  "title": "ProjectUploadHandoff",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-projects-api-openapi.yml#/components/schemas/ProjectUploadHandoff",
  "type": "object",
  "required": [
    "uploadId",
    "url",
    "method",
    "s3Ref",
    "expiresAt",
    "maxBytes"
  ],
  "properties": {
    "maxBytes": {
      "type": "integer",
      "description": "The largest file this organization accepts for the declared type, in bytes — the platform ceiling (104,857,600, 100 MiB) or the organization’s lower cap; the bind refuses more (`FILE_TOO_LARGE` / `UPLOAD_POLICY_REJECTED`, `data.limitBytes`)"
    },
    "uploadId": {
      "type": "string",
      "description": "Single-use intent to present at the bind step"
    },
    "url": {
      "type": "string",
      "description": "Where to send the bytes"
    },
    "method": {
      "type": "string",
      "enum": [
        "PUT"
      ]
    },
    "s3Ref": {
      "type": "string",
      "description": "The blob reference to bind as `fileId`"
    },
    "expiresAt": {
      "type": "integer",
      "minimum": 0,
      "description": "Epoch ms; the intent AND the signed `url` both die of old age after this (30 minutes from the mint)"
    }
  }
}