Skip to content

Commit f7144a8

Browse files
github-actions[bot]MScottBlake
authored andcommitted
[auto] Updated Kandji SDK
1 parent 7ac677b commit f7144a8

8 files changed

Lines changed: 74 additions & 77 deletions

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs/VulnerabilitiesApi.md
8181
docs/VulnerabilitiesGetVulnerabilityDescription200Response.md
8282
docs/VulnerabilitiesListAffectedApps200Response.md
8383
docs/VulnerabilitiesListDetections200Response.md
84+
docs/VulnerabilitiesListVulnerabilities200Response.md
8485
git_push.sh
8586
kandji/__init__.py
8687
kandji/api/__init__.py
@@ -167,6 +168,7 @@ kandji/models/users_get_user200_response_integration.py
167168
kandji/models/vulnerabilities_get_vulnerability_description200_response.py
168169
kandji/models/vulnerabilities_list_affected_apps200_response.py
169170
kandji/models/vulnerabilities_list_detections200_response.py
171+
kandji/models/vulnerabilities_list_vulnerabilities200_response.py
170172
kandji/py.typed
171173
kandji/rest.py
172174
pyproject.toml

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ Class | Method | HTTP request | Description
387387
- [VulnerabilitiesGetVulnerabilityDescription200Response](docs/VulnerabilitiesGetVulnerabilityDescription200Response.md)
388388
- [VulnerabilitiesListAffectedApps200Response](docs/VulnerabilitiesListAffectedApps200Response.md)
389389
- [VulnerabilitiesListDetections200Response](docs/VulnerabilitiesListDetections200Response.md)
390+
- [VulnerabilitiesListVulnerabilities200Response](docs/VulnerabilitiesListVulnerabilities200Response.md)
390391

391392

392393
<a id="documentation-for-authorization"></a>

docs/VulnerabilitiesApi.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ with kandji.ApiClient(configuration) as api_client:
129129
cve_id = 'cve_id_example' # str |
130130
page = '' # str | The page number of the response. (optional)
131131
size = '50' # str | A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
132-
sort_by = 'cve_id' # str | Field to sort by. Example: sort_by=app_name. (optional)
133-
filter = '{\"created_at\":{\"gte\":\"2025-05-23T17:11:31.816587Z\"}}' # str | <p>Filterable columns:</p> <ul> <li>blueprint_id</li> <li>created_at</li> </ul> (optional)
132+
sort_by = 'software' # str | <p>Field to sort by.</p> <ul> <li>software (software name)</li> <li>detection_datetime</li> </ul> (optional)
133+
filter = '{\"detection_datetime\":{\"gte\":\"2025-05-23T17:11:31.816587Z\"}}' # str | <p>Filter results. Similar to prism filters. Filterable columns</p> <ul> <li>blueprint_id</li> <li>detection_datetime</li> </ul> (optional)
134134

135135
try:
136136
# List Affected Apps
@@ -151,8 +151,8 @@ Name | Type | Description | Notes
151151
**cve_id** | **str**| |
152152
**page** | **str**| The page number of the response. | [optional]
153153
**size** | **str**| A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. | [optional]
154-
**sort_by** | **str**| Field to sort by. Example: sort_by&#x3D;app_name. | [optional]
155-
**filter** | **str**| &lt;p&gt;Filterable columns:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;blueprint_id&lt;/li&gt; &lt;li&gt;created_at&lt;/li&gt; &lt;/ul&gt; | [optional]
154+
**sort_by** | **str**| &lt;p&gt;Field to sort by.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;software (software name)&lt;/li&gt; &lt;li&gt;detection_datetime&lt;/li&gt; &lt;/ul&gt; | [optional]
155+
**filter** | **str**| &lt;p&gt;Filter results. Similar to prism filters. Filterable columns&lt;/p&gt; &lt;ul&gt; &lt;li&gt;blueprint_id&lt;/li&gt; &lt;li&gt;detection_datetime&lt;/li&gt; &lt;/ul&gt; | [optional]
156156

157157
### Return type
158158

@@ -215,8 +215,8 @@ with kandji.ApiClient(configuration) as api_client:
215215
cve_id = 'cve_id_example' # str |
216216
page = '' # str | The page number of the response. (optional)
217217
size = '50' # str | A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
218-
sort_by = 'cve_id' # str | Field to sort by. Example: sort_by=app_name. (optional)
219-
filter = '{\"detection_datetime\":{\"gte\":\"2025-05-23T17:11:31.816587Z\"}}' # str | <p>Filterable columns:</p> <ul> <li>blueprint_id</li> <li>detection_datetime</li> </ul> (optional)
218+
sort_by = 'software_name' # str | <p>Field to sort by.</p> <ul> <li>name (device name)</li> <li>detection_datetime</li> </ul> (optional)
219+
filter = '{\"detection_datetime\":{\"gte\":\"2025-05-23T17:11:31.816587Z\"}}' # str | <p>Filterable columns:</p> <ul> <li>name</li> <li>detection_datetime</li> </ul> (optional)
220220

221221
try:
222222
# List Affected Devices
@@ -237,8 +237,8 @@ Name | Type | Description | Notes
237237
**cve_id** | **str**| |
238238
**page** | **str**| The page number of the response. | [optional]
239239
**size** | **str**| A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. | [optional]
240-
**sort_by** | **str**| Field to sort by. Example: sort_by&#x3D;app_name. | [optional]
241-
**filter** | **str**| &lt;p&gt;Filterable columns:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;blueprint_id&lt;/li&gt; &lt;li&gt;detection_datetime&lt;/li&gt; &lt;/ul&gt; | [optional]
240+
**sort_by** | **str**| &lt;p&gt;Field to sort by.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;name (device name)&lt;/li&gt; &lt;li&gt;detection_datetime&lt;/li&gt; &lt;/ul&gt; | [optional]
241+
**filter** | **str**| &lt;p&gt;Filterable columns:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;name&lt;/li&gt; &lt;li&gt;detection_datetime&lt;/li&gt; &lt;/ul&gt; | [optional]
242242

243243
### Return type
244244

@@ -344,18 +344,19 @@ Name | Type | Description | Notes
344344
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
345345

346346
# **list_vulnerabilities**
347-
> object list_vulnerabilities(page=page, size=size, sort_by=sort_by, filter=filter)
347+
> VulnerabilitiesListVulnerabilities200Response list_vulnerabilities(page=page, size=size, sort_by=sort_by, filter=filter)
348348
349349
List Vulnerabilities
350350

351-
Retrieve a list of all vulnerabilities grouped by cve.
351+
Retrieve a list of all vulnerabilities grouped by CVE.
352352

353353
### Example
354354

355355
* Bearer (API Token) Authentication (bearer):
356356

357357
```python
358358
import kandji
359+
from kandji.models.vulnerabilities_list_vulnerabilities200_response import VulnerabilitiesListVulnerabilities200Response
359360
from kandji.rest import ApiException
360361
from pprint import pprint
361362

@@ -381,8 +382,8 @@ with kandji.ApiClient(configuration) as api_client:
381382
api_instance = kandji.VulnerabilitiesApi(api_client)
382383
page = '' # str | The page number of the response. (optional)
383384
size = '50' # str | A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. (optional)
384-
sort_by = 'cve_id' # str | <p>Field to sort by.</p> <ul> <li>cve_id</li> <li>software (the name of the software)</li> <li>cvss_severity</li> <li>first_detection_date</li> <li>latest_detection_date</li> </ul> (optional)
385-
filter = '{\"cve_id\":{\"in\":[\"CVE-2024-24795\"]}}' # str | <p>Filterable columns</p> <ul> <li>cve_id</li> <li>app_name</li> <li>severity</li> <li>first_detection_date</li> <li>latest_detection_date</li> </ul> (optional)
385+
sort_by = 'cve_id' # str | <p>Field to sort by.</p> <ul> <li><p>age</p> </li> <li><p>cve_id</p> </li> <li><p>cvss_score</p> </li> <li><p>device_count</p> </li> <li><p>known_exploit</p> </li> <li><p>software (software name)</p> </li> <li><p>severity</p> </li> <li><p>status</p> </li> </ul> (optional)
386+
filter = '{\"cve_id\":{\"in\":[\"CVE-2024-24795\"]}}' # str | <p>Filter results. Similar to prism filters. Filterable columns</p> <ul> <li>cve_id</li> <li>software</li> <li>severity</li> <li>first_detection_date</li> <li>status</li> </ul> (optional)
386387

387388
try:
388389
# List Vulnerabilities
@@ -402,12 +403,12 @@ Name | Type | Description | Notes
402403
------------- | ------------- | ------------- | -------------
403404
**page** | **str**| The page number of the response. | [optional]
404405
**size** | **str**| A hard upper limit is set at 50 records returned per request. If more records are expected, pagination should be used using the URL value returned in the next attribute. Additionally, filters can be added to a request to limit the results. | [optional]
405-
**sort_by** | **str**| &lt;p&gt;Field to sort by.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cve_id&lt;/li&gt; &lt;li&gt;software (the name of the software)&lt;/li&gt; &lt;li&gt;cvss_severity&lt;/li&gt; &lt;li&gt;first_detection_date&lt;/li&gt; &lt;li&gt;latest_detection_date&lt;/li&gt; &lt;/ul&gt; | [optional]
406-
**filter** | **str**| &lt;p&gt;Filterable columns&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cve_id&lt;/li&gt; &lt;li&gt;app_name&lt;/li&gt; &lt;li&gt;severity&lt;/li&gt; &lt;li&gt;first_detection_date&lt;/li&gt; &lt;li&gt;latest_detection_date&lt;/li&gt; &lt;/ul&gt; | [optional]
406+
**sort_by** | **str**| &lt;p&gt;Field to sort by.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;p&gt;age&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;cve_id&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;cvss_score&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;device_count&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;known_exploit&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;software (software name)&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;severity&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;status&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; | [optional]
407+
**filter** | **str**| &lt;p&gt;Filter results. Similar to prism filters. Filterable columns&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cve_id&lt;/li&gt; &lt;li&gt;software&lt;/li&gt; &lt;li&gt;severity&lt;/li&gt; &lt;li&gt;first_detection_date&lt;/li&gt; &lt;li&gt;status&lt;/li&gt; &lt;/ul&gt; | [optional]
407408

408409
### Return type
409410

410-
**object**
411+
[**VulnerabilitiesListVulnerabilities200Response**](VulnerabilitiesListVulnerabilities200Response.md)
411412

412413
### Authorization
413414

docs/VulnerabilitiesListVulnerabilities200Response.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**next** | **object** | | [optional]
9-
**previous** | **object** | | [optional]
108
**results** | **object** | | [optional]
9+
**size** | **int** | | [optional]
1110
**total** | **int** | | [optional]
1211

1312
## Example

kandji/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"VulnerabilitiesGetVulnerabilityDescription200Response",
107107
"VulnerabilitiesListAffectedApps200Response",
108108
"VulnerabilitiesListDetections200Response",
109+
"VulnerabilitiesListVulnerabilities200Response",
109110
]
110111

111112
if __import__("typing").TYPE_CHECKING:
@@ -201,6 +202,7 @@
201202
from kandji.models.vulnerabilities_get_vulnerability_description200_response import VulnerabilitiesGetVulnerabilityDescription200Response as VulnerabilitiesGetVulnerabilityDescription200Response
202203
from kandji.models.vulnerabilities_list_affected_apps200_response import VulnerabilitiesListAffectedApps200Response as VulnerabilitiesListAffectedApps200Response
203204
from kandji.models.vulnerabilities_list_detections200_response import VulnerabilitiesListDetections200Response as VulnerabilitiesListDetections200Response
205+
from kandji.models.vulnerabilities_list_vulnerabilities200_response import VulnerabilitiesListVulnerabilities200Response as VulnerabilitiesListVulnerabilities200Response
204206

205207
else:
206208
from lazy_imports import LazyModule, as_package, load
@@ -302,6 +304,7 @@
302304
from kandji.models.vulnerabilities_get_vulnerability_description200_response import VulnerabilitiesGetVulnerabilityDescription200Response as VulnerabilitiesGetVulnerabilityDescription200Response
303305
from kandji.models.vulnerabilities_list_affected_apps200_response import VulnerabilitiesListAffectedApps200Response as VulnerabilitiesListAffectedApps200Response
304306
from kandji.models.vulnerabilities_list_detections200_response import VulnerabilitiesListDetections200Response as VulnerabilitiesListDetections200Response
307+
from kandji.models.vulnerabilities_list_vulnerabilities200_response import VulnerabilitiesListVulnerabilities200Response as VulnerabilitiesListVulnerabilities200Response
305308
306309
""",
307310
name=__name__,

0 commit comments

Comments
 (0)