crowdsec-tracker-api 1.94.2__tar.gz → 1.95.0__tar.gz

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.
Files changed (17) hide show
  1. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/PKG-INFO +1 -1
  2. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/models.py +11 -1
  3. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/services/cves.py +1 -1
  4. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/services/integrations.py +7 -2
  5. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api.egg-info/PKG-INFO +1 -1
  6. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/pyproject.toml +1 -1
  7. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/LICENSE +0 -0
  8. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/README.md +0 -0
  9. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/__init__.py +0 -0
  10. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/base_model.py +0 -0
  11. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/http_client.py +0 -0
  12. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api/services/__init__.py +0 -0
  13. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api.egg-info/SOURCES.txt +0 -0
  14. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api.egg-info/dependency_links.txt +0 -0
  15. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api.egg-info/requires.txt +0 -0
  16. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/crowdsec_tracker_api.egg-info/top_level.txt +0 -0
  17. {crowdsec_tracker_api-1.94.2 → crowdsec_tracker_api-1.95.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crowdsec_tracker_api
3
- Version: 1.94.2
3
+ Version: 1.95.0
4
4
  Summary: This is the API to manage Crowdsec Live Exploit Tracker service
5
5
  Author-email: crowdsec <info@crowdsec.net>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: <stdin>
3
- # timestamp: 2025-12-29T14:24:53+00:00
3
+ # timestamp: 2025-12-31T15:56:47+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -445,6 +445,16 @@ class IntegrationsUpdateIntegrationPathParameters(BaseModelSdk):
445
445
  integration_id: Annotated[str, Field(title='Integration Id')]
446
446
 
447
447
 
448
+ class IntegrationsDeleteIntegrationQueryParameters(BaseModelSdk):
449
+ force: Annotated[
450
+ Optional[bool],
451
+ Field(
452
+ description='Force delete the integration even if it has active subscriptions (it will unsubscribe from all lists)',
453
+ title='Force',
454
+ ),
455
+ ] = False
456
+
457
+
448
458
  class IntegrationsDeleteIntegrationPathParameters(BaseModelSdk):
449
459
  integration_id: Annotated[str, Field(title='Integration Id')]
450
460
 
@@ -11,7 +11,7 @@ from ..http_client import HttpClient
11
11
 
12
12
  class Cves(Service):
13
13
  def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14
- super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.94.2")
14
+ super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.95.0")
15
15
 
16
16
  def get_cves(
17
17
  self,
@@ -11,7 +11,7 @@ from ..http_client import HttpClient
11
11
 
12
12
  class Integrations(Service):
13
13
  def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14
- super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.94.2")
14
+ super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.95.0")
15
15
 
16
16
  def get_integrations(
17
17
  self,
@@ -77,11 +77,16 @@ class Integrations(Service):
77
77
  def delete_integration(
78
78
  self,
79
79
  integration_id: str,
80
+ force: bool = False,
80
81
  ):
81
82
  endpoint_url = "/integrations/{integration_id}"
82
83
  loc = locals()
83
84
  headers = {}
84
- params = {}
85
+ params = json.loads(
86
+ IntegrationsDeleteIntegrationQueryParameters(**loc).model_dump_json(
87
+ exclude_none=True
88
+ )
89
+ )
85
90
  path_params = json.loads(
86
91
  IntegrationsDeleteIntegrationPathParameters(**loc).model_dump_json(
87
92
  exclude_none=True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crowdsec_tracker_api
3
- Version: 1.94.2
3
+ Version: 1.95.0
4
4
  Summary: This is the API to manage Crowdsec Live Exploit Tracker service
5
5
  Author-email: crowdsec <info@crowdsec.net>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "crowdsec_tracker_api"
7
- version = "1.94.2"
7
+ version = "1.95.0"
8
8
  license = { text = "MIT" }
9
9
  authors = [
10
10
  { name="crowdsec", email="info@crowdsec.net" }