diff --git a/composer.lock b/composer.lock index 37d08f1..3655532 100755 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "art-of-wifi/unifi-api-client", - "version": "v1.1.95", + "version": "v1.1.97", "source": { "type": "git", "url": "https://github.com/Art-of-WiFi/UniFi-API-client.git", - "reference": "b633fa54c738b7cfac5ca27b8126161eac5f8e5b" + "reference": "6498b0255b0963ad914076ddda7f74df4fd2eb73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/b633fa54c738b7cfac5ca27b8126161eac5f8e5b", - "reference": "b633fa54c738b7cfac5ca27b8126161eac5f8e5b", + "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/6498b0255b0963ad914076ddda7f74df4fd2eb73", + "reference": "6498b0255b0963ad914076ddda7f74df4fd2eb73", "shasum": "" }, "require": { @@ -54,9 +54,9 @@ ], "support": { "issues": "https://github.com/Art-of-WiFi/UniFi-API-client/issues", - "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v1.1.95" + "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v1.1.97" }, - "time": "2024-10-07T10:54:19+00:00" + "time": "2024-10-17T12:56:47+00:00" }, { "name": "kint-php/kint", diff --git a/vendor/art-of-wifi/unifi-api-client/src/Client.php b/vendor/art-of-wifi/unifi-api-client/src/Client.php index 9f6ebbb..72af179 100755 --- a/vendor/art-of-wifi/unifi-api-client/src/Client.php +++ b/vendor/art-of-wifi/unifi-api-client/src/Client.php @@ -13,7 +13,6 @@ * * @package UniFi_Controller_API_Client_Class * @author Art of WiFi - * @version Release: 1.1.92 * @license This class is subject to the MIT license that is bundled with this package in the file LICENSE.md * @example This directory in the package repository contains a collection of examples: * https://github.com/Art-of-WiFi/UniFi-API-client/tree/master/examples @@ -21,7 +20,7 @@ class Client { /** Constants. */ - const CLASS_VERSION = '1.1.95'; + const CLASS_VERSION = '1.1.96'; const CURL_METHODS_ALLOWED = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH']; const DEFAULT_CURL_METHOD = 'GET'; @@ -1490,7 +1489,7 @@ public function list_rogueaps(int $within = 24) } /** - * Fetch known rogue access points + * Fetch known rogue access points. * * @return array|bool containing known rogue access point objects */ @@ -1500,7 +1499,7 @@ public function list_known_rogueaps() } /** - * Generate a backup + * Generate a backup. * * @note this is an experimental function, please do not use unless you know exactly what you're doing * @param int $days number of days for which the backup must be generated @@ -1514,7 +1513,19 @@ public function generate_backup(int $days = -1) } /** - * Fetch auto backups + * Download a generated backup file. + * + * @note this is an experimental function, please do not use unless you know exactly what you're doing + * @param string $filepath the path to the generated backup file + * @return string|bool the raw content of the backup file, false upon failure + */ + public function download_backup(string $filepath) + { + return $this->exec_curl($filepath); + } + + /** + * Fetch auto backups. * * @return array|bool containing objects with backup details on success */ @@ -1526,7 +1537,7 @@ public function list_backups() } /** - * Generate a backup/export of the current site + * Generate a backup/export of the current site. * * @note this is an experimental function, please do not use unless you know exactly what you're doing * @return array|bool URL from where the backup/export file can be downloaded once generated, false upon failure @@ -3102,7 +3113,7 @@ public function upgrade_device_external(string $firmware_url, $macs): bool */ public function start_rolling_upgrade(): bool { - return $this->fetch_results_boolean('/api/s/' . $this->site . '/cmd/devmgr/set-rollupgrade'); + return $this->fetch_results_boolean('/api/s/' . $this->site . '/cmd/devmgr/set-rollupgrade', ['uap', 'usw', 'ugw']); } /** diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 1dd620b..25135a5 100755 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,17 +2,17 @@ "packages": [ { "name": "art-of-wifi/unifi-api-client", - "version": "v1.1.95", - "version_normalized": "1.1.95.0", + "version": "v1.1.97", + "version_normalized": "1.1.97.0", "source": { "type": "git", "url": "https://github.com/Art-of-WiFi/UniFi-API-client.git", - "reference": "b633fa54c738b7cfac5ca27b8126161eac5f8e5b" + "reference": "6498b0255b0963ad914076ddda7f74df4fd2eb73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/b633fa54c738b7cfac5ca27b8126161eac5f8e5b", - "reference": "b633fa54c738b7cfac5ca27b8126161eac5f8e5b", + "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/6498b0255b0963ad914076ddda7f74df4fd2eb73", + "reference": "6498b0255b0963ad914076ddda7f74df4fd2eb73", "shasum": "" }, "require": { @@ -20,7 +20,7 @@ "ext-json": "*", "php": ">=7.4.0" }, - "time": "2024-10-07T10:54:19+00:00", + "time": "2024-10-17T12:56:47+00:00", "type": "library", "installation-source": "source", "autoload": { @@ -51,7 +51,7 @@ ], "support": { "issues": "https://github.com/Art-of-WiFi/UniFi-API-client/issues", - "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v1.1.95" + "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v1.1.97" }, "install-path": "../art-of-wifi/unifi-api-client" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index b3720b6..21b9c27 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '3581cf926e559c55ae2c8737f81d5bd6d2cbc304', + 'reference' => '3bb0801a23ac0ce6861bfb24571f2418ee07b61c', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,16 +13,16 @@ '__root__' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => '3581cf926e559c55ae2c8737f81d5bd6d2cbc304', + 'reference' => '3bb0801a23ac0ce6861bfb24571f2418ee07b61c', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => false, ), 'art-of-wifi/unifi-api-client' => array( - 'pretty_version' => 'v1.1.95', - 'version' => '1.1.95.0', - 'reference' => 'b633fa54c738b7cfac5ca27b8126161eac5f8e5b', + 'pretty_version' => 'v1.1.97', + 'version' => '1.1.97.0', + 'reference' => '6498b0255b0963ad914076ddda7f74df4fd2eb73', 'type' => 'library', 'install_path' => __DIR__ . '/../art-of-wifi/unifi-api-client', 'aliases' => array(),