diff --git a/Cargo.toml b/Cargo.toml index b960f7c..0885a3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "onesignal-rust-api" -version = "5.7.0" +version = "5.8.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 bf0a870..7537425 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.7.0 -- Package version: 5.7.0 +- API version: 5.8.0 +- Package version: 5.8.0 ## Installation Add to `Cargo.toml` under `[dependencies]`: ```toml -onesignal-rust-api = "5.7.0" +onesignal-rust-api = "5.8.0" ``` ## Configuration diff --git a/docs/CreateNotificationSuccessResponse.md b/docs/CreateNotificationSuccessResponse.md index 9aa73f9..adaa2ca 100644 --- a/docs/CreateNotificationSuccessResponse.md +++ b/docs/CreateNotificationSuccessResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | Option<**String**> | Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). | [optional] +**id** | Option<**String**> | Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). All OneSignal server SDKs expose message-sent / message-not-sent narrowing helpers (named idiomatically per language — e.g. `isMessageSent`, `is_message_sent`, `message_sent?`); prefer them over comparing `id` directly. | [optional] **external_id** | Option<**String**> | Optional correlation / idempotency-related value from the API response. This is not the end-user External ID used for targeting recipients (that lives under `include_aliases.external_id`). | [optional] **errors** | Option<[**serde_json::Value**](.md)> | Polymorphic field: may be an array of human-readable strings and/or an object (for example with `invalid_aliases`, `invalid_external_user_ids`, or `invalid_player_ids`) depending on the API response; HTTP may still be 200 with partial success. Typed SDKs model this loosely so both shapes deserialize. | [optional] diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 8918dfa..6a04c5c 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -1768,7 +1768,7 @@ Name | Type | Description | Required | Notes ## get_notifications -> crate::models::NotificationSlice get_notifications(app_id, limit, offset, kind) +> crate::models::NotificationSlice get_notifications(app_id, limit, offset, kind, time_offset) View notifications View the details of multiple notifications @@ -1791,8 +1791,9 @@ async fn main() { let limit: Option = None; let offset: Option = None; let kind: Option = None; + let time_offset: Option<&str> = None; - match default_api::get_notifications(&configuration, app_id, limit, offset, kind).await { + match default_api::get_notifications(&configuration, app_id, limit, offset, kind, time_offset).await { Ok(resp) => println!("{:?}", resp), Err(e @ onesignal_rust_api::apis::Error::ResponseError(_)) => { // `e.error_messages()` flattens any error-envelope shape to a Vec; @@ -1813,6 +1814,7 @@ Name | Type | Description | Required | Notes **limit** | Option<**i32**> | How many notifications to return. Max is 50. Default is 50. | | **offset** | Option<**i32**> | Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. | | **kind** | Option<**i32**> | Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only | | +**time_offset** | Option<**String**> | Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. | | ### Return type diff --git a/docs/NotificationSlice.md b/docs/NotificationSlice.md index 81d0ce6..c3f6fb9 100644 --- a/docs/NotificationSlice.md +++ b/docs/NotificationSlice.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **total_count** | Option<**i32**> | | [optional] **offset** | Option<**i32**> | | [optional] **limit** | Option<**i32**> | | [optional] +**time_offset** | Option<**String**> | The time_offset cursor specified in the request, if any. | [optional] +**next_time_offset** | Option<**String**> | An opaque Base64 cursor token representing the next page of messages to fetch. Present when time_offset was provided in the request. Pass this value as time_offset on the next request to continue paginating. | [optional] **notifications** | Option<[**Vec**](NotificationWithMeta.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 73477cb..fa62eec 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.7.0 + * The version of the OpenAPI document: 5.8.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.7.0/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/5.8.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 7f8db5a..86b53ac 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -22,6 +22,7 @@ pub enum CancelNotificationError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -30,6 +31,7 @@ pub enum CancelNotificationError { #[serde(untagged)] pub enum CopyTemplateToAppError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -41,6 +43,7 @@ pub enum CreateAliasError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -52,6 +55,7 @@ pub enum CreateAliasBySubscriptionError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -60,6 +64,7 @@ pub enum CreateAliasBySubscriptionError { #[serde(untagged)] pub enum CreateApiKeyError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -69,6 +74,7 @@ pub enum CreateApiKeyError { pub enum CreateAppError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -79,6 +85,7 @@ pub enum CreateCustomEventsError { Status400(crate::models::GenericError), Status401(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -88,6 +95,7 @@ pub enum CreateCustomEventsError { pub enum CreateNotificationError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -98,6 +106,7 @@ pub enum CreateSegmentError { Status400(crate::models::GenericError), Status409(crate::models::CreateSegmentConflictResponse), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -109,6 +118,7 @@ pub enum CreateSubscriptionError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -118,6 +128,7 @@ pub enum CreateSubscriptionError { pub enum CreateTemplateError { Status400(crate::models::GenericError), Status422(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -128,6 +139,7 @@ pub enum CreateUserError { Status400(crate::models::GenericError), Status409(crate::models::CreateUserConflictResponse), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -139,6 +151,7 @@ pub enum DeleteAliasError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -147,6 +160,7 @@ pub enum DeleteAliasError { #[serde(untagged)] pub enum DeleteApiKeyError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -157,6 +171,7 @@ pub enum DeleteSegmentError { Status400(crate::models::GenericError), Status404(crate::models::GenericSuccessBoolResponse), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -168,6 +183,7 @@ pub enum DeleteSubscriptionError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -177,6 +193,7 @@ pub enum DeleteSubscriptionError { pub enum DeleteTemplateError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -187,6 +204,7 @@ pub enum DeleteUserError { Status400(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -197,6 +215,7 @@ pub enum ExportEventsError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -206,6 +225,7 @@ pub enum ExportEventsError { pub enum ExportSubscriptionsError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -216,6 +236,7 @@ pub enum GetAliasesError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -225,6 +246,7 @@ pub enum GetAliasesError { pub enum GetAliasesBySubscriptionError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -234,6 +256,7 @@ pub enum GetAliasesBySubscriptionError { pub enum GetAppError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -243,6 +266,7 @@ pub enum GetAppError { pub enum GetAppsError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -253,6 +277,7 @@ pub enum GetNotificationError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -263,6 +288,7 @@ pub enum GetNotificationHistoryError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -272,6 +298,7 @@ pub enum GetNotificationHistoryError { pub enum GetNotificationsError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -281,6 +308,7 @@ pub enum GetNotificationsError { pub enum GetOutcomesError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -290,6 +318,7 @@ pub enum GetOutcomesError { pub enum GetSegmentsError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -300,6 +329,7 @@ pub enum GetUserError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -308,6 +338,7 @@ pub enum GetUserError { #[serde(untagged)] pub enum RotateApiKeyError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -317,6 +348,7 @@ pub enum RotateApiKeyError { pub enum StartLiveActivityError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -328,6 +360,7 @@ pub enum TransferSubscriptionError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -337,6 +370,7 @@ pub enum TransferSubscriptionError { pub enum UnsubscribeEmailWithTokenError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -345,6 +379,7 @@ pub enum UnsubscribeEmailWithTokenError { #[serde(untagged)] pub enum UpdateApiKeyError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -354,6 +389,7 @@ pub enum UpdateApiKeyError { pub enum UpdateAppError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -363,6 +399,7 @@ pub enum UpdateAppError { pub enum UpdateLiveActivityError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -374,6 +411,7 @@ pub enum UpdateSubscriptionError { Status404(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -383,6 +421,7 @@ pub enum UpdateSubscriptionError { pub enum UpdateSubscriptionByTokenError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -391,6 +430,7 @@ pub enum UpdateSubscriptionByTokenError { #[serde(untagged)] pub enum UpdateTemplateError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -401,6 +441,7 @@ pub enum UpdateUserError { Status400(crate::models::GenericError), Status409(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -409,6 +450,7 @@ pub enum UpdateUserError { #[serde(untagged)] pub enum ViewApiKeysError { Status400(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -418,6 +460,7 @@ pub enum ViewApiKeysError { pub enum ViewTemplateError { Status400(crate::models::GenericError), Status404(crate::models::GenericError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -427,6 +470,7 @@ pub enum ViewTemplateError { pub enum ViewTemplatesError { Status400(crate::models::GenericError), Status429(crate::models::RateLimitError), + DefaultResponse(crate::models::GenericError), UnknownValue(serde_json::Value), } @@ -446,7 +490,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -482,7 +526,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -518,7 +562,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -554,7 +598,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -590,7 +634,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -626,7 +670,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -662,7 +706,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -698,7 +742,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -734,7 +778,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -770,7 +814,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -806,7 +850,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -842,7 +886,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -878,7 +922,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -913,7 +957,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -948,7 +992,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -983,7 +1027,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1019,7 +1063,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1054,7 +1098,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1090,7 +1134,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1125,7 +1169,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1161,7 +1205,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1196,7 +1240,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1231,7 +1275,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1266,7 +1310,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1302,7 +1346,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1337,7 +1381,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1360,7 +1404,7 @@ pub async fn get_notification_history(configuration: &configuration::Configurati } /// View the details of multiple notifications -pub async fn get_notifications(configuration: &configuration::Configuration, app_id: &str, limit: Option, offset: Option, kind: Option) -> Result> { +pub async fn get_notifications(configuration: &configuration::Configuration, app_id: &str, limit: Option, offset: Option, kind: Option, time_offset: Option<&str>) -> Result> { let configuration = configuration; let client = &configuration.client; @@ -1378,12 +1422,15 @@ pub async fn get_notifications(configuration: &configuration::Configuration, app if let Some(ref str) = kind { req_builder = req_builder.query(&[("kind", &str.to_string())]); } + if let Some(ref str) = time_offset { + req_builder = req_builder.query(&[("time_offset", &str.to_string())]); + } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } // Adds a telemetry header - req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1431,7 +1478,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1472,7 +1519,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1507,7 +1554,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1542,7 +1589,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1577,7 +1624,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1613,7 +1660,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1650,7 +1697,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1685,7 +1732,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1721,7 +1768,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1757,7 +1804,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1793,7 +1840,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1829,7 +1876,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1866,7 +1913,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1902,7 +1949,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1938,7 +1985,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.organization_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -1974,7 +2021,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.0"); if let Some(ref token) = configuration.rest_api_key_token { req_builder = req_builder.header("Authorization", format!("Key {}", token.to_owned())); @@ -2019,7 +2066,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.7.0"); + req_builder = req_builder.header("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-rust, version=5.8.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/helpers.rs b/src/helpers.rs index 303c7bb..4857610 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -170,6 +170,53 @@ async fn send_once( } } +/// The branch of a POST /notifications 200 response where a notification was +/// created (`id` is a non-empty string). Shares the +/// [`models::CreateNotificationSuccessResponse`] shape; see +/// [`models::CreateNotificationSuccessResponse::as_sent`]. +pub type MessageSent = models::CreateNotificationSuccessResponse; + +/// The branch of a POST /notifications 200 response where NO notification was +/// created (`id` is absent or empty); `errors` carries the reason. Shares the +/// [`models::CreateNotificationSuccessResponse`] shape; see +/// [`models::CreateNotificationSuccessResponse::as_not_sent`]. +pub type MessageNotSent = models::CreateNotificationSuccessResponse; + +impl models::CreateNotificationSuccessResponse { + /// Whether this is the [`MessageSent`] branch — a notification was created + /// (`id` is present and non-empty). Prefer this over inspecting `id` + /// directly. + pub fn is_message_sent(&self) -> bool { + self.id.as_deref().map_or(false, |id| !id.is_empty()) + } + + /// Whether this is the [`MessageNotSent`] branch — no notification was + /// created (`id` absent or empty); inspect `errors` for why. + pub fn is_message_not_sent(&self) -> bool { + !self.is_message_sent() + } + + /// Returns `Some(self)` viewed as a [`MessageSent`] when a notification was + /// created, otherwise `None`. + pub fn as_sent(&self) -> Option<&MessageSent> { + if self.is_message_sent() { + Some(self) + } else { + None + } + } + + /// Returns `Some(self)` viewed as a [`MessageNotSent`] when no notification + /// was created, otherwise `None`. + pub fn as_not_sent(&self) -> Option<&MessageNotSent> { + if self.is_message_not_sent() { + Some(self) + } else { + None + } + } +} + fn header_value(resp: &reqwest::Response, name: &str) -> Option { resp.headers() .get(name) diff --git a/src/models/api_key_token.rs b/src/models/api_key_token.rs index 15178bc..4e03d19 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.7.0 + * The version of the OpenAPI document: 5.8.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 b4d67ad..556ae75 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/app.rs b/src/models/app.rs index 75a5611..2badcaa 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.7.0 + * The version of the OpenAPI document: 5.8.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 0a4490f..56774f9 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.7.0 + * The version of the OpenAPI document: 5.8.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 888dbd9..1b8fc52 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.7.0 + * The version of the OpenAPI document: 5.8.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 19180f0..e40ccc9 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/button.rs b/src/models/button.rs index 462bffd..8123af0 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.7.0 + * The version of the OpenAPI document: 5.8.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 882b929..cdde4ad 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.7.0 + * The version of the OpenAPI document: 5.8.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 6037d5e..dbd39d1 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.7.0 + * The version of the OpenAPI document: 5.8.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 af71b03..ffc8ddd 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.7.0 + * The version of the OpenAPI document: 5.8.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 5873529..b95cf3f 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -13,7 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CreateNotificationSuccessResponse { - /// Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). + /// Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). All OneSignal server SDKs expose message-sent / message-not-sent narrowing helpers (named idiomatically per language — e.g. `isMessageSent`, `is_message_sent`, `message_sent?`); prefer them over comparing `id` directly. #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, /// Optional correlation / idempotency-related value from the API response. This is not the end-user External ID used for targeting recipients (that lives under `include_aliases.external_id`). diff --git a/src/models/create_segment_conflict_response.rs b/src/models/create_segment_conflict_response.rs index 1caa7c9..eeb455d 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.7.0 + * The version of the OpenAPI document: 5.8.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 5dfaded..3c974b4 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.7.0 + * The version of the OpenAPI document: 5.8.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 85d8e17..ce15d06 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/create_user_conflict_response.rs b/src/models/create_user_conflict_response.rs index 6b638ea..cb61f9f 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.7.0 + * The version of the OpenAPI document: 5.8.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 0c39dae..a0df0e8 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.7.0 + * The version of the OpenAPI document: 5.8.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 545300b..54046ca 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.7.0 + * The version of the OpenAPI document: 5.8.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 13ad2e6..e4c6f99 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.7.0 + * The version of the OpenAPI document: 5.8.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 c90e018..deace92 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.7.0 + * The version of the OpenAPI document: 5.8.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 897e3d5..1bbf1df 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.7.0 + * The version of the OpenAPI document: 5.8.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 e4d8df6..92dedf0 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.7.0 + * The version of the OpenAPI document: 5.8.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 94addf3..04e78a9 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.7.0 + * The version of the OpenAPI document: 5.8.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 04c39cc..1f06ba9 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/filter.rs b/src/models/filter.rs index 8e79be7..945dba9 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.7.0 + * The version of the OpenAPI document: 5.8.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 c903b09..998719a 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.7.0 + * The version of the OpenAPI document: 5.8.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 566c969..b9efc6c 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.7.0 + * The version of the OpenAPI document: 5.8.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 72235cf..49fcb46 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.7.0 + * The version of the OpenAPI document: 5.8.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 b442787..19f186e 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.7.0 + * The version of the OpenAPI document: 5.8.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 8d9c995..4fb86aa 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.7.0 + * The version of the OpenAPI document: 5.8.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 b111235..39879f2 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/notification.rs b/src/models/notification.rs index 5f54134..d144428 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.7.0 + * The version of the OpenAPI document: 5.8.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 0b775ba..a4110b2 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.7.0 + * The version of the OpenAPI document: 5.8.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 bab1d44..8b57ee9 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.7.0 + * The version of the OpenAPI document: 5.8.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 45516f7..0e4ac26 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ @@ -19,6 +19,12 @@ pub struct NotificationSlice { pub offset: Option, #[serde(rename = "limit", skip_serializing_if = "Option::is_none")] pub limit: Option, + /// The time_offset cursor specified in the request, if any. + #[serde(rename = "time_offset", skip_serializing_if = "Option::is_none")] + pub time_offset: Option, + /// An opaque Base64 cursor token representing the next page of messages to fetch. Present when time_offset was provided in the request. Pass this value as time_offset on the next request to continue paginating. + #[serde(rename = "next_time_offset", skip_serializing_if = "Option::is_none")] + pub next_time_offset: Option, #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")] pub notifications: Option>, } @@ -29,6 +35,8 @@ impl NotificationSlice { total_count: None, offset: None, limit: None, + time_offset: None, + next_time_offset: None, notifications: None, } } diff --git a/src/models/notification_target.rs b/src/models/notification_target.rs index 7e3f191..cda52ad 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.7.0 + * The version of the OpenAPI document: 5.8.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 30a6561..653d6d0 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.7.0 + * The version of the OpenAPI document: 5.8.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 0817793..26cf166 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/operator.rs b/src/models/operator.rs index 7e7fb18..6ccc423 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.7.0 + * The version of the OpenAPI document: 5.8.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 8d71e3e..20b4401 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.7.0 + * The version of the OpenAPI document: 5.8.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 9d87b6a..1133038 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.7.0 + * The version of the OpenAPI document: 5.8.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 9d08c7a..35da61a 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.7.0 + * The version of the OpenAPI document: 5.8.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 9c3d060..23f2b58 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.7.0 + * The version of the OpenAPI document: 5.8.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 c392598..db7a980 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.7.0 + * The version of the OpenAPI document: 5.8.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 8613200..5632879 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.7.0 + * The version of the OpenAPI document: 5.8.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 d69ee44..067046b 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.7.0 + * The version of the OpenAPI document: 5.8.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 146046b..ace59ef 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/purchase.rs b/src/models/purchase.rs index 340227d..6869b6a 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.7.0 + * The version of the OpenAPI document: 5.8.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 31b40a7..0a52105 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/segment.rs b/src/models/segment.rs index 4fa80af..dee1a80 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.7.0 + * The version of the OpenAPI document: 5.8.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 2db13a5..6907a71 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.7.0 + * The version of the OpenAPI document: 5.8.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 273ae6f..4d1b7b8 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.7.0 + * The version of the OpenAPI document: 5.8.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 800b3f6..e4aa6d9 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.7.0 + * The version of the OpenAPI document: 5.8.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 655db27..f69c629 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/subscription.rs b/src/models/subscription.rs index 77c4d52..b0581a2 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.7.0 + * The version of the OpenAPI document: 5.8.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 5d55595..1f99926 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.7.0 + * The version of the OpenAPI document: 5.8.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 508219c..9f2f7a8 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.7.0 + * The version of the OpenAPI document: 5.8.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 13030a2..8578250 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.7.0 + * The version of the OpenAPI document: 5.8.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 70af9ba..c5d90f6 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.7.0 + * The version of the OpenAPI document: 5.8.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 c947266..2a2fcd9 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.7.0 + * The version of the OpenAPI document: 5.8.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 08313b8..fa31f49 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.7.0 + * The version of the OpenAPI document: 5.8.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 6fbc310..92d9fbc 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.7.0 + * The version of the OpenAPI document: 5.8.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 ad036e5..15099f2 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.7.0 + * The version of the OpenAPI document: 5.8.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 cb6f347..9b987a5 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/update_user_request.rs b/src/models/update_user_request.rs index c60260e..a267b6c 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */ diff --git a/src/models/user.rs b/src/models/user.rs index f5f758c..69f5579 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.7.0 + * The version of the OpenAPI document: 5.8.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 2db71c5..9f23786 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.7.0 + * The version of the OpenAPI document: 5.8.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 a6dc154..d54557b 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech */