uiprotect 7.10.1__py3-none-any.whl → 7.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uiprotect might be problematic. Click here for more details.

uiprotect/api.py CHANGED
@@ -163,6 +163,7 @@ class BaseApiClient:
163
163
  _port: int
164
164
  _username: str
165
165
  _password: str
166
+ _api_key: str | None = None
166
167
  _verify_ssl: bool
167
168
  _ws_timeout: int
168
169
 
@@ -189,6 +190,7 @@ class BaseApiClient:
189
190
  port: int,
190
191
  username: str,
191
192
  password: str,
193
+ api_key: str | None = None,
192
194
  verify_ssl: bool = True,
193
195
  session: aiohttp.ClientSession | None = None,
194
196
  ws_timeout: int = 30,
@@ -203,6 +205,7 @@ class BaseApiClient:
203
205
 
204
206
  self._username = username
205
207
  self._password = password
208
+ self._api_key = api_key
206
209
  self._verify_ssl = verify_ssl
207
210
  self._ws_timeout = ws_timeout
208
211
  self._ws_receive_timeout = ws_receive_timeout
@@ -727,6 +730,7 @@ class ProtectApiClient(BaseApiClient):
727
730
  port: UFP HTTPS port
728
731
  username: UFP username
729
732
  password: UFP password
733
+ api_key: API key for UFP
730
734
  verify_ssl: Verify HTTPS certificate (default: `True`)
731
735
  session: Optional aiohttp session to use (default: generate one)
732
736
  override_connection_host: Use `host` as your `connection_host` for RTSP stream instead of using the one provided by UniFi Protect.
@@ -754,6 +758,7 @@ class ProtectApiClient(BaseApiClient):
754
758
  port: int,
755
759
  username: str,
756
760
  password: str,
761
+ api_key: str | None = None,
757
762
  verify_ssl: bool = True,
758
763
  session: aiohttp.ClientSession | None = None,
759
764
  ws_timeout: int = 30,
@@ -773,6 +778,7 @@ class ProtectApiClient(BaseApiClient):
773
778
  port=port,
774
779
  username=username,
775
780
  password=password,
781
+ api_key=api_key,
776
782
  verify_ssl=verify_ssl,
777
783
  session=session,
778
784
  ws_timeout=ws_timeout,
uiprotect/data/types.py CHANGED
@@ -448,6 +448,7 @@ class AudioStyle(str, UnknownValuesEnumMixin, enum.Enum):
448
448
 
449
449
  @enum.unique
450
450
  class RecordingMode(str, ValuesEnumMixin, enum.Enum):
451
+ ADAPTIVE = "adaptive"
451
452
  ALWAYS = "always"
452
453
  NEVER = "never"
453
454
  SCHEDULE = "schedule"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uiprotect
3
- Version: 7.10.1
3
+ Version: 7.12.0
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  License: MIT
6
6
  Author: UI Protect Maintainers
@@ -1,7 +1,7 @@
1
1
  uiprotect/__init__.py,sha256=Oz6i1tonIz4QWVnEPkbielJDJ3WQdwZVgYtjY4IwGAQ,636
2
2
  uiprotect/__main__.py,sha256=C_bHCOkv5qj6WMy-6ELoY3Y6HDhLxOa1a30CzmbZhsg,462
3
3
  uiprotect/_compat.py,sha256=HThmb1zQZCEssCxYYbQzFhJq8zYYlVaSnIEZabKc-6U,302
4
- uiprotect/api.py,sha256=hfTd_BYyF_B6Ehbe41U99_9CEEAd-eUwLJ0pOpvojV4,71642
4
+ uiprotect/api.py,sha256=g_ETN97xgvVRyw_-ji39ThHrWbORZ33Yfdvqc2Blabg,71840
5
5
  uiprotect/cli/__init__.py,sha256=B70Zdwq4cdw3wyu39uY0lMkjk5EoWLRIfVncuTOZ4AE,9423
6
6
  uiprotect/cli/aiports.py,sha256=wpEr2w_hY18CGpFiQM2Yc0FiVwG_1l2CzZhZLGNigvI,1576
7
7
  uiprotect/cli/backup.py,sha256=ZiS7RZnJGKI8TJKLW2cOUzkRM8nyTvE5Ov_jZZGtvSM,36708
@@ -21,7 +21,7 @@ uiprotect/data/bootstrap.py,sha256=ddNaKrTprN7Zq0ZE3O_F5whepUh6z9GqyrUWxLyZ0HE,2
21
21
  uiprotect/data/convert.py,sha256=xEN878_hm0HZZCVYGwJSxcSp2as9zpkvsemVIibReOA,2628
22
22
  uiprotect/data/devices.py,sha256=akNyLQKCNI8SiA7oUW1cSvE-IZ9Oav8iv9PfESpjits,115839
23
23
  uiprotect/data/nvr.py,sha256=CPmqp3wQouTAGQxUDFghCHsYVWEFSrga1Hf2_HmHDgA,47707
24
- uiprotect/data/types.py,sha256=RDkEsShIv-DOnkDPYnwqL7crS4onoizBSuP2JwShry0,19258
24
+ uiprotect/data/types.py,sha256=Hfm-Y3MSZtFgZ5AvEvhGqJP_YXPgYSUNybheW91RhOc,19284
25
25
  uiprotect/data/user.py,sha256=Del5LUmt5uCfAQMI9-kl_GaKm085oTLjxmcCrlEKXxc,10526
26
26
  uiprotect/data/websocket.py,sha256=m4EV1Qfh08eKOihy70ycViYgEQpeNSGZQJWdtGIYJDA,6791
27
27
  uiprotect/exceptions.py,sha256=kgn0cRM6lTtgLza09SDa3ZiX6ue1QqHCOogQ4qu6KTQ,965
@@ -32,8 +32,8 @@ uiprotect/test_util/__init__.py,sha256=HlQBgIgdtrvT-gQ5OWP92LbgVr_YzsD5NFImLRonU
32
32
  uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
33
33
  uiprotect/utils.py,sha256=5Z30chqnQhQdtD1vabRtZXjBpeiJagL5KDuALQlWxk8,20559
34
34
  uiprotect/websocket.py,sha256=tEyenqblNXHcjWYuf4oRP1E7buNwx6zoECMwpBr-jig,8191
35
- uiprotect-7.10.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
- uiprotect-7.10.1.dist-info/METADATA,sha256=1C9irO8vet8eD1x3spKc00BuMBaiflMimWvqzfJcHU0,11109
37
- uiprotect-7.10.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
- uiprotect-7.10.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
- uiprotect-7.10.1.dist-info/RECORD,,
35
+ uiprotect-7.12.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
36
+ uiprotect-7.12.0.dist-info/METADATA,sha256=o-HA12tK7_j4nxFs4cI_iWiss3NUmOYKyuwHqogscBc,11109
37
+ uiprotect-7.12.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
38
+ uiprotect-7.12.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
39
+ uiprotect-7.12.0.dist-info/RECORD,,