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.
- neurograph/v1/__init__.py +315 -5
- neurograph/v1/api/__init__.py +29 -2
- neurograph/v1/api/client_api.py +541 -0
- neurograph/v1/api/dagster_api.py +271 -2
- neurograph/v1/api/knowledge_api.py +4426 -0
- neurograph/v1/api/knowledge_extract_api.py +1798 -0
- neurograph/v1/api/persona_api.py +263 -2
- neurograph/v1/api_client.py +4 -1
- neurograph/v1/models/__init__.py +224 -2
- neurograph/v1/models/{client_client_create_request.py → client_client_info.py} +11 -7
- neurograph/v1/models/client_client_metadata_response.py +14 -2
- neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
- neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
- neurograph/v1/models/client_client_url_snapshot_row.py +99 -0
- neurograph/v1/models/client_client_urls_response.py +3 -3
- neurograph/v1/models/client_organization_brand.py +107 -0
- neurograph/v1/models/client_organization_detail.py +115 -0
- neurograph/v1/models/client_probe.py +105 -0
- neurograph/v1/models/client_probe_todo_row.py +89 -0
- neurograph/v1/models/client_trigger_probe_response.py +101 -0
- neurograph/v1/models/client_workbench_config.py +99 -0
- neurograph/v1/models/dagster_dagster_info.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_many_response.py → dagster_dagster_log_get_response.py} +7 -7
- neurograph/v1/models/db_knowledge_customer.py +97 -0
- neurograph/v1/models/db_knowledge_order.py +177 -0
- neurograph/v1/models/db_knowledge_product.py +107 -0
- neurograph/v1/models/db_knowledge_store.py +99 -0
- neurograph/v1/models/knowledge_assertion.py +111 -0
- neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
- neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
- neurograph/v1/models/knowledge_assertion_query.py +99 -0
- neurograph/v1/models/knowledge_assertion_response.py +93 -0
- neurograph/v1/models/knowledge_customer_query.py +99 -0
- neurograph/v1/models/knowledge_customer_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
- neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
- neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
- neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
- neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
- neurograph/v1/models/knowledge_enrichment_query.py +99 -0
- neurograph/v1/models/knowledge_entity.py +115 -0
- neurograph/v1/models/knowledge_entity_create_request.py +95 -0
- neurograph/v1/models/knowledge_entity_create_response.py +99 -0
- neurograph/v1/models/knowledge_entity_extra.py +91 -0
- neurograph/v1/models/knowledge_entity_get_many_response.py +103 -0
- neurograph/v1/models/knowledge_entity_in_db.py +117 -0
- neurograph/v1/models/knowledge_entity_relations.py +91 -0
- neurograph/v1/models/knowledge_entity_schema.py +89 -0
- neurograph/v1/models/{atlas_atlas_version_response.py → knowledge_entity_schema_row.py} +16 -18
- neurograph/v1/models/{organizations_organization_set_atlas_response.py → knowledge_entity_schema_upsert_request.py} +14 -16
- neurograph/v1/models/knowledge_entity_schemas_response.py +97 -0
- neurograph/v1/models/{atlas_atlas_version.py → knowledge_entity_schemas_upsert_response.py} +11 -15
- neurograph/v1/models/{organizations_atlas_config.py → knowledge_entity_type_row.py} +14 -14
- neurograph/v1/models/knowledge_entity_upsert_request.py +95 -0
- neurograph/v1/models/{atlas_atlas_version_upsert_request.py → knowledge_entity_upsert_row.py} +10 -12
- neurograph/v1/models/knowledge_err_entity_row.py +89 -0
- neurograph/v1/models/knowledge_ingest_raw_request.py +95 -0
- neurograph/v1/models/knowledge_ingest_raw_response.py +101 -0
- neurograph/v1/models/knowledge_ingest_raw_row.py +97 -0
- neurograph/v1/models/{tasks_sync_from_firebase_result.py → knowledge_kind_response.py} +8 -6
- neurograph/v1/models/knowledge_order_query.py +129 -0
- neurograph/v1/models/knowledge_order_response.py +103 -0
- neurograph/v1/models/knowledge_product_query.py +101 -0
- neurograph/v1/models/knowledge_product_response.py +103 -0
- neurograph/v1/models/knowledge_query.py +95 -0
- neurograph/v1/models/knowledge_store_query.py +97 -0
- neurograph/v1/models/knowledge_store_response.py +103 -0
- neurograph/v1/models/knowledge_type_response.py +97 -0
- neurograph/v1/models/{organizations_organization_set_atlas_request.py → pgtype_int8.py} +10 -14
- neurograph/v1/models/pgtype_text.py +89 -0
- {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/METADATA +2 -1
- {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/RECORD +75 -25
- neurograph/v1/api/atlas_api.py +0 -588
- neurograph/v1/api/tasks_api.py +0 -286
- {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508221357.dist-info → neurograph_core-1.202509152210.dist-info}/top_level.txt +0 -0
neurograph/v1/models/{atlas_atlas_version_upsert_request.py → knowledge_entity_upsert_row.py}
RENAMED
|
@@ -17,21 +17,20 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict,
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, 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
|
|
25
|
+
class KnowledgeEntityUpsertRow(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeEntityUpsertRow
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
description: Optional[StrictStr] = None
|
|
30
29
|
id: Optional[StrictInt] = None
|
|
31
|
-
|
|
30
|
+
kind: Optional[StrictStr] = None
|
|
32
31
|
name: Optional[StrictStr] = None
|
|
33
|
-
|
|
34
|
-
__properties: ClassVar[List[str]] = ["
|
|
32
|
+
slug: Optional[StrictStr] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["id", "kind", "name", "slug"]
|
|
35
34
|
|
|
36
35
|
model_config = ConfigDict(
|
|
37
36
|
populate_by_name=True,
|
|
@@ -51,7 +50,7 @@ class AtlasAtlasVersionUpsertRequest(BaseModel):
|
|
|
51
50
|
|
|
52
51
|
@classmethod
|
|
53
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of KnowledgeEntityUpsertRow from a JSON string"""
|
|
55
54
|
return cls.from_dict(json.loads(json_str))
|
|
56
55
|
|
|
57
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -76,7 +75,7 @@ class AtlasAtlasVersionUpsertRequest(BaseModel):
|
|
|
76
75
|
|
|
77
76
|
@classmethod
|
|
78
77
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
-
"""Create an instance of
|
|
78
|
+
"""Create an instance of KnowledgeEntityUpsertRow from a dict"""
|
|
80
79
|
if obj is None:
|
|
81
80
|
return None
|
|
82
81
|
|
|
@@ -84,11 +83,10 @@ class AtlasAtlasVersionUpsertRequest(BaseModel):
|
|
|
84
83
|
return cls.model_validate(obj)
|
|
85
84
|
|
|
86
85
|
_obj = cls.model_validate({
|
|
87
|
-
"description": obj.get("description"),
|
|
88
86
|
"id": obj.get("id"),
|
|
89
|
-
"
|
|
87
|
+
"kind": obj.get("kind"),
|
|
90
88
|
"name": obj.get("name"),
|
|
91
|
-
"
|
|
89
|
+
"slug": obj.get("slug")
|
|
92
90
|
})
|
|
93
91
|
return _obj
|
|
94
92
|
|
|
@@ -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, 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 KnowledgeErrEntityRow(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeErrEntityRow
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
error: Optional[StrictStr] = None
|
|
30
|
+
index: Optional[StrictInt] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["error", "index"]
|
|
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 KnowledgeErrEntityRow 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 KnowledgeErrEntityRow 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
|
+
"error": obj.get("error"),
|
|
85
|
+
"index": obj.get("index")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -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_ingest_raw_row import KnowledgeIngestRawRow
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class KnowledgeIngestRawRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
KnowledgeIngestRawRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
data: Optional[List[KnowledgeIngestRawRow]] = 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 KnowledgeIngestRawRequest 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 KnowledgeIngestRawRequest 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": [KnowledgeIngestRawRow.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,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_err_entity_row import KnowledgeErrEntityRow
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class KnowledgeIngestRawResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
KnowledgeIngestRawResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error: Optional[StrictStr] = None
|
|
31
|
+
error_rows: Optional[List[KnowledgeErrEntityRow]] = None
|
|
32
|
+
last_id: Optional[StrictInt] = None
|
|
33
|
+
rows_inserted: Optional[StrictInt] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["error", "error_rows", "last_id", "rows_inserted"]
|
|
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 KnowledgeIngestRawResponse 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 KnowledgeIngestRawResponse 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
|
+
"error": obj.get("error"),
|
|
95
|
+
"error_rows": [KnowledgeErrEntityRow.from_dict(_item) for _item in obj["error_rows"]] if obj.get("error_rows") is not None else None,
|
|
96
|
+
"last_id": obj.get("last_id"),
|
|
97
|
+
"rows_inserted": obj.get("rows_inserted")
|
|
98
|
+
})
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -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 typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class KnowledgeIngestRawRow(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeIngestRawRow
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
client_id: Optional[StrictStr] = None
|
|
30
|
+
payload: Optional[Dict[str, Any]] = None
|
|
31
|
+
payload_hash: Optional[StrictStr] = None
|
|
32
|
+
source_collection: Optional[StrictStr] = None
|
|
33
|
+
source_ref_id: Optional[StrictStr] = None
|
|
34
|
+
source_schema: Optional[StrictStr] = None
|
|
35
|
+
__properties: ClassVar[List[str]] = ["client_id", "payload", "payload_hash", "source_collection", "source_ref_id", "source_schema"]
|
|
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 KnowledgeIngestRawRow 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
|
+
return _dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
+
"""Create an instance of KnowledgeIngestRawRow from a dict"""
|
|
81
|
+
if obj is None:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
if not isinstance(obj, dict):
|
|
85
|
+
return cls.model_validate(obj)
|
|
86
|
+
|
|
87
|
+
_obj = cls.model_validate({
|
|
88
|
+
"client_id": obj.get("client_id"),
|
|
89
|
+
"payload": obj.get("payload"),
|
|
90
|
+
"payload_hash": obj.get("payload_hash"),
|
|
91
|
+
"source_collection": obj.get("source_collection"),
|
|
92
|
+
"source_ref_id": obj.get("source_ref_id"),
|
|
93
|
+
"source_schema": obj.get("source_schema")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -22,12 +22,13 @@ 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 KnowledgeKindResponse(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
KnowledgeKindResponse
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
error: Optional[StrictStr] = None
|
|
30
|
-
|
|
30
|
+
kinds: Optional[List[StrictStr]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["error", "kinds"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
34
|
populate_by_name=True,
|
|
@@ -47,7 +48,7 @@ class TasksSyncFromFirebaseResult(BaseModel):
|
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of KnowledgeKindResponse from a JSON string"""
|
|
51
52
|
return cls.from_dict(json.loads(json_str))
|
|
52
53
|
|
|
53
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +73,7 @@ class TasksSyncFromFirebaseResult(BaseModel):
|
|
|
72
73
|
|
|
73
74
|
@classmethod
|
|
74
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of KnowledgeKindResponse from a dict"""
|
|
76
77
|
if obj is None:
|
|
77
78
|
return None
|
|
78
79
|
|
|
@@ -80,7 +81,8 @@ class TasksSyncFromFirebaseResult(BaseModel):
|
|
|
80
81
|
return cls.model_validate(obj)
|
|
81
82
|
|
|
82
83
|
_obj = cls.model_validate({
|
|
83
|
-
"error": obj.get("error")
|
|
84
|
+
"error": obj.get("error"),
|
|
85
|
+
"kinds": obj.get("kinds")
|
|
84
86
|
})
|
|
85
87
|
return _obj
|
|
86
88
|
|
|
@@ -0,0 +1,129 @@
|
|
|
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, Field, 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 KnowledgeOrderQuery(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
KnowledgeOrderQuery
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
billing_address_hash: Optional[StrictStr] = None
|
|
30
|
+
channel: Optional[StrictStr] = None
|
|
31
|
+
client_id: Optional[StrictStr] = Field(default=None, description="required")
|
|
32
|
+
currency: Optional[StrictStr] = None
|
|
33
|
+
customer_entity_id: Optional[StrictStr] = None
|
|
34
|
+
email_at_order: Optional[StrictStr] = None
|
|
35
|
+
ext_order_id: Optional[StrictStr] = None
|
|
36
|
+
ext_order_number: Optional[StrictStr] = None
|
|
37
|
+
ext_store_id: Optional[StrictStr] = None
|
|
38
|
+
financial_status: Optional[StrictStr] = None
|
|
39
|
+
fulfillment_status: Optional[StrictStr] = None
|
|
40
|
+
limit: Optional[StrictInt] = None
|
|
41
|
+
offset: Optional[StrictInt] = None
|
|
42
|
+
phone_at_order: Optional[StrictStr] = None
|
|
43
|
+
placed_from: Optional[StrictStr] = Field(default=None, description="raw string ISO-8601")
|
|
44
|
+
placed_to: Optional[StrictStr] = None
|
|
45
|
+
shipping_address_hash: Optional[StrictStr] = None
|
|
46
|
+
source_name: Optional[StrictStr] = None
|
|
47
|
+
status: Optional[StrictStr] = None
|
|
48
|
+
store_entity_id: Optional[StrictStr] = None
|
|
49
|
+
total_max: Optional[StrictStr] = None
|
|
50
|
+
total_min: Optional[StrictStr] = None
|
|
51
|
+
__properties: ClassVar[List[str]] = ["billing_address_hash", "channel", "client_id", "currency", "customer_entity_id", "email_at_order", "ext_order_id", "ext_order_number", "ext_store_id", "financial_status", "fulfillment_status", "limit", "offset", "phone_at_order", "placed_from", "placed_to", "shipping_address_hash", "source_name", "status", "store_entity_id", "total_max", "total_min"]
|
|
52
|
+
|
|
53
|
+
model_config = ConfigDict(
|
|
54
|
+
populate_by_name=True,
|
|
55
|
+
validate_assignment=True,
|
|
56
|
+
protected_namespaces=(),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def to_str(self) -> str:
|
|
61
|
+
"""Returns the string representation of the model using alias"""
|
|
62
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
63
|
+
|
|
64
|
+
def to_json(self) -> str:
|
|
65
|
+
"""Returns the JSON representation of the model using alias"""
|
|
66
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
67
|
+
return json.dumps(self.to_dict())
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
71
|
+
"""Create an instance of KnowledgeOrderQuery from a JSON string"""
|
|
72
|
+
return cls.from_dict(json.loads(json_str))
|
|
73
|
+
|
|
74
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
75
|
+
"""Return the dictionary representation of the model using alias.
|
|
76
|
+
|
|
77
|
+
This has the following differences from calling pydantic's
|
|
78
|
+
`self.model_dump(by_alias=True)`:
|
|
79
|
+
|
|
80
|
+
* `None` is only added to the output dict for nullable fields that
|
|
81
|
+
were set at model initialization. Other fields with value `None`
|
|
82
|
+
are ignored.
|
|
83
|
+
"""
|
|
84
|
+
excluded_fields: Set[str] = set([
|
|
85
|
+
])
|
|
86
|
+
|
|
87
|
+
_dict = self.model_dump(
|
|
88
|
+
by_alias=True,
|
|
89
|
+
exclude=excluded_fields,
|
|
90
|
+
exclude_none=True,
|
|
91
|
+
)
|
|
92
|
+
return _dict
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of KnowledgeOrderQuery from a dict"""
|
|
97
|
+
if obj is None:
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
if not isinstance(obj, dict):
|
|
101
|
+
return cls.model_validate(obj)
|
|
102
|
+
|
|
103
|
+
_obj = cls.model_validate({
|
|
104
|
+
"billing_address_hash": obj.get("billing_address_hash"),
|
|
105
|
+
"channel": obj.get("channel"),
|
|
106
|
+
"client_id": obj.get("client_id"),
|
|
107
|
+
"currency": obj.get("currency"),
|
|
108
|
+
"customer_entity_id": obj.get("customer_entity_id"),
|
|
109
|
+
"email_at_order": obj.get("email_at_order"),
|
|
110
|
+
"ext_order_id": obj.get("ext_order_id"),
|
|
111
|
+
"ext_order_number": obj.get("ext_order_number"),
|
|
112
|
+
"ext_store_id": obj.get("ext_store_id"),
|
|
113
|
+
"financial_status": obj.get("financial_status"),
|
|
114
|
+
"fulfillment_status": obj.get("fulfillment_status"),
|
|
115
|
+
"limit": obj.get("limit"),
|
|
116
|
+
"offset": obj.get("offset"),
|
|
117
|
+
"phone_at_order": obj.get("phone_at_order"),
|
|
118
|
+
"placed_from": obj.get("placed_from"),
|
|
119
|
+
"placed_to": obj.get("placed_to"),
|
|
120
|
+
"shipping_address_hash": obj.get("shipping_address_hash"),
|
|
121
|
+
"source_name": obj.get("source_name"),
|
|
122
|
+
"status": obj.get("status"),
|
|
123
|
+
"store_entity_id": obj.get("store_entity_id"),
|
|
124
|
+
"total_max": obj.get("total_max"),
|
|
125
|
+
"total_min": obj.get("total_min")
|
|
126
|
+
})
|
|
127
|
+
return _obj
|
|
128
|
+
|
|
129
|
+
|