diff --git a/Cargo.toml b/Cargo.toml index a2dc9e9..8083ee0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "onesignal-rust-api" -version = "5.13.0" +version = "5.14.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 b346873..4127bc9 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,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.13.0 -- Package version: 5.13.0 +- API version: 5.14.0 +- Package version: 5.14.0 ## Installation Add to `Cargo.toml` under `[dependencies]`: ```toml -onesignal-rust-api = "5.13.0" +onesignal-rust-api = "5.14.0" ``` ## Configuration diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md index b188ef1..0168068 100644 --- a/docs/BasicNotification.md +++ b/docs/BasicNotification.md @@ -103,7 +103,7 @@ Name | Type | Description | Notes **summary_arg_count** | Option<**i32**> | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional] **ios_relevance_score** | Option<**f32**> | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional] **ios_interruption_level** | Option<**String**> | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional] -**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] +**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] **email_body** | Option<**String**> | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | Option<**String**> | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | Option<**String**> | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] @@ -113,6 +113,8 @@ Name | Type | Description | Notes **include_unsubscribed** | Option<**bool**> | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | Option<**Vec**> | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **email_sender_domain** | Option<**String**> | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] +**kind** | Option<**String**> | Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. | [optional] +**email_warm_up** | Option<[**crate::models::EmailWarmUpRequest**](EmailWarmUpRequest.md)> | | [optional] **sms_from** | Option<**String**> | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | Option<**Vec**> | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | Option<[**Vec**](FilterExpression.md)> | | [optional] diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md index 6a37a2c..ff0da8b 100644 --- a/docs/BasicNotificationAllOf.md +++ b/docs/BasicNotificationAllOf.md @@ -89,7 +89,7 @@ Name | Type | Description | Notes **summary_arg_count** | Option<**i32**> | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional] **ios_relevance_score** | Option<**f32**> | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional] **ios_interruption_level** | Option<**String**> | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional] -**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] +**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] **email_body** | Option<**String**> | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | Option<**String**> | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | Option<**String**> | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] @@ -99,6 +99,8 @@ Name | Type | Description | Notes **include_unsubscribed** | Option<**bool**> | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | Option<**Vec**> | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **email_sender_domain** | Option<**String**> | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] +**kind** | Option<**String**> | Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. | [optional] +**email_warm_up** | Option<[**crate::models::EmailWarmUpRequest**](EmailWarmUpRequest.md)> | | [optional] **sms_from** | Option<**String**> | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | Option<**Vec**> | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | Option<[**Vec**](FilterExpression.md)> | | [optional] diff --git a/docs/EmailWarmUp.md b/docs/EmailWarmUp.md new file mode 100644 index 0000000..ab91ecb --- /dev/null +++ b/docs/EmailWarmUp.md @@ -0,0 +1,14 @@ +# EmailWarmUp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stages** | Option<[**Vec**](EmailWarmUpStage.md)> | The campaign's sending schedule, stage by stage. | [optional] +**strategy** | Option<**String**> | How the stage schedule was produced: * `recommended` - OneSignal generated (and may still adjust) the schedule based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages were provided as-is in the create request. | [optional] +**status** | Option<**String**> | Current status of the campaign: * `initializing` - The stages have been submitted and the schedule is being set up. * `draft` - The campaign has been created but has not started sending. * `active` - The campaign is currently working through its stages. * `finished` - All stages have completed. * `canceled` - The campaign was canceled before finishing. | [optional] +**is_live** | Option<**bool**> | Whether the campaign is currently live (actively sending). | [optional] + +[[Back to API list]](https://github.com/OneSignal/onesignal-rust-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-rust-api) + + diff --git a/docs/EmailWarmUpRequest.md b/docs/EmailWarmUpRequest.md new file mode 100644 index 0000000..ec30037 --- /dev/null +++ b/docs/EmailWarmUpRequest.md @@ -0,0 +1,12 @@ +# EmailWarmUpRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stages** | [**Vec**](EmailWarmUpStage.md) | Required. The ordered stages that make up the campaign's sending schedule. | +**strategy** | Option<**String**> | How the stage schedule should be treated: * `recommended` - (Default) OneSignal may adjust the provided stages based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages provided are sent as-is. | [optional] + +[[Back to API list]](https://github.com/OneSignal/onesignal-rust-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-rust-api) + + diff --git a/docs/EmailWarmUpStage.md b/docs/EmailWarmUpStage.md new file mode 100644 index 0000000..34c5fa6 --- /dev/null +++ b/docs/EmailWarmUpStage.md @@ -0,0 +1,14 @@ +# EmailWarmUpStage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | **String** | ISO 8601 timestamp for the start of this stage. Sending for this stage will not begin before this time. | +**end** | **String** | ISO 8601 timestamp for the end of this stage. This stage's quota is expected to be sent by this time. | +**quota** | **i32** | Number of emails to send during this stage. | +**acked** | Option<**bool**> | Whether this stage has been picked up and acknowledged by the warm-up scheduler. Not accepted on create. This is only present when reading back a campaign. | [optional][readonly] + +[[Back to API list]](https://github.com/OneSignal/onesignal-rust-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-rust-api) + + diff --git a/docs/Notification.md b/docs/Notification.md index 96ca4ae..b0c5da8 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -103,7 +103,7 @@ Name | Type | Description | Notes **summary_arg_count** | Option<**i32**> | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional] **ios_relevance_score** | Option<**f32**> | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional] **ios_interruption_level** | Option<**String**> | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional] -**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] +**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] **email_body** | Option<**String**> | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | Option<**String**> | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | Option<**String**> | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] @@ -113,6 +113,8 @@ Name | Type | Description | Notes **include_unsubscribed** | Option<**bool**> | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | Option<**Vec**> | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **email_sender_domain** | Option<**String**> | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] +**kind** | Option<**String**> | Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. | [optional] +**email_warm_up** | Option<[**crate::models::EmailWarmUpRequest**](EmailWarmUpRequest.md)> | | [optional] **sms_from** | Option<**String**> | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | Option<**Vec**> | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | Option<[**Vec**](FilterExpression.md)> | | [optional] diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md index ead0132..eb31843 100644 --- a/docs/NotificationWithMeta.md +++ b/docs/NotificationWithMeta.md @@ -103,7 +103,7 @@ Name | Type | Description | Notes **summary_arg_count** | Option<**i32**> | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional] **ios_relevance_score** | Option<**f32**> | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional] **ios_interruption_level** | Option<**String**> | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional] -**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] +**email_subject** | Option<**String**> | Channel: Email Required. The subject of the email. | [optional] **email_body** | Option<**String**> | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | Option<**String**> | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | Option<**String**> | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] @@ -113,6 +113,8 @@ Name | Type | Description | Notes **include_unsubscribed** | Option<**bool**> | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | Option<**Vec**> | BCC recipients that were set on this email notification. | [optional] **email_sender_domain** | Option<**String**> | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] +**kind** | Option<**String**> | Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. | [optional] +**email_warm_up** | Option<[**crate::models::EmailWarmUp**](EmailWarmUp.md)> | | [optional] **sms_from** | Option<**String**> | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | Option<**Vec**> | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | Option<[**Vec**](FilterExpression.md)> | | [optional] diff --git a/docs/NotificationWithMetaAllOf.md b/docs/NotificationWithMetaAllOf.md index 5069117..0948532 100644 --- a/docs/NotificationWithMetaAllOf.md +++ b/docs/NotificationWithMetaAllOf.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **canceled** | Option<**bool**> | Indicates whether the notification was canceled before it could be sent. | [optional] **email_bcc** | Option<**Vec**> | BCC recipients that were set on this email notification. | [optional] **bcc_sent** | Option<**i32**> | Number of BCC copies successfully sent for this notification. | [optional] +**email_warm_up** | Option<[**crate::models::EmailWarmUp**](EmailWarmUp.md)> | | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-rust-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-rust-api) diff --git a/src/apis/configuration.rs b/src/apis/configuration.rs index 588ba4c..bd45a32 100644 --- a/src/apis/configuration.rs +++ b/src/apis/configuration.rs @@ -44,7 +44,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "https://api.onesignal.com".to_owned(), - user_agent: Some("OpenAPI-Generator/5.13.0/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/5.14.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 b8c6da2..eaa6337 100644 --- a/src/apis/default_api.rs +++ b/src/apis/default_api.rs @@ -605,7 +605,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -641,7 +641,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -677,7 +677,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -713,7 +713,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -749,7 +749,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -785,7 +785,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -821,7 +821,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -857,7 +857,7 @@ pub async fn create_journey(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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -893,7 +893,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -929,7 +929,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -965,7 +965,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1001,7 +1001,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1037,7 +1037,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1073,7 +1073,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1108,7 +1108,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1143,7 +1143,7 @@ pub async fn delete_journey(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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1178,7 +1178,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1213,7 +1213,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1249,7 +1249,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1284,7 +1284,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1320,7 +1320,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1355,7 +1355,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1391,7 +1391,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1426,7 +1426,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1461,7 +1461,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1496,7 +1496,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1532,7 +1532,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1567,7 +1567,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1616,7 +1616,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1664,7 +1664,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1702,7 +1702,7 @@ pub async fn get_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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1743,7 +1743,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1778,7 +1778,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1867,7 +1867,7 @@ pub async fn list_audit_logs(configuration: &configuration::Configuration, organ } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1902,7 +1902,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1937,7 +1937,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1973,7 +1973,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2010,7 +2010,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2045,7 +2045,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2081,7 +2081,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2117,7 +2117,7 @@ pub async fn update_journey(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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2153,7 +2153,7 @@ pub async fn update_journey_node(configuration: &configuration::Configuration, a } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2189,7 +2189,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2225,7 +2225,7 @@ pub async fn update_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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2261,7 +2261,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2297,7 +2297,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2334,7 +2334,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2370,7 +2370,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2406,7 +2406,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2441,7 +2441,7 @@ pub async fn view_journey(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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2476,7 +2476,7 @@ pub async fn view_journey_stats(configuration: &configuration::Configuration, ap } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2517,7 +2517,7 @@ pub async fn view_journeys(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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2553,7 +2553,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2598,7 +2598,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.13.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.14.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/basic_notification.rs b/src/models/basic_notification.rs index 963b625..6cc415e 100644 --- a/src/models/basic_notification.rs +++ b/src/models/basic_notification.rs @@ -301,7 +301,7 @@ pub struct BasicNotification { /// Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. #[serde(rename = "ios_interruption_level", skip_serializing_if = "Option::is_none")] pub ios_interruption_level: Option, - /// Channel: Email Required. The subject of the email. + /// Channel: Email Required. The subject of the email. #[serde(rename = "email_subject", skip_serializing_if = "Option::is_none")] pub email_subject: Option, /// Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. @@ -331,6 +331,11 @@ pub struct BasicNotification { /// Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. #[serde(rename = "email_sender_domain", skip_serializing_if = "Option::is_none")] pub email_sender_domain: Option, + /// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "email_warm_up", skip_serializing_if = "Option::is_none")] + pub email_warm_up: Option>, /// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. #[serde(rename = "sms_from", skip_serializing_if = "Option::is_none")] pub sms_from: Option, @@ -471,6 +476,8 @@ impl BasicNotification { include_unsubscribed: None, email_bcc: None, email_sender_domain: None, + kind: None, + email_warm_up: None, sms_from: None, sms_media_urls: None, filters: None, @@ -514,6 +521,18 @@ impl Default for AggregationType { Self::Sum } } +/// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum KindType { + #[serde(rename = "warmup")] + Warmup, +} + +impl Default for KindType { + fn default() -> KindType { + Self::Warmup + } +} /// Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum HuaweiCategoryType { diff --git a/src/models/basic_notification_all_of.rs b/src/models/basic_notification_all_of.rs index 94c1c44..0928fd6 100644 --- a/src/models/basic_notification_all_of.rs +++ b/src/models/basic_notification_all_of.rs @@ -260,7 +260,7 @@ pub struct BasicNotificationAllOf { /// Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. #[serde(rename = "ios_interruption_level", skip_serializing_if = "Option::is_none")] pub ios_interruption_level: Option, - /// Channel: Email Required. The subject of the email. + /// Channel: Email Required. The subject of the email. #[serde(rename = "email_subject", skip_serializing_if = "Option::is_none")] pub email_subject: Option, /// Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. @@ -290,6 +290,11 @@ pub struct BasicNotificationAllOf { /// Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. #[serde(rename = "email_sender_domain", skip_serializing_if = "Option::is_none")] pub email_sender_domain: Option, + /// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "email_warm_up", skip_serializing_if = "Option::is_none")] + pub email_warm_up: Option>, /// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. #[serde(rename = "sms_from", skip_serializing_if = "Option::is_none")] pub sms_from: Option, @@ -416,6 +421,8 @@ impl BasicNotificationAllOf { include_unsubscribed: None, email_bcc: None, email_sender_domain: None, + kind: None, + email_warm_up: None, sms_from: None, sms_media_urls: None, filters: None, @@ -443,6 +450,18 @@ impl Default for AggregationType { Self::Sum } } +/// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum KindType { + #[serde(rename = "warmup")] + Warmup, +} + +impl Default for KindType { + fn default() -> KindType { + Self::Warmup + } +} /// Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum HuaweiCategoryType { diff --git a/src/models/email_warm_up.rs b/src/models/email_warm_up.rs new file mode 100644 index 0000000..3e44087 --- /dev/null +++ b/src/models/email_warm_up.rs @@ -0,0 +1,76 @@ +/* + * OneSignal + * + * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com + * + * Contact: devrel@onesignal.com + * Generated by: https://openapi-generator.tech + */ + +/// EmailWarmUp : Channel: Email Present only when this notification's `kind` is \"warmup\". The Auto Warm Up campaign's stage schedule, scheduling strategy, and live status. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct EmailWarmUp { + /// The campaign's sending schedule, stage by stage. + #[serde(rename = "stages", skip_serializing_if = "Option::is_none")] + pub stages: Option>, + /// How the stage schedule was produced: * `recommended` - OneSignal generated (and may still adjust) the schedule based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages were provided as-is in the create request. + #[serde(rename = "strategy", skip_serializing_if = "Option::is_none")] + pub strategy: Option, + /// Current status of the campaign: * `initializing` - The stages have been submitted and the schedule is being set up. * `draft` - The campaign has been created but has not started sending. * `active` - The campaign is currently working through its stages. * `finished` - All stages have completed. * `canceled` - The campaign was canceled before finishing. + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// Whether the campaign is currently live (actively sending). + #[serde(rename = "is_live", skip_serializing_if = "Option::is_none")] + pub is_live: Option, +} + +impl EmailWarmUp { + /// Channel: Email Present only when this notification's `kind` is \"warmup\". The Auto Warm Up campaign's stage schedule, scheduling strategy, and live status. + pub fn new() -> EmailWarmUp { + EmailWarmUp { + stages: None, + strategy: None, + status: None, + is_live: None, + } + } +} + +/// How the stage schedule was produced: * `recommended` - OneSignal generated (and may still adjust) the schedule based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages were provided as-is in the create request. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StrategyType { + #[serde(rename = "recommended")] + Recommended, + #[serde(rename = "custom")] + Custom, +} + +impl Default for StrategyType { + fn default() -> StrategyType { + Self::Recommended + } +} +/// Current status of the campaign: * `initializing` - The stages have been submitted and the schedule is being set up. * `draft` - The campaign has been created but has not started sending. * `active` - The campaign is currently working through its stages. * `finished` - All stages have completed. * `canceled` - The campaign was canceled before finishing. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusType { + #[serde(rename = "initializing")] + Initializing, + #[serde(rename = "draft")] + Draft, + #[serde(rename = "active")] + Active, + #[serde(rename = "finished")] + Finished, + #[serde(rename = "canceled")] + Canceled, +} + +impl Default for StatusType { + fn default() -> StatusType { + Self::Initializing + } +} + diff --git a/src/models/email_warm_up_request.rs b/src/models/email_warm_up_request.rs new file mode 100644 index 0000000..95cfe82 --- /dev/null +++ b/src/models/email_warm_up_request.rs @@ -0,0 +1,48 @@ +/* + * OneSignal + * + * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com + * + * Contact: devrel@onesignal.com + * Generated by: https://openapi-generator.tech + */ + +/// EmailWarmUpRequest : Channel: Email Required when `kind` is \"warmup\". The gradual sending schedule for the Auto Warm Up campaign. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct EmailWarmUpRequest { + /// Required. The ordered stages that make up the campaign's sending schedule. + #[serde(rename = "stages")] + pub stages: Vec, + /// How the stage schedule should be treated: * `recommended` - (Default) OneSignal may adjust the provided stages based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages provided are sent as-is. + #[serde(rename = "strategy", skip_serializing_if = "Option::is_none")] + pub strategy: Option, +} + +impl EmailWarmUpRequest { + /// Channel: Email Required when `kind` is \"warmup\". The gradual sending schedule for the Auto Warm Up campaign. + pub fn new(stages: Vec) -> EmailWarmUpRequest { + EmailWarmUpRequest { + stages, + strategy: None, + } + } +} + +/// How the stage schedule should be treated: * `recommended` - (Default) OneSignal may adjust the provided stages based on past delivery volumes, scheduled Auto Warm Up emails, and the size of the current audience. * `custom` - The stages provided are sent as-is. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StrategyType { + #[serde(rename = "recommended")] + Recommended, + #[serde(rename = "custom")] + Custom, +} + +impl Default for StrategyType { + fn default() -> StrategyType { + Self::Recommended + } +} + diff --git a/src/models/email_warm_up_stage.rs b/src/models/email_warm_up_stage.rs new file mode 100644 index 0000000..b9a82bd --- /dev/null +++ b/src/models/email_warm_up_stage.rs @@ -0,0 +1,42 @@ +/* + * OneSignal + * + * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com + * + * Contact: devrel@onesignal.com + * Generated by: https://openapi-generator.tech + */ + +/// EmailWarmUpStage : Channel: Email One stage of an Auto Warm Up campaign's sending schedule. + + + +#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] +pub struct EmailWarmUpStage { + /// ISO 8601 timestamp for the start of this stage. Sending for this stage will not begin before this time. + #[serde(rename = "start")] + pub start: String, + /// ISO 8601 timestamp for the end of this stage. This stage's quota is expected to be sent by this time. + #[serde(rename = "end")] + pub end: String, + /// Number of emails to send during this stage. + #[serde(rename = "quota")] + pub quota: i32, + /// Whether this stage has been picked up and acknowledged by the warm-up scheduler. Not accepted on create. This is only present when reading back a campaign. + #[serde(rename = "acked", skip_serializing_if = "Option::is_none")] + pub acked: Option, +} + +impl EmailWarmUpStage { + /// Channel: Email One stage of an Auto Warm Up campaign's sending schedule. + pub fn new(start: String, end: String, quota: i32) -> EmailWarmUpStage { + EmailWarmUpStage { + start, + end, + quota, + acked: None, + } + } +} + + diff --git a/src/models/mod.rs b/src/models/mod.rs index b1d07e5..7950938 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -48,6 +48,12 @@ pub mod custom_events_request; pub use self::custom_events_request::CustomEventsRequest; pub mod delivery_data; pub use self::delivery_data::DeliveryData; +pub mod email_warm_up; +pub use self::email_warm_up::EmailWarmUp; +pub mod email_warm_up_request; +pub use self::email_warm_up_request::EmailWarmUpRequest; +pub mod email_warm_up_stage; +pub use self::email_warm_up_stage::EmailWarmUpStage; pub mod export_events_success_response; pub use self::export_events_success_response::ExportEventsSuccessResponse; pub mod export_subscriptions_request_body; diff --git a/src/models/notification.rs b/src/models/notification.rs index 430b41a..32e49fb 100644 --- a/src/models/notification.rs +++ b/src/models/notification.rs @@ -301,7 +301,7 @@ pub struct Notification { /// Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. #[serde(rename = "ios_interruption_level", skip_serializing_if = "Option::is_none")] pub ios_interruption_level: Option, - /// Channel: Email Required. The subject of the email. + /// Channel: Email Required. The subject of the email. #[serde(rename = "email_subject", skip_serializing_if = "Option::is_none")] pub email_subject: Option, /// Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. @@ -331,6 +331,11 @@ pub struct Notification { /// Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. #[serde(rename = "email_sender_domain", skip_serializing_if = "Option::is_none")] pub email_sender_domain: Option, + /// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "email_warm_up", skip_serializing_if = "Option::is_none")] + pub email_warm_up: Option>, /// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. #[serde(rename = "sms_from", skip_serializing_if = "Option::is_none")] pub sms_from: Option, @@ -474,6 +479,8 @@ impl Notification { include_unsubscribed: None, email_bcc: None, email_sender_domain: None, + kind: None, + email_warm_up: None, sms_from: None, sms_media_urls: None, filters: None, @@ -518,6 +525,18 @@ impl Default for AggregationType { Self::Sum } } +/// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum KindType { + #[serde(rename = "warmup")] + Warmup, +} + +impl Default for KindType { + fn default() -> KindType { + Self::Warmup + } +} /// Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum HuaweiCategoryType { diff --git a/src/models/notification_with_meta.rs b/src/models/notification_with_meta.rs index 9256416..fd419ec 100644 --- a/src/models/notification_with_meta.rs +++ b/src/models/notification_with_meta.rs @@ -301,7 +301,7 @@ pub struct NotificationWithMeta { /// Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. #[serde(rename = "ios_interruption_level", skip_serializing_if = "Option::is_none")] pub ios_interruption_level: Option, - /// Channel: Email Required. The subject of the email. + /// Channel: Email Required. The subject of the email. #[serde(rename = "email_subject", skip_serializing_if = "Option::is_none")] pub email_subject: Option, /// Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. @@ -331,6 +331,11 @@ pub struct NotificationWithMeta { /// Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. #[serde(rename = "email_sender_domain", skip_serializing_if = "Option::is_none")] pub email_sender_domain: Option, + /// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. + #[serde(rename = "kind", skip_serializing_if = "Option::is_none")] + pub kind: Option, + #[serde(rename = "email_warm_up", skip_serializing_if = "Option::is_none")] + pub email_warm_up: Option>, /// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. #[serde(rename = "sms_from", skip_serializing_if = "Option::is_none")] pub sms_from: Option, @@ -508,6 +513,8 @@ impl NotificationWithMeta { include_unsubscribed: None, email_bcc: None, email_sender_domain: None, + kind: None, + email_warm_up: None, sms_from: None, sms_media_urls: None, filters: None, @@ -564,6 +571,18 @@ impl Default for AggregationType { Self::Sum } } +/// Channel: Email Set to \"warmup\" to send this as an Auto Warm Up campaign: a single campaign delivered gradually to your audience over several days, so you don't have to pace sends manually. OneSignal generates a sending schedule based on your past delivery volumes, scheduled Auto Warm Up emails, and the size of your current audience. When set, `email_warm_up` is required and describes the campaign's stages and (optionally) its scheduling strategy. `send_after` cannot be combined with `kind: \"warmup\"`. The campaign will be scheduled to begin at its first stage's `start` time. Only supported for Email notifications. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum KindType { + #[serde(rename = "warmup")] + Warmup, +} + +impl Default for KindType { + fn default() -> KindType { + Self::Warmup + } +} /// Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum HuaweiCategoryType { diff --git a/src/models/notification_with_meta_all_of.rs b/src/models/notification_with_meta_all_of.rs index 8e756f4..05083d2 100644 --- a/src/models/notification_with_meta_all_of.rs +++ b/src/models/notification_with_meta_all_of.rs @@ -53,6 +53,8 @@ pub struct NotificationWithMetaAllOf { /// Number of BCC copies successfully sent for this notification. #[serde(rename = "bcc_sent", skip_serializing_if = "Option::is_none")] pub bcc_sent: Option, + #[serde(rename = "email_warm_up", skip_serializing_if = "Option::is_none")] + pub email_warm_up: Option>, } impl NotificationWithMetaAllOf { @@ -72,6 +74,7 @@ impl NotificationWithMetaAllOf { canceled: None, email_bcc: None, bcc_sent: None, + email_warm_up: None, } } }