Skip to content

Commit 895e2ca

Browse files
committed
Merge branch 'main' into websocket-client
2 parents b8ad936 + 1a17b6a commit 895e2ca

2 files changed

Lines changed: 86 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,90 @@ No breaking changes in this release.
196196

197197
---
198198

199+
## Version 0.60.4 (March 2026)
200+
201+
**Released**: March 3, 2026
202+
203+
This release updates the OpenAPI submodule to version 2602.1.4, adds the new Map Stacks API, and includes various API improvements and bug fixes.
204+
205+
---
206+
207+
### 1. NEW FEATURES
208+
209+
##### **Site Map Stacks API**
210+
- Added new `sites/mapstacks.py` module with `listSiteMapStacks()` and `createSiteMapStack()` functions
211+
212+
---
213+
214+
### 2. CHANGES
215+
216+
##### **API Function Updates**
217+
- Updated `searchOrgInventory()` in `orgs/inventory.py`: Added `model` parameter for device model filtering
218+
- Updated `searchOrgJsiAssetsAndContracts()` in `orgs/jsi.py`:
219+
- Replaced `eol_duration` and `eos_duration` with date-based filters: `eol_after`, `eol_before`, `eos_after`, `eos_before`
220+
- Added `version_eos_after` and `version_eos_before` for software version end-of-support filtering
221+
- Added `sirt_id` and `pbn_id` for security advisory filtering
222+
- Updated `searchOrgAlarms()` and `searchSiteAlarms()` documentation with Marvis alarm group details
223+
224+
225+
---
226+
227+
### 3. BUG FIXES
228+
229+
- Fixed `APIResponse.data` type annotation to support both `dict` and `list` responses
230+
- Fixed `_check_next()` method to properly handle list responses in pagination
231+
232+
---
233+
234+
### Breaking Changes
235+
236+
- `searchOrgJsiAssetsAndContracts()`: Parameters `eol_duration` and `eos_duration` have been replaced with `eol_after`, `eol_before`, `eos_after`, and `eos_before`
237+
238+
---
239+
240+
## Version 0.60.3 (February 2026)
241+
242+
**Released**: February 21, 2026
243+
244+
This release add a missing query parameter to the `searchOrgWanClients()` function.
245+
246+
---
247+
248+
### 1. CHANGES
249+
250+
##### **API Function Updates**
251+
- Updated `searchOrgWanClients()` and related functions in `orgs/wan_clients.py`.
252+
253+
---
254+
255+
## Version 0.60.1 (February 2026)
256+
257+
**Released**: February 21, 2026
258+
259+
This release includes function updates and bug fixes in the self/logs.py and sites/sle.py modules.
260+
261+
---
262+
263+
### 1. CHANGES
264+
265+
##### **API Function Updates**
266+
- Updated `listSelfAuditLogs()` and related functions in `self/logs.py`.
267+
- Updated deprecated and new SLE classifier functions in `sites/sle.py`.
268+
269+
---
270+
271+
### 2. BUG FIXES
272+
273+
- Minor bug fixes and improvements in API modules.
274+
275+
---
276+
277+
### Breaking Changes
278+
279+
No breaking changes in this release.
280+
281+
---
282+
199283
## Version 0.60.0 (February 2026)
200284

201285
**Released**: February 19, 2026

src/mistapi/__api_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(
3434
URL of the HTTP Request
3535
"""
3636
self.raw_data: str = ""
37-
self.data: dict = {}
37+
self.data: dict | list = {}
3838
self.url: str = url
3939
self.next: str | None = None
4040
self.headers: CaseInsensitiveDict[str] | None = None
@@ -67,7 +67,7 @@ def __init__(
6767

6868
def _check_next(self) -> None:
6969
logger.debug("apiresponse:_check_next")
70-
if "next" in self.data:
70+
if isinstance(self.data, dict) and "next" in self.data:
7171
self.next = self.data["next"]
7272
logger.debug(f"apiresponse:_check_next:set next to {self.next}")
7373
elif self.headers:

0 commit comments

Comments
 (0)