1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// @generated from the MSP stable schema and protocol sources; do not edit by hand.
use serde::Deserialize;
use serde::Serialize;
/// `media/upload` params: one chunk of a client-minted upload. All members
/// required.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MediaUploadParams {
/// The session owning the video store.
pub session_id: String,
/// One per call; the protocol spec replay answers the recorded receipt.
pub command_id: String,
/// The client-minted upload id (UUIDv7), sent on every chunk.
pub upload_id: String,
/// `video/mp4` or `video/quicktime`, matching `VideoInput`.
pub media_type: String,
/// The assembled byte count; must equal the bytes the chunks deliver.
pub total_bytes: u64,
/// This chunk's 0-based position.
pub chunk_index: u64,
/// The upload's chunk total; positive.
pub chunk_count: u64,
/// This chunk's bytes; each call's frame stays in the budget.
pub chunk_base64: String,
}
/// `media/upload` result: echoes the client-minted id, on every chunk and
/// replay.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct MediaUploadResult {
/// The receipt the turn part references.
pub upload_id: String,
}