diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 29afcea..c317da9 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,6 +1,7 @@ src/apis/configuration.rs src/apis/mod.rs src/apis/tribufu_generated_api.rs +src/models/account.rs src/models/application.rs src/models/application_type.rs src/models/authorize_request.rs @@ -11,7 +12,6 @@ src/models/code_challenge_method.rs src/models/code_response.rs src/models/create_user.rs src/models/crypto_view_model.rs -src/models/external_account.rs src/models/game.rs src/models/game_server.rs src/models/game_server_cluster.rs @@ -23,12 +23,12 @@ src/models/group_application.rs src/models/group_member.rs src/models/group_rank.rs src/models/hash_view_model.rs -src/models/identity_provider_type.rs src/models/introspect_request.rs src/models/introspect_response.rs src/models/ip_address.rs src/models/leaderboard_item.rs src/models/leaderboard_order.rs +src/models/login_provider.rs src/models/mod.rs src/models/package.rs src/models/package_release.rs diff --git a/Cargo.toml b/Cargo.toml index ec98e61..904ed8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu" version = "1.3.0" description = "REST API to access Tribufu services." -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" readme = "README.md" @@ -19,7 +19,6 @@ exclude = [ ".vscode/", "examples/", "scripts/", - "vendor/", ] [workspace] diff --git a/README.md b/README.md index 2044ed5..d2b11c0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Rust SDK to access Tribufu APIs and services. [crates-badge]: https://img.shields.io/crates/v/tribufu.svg [crates-url]: https://crates.io/crates/tribufu [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg -[mit-url]: https://github.com/Tribufu/TribufuRust/blob/main/LICENSE.txt +[mit-url]: https://github.com/tribufu/tribufu-rust/blob/main/LICENSE.txt [discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square [discord-url]: https://www.tribufu.com/discord @@ -20,4 +20,4 @@ Rust SDK to access Tribufu APIs and services. This project is licensed under the [MIT License]. -[MIT License]: https://github.com/Tribufu/TribufuRust/blob/main/LICENSE.txt +[MIT License]: https://github.com/tribufu/tribufu-rust/blob/main/LICENSE.txt diff --git a/examples/api.rs b/examples/api.rs index bd05499..9d644f4 100644 --- a/examples/api.rs +++ b/examples/api.rs @@ -2,8 +2,8 @@ // SPDX-License-Identifier: MIT use dotenv::dotenv; +use tribufu::apis::tribufu_generated_api::TribufuGeneratedApi; use tribufu::TribufuApi; -use tribufu::TribufuGeneratedApi; #[tokio::main] async fn main() { diff --git a/src/apis/configuration.rs b/src/apis/configuration.rs index 610d148..3e5160c 100644 --- a/src/apis/configuration.rs +++ b/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -40,7 +40,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "http://localhost".to_owned(), - user_agent: Some("OpenAPI-Generator/1.4.3/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/1.3.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/src/apis/tribufu_generated_api.rs b/src/apis/tribufu_generated_api.rs index 2ba7111..8f9c1c8 100644 --- a/src/apis/tribufu_generated_api.rs +++ b/src/apis/tribufu_generated_api.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -128,12 +128,12 @@ pub trait TribufuGeneratedApi: Send + Sync { /// GET /v1/utils/flake /// /// 🔒 Required permissions: tribufu.utils.generate.flake - async fn generate_flake_id<'amount>(&self, amount: Option) -> Result, Error>; + async fn generate_flake_id<'amount>(&self, amount: Option) -> Result, Error>; /// GET /v1/utils/flake/{timestamp} /// /// 🔒 Required permissions: tribufu.utils.generate.flake.timestamp - async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: i64, amount: Option) -> Result, Error>; + async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: &'timestamp str, amount: Option) -> Result, Error>; /// GET /v1/utils/password /// @@ -143,7 +143,7 @@ pub trait TribufuGeneratedApi: Send + Sync { /// GET /v1/utils/uuid /// /// 🔒 Required permissions: tribufu.utils.generate.uuid - async fn generate_uuid<'version, 'amount>(&self, version: Option, amount: Option) -> Result, Error>; + async fn generate_uuid<'version, 'amount>(&self, version: Option, amount: Option) -> Result, Error>; /// GET /v1/oauth2/clients/{id} /// @@ -288,7 +288,7 @@ pub trait TribufuGeneratedApi: Send + Sync { /// GET /v1/groups/uuid/{uuid} /// /// 🔒 Required permissions: tribufu.community.group.get.uuid - async fn get_group_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result>; + async fn get_group_by_uuid<'uuid>(&self, uuid: &str) -> Result>; /// GET /v1/groups/{id}/games /// @@ -348,7 +348,7 @@ pub trait TribufuGeneratedApi: Send + Sync { /// GET /v1/users/{id}/accounts /// /// 🔒 Required permissions: tribufu.identity.user.account.list - async fn get_user_accounts<'id>(&self, id: &'id str) -> Result, Error>; + async fn get_user_accounts<'id>(&self, id: &'id str) -> Result, Error>; /// GET /v1/profiles/{id}/friends /// @@ -408,12 +408,12 @@ pub trait TribufuGeneratedApi: Send + Sync { /// GET /v1/profiles/uuid/{uuid} /// /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result>; + async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &str) -> Result>; /// GET /v1/users/uuid/{uuid} /// /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &'uuid str) -> Result>; + async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &str) -> Result>; /// GET /v1/profiles /// @@ -552,6 +552,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&authorize_request); let local_var_req = local_var_req_builder.build()?; @@ -591,6 +599,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -620,6 +636,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -649,6 +673,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -678,6 +710,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -707,6 +747,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&crypto_view_model); let local_var_req = local_var_req_builder.build()?; @@ -746,6 +794,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -775,6 +831,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -804,6 +868,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -833,6 +905,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -862,6 +942,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -891,6 +979,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -919,6 +1015,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&token_request); let local_var_req = local_var_req_builder.build()?; @@ -958,6 +1062,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&create_user); let local_var_req = local_var_req_builder.build()?; @@ -987,6 +1099,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1015,6 +1135,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1043,6 +1171,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1071,6 +1207,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1099,6 +1243,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1127,6 +1279,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1155,6 +1315,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1172,7 +1340,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.utils.generate.flake - async fn generate_flake_id<'amount>(&self, amount: Option) -> Result, Error> { + async fn generate_flake_id<'amount>(&self, amount: Option) -> Result, Error> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -1186,6 +1354,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1202,8 +1378,8 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if !local_var_status.is_client_error() && !local_var_status.is_server_error() { match local_var_content_type { ContentType::Json => serde_json::from_str(&local_var_content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<i64>`"))), - ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<i64>`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<String>`"))), + ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<String>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -1213,12 +1389,12 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.utils.generate.flake.timestamp - async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: i64, amount: Option) -> Result, Error> { + async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: &'timestamp str, amount: Option) -> Result, Error> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; - let local_var_uri_str = format!("{}/v1/utils/flake/{timestamp}", local_var_configuration.base_path, timestamp=timestamp); + let local_var_uri_str = format!("{}/v1/utils/flake/{timestamp}", local_var_configuration.base_path, timestamp=crate::apis::urlencode(timestamp)); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = amount { @@ -1227,6 +1403,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1243,8 +1427,8 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if !local_var_status.is_client_error() && !local_var_status.is_server_error() { match local_var_content_type { ContentType::Json => serde_json::from_str(&local_var_content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<i64>`"))), - ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<i64>`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<String>`"))), + ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<String>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -1271,6 +1455,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1298,7 +1490,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.utils.generate.uuid - async fn generate_uuid<'version, 'amount>(&self, version: Option, amount: Option) -> Result, Error> { + async fn generate_uuid<'version, 'amount>(&self, version: Option, amount: Option) -> Result, Error> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -1315,6 +1507,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1331,8 +1531,8 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if !local_var_status.is_client_error() && !local_var_status.is_server_error() { match local_var_content_type { ContentType::Json => serde_json::from_str(&local_var_content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<String>`"))), - ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<String>`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<uuid::Uuid>`"))), + ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<uuid::Uuid>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -1353,6 +1553,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1390,6 +1598,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1437,6 +1653,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1474,6 +1698,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1512,6 +1744,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1550,6 +1790,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1588,6 +1836,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1626,6 +1882,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1664,6 +1928,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1702,6 +1974,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1740,6 +2020,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1784,6 +2072,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1828,6 +2124,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1872,6 +2176,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1916,6 +2228,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -1960,6 +2280,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2004,6 +2332,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2060,6 +2396,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2104,6 +2448,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2148,6 +2500,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2186,6 +2546,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2224,6 +2592,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2262,6 +2638,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2300,6 +2684,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2356,6 +2748,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2400,6 +2800,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2438,6 +2846,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2476,6 +2892,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2503,7 +2927,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.group.get.uuid - async fn get_group_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result> { + async fn get_group_by_uuid<'uuid>(&self, uuid: &str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -2514,6 +2938,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2552,6 +2984,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2590,6 +3030,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2634,6 +3082,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2671,6 +3127,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2718,6 +3182,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2759,6 +3231,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2797,6 +3277,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2841,6 +3329,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2879,6 +3375,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2923,6 +3427,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2960,6 +3472,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -2977,7 +3497,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.identity.user.account.list - async fn get_user_accounts<'id>(&self, id: &'id str) -> Result, Error> { + async fn get_user_accounts<'id>(&self, id: &'id str) -> Result, Error> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -2988,6 +3508,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3004,8 +3532,8 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if !local_var_status.is_client_error() && !local_var_status.is_server_error() { match local_var_content_type { ContentType::Json => serde_json::from_str(&local_var_content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ExternalAccount>`"))), - ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<models::ExternalAccount>`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Account>`"))), + ContentType::Unsupported(local_var_unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{local_var_unknown_type}` content type response that cannot be converted to `Vec<models::Account>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -3026,6 +3554,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3064,6 +3600,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3102,6 +3646,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3140,6 +3692,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3178,6 +3738,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3216,6 +3784,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3254,6 +3830,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3292,6 +3876,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3330,6 +3922,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3368,6 +3968,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3406,6 +4014,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3433,7 +4049,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result> { + async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -3444,6 +4060,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3471,7 +4095,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &'uuid str) -> Result> { + async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -3482,6 +4106,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3526,6 +4158,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3570,6 +4210,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3608,6 +4256,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3646,6 +4302,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3690,6 +4354,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3734,6 +4406,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; let local_var_req = local_var_req_builder.build()?; let local_var_resp = local_var_client.execute(local_var_req).await?; @@ -3772,6 +4452,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&hash_view_model); let local_var_req = local_var_req_builder.build()?; @@ -3811,6 +4499,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&hash_view_model); let local_var_req = local_var_req_builder.build()?; @@ -3850,6 +4546,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&hash_view_model); let local_var_req = local_var_req_builder.build()?; @@ -3889,6 +4593,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&hash_view_model); let local_var_req = local_var_req_builder.build()?; @@ -3927,6 +4639,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&introspect_request); let local_var_req = local_var_req_builder.build()?; @@ -3965,6 +4685,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&revoke_request); let local_var_req = local_var_req_builder.build()?; @@ -3994,6 +4722,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&search); let local_var_req = local_var_req_builder.build()?; @@ -4033,6 +4769,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4062,6 +4806,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4091,6 +4843,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4120,6 +4880,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4149,6 +4917,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4178,6 +4954,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&body); let local_var_req = local_var_req_builder.build()?; @@ -4207,6 +4991,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&package); let local_var_req = local_var_req_builder.build()?; @@ -4236,6 +5028,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&update_profile); let local_var_req = local_var_req_builder.build()?; @@ -4275,6 +5075,14 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } + if let Some(ref local_var_apikey) = local_var_configuration.api_key { + let local_var_key = local_var_apikey.key.clone(); + let local_var_value = match local_var_apikey.prefix { + Some(ref local_var_prefix) => format!("{} {}", local_var_prefix, local_var_key), + None => local_var_key, + }; + local_var_req_builder = local_var_req_builder.header("Authorization", local_var_value); + }; local_var_req_builder = local_var_req_builder.json(&update_profile); let local_var_req = local_var_req_builder.build()?; diff --git a/src/constants/Cargo.toml b/src/constants/Cargo.toml index 301ca1b..6bb3621 100644 --- a/src/constants/Cargo.toml +++ b/src/constants/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu-constants" version = "1.3.0" description = "Tribufu Constants" -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" edition = "2021" diff --git a/src/error/Cargo.toml b/src/error/Cargo.toml index 869cc4a..c62d2d2 100644 --- a/src/error/Cargo.toml +++ b/src/error/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu-error" version = "1.3.0" description = "Tribufu Error" -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" edition = "2021" diff --git a/src/json/Cargo.toml b/src/json/Cargo.toml index e40b6e3..9829ba0 100644 --- a/src/json/Cargo.toml +++ b/src/json/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu-json" version = "1.3.0" description = "Tribufu Json" -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" edition = "2021" diff --git a/src/lib.rs b/src/lib.rs index fa15819..40caa51 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,14 +4,12 @@ #![allow(unused_imports)] #![allow(clippy::too_many_arguments)] -pub use crate::apis::tribufu_generated_api::TribufuGeneratedApi; - use crate::apis::configuration::{ApiKey, Configuration}; use crate::apis::tribufu_generated_api::TribufuGeneratedApiClient; use reqwest::Client; +use tribufu_constants::{RUSTC_VERSION, TARGET_TRIPLE}; use std::env::{self, consts}; use std::sync::Arc; -use tribufu_constants::{RUSTC_VERSION, TARGET_TRIPLE}; pub mod apis; pub mod models; @@ -71,10 +69,7 @@ impl TribufuApi { /// Gets the user agent string for the Tribufu API client. pub fn get_user_agent() -> String { let version = Self::get_version(); - format!( - "Tribufu/{} (Rust {}; {})", - version, RUSTC_VERSION, TARGET_TRIPLE - ) + format!("Tribufu/{} (Rust {}; {})", version, RUSTC_VERSION, TARGET_TRIPLE) } /// Checks if debug mode is enabled. diff --git a/src/log/Cargo.toml b/src/log/Cargo.toml index c1fc38a..35afda0 100644 --- a/src/log/Cargo.toml +++ b/src/log/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu-log" version = "1.3.0" description = "Tribufu Log" -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" edition = "2021" diff --git a/src/models/application.rs b/src/models/application.rs index 1cfe03d..24fe58f 100644 --- a/src/models/application.rs +++ b/src/models/application.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -21,8 +21,8 @@ pub struct Application { pub description: Option>, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, - #[serde(rename = "organization_id", skip_serializing_if = "Option::is_none")] - pub organization_id: Option, + #[serde(rename = "organization_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub organization_id: Option>, #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub icon_url: Option>, #[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -33,12 +33,10 @@ pub struct Application { pub library_image_url: Option>, #[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub slug: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Application { @@ -54,9 +52,8 @@ impl Application { capsule_image_url: None, library_image_url: None, slug: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/application_type.rs b/src/models/application_type.rs index 1981257..8ebebfc 100644 --- a/src/models/application_type.rs +++ b/src/models/application_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -14,8 +14,8 @@ use serde::{Deserialize, Serialize}; /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum ApplicationType { - #[serde(rename = "software")] - Software, + #[serde(rename = "application")] + Application, #[serde(rename = "game")] Game, @@ -24,7 +24,7 @@ pub enum ApplicationType { impl std::fmt::Display for ApplicationType { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::Software => write!(f, "software"), + Self::Application => write!(f, "application"), Self::Game => write!(f, "game"), } } @@ -32,7 +32,7 @@ impl std::fmt::Display for ApplicationType { impl Default for ApplicationType { fn default() -> ApplicationType { - Self::Software + Self::Application } } diff --git a/src/models/authorize_request.rs b/src/models/authorize_request.rs index 89bd549..f2d34ff 100644 --- a/src/models/authorize_request.rs +++ b/src/models/authorize_request.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/client.rs b/src/models/client.rs index 0e33045..3eaa25d 100644 --- a/src/models/client.rs +++ b/src/models/client.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -35,12 +35,10 @@ pub struct Client { pub scopes: Option>, #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub permissions: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Client { @@ -57,9 +55,8 @@ impl Client { redirects: None, scopes: None, permissions: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/client_info.rs b/src/models/client_info.rs index 9bb0e76..38d4de7 100644 --- a/src/models/client_info.rs +++ b/src/models/client_info.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/client_type.rs b/src/models/client_type.rs index b055ba4..706e98e 100644 --- a/src/models/client_type.rs +++ b/src/models/client_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/code_challenge_method.rs b/src/models/code_challenge_method.rs index 755d830..c5cf5d3 100644 --- a/src/models/code_challenge_method.rs +++ b/src/models/code_challenge_method.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/code_response.rs b/src/models/code_response.rs index 045fccd..329dc13 100644 --- a/src/models/code_response.rs +++ b/src/models/code_response.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_user.rs b/src/models/create_user.rs index 6680680..aaee70d 100644 --- a/src/models/create_user.rs +++ b/src/models/create_user.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -13,8 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateUser { - #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] - pub uuid: Option, + #[serde(rename = "uuid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uuid: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] diff --git a/src/models/crypto_view_model.rs b/src/models/crypto_view_model.rs index 74ebe0b..c6225e1 100644 --- a/src/models/crypto_view_model.rs +++ b/src/models/crypto_view_model.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/external_account.rs b/src/models/external_account.rs deleted file mode 100644 index f1993e9..0000000 --- a/src/models/external_account.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.4.3 - * Contact: contact@tribufu.com - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ExternalAccount { - #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")] - pub user_id: Option, - #[serde(rename = "provider")] - pub provider: models::IdentityProviderType, - #[serde(rename = "external_id", deserialize_with = "Option::deserialize")] - pub external_id: Option, - #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub name: Option>, - #[serde(rename = "authorized", skip_serializing_if = "Option::is_none")] - pub authorized: Option, - #[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub fields: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, -} - -impl ExternalAccount { - pub fn new(provider: models::IdentityProviderType, external_id: Option) -> ExternalAccount { - ExternalAccount { - user_id: None, - provider, - external_id, - name: None, - authorized: None, - fields: None, - created_at: None, - updated_at: None, - deleted_at: None, - } - } -} - diff --git a/src/models/game.rs b/src/models/game.rs index 3cbc2ce..d1f6854 100644 --- a/src/models/game.rs +++ b/src/models/game.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -21,8 +21,8 @@ pub struct Game { pub description: Option>, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, - #[serde(rename = "organization_id", skip_serializing_if = "Option::is_none")] - pub organization_id: Option, + #[serde(rename = "organization_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub organization_id: Option>, #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub icon_url: Option>, #[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -33,12 +33,10 @@ pub struct Game { pub library_image_url: Option>, #[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub slug: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, #[serde(rename = "enable_servers", skip_serializing_if = "Option::is_none")] pub enable_servers: Option, #[serde(rename = "game_port", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -68,9 +66,8 @@ impl Game { capsule_image_url: None, library_image_url: None, slug: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, enable_servers: None, game_port: None, query_port: None, diff --git a/src/models/game_server.rs b/src/models/game_server.rs index 1e4b662..361d373 100644 --- a/src/models/game_server.rs +++ b/src/models/game_server.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -19,8 +19,8 @@ pub struct GameServer { pub name: Option, #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub description: Option>, - #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")] - pub owner_id: Option, + #[serde(rename = "owner_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub owner_id: Option>, #[serde(rename = "address", deserialize_with = "Option::deserialize")] pub address: Option, #[serde(rename = "query_port")] @@ -35,8 +35,8 @@ pub struct GameServer { pub game_id: Option, #[serde(rename = "game_icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub game_icon_url: Option>, - #[serde(rename = "cluster_id", skip_serializing_if = "Option::is_none")] - pub cluster_id: Option, + #[serde(rename = "cluster_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cluster_id: Option>, #[serde(rename = "website_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub website_url: Option>, #[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -48,15 +48,13 @@ pub struct GameServer { #[serde(rename = "steam", skip_serializing_if = "Option::is_none")] pub steam: Option, #[serde(rename = "discord_server_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub discord_server_id: Option>, + pub discord_server_id: Option>, #[serde(rename = "youtube_video_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub youtube_video_url: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl GameServer { @@ -81,9 +79,8 @@ impl GameServer { steam: None, discord_server_id: None, youtube_video_url: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/game_server_cluster.rs b/src/models/game_server_cluster.rs index 8c9f25f..609bf8e 100644 --- a/src/models/game_server_cluster.rs +++ b/src/models/game_server_cluster.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -28,7 +28,7 @@ pub struct GameServerCluster { #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")] pub owner_id: Option, #[serde(rename = "discord_server_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub discord_server_id: Option>, + pub discord_server_id: Option>, #[serde(rename = "youtube_video_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub youtube_video_url: Option>, #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -37,12 +37,10 @@ pub struct GameServerCluster { pub comment_count: Option, #[serde(rename = "server_count", skip_serializing_if = "Option::is_none")] pub server_count: Option, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl GameServerCluster { @@ -60,9 +58,8 @@ impl GameServerCluster { tags: None, comment_count: None, server_count: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/game_server_query.rs b/src/models/game_server_query.rs index ab5c484..523af11 100644 --- a/src/models/game_server_query.rs +++ b/src/models/game_server_query.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -27,8 +27,8 @@ pub struct GameServerQuery { pub max_players: Option, #[serde(rename = "motd", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub motd: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, } impl GameServerQuery { @@ -41,7 +41,7 @@ impl GameServerQuery { current_players: None, max_players: None, motd: None, - created_at: None, + created: None, } } } diff --git a/src/models/game_server_status.rs b/src/models/game_server_status.rs index cc7bca6..72ab6e4 100644 --- a/src/models/game_server_status.rs +++ b/src/models/game_server_status.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/grant_type.rs b/src/models/grant_type.rs index 2715f09..268b807 100644 --- a/src/models/grant_type.rs +++ b/src/models/grant_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/group.rs b/src/models/group.rs index baf0afd..d0c6658 100644 --- a/src/models/group.rs +++ b/src/models/group.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -16,7 +16,7 @@ pub struct Group { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] - pub uuid: Option, + pub uuid: Option, #[serde(rename = "name", deserialize_with = "Option::deserialize")] pub name: Option, #[serde(rename = "tag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -41,12 +41,10 @@ pub struct Group { pub follower_count: Option, #[serde(rename = "view_count", skip_serializing_if = "Option::is_none")] pub view_count: Option, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Group { @@ -66,9 +64,8 @@ impl Group { member_count: None, follower_count: None, view_count: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/group_application.rs b/src/models/group_application.rs index 0fda725..755d67e 100644 --- a/src/models/group_application.rs +++ b/src/models/group_application.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/group_member.rs b/src/models/group_member.rs index bf3e62c..8817f07 100644 --- a/src/models/group_member.rs +++ b/src/models/group_member.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,12 +15,18 @@ use serde::{Deserialize, Serialize}; pub struct GroupMember { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, + #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] + pub uuid: Option, #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub name: Option>, #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub display_name: Option>, + #[serde(rename = "verified", skip_serializing_if = "Option::is_none")] + pub verified: Option, #[serde(rename = "photo_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub photo_url: Option>, + #[serde(rename = "last_online", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_online: Option>, #[serde(rename = "rank", skip_serializing_if = "Option::is_none")] pub rank: Option, #[serde(rename = "since", skip_serializing_if = "Option::is_none")] @@ -31,9 +37,12 @@ impl GroupMember { pub fn new() -> GroupMember { GroupMember { id: None, + uuid: None, name: None, display_name: None, + verified: None, photo_url: None, + last_online: None, rank: None, since: None, } diff --git a/src/models/group_rank.rs b/src/models/group_rank.rs index fd20f3d..f24e031 100644 --- a/src/models/group_rank.rs +++ b/src/models/group_rank.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/hash_view_model.rs b/src/models/hash_view_model.rs index f85eb8a..c68de1d 100644 --- a/src/models/hash_view_model.rs +++ b/src/models/hash_view_model.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/identity_provider_type.rs b/src/models/identity_provider_type.rs deleted file mode 100644 index 0b25457..0000000 --- a/src/models/identity_provider_type.rs +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.4.3 - * Contact: contact@tribufu.com - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum IdentityProviderType { - #[serde(rename = "steam")] - Steam, - #[serde(rename = "epic")] - Epic, - #[serde(rename = "discord")] - Discord, - #[serde(rename = "microsoft")] - Microsoft, - #[serde(rename = "playstation")] - Playstation, - #[serde(rename = "google")] - Google, - #[serde(rename = "apple")] - Apple, - -} - -impl std::fmt::Display for IdentityProviderType { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Self::Steam => write!(f, "steam"), - Self::Epic => write!(f, "epic"), - Self::Discord => write!(f, "discord"), - Self::Microsoft => write!(f, "microsoft"), - Self::Playstation => write!(f, "playstation"), - Self::Google => write!(f, "google"), - Self::Apple => write!(f, "apple"), - } - } -} - -impl Default for IdentityProviderType { - fn default() -> IdentityProviderType { - Self::Steam - } -} - diff --git a/src/models/introspect_request.rs b/src/models/introspect_request.rs index 2c069a5..fe0cd00 100644 --- a/src/models/introspect_request.rs +++ b/src/models/introspect_request.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/introspect_response.rs b/src/models/introspect_response.rs index f56fcde..6aa4650 100644 --- a/src/models/introspect_response.rs +++ b/src/models/introspect_response.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/ip_address.rs b/src/models/ip_address.rs index 42a04a5..8f5b28e 100644 --- a/src/models/ip_address.rs +++ b/src/models/ip_address.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/leaderboard_item.rs b/src/models/leaderboard_item.rs index c390661..645487d 100644 --- a/src/models/leaderboard_item.rs +++ b/src/models/leaderboard_item.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/leaderboard_order.rs b/src/models/leaderboard_order.rs index 2e17baa..951684d 100644 --- a/src/models/leaderboard_order.rs +++ b/src/models/leaderboard_order.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/mod.rs b/src/models/mod.rs index b00df84..b1d4faf 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,3 +1,5 @@ +pub mod account; +pub use self::account::Account; pub mod application; pub use self::application::Application; pub mod application_type; @@ -18,8 +20,6 @@ pub mod create_user; pub use self::create_user::CreateUser; pub mod crypto_view_model; pub use self::crypto_view_model::CryptoViewModel; -pub mod external_account; -pub use self::external_account::ExternalAccount; pub mod game; pub use self::game::Game; pub mod game_server; @@ -42,8 +42,6 @@ pub mod group_rank; pub use self::group_rank::GroupRank; pub mod hash_view_model; pub use self::hash_view_model::HashViewModel; -pub mod identity_provider_type; -pub use self::identity_provider_type::IdentityProviderType; pub mod introspect_request; pub use self::introspect_request::IntrospectRequest; pub mod introspect_response; @@ -54,6 +52,8 @@ pub mod leaderboard_item; pub use self::leaderboard_item::LeaderboardItem; pub mod leaderboard_order; pub use self::leaderboard_order::LeaderboardOrder; +pub mod login_provider; +pub use self::login_provider::LoginProvider; pub mod package; pub use self::package::Package; pub mod package_release; diff --git a/src/models/package.rs b/src/models/package.rs index b44c17e..ccc916a 100644 --- a/src/models/package.rs +++ b/src/models/package.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -23,22 +23,20 @@ pub struct Package { pub author_id: Option, #[serde(rename = "image_url", deserialize_with = "Option::deserialize")] pub image_url: Option, - #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")] - pub application_id: Option, - #[serde(rename = "category_id", skip_serializing_if = "Option::is_none")] - pub category_id: Option, + #[serde(rename = "application_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub application_id: Option>, + #[serde(rename = "category_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub category_id: Option>, #[serde(rename = "download_count", skip_serializing_if = "Option::is_none")] pub download_count: Option, #[serde(rename = "last_download", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub last_download: Option>, #[serde(rename = "releases", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub releases: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Package { @@ -54,9 +52,8 @@ impl Package { download_count: None, last_download: None, releases: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/package_release.rs b/src/models/package_release.rs index 304e6f4..6df4da8 100644 --- a/src/models/package_release.rs +++ b/src/models/package_release.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -23,12 +23,10 @@ pub struct PackageRelease { pub notes: Option>, #[serde(rename = "files", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub files: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl PackageRelease { @@ -39,9 +37,8 @@ impl PackageRelease { package_id: None, notes: None, files: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/product.rs b/src/models/product.rs index ec00185..884b025 100644 --- a/src/models/product.rs +++ b/src/models/product.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -17,8 +17,6 @@ pub struct Product { pub id: Option, #[serde(rename = "name", deserialize_with = "Option::deserialize")] pub name: Option, - #[serde(rename = "sku", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub sku: Option>, #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub description: Option>, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -27,14 +25,14 @@ pub struct Product { pub slug: Option>, #[serde(rename = "image_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub image_url: Option>, + #[serde(rename = "is_physical", skip_serializing_if = "Option::is_none")] + pub is_physical: Option, #[serde(rename = "prices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub prices: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Product { @@ -42,15 +40,14 @@ impl Product { Product { id: None, name, - sku: None, description: None, r#type: None, slug: None, image_url: None, + is_physical: None, prices: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/product_price.rs b/src/models/product_price.rs index 45d2615..69d1254 100644 --- a/src/models/product_price.rs +++ b/src/models/product_price.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,8 +15,8 @@ use serde::{Deserialize, Serialize}; pub struct ProductPrice { #[serde(rename = "currency", deserialize_with = "Option::deserialize")] pub currency: Option, - #[serde(rename = "price", skip_serializing_if = "Option::is_none")] - pub price: Option, + #[serde(rename = "amount", skip_serializing_if = "Option::is_none")] + pub amount: Option, #[serde(rename = "renewal", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub renewal: Option>, } @@ -25,7 +25,7 @@ impl ProductPrice { pub fn new(currency: Option) -> ProductPrice { ProductPrice { currency, - price: None, + amount: None, renewal: None, } } diff --git a/src/models/product_type.rs b/src/models/product_type.rs index d42493b..1a41f51 100644 --- a/src/models/product_type.rs +++ b/src/models/product_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/profile.rs b/src/models/profile.rs index abb710a..d7cdc13 100644 --- a/src/models/profile.rs +++ b/src/models/profile.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,18 +15,26 @@ use serde::{Deserialize, Serialize}; pub struct Profile { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, + #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] + pub uuid: Option, #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub name: Option>, #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub display_name: Option>, + #[serde(rename = "verified", skip_serializing_if = "Option::is_none")] + pub verified: Option, #[serde(rename = "level", skip_serializing_if = "Option::is_none")] pub level: Option, #[serde(rename = "experience", skip_serializing_if = "Option::is_none")] pub experience: Option, + #[serde(rename = "public_birthday", skip_serializing_if = "Option::is_none")] + pub public_birthday: Option, #[serde(rename = "birthday", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub birthday: Option>, #[serde(rename = "points", skip_serializing_if = "Option::is_none")] pub points: Option, + #[serde(rename = "location", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub location: Option>, #[serde(rename = "photo_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub photo_url: Option>, #[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -35,28 +43,35 @@ pub struct Profile { pub last_online: Option>, #[serde(rename = "biography", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub biography: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, + #[serde(rename = "view_count", skip_serializing_if = "Option::is_none")] + pub view_count: Option, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl Profile { pub fn new() -> Profile { Profile { id: None, + uuid: None, name: None, display_name: None, + verified: None, level: None, experience: None, + public_birthday: None, birthday: None, points: None, + location: None, photo_url: None, banner_url: None, last_online: None, biography: None, - created_at: None, - updated_at: None, + view_count: None, + created: None, + updated: None, } } } diff --git a/src/models/profile_game.rs b/src/models/profile_game.rs index 406effd..3d6d978 100644 --- a/src/models/profile_game.rs +++ b/src/models/profile_game.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/profile_group.rs b/src/models/profile_group.rs index 63d1371..82c4042 100644 --- a/src/models/profile_group.rs +++ b/src/models/profile_group.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -16,7 +16,7 @@ pub struct ProfileGroup { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] - pub uuid: Option, + pub uuid: Option, #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub name: Option>, #[serde(rename = "tag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] diff --git a/src/models/response_type.rs b/src/models/response_type.rs index e02222e..ea9a73c 100644 --- a/src/models/response_type.rs +++ b/src/models/response_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/revoke_request.rs b/src/models/revoke_request.rs index 2f8b56c..84fdb0e 100644 --- a/src/models/revoke_request.rs +++ b/src/models/revoke_request.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/search.rs b/src/models/search.rs index f6ffe85..880ad86 100644 --- a/src/models/search.rs +++ b/src/models/search.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -19,8 +19,8 @@ pub struct Search { pub query: Option, #[serde(rename = "page", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub page: Option>, - #[serde(rename = "game_id", skip_serializing_if = "Option::is_none")] - pub game_id: Option, + #[serde(rename = "game_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub game_id: Option>, } impl Search { diff --git a/src/models/search_type.rs b/src/models/search_type.rs index f81966b..d5793a0 100644 --- a/src/models/search_type.rs +++ b/src/models/search_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/server_metrics.rs b/src/models/server_metrics.rs index 6a51011..3e7c5fd 100644 --- a/src/models/server_metrics.rs +++ b/src/models/server_metrics.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/storage_file.rs b/src/models/storage_file.rs index 8c03ff8..2cde85e 100644 --- a/src/models/storage_file.rs +++ b/src/models/storage_file.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -27,12 +27,10 @@ pub struct StorageFile { pub hash: Option>, #[serde(rename = "etag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub etag: Option>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, - #[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub deleted_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl StorageFile { @@ -45,9 +43,8 @@ impl StorageFile { size: None, hash: None, etag: None, - created_at: None, - updated_at: None, - deleted_at: None, + created: None, + updated: None, } } } diff --git a/src/models/token_hint_type.rs b/src/models/token_hint_type.rs index e1acc5c..672b623 100644 --- a/src/models/token_hint_type.rs +++ b/src/models/token_hint_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/token_request.rs b/src/models/token_request.rs index 15be9ee..20625d1 100644 --- a/src/models/token_request.rs +++ b/src/models/token_request.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/token_response.rs b/src/models/token_response.rs index 2420fec..1bc1a52 100644 --- a/src/models/token_response.rs +++ b/src/models/token_response.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/token_type.rs b/src/models/token_type.rs index 8fd8c7d..9952b32 100644 --- a/src/models/token_type.rs +++ b/src/models/token_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_profile.rs b/src/models/update_profile.rs index 448ae20..0e18e8f 100644 --- a/src/models/update_profile.rs +++ b/src/models/update_profile.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/user_info.rs b/src/models/user_info.rs index 40976ed..7d2a3c6 100644 --- a/src/models/user_info.rs +++ b/src/models/user_info.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,12 +15,14 @@ use serde::{Deserialize, Serialize}; pub struct UserInfo { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, + #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")] + pub uuid: Option, #[serde(rename = "name", deserialize_with = "Option::deserialize")] pub name: Option, #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub display_name: Option>, - #[serde(rename = "email_address", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub email_address: Option>, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, #[serde(rename = "email_verified", skip_serializing_if = "Option::is_none")] pub email_verified: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -35,19 +37,20 @@ pub struct UserInfo { pub photo_url: Option>, #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub permissions: Option>>, - #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] - pub created_at: Option, - #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub updated_at: Option>, + #[serde(rename = "created", skip_serializing_if = "Option::is_none")] + pub created: Option, + #[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub updated: Option>, } impl UserInfo { pub fn new(name: Option) -> UserInfo { UserInfo { id: None, + uuid: None, name, display_name: None, - email_address: None, + email: None, email_verified: None, r#type: None, language: None, @@ -55,8 +58,8 @@ impl UserInfo { currency: None, photo_url: None, permissions: None, - created_at: None, - updated_at: None, + created: None, + updated: None, } } } diff --git a/src/models/user_type.rs b/src/models/user_type.rs index 90e7640..90bf1ae 100644 --- a/src/models/user_type.rs +++ b/src/models/user_type.rs @@ -3,7 +3,7 @@ * * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.3 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/platform/Cargo.toml b/src/platform/Cargo.toml index 9c3b672..db1e7d4 100644 --- a/src/platform/Cargo.toml +++ b/src/platform/Cargo.toml @@ -2,7 +2,7 @@ name = "tribufu-platform" version = "1.3.0" description = "Tribufu Platform" -repository = "https://github.com/Tribufu/TribufuRust" +repository = "https://github.com/tribufu/tribufu-rust" authors = ["Tribufu "] license = "MIT" edition = "2021"