neurograph-core 1.202509220142__py3-none-any.whl → 1.202509242050__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.
- neurograph/v1/__init__.py +162 -156
- neurograph/v1/api/client_api.py +101 -101
- neurograph/v1/api/client_metadata_api.py +52 -52
- neurograph/v1/api/dagster_api.py +31 -31
- neurograph/v1/api/knowledge_api.py +308 -32
- neurograph/v1/api/organization_api.py +64 -64
- neurograph/v1/api/organization_metadata_api.py +30 -30
- neurograph/v1/api/persona_api.py +185 -185
- neurograph/v1/models/__init__.py +108 -104
- neurograph/v1/models/{client_client_get_detail_response.py → client_get_detail_response.py} +4 -4
- neurograph/v1/models/{client_client_get_many_response.py → client_get_many_response.py} +4 -4
- neurograph/v1/models/{client_client_info.py → client_info.py} +4 -4
- neurograph/v1/models/{client_client_metadata_request.py → client_metadata_request.py} +4 -4
- neurograph/v1/models/{client_client_metadata_response.py → client_metadata_response.py} +7 -7
- neurograph/v1/models/{client_client_personas_response.py → client_personas_response.py} +4 -4
- neurograph/v1/models/{client_client_upsert_request.py → client_upsert_request.py} +4 -4
- neurograph/v1/models/{client_client_upsert_response.py → client_upsert_response.py} +4 -4
- neurograph/v1/models/{client_client_url_row.py → client_url_row.py} +4 -4
- neurograph/v1/models/{client_client_url_snapshot_response.py → client_url_snapshot_response.py} +7 -7
- neurograph/v1/models/{client_client_url_snapshot_row.py → client_url_snapshot_row.py} +4 -4
- neurograph/v1/models/{client_client_url_upsert_request.py → client_url_upsert_request.py} +4 -4
- neurograph/v1/models/{client_client_url_upsert_response.py → client_url_upsert_response.py} +4 -4
- neurograph/v1/models/{client_client_urls_response.py → client_urls_response.py} +7 -7
- neurograph/v1/models/{dagster_dagster_info.py → dagster_info.py} +4 -4
- neurograph/v1/models/{dagster_dagster_log_create_request.py → dagster_log_create_request.py} +4 -4
- neurograph/v1/models/{dagster_dagster_log_create_response.py → dagster_log_create_response.py} +4 -4
- neurograph/v1/models/{personas_persona_kpi_create_response.py → dagster_log_get_response.py} +7 -7
- neurograph/v1/models/knowledge_entity.py +3 -1
- neurograph/v1/models/knowledge_entity_create_request.py +4 -2
- neurograph/v1/models/knowledge_entity_create_response.py +3 -3
- neurograph/v1/models/{knowledge_err_entity_row.py → knowledge_entity_err_row.py} +4 -4
- neurograph/v1/models/knowledge_entity_in_db.py +5 -1
- neurograph/v1/models/{knowledge_type_response.py → knowledge_entity_type_response.py} +4 -4
- neurograph/v1/models/{personas_persona_trait_create_request.py → knowledge_entity_type_upsert_request.py} +7 -7
- neurograph/v1/models/{knowledge_entity_upsert_row.py → knowledge_entity_type_upsert_row.py} +4 -4
- neurograph/v1/models/knowledge_entity_upsert_request.py +7 -5
- neurograph/v1/models/knowledge_entity_upsert_response.py +101 -0
- neurograph/v1/models/knowledge_ingest_raw_response.py +3 -3
- neurograph/v1/models/{organizations_organization_brand.py → organizations_brand.py} +4 -4
- neurograph/v1/models/{organizations_organization_create_request.py → organizations_create_request.py} +4 -4
- neurograph/v1/models/{organizations_organization_detail_response.py → organizations_detail_response.py} +7 -7
- neurograph/v1/models/{organizations_organization_get_many_response.py → organizations_get_many_response.py} +4 -4
- neurograph/v1/models/{organizations_organization_metadata_request.py → organizations_metadata_request.py} +4 -4
- neurograph/v1/models/{organizations_organization_metadata_response.py → organizations_metadata_response.py} +4 -4
- neurograph/v1/models/{personas_persona_factor_create_request.py → personas_factor_create_request.py} +4 -4
- neurograph/v1/models/{personas_persona_factor_create_response.py → personas_factor_create_response.py} +7 -7
- neurograph/v1/models/{personas_persona_factor_resp.py → personas_factor_row.py} +4 -4
- neurograph/v1/models/{personas_persona_insight_create_request.py → personas_insight_create_request.py} +4 -4
- neurograph/v1/models/{personas_persona_insight_create_response.py → personas_insight_create_response.py} +4 -4
- neurograph/v1/models/{personas_persona_instance_create_request.py → personas_instance_create_request.py} +4 -4
- neurograph/v1/models/{personas_persona_instance_create_response.py → personas_instance_create_response.py} +4 -4
- neurograph/v1/models/{personas_delete_many_persona_instances_request.py → personas_instance_delete_many_request.py} +4 -4
- neurograph/v1/models/{personas_persona_instances_delete_response.py → personas_instance_delete_many_response.py} +4 -4
- neurograph/v1/models/{personas_persona_instances_response.py → personas_instances_response.py} +4 -4
- neurograph/v1/models/{personas_persona_kpi_create_request.py → personas_kpi_create_request.py} +7 -7
- neurograph/v1/models/{dagster_dagster_log_get_response.py → personas_kpi_create_response.py} +7 -7
- neurograph/v1/models/{personas_persona_kpi_req.py → personas_kpi_req_row.py} +4 -4
- neurograph/v1/models/{personas_persona_kpi_resp.py → personas_kpi_row_in_db.py} +4 -4
- neurograph/v1/models/{personas_persona_match_criteria_request.py → personas_match_criteria_request.py} +4 -4
- neurograph/v1/models/{personas_persona_match_criteria_response.py → personas_match_criteria_response.py} +7 -7
- neurograph/v1/models/{personas_match_criteria_row.py → personas_match_criteria_row_in_db.py} +4 -4
- neurograph/v1/models/personas_personality_trait_create_request.py +95 -0
- neurograph/v1/models/personas_personality_trait_create_response.py +97 -0
- neurograph/v1/models/{personas_personality_trait_out.py → personas_personality_trait_in_db.py} +4 -4
- neurograph/v1/models/{personas_personality_trait_in.py → personas_personality_trait_req.py} +4 -4
- neurograph/v1/models/{personas_persona_seed.py → personas_seed.py} +4 -4
- neurograph/v1/models/{personas_persona_seed_get_many_response.py → personas_seed_get_many_response.py} +7 -7
- neurograph/v1/models/{personas_persona_seed_update_request.py → personas_seed_upsert_request.py} +4 -4
- neurograph/v1/models/{personas_persona_seeds_delete_response.py → personas_seeds_delete_response.py} +4 -4
- {neurograph_core-1.202509220142.dist-info → neurograph_core-1.202509242050.dist-info}/METADATA +1 -1
- {neurograph_core-1.202509220142.dist-info → neurograph_core-1.202509242050.dist-info}/RECORD +73 -71
- neurograph/v1/models/personas_persona_trait_create_response.py +0 -97
- {neurograph_core-1.202509220142.dist-info → neurograph_core-1.202509242050.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509220142.dist-info → neurograph_core-1.202509242050.dist-info}/top_level.txt +0 -0
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.client_probe import ClientProbe
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ClientUrlRow(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
ClientUrlRow
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
client_id: Optional[StrictStr] = None
|
|
31
31
|
customer_environment: Optional[StrictStr] = None
|
|
@@ -54,7 +54,7 @@ class ClientClientUrlRow(BaseModel):
|
|
|
54
54
|
|
|
55
55
|
@classmethod
|
|
56
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
-
"""Create an instance of
|
|
57
|
+
"""Create an instance of ClientUrlRow from a JSON string"""
|
|
58
58
|
return cls.from_dict(json.loads(json_str))
|
|
59
59
|
|
|
60
60
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -86,7 +86,7 @@ class ClientClientUrlRow(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
@classmethod
|
|
88
88
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
-
"""Create an instance of
|
|
89
|
+
"""Create an instance of ClientUrlRow from a dict"""
|
|
90
90
|
if obj is None:
|
|
91
91
|
return None
|
|
92
92
|
|
neurograph/v1/models/{client_client_url_snapshot_response.py → client_url_snapshot_response.py}
RENAMED
|
@@ -19,15 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.client_url_snapshot_row import ClientUrlSnapshotRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ClientURLSnapshotResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
ClientURLSnapshotResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[
|
|
30
|
+
data: Optional[ClientUrlSnapshotRow] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
query_probe_id: Optional[StrictStr] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["data", "error", "query_probe_id"]
|
|
@@ -50,7 +50,7 @@ class ClientClientURLSnapshotResponse(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of ClientURLSnapshotResponse from a JSON string"""
|
|
54
54
|
return cls.from_dict(json.loads(json_str))
|
|
55
55
|
|
|
56
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -78,7 +78,7 @@ class ClientClientURLSnapshotResponse(BaseModel):
|
|
|
78
78
|
|
|
79
79
|
@classmethod
|
|
80
80
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of
|
|
81
|
+
"""Create an instance of ClientURLSnapshotResponse from a dict"""
|
|
82
82
|
if obj is None:
|
|
83
83
|
return None
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ class ClientClientURLSnapshotResponse(BaseModel):
|
|
|
86
86
|
return cls.model_validate(obj)
|
|
87
87
|
|
|
88
88
|
_obj = cls.model_validate({
|
|
89
|
-
"data":
|
|
89
|
+
"data": ClientUrlSnapshotRow.from_dict(obj["data"]) if obj.get("data") is not None else None,
|
|
90
90
|
"error": obj.get("error"),
|
|
91
91
|
"query_probe_id": obj.get("query_probe_id")
|
|
92
92
|
})
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class ClientUrlSnapshotRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
ClientUrlSnapshotRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
client_url_id: Optional[StrictInt] = None
|
|
30
30
|
html_raw: Optional[StrictStr] = Field(default=None, description="full HTML; can be large")
|
|
@@ -53,7 +53,7 @@ class ClientClientURLSnapshotRow(BaseModel):
|
|
|
53
53
|
|
|
54
54
|
@classmethod
|
|
55
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
-
"""Create an instance of
|
|
56
|
+
"""Create an instance of ClientUrlSnapshotRow from a JSON string"""
|
|
57
57
|
return cls.from_dict(json.loads(json_str))
|
|
58
58
|
|
|
59
59
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -78,7 +78,7 @@ class ClientClientURLSnapshotRow(BaseModel):
|
|
|
78
78
|
|
|
79
79
|
@classmethod
|
|
80
80
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of
|
|
81
|
+
"""Create an instance of ClientUrlSnapshotRow from a dict"""
|
|
82
82
|
if obj is None:
|
|
83
83
|
return None
|
|
84
84
|
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class ClientUrlUpsertRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
ClientUrlUpsertRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
client_id: Optional[StrictStr] = None
|
|
30
30
|
customer_environment: Optional[StrictStr] = None
|
|
@@ -51,7 +51,7 @@ class ClientClientUrlUpsertRequest(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
54
|
+
"""Create an instance of ClientUrlUpsertRequest from a JSON string"""
|
|
55
55
|
return cls.from_dict(json.loads(json_str))
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -76,7 +76,7 @@ class ClientClientUrlUpsertRequest(BaseModel):
|
|
|
76
76
|
|
|
77
77
|
@classmethod
|
|
78
78
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
-
"""Create an instance of
|
|
79
|
+
"""Create an instance of ClientUrlUpsertRequest from a dict"""
|
|
80
80
|
if obj is None:
|
|
81
81
|
return None
|
|
82
82
|
|
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ClientUrlUpsertResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
ClientUrlUpsertResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
client_id: Optional[StrictStr] = None
|
|
31
31
|
customer_environment: Optional[StrictStr] = None
|
|
@@ -55,7 +55,7 @@ class ClientClientUrlUpsertResponse(BaseModel):
|
|
|
55
55
|
|
|
56
56
|
@classmethod
|
|
57
57
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
-
"""Create an instance of
|
|
58
|
+
"""Create an instance of ClientUrlUpsertResponse from a JSON string"""
|
|
59
59
|
return cls.from_dict(json.loads(json_str))
|
|
60
60
|
|
|
61
61
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -86,7 +86,7 @@ class ClientClientUrlUpsertResponse(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
@classmethod
|
|
88
88
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
-
"""Create an instance of
|
|
89
|
+
"""Create an instance of ClientUrlUpsertResponse from a dict"""
|
|
90
90
|
if obj is None:
|
|
91
91
|
return None
|
|
92
92
|
|
|
@@ -19,15 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.client_url_row import ClientUrlRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ClientUrlsResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
ClientUrlsResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[ClientUrlRow]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
query_client_id: Optional[StrictStr] = None
|
|
33
33
|
total_rows: Optional[StrictInt] = None
|
|
@@ -51,7 +51,7 @@ class ClientClientUrlsResponse(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
54
|
+
"""Create an instance of ClientUrlsResponse from a JSON string"""
|
|
55
55
|
return cls.from_dict(json.loads(json_str))
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -83,7 +83,7 @@ class ClientClientUrlsResponse(BaseModel):
|
|
|
83
83
|
|
|
84
84
|
@classmethod
|
|
85
85
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
-
"""Create an instance of
|
|
86
|
+
"""Create an instance of ClientUrlsResponse from a dict"""
|
|
87
87
|
if obj is None:
|
|
88
88
|
return None
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ class ClientClientUrlsResponse(BaseModel):
|
|
|
91
91
|
return cls.model_validate(obj)
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
|
-
"data": [
|
|
94
|
+
"data": [ClientUrlRow.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
95
95
|
"error": obj.get("error"),
|
|
96
96
|
"query_client_id": obj.get("query_client_id"),
|
|
97
97
|
"total_rows": obj.get("total_rows")
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class DagsterInfo(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
DagsterInfo
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictStr] = None
|
|
30
30
|
job: Optional[StrictStr] = None
|
|
@@ -51,7 +51,7 @@ class DagsterDagsterInfo(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
@classmethod
|
|
53
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
54
|
+
"""Create an instance of DagsterInfo from a JSON string"""
|
|
55
55
|
return cls.from_dict(json.loads(json_str))
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -76,7 +76,7 @@ class DagsterDagsterInfo(BaseModel):
|
|
|
76
76
|
|
|
77
77
|
@classmethod
|
|
78
78
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
-
"""Create an instance of
|
|
79
|
+
"""Create an instance of DagsterInfo from a dict"""
|
|
80
80
|
if obj is None:
|
|
81
81
|
return None
|
|
82
82
|
|
neurograph/v1/models/{dagster_dagster_log_create_request.py → dagster_log_create_request.py}
RENAMED
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class DagsterLogCreateRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
DagsterLogCreateRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
core_id: Optional[StrictStr] = None
|
|
30
30
|
job: Optional[StrictStr] = None
|
|
@@ -50,7 +50,7 @@ class DagsterDagsterLogCreateRequest(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of DagsterLogCreateRequest from a JSON string"""
|
|
54
54
|
return cls.from_dict(json.loads(json_str))
|
|
55
55
|
|
|
56
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -75,7 +75,7 @@ class DagsterDagsterLogCreateRequest(BaseModel):
|
|
|
75
75
|
|
|
76
76
|
@classmethod
|
|
77
77
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of
|
|
78
|
+
"""Create an instance of DagsterLogCreateRequest from a dict"""
|
|
79
79
|
if obj is None:
|
|
80
80
|
return None
|
|
81
81
|
|
neurograph/v1/models/{dagster_dagster_log_create_response.py → dagster_log_create_response.py}
RENAMED
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class DagsterLogCreateResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
DagsterLogCreateResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
id: Optional[StrictStr] = None
|
|
@@ -49,7 +49,7 @@ class DagsterDagsterLogCreateResponse(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
52
|
+
"""Create an instance of DagsterLogCreateResponse from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -74,7 +74,7 @@ class DagsterDagsterLogCreateResponse(BaseModel):
|
|
|
74
74
|
|
|
75
75
|
@classmethod
|
|
76
76
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of
|
|
77
|
+
"""Create an instance of DagsterLogCreateResponse from a dict"""
|
|
78
78
|
if obj is None:
|
|
79
79
|
return None
|
|
80
80
|
|
neurograph/v1/models/{personas_persona_kpi_create_response.py → dagster_log_get_response.py}
RENAMED
|
@@ -19,15 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.dagster_info import DagsterInfo
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class DagsterLogGetResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
DagsterLogGetResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[DagsterInfo]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
__properties: ClassVar[List[str]] = ["data", "error"]
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ class PersonasPersonaKpiCreateResponse(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
52
|
+
"""Create an instance of DagsterLogGetResponse from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -81,7 +81,7 @@ class PersonasPersonaKpiCreateResponse(BaseModel):
|
|
|
81
81
|
|
|
82
82
|
@classmethod
|
|
83
83
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
-
"""Create an instance of
|
|
84
|
+
"""Create an instance of DagsterLogGetResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ class PersonasPersonaKpiCreateResponse(BaseModel):
|
|
|
89
89
|
return cls.model_validate(obj)
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
|
-
"data": [
|
|
92
|
+
"data": [DagsterInfo.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
93
93
|
"error": obj.get("error")
|
|
94
94
|
})
|
|
95
95
|
return _obj
|
|
@@ -37,9 +37,10 @@ class KnowledgeEntity(BaseModel):
|
|
|
37
37
|
name: Optional[StrictStr] = None
|
|
38
38
|
relations: Optional[KnowledgeEntityRelations] = None
|
|
39
39
|
var_schema: Optional[KnowledgeEntitySchema] = Field(default=None, alias="schema")
|
|
40
|
+
source_id: Optional[StrictStr] = None
|
|
40
41
|
source_updated_at: Optional[StrictInt] = None
|
|
41
42
|
ts_updated: Optional[StrictInt] = None
|
|
42
|
-
__properties: ClassVar[List[str]] = ["client_id", "data", "ext", "extra", "kind", "name", "relations", "schema", "source_updated_at", "ts_updated"]
|
|
43
|
+
__properties: ClassVar[List[str]] = ["client_id", "data", "ext", "extra", "kind", "name", "relations", "schema", "source_id", "source_updated_at", "ts_updated"]
|
|
43
44
|
|
|
44
45
|
model_config = ConfigDict(
|
|
45
46
|
populate_by_name=True,
|
|
@@ -109,6 +110,7 @@ class KnowledgeEntity(BaseModel):
|
|
|
109
110
|
"name": obj.get("name"),
|
|
110
111
|
"relations": KnowledgeEntityRelations.from_dict(obj["relations"]) if obj.get("relations") is not None else None,
|
|
111
112
|
"schema": KnowledgeEntitySchema.from_dict(obj["schema"]) if obj.get("schema") is not None else None,
|
|
113
|
+
"source_id": obj.get("source_id"),
|
|
112
114
|
"source_updated_at": obj.get("source_updated_at"),
|
|
113
115
|
"ts_updated": obj.get("ts_updated")
|
|
114
116
|
})
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from neurograph.v1.models.knowledge_entity import KnowledgeEntity
|
|
23
23
|
from typing import Optional, Set
|
|
@@ -27,8 +27,9 @@ class KnowledgeEntityCreateRequest(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
KnowledgeEntityCreateRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
+
batch_id: Optional[StrictStr] = None
|
|
30
31
|
data: Optional[List[KnowledgeEntity]] = None
|
|
31
|
-
__properties: ClassVar[List[str]] = ["data"]
|
|
32
|
+
__properties: ClassVar[List[str]] = ["batch_id", "data"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
35
|
populate_by_name=True,
|
|
@@ -88,6 +89,7 @@ class KnowledgeEntityCreateRequest(BaseModel):
|
|
|
88
89
|
return cls.model_validate(obj)
|
|
89
90
|
|
|
90
91
|
_obj = cls.model_validate({
|
|
92
|
+
"batch_id": obj.get("batch_id"),
|
|
91
93
|
"data": [KnowledgeEntity.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
92
94
|
})
|
|
93
95
|
return _obj
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.knowledge_entity_err_row import KnowledgeEntityErrRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -28,7 +28,7 @@ class KnowledgeEntityCreateResponse(BaseModel):
|
|
|
28
28
|
KnowledgeEntityCreateResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
31
|
-
error_rows: Optional[List[
|
|
31
|
+
error_rows: Optional[List[KnowledgeEntityErrRow]] = None
|
|
32
32
|
rows_created: Optional[StrictInt] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["error", "error_rows", "rows_created"]
|
|
34
34
|
|
|
@@ -91,7 +91,7 @@ class KnowledgeEntityCreateResponse(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"error": obj.get("error"),
|
|
94
|
-
"error_rows": [
|
|
94
|
+
"error_rows": [KnowledgeEntityErrRow.from_dict(_item) for _item in obj["error_rows"]] if obj.get("error_rows") is not None else None,
|
|
95
95
|
"rows_created": obj.get("rows_created")
|
|
96
96
|
})
|
|
97
97
|
return _obj
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeEntityErrRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntityErrRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
index: Optional[StrictInt] = None
|
|
@@ -48,7 +48,7 @@ class KnowledgeErrEntityRow(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeEntityErrRow from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,7 +73,7 @@ class KnowledgeErrEntityRow(BaseModel):
|
|
|
73
73
|
|
|
74
74
|
@classmethod
|
|
75
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of KnowledgeEntityErrRow from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|
|
@@ -29,6 +29,7 @@ class KnowledgeEntityInDb(BaseModel):
|
|
|
29
29
|
"""
|
|
30
30
|
KnowledgeEntityInDb
|
|
31
31
|
""" # noqa: E501
|
|
32
|
+
batch_id: Optional[StrictStr] = None
|
|
32
33
|
client_id: Optional[StrictStr] = Field(default=None, description="nullable.")
|
|
33
34
|
data: Optional[Dict[str, Any]] = None
|
|
34
35
|
ext: Optional[KnowledgeEntityExtra] = None
|
|
@@ -38,10 +39,11 @@ class KnowledgeEntityInDb(BaseModel):
|
|
|
38
39
|
name: Optional[StrictStr] = None
|
|
39
40
|
relations: Optional[KnowledgeEntityRelations] = None
|
|
40
41
|
var_schema: Optional[KnowledgeEntitySchema] = Field(default=None, alias="schema")
|
|
42
|
+
source_id: Optional[StrictStr] = None
|
|
41
43
|
source_updated_at: Optional[StrictInt] = None
|
|
42
44
|
ts_created: Optional[StrictInt] = None
|
|
43
45
|
ts_updated: Optional[StrictInt] = None
|
|
44
|
-
__properties: ClassVar[List[str]] = ["client_id", "data", "ext", "extra", "id", "kind", "name", "relations", "schema", "source_updated_at", "ts_created", "ts_updated"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["batch_id", "client_id", "data", "ext", "extra", "id", "kind", "name", "relations", "schema", "source_id", "source_updated_at", "ts_created", "ts_updated"]
|
|
45
47
|
|
|
46
48
|
model_config = ConfigDict(
|
|
47
49
|
populate_by_name=True,
|
|
@@ -103,6 +105,7 @@ class KnowledgeEntityInDb(BaseModel):
|
|
|
103
105
|
return cls.model_validate(obj)
|
|
104
106
|
|
|
105
107
|
_obj = cls.model_validate({
|
|
108
|
+
"batch_id": obj.get("batch_id"),
|
|
106
109
|
"client_id": obj.get("client_id"),
|
|
107
110
|
"data": obj.get("data"),
|
|
108
111
|
"ext": KnowledgeEntityExtra.from_dict(obj["ext"]) if obj.get("ext") is not None else None,
|
|
@@ -112,6 +115,7 @@ class KnowledgeEntityInDb(BaseModel):
|
|
|
112
115
|
"name": obj.get("name"),
|
|
113
116
|
"relations": KnowledgeEntityRelations.from_dict(obj["relations"]) if obj.get("relations") is not None else None,
|
|
114
117
|
"schema": KnowledgeEntitySchema.from_dict(obj["schema"]) if obj.get("schema") is not None else None,
|
|
118
|
+
"source_id": obj.get("source_id"),
|
|
115
119
|
"source_updated_at": obj.get("source_updated_at"),
|
|
116
120
|
"ts_created": obj.get("ts_created"),
|
|
117
121
|
"ts_updated": obj.get("ts_updated")
|
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.knowledge_entity_type_row import KnowledgeEntityTypeRo
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class KnowledgeEntityTypeResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
KnowledgeEntityTypeResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
31
31
|
types: Optional[List[KnowledgeEntityTypeRow]] = None
|
|
@@ -49,7 +49,7 @@ class KnowledgeTypeResponse(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
52
|
+
"""Create an instance of KnowledgeEntityTypeResponse from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -81,7 +81,7 @@ class KnowledgeTypeResponse(BaseModel):
|
|
|
81
81
|
|
|
82
82
|
@classmethod
|
|
83
83
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
-
"""Create an instance of
|
|
84
|
+
"""Create an instance of KnowledgeEntityTypeResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
|
@@ -19,15 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.knowledge_entity_type_upsert_row import KnowledgeEntityTypeUpsertRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class KnowledgeEntityTypeUpsertRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
KnowledgeEntityTypeUpsertRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[KnowledgeEntityTypeUpsertRow]] = None
|
|
31
31
|
__properties: ClassVar[List[str]] = ["data"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaTraitCreateRequest(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeEntityTypeUpsertRequest from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -80,7 +80,7 @@ class PersonasPersonaTraitCreateRequest(BaseModel):
|
|
|
80
80
|
|
|
81
81
|
@classmethod
|
|
82
82
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of
|
|
83
|
+
"""Create an instance of KnowledgeEntityTypeUpsertRequest from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ class PersonasPersonaTraitCreateRequest(BaseModel):
|
|
|
88
88
|
return cls.model_validate(obj)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
|
-
"data": [
|
|
91
|
+
"data": [KnowledgeEntityTypeUpsertRow.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
92
92
|
})
|
|
93
93
|
return _obj
|
|
94
94
|
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class KnowledgeEntityTypeUpsertRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntityTypeUpsertRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictInt] = None
|
|
30
30
|
kind: Optional[StrictStr] = None
|
|
@@ -50,7 +50,7 @@ class KnowledgeEntityUpsertRow(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of KnowledgeEntityTypeUpsertRow from a JSON string"""
|
|
54
54
|
return cls.from_dict(json.loads(json_str))
|
|
55
55
|
|
|
56
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -75,7 +75,7 @@ class KnowledgeEntityUpsertRow(BaseModel):
|
|
|
75
75
|
|
|
76
76
|
@classmethod
|
|
77
77
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of
|
|
78
|
+
"""Create an instance of KnowledgeEntityTypeUpsertRow from a dict"""
|
|
79
79
|
if obj is None:
|
|
80
80
|
return None
|
|
81
81
|
|
|
@@ -17,9 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.knowledge_entity import KnowledgeEntity
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,8 +27,9 @@ class KnowledgeEntityUpsertRequest(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
KnowledgeEntityUpsertRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
batch_id: Optional[StrictStr] = None
|
|
31
|
+
data: Optional[List[KnowledgeEntity]] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["batch_id", "data"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
35
|
populate_by_name=True,
|
|
@@ -88,7 +89,8 @@ class KnowledgeEntityUpsertRequest(BaseModel):
|
|
|
88
89
|
return cls.model_validate(obj)
|
|
89
90
|
|
|
90
91
|
_obj = cls.model_validate({
|
|
91
|
-
"
|
|
92
|
+
"batch_id": obj.get("batch_id"),
|
|
93
|
+
"data": [KnowledgeEntity.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
92
94
|
})
|
|
93
95
|
return _obj
|
|
94
96
|
|