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
|
@@ -0,0 +1,101 @@
|
|
|
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, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.knowledge_entity_err_row import KnowledgeEntityErrRow
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class KnowledgeEntityUpsertResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
KnowledgeEntityUpsertResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
batch_id: Optional[StrictStr] = None
|
|
31
|
+
error: Optional[StrictStr] = None
|
|
32
|
+
error_rows: Optional[List[KnowledgeEntityErrRow]] = None
|
|
33
|
+
rows_created: Optional[StrictInt] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["batch_id", "error", "error_rows", "rows_created"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of KnowledgeEntityUpsertResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of each item in error_rows (list)
|
|
76
|
+
_items = []
|
|
77
|
+
if self.error_rows:
|
|
78
|
+
for _item_error_rows in self.error_rows:
|
|
79
|
+
if _item_error_rows:
|
|
80
|
+
_items.append(_item_error_rows.to_dict())
|
|
81
|
+
_dict['error_rows'] = _items
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of KnowledgeEntityUpsertResponse from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"batch_id": obj.get("batch_id"),
|
|
95
|
+
"error": obj.get("error"),
|
|
96
|
+
"error_rows": [KnowledgeEntityErrRow.from_dict(_item) for _item in obj["error_rows"]] if obj.get("error_rows") is not None else None,
|
|
97
|
+
"rows_created": obj.get("rows_created")
|
|
98
|
+
})
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -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 KnowledgeIngestRawResponse(BaseModel):
|
|
|
28
28
|
KnowledgeIngestRawResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
31
|
-
error_rows: Optional[List[
|
|
31
|
+
error_rows: Optional[List[KnowledgeEntityErrRow]] = None
|
|
32
32
|
last_id: Optional[StrictInt] = None
|
|
33
33
|
rows_inserted: Optional[StrictInt] = None
|
|
34
34
|
__properties: ClassVar[List[str]] = ["error", "error_rows", "last_id", "rows_inserted"]
|
|
@@ -92,7 +92,7 @@ class KnowledgeIngestRawResponse(BaseModel):
|
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
94
|
"error": obj.get("error"),
|
|
95
|
-
"error_rows": [
|
|
95
|
+
"error_rows": [KnowledgeEntityErrRow.from_dict(_item) for _item in obj["error_rows"]] if obj.get("error_rows") is not None else None,
|
|
96
96
|
"last_id": obj.get("last_id"),
|
|
97
97
|
"rows_inserted": obj.get("rows_inserted")
|
|
98
98
|
})
|
|
@@ -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 OrganizationsBrand(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
OrganizationsBrand
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
background_img_url: Optional[StrictStr] = None
|
|
30
30
|
color1: Optional[StrictStr] = None
|
|
@@ -57,7 +57,7 @@ class OrganizationsOrganizationBrand(BaseModel):
|
|
|
57
57
|
|
|
58
58
|
@classmethod
|
|
59
59
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
-
"""Create an instance of
|
|
60
|
+
"""Create an instance of OrganizationsBrand from a JSON string"""
|
|
61
61
|
return cls.from_dict(json.loads(json_str))
|
|
62
62
|
|
|
63
63
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -82,7 +82,7 @@ class OrganizationsOrganizationBrand(BaseModel):
|
|
|
82
82
|
|
|
83
83
|
@classmethod
|
|
84
84
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
-
"""Create an instance of
|
|
85
|
+
"""Create an instance of OrganizationsBrand from a dict"""
|
|
86
86
|
if obj is None:
|
|
87
87
|
return None
|
|
88
88
|
|
|
@@ -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 OrganizationsCreateRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
OrganizationsCreateRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
description: Optional[StrictStr] = None
|
|
30
30
|
image_url: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class OrganizationsOrganizationCreateRequest(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 OrganizationsCreateRequest 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 OrganizationsOrganizationCreateRequest(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 OrganizationsCreateRequest 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, StrictBool, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from neurograph.v1.models.
|
|
22
|
+
from neurograph.v1.models.organizations_brand import OrganizationsBrand
|
|
23
23
|
from neurograph.v1.models.organizations_workbench_config import OrganizationsWorkbenchConfig
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class OrganizationsDetailResponse(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
OrganizationsDetailResponse
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
branding: Optional[
|
|
31
|
+
branding: Optional[OrganizationsBrand] = None
|
|
32
32
|
description: Optional[StrictStr] = None
|
|
33
33
|
error: Optional[StrictStr] = None
|
|
34
34
|
id: Optional[StrictStr] = None
|
|
@@ -60,7 +60,7 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
|
|
|
60
60
|
|
|
61
61
|
@classmethod
|
|
62
62
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
-
"""Create an instance of
|
|
63
|
+
"""Create an instance of OrganizationsDetailResponse from a JSON string"""
|
|
64
64
|
return cls.from_dict(json.loads(json_str))
|
|
65
65
|
|
|
66
66
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -91,7 +91,7 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
@classmethod
|
|
93
93
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
94
|
-
"""Create an instance of
|
|
94
|
+
"""Create an instance of OrganizationsDetailResponse from a dict"""
|
|
95
95
|
if obj is None:
|
|
96
96
|
return None
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@ class OrganizationsOrganizationDetailResponse(BaseModel):
|
|
|
99
99
|
return cls.model_validate(obj)
|
|
100
100
|
|
|
101
101
|
_obj = cls.model_validate({
|
|
102
|
-
"branding":
|
|
102
|
+
"branding": OrganizationsBrand.from_dict(obj["branding"]) if obj.get("branding") is not None else None,
|
|
103
103
|
"description": obj.get("description"),
|
|
104
104
|
"error": obj.get("error"),
|
|
105
105
|
"id": obj.get("id"),
|
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.organizations_organization import OrganizationsOrganiz
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class OrganizationsGetManyResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
OrganizationsGetManyResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[OrganizationsOrganization]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class OrganizationsOrganizationGetManyResponse(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 OrganizationsGetManyResponse 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]:
|
|
@@ -84,7 +84,7 @@ class OrganizationsOrganizationGetManyResponse(BaseModel):
|
|
|
84
84
|
|
|
85
85
|
@classmethod
|
|
86
86
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of
|
|
87
|
+
"""Create an instance of OrganizationsGetManyResponse from a dict"""
|
|
88
88
|
if obj is None:
|
|
89
89
|
return None
|
|
90
90
|
|
|
@@ -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 OrganizationsMetadataRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
OrganizationsMetadataRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
key: Optional[StrictStr] = None
|
|
30
30
|
value: Optional[StrictStr] = None
|
|
@@ -48,7 +48,7 @@ class OrganizationsOrganizationMetadataRequest(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 OrganizationsMetadataRequest 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 OrganizationsOrganizationMetadataRequest(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 OrganizationsMetadataRequest from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.organizations_metadata import OrganizationsMetadata
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class OrganizationsMetadataResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
OrganizationsMetadataResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
31
31
|
metadata: Optional[List[OrganizationsMetadata]] = None
|
|
@@ -49,7 +49,7 @@ class OrganizationsOrganizationMetadataResponse(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 OrganizationsMetadataResponse 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 OrganizationsOrganizationMetadataResponse(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 OrganizationsMetadataResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
neurograph/v1/models/{personas_persona_factor_create_request.py → personas_factor_create_request.py}
RENAMED
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactor
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasFactorCreateRequest(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasFactorCreateRequest
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[DbPersonaFactorCreateParams]] = None
|
|
31
31
|
__properties: ClassVar[List[str]] = ["data"]
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaFactorCreateRequest(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 PersonasFactorCreateRequest 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 PersonasPersonaFactorCreateRequest(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 PersonasFactorCreateRequest 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_factor_row import PersonasFactorRow
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasFactorCreateResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasFactorCreateResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
data: Optional[List[
|
|
30
|
+
data: Optional[List[PersonasFactorRow]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
32
|
__properties: ClassVar[List[str]] = ["data", "error"]
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ class PersonasPersonaFactorCreateResponse(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 PersonasFactorCreateResponse 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 PersonasPersonaFactorCreateResponse(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 PersonasFactorCreateResponse from a dict"""
|
|
85
85
|
if obj is None:
|
|
86
86
|
return None
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ class PersonasPersonaFactorCreateResponse(BaseModel):
|
|
|
89
89
|
return cls.model_validate(obj)
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
|
-
"data": [
|
|
92
|
+
"data": [PersonasFactorRow.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 PersonasFactorRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasFactorRow
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
detail: Optional[StrictStr] = None
|
|
30
30
|
display: Optional[StrictStr] = None
|
|
@@ -54,7 +54,7 @@ class PersonasPersonaFactorResp(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 PersonasFactorRow 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]:
|
|
@@ -79,7 +79,7 @@ class PersonasPersonaFactorResp(BaseModel):
|
|
|
79
79
|
|
|
80
80
|
@classmethod
|
|
81
81
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
-
"""Create an instance of
|
|
82
|
+
"""Create an instance of PersonasFactorRow from a dict"""
|
|
83
83
|
if obj is None:
|
|
84
84
|
return None
|
|
85
85
|
|
|
@@ -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 PersonasInsightCreateRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInsightCreateRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
data: Optional[Dict[str, Any]] = None
|
|
30
30
|
key: Optional[StrictStr] = None
|
|
@@ -49,7 +49,7 @@ class PersonasPersonaInsightCreateRequest(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 PersonasInsightCreateRequest 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 PersonasPersonaInsightCreateRequest(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 PersonasInsightCreateRequest 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 PersonasInsightCreateResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInsightCreateResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
data: Optional[StrictStr] = None
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
@@ -51,7 +51,7 @@ class PersonasPersonaInsightCreateResponse(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 PersonasInsightCreateResponse 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 PersonasPersonaInsightCreateResponse(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 PersonasInsightCreateResponse 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, Union
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class PersonasInstanceCreateRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInstanceCreateRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
age: Optional[Union[StrictFloat, StrictInt]] = None
|
|
30
30
|
description: Optional[StrictStr] = None
|
|
@@ -65,7 +65,7 @@ class PersonasPersonaInstanceCreateRequest(BaseModel):
|
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
67
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
68
|
-
"""Create an instance of
|
|
68
|
+
"""Create an instance of PersonasInstanceCreateRequest from a JSON string"""
|
|
69
69
|
return cls.from_dict(json.loads(json_str))
|
|
70
70
|
|
|
71
71
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -90,7 +90,7 @@ class PersonasPersonaInstanceCreateRequest(BaseModel):
|
|
|
90
90
|
|
|
91
91
|
@classmethod
|
|
92
92
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
93
|
-
"""Create an instance of
|
|
93
|
+
"""Create an instance of PersonasInstanceCreateRequest from a dict"""
|
|
94
94
|
if obj is None:
|
|
95
95
|
return None
|
|
96
96
|
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class PersonasInstanceCreateResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInstanceCreateResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
age: Optional[Union[StrictFloat, StrictInt]] = None
|
|
30
30
|
description: Optional[StrictStr] = None
|
|
@@ -67,7 +67,7 @@ class PersonasPersonaInstanceCreateResponse(BaseModel):
|
|
|
67
67
|
|
|
68
68
|
@classmethod
|
|
69
69
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
70
|
-
"""Create an instance of
|
|
70
|
+
"""Create an instance of PersonasInstanceCreateResponse from a JSON string"""
|
|
71
71
|
return cls.from_dict(json.loads(json_str))
|
|
72
72
|
|
|
73
73
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -92,7 +92,7 @@ class PersonasPersonaInstanceCreateResponse(BaseModel):
|
|
|
92
92
|
|
|
93
93
|
@classmethod
|
|
94
94
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
95
|
-
"""Create an instance of
|
|
95
|
+
"""Create an instance of PersonasInstanceCreateResponse from a dict"""
|
|
96
96
|
if obj is None:
|
|
97
97
|
return None
|
|
98
98
|
|
|
@@ -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 PersonasInstanceDeleteManyRequest(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInstanceDeleteManyRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
persona_instance_ids: Optional[List[StrictStr]] = None
|
|
30
30
|
__properties: ClassVar[List[str]] = ["persona_instance_ids"]
|
|
@@ -47,7 +47,7 @@ class PersonasDeleteManyPersonaInstancesRequest(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of PersonasInstanceDeleteManyRequest from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class PersonasDeleteManyPersonaInstancesRequest(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of PersonasInstanceDeleteManyRequest from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -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 PersonasInstanceDeleteManyResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
PersonasInstanceDeleteManyResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
deleted_seed_ids: Optional[List[StrictStr]] = None
|
|
30
30
|
error: Optional[StrictStr] = None
|
|
@@ -48,7 +48,7 @@ class PersonasPersonaInstancesDeleteResponse(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 PersonasInstanceDeleteManyResponse 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 PersonasPersonaInstancesDeleteResponse(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 PersonasInstanceDeleteManyResponse from a dict"""
|
|
77
77
|
if obj is None:
|
|
78
78
|
return None
|
|
79
79
|
|
neurograph/v1/models/{personas_persona_instances_response.py → personas_instances_response.py}
RENAMED
|
@@ -23,9 +23,9 @@ from neurograph.v1.models.personas_persona import PersonasPersona
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PersonasInstancesResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
PersonasInstancesResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[PersonasPersona]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
@@ -52,7 +52,7 @@ class PersonasPersonaInstancesResponse(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 PersonasInstancesResponse 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]:
|
|
@@ -84,7 +84,7 @@ class PersonasPersonaInstancesResponse(BaseModel):
|
|
|
84
84
|
|
|
85
85
|
@classmethod
|
|
86
86
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of
|
|
87
|
+
"""Create an instance of PersonasInstancesResponse from a dict"""
|
|
88
88
|
if obj is None:
|
|
89
89
|
return None
|
|
90
90
|
|