neurograph-core 1.202509071925__py3-none-any.whl → 1.202509160244__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 (67) hide show
  1. neurograph/v1/__init__.py +295 -43
  2. neurograph/v1/api/__init__.py +28 -2
  3. neurograph/v1/api/client_api.py +541 -0
  4. neurograph/v1/api/knowledge_api.py +2281 -124
  5. neurograph/v1/api/knowledge_extract_api.py +1798 -0
  6. neurograph/v1/api_client.py +4 -1
  7. neurograph/v1/models/__init__.py +215 -21
  8. neurograph/v1/models/{client_client_creat_response.py → client_client_url_row.py} +21 -25
  9. neurograph/v1/models/client_client_url_snapshot_response.py +95 -0
  10. neurograph/v1/models/{atlas_atlas_version_response.py → client_client_url_snapshot_row.py} +20 -22
  11. neurograph/v1/models/client_client_urls_response.py +3 -3
  12. neurograph/v1/models/{organizations_organization_set_atlas_response.py → client_probe.py} +22 -16
  13. neurograph/v1/models/client_probe_todo_row.py +89 -0
  14. neurograph/v1/models/client_trigger_probe_response.py +101 -0
  15. neurograph/v1/models/db_knowledge_customer.py +97 -0
  16. neurograph/v1/models/db_knowledge_order.py +177 -0
  17. neurograph/v1/models/db_knowledge_product.py +107 -0
  18. neurograph/v1/models/{atlas_atlas_version_upsert_request.py → db_knowledge_store.py} +16 -12
  19. neurograph/v1/models/knowledge_assertion.py +111 -0
  20. neurograph/v1/models/knowledge_assertion_create_request.py +103 -0
  21. neurograph/v1/models/knowledge_assertion_list_response.py +103 -0
  22. neurograph/v1/models/knowledge_assertion_query.py +99 -0
  23. neurograph/v1/models/{atlas_atlas_version_many_response.py → knowledge_assertion_response.py} +9 -13
  24. neurograph/v1/models/knowledge_customer_query.py +99 -0
  25. neurograph/v1/models/knowledge_customer_response.py +103 -0
  26. neurograph/v1/models/knowledge_enrichment_artifact.py +137 -0
  27. neurograph/v1/models/knowledge_enrichment_artifact_create_request.py +113 -0
  28. neurograph/v1/models/knowledge_enrichment_artifact_list_response.py +103 -0
  29. neurograph/v1/models/knowledge_enrichment_artifact_response.py +93 -0
  30. neurograph/v1/models/knowledge_enrichment_artifact_update_output_request.py +93 -0
  31. neurograph/v1/models/knowledge_enrichment_artifact_update_status_request.py +99 -0
  32. neurograph/v1/models/{organizations_atlas_config.py → knowledge_enrichment_query.py} +19 -17
  33. neurograph/v1/models/{knowledge_knowledge_entity.py → knowledge_entity.py} +13 -13
  34. neurograph/v1/models/{knowledge_knowledge_entity_upsert_request.py → knowledge_entity_create_request.py} +7 -7
  35. neurograph/v1/models/{knowledge_knowledge_entity_create_response.py → knowledge_entity_create_response.py} +4 -4
  36. neurograph/v1/models/{knowledge_knowledge_entity_extra.py → knowledge_entity_extra.py} +4 -4
  37. neurograph/v1/models/{knowledge_knowledge_entity_get_many_response.py → knowledge_entity_get_many_response.py} +7 -7
  38. neurograph/v1/models/{knowledge_knowledge_entity_in_db.py → knowledge_entity_in_db.py} +13 -13
  39. neurograph/v1/models/{knowledge_knowledge_entity_relations.py → knowledge_entity_relations.py} +4 -4
  40. neurograph/v1/models/{knowledge_knowledge_entity_schema.py → knowledge_entity_schema.py} +4 -4
  41. neurograph/v1/models/{knowledge_knowledge_entity_schema_row.py → knowledge_entity_schema_row.py} +4 -4
  42. neurograph/v1/models/{knowledge_knowledge_entity_schema_upsert_request.py → knowledge_entity_schema_upsert_request.py} +4 -4
  43. neurograph/v1/models/{knowledge_knowledge_entity_schemas_response.py → knowledge_entity_schemas_response.py} +7 -7
  44. neurograph/v1/models/{knowledge_knowledge_entity_schemas_upsert_response.py → knowledge_entity_schemas_upsert_response.py} +4 -4
  45. neurograph/v1/models/{knowledge_knowledge_entity_type_row.py → knowledge_entity_type_row.py} +4 -4
  46. neurograph/v1/models/{knowledge_knowledge_entity_create_request.py → knowledge_entity_upsert_request.py} +9 -11
  47. neurograph/v1/models/{knowledge_knowledge_entity_upsert_row.py → knowledge_entity_upsert_row.py} +4 -4
  48. neurograph/v1/models/{knowledge_knowledge_ingest_raw_request.py → knowledge_ingest_raw_request.py} +4 -4
  49. neurograph/v1/models/{knowledge_knowledge_ingest_raw_response.py → knowledge_ingest_raw_response.py} +4 -4
  50. neurograph/v1/models/{knowledge_knowledge_kind_response.py → knowledge_kind_response.py} +4 -4
  51. neurograph/v1/models/knowledge_order_query.py +129 -0
  52. neurograph/v1/models/knowledge_order_response.py +103 -0
  53. neurograph/v1/models/knowledge_product_query.py +101 -0
  54. neurograph/v1/models/knowledge_product_response.py +103 -0
  55. neurograph/v1/models/{client_client_create_request.py → knowledge_store_query.py} +17 -15
  56. neurograph/v1/models/knowledge_store_response.py +103 -0
  57. neurograph/v1/models/{knowledge_knowledge_type_response.py → knowledge_type_response.py} +7 -7
  58. neurograph/v1/models/{tasks_sync_from_firebase_result.py → pgtype_int8.py} +10 -8
  59. neurograph/v1/models/pgtype_text.py +89 -0
  60. {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/METADATA +2 -1
  61. {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/RECORD +63 -42
  62. neurograph/v1/api/atlas_api.py +0 -588
  63. neurograph/v1/api/tasks_api.py +0 -286
  64. neurograph/v1/models/atlas_atlas_version.py +0 -99
  65. neurograph/v1/models/organizations_organization_set_atlas_request.py +0 -93
  66. {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/WHEEL +0 -0
  67. {neurograph_core-1.202509071925.dist-info → neurograph_core-1.202509160244.dist-info}/top_level.txt +0 -0
@@ -1,286 +0,0 @@
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
- import warnings
15
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from neurograph.v1.models.tasks_sync_from_firebase_result import TasksSyncFromFirebaseResult
20
-
21
- from neurograph.v1.api_client import ApiClient, RequestSerialized
22
- from neurograph.v1.api_response import ApiResponse
23
- from neurograph.v1.rest import RESTResponseType
24
-
25
-
26
- class TasksApi:
27
- """NOTE: This class is auto generated by OpenAPI Generator
28
- Ref: https://openapi-generator.tech
29
-
30
- Do not edit the class manually.
31
- """
32
-
33
- def __init__(self, api_client=None) -> None:
34
- if api_client is None:
35
- api_client = ApiClient.get_default()
36
- self.api_client = api_client
37
-
38
-
39
- @validate_call
40
- def api_v1_tasks_sync_from_firebase_get(
41
- self,
42
- _request_timeout: Union[
43
- None,
44
- Annotated[StrictFloat, Field(gt=0)],
45
- Tuple[
46
- Annotated[StrictFloat, Field(gt=0)],
47
- Annotated[StrictFloat, Field(gt=0)]
48
- ]
49
- ] = None,
50
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
- _content_type: Optional[StrictStr] = None,
52
- _headers: Optional[Dict[StrictStr, Any]] = None,
53
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
- ) -> TasksSyncFromFirebaseResult:
55
- """Trigger Sync From Firebase
56
-
57
- Load data from firebase
58
-
59
- :param _request_timeout: timeout setting for this request. If one
60
- number provided, it will be total request
61
- timeout. It can also be a pair (tuple) of
62
- (connection, read) timeouts.
63
- :type _request_timeout: int, tuple(int, int), optional
64
- :param _request_auth: set to override the auth_settings for an a single
65
- request; this effectively ignores the
66
- authentication in the spec for a single request.
67
- :type _request_auth: dict, optional
68
- :param _content_type: force content-type for the request.
69
- :type _content_type: str, Optional
70
- :param _headers: set to override the headers for a single
71
- request; this effectively ignores the headers
72
- in the spec for a single request.
73
- :type _headers: dict, optional
74
- :param _host_index: set to override the host_index for a single
75
- request; this effectively ignores the host_index
76
- in the spec for a single request.
77
- :type _host_index: int, optional
78
- :return: Returns the result object.
79
- """ # noqa: E501
80
-
81
- _param = self._api_v1_tasks_sync_from_firebase_get_serialize(
82
- _request_auth=_request_auth,
83
- _content_type=_content_type,
84
- _headers=_headers,
85
- _host_index=_host_index
86
- )
87
-
88
- _response_types_map: Dict[str, Optional[str]] = {
89
- '200': "TasksSyncFromFirebaseResult",
90
- '503': "TasksSyncFromFirebaseResult",
91
- }
92
- response_data = self.api_client.call_api(
93
- *_param,
94
- _request_timeout=_request_timeout
95
- )
96
- response_data.read()
97
- return self.api_client.response_deserialize(
98
- response_data=response_data,
99
- response_types_map=_response_types_map,
100
- ).data
101
-
102
-
103
- @validate_call
104
- def api_v1_tasks_sync_from_firebase_get_with_http_info(
105
- self,
106
- _request_timeout: Union[
107
- None,
108
- Annotated[StrictFloat, Field(gt=0)],
109
- Tuple[
110
- Annotated[StrictFloat, Field(gt=0)],
111
- Annotated[StrictFloat, Field(gt=0)]
112
- ]
113
- ] = None,
114
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
115
- _content_type: Optional[StrictStr] = None,
116
- _headers: Optional[Dict[StrictStr, Any]] = None,
117
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
118
- ) -> ApiResponse[TasksSyncFromFirebaseResult]:
119
- """Trigger Sync From Firebase
120
-
121
- Load data from firebase
122
-
123
- :param _request_timeout: timeout setting for this request. If one
124
- number provided, it will be total request
125
- timeout. It can also be a pair (tuple) of
126
- (connection, read) timeouts.
127
- :type _request_timeout: int, tuple(int, int), optional
128
- :param _request_auth: set to override the auth_settings for an a single
129
- request; this effectively ignores the
130
- authentication in the spec for a single request.
131
- :type _request_auth: dict, optional
132
- :param _content_type: force content-type for the request.
133
- :type _content_type: str, Optional
134
- :param _headers: set to override the headers for a single
135
- request; this effectively ignores the headers
136
- in the spec for a single request.
137
- :type _headers: dict, optional
138
- :param _host_index: set to override the host_index for a single
139
- request; this effectively ignores the host_index
140
- in the spec for a single request.
141
- :type _host_index: int, optional
142
- :return: Returns the result object.
143
- """ # noqa: E501
144
-
145
- _param = self._api_v1_tasks_sync_from_firebase_get_serialize(
146
- _request_auth=_request_auth,
147
- _content_type=_content_type,
148
- _headers=_headers,
149
- _host_index=_host_index
150
- )
151
-
152
- _response_types_map: Dict[str, Optional[str]] = {
153
- '200': "TasksSyncFromFirebaseResult",
154
- '503': "TasksSyncFromFirebaseResult",
155
- }
156
- response_data = self.api_client.call_api(
157
- *_param,
158
- _request_timeout=_request_timeout
159
- )
160
- response_data.read()
161
- return self.api_client.response_deserialize(
162
- response_data=response_data,
163
- response_types_map=_response_types_map,
164
- )
165
-
166
-
167
- @validate_call
168
- def api_v1_tasks_sync_from_firebase_get_without_preload_content(
169
- self,
170
- _request_timeout: Union[
171
- None,
172
- Annotated[StrictFloat, Field(gt=0)],
173
- Tuple[
174
- Annotated[StrictFloat, Field(gt=0)],
175
- Annotated[StrictFloat, Field(gt=0)]
176
- ]
177
- ] = None,
178
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
179
- _content_type: Optional[StrictStr] = None,
180
- _headers: Optional[Dict[StrictStr, Any]] = None,
181
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
182
- ) -> RESTResponseType:
183
- """Trigger Sync From Firebase
184
-
185
- Load data from firebase
186
-
187
- :param _request_timeout: timeout setting for this request. If one
188
- number provided, it will be total request
189
- timeout. It can also be a pair (tuple) of
190
- (connection, read) timeouts.
191
- :type _request_timeout: int, tuple(int, int), optional
192
- :param _request_auth: set to override the auth_settings for an a single
193
- request; this effectively ignores the
194
- authentication in the spec for a single request.
195
- :type _request_auth: dict, optional
196
- :param _content_type: force content-type for the request.
197
- :type _content_type: str, Optional
198
- :param _headers: set to override the headers for a single
199
- request; this effectively ignores the headers
200
- in the spec for a single request.
201
- :type _headers: dict, optional
202
- :param _host_index: set to override the host_index for a single
203
- request; this effectively ignores the host_index
204
- in the spec for a single request.
205
- :type _host_index: int, optional
206
- :return: Returns the result object.
207
- """ # noqa: E501
208
-
209
- _param = self._api_v1_tasks_sync_from_firebase_get_serialize(
210
- _request_auth=_request_auth,
211
- _content_type=_content_type,
212
- _headers=_headers,
213
- _host_index=_host_index
214
- )
215
-
216
- _response_types_map: Dict[str, Optional[str]] = {
217
- '200': "TasksSyncFromFirebaseResult",
218
- '503': "TasksSyncFromFirebaseResult",
219
- }
220
- response_data = self.api_client.call_api(
221
- *_param,
222
- _request_timeout=_request_timeout
223
- )
224
- return response_data.response
225
-
226
-
227
- def _api_v1_tasks_sync_from_firebase_get_serialize(
228
- self,
229
- _request_auth,
230
- _content_type,
231
- _headers,
232
- _host_index,
233
- ) -> RequestSerialized:
234
-
235
- _host = None
236
-
237
- _collection_formats: Dict[str, str] = {
238
- }
239
-
240
- _path_params: Dict[str, str] = {}
241
- _query_params: List[Tuple[str, str]] = []
242
- _header_params: Dict[str, Optional[str]] = _headers or {}
243
- _form_params: List[Tuple[str, str]] = []
244
- _files: Dict[
245
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
246
- ] = {}
247
- _body_params: Optional[bytes] = None
248
-
249
- # process the path parameters
250
- # process the query parameters
251
- # process the header parameters
252
- # process the form parameters
253
- # process the body parameter
254
-
255
-
256
- # set the HTTP header `Accept`
257
- if 'Accept' not in _header_params:
258
- _header_params['Accept'] = self.api_client.select_header_accept(
259
- [
260
- 'application/json'
261
- ]
262
- )
263
-
264
-
265
- # authentication setting
266
- _auth_settings: List[str] = [
267
- 'TokenAuth',
268
- 'ApiKeyAuth'
269
- ]
270
-
271
- return self.api_client.param_serialize(
272
- method='GET',
273
- resource_path='/api/v1/tasks/sync-from-firebase',
274
- path_params=_path_params,
275
- query_params=_query_params,
276
- header_params=_header_params,
277
- body=_body_params,
278
- post_params=_form_params,
279
- files=_files,
280
- auth_settings=_auth_settings,
281
- collection_formats=_collection_formats,
282
- _host=_host,
283
- _request_auth=_request_auth
284
- )
285
-
286
-
@@ -1,99 +0,0 @@
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, StrictBool, 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 AtlasAtlasVersion(BaseModel):
26
- """
27
- AtlasAtlasVersion
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\"`")
34
- ts_updated: Optional[StrictInt] = None
35
- version: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["description", "id", "is_active", "name", "ts_created", "ts_updated", "version"]
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 AtlasAtlasVersion 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
- return _dict
78
-
79
- @classmethod
80
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
- """Create an instance of AtlasAtlasVersion from a dict"""
82
- if obj is None:
83
- return None
84
-
85
- if not isinstance(obj, dict):
86
- return cls.model_validate(obj)
87
-
88
- _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"),
93
- "ts_created": obj.get("ts_created"),
94
- "ts_updated": obj.get("ts_updated"),
95
- "version": obj.get("version")
96
- })
97
- return _obj
98
-
99
-
@@ -1,93 +0,0 @@
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, StrictBool, 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 OrganizationsOrganizationSetAtlasRequest(BaseModel):
26
- """
27
- OrganizationsOrganizationSetAtlasRequest
28
- """ # noqa: E501
29
- atlas_is_active: Optional[StrictBool] = None
30
- atlas_url: Optional[StrictStr] = None
31
- atlas_version_id: Optional[StrictInt] = None
32
- org_id: Optional[StrictInt] = None
33
- __properties: ClassVar[List[str]] = ["atlas_is_active", "atlas_url", "atlas_version_id", "org_id"]
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 OrganizationsOrganizationSetAtlasRequest 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 OrganizationsOrganizationSetAtlasRequest 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
- "atlas_is_active": obj.get("atlas_is_active"),
87
- "atlas_url": obj.get("atlas_url"),
88
- "atlas_version_id": obj.get("atlas_version_id"),
89
- "org_id": obj.get("org_id")
90
- })
91
- return _obj
92
-
93
-