taranis-models 1.2.4.dev2__tar.gz → 1.2.5.dev1__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 (22) hide show
  1. {taranis_models-1.2.4.dev2/taranis_models.egg-info → taranis_models-1.2.5.dev1}/PKG-INFO +1 -1
  2. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/admin.py +3 -2
  3. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/dashboard.py +9 -0
  4. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/product.py +1 -1
  5. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1/taranis_models.egg-info}/PKG-INFO +1 -1
  6. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/.dockerignore +0 -0
  7. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/.gitignore +0 -0
  8. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/LICENSE.md +0 -0
  9. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/README.md +0 -0
  10. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/__init__.py +0 -0
  11. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/assess.py +0 -0
  12. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/base.py +0 -0
  13. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/cache.py +0 -0
  14. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/report.py +0 -0
  15. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/models/types.py +0 -0
  16. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/pyproject.toml +0 -0
  17. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/setup.cfg +0 -0
  18. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/taranis_models.egg-info/SOURCES.txt +0 -0
  19. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/taranis_models.egg-info/dependency_links.txt +0 -0
  20. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/taranis_models.egg-info/requires.txt +0 -0
  21. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/taranis_models.egg-info/top_level.txt +0 -0
  22. {taranis_models-1.2.4.dev2 → taranis_models-1.2.5.dev1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taranis-models
3
- Version: 1.2.4.dev2
3
+ Version: 1.2.5.dev1
4
4
  Summary: Taranis AI Models
5
5
  Maintainer-email: AIT <benjamin.akhras@ait.ac.at>
6
6
  License-Expression: EUPL-1.2
@@ -1,4 +1,5 @@
1
- from pydantic import Field, AnyUrl, computed_field
1
+ from pydantic import Field, AnyUrl
2
+ from functools import cached_property
2
3
  from typing import Literal, Any
3
4
  from datetime import datetime
4
5
 
@@ -195,7 +196,7 @@ class OSINTSource(TaranisBaseModel):
195
196
  enabled: bool | None = True
196
197
  status: TaskResult | None = None
197
198
 
198
- @computed_field
199
+ @cached_property
199
200
  def search_field(self) -> str:
200
201
  search = f"{self.name} {self.description} "
201
202
  if self.parameters:
@@ -29,3 +29,12 @@ class TrendingCluster(TaranisBaseModel):
29
29
  name: str
30
30
  tags: list[StoryTag] = Field(default_factory=list)
31
31
  size: int | None = None
32
+
33
+
34
+ class Cluster(TaranisBaseModel):
35
+ _core_endpoint = "/dashboard/cluster"
36
+ _model_name = "clusters"
37
+ _pretty_name = "Clusters"
38
+
39
+ name: str
40
+ size: int | None = None
@@ -17,7 +17,7 @@ class Product(TaranisBaseModel):
17
17
 
18
18
  id: str | None = None
19
19
  title: str
20
- description: str | None = None
20
+ description: str | None = ""
21
21
  created: datetime | None = None
22
22
  auto_publish: bool | None = None
23
23
  product_type_id: int
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taranis-models
3
- Version: 1.2.4.dev2
3
+ Version: 1.2.5.dev1
4
4
  Summary: Taranis AI Models
5
5
  Maintainer-email: AIT <benjamin.akhras@ait.ac.at>
6
6
  License-Expression: EUPL-1.2