Skip to content

Commit e2cd095

Browse files
authored
Merge pull request #27 from OneSignal/api
Dependency Update
2 parents efbd6b1 + 438a1f7 commit e2cd095

File tree

182 files changed

+9697
-680
lines changed

Some content is hidden

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

182 files changed

+9697
-680
lines changed

.github/workflows/Zapier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
# Triggers the workflow on push or pull request events but only for the "main" branch
88
issues:
99
types: [closed]
10-
10+
1111
permissions:
1212
issues: read
1313

@@ -31,4 +31,4 @@ jobs:
3131
--header 'Accept: application/json' \
3232
--data-raw '{
3333
"task_name" : "$ISSUE_TITLE"
34-
}'
34+
}'

README.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ A powerful way to send personalized messages at scale and build effective custom
66

77
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

9-
- API version: 1.0.2
10-
- Package version: 1.0.2
9+
- API version: 1.2.1
10+
- Package version: 2.0.0
1111
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1212
For more information, please visit [https://onesignal.com](https://onesignal.com)
1313

@@ -24,16 +24,16 @@ gem build onesignal.gemspec
2424
Then either install the gem locally:
2525

2626
```shell
27-
gem install ./onesignal-1.0.2.gem
27+
gem install ./onesignal-2.0.0.gem
2828
```
2929

30-
(for development, run `gem install --dev ./onesignal-1.0.2.gem` to install the development dependencies)
30+
(for development, run `gem install --dev ./onesignal-2.0.0.gem` to install the development dependencies)
3131

3232
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3333

3434
Finally add this to the Gemfile:
3535

36-
gem 'onesignal', '~> 1.0.2'
36+
gem 'onesignal', '~> 2.0.0'
3737

3838
### Install from Git
3939

@@ -89,22 +89,36 @@ Class | Method | HTTP request | Description
8989
*OneSignal::DefaultApi* | [**create_notification**](docs/DefaultApi.md#create_notification) | **POST** /notifications | Create notification
9090
*OneSignal::DefaultApi* | [**create_player**](docs/DefaultApi.md#create_player) | **POST** /players | Add a device
9191
*OneSignal::DefaultApi* | [**create_segments**](docs/DefaultApi.md#create_segments) | **POST** /apps/{app_id}/segments | Create Segments
92+
*OneSignal::DefaultApi* | [**create_subscription**](docs/DefaultApi.md#create_subscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
93+
*OneSignal::DefaultApi* | [**create_user**](docs/DefaultApi.md#create_user) | **POST** /apps/{app_id}/users |
94+
*OneSignal::DefaultApi* | [**delete_alias**](docs/DefaultApi.md#delete_alias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
9295
*OneSignal::DefaultApi* | [**delete_player**](docs/DefaultApi.md#delete_player) | **DELETE** /players/{player_id} | Delete a user record
9396
*OneSignal::DefaultApi* | [**delete_segments**](docs/DefaultApi.md#delete_segments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
97+
*OneSignal::DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
98+
*OneSignal::DefaultApi* | [**delete_user**](docs/DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
9499
*OneSignal::DefaultApi* | [**end_live_activity**](docs/DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
95100
*OneSignal::DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | CSV export
101+
*OneSignal::DefaultApi* | [**fetch_aliases**](docs/DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
102+
*OneSignal::DefaultApi* | [**fetch_user**](docs/DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
103+
*OneSignal::DefaultApi* | [**fetch_user_identity**](docs/DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
96104
*OneSignal::DefaultApi* | [**get_app**](docs/DefaultApi.md#get_app) | **GET** /apps/{app_id} | View an app
97105
*OneSignal::DefaultApi* | [**get_apps**](docs/DefaultApi.md#get_apps) | **GET** /apps | View apps
106+
*OneSignal::DefaultApi* | [**get_eligible_iams**](docs/DefaultApi.md#get_eligible_iams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
98107
*OneSignal::DefaultApi* | [**get_notification**](docs/DefaultApi.md#get_notification) | **GET** /notifications/{notification_id} | View notification
99108
*OneSignal::DefaultApi* | [**get_notification_history**](docs/DefaultApi.md#get_notification_history) | **POST** /notifications/{notification_id}/history | Notification History
100109
*OneSignal::DefaultApi* | [**get_notifications**](docs/DefaultApi.md#get_notifications) | **GET** /notifications | View notifications
101110
*OneSignal::DefaultApi* | [**get_outcomes**](docs/DefaultApi.md#get_outcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
102111
*OneSignal::DefaultApi* | [**get_player**](docs/DefaultApi.md#get_player) | **GET** /players/{player_id} | View device
103112
*OneSignal::DefaultApi* | [**get_players**](docs/DefaultApi.md#get_players) | **GET** /players | View devices
113+
*OneSignal::DefaultApi* | [**identify_user_by_alias**](docs/DefaultApi.md#identify_user_by_alias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
114+
*OneSignal::DefaultApi* | [**identify_user_by_subscription_id**](docs/DefaultApi.md#identify_user_by_subscription_id) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
115+
*OneSignal::DefaultApi* | [**transfer_subscription**](docs/DefaultApi.md#transfer_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
104116
*OneSignal::DefaultApi* | [**update_app**](docs/DefaultApi.md#update_app) | **PUT** /apps/{app_id} | Update an app
105117
*OneSignal::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
106118
*OneSignal::DefaultApi* | [**update_player**](docs/DefaultApi.md#update_player) | **PUT** /players/{player_id} | Edit device
107119
*OneSignal::DefaultApi* | [**update_player_tags**](docs/DefaultApi.md#update_player_tags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
120+
*OneSignal::DefaultApi* | [**update_subscription**](docs/DefaultApi.md#update_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
121+
*OneSignal::DefaultApi* | [**update_user**](docs/DefaultApi.md#update_user) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
108122

109123

110124
## Documentation for Models
@@ -121,6 +135,10 @@ Class | Method | HTTP request | Description
121135
- [OneSignal::CreatePlayerSuccessResponse](docs/CreatePlayerSuccessResponse.md)
122136
- [OneSignal::CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
123137
- [OneSignal::CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
138+
- [OneSignal::CreateSubscriptionRequestBody](docs/CreateSubscriptionRequestBody.md)
139+
- [OneSignal::CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
140+
- [OneSignal::CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
141+
- [OneSignal::CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
124142
- [OneSignal::DeletePlayerNotFoundResponse](docs/DeletePlayerNotFoundResponse.md)
125143
- [OneSignal::DeletePlayerSuccessResponse](docs/DeletePlayerSuccessResponse.md)
126144
- [OneSignal::DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
@@ -131,6 +149,12 @@ Class | Method | HTTP request | Description
131149
- [OneSignal::Filter](docs/Filter.md)
132150
- [OneSignal::FilterExpressions](docs/FilterExpressions.md)
133151
- [OneSignal::GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
152+
- [OneSignal::IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md)
153+
- [OneSignal::IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md)
154+
- [OneSignal::InlineResponse200](docs/InlineResponse200.md)
155+
- [OneSignal::InlineResponse2003](docs/InlineResponse2003.md)
156+
- [OneSignal::InlineResponse201](docs/InlineResponse201.md)
157+
- [OneSignal::InlineResponse202](docs/InlineResponse202.md)
134158
- [OneSignal::InvalidIdentifierError](docs/InvalidIdentifierError.md)
135159
- [OneSignal::Notification](docs/Notification.md)
136160
- [OneSignal::Notification200Errors](docs/Notification200Errors.md)
@@ -148,16 +172,27 @@ Class | Method | HTTP request | Description
148172
- [OneSignal::PlatformDeliveryDataSmsAllOf](docs/PlatformDeliveryDataSmsAllOf.md)
149173
- [OneSignal::Player](docs/Player.md)
150174
- [OneSignal::PlayerNotificationTarget](docs/PlayerNotificationTarget.md)
175+
- [OneSignal::PlayerNotificationTargetIncludeAliases](docs/PlayerNotificationTargetIncludeAliases.md)
151176
- [OneSignal::PlayerSlice](docs/PlayerSlice.md)
177+
- [OneSignal::PropertiesDeltas](docs/PropertiesDeltas.md)
178+
- [OneSignal::PropertiesObject](docs/PropertiesObject.md)
152179
- [OneSignal::Purchase](docs/Purchase.md)
153180
- [OneSignal::Segment](docs/Segment.md)
154181
- [OneSignal::SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
155182
- [OneSignal::StringMap](docs/StringMap.md)
183+
- [OneSignal::SubscriptionObject](docs/SubscriptionObject.md)
184+
- [OneSignal::TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
156185
- [OneSignal::UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
157186
- [OneSignal::UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
158187
- [OneSignal::UpdatePlayerSuccessResponse](docs/UpdatePlayerSuccessResponse.md)
159188
- [OneSignal::UpdatePlayerTagsRequestBody](docs/UpdatePlayerTagsRequestBody.md)
160189
- [OneSignal::UpdatePlayerTagsSuccessResponse](docs/UpdatePlayerTagsSuccessResponse.md)
190+
- [OneSignal::UpdateSubscriptionRequestBody](docs/UpdateSubscriptionRequestBody.md)
191+
- [OneSignal::UpdateUserRequest](docs/UpdateUserRequest.md)
192+
- [OneSignal::User](docs/User.md)
193+
- [OneSignal::UserIdentityRequestBody](docs/UserIdentityRequestBody.md)
194+
- [OneSignal::UserIdentityResponse](docs/UserIdentityResponse.md)
195+
- [OneSignal::UserSubscriptionOptions](docs/UserSubscriptionOptions.md)
161196

162197

163198
## Documentation for Authorization

docs/BasicNotification.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
| **include_chrome_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
1717
| **include_chrome_web_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
1818
| **include_android_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
19+
| **include_aliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional] |
20+
| **target_channel** | **String** | | [optional] |
1921
| **id** | **String** | | [optional] |
2022
| **value** | **Integer** | | [optional][readonly] |
2123
| **name** | **String** | Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user. | [optional] |
@@ -124,6 +126,8 @@ instance = OneSignal::BasicNotification.new(
124126
include_chrome_reg_ids: null,
125127
include_chrome_web_reg_ids: null,
126128
include_android_reg_ids: null,
129+
include_aliases: null,
130+
target_channel: null,
127131
id: null,
128132
value: null,
129133
name: null,

docs/CreateNotificationSuccessResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **id** | **String** | | |
8-
| **recipients** | **Integer** | Estimated number of subscribers targetted by notification. | |
7+
| **id** | **String** | | [optional] |
8+
| **recipients** | **Integer** | Estimated number of subscribers targetted by notification. | [optional] |
99
| **external_id** | **String** | | [optional] |
1010
| **errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional] |
1111

docs/CreateSubscriptionRequestBody.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# OneSignal::CreateSubscriptionRequestBody
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional] |
8+
| **retain_previous_owner** | **Boolean** | | [optional] |
9+
10+
## Example
11+
12+
```ruby
13+
require 'onesignal'
14+
15+
instance = OneSignal::CreateSubscriptionRequestBody.new(
16+
subscription: null,
17+
retain_previous_owner: null
18+
)
19+
```
20+

docs/CreateUserConflictResponse.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# OneSignal::CreateUserConflictResponse
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **errors** | [**Array<CreateUserConflictResponseErrorsInner>**](CreateUserConflictResponseErrorsInner.md) | | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'onesignal'
13+
14+
instance = OneSignal::CreateUserConflictResponse.new(
15+
errors: null
16+
)
17+
```
18+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# OneSignal::CreateUserConflictResponseErrorsInner
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **code** | **String** | | [optional] |
8+
| **title** | **String** | | [optional] |
9+
| **meta** | [**CreateUserConflictResponseErrorsItemsMeta**](CreateUserConflictResponseErrorsItemsMeta.md) | | [optional] |
10+
11+
## Example
12+
13+
```ruby
14+
require 'onesignal'
15+
16+
instance = OneSignal::CreateUserConflictResponseErrorsInner.new(
17+
code: null,
18+
title: null,
19+
meta: null
20+
)
21+
```
22+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# OneSignal::CreateUserConflictResponseErrorsItemsMeta
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **conflicting_aliases** | **Object** | | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'onesignal'
13+
14+
instance = OneSignal::CreateUserConflictResponseErrorsItemsMeta.new(
15+
conflicting_aliases: null
16+
)
17+
```
18+

0 commit comments

Comments
 (0)