Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/generated/async_routes/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@
#[allow(unused_imports)]
pub use crate::generated::types::account::*;

/// This lovely endpoint gets the account photo of a given user.
pub fn get_photo<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
arg: &'a AccountPhotoGetArg,
range_start: Option<u64>,
range_end: Option<u64>,
) -> impl std::future::Future<Output=Result<crate::async_client_trait::HttpRequestResult<AccountPhotoGetResult>, crate::Error<AccountPhotoGetError>>> + Send + 'a {
crate::client_helpers::request_with_body(
client,
crate::client_trait_common::Endpoint::Content,
crate::client_trait_common::Style::Download,
"account/get_photo",
arg,
None,
range_start,
range_end)
}

/// Sets a user's profile photo.
pub fn set_profile_photo<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
Expand Down
13 changes: 13 additions & 0 deletions src/generated/async_routes/account_id.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// DO NOT EDIT
// This file was @generated by Stone

#![allow(
clippy::too_many_arguments,
clippy::large_enum_variant,
clippy::result_large_err,
clippy::doc_markdown,
)]

#[allow(unused_imports)]
pub use crate::generated::types::account_id::*;

4 changes: 2 additions & 2 deletions src/generated/async_routes/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub use crate::generated::types::check::*;
pub fn app<'a>(
client: &'a impl crate::async_client_trait::AppAuthClient,
arg: &'a EchoArg,
) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<crate::NoError>>> + Send + 'a {
) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<EchoError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
Expand All @@ -46,7 +46,7 @@ pub fn app<'a>(
pub fn user<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
arg: &'a EchoArg,
) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<crate::NoError>>> + Send + 'a {
) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<EchoError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
Expand Down
368 changes: 170 additions & 198 deletions src/generated/async_routes/files.rs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/generated/async_routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

if_feature! { "dbx_account", pub mod account; }

if_feature! { "dbx_account_id", pub mod account_id; }

if_feature! { "dbx_async", pub mod dbx_async; }

pub mod auth;
Expand All @@ -32,6 +34,8 @@ if_feature! { "dbx_openid", pub mod openid; }

if_feature! { "dbx_paper", pub mod paper; }

if_feature! { "dbx_riviera", pub mod riviera; }

if_feature! { "dbx_secondary_emails", pub mod secondary_emails; }

if_feature! { "dbx_seen_state", pub mod seen_state; }
Expand Down
35 changes: 24 additions & 11 deletions src/generated/async_routes/paper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,16 @@ pub fn docs_folder_users_list_continue<'a>(
None)
}

/// Retrieves folder information for the given Paper doc. This includes: - folder sharing policy;
/// permissions for subfolders are set by the top-level folder. - full 'filepath', i.e. the list
/// of folders (both folderId and folderName) from the root folder to the folder directly
/// containing the Paper doc.
///
/// If the Paper doc is not in any folder (aka unfiled) the response will be empty. Note that this
/// endpoint will continue to work for content created by users on the older version of Paper. To
/// check which version of Paper a user is on, use /users/features/get_values. If the paper_as_files
/// feature is enabled, then the user is running the new version of Paper. Refer to the [Paper
/// Migration Guide](https://www.dropbox.com/lp/developers/reference/paper-migration-guide) for
/// migration information.
/// Retrieves folder information for the given Paper doc. This includes: - folder sharing policy;
/// permissions for subfolders are set by the top-level folder. - full 'filepath', i.e. the list of
/// folders (both folderId and folderName) from the root folder to the folder directly containing
/// the Paper doc. If the Paper doc is not in any folder (aka unfiled) the response will be empty.
/// Note that this endpoint will continue to work for content created by users on the older version
/// of Paper. To check which version of Paper a user is on, use /users/features/get_values. If the
/// paper_as_files feature is enabled, then the user is running the new version of Paper. Refer to
/// the [Paper Migration
/// Guide](https://www.dropbox.com/lp/developers/reference/paper-migration-guide) for migration
/// information.
#[deprecated]
pub fn docs_get_folder_info<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
Expand All @@ -147,6 +146,20 @@ pub fn docs_get_folder_info<'a>(
None)
}

/// Returns metadata for a Paper doc or Cloud Doc.
pub fn docs_get_metadata<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
arg: &'a GetDocMetadataArg,
) -> impl std::future::Future<Output=Result<PaperDocGetMetadataResult, crate::Error<DocLookupError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
crate::client_trait_common::Style::Rpc,
"paper/docs/get_metadata",
arg,
None)
}

/// Return the list of all Paper docs according to the argument specifications. To iterate over
/// through the full pagination, pass the cursor to
/// [`docs_list_continue()`](crate::paper::docs_list_continue). Note that this endpoint will
Expand Down
89 changes: 89 additions & 0 deletions src/generated/async_routes/riviera.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// DO NOT EDIT
// This file was @generated by Stone

#![allow(
clippy::too_many_arguments,
clippy::large_enum_variant,
clippy::result_large_err,
clippy::doc_markdown,
)]

#[allow(unused_imports)]
pub use crate::generated::types::riviera::*;

/// Asynchronous transcript generation for audio and video files.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
arg: &'a GetTranscriptArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
crate::client_trait_common::Style::Rpc,
"riviera/get_transcript_async",
arg,
None)
}

/// Asynchronous transcript generation for audio and video files.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_app_auth<'a>(
client: &'a impl crate::async_client_trait::AppAuthClient,
arg: &'a GetTranscriptArgs,
) -> impl std::future::Future<Output=Result<crate::types::dbx_async::LaunchResultBase, crate::Error<crate::NoError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
crate::client_trait_common::Style::Rpc,
"riviera/get_transcript_async",
arg,
None)
}

/// Returns the status or result of specified get_transcript_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_check<'a>(
client: &'a impl crate::async_client_trait::UserAuthClient,
arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetTranscriptAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
crate::client_trait_common::Style::Rpc,
"riviera/get_transcript_async/check",
arg,
None)
}

/// Returns the status or result of specified get_transcript_async task.
///
/// # Stability
/// *PREVIEW*: This function may change or disappear without notice.
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
pub fn get_transcript_async_check_app_auth<'a>(
client: &'a impl crate::async_client_trait::AppAuthClient,
arg: &'a crate::types::dbx_async::PollArg,
) -> impl std::future::Future<Output=Result<GetTranscriptAsyncCheckResult, crate::Error<crate::types::dbx_async::PollError>>> + Send + 'a {
crate::client_helpers::request(
client,
crate::client_trait_common::Endpoint::Api,
crate::client_trait_common::Style::Rpc,
"riviera/get_transcript_async/check",
arg,
None)
}

Loading
Loading