Skip to content

Commit 72baeeb

Browse files
authored
Merge pull request #56 from OneSignal/user-api-updates
Add v5.3.0-beta1 package updates
2 parents 746f141 + 238d73c commit 72baeeb

File tree

161 files changed

+7452
-234
lines changed

Some content is hidden

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

161 files changed

+7452
-234
lines changed

README.md

Lines changed: 33 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: 5.2.1
10-
- Package version: 5.2.1-beta1
9+
- API version: 5.3.0
10+
- Package version: 5.3.0-beta1
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-5.2.1-beta1.gem
27+
gem install ./onesignal-5.3.0-beta1.gem
2828
```
2929

30-
(for development, run `gem install --dev ./onesignal-5.2.1-beta1.gem` to install the development dependencies)
30+
(for development, run `gem install --dev ./onesignal-5.3.0-beta1.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', '~> 5.2.1-beta1'
36+
gem 'onesignal', '~> 5.3.0-beta1'
3737

3838
### Install from Git
3939

@@ -86,16 +86,22 @@ All URIs are relative to *https://api.onesignal.com*
8686
Class | Method | HTTP request | Description
8787
------------ | ------------- | ------------- | -------------
8888
*OneSignal::DefaultApi* | [**cancel_notification**](docs/DefaultApi.md#cancel_notification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
89+
*OneSignal::DefaultApi* | [**copy_template_to_app**](docs/DefaultApi.md#copy_template_to_app) | **POST** /templates/{template_id}/copy_to_app | Copy template to another app
8990
*OneSignal::DefaultApi* | [**create_alias**](docs/DefaultApi.md#create_alias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
9091
*OneSignal::DefaultApi* | [**create_alias_by_subscription**](docs/DefaultApi.md#create_alias_by_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
92+
*OneSignal::DefaultApi* | [**create_api_key**](docs/DefaultApi.md#create_api_key) | **POST** /apps/{app_id}/auth/tokens | Create API key
9193
*OneSignal::DefaultApi* | [**create_app**](docs/DefaultApi.md#create_app) | **POST** /apps | Create an app
94+
*OneSignal::DefaultApi* | [**create_custom_events**](docs/DefaultApi.md#create_custom_events) | **POST** /apps/{app_id}/integrations/custom_events | Create custom events
9295
*OneSignal::DefaultApi* | [**create_notification**](docs/DefaultApi.md#create_notification) | **POST** /notifications | Create notification
9396
*OneSignal::DefaultApi* | [**create_segment**](docs/DefaultApi.md#create_segment) | **POST** /apps/{app_id}/segments | Create Segment
9497
*OneSignal::DefaultApi* | [**create_subscription**](docs/DefaultApi.md#create_subscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
98+
*OneSignal::DefaultApi* | [**create_template**](docs/DefaultApi.md#create_template) | **POST** /templates | Create template
9599
*OneSignal::DefaultApi* | [**create_user**](docs/DefaultApi.md#create_user) | **POST** /apps/{app_id}/users |
96100
*OneSignal::DefaultApi* | [**delete_alias**](docs/DefaultApi.md#delete_alias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
101+
*OneSignal::DefaultApi* | [**delete_api_key**](docs/DefaultApi.md#delete_api_key) | **DELETE** /apps/{app_id}/auth/tokens/{token_id} | Delete API key
97102
*OneSignal::DefaultApi* | [**delete_segment**](docs/DefaultApi.md#delete_segment) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segment
98103
*OneSignal::DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
104+
*OneSignal::DefaultApi* | [**delete_template**](docs/DefaultApi.md#delete_template) | **DELETE** /templates/{template_id} | Delete template
99105
*OneSignal::DefaultApi* | [**delete_user**](docs/DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
100106
*OneSignal::DefaultApi* | [**export_events**](docs/DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
101107
*OneSignal::DefaultApi* | [**export_subscriptions**](docs/DefaultApi.md#export_subscriptions) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions
@@ -109,27 +115,43 @@ Class | Method | HTTP request | Description
109115
*OneSignal::DefaultApi* | [**get_outcomes**](docs/DefaultApi.md#get_outcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
110116
*OneSignal::DefaultApi* | [**get_segments**](docs/DefaultApi.md#get_segments) | **GET** /apps/{app_id}/segments | Get Segments
111117
*OneSignal::DefaultApi* | [**get_user**](docs/DefaultApi.md#get_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
118+
*OneSignal::DefaultApi* | [**rotate_api_key**](docs/DefaultApi.md#rotate_api_key) | **POST** /apps/{app_id}/auth/tokens/{token_id}/rotate | Rotate API key
119+
*OneSignal::DefaultApi* | [**start_live_activity**](docs/DefaultApi.md#start_live_activity) | **POST** /apps/{app_id}/activities/activity/{activity_type} | Start Live Activity
112120
*OneSignal::DefaultApi* | [**transfer_subscription**](docs/DefaultApi.md#transfer_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
113121
*OneSignal::DefaultApi* | [**unsubscribe_email_with_token**](docs/DefaultApi.md#unsubscribe_email_with_token) | **POST** /apps/{app_id}/notifications/{notification_id}/unsubscribe | Unsubscribe with token
122+
*OneSignal::DefaultApi* | [**update_api_key**](docs/DefaultApi.md#update_api_key) | **PATCH** /apps/{app_id}/auth/tokens/{token_id} | Update API key
114123
*OneSignal::DefaultApi* | [**update_app**](docs/DefaultApi.md#update_app) | **PUT** /apps/{app_id} | Update an app
115124
*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
116125
*OneSignal::DefaultApi* | [**update_subscription**](docs/DefaultApi.md#update_subscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
126+
*OneSignal::DefaultApi* | [**update_subscription_by_token**](docs/DefaultApi.md#update_subscription_by_token) | **PATCH** /apps/{app_id}/subscriptions_by_token/{token_type}/{token} | Update subscription by token
127+
*OneSignal::DefaultApi* | [**update_template**](docs/DefaultApi.md#update_template) | **PATCH** /templates/{template_id} | Update template
117128
*OneSignal::DefaultApi* | [**update_user**](docs/DefaultApi.md#update_user) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
129+
*OneSignal::DefaultApi* | [**view_api_keys**](docs/DefaultApi.md#view_api_keys) | **GET** /apps/{app_id}/auth/tokens | View API keys
130+
*OneSignal::DefaultApi* | [**view_template**](docs/DefaultApi.md#view_template) | **GET** /templates/{template_id} | View template
131+
*OneSignal::DefaultApi* | [**view_templates**](docs/DefaultApi.md#view_templates) | **GET** /templates | View templates
118132

119133

120134
## Documentation for Models
121135

136+
- [OneSignal::ApiKeyToken](docs/ApiKeyToken.md)
137+
- [OneSignal::ApiKeyTokensListResponse](docs/ApiKeyTokensListResponse.md)
122138
- [OneSignal::App](docs/App.md)
123139
- [OneSignal::BasicNotification](docs/BasicNotification.md)
124140
- [OneSignal::BasicNotificationAllOf](docs/BasicNotificationAllOf.md)
125141
- [OneSignal::BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md)
126142
- [OneSignal::Button](docs/Button.md)
143+
- [OneSignal::CopyTemplateRequest](docs/CopyTemplateRequest.md)
144+
- [OneSignal::CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
145+
- [OneSignal::CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
127146
- [OneSignal::CreateNotificationSuccessResponse](docs/CreateNotificationSuccessResponse.md)
128147
- [OneSignal::CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
129148
- [OneSignal::CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
149+
- [OneSignal::CreateTemplateRequest](docs/CreateTemplateRequest.md)
130150
- [OneSignal::CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
131151
- [OneSignal::CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
132152
- [OneSignal::CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
153+
- [OneSignal::CustomEvent](docs/CustomEvent.md)
154+
- [OneSignal::CustomEventsRequest](docs/CustomEventsRequest.md)
133155
- [OneSignal::DeliveryData](docs/DeliveryData.md)
134156
- [OneSignal::ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md)
135157
- [OneSignal::ExportSubscriptionsRequestBody](docs/ExportSubscriptionsRequestBody.md)
@@ -162,12 +184,18 @@ Class | Method | HTTP request | Description
162184
- [OneSignal::Segment](docs/Segment.md)
163185
- [OneSignal::SegmentData](docs/SegmentData.md)
164186
- [OneSignal::SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
187+
- [OneSignal::StartLiveActivityRequest](docs/StartLiveActivityRequest.md)
188+
- [OneSignal::StartLiveActivitySuccessResponse](docs/StartLiveActivitySuccessResponse.md)
165189
- [OneSignal::Subscription](docs/Subscription.md)
166190
- [OneSignal::SubscriptionBody](docs/SubscriptionBody.md)
167191
- [OneSignal::SubscriptionNotificationTarget](docs/SubscriptionNotificationTarget.md)
192+
- [OneSignal::TemplateResource](docs/TemplateResource.md)
193+
- [OneSignal::TemplatesListResponse](docs/TemplatesListResponse.md)
168194
- [OneSignal::TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
195+
- [OneSignal::UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md)
169196
- [OneSignal::UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
170197
- [OneSignal::UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
198+
- [OneSignal::UpdateTemplateRequest](docs/UpdateTemplateRequest.md)
171199
- [OneSignal::UpdateUserRequest](docs/UpdateUserRequest.md)
172200
- [OneSignal::User](docs/User.md)
173201
- [OneSignal::UserIdentityBody](docs/UserIdentityBody.md)

docs/ApiKeyToken.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# OneSignal::ApiKeyToken
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **token_id** | **String** | | [optional] |
8+
| **updated_at** | **String** | | [optional] |
9+
| **created_at** | **String** | | [optional] |
10+
| **name** | **String** | | [optional] |
11+
| **ip_allowlist_mode** | **String** | | [optional] |
12+
| **ip_allowlist** | **Array<String>** | | [optional] |
13+
14+
## Example
15+
16+
```ruby
17+
require 'onesignal'
18+
19+
instance = OneSignal::ApiKeyToken.new(
20+
token_id: null,
21+
updated_at: null,
22+
created_at: null,
23+
name: null,
24+
ip_allowlist_mode: null,
25+
ip_allowlist: null
26+
)
27+
```
28+

docs/ApiKeyTokensListResponse.md

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

docs/CopyTemplateRequest.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# OneSignal::CopyTemplateRequest
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **target_app_id** | **String** | Destination OneSignal App ID in UUID v4 format. | |
8+
9+
## Example
10+
11+
```ruby
12+
require 'onesignal'
13+
14+
instance = OneSignal::CopyTemplateRequest.new(
15+
target_app_id: null
16+
)
17+
```
18+

docs/CreateApiKeyRequest.md

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

docs/CreateApiKeyResponse.md

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

docs/CreateTemplateRequest.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# OneSignal::CreateTemplateRequest
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **app_id** | **String** | Your OneSignal App ID in UUID v4 format. | |
8+
| **name** | **String** | Name of the template. | |
9+
| **contents** | [**LanguageStringMap**](LanguageStringMap.md) | | |
10+
| **is_email** | **Boolean** | Set true for an Email template. | [optional] |
11+
| **email_subject** | **String** | Subject of the email. | [optional] |
12+
| **email_body** | **String** | Body of the email (HTML supported). | [optional] |
13+
| **is_sms** | **Boolean** | Set true for an SMS template. | [optional] |
14+
| **dynamic_content** | **String** | JSON string for dynamic content personalization. | [optional] |
15+
16+
## Example
17+
18+
```ruby
19+
require 'onesignal'
20+
21+
instance = OneSignal::CreateTemplateRequest.new(
22+
app_id: null,
23+
name: null,
24+
contents: null,
25+
is_email: null,
26+
email_subject: null,
27+
email_body: null,
28+
is_sms: null,
29+
dynamic_content: null
30+
)
31+
```
32+

docs/CustomEvent.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# OneSignal::CustomEvent
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **name** | **String** | The identifier or name of the event. Maximum 128 characters. | |
8+
| **external_id** | **String** | The external ID of the user targeted for the event. Either the user's External ID or OneSignal ID is required. | [optional] |
9+
| **onesignal_id** | **String** | The OneSignal ID of the user targeted for the event. Either the user's External ID or OneSignal ID is required. | [optional] |
10+
| **timestamp** | **Time** | Time the event occurred as an ISO8601 formatted string. Defaults to now if not included or past date provided. | [optional] |
11+
| **payload** | **Hash<String, Object>** | Properties or data related to the event, like {\"geography\": \"USA\"} | [optional] |
12+
13+
## Example
14+
15+
```ruby
16+
require 'onesignal'
17+
18+
instance = OneSignal::CustomEvent.new(
19+
name: null,
20+
external_id: null,
21+
onesignal_id: null,
22+
timestamp: null,
23+
payload: null
24+
)
25+
```
26+

docs/CustomEventsRequest.md

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

0 commit comments

Comments
 (0)