diff --git a/Cargo.toml b/Cargo.toml index 80d473a..0a021f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "onesignal-rust-api" -version = "5.3.0" +version = "5.4.0" authors = ["devrel@onesignal.com"] edition = "2018" description = "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com" diff --git a/README.md b/README.md index 5cc1789..7671284 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,15 @@ A powerful way to send personalized messages at scale and build effective custom For more information, please visit [https://onesignal.com](https://onesignal.com) -- API version: 5.3.0 -- Package version: 5.3.0 +- API version: 5.4.0 +- Package version: 5.4.0 ## Installation Add to `Cargo.toml` under `[dependencies]`: ```toml -onesignal-rust-api = "5.3.0" +onesignal-rust-api = "5.4.0" ``` ## Configuration diff --git a/docs/CreateTemplateRequest.md b/docs/CreateTemplateRequest.md index 35c1422..88e14a5 100644 --- a/docs/CreateTemplateRequest.md +++ b/docs/CreateTemplateRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **app_id** | **String** | Your OneSignal App ID in UUID v4 format. | **name** | **String** | Name of the template. | **contents** | [**crate::models::LanguageStringMap**](LanguageStringMap.md) | | +**headings** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional] +**subtitle** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional] **is_email** | Option<**bool**> | Set true for an Email template. | [optional] **email_subject** | Option<**String**> | Subject of the email. | [optional] **email_body** | Option<**String**> | Body of the email (HTML supported). | [optional] diff --git a/docs/UpdateTemplateRequest.md b/docs/UpdateTemplateRequest.md index d070f26..457d5d0 100644 --- a/docs/UpdateTemplateRequest.md +++ b/docs/UpdateTemplateRequest.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | Option<**String**> | Updated name of the template. | [optional] **contents** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional] +**headings** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional] +**subtitle** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional] **is_email** | Option<**bool**> | Set true for an Email template. | [optional] **email_subject** | Option<**String**> | Subject of the email. | [optional] **email_body** | Option<**String**> | Body of the email (HTML supported). | [optional] diff --git a/src/apis/configuration.rs b/src/apis/configuration.rs index 6a42c19..45001fa 100644 --- a/src/apis/configuration.rs +++ b/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -45,7 +45,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "https://api.onesignal.com".to_owned(), - user_agent: Some("OpenAPI-Generator/5.3.0/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/5.4.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/src/apis/default_api.rs b/src/apis/default_api.rs index ccadba9..c270194 100644 --- a/src/apis/default_api.rs +++ b/src/apis/default_api.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -446,7 +446,7 @@ pub async fn cancel_notification(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -482,7 +482,7 @@ pub async fn copy_template_to_app(configuration: &configuration::Configuration, } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -518,7 +518,7 @@ pub async fn create_alias(configuration: &configuration::Configuration, app_id: } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -554,7 +554,7 @@ pub async fn create_alias_by_subscription(configuration: &configuration::Configu } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -590,7 +590,7 @@ pub async fn create_api_key(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -626,7 +626,7 @@ pub async fn create_app(configuration: &configuration::Configuration, app: crate } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -662,7 +662,7 @@ pub async fn create_custom_events(configuration: &configuration::Configuration, } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -698,7 +698,7 @@ pub async fn create_notification(configuration: &configuration::Configuration, n } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -734,7 +734,7 @@ pub async fn create_segment(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -770,7 +770,7 @@ pub async fn create_subscription(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -806,7 +806,7 @@ pub async fn create_template(configuration: &configuration::Configuration, creat } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -842,7 +842,7 @@ pub async fn create_user(configuration: &configuration::Configuration, app_id: & } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -878,7 +878,7 @@ pub async fn delete_alias(configuration: &configuration::Configuration, app_id: } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -913,7 +913,7 @@ pub async fn delete_api_key(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -948,7 +948,7 @@ pub async fn delete_segment(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -983,7 +983,7 @@ pub async fn delete_subscription(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1019,7 +1019,7 @@ pub async fn delete_template(configuration: &configuration::Configuration, templ } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1054,7 +1054,7 @@ pub async fn delete_user(configuration: &configuration::Configuration, app_id: & } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1090,7 +1090,7 @@ pub async fn export_events(configuration: &configuration::Configuration, notific } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1125,7 +1125,7 @@ pub async fn export_subscriptions(configuration: &configuration::Configuration, } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1161,7 +1161,7 @@ pub async fn get_aliases(configuration: &configuration::Configuration, app_id: & } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1196,7 +1196,7 @@ pub async fn get_aliases_by_subscription(configuration: &configuration::Configur } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1231,7 +1231,7 @@ pub async fn get_app(configuration: &configuration::Configuration, app_id: &str) } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1266,7 +1266,7 @@ pub async fn get_apps(configuration: &configuration::Configuration, ) -> Result< } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1302,7 +1302,7 @@ pub async fn get_notification(configuration: &configuration::Configuration, app_ } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1337,7 +1337,7 @@ pub async fn get_notification_history(configuration: &configuration::Configurati } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1383,7 +1383,7 @@ pub async fn get_notifications(configuration: &configuration::Configuration, app } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1431,7 +1431,7 @@ pub async fn get_outcomes(configuration: &configuration::Configuration, app_id: } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1472,7 +1472,7 @@ pub async fn get_segments(configuration: &configuration::Configuration, app_id: } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1507,7 +1507,7 @@ pub async fn get_user(configuration: &configuration::Configuration, app_id: &str } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1542,7 +1542,7 @@ pub async fn rotate_api_key(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1577,7 +1577,7 @@ pub async fn start_live_activity(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1613,7 +1613,7 @@ pub async fn transfer_subscription(configuration: &configuration::Configuration, } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1650,7 +1650,7 @@ pub async fn unsubscribe_email_with_token(configuration: &configuration::Configu } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1685,7 +1685,7 @@ pub async fn update_api_key(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1721,7 +1721,7 @@ pub async fn update_app(configuration: &configuration::Configuration, app_id: &s } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1757,7 +1757,7 @@ pub async fn update_live_activity(configuration: &configuration::Configuration, } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1793,7 +1793,7 @@ pub async fn update_subscription(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1829,7 +1829,7 @@ pub async fn update_subscription_by_token(configuration: &configuration::Configu } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1866,7 +1866,7 @@ pub async fn update_template(configuration: &configuration::Configuration, templ } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1902,7 +1902,7 @@ pub async fn update_user(configuration: &configuration::Configuration, app_id: & } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1938,7 +1938,7 @@ pub async fn view_api_keys(configuration: &configuration::Configuration, app_id: } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1974,7 +1974,7 @@ pub async fn view_template(configuration: &configuration::Configuration, templat } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2019,7 +2019,7 @@ pub async fn view_templates(configuration: &configuration::Configuration, app_id } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.3.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.4.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); diff --git a/src/models/api_key_token.rs b/src/models/api_key_token.rs index 611c4f2..08d0ef4 100644 --- a/src/models/api_key_token.rs +++ b/src/models/api_key_token.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/api_key_tokens_list_response.rs b/src/models/api_key_tokens_list_response.rs index 2a82766..ff54424 100644 --- a/src/models/api_key_tokens_list_response.rs +++ b/src/models/api_key_tokens_list_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/app.rs b/src/models/app.rs index 9f94aeb..114c85a 100644 --- a/src/models/app.rs +++ b/src/models/app.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/basic_notification.rs b/src/models/basic_notification.rs index 44da3d7..36d974f 100644 --- a/src/models/basic_notification.rs +++ b/src/models/basic_notification.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/basic_notification_all_of.rs b/src/models/basic_notification_all_of.rs index 73d3e5b..bc83b23 100644 --- a/src/models/basic_notification_all_of.rs +++ b/src/models/basic_notification_all_of.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/basic_notification_all_of_android_background_layout.rs b/src/models/basic_notification_all_of_android_background_layout.rs index 64208cb..990081e 100644 --- a/src/models/basic_notification_all_of_android_background_layout.rs +++ b/src/models/basic_notification_all_of_android_background_layout.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/button.rs b/src/models/button.rs index d97f9f4..a1c34a7 100644 --- a/src/models/button.rs +++ b/src/models/button.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/copy_template_request.rs b/src/models/copy_template_request.rs index d95b806..08896b9 100644 --- a/src/models/copy_template_request.rs +++ b/src/models/copy_template_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_api_key_request.rs b/src/models/create_api_key_request.rs index 583d055..1e1cf48 100644 --- a/src/models/create_api_key_request.rs +++ b/src/models/create_api_key_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_api_key_response.rs b/src/models/create_api_key_response.rs index a93ac85..adc5128 100644 --- a/src/models/create_api_key_response.rs +++ b/src/models/create_api_key_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_notification_success_response.rs b/src/models/create_notification_success_response.rs index 9d5c5ff..33286bb 100644 --- a/src/models/create_notification_success_response.rs +++ b/src/models/create_notification_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_segment_conflict_response.rs b/src/models/create_segment_conflict_response.rs index c9e234d..a3bd0c3 100644 --- a/src/models/create_segment_conflict_response.rs +++ b/src/models/create_segment_conflict_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_segment_success_response.rs b/src/models/create_segment_success_response.rs index 4fd20e9..c1c1400 100644 --- a/src/models/create_segment_success_response.rs +++ b/src/models/create_segment_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_template_request.rs b/src/models/create_template_request.rs index cb013cc..fd774b1 100644 --- a/src/models/create_template_request.rs +++ b/src/models/create_template_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -21,6 +21,10 @@ pub struct CreateTemplateRequest { pub name: String, #[serde(rename = "contents")] pub contents: Box, + #[serde(rename = "headings", skip_serializing_if = "Option::is_none")] + pub headings: Option>, + #[serde(rename = "subtitle", skip_serializing_if = "Option::is_none")] + pub subtitle: Option>, /// Set true for an Email template. #[serde(rename = "isEmail", skip_serializing_if = "Option::is_none")] pub is_email: Option, @@ -44,6 +48,8 @@ impl CreateTemplateRequest { app_id, name, contents: Box::new(contents), + headings: None, + subtitle: None, is_email: None, email_subject: None, email_body: None, diff --git a/src/models/create_user_conflict_response.rs b/src/models/create_user_conflict_response.rs index 2658cf7..af4a747 100644 --- a/src/models/create_user_conflict_response.rs +++ b/src/models/create_user_conflict_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_user_conflict_response_errors_inner.rs b/src/models/create_user_conflict_response_errors_inner.rs index 75f2090..008492b 100644 --- a/src/models/create_user_conflict_response_errors_inner.rs +++ b/src/models/create_user_conflict_response_errors_inner.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_user_conflict_response_errors_items_meta.rs b/src/models/create_user_conflict_response_errors_items_meta.rs index f83a488..87b1606 100644 --- a/src/models/create_user_conflict_response_errors_items_meta.rs +++ b/src/models/create_user_conflict_response_errors_items_meta.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/custom_event.rs b/src/models/custom_event.rs index 4dfeb00..3c10d08 100644 --- a/src/models/custom_event.rs +++ b/src/models/custom_event.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/custom_events_request.rs b/src/models/custom_events_request.rs index 3eff1be..a7aaf11 100644 --- a/src/models/custom_events_request.rs +++ b/src/models/custom_events_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/delivery_data.rs b/src/models/delivery_data.rs index 0afcf28..04ba328 100644 --- a/src/models/delivery_data.rs +++ b/src/models/delivery_data.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/export_events_success_response.rs b/src/models/export_events_success_response.rs index 0c93950..7442ac4 100644 --- a/src/models/export_events_success_response.rs +++ b/src/models/export_events_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/export_subscriptions_request_body.rs b/src/models/export_subscriptions_request_body.rs index 0e84b66..70da1de 100644 --- a/src/models/export_subscriptions_request_body.rs +++ b/src/models/export_subscriptions_request_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/export_subscriptions_success_response.rs b/src/models/export_subscriptions_success_response.rs index 5257c5f..3ddfccf 100644 --- a/src/models/export_subscriptions_success_response.rs +++ b/src/models/export_subscriptions_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/filter.rs b/src/models/filter.rs index 4ed5eb3..397a8ce 100644 --- a/src/models/filter.rs +++ b/src/models/filter.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/filter_expression.rs b/src/models/filter_expression.rs index bdf582a..a512140 100644 --- a/src/models/filter_expression.rs +++ b/src/models/filter_expression.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/generic_error.rs b/src/models/generic_error.rs index ddb4953..7dd2830 100644 --- a/src/models/generic_error.rs +++ b/src/models/generic_error.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/generic_success_bool_response.rs b/src/models/generic_success_bool_response.rs index dcec9c5..a318549 100644 --- a/src/models/generic_success_bool_response.rs +++ b/src/models/generic_success_bool_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/get_notification_history_request_body.rs b/src/models/get_notification_history_request_body.rs index fdccf0c..a60aa4c 100644 --- a/src/models/get_notification_history_request_body.rs +++ b/src/models/get_notification_history_request_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/get_segments_success_response.rs b/src/models/get_segments_success_response.rs index 66802e1..610380c 100644 --- a/src/models/get_segments_success_response.rs +++ b/src/models/get_segments_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/language_string_map.rs b/src/models/language_string_map.rs index 9132073..42dd902 100644 --- a/src/models/language_string_map.rs +++ b/src/models/language_string_map.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification.rs b/src/models/notification.rs index cb2d8ce..c6ab9ac 100644 --- a/src/models/notification.rs +++ b/src/models/notification.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_all_of.rs b/src/models/notification_all_of.rs index 4539f0b..1ef0683 100644 --- a/src/models/notification_all_of.rs +++ b/src/models/notification_all_of.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_history_success_response.rs b/src/models/notification_history_success_response.rs index 55b228e..c3ec3bf 100644 --- a/src/models/notification_history_success_response.rs +++ b/src/models/notification_history_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_slice.rs b/src/models/notification_slice.rs index 8399b80..a3162c0 100644 --- a/src/models/notification_slice.rs +++ b/src/models/notification_slice.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_target.rs b/src/models/notification_target.rs index 0dfa63c..bcbf700 100644 --- a/src/models/notification_target.rs +++ b/src/models/notification_target.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_with_meta.rs b/src/models/notification_with_meta.rs index 6c6ed24..70febd4 100644 --- a/src/models/notification_with_meta.rs +++ b/src/models/notification_with_meta.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification_with_meta_all_of.rs b/src/models/notification_with_meta_all_of.rs index 81eb2bf..7f604dd 100644 --- a/src/models/notification_with_meta_all_of.rs +++ b/src/models/notification_with_meta_all_of.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/operator.rs b/src/models/operator.rs index 7a6c3c9..3c392f2 100644 --- a/src/models/operator.rs +++ b/src/models/operator.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/outcome_data.rs b/src/models/outcome_data.rs index 118b52f..062da0a 100644 --- a/src/models/outcome_data.rs +++ b/src/models/outcome_data.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/outcomes_data.rs b/src/models/outcomes_data.rs index dda8953..436d97d 100644 --- a/src/models/outcomes_data.rs +++ b/src/models/outcomes_data.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/platform_delivery_data.rs b/src/models/platform_delivery_data.rs index 36e066e..a245fb3 100644 --- a/src/models/platform_delivery_data.rs +++ b/src/models/platform_delivery_data.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/platform_delivery_data_email_all_of.rs b/src/models/platform_delivery_data_email_all_of.rs index f0756a0..fe704ae 100644 --- a/src/models/platform_delivery_data_email_all_of.rs +++ b/src/models/platform_delivery_data_email_all_of.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/platform_delivery_data_sms_all_of.rs b/src/models/platform_delivery_data_sms_all_of.rs index 8b1a6b5..e48c13d 100644 --- a/src/models/platform_delivery_data_sms_all_of.rs +++ b/src/models/platform_delivery_data_sms_all_of.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/properties_body.rs b/src/models/properties_body.rs index d18b3d3..f3cea58 100644 --- a/src/models/properties_body.rs +++ b/src/models/properties_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/properties_deltas.rs b/src/models/properties_deltas.rs index 0dc07fd..a069bcf 100644 --- a/src/models/properties_deltas.rs +++ b/src/models/properties_deltas.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/properties_object.rs b/src/models/properties_object.rs index 6c28236..51cf6a8 100644 --- a/src/models/properties_object.rs +++ b/src/models/properties_object.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/purchase.rs b/src/models/purchase.rs index 764c73f..af66174 100644 --- a/src/models/purchase.rs +++ b/src/models/purchase.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/rate_limit_error.rs b/src/models/rate_limit_error.rs index e8dd1cf..71ad5b2 100644 --- a/src/models/rate_limit_error.rs +++ b/src/models/rate_limit_error.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/segment.rs b/src/models/segment.rs index 6282a63..472943e 100644 --- a/src/models/segment.rs +++ b/src/models/segment.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/segment_data.rs b/src/models/segment_data.rs index 8fc0627..af49ff6 100644 --- a/src/models/segment_data.rs +++ b/src/models/segment_data.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/segment_notification_target.rs b/src/models/segment_notification_target.rs index edaa349..454d6a9 100644 --- a/src/models/segment_notification_target.rs +++ b/src/models/segment_notification_target.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/start_live_activity_request.rs b/src/models/start_live_activity_request.rs index 7d6f8fa..3a281be 100644 --- a/src/models/start_live_activity_request.rs +++ b/src/models/start_live_activity_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/start_live_activity_success_response.rs b/src/models/start_live_activity_success_response.rs index 4b82ae7..242177a 100644 --- a/src/models/start_live_activity_success_response.rs +++ b/src/models/start_live_activity_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/subscription.rs b/src/models/subscription.rs index 2ddb418..fafa1ac 100644 --- a/src/models/subscription.rs +++ b/src/models/subscription.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/subscription_body.rs b/src/models/subscription_body.rs index 7663573..61092bf 100644 --- a/src/models/subscription_body.rs +++ b/src/models/subscription_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/subscription_notification_target.rs b/src/models/subscription_notification_target.rs index 1da6c7e..55b78a5 100644 --- a/src/models/subscription_notification_target.rs +++ b/src/models/subscription_notification_target.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/template_resource.rs b/src/models/template_resource.rs index 57d7e58..c848b1f 100644 --- a/src/models/template_resource.rs +++ b/src/models/template_resource.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/templates_list_response.rs b/src/models/templates_list_response.rs index b5a8ed5..20a18ed 100644 --- a/src/models/templates_list_response.rs +++ b/src/models/templates_list_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/transfer_subscription_request_body.rs b/src/models/transfer_subscription_request_body.rs index 74039e1..0007cdd 100644 --- a/src/models/transfer_subscription_request_body.rs +++ b/src/models/transfer_subscription_request_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_api_key_request.rs b/src/models/update_api_key_request.rs index 60f7542..62d5e25 100644 --- a/src/models/update_api_key_request.rs +++ b/src/models/update_api_key_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_live_activity_request.rs b/src/models/update_live_activity_request.rs index d9393a1..17293e7 100644 --- a/src/models/update_live_activity_request.rs +++ b/src/models/update_live_activity_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_live_activity_success_response.rs b/src/models/update_live_activity_success_response.rs index 1f35ed6..1ce1968 100644 --- a/src/models/update_live_activity_success_response.rs +++ b/src/models/update_live_activity_success_response.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_template_request.rs b/src/models/update_template_request.rs index 904a86a..a7365ad 100644 --- a/src/models/update_template_request.rs +++ b/src/models/update_template_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -18,6 +18,10 @@ pub struct UpdateTemplateRequest { pub name: Option, #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] pub contents: Option>, + #[serde(rename = "headings", skip_serializing_if = "Option::is_none")] + pub headings: Option>, + #[serde(rename = "subtitle", skip_serializing_if = "Option::is_none")] + pub subtitle: Option>, /// Set true for an Email template. #[serde(rename = "isEmail", skip_serializing_if = "Option::is_none")] pub is_email: Option, @@ -40,6 +44,8 @@ impl UpdateTemplateRequest { UpdateTemplateRequest { name: None, contents: None, + headings: None, + subtitle: None, is_email: None, email_subject: None, email_body: None, diff --git a/src/models/update_user_request.rs b/src/models/update_user_request.rs index b5d8154..a77e165 100644 --- a/src/models/update_user_request.rs +++ b/src/models/update_user_request.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/user.rs b/src/models/user.rs index e73a2e4..5a02715 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/user_identity_body.rs b/src/models/user_identity_body.rs index 7f868cd..3064c47 100644 --- a/src/models/user_identity_body.rs +++ b/src/models/user_identity_body.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/web_button.rs b/src/models/web_button.rs index 29c9cc0..370a724 100644 --- a/src/models/web_button.rs +++ b/src/models/web_button.rs @@ -3,7 +3,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.3.0 + * The version of the OpenAPI document: 5.4.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */