neurograph-core 1.202508221357__py3-none-any.whl → 1.202509152210__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 (77) hide show
  1. neurograph/v1/__init__.py +315 -5
  2. neurograph/v1/api/__init__.py +29 -2
  3. neurograph/v1/api/client_api.py +541 -0
  4. neurograph/v1/api/dagster_api.py +271 -2
  5. neurograph/v1/api/knowledge_api.py +4426 -0
  6. neurograph/v1/api/knowledge_extract_api.py +1798 -0
  7. neurograph/v1/api/persona_api.py +263 -2
  8. neurograph/v1/api_client.py +4 -1
  9. neurograph/v1/models/__init__.py +224 -2
  10. neurograph/v1/models/{client_client_create_request.py → client_client_info.py} +11 -7
  11. neurograph/v1/models/client_client_metadata_response.py +14 -2
  12. neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
  13. neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
  14. neurograph/v1/models/client_client_url_snapshot_row.py +99 -0
  15. neurograph/v1/models/client_client_urls_response.py +3 -3
  16. neurograph/v1/models/client_organization_brand.py +107 -0
  17. neurograph/v1/models/client_organization_detail.py +115 -0
  18. neurograph/v1/models/client_probe.py +105 -0
  19. neurograph/v1/models/client_probe_todo_row.py +89 -0
  20. neurograph/v1/models/client_trigger_probe_response.py +101 -0
  21. neurograph/v1/models/client_workbench_config.py +99 -0
  22. neurograph/v1/models/dagster_dagster_info.py +95 -0
  23. neurograph/v1/models/{atlas_atlas_version_many_response.py → dagster_dagster_log_get_response.py} +7 -7
  24. neurograph/v1/models/db_knowledge_customer.py +97 -0
  25. neurograph/v1/models/db_knowledge_order.py +177 -0
  26. neurograph/v1/models/db_knowledge_product.py +107 -0
  27. neurograph/v1/models/db_knowledge_store.py +99 -0
  28. neurograph/v1/models/knowledge_assertion.py +111 -0
  29. neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
  30. neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
  31. neurograph/v1/models/knowledge_assertion_query.py +99 -0
  32. neurograph/v1/models/knowledge_assertion_response.py +93 -0
  33. neurograph/v1/models/knowledge_customer_query.py +99 -0
  34. neurograph/v1/models/knowledge_customer_response.py +103 -0
  35. neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
  36. neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
  37. neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
  38. neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
  39. neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
  40. neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
  41. neurograph/v1/models/knowledge_enrichment_query.py +99 -0
  42. neurograph/v1/models/knowledge_entity.py +115 -0
  43. neurograph/v1/models/knowledge_entity_create_request.py +95 -0
  44. neurograph/v1/models/knowledge_entity_create_response.py +99 -0
  45. neurograph/v1/models/knowledge_entity_extra.py +91 -0
  46. neurograph/v1/models/knowledge_entity_get_many_response.py +103 -0
  47. neurograph/v1/models/knowledge_entity_in_db.py +117 -0
  48. neurograph/v1/models/knowledge_entity_relations.py +91 -0
  49. neurograph/v1/models/knowledge_entity_schema.py +89 -0
  50. neurograph/v1/models/{atlas_atlas_version_response.py → knowledge_entity_schema_row.py} +16 -18
  51. neurograph/v1/models/{organizations_organization_set_atlas_response.py → knowledge_entity_schema_upsert_request.py} +14 -16
  52. neurograph/v1/models/knowledge_entity_schemas_response.py +97 -0
  53. neurograph/v1/models/{atlas_atlas_version.py → knowledge_entity_schemas_upsert_response.py} +11 -15
  54. neurograph/v1/models/{organizations_atlas_config.py → knowledge_entity_type_row.py} +14 -14
  55. neurograph/v1/models/knowledge_entity_upsert_request.py +95 -0
  56. neurograph/v1/models/{atlas_atlas_version_upsert_request.py → knowledge_entity_upsert_row.py} +10 -12
  57. neurograph/v1/models/knowledge_err_entity_row.py +89 -0
  58. neurograph/v1/models/knowledge_ingest_raw_request.py +95 -0
  59. neurograph/v1/models/knowledge_ingest_raw_response.py +101 -0
  60. neurograph/v1/models/knowledge_ingest_raw_row.py +97 -0
  61. neurograph/v1/models/{tasks_sync_from_firebase_result.py → knowledge_kind_response.py} +8 -6
  62. neurograph/v1/models/knowledge_order_query.py +129 -0
  63. neurograph/v1/models/knowledge_order_response.py +103 -0
  64. neurograph/v1/models/knowledge_product_query.py +101 -0
  65. neurograph/v1/models/knowledge_product_response.py +103 -0
  66. neurograph/v1/models/knowledge_query.py +95 -0
  67. neurograph/v1/models/knowledge_store_query.py +97 -0
  68. neurograph/v1/models/knowledge_store_response.py +103 -0
  69. neurograph/v1/models/knowledge_type_response.py +97 -0
  70. neurograph/v1/models/{organizations_organization_set_atlas_request.py → pgtype_int8.py} +10 -14
  71. neurograph/v1/models/pgtype_text.py +89 -0
  72. {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/METADATA +2 -1
  73. {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/RECORD +75 -25
  74. neurograph/v1/api/atlas_api.py +0 -588
  75. neurograph/v1/api/tasks_api.py +0 -286
  76. {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/WHEEL +0 -0
  77. {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,91 @@
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 KnowledgeEntityRelations(BaseModel):
26
+ """
27
+ KnowledgeEntityRelations
28
+ """ # noqa: E501
29
+ children: Optional[List[StrictStr]] = None
30
+ parents: Optional[List[StrictStr]] = None
31
+ siblings: Optional[List[StrictStr]] = None
32
+ __properties: ClassVar[List[str]] = ["children", "parents", "siblings"]
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 KnowledgeEntityRelations 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
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of KnowledgeEntityRelations from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "children": obj.get("children"),
86
+ "parents": obj.get("parents"),
87
+ "siblings": obj.get("siblings")
88
+ })
89
+ return _obj
90
+
91
+
@@ -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 KnowledgeEntitySchema(BaseModel):
26
+ """
27
+ KnowledgeEntitySchema
28
+ """ # noqa: E501
29
+ id: Optional[StrictStr] = None
30
+ params: Optional[Dict[str, Any]] = None
31
+ __properties: ClassVar[List[str]] = ["id", "params"]
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 KnowledgeEntitySchema 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 KnowledgeEntitySchema 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
+ "id": obj.get("id"),
85
+ "params": obj.get("params")
86
+ })
87
+ return _obj
88
+
89
+
@@ -17,24 +17,23 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictInt, 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
24
24
 
25
- class AtlasAtlasVersionResponse(BaseModel):
25
+ class KnowledgeEntitySchemaRow(BaseModel):
26
26
  """
27
- AtlasAtlasVersionResponse
27
+ KnowledgeEntitySchemaRow
28
28
  """ # noqa: E501
29
29
  description: Optional[StrictStr] = None
30
- error: Optional[StrictStr] = None
31
- id: Optional[StrictInt] = None
32
- is_active: Optional[StrictBool] = None
33
- name: Optional[StrictStr] = None
34
- ts_created: Optional[StrictInt] = Field(default=None, description="Config []byte `json:\"config\"`")
30
+ json_schema: Optional[Dict[str, Any]] = None
31
+ params_example: Optional[Dict[str, Any]] = None
32
+ schema_id: Optional[StrictStr] = None
33
+ source_system: Optional[StrictStr] = None
34
+ ts_created: Optional[StrictInt] = None
35
35
  ts_updated: Optional[StrictInt] = None
36
- version: Optional[StrictStr] = None
37
- __properties: ClassVar[List[str]] = ["description", "error", "id", "is_active", "name", "ts_created", "ts_updated", "version"]
36
+ __properties: ClassVar[List[str]] = ["description", "json_schema", "params_example", "schema_id", "source_system", "ts_created", "ts_updated"]
38
37
 
39
38
  model_config = ConfigDict(
40
39
  populate_by_name=True,
@@ -54,7 +53,7 @@ class AtlasAtlasVersionResponse(BaseModel):
54
53
 
55
54
  @classmethod
56
55
  def from_json(cls, json_str: str) -> Optional[Self]:
57
- """Create an instance of AtlasAtlasVersionResponse from a JSON string"""
56
+ """Create an instance of KnowledgeEntitySchemaRow from a JSON string"""
58
57
  return cls.from_dict(json.loads(json_str))
59
58
 
60
59
  def to_dict(self) -> Dict[str, Any]:
@@ -79,7 +78,7 @@ class AtlasAtlasVersionResponse(BaseModel):
79
78
 
80
79
  @classmethod
81
80
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
82
- """Create an instance of AtlasAtlasVersionResponse from a dict"""
81
+ """Create an instance of KnowledgeEntitySchemaRow from a dict"""
83
82
  if obj is None:
84
83
  return None
85
84
 
@@ -88,13 +87,12 @@ class AtlasAtlasVersionResponse(BaseModel):
88
87
 
89
88
  _obj = cls.model_validate({
90
89
  "description": obj.get("description"),
91
- "error": obj.get("error"),
92
- "id": obj.get("id"),
93
- "is_active": obj.get("is_active"),
94
- "name": obj.get("name"),
90
+ "json_schema": obj.get("json_schema"),
91
+ "params_example": obj.get("params_example"),
92
+ "schema_id": obj.get("schema_id"),
93
+ "source_system": obj.get("source_system"),
95
94
  "ts_created": obj.get("ts_created"),
96
- "ts_updated": obj.get("ts_updated"),
97
- "version": obj.get("version")
95
+ "ts_updated": obj.get("ts_updated")
98
96
  })
99
97
  return _obj
100
98
 
@@ -17,23 +17,22 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, Field, 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
24
24
 
25
- class OrganizationsOrganizationSetAtlasResponse(BaseModel):
25
+ class KnowledgeEntitySchemaUpsertRequest(BaseModel):
26
26
  """
27
- OrganizationsOrganizationSetAtlasResponse
27
+ KnowledgeEntitySchemaUpsertRequest
28
28
  """ # noqa: E501
29
29
  description: Optional[StrictStr] = None
30
- error: Optional[StrictStr] = None
31
- id: Optional[StrictInt] = None
32
- is_active: Optional[StrictBool] = None
33
- name: Optional[StrictStr] = None
34
- url: Optional[StrictStr] = None
30
+ json_schema: Optional[StrictStr] = None
31
+ params_example: Optional[StrictStr] = None
32
+ var_schema: Optional[StrictStr] = Field(default=None, alias="schema")
33
+ source_system: Optional[StrictStr] = None
35
34
  version: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["description", "error", "id", "is_active", "name", "url", "version"]
35
+ __properties: ClassVar[List[str]] = ["description", "json_schema", "params_example", "schema", "source_system", "version"]
37
36
 
38
37
  model_config = ConfigDict(
39
38
  populate_by_name=True,
@@ -53,7 +52,7 @@ class OrganizationsOrganizationSetAtlasResponse(BaseModel):
53
52
 
54
53
  @classmethod
55
54
  def from_json(cls, json_str: str) -> Optional[Self]:
56
- """Create an instance of OrganizationsOrganizationSetAtlasResponse from a JSON string"""
55
+ """Create an instance of KnowledgeEntitySchemaUpsertRequest from a JSON string"""
57
56
  return cls.from_dict(json.loads(json_str))
58
57
 
59
58
  def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +77,7 @@ class OrganizationsOrganizationSetAtlasResponse(BaseModel):
78
77
 
79
78
  @classmethod
80
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
- """Create an instance of OrganizationsOrganizationSetAtlasResponse from a dict"""
80
+ """Create an instance of KnowledgeEntitySchemaUpsertRequest from a dict"""
82
81
  if obj is None:
83
82
  return None
84
83
 
@@ -87,11 +86,10 @@ class OrganizationsOrganizationSetAtlasResponse(BaseModel):
87
86
 
88
87
  _obj = cls.model_validate({
89
88
  "description": obj.get("description"),
90
- "error": obj.get("error"),
91
- "id": obj.get("id"),
92
- "is_active": obj.get("is_active"),
93
- "name": obj.get("name"),
94
- "url": obj.get("url"),
89
+ "json_schema": obj.get("json_schema"),
90
+ "params_example": obj.get("params_example"),
91
+ "schema": obj.get("schema"),
92
+ "source_system": obj.get("source_system"),
95
93
  "version": obj.get("version")
96
94
  })
97
95
  return _obj
@@ -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.knowledge_entity_schema_row import KnowledgeEntitySchemaRow
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class KnowledgeEntitySchemasResponse(BaseModel):
27
+ """
28
+ KnowledgeEntitySchemasResponse
29
+ """ # noqa: E501
30
+ error: Optional[StrictStr] = None
31
+ schemas: Optional[List[KnowledgeEntitySchemaRow]] = None
32
+ __properties: ClassVar[List[str]] = ["error", "schemas"]
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 KnowledgeEntitySchemasResponse 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 schemas (list)
74
+ _items = []
75
+ if self.schemas:
76
+ for _item_schemas in self.schemas:
77
+ if _item_schemas:
78
+ _items.append(_item_schemas.to_dict())
79
+ _dict['schemas'] = _items
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of KnowledgeEntitySchemasResponse 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
+ "error": obj.get("error"),
93
+ "schemas": [KnowledgeEntitySchemaRow.from_dict(_item) for _item in obj["schemas"]] if obj.get("schemas") is not None else None
94
+ })
95
+ return _obj
96
+
97
+
@@ -17,23 +17,21 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictInt, 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
24
24
 
25
- class AtlasAtlasVersion(BaseModel):
25
+ class KnowledgeEntitySchemasUpsertResponse(BaseModel):
26
26
  """
27
- AtlasAtlasVersion
27
+ KnowledgeEntitySchemasUpsertResponse
28
28
  """ # noqa: E501
29
- description: Optional[StrictStr] = None
30
- id: Optional[StrictInt] = None
31
- is_active: Optional[StrictBool] = None
32
- name: Optional[StrictStr] = None
33
- ts_created: Optional[StrictInt] = Field(default=None, description="Config []byte `json:\"config\"`")
29
+ error: Optional[StrictStr] = None
30
+ schema_id: Optional[StrictStr] = None
31
+ ts_created: Optional[StrictInt] = None
34
32
  ts_updated: Optional[StrictInt] = None
35
33
  version: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["description", "id", "is_active", "name", "ts_created", "ts_updated", "version"]
34
+ __properties: ClassVar[List[str]] = ["error", "schema_id", "ts_created", "ts_updated", "version"]
37
35
 
38
36
  model_config = ConfigDict(
39
37
  populate_by_name=True,
@@ -53,7 +51,7 @@ class AtlasAtlasVersion(BaseModel):
53
51
 
54
52
  @classmethod
55
53
  def from_json(cls, json_str: str) -> Optional[Self]:
56
- """Create an instance of AtlasAtlasVersion from a JSON string"""
54
+ """Create an instance of KnowledgeEntitySchemasUpsertResponse from a JSON string"""
57
55
  return cls.from_dict(json.loads(json_str))
58
56
 
59
57
  def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +76,7 @@ class AtlasAtlasVersion(BaseModel):
78
76
 
79
77
  @classmethod
80
78
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
- """Create an instance of AtlasAtlasVersion from a dict"""
79
+ """Create an instance of KnowledgeEntitySchemasUpsertResponse from a dict"""
82
80
  if obj is None:
83
81
  return None
84
82
 
@@ -86,10 +84,8 @@ class AtlasAtlasVersion(BaseModel):
86
84
  return cls.model_validate(obj)
87
85
 
88
86
  _obj = cls.model_validate({
89
- "description": obj.get("description"),
90
- "id": obj.get("id"),
91
- "is_active": obj.get("is_active"),
92
- "name": obj.get("name"),
87
+ "error": obj.get("error"),
88
+ "schema_id": obj.get("schema_id"),
93
89
  "ts_created": obj.get("ts_created"),
94
90
  "ts_updated": obj.get("ts_updated"),
95
91
  "version": obj.get("version")
@@ -17,22 +17,22 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictInt, 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
24
24
 
25
- class OrganizationsAtlasConfig(BaseModel):
25
+ class KnowledgeEntityTypeRow(BaseModel):
26
26
  """
27
- OrganizationsAtlasConfig
27
+ KnowledgeEntityTypeRow
28
28
  """ # noqa: E501
29
- description: Optional[StrictStr] = None
30
29
  id: Optional[StrictInt] = None
31
- is_active: Optional[StrictBool] = None
30
+ kind: Optional[StrictStr] = None
32
31
  name: Optional[StrictStr] = None
33
- url: Optional[StrictStr] = None
34
- version: Optional[StrictStr] = None
35
- __properties: ClassVar[List[str]] = ["description", "id", "is_active", "name", "url", "version"]
32
+ slug: Optional[StrictStr] = None
33
+ ts_created: Optional[StrictInt] = None
34
+ ts_updated: Optional[StrictInt] = None
35
+ __properties: ClassVar[List[str]] = ["id", "kind", "name", "slug", "ts_created", "ts_updated"]
36
36
 
37
37
  model_config = ConfigDict(
38
38
  populate_by_name=True,
@@ -52,7 +52,7 @@ class OrganizationsAtlasConfig(BaseModel):
52
52
 
53
53
  @classmethod
54
54
  def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of OrganizationsAtlasConfig from a JSON string"""
55
+ """Create an instance of KnowledgeEntityTypeRow 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 OrganizationsAtlasConfig(BaseModel):
77
77
 
78
78
  @classmethod
79
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of OrganizationsAtlasConfig from a dict"""
80
+ """Create an instance of KnowledgeEntityTypeRow from a dict"""
81
81
  if obj is None:
82
82
  return None
83
83
 
@@ -85,12 +85,12 @@ class OrganizationsAtlasConfig(BaseModel):
85
85
  return cls.model_validate(obj)
86
86
 
87
87
  _obj = cls.model_validate({
88
- "description": obj.get("description"),
89
88
  "id": obj.get("id"),
90
- "is_active": obj.get("is_active"),
89
+ "kind": obj.get("kind"),
91
90
  "name": obj.get("name"),
92
- "url": obj.get("url"),
93
- "version": obj.get("version")
91
+ "slug": obj.get("slug"),
92
+ "ts_created": obj.get("ts_created"),
93
+ "ts_updated": obj.get("ts_updated")
94
94
  })
95
95
  return _obj
96
96
 
@@ -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.knowledge_entity_upsert_row import KnowledgeEntityUpsertRow
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class KnowledgeEntityUpsertRequest(BaseModel):
27
+ """
28
+ KnowledgeEntityUpsertRequest
29
+ """ # noqa: E501
30
+ data: Optional[List[KnowledgeEntityUpsertRow]] = 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 KnowledgeEntityUpsertRequest 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 KnowledgeEntityUpsertRequest 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": [KnowledgeEntityUpsertRow.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
92
+ })
93
+ return _obj
94
+
95
+