{
  "lexicon": 1,
  "id": "space.polymodel.library.stageFile",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Stage one raw geometry payload for publishing. The HTTP body is raw bytes, not base64 JSON; metadata is provided by headers. The server chunks and uploads blobs through the authenticated actor's PDS, stores owner-scoped staging metadata, and returns defs#file-compatible metadata.",
      "input": {
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["uploadId", "file"],
          "properties": {
            "uploadId": { "type": "string" },
            "file": { "type": "ref", "ref": "space.polymodel.library.defs#file" },
            "filename": { "type": "string" },
            "status": { "type": "string", "knownValues": ["uploaded"] }
          }
        }
      }
    }
  }
}
