From 732ad87783fded966aa75c864d0b766e64512616 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 15 Jun 2026 20:21:41 -0300 Subject: [PATCH] Update api to 1.4.3 --- .openapi-generator/FILES | 4 +- src/apis/configuration.rs | 4 +- src/apis/tribufu_generated_api.rs | 856 +-------------------------- src/models/application.rs | 21 +- src/models/application_type.rs | 10 +- src/models/authorize_request.rs | 2 +- src/models/client.rs | 17 +- src/models/client_info.rs | 2 +- src/models/client_type.rs | 2 +- src/models/code_challenge_method.rs | 2 +- src/models/code_response.rs | 2 +- src/models/create_user.rs | 6 +- src/models/crypto_view_model.rs | 2 +- src/models/external_account.rs | 51 ++ src/models/game.rs | 21 +- src/models/game_server.rs | 27 +- src/models/game_server_cluster.rs | 19 +- src/models/game_server_query.rs | 8 +- src/models/game_server_status.rs | 2 +- src/models/grant_type.rs | 2 +- src/models/group.rs | 19 +- src/models/group_application.rs | 2 +- src/models/group_member.rs | 11 +- src/models/group_rank.rs | 2 +- src/models/hash_view_model.rs | 2 +- src/models/identity_provider_type.rs | 53 ++ src/models/introspect_request.rs | 2 +- src/models/introspect_response.rs | 2 +- src/models/ip_address.rs | 2 +- src/models/leaderboard_item.rs | 2 +- src/models/leaderboard_order.rs | 2 +- src/models/mod.rs | 8 +- src/models/package.rs | 25 +- src/models/package_release.rs | 17 +- src/models/product.rs | 23 +- src/models/product_price.rs | 8 +- src/models/product_type.rs | 2 +- src/models/profile.rs | 29 +- src/models/profile_game.rs | 2 +- src/models/profile_group.rs | 4 +- src/models/response_type.rs | 2 +- src/models/revoke_request.rs | 2 +- src/models/search.rs | 6 +- src/models/search_type.rs | 2 +- src/models/server_metrics.rs | 2 +- src/models/storage_file.rs | 17 +- src/models/token_hint_type.rs | 2 +- src/models/token_request.rs | 2 +- src/models/token_response.rs | 2 +- src/models/token_type.rs | 2 +- src/models/update_profile.rs | 2 +- src/models/user_info.rs | 23 +- src/models/user_type.rs | 2 +- 53 files changed, 321 insertions(+), 1022 deletions(-) create mode 100644 src/models/external_account.rs create mode 100644 src/models/identity_provider_type.rs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c317da9..29afcea 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,7 +1,6 @@ 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 @@ -12,6 +11,7 @@ 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/src/apis/configuration.rs b/src/apis/configuration.rs index 3e5160c..610d148 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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.3.0/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/1.4.3/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 8f9c1c8..2ba7111 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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: &'timestamp str, amount: Option) -> Result, Error>; + async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: i64, 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: &str) -> Result>; + async fn get_group_by_uuid<'uuid>(&self, uuid: &'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: &str) -> Result>; + async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &'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: &str) -> Result>; + async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &'uuid str) -> Result>; /// GET /v1/profiles /// @@ -552,14 +552,6 @@ 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()?; @@ -599,14 +591,6 @@ 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()?; @@ -636,14 +620,6 @@ 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()?; @@ -673,14 +649,6 @@ 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()?; @@ -710,14 +678,6 @@ 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()?; @@ -747,14 +707,6 @@ 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()?; @@ -794,14 +746,6 @@ 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()?; @@ -831,14 +775,6 @@ 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()?; @@ -868,14 +804,6 @@ 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()?; @@ -905,14 +833,6 @@ 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()?; @@ -942,14 +862,6 @@ 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()?; @@ -979,14 +891,6 @@ 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()?; @@ -1015,14 +919,6 @@ 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()?; @@ -1062,14 +958,6 @@ 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()?; @@ -1099,14 +987,6 @@ 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?; @@ -1135,14 +1015,6 @@ 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?; @@ -1171,14 +1043,6 @@ 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?; @@ -1207,14 +1071,6 @@ 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,14 +1099,6 @@ 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?; @@ -1279,14 +1127,6 @@ 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?; @@ -1315,14 +1155,6 @@ 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?; @@ -1340,7 +1172,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; @@ -1354,14 +1186,6 @@ 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?; @@ -1378,8 +1202,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<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>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -1389,12 +1213,12 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.utils.generate.flake.timestamp - async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: &'timestamp str, amount: Option) -> Result, Error> { + async fn generate_flake_id_from_timestamp<'timestamp, 'amount>(&self, timestamp: i64, 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=crate::apis::urlencode(timestamp)); + let local_var_uri_str = format!("{}/v1/utils/flake/{timestamp}", local_var_configuration.base_path, timestamp=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 { @@ -1403,14 +1227,6 @@ 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?; @@ -1427,8 +1243,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<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>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -1455,14 +1271,6 @@ 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?; @@ -1490,7 +1298,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; @@ -1507,14 +1315,6 @@ 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?; @@ -1531,8 +1331,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<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>`")))), + 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(); @@ -1553,14 +1353,6 @@ 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?; @@ -1598,14 +1390,6 @@ 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?; @@ -1653,14 +1437,6 @@ 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?; @@ -1698,14 +1474,6 @@ 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?; @@ -1744,14 +1512,6 @@ 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?; @@ -1790,14 +1550,6 @@ 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?; @@ -1836,14 +1588,6 @@ 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?; @@ -1882,14 +1626,6 @@ 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?; @@ -1928,14 +1664,6 @@ 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?; @@ -1974,14 +1702,6 @@ 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?; @@ -2020,14 +1740,6 @@ 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?; @@ -2072,14 +1784,6 @@ 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?; @@ -2124,14 +1828,6 @@ 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?; @@ -2176,14 +1872,6 @@ 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?; @@ -2228,14 +1916,6 @@ 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?; @@ -2280,14 +1960,6 @@ 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?; @@ -2332,14 +2004,6 @@ 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?; @@ -2396,14 +2060,6 @@ 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?; @@ -2448,14 +2104,6 @@ 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?; @@ -2500,14 +2148,6 @@ 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?; @@ -2546,14 +2186,6 @@ 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?; @@ -2592,14 +2224,6 @@ 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?; @@ -2638,14 +2262,6 @@ 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?; @@ -2684,14 +2300,6 @@ 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?; @@ -2748,14 +2356,6 @@ 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?; @@ -2800,14 +2400,6 @@ 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?; @@ -2846,14 +2438,6 @@ 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?; @@ -2892,14 +2476,6 @@ 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?; @@ -2927,7 +2503,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.group.get.uuid - async fn get_group_by_uuid<'uuid>(&self, uuid: &str) -> Result> { + async fn get_group_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -2938,14 +2514,6 @@ 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?; @@ -2984,14 +2552,6 @@ 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?; @@ -3030,14 +2590,6 @@ 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?; @@ -3082,14 +2634,6 @@ 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?; @@ -3127,14 +2671,6 @@ 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?; @@ -3182,14 +2718,6 @@ 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?; @@ -3231,14 +2759,6 @@ 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?; @@ -3277,14 +2797,6 @@ 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?; @@ -3329,14 +2841,6 @@ 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?; @@ -3375,14 +2879,6 @@ 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?; @@ -3427,14 +2923,6 @@ 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?; @@ -3472,14 +2960,6 @@ 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?; @@ -3497,7 +2977,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; @@ -3508,14 +2988,6 @@ 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?; @@ -3532,8 +3004,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::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>`")))), + 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>`")))), } } else { let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); @@ -3554,14 +3026,6 @@ 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?; @@ -3600,14 +3064,6 @@ 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,14 +3102,6 @@ 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?; @@ -3692,14 +3140,6 @@ 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?; @@ -3738,14 +3178,6 @@ 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?; @@ -3784,14 +3216,6 @@ 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?; @@ -3830,14 +3254,6 @@ 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?; @@ -3876,14 +3292,6 @@ 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?; @@ -3922,14 +3330,6 @@ 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?; @@ -3968,14 +3368,6 @@ 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?; @@ -4014,14 +3406,6 @@ 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?; @@ -4049,7 +3433,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &str) -> Result> { + async fn get_user_profile_by_uuid<'uuid>(&self, uuid: &'uuid str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -4060,14 +3444,6 @@ 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?; @@ -4095,7 +3471,7 @@ impl TribufuGeneratedApi for TribufuGeneratedApiClient { } /// 🔒 Required permissions: tribufu.community.profile.get.uuid - async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &str) -> Result> { + async fn get_user_profile_by_uuid_v1<'uuid>(&self, uuid: &'uuid str) -> Result> { let local_var_configuration = &self.configuration; let local_var_client = &local_var_configuration.client; @@ -4106,14 +3482,6 @@ 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?; @@ -4158,14 +3526,6 @@ 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?; @@ -4210,14 +3570,6 @@ 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?; @@ -4256,14 +3608,6 @@ 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?; @@ -4302,14 +3646,6 @@ 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?; @@ -4354,14 +3690,6 @@ 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?; @@ -4406,14 +3734,6 @@ 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?; @@ -4452,14 +3772,6 @@ 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()?; @@ -4499,14 +3811,6 @@ 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()?; @@ -4546,14 +3850,6 @@ 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()?; @@ -4593,14 +3889,6 @@ 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()?; @@ -4639,14 +3927,6 @@ 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()?; @@ -4685,14 +3965,6 @@ 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()?; @@ -4722,14 +3994,6 @@ 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()?; @@ -4769,14 +4033,6 @@ 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()?; @@ -4806,14 +4062,6 @@ 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()?; @@ -4843,14 +4091,6 @@ 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()?; @@ -4880,14 +4120,6 @@ 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()?; @@ -4917,14 +4149,6 @@ 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()?; @@ -4954,14 +4178,6 @@ 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()?; @@ -4991,14 +4207,6 @@ 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()?; @@ -5028,14 +4236,6 @@ 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()?; @@ -5075,14 +4275,6 @@ 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/models/application.rs b/src/models/application.rs index 24fe58f..1cfe03d 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub organization_id: Option>, + #[serde(rename = "organization_id", 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,10 +33,12 @@ 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", 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 = "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 Application { @@ -52,8 +54,9 @@ impl Application { capsule_image_url: None, library_image_url: None, slug: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/application_type.rs b/src/models/application_type.rs index 8ebebfc..1981257 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 = "application")] - Application, + #[serde(rename = "software")] + Software, #[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::Application => write!(f, "application"), + Self::Software => write!(f, "software"), Self::Game => write!(f, "game"), } } @@ -32,7 +32,7 @@ impl std::fmt::Display for ApplicationType { impl Default for ApplicationType { fn default() -> ApplicationType { - Self::Application + Self::Software } } diff --git a/src/models/authorize_request.rs b/src/models/authorize_request.rs index f2d34ff..89bd549 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/client.rs b/src/models/client.rs index 3eaa25d..0e33045 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -35,10 +35,12 @@ 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", 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 = "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 Client { @@ -55,8 +57,9 @@ impl Client { redirects: None, scopes: None, permissions: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/client_info.rs b/src/models/client_info.rs index 38d4de7..9bb0e76 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 706e98e..b055ba4 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 c5cf5d3..755d830 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 329dc13..045fccd 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 aaee70d..6680680 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub uuid: Option>, + #[serde(rename = "uuid", 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 c6225e1..74ebe0b 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/external_account.rs b/src/models/external_account.rs new file mode 100644 index 0000000..f1993e9 --- /dev/null +++ b/src/models/external_account.rs @@ -0,0 +1,51 @@ +/* + * 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 d1f6854..3cbc2ce 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub organization_id: Option>, + #[serde(rename = "organization_id", 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,10 +33,12 @@ 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", 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 = "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 = "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")] @@ -66,8 +68,9 @@ impl Game { capsule_image_url: None, library_image_url: None, slug: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: 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 361d373..1e4b662 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub owner_id: Option>, + #[serde(rename = "owner_id", 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub cluster_id: Option>, + #[serde(rename = "cluster_id", 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,13 +48,15 @@ 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", 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 = "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 GameServer { @@ -79,8 +81,9 @@ impl GameServer { steam: None, discord_server_id: None, youtube_video_url: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/game_server_cluster.rs b/src/models/game_server_cluster.rs index 609bf8e..8c9f25f 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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,10 +37,12 @@ pub struct GameServerCluster { pub comment_count: Option, #[serde(rename = "server_count", skip_serializing_if = "Option::is_none")] pub server_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>, + #[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 GameServerCluster { @@ -58,8 +60,9 @@ impl GameServerCluster { tags: None, comment_count: None, server_count: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/game_server_query.rs b/src/models/game_server_query.rs index 523af11..ab5c484 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] + pub created_at: Option, } impl GameServerQuery { @@ -41,7 +41,7 @@ impl GameServerQuery { current_players: None, max_players: None, motd: None, - created: None, + created_at: None, } } } diff --git a/src/models/game_server_status.rs b/src/models/game_server_status.rs index 72ab6e4..cc7bca6 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 268b807..2715f09 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/group.rs b/src/models/group.rs index d0c6658..baf0afd 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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,10 +41,12 @@ pub struct Group { pub follower_count: 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>, + #[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 Group { @@ -64,8 +66,9 @@ impl Group { member_count: None, follower_count: None, view_count: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/group_application.rs b/src/models/group_application.rs index 755d67e..0fda725 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 8817f07..bf3e62c 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,18 +15,12 @@ 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")] @@ -37,12 +31,9 @@ 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 f24e031..fd20f3d 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 c68de1d..f85eb8a 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 new file mode 100644 index 0000000..0b25457 --- /dev/null +++ b/src/models/identity_provider_type.rs @@ -0,0 +1,53 @@ +/* + * 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 fe0cd00..2c069a5 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 6aa4650..f56fcde 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 8f5b28e..42a04a5 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 645487d..c390661 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 951684d..2e17baa 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/mod.rs b/src/models/mod.rs index b1d4faf..b00df84 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,5 +1,3 @@ -pub mod account; -pub use self::account::Account; pub mod application; pub use self::application::Application; pub mod application_type; @@ -20,6 +18,8 @@ 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,6 +42,8 @@ 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; @@ -52,8 +54,6 @@ 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 ccc916a..b44c17e 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -23,20 +23,22 @@ pub struct Package { pub author_id: Option, #[serde(rename = "image_url", deserialize_with = "Option::deserialize")] pub image_url: 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 = "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 = "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", 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 = "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 Package { @@ -52,8 +54,9 @@ impl Package { download_count: None, last_download: None, releases: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/package_release.rs b/src/models/package_release.rs index 6df4da8..304e6f4 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -23,10 +23,12 @@ 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", 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 = "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 PackageRelease { @@ -37,8 +39,9 @@ impl PackageRelease { package_id: None, notes: None, files: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/product.rs b/src/models/product.rs index 884b025..ec00185 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -17,6 +17,8 @@ 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")] @@ -25,14 +27,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", 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 = "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 Product { @@ -40,14 +42,15 @@ impl Product { Product { id: None, name, + sku: None, description: None, r#type: None, slug: None, image_url: None, - is_physical: None, prices: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/product_price.rs b/src/models/product_price.rs index 69d1254..45d2615 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 = "amount", skip_serializing_if = "Option::is_none")] - pub amount: Option, + #[serde(rename = "price", skip_serializing_if = "Option::is_none")] + pub price: 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, - amount: None, + price: None, renewal: None, } } diff --git a/src/models/product_type.rs b/src/models/product_type.rs index 1a41f51..d42493b 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/profile.rs b/src/models/profile.rs index d7cdc13..abb710a 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,26 +15,18 @@ 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")] @@ -43,35 +35,28 @@ 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 = "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>, + #[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>, } 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, - view_count: None, - created: None, - updated: None, + created_at: None, + updated_at: None, } } } diff --git a/src/models/profile_game.rs b/src/models/profile_game.rs index 3d6d978..406effd 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 82c4042..63d1371 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 ea9a73c..e02222e 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 84fdb0e..2f8b56c 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/search.rs b/src/models/search.rs index 880ad86..f6ffe85 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub game_id: Option>, + #[serde(rename = "game_id", 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 d5793a0..f81966b 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 3e7c5fd..6a51011 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 2cde85e..8c03ff8 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -27,10 +27,12 @@ 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", 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 = "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 StorageFile { @@ -43,8 +45,9 @@ impl StorageFile { size: None, hash: None, etag: None, - created: None, - updated: None, + created_at: None, + updated_at: None, + deleted_at: None, } } } diff --git a/src/models/token_hint_type.rs b/src/models/token_hint_type.rs index 672b623..e1acc5c 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 20625d1..15be9ee 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 1bc1a52..2420fec 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 9952b32..8fd8c7d 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 0e18e8f..448ae20 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.3.0 + * The version of the OpenAPI document: 1.4.3 * 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 7d2a3c6..40976ed 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */ @@ -15,14 +15,12 @@ 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub email: 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_verified", skip_serializing_if = "Option::is_none")] pub email_verified: Option, #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -37,20 +35,19 @@ 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", 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 = "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>, } impl UserInfo { pub fn new(name: Option) -> UserInfo { UserInfo { id: None, - uuid: None, name, display_name: None, - email: None, + email_address: None, email_verified: None, r#type: None, language: None, @@ -58,8 +55,8 @@ impl UserInfo { currency: None, photo_url: None, permissions: None, - created: None, - updated: None, + created_at: None, + updated_at: None, } } } diff --git a/src/models/user_type.rs b/src/models/user_type.rs index 90bf1ae..90e7640 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.3.0 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * Generated by: https://openapi-generator.tech */