diff --git a/generated/Configuration.php b/generated/Configuration.php index 7835e75..c25ec01 100644 --- a/generated/Configuration.php +++ b/generated/Configuration.php @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.13.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.14.0/PHP'; /** * Debug switch (default set to false) @@ -433,7 +433,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 1.13.0' . PHP_EOL; + $report .= ' SDK Package Version: 1.14.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/generated/Model/LiveActivityStreamDeleteResponse.php b/generated/Model/LiveActivityStreamDeleteResponse.php index 6af99a6..4e4fabd 100644 --- a/generated/Model/LiveActivityStreamDeleteResponse.php +++ b/generated/Model/LiveActivityStreamDeleteResponse.php @@ -68,6 +68,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \ 'ignored' => 'bool', 'message' => 'string', 'forcedCompletion' => 'bool', + 'delivered' => 'bool', 'warning' => 'string', 'errors' => 'string[]' ]; @@ -90,6 +91,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \ 'ignored' => null, 'message' => null, 'forcedCompletion' => null, + 'delivered' => null, 'warning' => null, 'errors' => null ]; @@ -110,6 +112,7 @@ class LiveActivityStreamDeleteResponse implements ModelInterface, ArrayAccess, \ 'ignored' => false, 'message' => false, 'forcedCompletion' => false, + 'delivered' => false, 'warning' => false, 'errors' => false ]; @@ -210,6 +213,7 @@ public function isNullableSetToNull(string $property): bool 'ignored' => 'ignored', 'message' => 'message', 'forcedCompletion' => 'forced_completion', + 'delivered' => 'delivered', 'warning' => 'warning', 'errors' => 'errors' ]; @@ -230,6 +234,7 @@ public function isNullableSetToNull(string $property): bool 'ignored' => 'setIgnored', 'message' => 'setMessage', 'forcedCompletion' => 'setForcedCompletion', + 'delivered' => 'setDelivered', 'warning' => 'setWarning', 'errors' => 'setErrors' ]; @@ -250,6 +255,7 @@ public function isNullableSetToNull(string $property): bool 'ignored' => 'getIgnored', 'message' => 'getMessage', 'forcedCompletion' => 'getForcedCompletion', + 'delivered' => 'getDelivered', 'warning' => 'getWarning', 'errors' => 'getErrors' ]; @@ -334,6 +340,7 @@ public function __construct(array $data = null) $this->setIfExists('ignored', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); $this->setIfExists('forcedCompletion', $data ?? [], null); + $this->setIfExists('delivered', $data ?? [], null); $this->setIfExists('warning', $data ?? [], null); $this->setIfExists('errors', $data ?? [], null); } @@ -688,6 +695,33 @@ public function setForcedCompletion($forcedCompletion) return $this; } + /** + * Gets delivered + * + * @return bool|null + */ + public function getDelivered() + { + return $this->container['delivered']; + } + + /** + * Sets delivered + * + * @param bool|null $delivered Present when the stream had a current Live Activity. True when the end was sent to at least one device, or queued for a device that has not registered yet. False when no device received it, so the Live Activity may stay on the Lock Screen until iOS removes it or someone dismisses it. + * + * @return self + */ + public function setDelivered($delivered) + { + if (is_null($delivered)) { + throw new \InvalidArgumentException('non-nullable delivered cannot be null'); + } + $this->container['delivered'] = $delivered; + + return $this; + } + /** * Gets warning * @@ -701,7 +735,7 @@ public function getWarning() /** * Sets warning * - * @param string|null $warning warning + * @param string|null $warning Explains why the end may not have removed the Live Activity, for example because iOS had already ended a Live Activity that started more than 8 hours ago. * * @return self */ diff --git a/generated/Model/NoRecipientsError.php b/generated/Model/NoRecipientsError.php index 7f430ed..a3a8d79 100644 --- a/generated/Model/NoRecipientsError.php +++ b/generated/Model/NoRecipientsError.php @@ -58,7 +58,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPITypes = [ 'error' => 'string', + 'code' => 'string', 'message' => 'string', + 'appStoreUrl' => 'string', 'effectiveChannelSlugs' => 'string[]' ]; @@ -71,7 +73,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static $openAPIFormats = [ 'error' => null, + 'code' => null, 'message' => null, + 'appStoreUrl' => 'uri', 'effectiveChannelSlugs' => null ]; @@ -82,7 +86,9 @@ class NoRecipientsError implements ModelInterface, ArrayAccess, \JsonSerializabl */ protected static array $openAPINullables = [ 'error' => false, + 'code' => false, 'message' => false, + 'appStoreUrl' => false, 'effectiveChannelSlugs' => false ]; @@ -173,7 +179,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'error' => 'error', + 'code' => 'code', 'message' => 'message', + 'appStoreUrl' => 'app_store_url', 'effectiveChannelSlugs' => 'effective_channel_slugs' ]; @@ -184,7 +192,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'error' => 'setError', + 'code' => 'setCode', 'message' => 'setMessage', + 'appStoreUrl' => 'setAppStoreUrl', 'effectiveChannelSlugs' => 'setEffectiveChannelSlugs' ]; @@ -195,7 +205,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'error' => 'getError', + 'code' => 'getCode', 'message' => 'getMessage', + 'appStoreUrl' => 'getAppStoreUrl', 'effectiveChannelSlugs' => 'getEffectiveChannelSlugs' ]; @@ -257,7 +269,9 @@ public function getModelName() public function __construct(array $data = null) { $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('code', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('appStoreUrl', $data ?? [], null); $this->setIfExists('effectiveChannelSlugs', $data ?? [], null); } @@ -336,6 +350,33 @@ public function setError($error) return $this; } + /** + * Gets code + * + * @return string|null + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string|null $code Machine-readable reason. no_paired_devices: the account has no active paired iOS devices; pair an iPhone with the ActivitySmith app. no_recipients_found: devices are paired, but none matched the targeted channels. Treat unknown values as a generic no-delivery error. + * + * @return self + */ + public function setCode($code) + { + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); + } + $this->container['code'] = $code; + + return $this; + } + /** * Gets message * @@ -363,6 +404,33 @@ public function setMessage($message) return $this; } + /** + * Gets appStoreUrl + * + * @return string|null + */ + public function getAppStoreUrl() + { + return $this->container['appStoreUrl']; + } + + /** + * Sets appStoreUrl + * + * @param string|null $appStoreUrl ActivitySmith App Store link. Present when code is no_paired_devices. + * + * @return self + */ + public function setAppStoreUrl($appStoreUrl) + { + if (is_null($appStoreUrl)) { + throw new \InvalidArgumentException('non-nullable appStoreUrl cannot be null'); + } + $this->container['appStoreUrl'] = $appStoreUrl; + + return $this; + } + /** * Gets effectiveChannelSlugs * diff --git a/generated/Model/UpdateAppIconBadgeCount422Response.php b/generated/Model/UpdateAppIconBadgeCount422Response.php index 9b314f0..adb0e7b 100644 --- a/generated/Model/UpdateAppIconBadgeCount422Response.php +++ b/generated/Model/UpdateAppIconBadgeCount422Response.php @@ -58,9 +58,10 @@ class UpdateAppIconBadgeCount422Response implements ModelInterface, ArrayAccess, */ protected static $openAPITypes = [ 'error' => 'string', + 'code' => 'string', 'message' => 'string', + 'appStoreUrl' => 'string', 'effectiveChannelSlugs' => 'string[]', - 'code' => 'string', 'badge' => 'int', 'devicesTargeted' => 'int', 'devicesUpdated' => 'int', @@ -77,9 +78,10 @@ class UpdateAppIconBadgeCount422Response implements ModelInterface, ArrayAccess, */ protected static $openAPIFormats = [ 'error' => null, + 'code' => null, 'message' => null, + 'appStoreUrl' => 'uri', 'effectiveChannelSlugs' => null, - 'code' => null, 'badge' => null, 'devicesTargeted' => null, 'devicesUpdated' => null, @@ -94,9 +96,10 @@ class UpdateAppIconBadgeCount422Response implements ModelInterface, ArrayAccess, */ protected static array $openAPINullables = [ 'error' => false, + 'code' => false, 'message' => false, + 'appStoreUrl' => false, 'effectiveChannelSlugs' => false, - 'code' => false, 'badge' => false, 'devicesTargeted' => false, 'devicesUpdated' => false, @@ -191,9 +194,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'error' => 'error', + 'code' => 'code', 'message' => 'message', + 'appStoreUrl' => 'app_store_url', 'effectiveChannelSlugs' => 'effective_channel_slugs', - 'code' => 'code', 'badge' => 'badge', 'devicesTargeted' => 'devices_targeted', 'devicesUpdated' => 'devices_updated', @@ -208,9 +212,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'error' => 'setError', + 'code' => 'setCode', 'message' => 'setMessage', + 'appStoreUrl' => 'setAppStoreUrl', 'effectiveChannelSlugs' => 'setEffectiveChannelSlugs', - 'code' => 'setCode', 'badge' => 'setBadge', 'devicesTargeted' => 'setDevicesTargeted', 'devicesUpdated' => 'setDevicesUpdated', @@ -225,9 +230,10 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'error' => 'getError', + 'code' => 'getCode', 'message' => 'getMessage', + 'appStoreUrl' => 'getAppStoreUrl', 'effectiveChannelSlugs' => 'getEffectiveChannelSlugs', - 'code' => 'getCode', 'badge' => 'getBadge', 'devicesTargeted' => 'getDevicesTargeted', 'devicesUpdated' => 'getDevicesUpdated', @@ -308,9 +314,10 @@ public function getCodeAllowableValues() public function __construct(array $data = null) { $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('code', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('appStoreUrl', $data ?? [], null); $this->setIfExists('effectiveChannelSlugs', $data ?? [], null); - $this->setIfExists('code', $data ?? [], null); $this->setIfExists('badge', $data ?? [], null); $this->setIfExists('devicesTargeted', $data ?? [], null); $this->setIfExists('devicesUpdated', $data ?? [], null); @@ -348,9 +355,6 @@ public function listInvalidProperties() if ($this->container['error'] === null) { $invalidProperties[] = "'error' can't be null"; } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } if ($this->container['code'] === null) { $invalidProperties[] = "'code' can't be null"; } @@ -363,6 +367,9 @@ public function listInvalidProperties() ); } + if ($this->container['message'] === null) { + $invalidProperties[] = "'message' can't be null"; + } if ($this->container['badge'] === null) { $invalidProperties[] = "'badge' can't be null"; } @@ -419,6 +426,43 @@ public function setError($error) return $this; } + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return self + */ + public function setCode($code) + { + if (is_null($code)) { + throw new \InvalidArgumentException('non-nullable code cannot be null'); + } + $allowedValues = $this->getCodeAllowableValues(); + if (!in_array($code, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'code', must be one of '%s'", + $code, + implode("', '", $allowedValues) + ) + ); + } + $this->container['code'] = $code; + + return $this; + } + /** * Gets message * @@ -447,65 +491,55 @@ public function setMessage($message) } /** - * Gets effectiveChannelSlugs + * Gets appStoreUrl * - * @return string[]|null + * @return string|null */ - public function getEffectiveChannelSlugs() + public function getAppStoreUrl() { - return $this->container['effectiveChannelSlugs']; + return $this->container['appStoreUrl']; } /** - * Sets effectiveChannelSlugs + * Sets appStoreUrl * - * @param string[]|null $effectiveChannelSlugs effectiveChannelSlugs + * @param string|null $appStoreUrl ActivitySmith App Store link. Present when code is no_paired_devices. * * @return self */ - public function setEffectiveChannelSlugs($effectiveChannelSlugs) + public function setAppStoreUrl($appStoreUrl) { - if (is_null($effectiveChannelSlugs)) { - throw new \InvalidArgumentException('non-nullable effectiveChannelSlugs cannot be null'); + if (is_null($appStoreUrl)) { + throw new \InvalidArgumentException('non-nullable appStoreUrl cannot be null'); } - $this->container['effectiveChannelSlugs'] = $effectiveChannelSlugs; + $this->container['appStoreUrl'] = $appStoreUrl; return $this; } /** - * Gets code + * Gets effectiveChannelSlugs * - * @return string + * @return string[]|null */ - public function getCode() + public function getEffectiveChannelSlugs() { - return $this->container['code']; + return $this->container['effectiveChannelSlugs']; } /** - * Sets code + * Sets effectiveChannelSlugs * - * @param string $code code + * @param string[]|null $effectiveChannelSlugs effectiveChannelSlugs * * @return self */ - public function setCode($code) + public function setEffectiveChannelSlugs($effectiveChannelSlugs) { - if (is_null($code)) { - throw new \InvalidArgumentException('non-nullable code cannot be null'); - } - $allowedValues = $this->getCodeAllowableValues(); - if (!in_array($code, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'code', must be one of '%s'", - $code, - implode("', '", $allowedValues) - ) - ); + if (is_null($effectiveChannelSlugs)) { + throw new \InvalidArgumentException('non-nullable effectiveChannelSlugs cannot be null'); } - $this->container['code'] = $code; + $this->container['effectiveChannelSlugs'] = $effectiveChannelSlugs; return $this; } diff --git a/generated/openapi-source.json b/generated/openapi-source.json index 28e1d47..8c9c874 100644 --- a/generated/openapi-source.json +++ b/generated/openapi-source.json @@ -1,6 +1,6 @@ { "repository": "ActivitySmithHQ/activitysmith-backend", - "commit": "dd6757c5defa3d1e6524faef789b6829184fb852", + "commit": "ab7064d65ad2097e3b57dc435c10b4f80a0ee27e", "path": "openapi.json", - "sha256": "24dae2d064095351d5e5cf800228e64a2d23c40b1e31a9754503081ddf31c5d8" + "sha256": "f0548e423e06f90169dae8d935b08f78291e9dbf95d4ae591e6d10d8eb269448" }