Skip to content

Commit 7ed733c

Browse files
authored
Merge pull request #24 from OneSignal/api
Dependency Update
2 parents f23be73 + 4b018ef commit 7ed733c

File tree

120 files changed

+9623
-1123
lines changed

Some content is hidden

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

120 files changed

+9623
-1123
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: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44

5-
- API version: 1.0.2
6-
- SDK version: 1.0.4
5+
- API version: 1.2.1
6+
- SDK version: 2.0.0
77
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
88
For more information, please visit [https://onesignal.com](https://onesignal.com)
99

@@ -132,22 +132,36 @@ Class | Method | HTTP request | Description
132132
*DefaultApi* | [**CreateNotification**](docs/DefaultApi.md#createnotification) | **POST** /notifications | Create notification
133133
*DefaultApi* | [**CreatePlayer**](docs/DefaultApi.md#createplayer) | **POST** /players | Add a device
134134
*DefaultApi* | [**CreateSegments**](docs/DefaultApi.md#createsegments) | **POST** /apps/{app_id}/segments | Create Segments
135+
*DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
136+
*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **POST** /apps/{app_id}/users |
137+
*DefaultApi* | [**DeleteAlias**](docs/DefaultApi.md#deletealias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
135138
*DefaultApi* | [**DeletePlayer**](docs/DefaultApi.md#deleteplayer) | **DELETE** /players/{player_id} | Delete a user record
136139
*DefaultApi* | [**DeleteSegments**](docs/DefaultApi.md#deletesegments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
140+
*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
141+
*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
137142
*DefaultApi* | [**EndLiveActivity**](docs/DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
138143
*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
144+
*DefaultApi* | [**FetchAliases**](docs/DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
145+
*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
146+
*DefaultApi* | [**FetchUserIdentity**](docs/DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
139147
*DefaultApi* | [**GetApp**](docs/DefaultApi.md#getapp) | **GET** /apps/{app_id} | View an app
140148
*DefaultApi* | [**GetApps**](docs/DefaultApi.md#getapps) | **GET** /apps | View apps
149+
*DefaultApi* | [**GetEligibleIams**](docs/DefaultApi.md#geteligibleiams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
141150
*DefaultApi* | [**GetNotification**](docs/DefaultApi.md#getnotification) | **GET** /notifications/{notification_id} | View notification
142151
*DefaultApi* | [**GetNotificationHistory**](docs/DefaultApi.md#getnotificationhistory) | **POST** /notifications/{notification_id}/history | Notification History
143152
*DefaultApi* | [**GetNotifications**](docs/DefaultApi.md#getnotifications) | **GET** /notifications | View notifications
144153
*DefaultApi* | [**GetOutcomes**](docs/DefaultApi.md#getoutcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
145154
*DefaultApi* | [**GetPlayer**](docs/DefaultApi.md#getplayer) | **GET** /players/{player_id} | View device
146155
*DefaultApi* | [**GetPlayers**](docs/DefaultApi.md#getplayers) | **GET** /players | View devices
156+
*DefaultApi* | [**IdentifyUserByAlias**](docs/DefaultApi.md#identifyuserbyalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
157+
*DefaultApi* | [**IdentifyUserBySubscriptionId**](docs/DefaultApi.md#identifyuserbysubscriptionid) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
158+
*DefaultApi* | [**TransferSubscription**](docs/DefaultApi.md#transfersubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
147159
*DefaultApi* | [**UpdateApp**](docs/DefaultApi.md#updateapp) | **PUT** /apps/{app_id} | Update an app
148160
*DefaultApi* | [**UpdateLiveActivity**](docs/DefaultApi.md#updateliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
149161
*DefaultApi* | [**UpdatePlayer**](docs/DefaultApi.md#updateplayer) | **PUT** /players/{player_id} | Edit device
150162
*DefaultApi* | [**UpdatePlayerTags**](docs/DefaultApi.md#updateplayertags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
163+
*DefaultApi* | [**UpdateSubscription**](docs/DefaultApi.md#updatesubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
164+
*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
151165

152166

153167
<a name="documentation-for-models"></a>
@@ -165,6 +179,10 @@ Class | Method | HTTP request | Description
165179
- [Model.CreatePlayerSuccessResponse](docs/CreatePlayerSuccessResponse.md)
166180
- [Model.CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
167181
- [Model.CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
182+
- [Model.CreateSubscriptionRequestBody](docs/CreateSubscriptionRequestBody.md)
183+
- [Model.CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
184+
- [Model.CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
185+
- [Model.CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
168186
- [Model.DeletePlayerNotFoundResponse](docs/DeletePlayerNotFoundResponse.md)
169187
- [Model.DeletePlayerSuccessResponse](docs/DeletePlayerSuccessResponse.md)
170188
- [Model.DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
@@ -175,6 +193,12 @@ Class | Method | HTTP request | Description
175193
- [Model.Filter](docs/Filter.md)
176194
- [Model.FilterExpressions](docs/FilterExpressions.md)
177195
- [Model.GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
196+
- [Model.IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md)
197+
- [Model.IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md)
198+
- [Model.InlineResponse200](docs/InlineResponse200.md)
199+
- [Model.InlineResponse2003](docs/InlineResponse2003.md)
200+
- [Model.InlineResponse201](docs/InlineResponse201.md)
201+
- [Model.InlineResponse202](docs/InlineResponse202.md)
178202
- [Model.InvalidIdentifierError](docs/InvalidIdentifierError.md)
179203
- [Model.Notification](docs/Notification.md)
180204
- [Model.Notification200Errors](docs/Notification200Errors.md)
@@ -192,16 +216,27 @@ Class | Method | HTTP request | Description
192216
- [Model.PlatformDeliveryDataSmsAllOf](docs/PlatformDeliveryDataSmsAllOf.md)
193217
- [Model.Player](docs/Player.md)
194218
- [Model.PlayerNotificationTarget](docs/PlayerNotificationTarget.md)
219+
- [Model.PlayerNotificationTargetIncludeAliases](docs/PlayerNotificationTargetIncludeAliases.md)
195220
- [Model.PlayerSlice](docs/PlayerSlice.md)
221+
- [Model.PropertiesDeltas](docs/PropertiesDeltas.md)
222+
- [Model.PropertiesObject](docs/PropertiesObject.md)
196223
- [Model.Purchase](docs/Purchase.md)
197224
- [Model.Segment](docs/Segment.md)
198225
- [Model.SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
199226
- [Model.StringMap](docs/StringMap.md)
227+
- [Model.SubscriptionObject](docs/SubscriptionObject.md)
228+
- [Model.TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
200229
- [Model.UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
201230
- [Model.UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
202231
- [Model.UpdatePlayerSuccessResponse](docs/UpdatePlayerSuccessResponse.md)
203232
- [Model.UpdatePlayerTagsRequestBody](docs/UpdatePlayerTagsRequestBody.md)
204233
- [Model.UpdatePlayerTagsSuccessResponse](docs/UpdatePlayerTagsSuccessResponse.md)
234+
- [Model.UpdateSubscriptionRequestBody](docs/UpdateSubscriptionRequestBody.md)
235+
- [Model.UpdateUserRequest](docs/UpdateUserRequest.md)
236+
- [Model.User](docs/User.md)
237+
- [Model.UserIdentityRequestBody](docs/UserIdentityRequestBody.md)
238+
- [Model.UserIdentityResponse](docs/UserIdentityResponse.md)
239+
- [Model.UserSubscriptionOptions](docs/UserSubscriptionOptions.md)
205240

206241

207242
<a name="documentation-for-authorization"></a>

docs/BasicNotification.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
1616
**IncludeChromeRegIds** | **List&lt;string&gt;** | 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
**IncludeChromeWebRegIds** | **List&lt;string&gt;** | 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
**IncludeAndroidRegIds** | **List&lt;string&gt;** | 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+
**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
20+
**TargetChannel** | **string** | | [optional]
1921
**Id** | **string** | | [optional]
2022
**Value** | **int** | | [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]

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** | **int** | Estimated number of subscribers targetted by notification. |
7+
**Id** | **string** | | [optional]
8+
**Recipients** | **int** | Estimated number of subscribers targetted by notification. | [optional]
99
**ExternalId** | **string** | | [optional]
1010
**Errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional]
1111

docs/CreateSubscriptionRequestBody.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OneSignalApi.Model.CreateSubscriptionRequestBody
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional]
8+
**RetainPreviousOwner** | **bool** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

docs/CreateUserConflictResponse.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# OneSignalApi.Model.CreateUserConflictResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Errors** | [**List&lt;CreateUserConflictResponseErrorsInner&gt;**](CreateUserConflictResponseErrorsInner.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OneSignalApi.Model.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+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# OneSignalApi.Model.CreateUserConflictResponseErrorsItemsMeta
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**ConflictingAliases** | **Object** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

0 commit comments

Comments
 (0)