#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VideoUploadVideoOutput {
pub job_status: crate::api::app::bsky::VideoDefsJobStatus,
#[serde(flatten)]
pub extra: std::collections::HashMap<String, serde_json::Value>,
}
pub async fn video_upload_video(
client: &crate::xrpc::Client,
body: Vec<u8>,
content_type: &str,
) -> Result<VideoUploadVideoOutput, crate::xrpc::Error> {
let v = client
.procedure_raw("app.bsky.video.uploadVideo", body, content_type)
.await?;
serde_json::from_value(v).map_err(|e| crate::xrpc::Error::Xrpc {
status: 0,
error: "DeserializationError".to_string(),
message: e.to_string(),
})
}