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
38
39
40
41
42
43
44
45
46
//! # instapi360-cloud
//!
//! Async, platform-agnostic client for the Insta360 cloud: authenticate, list
//! cloud media, and download **original** camera files (Ace Pro 2 `.insv`/
//! `.mp4`, X5 dual-lens `.insv`) for local editing.
//!
//! Design constraints (this crate is meant to cross-compile to Android):
//! - TLS via `rustls` only (no OpenSSL/native-tls in the dependency graph).
//! - No filesystem assumptions in the core: downloads write to a caller-owned
//! `AsyncWrite`; session persistence is a caller-provided [`SessionStore`].
//!
//! ## Status
//! Authentication is the session token alone — no request signing for
//! list/download. Import a token once and the session renews itself via
//! [`Client::refresh`] (the API mints a fresh token from the current one, so no
//! separate refresh token is needed). Credential login is reCAPTCHA-gated and
//! not implemented here.
//!
//! ## Quick start
//! ```no_run
//! # async fn run() -> instapi360_cloud::Result<()> {
//! use instapi360_cloud::{Client, ClientConfig, Region, Session, PageCursor};
//! let client = Client::new(ClientConfig::windows(Region::Global))?;
//! let session = Session::from_token("<captured X-User-Token>");
//! let page = client.list_media(&session, PageCursor::first(50)).await?;
//! for m in &page.items {
//! println!("{} ({} bytes, {} parts)", m.name, m.size_original, m.parts.len());
//! }
//! # Ok(()) }
//! ```
pub use ;
pub use ;
pub use ProgressSink;
pub use ;
pub use ;
pub use ;
pub use ;