neurograph-core 1.202508112256__py3-none-any.whl → 1.202508201827__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.
Files changed (73) hide show
  1. neurograph/v1/__init__.py +38 -20
  2. neurograph/v1/api/__init__.py +1 -1
  3. neurograph/v1/api/authentication_api.py +36 -8
  4. neurograph/v1/api/client_api.py +62 -56
  5. neurograph/v1/api/client_metadata_api.py +305 -19
  6. neurograph/v1/api/dagster_api.py +306 -0
  7. neurograph/v1/api/lookup_api.py +2 -0
  8. neurograph/v1/api/organization_api.py +257 -252
  9. neurograph/v1/api/organization_metadata_api.py +22 -19
  10. neurograph/v1/api/persona_api.py +1249 -135
  11. neurograph/v1/api/tasks_api.py +1 -0
  12. neurograph/v1/api/workbench_api.py +6 -3
  13. neurograph/v1/models/__init__.py +18 -9
  14. neurograph/v1/models/auth_test_service_token_request.py +87 -0
  15. neurograph/v1/models/client_client.py +4 -4
  16. neurograph/v1/models/client_client_upsert_request.py +95 -0
  17. neurograph/v1/models/client_client_upsert_response.py +111 -0
  18. neurograph/v1/models/client_client_url_upsert_request.py +4 -4
  19. neurograph/v1/models/client_client_url_upsert_response.py +14 -7
  20. neurograph/v1/models/client_client_urls_response.py +1 -1
  21. neurograph/v1/models/client_kpi.py +1 -1
  22. neurograph/v1/models/client_metadata.py +3 -3
  23. neurograph/v1/models/client_persona.py +4 -4
  24. neurograph/v1/models/client_persona_factor.py +1 -1
  25. neurograph/v1/models/client_persona_personality_trait.py +1 -1
  26. neurograph/v1/models/client_query.py +1 -1
  27. neurograph/v1/models/dagster_dagster_log_create_request.py +93 -0
  28. neurograph/v1/models/dagster_dagster_log_create_response.py +91 -0
  29. neurograph/v1/models/db_client_url.py +14 -7
  30. neurograph/v1/models/db_persona_factor_create_params.py +1 -1
  31. neurograph/v1/models/organizations_brand_detail_response.py +2 -2
  32. neurograph/v1/models/organizations_brand_upsert_request.py +2 -2
  33. neurograph/v1/models/organizations_metadata.py +3 -3
  34. neurograph/v1/models/organizations_organization.py +1 -1
  35. neurograph/v1/models/organizations_organization_detail_response.py +2 -8
  36. neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
  37. neurograph/v1/models/organizations_organization_set_workbench_response.py +13 -11
  38. neurograph/v1/models/organizations_organization_update_request.py +4 -4
  39. neurograph/v1/models/organizations_workbench_config.py +13 -11
  40. neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
  41. neurograph/v1/models/personas_kpi.py +93 -0
  42. neurograph/v1/models/personas_match_criteria_row.py +1 -1
  43. neurograph/v1/models/personas_match_criteria_row_in.py +2 -2
  44. neurograph/v1/models/personas_persona.py +171 -0
  45. neurograph/v1/models/personas_persona_factor.py +2 -4
  46. neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
  47. neurograph/v1/models/personas_persona_factor_resp.py +101 -0
  48. neurograph/v1/models/personas_persona_insight.py +93 -0
  49. neurograph/v1/models/personas_persona_insight_create_request.py +2 -2
  50. neurograph/v1/models/personas_persona_insight_create_response.py +1 -1
  51. neurograph/v1/models/personas_persona_instance_create_request.py +1 -1
  52. neurograph/v1/models/personas_persona_instance_create_response.py +2 -2
  53. neurograph/v1/models/personas_persona_instances_delete_response.py +89 -0
  54. neurograph/v1/models/personas_persona_instances_response.py +103 -0
  55. neurograph/v1/models/personas_persona_kpi_req.py +2 -2
  56. neurograph/v1/models/personas_persona_kpi_resp.py +1 -1
  57. neurograph/v1/models/personas_persona_personality_trait.py +93 -0
  58. neurograph/v1/models/personas_persona_seed_create_request.py +2 -2
  59. neurograph/v1/models/personas_persona_seed_create_response.py +3 -3
  60. neurograph/v1/models/personas_persona_seed_get_many_response.py +105 -0
  61. neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
  62. neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
  63. neurograph/v1/models/personas_personality_trait_in.py +2 -2
  64. neurograph/v1/models/personas_personality_trait_out.py +1 -1
  65. neurograph/v1/models/pgtype_infinity_modifier.py +38 -0
  66. neurograph/v1/models/pgtype_timestamp.py +92 -0
  67. neurograph/v1/models/workbench_workbench_version.py +3 -3
  68. neurograph/v1/models/workbench_workbench_version_response.py +3 -3
  69. neurograph/v1/models/workbench_workbench_version_upsert_request.py +2 -2
  70. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +2 -2
  71. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +73 -54
  72. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
  73. {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,89 @@
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 typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PersonasPersonaInstancesDeleteResponse(BaseModel):
26
+ """
27
+ PersonasPersonaInstancesDeleteResponse
28
+ """ # noqa: E501
29
+ deleted_seed_ids: Optional[List[StrictStr]] = None
30
+ error: Optional[StrictStr] = None
31
+ __properties: ClassVar[List[str]] = ["deleted_seed_ids", "error"]
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 PersonasPersonaInstancesDeleteResponse 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
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of PersonasPersonaInstancesDeleteResponse from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "deleted_seed_ids": obj.get("deleted_seed_ids"),
85
+ "error": obj.get("error")
86
+ })
87
+ return _obj
88
+
89
+
@@ -0,0 +1,103 @@
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.personas_persona import PersonasPersona
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PersonasPersonaInstancesResponse(BaseModel):
27
+ """
28
+ PersonasPersonaInstancesResponse
29
+ """ # noqa: E501
30
+ data: Optional[List[PersonasPersona]] = None
31
+ error: Optional[StrictStr] = None
32
+ query_limit: Optional[StrictInt] = None
33
+ query_offset: Optional[StrictInt] = None
34
+ total_rows: Optional[StrictInt] = None
35
+ __properties: ClassVar[List[str]] = ["data", "error", "query_limit", "query_offset", "total_rows"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of PersonasPersonaInstancesResponse from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # override the default output from pydantic by calling `to_dict()` of each item in data (list)
77
+ _items = []
78
+ if self.data:
79
+ for _item_data in self.data:
80
+ if _item_data:
81
+ _items.append(_item_data.to_dict())
82
+ _dict['data'] = _items
83
+ return _dict
84
+
85
+ @classmethod
86
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
+ """Create an instance of PersonasPersonaInstancesResponse from a dict"""
88
+ if obj is None:
89
+ return None
90
+
91
+ if not isinstance(obj, dict):
92
+ return cls.model_validate(obj)
93
+
94
+ _obj = cls.model_validate({
95
+ "data": [PersonasPersona.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
96
+ "error": obj.get("error"),
97
+ "query_limit": obj.get("query_limit"),
98
+ "query_offset": obj.get("query_offset"),
99
+ "total_rows": obj.get("total_rows")
100
+ })
101
+ return _obj
102
+
103
+
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -27,7 +27,7 @@ class PersonasPersonaKpiReq(BaseModel):
27
27
  PersonasPersonaKpiReq
28
28
  """ # noqa: E501
29
29
  name: Optional[StrictStr] = None
30
- persona_instance_id: Optional[StrictInt] = None
30
+ persona_instance_id: Optional[StrictStr] = None
31
31
  value: Optional[StrictStr] = None
32
32
  __properties: ClassVar[List[str]] = ["name", "persona_instance_id", "value"]
33
33
 
@@ -29,7 +29,7 @@ class PersonasPersonaKpiResp(BaseModel):
29
29
  error: Optional[StrictStr] = None
30
30
  id: Optional[StrictInt] = None
31
31
  name: Optional[StrictStr] = None
32
- persona_instance_id: Optional[StrictInt] = None
32
+ persona_instance_id: Optional[StrictStr] = None
33
33
  value: Optional[StrictStr] = None
34
34
  __properties: ClassVar[List[str]] = ["error", "id", "name", "persona_instance_id", "value"]
35
35
 
@@ -0,0 +1,93 @@
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 typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PersonasPersonaPersonalityTrait(BaseModel):
26
+ """
27
+ PersonasPersonaPersonalityTrait
28
+ """ # noqa: E501
29
+ id: Optional[StrictInt] = None
30
+ name: Optional[StrictStr] = None
31
+ persona_instance_id: Optional[StrictStr] = None
32
+ traits: Optional[List[StrictStr]] = None
33
+ __properties: ClassVar[List[str]] = ["id", "name", "persona_instance_id", "traits"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of PersonasPersonaPersonalityTrait from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of PersonasPersonaPersonalityTrait from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "id": obj.get("id"),
87
+ "name": obj.get("name"),
88
+ "persona_instance_id": obj.get("persona_instance_id"),
89
+ "traits": obj.get("traits")
90
+ })
91
+ return _obj
92
+
93
+
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -26,7 +26,7 @@ class PersonasPersonaSeedCreateRequest(BaseModel):
26
26
  """
27
27
  PersonasPersonaSeedCreateRequest
28
28
  """ # noqa: E501
29
- client_id: Optional[StrictInt] = None
29
+ client_id: Optional[StrictStr] = None
30
30
  uid: Optional[StrictStr] = None
31
31
  __properties: ClassVar[List[str]] = ["client_id", "uid"]
32
32
 
@@ -26,11 +26,11 @@ class PersonasPersonaSeedCreateResponse(BaseModel):
26
26
  """
27
27
  PersonasPersonaSeedCreateResponse
28
28
  """ # noqa: E501
29
- client_id: Optional[StrictInt] = None
29
+ client_id: Optional[StrictStr] = None
30
30
  error: Optional[StrictStr] = None
31
- id: Optional[StrictInt] = None
31
+ id: Optional[StrictStr] = None
32
32
  is_active: Optional[StrictBool] = None
33
- ts_created: Optional[StrictStr] = None
33
+ ts_created: Optional[StrictInt] = None
34
34
  uid: Optional[StrictStr] = None
35
35
  __properties: ClassVar[List[str]] = ["client_id", "error", "id", "is_active", "ts_created", "uid"]
36
36
 
@@ -0,0 +1,105 @@
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.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PersonasPersonaSeedGetManyResponse(BaseModel):
27
+ """
28
+ PersonasPersonaSeedGetManyResponse
29
+ """ # noqa: E501
30
+ client_id: Optional[StrictInt] = None
31
+ data: Optional[List[PersonasPersonaSeedCreateResponse]] = None
32
+ error: Optional[StrictStr] = None
33
+ query_limit: Optional[StrictInt] = None
34
+ query_offset: Optional[StrictInt] = None
35
+ total_rows: Optional[StrictInt] = None
36
+ __properties: ClassVar[List[str]] = ["client_id", "data", "error", "query_limit", "query_offset", "total_rows"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of PersonasPersonaSeedGetManyResponse from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ # override the default output from pydantic by calling `to_dict()` of each item in data (list)
78
+ _items = []
79
+ if self.data:
80
+ for _item_data in self.data:
81
+ if _item_data:
82
+ _items.append(_item_data.to_dict())
83
+ _dict['data'] = _items
84
+ return _dict
85
+
86
+ @classmethod
87
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
+ """Create an instance of PersonasPersonaSeedGetManyResponse from a dict"""
89
+ if obj is None:
90
+ return None
91
+
92
+ if not isinstance(obj, dict):
93
+ return cls.model_validate(obj)
94
+
95
+ _obj = cls.model_validate({
96
+ "client_id": obj.get("client_id"),
97
+ "data": [PersonasPersonaSeedCreateResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
98
+ "error": obj.get("error"),
99
+ "query_limit": obj.get("query_limit"),
100
+ "query_offset": obj.get("query_offset"),
101
+ "total_rows": obj.get("total_rows")
102
+ })
103
+ return _obj
104
+
105
+
@@ -0,0 +1,87 @@
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 typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PersonasPersonaSeedsDeleteRequest(BaseModel):
26
+ """
27
+ PersonasPersonaSeedsDeleteRequest
28
+ """ # noqa: E501
29
+ seed_ids: Optional[List[StrictStr]] = None
30
+ __properties: ClassVar[List[str]] = ["seed_ids"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of PersonasPersonaSeedsDeleteRequest from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of PersonasPersonaSeedsDeleteRequest from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "seed_ids": obj.get("seed_ids")
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,89 @@
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 typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PersonasPersonaSeedsDeleteResponse(BaseModel):
26
+ """
27
+ PersonasPersonaSeedsDeleteResponse
28
+ """ # noqa: E501
29
+ deleted_seed_ids: Optional[List[StrictStr]] = None
30
+ error: Optional[StrictStr] = None
31
+ __properties: ClassVar[List[str]] = ["deleted_seed_ids", "error"]
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 PersonasPersonaSeedsDeleteResponse 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
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of PersonasPersonaSeedsDeleteResponse from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "deleted_seed_ids": obj.get("deleted_seed_ids"),
85
+ "error": obj.get("error")
86
+ })
87
+ return _obj
88
+
89
+
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -27,7 +27,7 @@ class PersonasPersonalityTraitIn(BaseModel):
27
27
  PersonasPersonalityTraitIn
28
28
  """ # noqa: E501
29
29
  name: Optional[StrictStr] = None
30
- persona_instance_id: Optional[StrictInt] = None
30
+ persona_instance_id: Optional[StrictStr] = None
31
31
  traits: Optional[List[StrictStr]] = None
32
32
  __properties: ClassVar[List[str]] = ["name", "persona_instance_id", "traits"]
33
33
 
@@ -29,7 +29,7 @@ class PersonasPersonalityTraitOut(BaseModel):
29
29
  error: Optional[StrictStr] = None
30
30
  id: Optional[StrictInt] = None
31
31
  name: Optional[StrictStr] = None
32
- persona_instance_id: Optional[StrictInt] = None
32
+ persona_instance_id: Optional[StrictStr] = None
33
33
  traits: Optional[List[StrictStr]] = None
34
34
  __properties: ClassVar[List[str]] = ["error", "id", "name", "persona_instance_id", "traits"]
35
35