Skip to content

Commit 3539e32

Browse files
author
OneSignal
committed
feat: add v5.0.0-beta1 package updates
1 parent aab1c43 commit 3539e32

File tree

135 files changed

+1113
-2436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1113
-2436
lines changed

.github/ISSUE_TEMPLATE/ask-question.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🙋‍♂️ Ask a question
22
description: Tell us what's on your mind
3-
title: "[question]: "
4-
labels: ["triage"]
3+
title: "[Question]: "
4+
labels: ["Question"]
55
body:
66
- type: markdown
77
attributes:
@@ -22,4 +22,4 @@ body:
2222
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
2323
options:
2424
- label: I agree to follow this project's Code of Conduct
25-
required: true
25+
required: true

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🪳 Bug report
22
description: File a bug report
33
title: "[Bug]: "
4-
labels: ["bug", "triage"]
4+
labels: ["Bug"]
55
body:
66
- type: markdown
77
attributes:
@@ -48,4 +48,4 @@ body:
4848
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
4949
options:
5050
- label: I agree to follow this project's Code of Conduct
51-
required: true
51+
required: true

.github/ISSUE_TEMPLATE/general-feedback.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 📣 General feedback
22
description: Tell us what's on your mind
3-
title: "[Bug]: "
4-
labels: ["triage"]
3+
title: "[Feedback]: "
4+
labels: ["Feedback"]
55
body:
66
- type: markdown
77
attributes:
@@ -22,4 +22,4 @@ body:
2222
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
2323
options:
2424
- label: I agree to follow this project's Code of Conduct
25-
required: true
25+
required: true

.github/workflows/project.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Add issues to project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Add issue to project
13+
uses: actions/[email protected]
14+
with:
15+
# SDK Server Project
16+
project-url: https://github.com/orgs/OneSignal/projects/11
17+
github-token: ${{ secrets.GH_PROJECTS_TOKEN }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "onesignal-rust-api"
3-
version = "2.2.0"
3+
version = "5.0.0-beta1"
44
authors = ["[email protected]"]
55
edition = "2018"
66
description = "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com"

README.md

Lines changed: 31 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ For more information, please visit [https://onesignal.com](https://onesignal.com
88

99
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.
1010

11-
- API version: 1.4.0
12-
- Package version: 2.2.0
11+
- API version: 5.0.1
12+
- Package version: 5.0.0-beta1
1313
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
1414
- GitHub repository: [https://github.com/onesignal/onesignal-rust-api](https://github.com/onesignal/onesignal-rust-api)
1515

@@ -36,17 +36,17 @@ use onesignal::models::{App, FilterExpressions, Notification, Player, Segment, S
3636
### Define the constants. You can find all the values on the dashboard page of your app.
3737
```rust
3838
const APP_ID: &str = "<YOUR_APP_ID>";
39-
const REST_KEY_TOKEN: &str = "<YOUR_REST_API_KEY>"; // App REST API key required for most endpoints
40-
const ORG_KEY_TOKEN: &str = "<YOUR_ORGANIZATION_API_KEY>"; // Organization key is only required for creating new apps and other top-level endpoints
39+
const APP_KEY_TOKEN: &str = "<YOUR_APP_KEY_TOKEN>";
40+
const USER_KEY_TOKEN: &str = "<YOUR_USER_KEY_TOKEN>";
4141

4242
```
4343

4444
### Creating a configuration object:
4545
```rust
4646
fn create_configuration() -> Box<Configuration> {
4747
let mut configuration = apis::configuration::Configuration::new();
48-
configuration.app_key_token = Some(String::from(REST_KEY_TOKEN));
49-
configuration.user_key_token = Some(String::from(ORG_KEY_TOKEN));
48+
configuration.app_key_token = Some(String::from(APP_KEY_TOKEN));
49+
configuration.user_key_token = Some(String::from(USER_KEY_TOKEN));
5050
Box::new(configuration)
5151
}
5252
```
@@ -642,41 +642,34 @@ All URIs are relative to *https://api.onesignal.com*
642642

643643
Class | Method | HTTP request | Description
644644
------------ | ------------- | ------------- | -------------
645-
*DefaultApi* | [**begin_live_activity**](docs/DefaultApi.md#begin_live_activity) | **POST** /apps/{app_id}/live_activities/{activity_id}/token | Start Live Activity
646645
*DefaultApi* | [**cancel_notification**](docs/DefaultApi.md#cancel_notification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
646+
*DefaultApi* | [**create_alias**](docs/DefaultApi.md#create_alias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
647+
*DefaultApi* | [**create_alias_by_subscription**](docs/DefaultApi.md#create_alias_by_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
647648
*DefaultApi* | [**create_app**](docs/DefaultApi.md#create_app) | **POST** /apps | Create an app
648649
*DefaultApi* | [**create_notification**](docs/DefaultApi.md#create_notification) | **POST** /notifications | Create notification
649-
*DefaultApi* | [**create_player**](docs/DefaultApi.md#create_player) | **POST** /players | Add a device
650-
*DefaultApi* | [**create_segments**](docs/DefaultApi.md#create_segments) | **POST** /apps/{app_id}/segments | Create Segments
650+
*DefaultApi* | [**create_segment**](docs/DefaultApi.md#create_segment) | **POST** /apps/{app_id}/segments | Create Segment
651651
*DefaultApi* | [**create_subscription**](docs/DefaultApi.md#create_subscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
652652
*DefaultApi* | [**create_user**](docs/DefaultApi.md#create_user) | **POST** /apps/{app_id}/users |
653653
*DefaultApi* | [**delete_alias**](docs/DefaultApi.md#delete_alias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
654-
*DefaultApi* | [**delete_player**](docs/DefaultApi.md#delete_player) | **DELETE** /players/{player_id} | Delete a user record
655-
*DefaultApi* | [**delete_segments**](docs/DefaultApi.md#delete_segments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
654+
*DefaultApi* | [**delete_segment**](docs/DefaultApi.md#delete_segment) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segment
656655
*DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
657656
*DefaultApi* | [**delete_user**](docs/DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
658-
*DefaultApi* | [**end_live_activity**](docs/DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
659657
*DefaultApi* | [**export_events**](docs/DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
660-
*DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
661-
*DefaultApi* | [**fetch_aliases**](docs/DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
662-
*DefaultApi* | [**fetch_user**](docs/DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
663-
*DefaultApi* | [**fetch_user_identity**](docs/DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
658+
*DefaultApi* | [**export_subscriptions**](docs/DefaultApi.md#export_subscriptions) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions
659+
*DefaultApi* | [**get_aliases**](docs/DefaultApi.md#get_aliases) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
660+
*DefaultApi* | [**get_aliases_by_subscription**](docs/DefaultApi.md#get_aliases_by_subscription) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
664661
*DefaultApi* | [**get_app**](docs/DefaultApi.md#get_app) | **GET** /apps/{app_id} | View an app
665662
*DefaultApi* | [**get_apps**](docs/DefaultApi.md#get_apps) | **GET** /apps | View apps
666-
*DefaultApi* | [**get_eligible_iams**](docs/DefaultApi.md#get_eligible_iams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
667663
*DefaultApi* | [**get_notification**](docs/DefaultApi.md#get_notification) | **GET** /notifications/{notification_id} | View notification
668664
*DefaultApi* | [**get_notification_history**](docs/DefaultApi.md#get_notification_history) | **POST** /notifications/{notification_id}/history | Notification History
669665
*DefaultApi* | [**get_notifications**](docs/DefaultApi.md#get_notifications) | **GET** /notifications | View notifications
670666
*DefaultApi* | [**get_outcomes**](docs/DefaultApi.md#get_outcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
671-
*DefaultApi* | [**get_player**](docs/DefaultApi.md#get_player) | **GET** /players/{player_id} | View device
672-
*DefaultApi* | [**get_players**](docs/DefaultApi.md#get_players) | **GET** /players | View devices
673-
*DefaultApi* | [**identify_user_by_alias**](docs/DefaultApi.md#identify_user_by_alias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
674-
*DefaultApi* | [**identify_user_by_subscription_id**](docs/DefaultApi.md#identify_user_by_subscription_id) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
667+
*DefaultApi* | [**get_segments**](docs/DefaultApi.md#get_segments) | **GET** /apps/{app_id}/segments | Get Segments
668+
*DefaultApi* | [**get_user**](docs/DefaultApi.md#get_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
675669
*DefaultApi* | [**transfer_subscription**](docs/DefaultApi.md#transfer_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
670+
*DefaultApi* | [**unsubscribe_email_with_token**](docs/DefaultApi.md#unsubscribe_email_with_token) | **POST** /apps/{app_id}/notifications/{notification_id}/unsubscribe | Unsubscribe with token
676671
*DefaultApi* | [**update_app**](docs/DefaultApi.md#update_app) | **PUT** /apps/{app_id} | Update an app
677672
*DefaultApi* | [**update_live_activity**](docs/DefaultApi.md#update_live_activity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
678-
*DefaultApi* | [**update_player**](docs/DefaultApi.md#update_player) | **PUT** /players/{player_id} | Edit device
679-
*DefaultApi* | [**update_player_tags**](docs/DefaultApi.md#update_player_tags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
680673
*DefaultApi* | [**update_subscription**](docs/DefaultApi.md#update_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
681674
*DefaultApi* | [**update_user**](docs/DefaultApi.md#update_user) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
682675

@@ -687,37 +680,25 @@ Class | Method | HTTP request | Description
687680
- [BasicNotification](docs/BasicNotification.md)
688681
- [BasicNotificationAllOf](docs/BasicNotificationAllOf.md)
689682
- [BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md)
690-
- [BeginLiveActivityRequest](docs/BeginLiveActivityRequest.md)
691683
- [Button](docs/Button.md)
692-
- [CancelNotificationSuccessResponse](docs/CancelNotificationSuccessResponse.md)
693684
- [CreateNotificationSuccessResponse](docs/CreateNotificationSuccessResponse.md)
694-
- [CreatePlayerSuccessResponse](docs/CreatePlayerSuccessResponse.md)
695685
- [CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
696686
- [CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
697-
- [CreateSubscriptionRequestBody](docs/CreateSubscriptionRequestBody.md)
698687
- [CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
699688
- [CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
700689
- [CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
701-
- [DeletePlayerNotFoundResponse](docs/DeletePlayerNotFoundResponse.md)
702-
- [DeletePlayerSuccessResponse](docs/DeletePlayerSuccessResponse.md)
703-
- [DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
704-
- [DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md)
705690
- [DeliveryData](docs/DeliveryData.md)
706691
- [ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md)
707-
- [ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md)
708-
- [ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md)
692+
- [ExportSubscriptionsRequestBody](docs/ExportSubscriptionsRequestBody.md)
693+
- [ExportSubscriptionsSuccessResponse](docs/ExportSubscriptionsSuccessResponse.md)
709694
- [Filter](docs/Filter.md)
710-
- [FilterExpressions](docs/FilterExpressions.md)
695+
- [FilterExpression](docs/FilterExpression.md)
711696
- [GenericError](docs/GenericError.md)
712-
- [GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md)
713-
- [GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
714-
- [InlineResponse200](docs/InlineResponse200.md)
715-
- [InlineResponse2003](docs/InlineResponse2003.md)
716-
- [InlineResponse201](docs/InlineResponse201.md)
717-
- [InlineResponse202](docs/InlineResponse202.md)
718-
- [InvalidIdentifierError](docs/InvalidIdentifierError.md)
697+
- [GenericSuccessBoolResponse](docs/GenericSuccessBoolResponse.md)
698+
- [GetNotificationHistoryRequestBody](docs/GetNotificationHistoryRequestBody.md)
699+
- [GetSegmentsSuccessResponse](docs/GetSegmentsSuccessResponse.md)
700+
- [LanguageStringMap](docs/LanguageStringMap.md)
719701
- [Notification](docs/Notification.md)
720-
- [Notification200Errors](docs/Notification200Errors.md)
721702
- [NotificationAllOf](docs/NotificationAllOf.md)
722703
- [NotificationHistorySuccessResponse](docs/NotificationHistorySuccessResponse.md)
723704
- [NotificationSlice](docs/NotificationSlice.md)
@@ -730,30 +711,24 @@ Class | Method | HTTP request | Description
730711
- [PlatformDeliveryData](docs/PlatformDeliveryData.md)
731712
- [PlatformDeliveryDataEmailAllOf](docs/PlatformDeliveryDataEmailAllOf.md)
732713
- [PlatformDeliveryDataSmsAllOf](docs/PlatformDeliveryDataSmsAllOf.md)
733-
- [Player](docs/Player.md)
734-
- [PlayerNotificationTarget](docs/PlayerNotificationTarget.md)
735-
- [PlayerNotificationTargetIncludeAliases](docs/PlayerNotificationTargetIncludeAliases.md)
736-
- [PlayerSlice](docs/PlayerSlice.md)
714+
- [PropertiesBody](docs/PropertiesBody.md)
737715
- [PropertiesDeltas](docs/PropertiesDeltas.md)
738716
- [PropertiesObject](docs/PropertiesObject.md)
739717
- [Purchase](docs/Purchase.md)
740-
- [RateLimiterError](docs/RateLimiterError.md)
718+
- [RateLimitError](docs/RateLimitError.md)
741719
- [Segment](docs/Segment.md)
720+
- [SegmentData](docs/SegmentData.md)
742721
- [SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
743-
- [StringMap](docs/StringMap.md)
744-
- [SubscriptionObject](docs/SubscriptionObject.md)
722+
- [Subscription](docs/Subscription.md)
723+
- [SubscriptionBody](docs/SubscriptionBody.md)
724+
- [SubscriptionNotificationTarget](docs/SubscriptionNotificationTarget.md)
745725
- [TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
746726
- [UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
747727
- [UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
748-
- [UpdatePlayerSuccessResponse](docs/UpdatePlayerSuccessResponse.md)
749-
- [UpdatePlayerTagsRequestBody](docs/UpdatePlayerTagsRequestBody.md)
750-
- [UpdatePlayerTagsSuccessResponse](docs/UpdatePlayerTagsSuccessResponse.md)
751-
- [UpdateSubscriptionRequestBody](docs/UpdateSubscriptionRequestBody.md)
752728
- [UpdateUserRequest](docs/UpdateUserRequest.md)
753729
- [User](docs/User.md)
754-
- [UserIdentityRequestBody](docs/UserIdentityRequestBody.md)
755-
- [UserIdentityResponse](docs/UserIdentityResponse.md)
756-
- [UserSubscriptionOptions](docs/UserSubscriptionOptions.md)
730+
- [UserIdentityBody](docs/UserIdentityBody.md)
731+
- [WebButton](docs/WebButton.md)
757732

758733

759734
To get access to the crate's generated documentation, use:

0 commit comments

Comments
 (0)