Skip to content

Commit

Permalink
Merge pull request #17 from OneSignal/api
Browse files Browse the repository at this point in the history
Add v2.1.0 package updates
  • Loading branch information
sherwinski authored Jan 22, 2025
2 parents 319980e + f517c12 commit b0a64d8
Show file tree
Hide file tree
Showing 76 changed files with 121 additions and 118 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onesignal-rust-api"
version = "2.0.2"
version = "2.1.0"
authors = ["[email protected]"]
edition = "2018"
description = "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ For more information, please visit [https://onesignal.com](https://onesignal.com

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 1.2.2
- Package version: 2.0.2
- API version: 1.3.0
- Package version: 2.1.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
- GitHub repository: [https://github.com/onesignal/onesignal-rust-api](https://github.com/onesignal/onesignal-rust-api)

Expand Down Expand Up @@ -638,7 +638,7 @@ let fetch_iams_response = apis::default_api::get_eligible_iams(&configuration, A

## Documentation for API Endpoints

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
4 changes: 2 additions & 2 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# \DefaultApi

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down Expand Up @@ -440,7 +440,7 @@ Name | Type | Description | Required | Notes

### Authorization

No authorization required
[app_key](../README.md#app_key)

### HTTP request headers

Expand Down
6 changes: 3 additions & 3 deletions src/apis/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down Expand Up @@ -44,8 +44,8 @@ impl Configuration {
impl Default for Configuration {
fn default() -> Self {
Configuration {
base_path: "https://onesignal.com/api/v1".to_owned(),
user_agent: Some("OpenAPI-Generator/1.2.2/rust".to_owned()),
base_path: "https://api.onesignal.com".to_owned(),
user_agent: Some("OpenAPI-Generator/1.3.0/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
Expand Down
79 changes: 41 additions & 38 deletions src/apis/default_api.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/models/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/basic_notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/basic_notification_all_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/begin_live_activity_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/cancel_notification_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_notification_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_player_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_segment_conflict_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_segment_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_subscription_request_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_user_conflict_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_user_conflict_response_errors_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delete_player_not_found_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delete_player_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delete_segment_not_found_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delete_segment_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delivery_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_events_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_players_request_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_players_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/filter_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/generic_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/generic_error_errors_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/get_notification_request_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/inline_response_200.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/inline_response_200_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/inline_response_201.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/inline_response_202.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/invalid_identifier_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification200_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_all_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_history_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
*/
Expand Down
Loading

0 comments on commit b0a64d8

Please sign in to comment.