From d9821db0972a50a96406a1ab5da2b92dbf49de9b Mon Sep 17 00:00:00 2001 From: OneSignal Date: Tue, 28 Jul 2026 21:34:26 +0000 Subject: [PATCH] feat: add v5.11.0 package updates --- docs/Api/DefaultApi.md | 2 +- docs/Model/BasicNotification.md | 1 + docs/Model/BasicNotificationAllOf.md | 1 + docs/Model/Notification.md | 1 + docs/Model/NotificationWithMeta.md | 1 + lib/api/DefaultApi.php | 2 +- lib/model/BasicNotification.php | 30 ++++++++++++++++++++++++++++ lib/model/BasicNotificationAllOf.php | 30 ++++++++++++++++++++++++++++ lib/model/Notification.php | 30 ++++++++++++++++++++++++++++ lib/model/NotificationWithMeta.php | 30 ++++++++++++++++++++++++++++ 10 files changed, 126 insertions(+), 2 deletions(-) diff --git a/docs/Api/DefaultApi.md b/docs/Api/DefaultApi.md index 246cd60..d78fe55 100644 --- a/docs/Api/DefaultApi.md +++ b/docs/Api/DefaultApi.md @@ -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 | diff --git a/docs/Model/BasicNotification.md b/docs/Model/BasicNotification.md index 0ec14f4..73c39ac 100644 --- a/docs/Model/BasicNotification.md +++ b/docs/Model/BasicNotification.md @@ -49,6 +49,7 @@ Name | Type | Description | Notes **mutable_content** | **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] **target_content_identifier** | **string** | 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] **big_picture** | **string** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] +**global_image** | **string** | 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] **huawei_big_picture** | **string** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **adm_big_picture** | **string** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **chrome_big_picture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] diff --git a/docs/Model/BasicNotificationAllOf.md b/docs/Model/BasicNotificationAllOf.md index 5fa45d7..85ac93c 100644 --- a/docs/Model/BasicNotificationAllOf.md +++ b/docs/Model/BasicNotificationAllOf.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **mutable_content** | **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] **target_content_identifier** | **string** | 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] **big_picture** | **string** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] +**global_image** | **string** | 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] **huawei_big_picture** | **string** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **adm_big_picture** | **string** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **chrome_big_picture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] diff --git a/docs/Model/Notification.md b/docs/Model/Notification.md index f80cb4b..7935f67 100644 --- a/docs/Model/Notification.md +++ b/docs/Model/Notification.md @@ -49,6 +49,7 @@ Name | Type | Description | Notes **mutable_content** | **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] **target_content_identifier** | **string** | 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] **big_picture** | **string** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] +**global_image** | **string** | 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] **huawei_big_picture** | **string** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **adm_big_picture** | **string** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **chrome_big_picture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] diff --git a/docs/Model/NotificationWithMeta.md b/docs/Model/NotificationWithMeta.md index bc26354..724cfa6 100644 --- a/docs/Model/NotificationWithMeta.md +++ b/docs/Model/NotificationWithMeta.md @@ -49,6 +49,7 @@ Name | Type | Description | Notes **mutable_content** | **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] **target_content_identifier** | **string** | 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] **big_picture** | **string** | Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] +**global_image** | **string** | 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] **huawei_big_picture** | **string** | Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **adm_big_picture** | **string** | Channel: Push Notifications Platform: Amazon Picture to display in the expanded view. Can be a drawable resource name or a URL. | [optional] **chrome_big_picture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional] diff --git a/lib/api/DefaultApi.php b/lib/api/DefaultApi.php index b154787..9e9a9c5 100644 --- a/lib/api/DefaultApi.php +++ b/lib/api/DefaultApi.php @@ -7058,7 +7058,7 @@ public function exportEventsRequest($notification_id, $app_id) ); } - $resourcePath = '/notifications/{notification_id}/export_events?app_id={app_id}'; + $resourcePath = '/notifications/{notification_id}/export_events'; $formParams = []; $queryParams = []; $headerParams = []; diff --git a/lib/model/BasicNotification.php b/lib/model/BasicNotification.php index dc2016f..81c3dae 100644 --- a/lib/model/BasicNotification.php +++ b/lib/model/BasicNotification.php @@ -105,6 +105,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'mutable_content' => 'bool', 'target_content_identifier' => 'string', 'big_picture' => 'string', + 'global_image' => 'string', 'huawei_big_picture' => 'string', 'adm_big_picture' => 'string', 'chrome_big_picture' => 'string', @@ -232,6 +233,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'mutable_content' => null, 'target_content_identifier' => null, 'big_picture' => null, + 'global_image' => null, 'huawei_big_picture' => null, 'adm_big_picture' => null, 'chrome_big_picture' => null, @@ -378,6 +380,7 @@ public static function openAPIFormats() 'mutable_content' => 'mutable_content', 'target_content_identifier' => 'target_content_identifier', 'big_picture' => 'big_picture', + 'global_image' => 'global_image', 'huawei_big_picture' => 'huawei_big_picture', 'adm_big_picture' => 'adm_big_picture', 'chrome_big_picture' => 'chrome_big_picture', @@ -503,6 +506,7 @@ public static function openAPIFormats() 'mutable_content' => 'setMutableContent', 'target_content_identifier' => 'setTargetContentIdentifier', 'big_picture' => 'setBigPicture', + 'global_image' => 'setGlobalImage', 'huawei_big_picture' => 'setHuaweiBigPicture', 'adm_big_picture' => 'setAdmBigPicture', 'chrome_big_picture' => 'setChromeBigPicture', @@ -628,6 +632,7 @@ public static function openAPIFormats() 'mutable_content' => 'getMutableContent', 'target_content_identifier' => 'getTargetContentIdentifier', 'big_picture' => 'getBigPicture', + 'global_image' => 'getGlobalImage', 'huawei_big_picture' => 'getHuaweiBigPicture', 'adm_big_picture' => 'getAdmBigPicture', 'chrome_big_picture' => 'getChromeBigPicture', @@ -871,6 +876,7 @@ public function __construct(?array $data = null) $this->container['mutable_content'] = $data['mutable_content'] ?? null; $this->container['target_content_identifier'] = $data['target_content_identifier'] ?? null; $this->container['big_picture'] = $data['big_picture'] ?? null; + $this->container['global_image'] = $data['global_image'] ?? null; $this->container['huawei_big_picture'] = $data['huawei_big_picture'] ?? null; $this->container['adm_big_picture'] = $data['adm_big_picture'] ?? null; $this->container['chrome_big_picture'] = $data['chrome_big_picture'] ?? null; @@ -2107,6 +2113,30 @@ public function setBigPicture($big_picture) return $this; } + /** + * Gets global_image + * + * @return string|null + */ + public function getGlobalImage() + { + return $this->container['global_image']; + } + + /** + * Sets global_image + * + * @param string|null $global_image 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. + * + * @return self + */ + public function setGlobalImage($global_image) + { + $this->container['global_image'] = $global_image; + + return $this; + } + /** * Gets huawei_big_picture * diff --git a/lib/model/BasicNotificationAllOf.php b/lib/model/BasicNotificationAllOf.php index 4a5657e..c09d09f 100644 --- a/lib/model/BasicNotificationAllOf.php +++ b/lib/model/BasicNotificationAllOf.php @@ -91,6 +91,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'mutable_content' => 'bool', 'target_content_identifier' => 'string', 'big_picture' => 'string', + 'global_image' => 'string', 'huawei_big_picture' => 'string', 'adm_big_picture' => 'string', 'chrome_big_picture' => 'string', @@ -204,6 +205,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'mutable_content' => null, 'target_content_identifier' => null, 'big_picture' => null, + 'global_image' => null, 'huawei_big_picture' => null, 'adm_big_picture' => null, 'chrome_big_picture' => null, @@ -336,6 +338,7 @@ public static function openAPIFormats() 'mutable_content' => 'mutable_content', 'target_content_identifier' => 'target_content_identifier', 'big_picture' => 'big_picture', + 'global_image' => 'global_image', 'huawei_big_picture' => 'huawei_big_picture', 'adm_big_picture' => 'adm_big_picture', 'chrome_big_picture' => 'chrome_big_picture', @@ -447,6 +450,7 @@ public static function openAPIFormats() 'mutable_content' => 'setMutableContent', 'target_content_identifier' => 'setTargetContentIdentifier', 'big_picture' => 'setBigPicture', + 'global_image' => 'setGlobalImage', 'huawei_big_picture' => 'setHuaweiBigPicture', 'adm_big_picture' => 'setAdmBigPicture', 'chrome_big_picture' => 'setChromeBigPicture', @@ -558,6 +562,7 @@ public static function openAPIFormats() 'mutable_content' => 'getMutableContent', 'target_content_identifier' => 'getTargetContentIdentifier', 'big_picture' => 'getBigPicture', + 'global_image' => 'getGlobalImage', 'huawei_big_picture' => 'getHuaweiBigPicture', 'adm_big_picture' => 'getAdmBigPicture', 'chrome_big_picture' => 'getChromeBigPicture', @@ -770,6 +775,7 @@ public function __construct(?array $data = null) $this->container['mutable_content'] = $data['mutable_content'] ?? null; $this->container['target_content_identifier'] = $data['target_content_identifier'] ?? null; $this->container['big_picture'] = $data['big_picture'] ?? null; + $this->container['global_image'] = $data['global_image'] ?? null; $this->container['huawei_big_picture'] = $data['huawei_big_picture'] ?? null; $this->container['adm_big_picture'] = $data['adm_big_picture'] ?? null; $this->container['chrome_big_picture'] = $data['chrome_big_picture'] ?? null; @@ -1646,6 +1652,30 @@ public function setBigPicture($big_picture) return $this; } + /** + * Gets global_image + * + * @return string|null + */ + public function getGlobalImage() + { + return $this->container['global_image']; + } + + /** + * Sets global_image + * + * @param string|null $global_image 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. + * + * @return self + */ + public function setGlobalImage($global_image) + { + $this->container['global_image'] = $global_image; + + return $this; + } + /** * Gets huawei_big_picture * diff --git a/lib/model/Notification.php b/lib/model/Notification.php index 854d3d4..9389463 100644 --- a/lib/model/Notification.php +++ b/lib/model/Notification.php @@ -105,6 +105,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'mutable_content' => 'bool', 'target_content_identifier' => 'string', 'big_picture' => 'string', + 'global_image' => 'string', 'huawei_big_picture' => 'string', 'adm_big_picture' => 'string', 'chrome_big_picture' => 'string', @@ -233,6 +234,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'mutable_content' => null, 'target_content_identifier' => null, 'big_picture' => null, + 'global_image' => null, 'huawei_big_picture' => null, 'adm_big_picture' => null, 'chrome_big_picture' => null, @@ -380,6 +382,7 @@ public static function openAPIFormats() 'mutable_content' => 'mutable_content', 'target_content_identifier' => 'target_content_identifier', 'big_picture' => 'big_picture', + 'global_image' => 'global_image', 'huawei_big_picture' => 'huawei_big_picture', 'adm_big_picture' => 'adm_big_picture', 'chrome_big_picture' => 'chrome_big_picture', @@ -506,6 +509,7 @@ public static function openAPIFormats() 'mutable_content' => 'setMutableContent', 'target_content_identifier' => 'setTargetContentIdentifier', 'big_picture' => 'setBigPicture', + 'global_image' => 'setGlobalImage', 'huawei_big_picture' => 'setHuaweiBigPicture', 'adm_big_picture' => 'setAdmBigPicture', 'chrome_big_picture' => 'setChromeBigPicture', @@ -632,6 +636,7 @@ public static function openAPIFormats() 'mutable_content' => 'getMutableContent', 'target_content_identifier' => 'getTargetContentIdentifier', 'big_picture' => 'getBigPicture', + 'global_image' => 'getGlobalImage', 'huawei_big_picture' => 'getHuaweiBigPicture', 'adm_big_picture' => 'getAdmBigPicture', 'chrome_big_picture' => 'getChromeBigPicture', @@ -876,6 +881,7 @@ public function __construct(?array $data = null) $this->container['mutable_content'] = $data['mutable_content'] ?? null; $this->container['target_content_identifier'] = $data['target_content_identifier'] ?? null; $this->container['big_picture'] = $data['big_picture'] ?? null; + $this->container['global_image'] = $data['global_image'] ?? null; $this->container['huawei_big_picture'] = $data['huawei_big_picture'] ?? null; $this->container['adm_big_picture'] = $data['adm_big_picture'] ?? null; $this->container['chrome_big_picture'] = $data['chrome_big_picture'] ?? null; @@ -2113,6 +2119,30 @@ public function setBigPicture($big_picture) return $this; } + /** + * Gets global_image + * + * @return string|null + */ + public function getGlobalImage() + { + return $this->container['global_image']; + } + + /** + * Sets global_image + * + * @param string|null $global_image 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. + * + * @return self + */ + public function setGlobalImage($global_image) + { + $this->container['global_image'] = $global_image; + + return $this; + } + /** * Gets huawei_big_picture * diff --git a/lib/model/NotificationWithMeta.php b/lib/model/NotificationWithMeta.php index b5e55c1..d83234e 100644 --- a/lib/model/NotificationWithMeta.php +++ b/lib/model/NotificationWithMeta.php @@ -105,6 +105,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'mutable_content' => 'bool', 'target_content_identifier' => 'string', 'big_picture' => 'string', + 'global_image' => 'string', 'huawei_big_picture' => 'string', 'adm_big_picture' => 'string', 'chrome_big_picture' => 'string', @@ -245,6 +246,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'mutable_content' => null, 'target_content_identifier' => null, 'big_picture' => null, + 'global_image' => null, 'huawei_big_picture' => null, 'adm_big_picture' => null, 'chrome_big_picture' => null, @@ -404,6 +406,7 @@ public static function openAPIFormats() 'mutable_content' => 'mutable_content', 'target_content_identifier' => 'target_content_identifier', 'big_picture' => 'big_picture', + 'global_image' => 'global_image', 'huawei_big_picture' => 'huawei_big_picture', 'adm_big_picture' => 'adm_big_picture', 'chrome_big_picture' => 'chrome_big_picture', @@ -542,6 +545,7 @@ public static function openAPIFormats() 'mutable_content' => 'setMutableContent', 'target_content_identifier' => 'setTargetContentIdentifier', 'big_picture' => 'setBigPicture', + 'global_image' => 'setGlobalImage', 'huawei_big_picture' => 'setHuaweiBigPicture', 'adm_big_picture' => 'setAdmBigPicture', 'chrome_big_picture' => 'setChromeBigPicture', @@ -680,6 +684,7 @@ public static function openAPIFormats() 'mutable_content' => 'getMutableContent', 'target_content_identifier' => 'getTargetContentIdentifier', 'big_picture' => 'getBigPicture', + 'global_image' => 'getGlobalImage', 'huawei_big_picture' => 'getHuaweiBigPicture', 'adm_big_picture' => 'getAdmBigPicture', 'chrome_big_picture' => 'getChromeBigPicture', @@ -936,6 +941,7 @@ public function __construct(?array $data = null) $this->container['mutable_content'] = $data['mutable_content'] ?? null; $this->container['target_content_identifier'] = $data['target_content_identifier'] ?? null; $this->container['big_picture'] = $data['big_picture'] ?? null; + $this->container['global_image'] = $data['global_image'] ?? null; $this->container['huawei_big_picture'] = $data['huawei_big_picture'] ?? null; $this->container['adm_big_picture'] = $data['adm_big_picture'] ?? null; $this->container['chrome_big_picture'] = $data['chrome_big_picture'] ?? null; @@ -2181,6 +2187,30 @@ public function setBigPicture($big_picture) return $this; } + /** + * Gets global_image + * + * @return string|null + */ + public function getGlobalImage() + { + return $this->container['global_image']; + } + + /** + * Sets global_image + * + * @param string|null $global_image 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. + * + * @return self + */ + public function setGlobalImage($global_image) + { + $this->container['global_image'] = $global_image; + + return $this; + } + /** * Gets huawei_big_picture *