Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

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

- API version: 5.11.0
- Package version: 5.12.0
- API version: 5.11.1
- Package version: 5.12.1

## Installation

Expand Down
13 changes: 11 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ info:
customer engagement strategies. Learn more at onesignal.com
termsOfService: https://onesignal.com/tos
title: OneSignal
version: 5.11.0
version: 5.11.1
servers:
- url: https://api.onesignal.com
paths:
Expand Down Expand Up @@ -2145,7 +2145,7 @@ paths:
security:
- rest_api_key: []
summary: Export CSV of Subscriptions
/notifications/{notification_id}/export_events?app_id={app_id}:
/notifications/{notification_id}/export_events:
post:
description: |-
Generate a compressed CSV report of all of the events data for a notification.
Expand Down Expand Up @@ -5883,6 +5883,15 @@ components:
nullable: true
type: string
writeOnly: true
global_image:
description: "Channel: Push Notifications\nPlatform: All\nPicture to display\
\ on all platforms that support it. Must be a URL to an image file.\n\
Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture,\
\ chrome_web_image, ios_attachments, firefox_icon) take precedence over\
\ this value when set.\n"
nullable: true
type: string
writeOnly: true
huawei_big_picture:
description: "Channel: Push Notifications\nPlatform: Huawei\nPicture to\
\ display in the expanded view. Can be a drawable resource name or a URL.\n"
Expand Down
334 changes: 167 additions & 167 deletions api_default.go

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions docs/BasicNotification.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Name | Type | Description | Notes
**MutableContent** | Pointer to **bool** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional]
**TargetContentIdentifier** | Pointer to **NullableString** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional]
**BigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**GlobalImage** | Pointer to **NullableString** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional]
**HuaweiBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**AdmBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**ChromeBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
Expand Down Expand Up @@ -1541,6 +1542,41 @@ HasBigPicture returns a boolean if a field has been set.
`func (o *BasicNotification) UnsetBigPicture()`

UnsetBigPicture ensures that no value is present for BigPicture, not even an explicit nil
### GetGlobalImage

`func (o *BasicNotification) GetGlobalImage() string`

GetGlobalImage returns the GlobalImage field if non-nil, zero value otherwise.

### GetGlobalImageOk

`func (o *BasicNotification) GetGlobalImageOk() (*string, bool)`

GetGlobalImageOk returns a tuple with the GlobalImage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalImage

`func (o *BasicNotification) SetGlobalImage(v string)`

SetGlobalImage sets GlobalImage field to given value.

### HasGlobalImage

`func (o *BasicNotification) HasGlobalImage() bool`

HasGlobalImage returns a boolean if a field has been set.

### SetGlobalImageNil

`func (o *BasicNotification) SetGlobalImageNil(b bool)`

SetGlobalImageNil sets the value for GlobalImage to be an explicit nil

### UnsetGlobalImage
`func (o *BasicNotification) UnsetGlobalImage()`

UnsetGlobalImage ensures that no value is present for GlobalImage, not even an explicit nil
### GetHuaweiBigPicture

`func (o *BasicNotification) GetHuaweiBigPicture() string`
Expand Down
36 changes: 36 additions & 0 deletions docs/BasicNotificationAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Name | Type | Description | Notes
**MutableContent** | Pointer to **bool** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional]
**TargetContentIdentifier** | Pointer to **NullableString** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional]
**BigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**GlobalImage** | Pointer to **NullableString** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional]
**HuaweiBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**AdmBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**ChromeBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
Expand Down Expand Up @@ -1162,6 +1163,41 @@ HasBigPicture returns a boolean if a field has been set.
`func (o *BasicNotificationAllOf) UnsetBigPicture()`

UnsetBigPicture ensures that no value is present for BigPicture, not even an explicit nil
### GetGlobalImage

`func (o *BasicNotificationAllOf) GetGlobalImage() string`

GetGlobalImage returns the GlobalImage field if non-nil, zero value otherwise.

### GetGlobalImageOk

`func (o *BasicNotificationAllOf) GetGlobalImageOk() (*string, bool)`

GetGlobalImageOk returns a tuple with the GlobalImage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalImage

`func (o *BasicNotificationAllOf) SetGlobalImage(v string)`

SetGlobalImage sets GlobalImage field to given value.

### HasGlobalImage

`func (o *BasicNotificationAllOf) HasGlobalImage() bool`

HasGlobalImage returns a boolean if a field has been set.

### SetGlobalImageNil

`func (o *BasicNotificationAllOf) SetGlobalImageNil(b bool)`

SetGlobalImageNil sets the value for GlobalImage to be an explicit nil

### UnsetGlobalImage
`func (o *BasicNotificationAllOf) UnsetGlobalImage()`

UnsetGlobalImage ensures that no value is present for GlobalImage, not even an explicit nil
### GetHuaweiBigPicture

`func (o *BasicNotificationAllOf) GetHuaweiBigPicture() string`
Expand Down
2 changes: 1 addition & 1 deletion docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Method | HTTP request | Description
[**DeleteSubscription**](DefaultApi.md#DeleteSubscription) | **Delete** /apps/{app_id}/subscriptions/{subscription_id} |
[**DeleteTemplate**](DefaultApi.md#DeleteTemplate) | **Delete** /templates/{template_id} | Delete template
[**DeleteUser**](DefaultApi.md#DeleteUser) | **Delete** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
[**ExportEvents**](DefaultApi.md#ExportEvents) | **Post** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
[**ExportEvents**](DefaultApi.md#ExportEvents) | **Post** /notifications/{notification_id}/export_events | Export CSV of Events
[**ExportSubscriptions**](DefaultApi.md#ExportSubscriptions) | **Post** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions
[**GetAliases**](DefaultApi.md#GetAliases) | **Get** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
[**GetAliasesBySubscription**](DefaultApi.md#GetAliasesBySubscription) | **Get** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
Expand Down
36 changes: 36 additions & 0 deletions docs/Notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Name | Type | Description | Notes
**MutableContent** | Pointer to **bool** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional]
**TargetContentIdentifier** | Pointer to **NullableString** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional]
**BigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**GlobalImage** | Pointer to **NullableString** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional]
**HuaweiBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**AdmBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**ChromeBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
Expand Down Expand Up @@ -1542,6 +1543,41 @@ HasBigPicture returns a boolean if a field has been set.
`func (o *Notification) UnsetBigPicture()`

UnsetBigPicture ensures that no value is present for BigPicture, not even an explicit nil
### GetGlobalImage

`func (o *Notification) GetGlobalImage() string`

GetGlobalImage returns the GlobalImage field if non-nil, zero value otherwise.

### GetGlobalImageOk

`func (o *Notification) GetGlobalImageOk() (*string, bool)`

GetGlobalImageOk returns a tuple with the GlobalImage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalImage

`func (o *Notification) SetGlobalImage(v string)`

SetGlobalImage sets GlobalImage field to given value.

### HasGlobalImage

`func (o *Notification) HasGlobalImage() bool`

HasGlobalImage returns a boolean if a field has been set.

### SetGlobalImageNil

`func (o *Notification) SetGlobalImageNil(b bool)`

SetGlobalImageNil sets the value for GlobalImage to be an explicit nil

### UnsetGlobalImage
`func (o *Notification) UnsetGlobalImage()`

UnsetGlobalImage ensures that no value is present for GlobalImage, not even an explicit nil
### GetHuaweiBigPicture

`func (o *Notification) GetHuaweiBigPicture() string`
Expand Down
36 changes: 36 additions & 0 deletions docs/NotificationWithMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Name | Type | Description | Notes
**MutableContent** | Pointer to **bool** | Channel: Push Notifications Platform: iOS 10+ Always defaults to true and cannot be turned off. Allows tracking of notification receives and changing of the notification content in your app before it is displayed. Triggers didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. | [optional]
**TargetContentIdentifier** | Pointer to **NullableString** | Channel: Push Notifications Platform: iOS 13+ Use to target a specific experience in your App Clip, or to target your notification to a specific window in a multi-scene App. | [optional]
**BigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**GlobalImage** | Pointer to **NullableString** | Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set. | [optional]
**HuaweiBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**AdmBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional]
**ChromeBigPicture** | Pointer to **NullableString** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
Expand Down Expand Up @@ -1554,6 +1555,41 @@ HasBigPicture returns a boolean if a field has been set.
`func (o *NotificationWithMeta) UnsetBigPicture()`

UnsetBigPicture ensures that no value is present for BigPicture, not even an explicit nil
### GetGlobalImage

`func (o *NotificationWithMeta) GetGlobalImage() string`

GetGlobalImage returns the GlobalImage field if non-nil, zero value otherwise.

### GetGlobalImageOk

`func (o *NotificationWithMeta) GetGlobalImageOk() (*string, bool)`

GetGlobalImageOk returns a tuple with the GlobalImage field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalImage

`func (o *NotificationWithMeta) SetGlobalImage(v string)`

SetGlobalImage sets GlobalImage field to given value.

### HasGlobalImage

`func (o *NotificationWithMeta) HasGlobalImage() bool`

HasGlobalImage returns a boolean if a field has been set.

### SetGlobalImageNil

`func (o *NotificationWithMeta) SetGlobalImageNil(b bool)`

SetGlobalImageNil sets the value for GlobalImage to be an explicit nil

### UnsetGlobalImage
`func (o *NotificationWithMeta) UnsetGlobalImage()`

UnsetGlobalImage ensures that no value is present for GlobalImage, not even an explicit nil
### GetHuaweiBigPicture

`func (o *NotificationWithMeta) GetHuaweiBigPicture() string`
Expand Down
2 changes: 1 addition & 1 deletion model_api_key_token.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_api_key_tokens_list_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_app.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_audit_log_actor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_audit_log_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_audit_log_event.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_audit_log_target.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading