{
"id": "place.stream.media.getUploadStatus",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "NotFound",
"description": "No upload exists with the given ID for the authenticated user."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"status"
],
"properties": {
"error": {
"type": "string",
"description": "Error message. Present when status is 'error'."
},
"status": {
"type": "string",
"description": "Current processing status of the upload.",
"knownValues": [
"pending",
"processing",
"done",
"error"
]
},
"tracks": {
"type": "array",
"items": {
"ref": "#trackRef",
"type": "ref"
},
"description": "Published track records. Present when status is 'done'."
},
"progress": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Processing progress percentage (0-100). Only meaningful when status is 'processing'."
},
"durationMs": {
"type": "integer",
"description": "Duration of the processed video in milliseconds. Present when status is 'done'."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"uploadId"
],
"properties": {
"uploadId": {
"type": "string",
"description": "The upload ID returned by place.stream.media.createUpload."
}
}
},
"description": "Get the processing status of a previously created upload. Only accessible by the DID that created the upload."
},
"trackRef": {
"type": "object",
"required": [
"uri",
"cid"
],
"properties": {
"cid": {
"type": "string"
},
"uri": {
"type": "string",
"format": "at-uri"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}