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
neurograph/v1/models/{personas_persona_kpi_create_request.py → personas_kpi_create_request.py}
RENAMED
|
@@ -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.personas_kpi_req_row import PersonasKpiReqRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasKpiCreateRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasKpiCreateRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[PersonasKpiReqRow]] = None
|
|
31
31
|
__properties: ClassVar[List[str]] = ["data"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaKpiCreateRequest(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 PersonasKpiCreateRequest 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 PersonasPersonaKpiCreateRequest(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 PersonasKpiCreateRequest from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ class PersonasPersonaKpiCreateRequest(BaseModel):
|
|
|
88
88
|
return cls.model_validate(obj)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
|
-
"data": [
|
|
91
|
+
"data": [PersonasKpiReqRow.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
|
|
neurograph/v1/models/{dagster_dagster_log_get_response.py → personas_kpi_create_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.personas_kpi_row_in_db import PersonasKpiRowInDb
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasKpiCreateResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasKpiCreateResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[PersonasKpiRowInDb]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
__properties: ClassVar[List[str]] = ["data", "error"]
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ class DagsterDagsterLogGetResponse(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 PersonasKpiCreateResponse 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 DagsterDagsterLogGetResponse(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 PersonasKpiCreateResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ class DagsterDagsterLogGetResponse(BaseModel):
|
|
|
89
89
|
return cls.model_validate(obj)
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
|
-
"data": [
|
|
92
|
+
"data": [PersonasKpiRowInDb.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
|
|
@@ -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 PersonasKpiReqRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasKpiReqRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
name: Optional[StrictStr] = None
|
|
30
30
|
persona_instance_id: Optional[StrictStr] = None
|
|
@@ -49,7 +49,7 @@ class PersonasPersonaKpiReq(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 PersonasKpiReqRow 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 PersonasPersonaKpiReq(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 PersonasKpiReqRow from a dict"""
|
|
78
78
|
if obj is None:
|
|
79
79
|
return None
|
|
80
80
|
|
|
@@ -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 PersonasKpiRowInDb(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasKpiRowInDb
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
id: Optional[StrictInt] = None
|
|
@@ -51,7 +51,7 @@ class PersonasPersonaKpiResp(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 PersonasKpiRowInDb 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 PersonasPersonaKpiResp(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 PersonasKpiRowInDb from a dict"""
|
|
80
80
|
if obj is None:
|
|
81
81
|
return None
|
|
82
82
|
|
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.personas_match_criteria_row_in import PersonasMatchCri
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasMatchCriteriaRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasMatchCriteriaRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[PersonasMatchCriteriaRowIn]] = None
|
|
31
31
|
__properties: ClassVar[List[str]] = ["data"]
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaMatchCriteriaRequest(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 PersonasMatchCriteriaRequest 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 PersonasPersonaMatchCriteriaRequest(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 PersonasMatchCriteriaRequest from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
|
@@ -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.personas_match_criteria_row_in_db import PersonasMatchCriteriaRowInDb
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasMatchCriteriaResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasMatchCriteriaResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[PersonasMatchCriteriaRowInDb]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
__properties: ClassVar[List[str]] = ["data", "error"]
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ class PersonasPersonaMatchCriteriaResponse(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 PersonasMatchCriteriaResponse 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 PersonasPersonaMatchCriteriaResponse(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 PersonasMatchCriteriaResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ class PersonasPersonaMatchCriteriaResponse(BaseModel):
|
|
|
89
89
|
return cls.model_validate(obj)
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
|
-
"data": [
|
|
92
|
+
"data": [PersonasMatchCriteriaRowInDb.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
|
neurograph/v1/models/{personas_match_criteria_row.py → personas_match_criteria_row_in_db.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 PersonasMatchCriteriaRowInDb(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasMatchCriteriaRowInDb
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
concept: Optional[StrictStr] = None
|
|
30
30
|
detail: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class PersonasMatchCriteriaRow(BaseModel):
|
|
|
52
52
|
|
|
53
53
|
@classmethod
|
|
54
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of
|
|
55
|
+
"""Create an instance of PersonasMatchCriteriaRowInDb from a JSON string"""
|
|
56
56
|
return cls.from_dict(json.loads(json_str))
|
|
57
57
|
|
|
58
58
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -77,7 +77,7 @@ class PersonasMatchCriteriaRow(BaseModel):
|
|
|
77
77
|
|
|
78
78
|
@classmethod
|
|
79
79
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
-
"""Create an instance of
|
|
80
|
+
"""Create an instance of PersonasMatchCriteriaRowInDb from a dict"""
|
|
81
81
|
if obj is None:
|
|
82
82
|
return None
|
|
83
83
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.personas_personality_trait_req import PersonasPersonalityTraitReq
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PersonasPersonalityTraitCreateRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PersonasPersonalityTraitCreateRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
data: Optional[List[PersonasPersonalityTraitReq]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["data"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of PersonasPersonalityTraitCreateRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
73
|
+
_items = []
|
|
74
|
+
if self.data:
|
|
75
|
+
for _item_data in self.data:
|
|
76
|
+
if _item_data:
|
|
77
|
+
_items.append(_item_data.to_dict())
|
|
78
|
+
_dict['data'] = _items
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of PersonasPersonalityTraitCreateRequest from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"data": [PersonasPersonalityTraitReq.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.personas_personality_trait_in_db import PersonasPersonalityTraitInDb
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PersonasPersonalityTraitCreateResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PersonasPersonalityTraitCreateResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
data: Optional[List[PersonasPersonalityTraitInDb]] = None
|
|
31
|
+
error: Optional[StrictStr] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["data", "error"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of PersonasPersonalityTraitCreateResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in data (list)
|
|
74
|
+
_items = []
|
|
75
|
+
if self.data:
|
|
76
|
+
for _item_data in self.data:
|
|
77
|
+
if _item_data:
|
|
78
|
+
_items.append(_item_data.to_dict())
|
|
79
|
+
_dict['data'] = _items
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of PersonasPersonalityTraitCreateResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"data": [PersonasPersonalityTraitInDb.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
93
|
+
"error": obj.get("error")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
neurograph/v1/models/{personas_personality_trait_out.py → personas_personality_trait_in_db.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 PersonasPersonalityTraitInDb(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasPersonalityTraitInDb
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
id: Optional[StrictInt] = None
|
|
@@ -51,7 +51,7 @@ class PersonasPersonalityTraitOut(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 PersonasPersonalityTraitInDb 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 PersonasPersonalityTraitOut(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 PersonasPersonalityTraitInDb from a dict"""
|
|
80
80
|
if obj is None:
|
|
81
81
|
return None
|
|
82
82
|
|
|
@@ -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 PersonasPersonalityTraitReq(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasPersonalityTraitReq
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
name: Optional[StrictStr] = None
|
|
30
30
|
persona_instance_id: Optional[StrictStr] = None
|
|
@@ -49,7 +49,7 @@ class PersonasPersonalityTraitIn(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 PersonasPersonalityTraitReq 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 PersonasPersonalityTraitIn(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 PersonasPersonalityTraitReq from a dict"""
|
|
78
78
|
if obj is None:
|
|
79
79
|
return None
|
|
80
80
|
|
|
@@ -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 PersonasSeed(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasSeed
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
client_id: Optional[StrictStr] = None
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class PersonasPersonaSeed(BaseModel):
|
|
|
52
52
|
|
|
53
53
|
@classmethod
|
|
54
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of
|
|
55
|
+
"""Create an instance of PersonasSeed from a JSON string"""
|
|
56
56
|
return cls.from_dict(json.loads(json_str))
|
|
57
57
|
|
|
58
58
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -77,7 +77,7 @@ class PersonasPersonaSeed(BaseModel):
|
|
|
77
77
|
|
|
78
78
|
@classmethod
|
|
79
79
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
-
"""Create an instance of
|
|
80
|
+
"""Create an instance of PersonasSeed from a dict"""
|
|
81
81
|
if obj is None:
|
|
82
82
|
return None
|
|
83
83
|
|
|
@@ -19,16 +19,16 @@ 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.personas_seed import PersonasSeed
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasSeedGetManyResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasSeedGetManyResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
client_id: Optional[StrictInt] = None
|
|
31
|
-
data: Optional[List[
|
|
31
|
+
data: Optional[List[PersonasSeed]] = None
|
|
32
32
|
error: Optional[StrictStr] = None
|
|
33
33
|
query_limit: Optional[StrictInt] = None
|
|
34
34
|
query_offset: Optional[StrictInt] = None
|
|
@@ -53,7 +53,7 @@ class PersonasPersonaSeedGetManyResponse(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 PersonasSeedGetManyResponse 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]:
|
|
@@ -85,7 +85,7 @@ class PersonasPersonaSeedGetManyResponse(BaseModel):
|
|
|
85
85
|
|
|
86
86
|
@classmethod
|
|
87
87
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
88
|
-
"""Create an instance of
|
|
88
|
+
"""Create an instance of PersonasSeedGetManyResponse from a dict"""
|
|
89
89
|
if obj is None:
|
|
90
90
|
return None
|
|
91
91
|
|
|
@@ -94,7 +94,7 @@ class PersonasPersonaSeedGetManyResponse(BaseModel):
|
|
|
94
94
|
|
|
95
95
|
_obj = cls.model_validate({
|
|
96
96
|
"client_id": obj.get("client_id"),
|
|
97
|
-
"data": [
|
|
97
|
+
"data": [PersonasSeed.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
|
|
98
98
|
"error": obj.get("error"),
|
|
99
99
|
"query_limit": obj.get("query_limit"),
|
|
100
100
|
"query_offset": obj.get("query_offset"),
|
neurograph/v1/models/{personas_persona_seed_update_request.py → personas_seed_upsert_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 PersonasSeedUpsertRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasSeedUpsertRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
client_id: Optional[StrictStr] = None
|
|
30
30
|
uid: Optional[StrictStr] = None
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaSeedUpdateRequest(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 PersonasSeedUpsertRequest 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 PersonasPersonaSeedUpdateRequest(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 PersonasSeedUpsertRequest from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|
neurograph/v1/models/{personas_persona_seeds_delete_response.py → personas_seeds_delete_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 PersonasSeedsDeleteResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasSeedsDeleteResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
30
|
success: Optional[StrictBool] = None
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaSeedsDeleteResponse(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 PersonasSeedsDeleteResponse 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 PersonasPersonaSeedsDeleteResponse(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 PersonasSeedsDeleteResponse from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|