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.
- neurograph/v1/__init__.py +38 -20
- neurograph/v1/api/__init__.py +1 -1
- neurograph/v1/api/authentication_api.py +36 -8
- neurograph/v1/api/client_api.py +62 -56
- neurograph/v1/api/client_metadata_api.py +305 -19
- neurograph/v1/api/dagster_api.py +306 -0
- neurograph/v1/api/lookup_api.py +2 -0
- neurograph/v1/api/organization_api.py +257 -252
- neurograph/v1/api/organization_metadata_api.py +22 -19
- neurograph/v1/api/persona_api.py +1249 -135
- neurograph/v1/api/tasks_api.py +1 -0
- neurograph/v1/api/workbench_api.py +6 -3
- neurograph/v1/models/__init__.py +18 -9
- neurograph/v1/models/auth_test_service_token_request.py +87 -0
- neurograph/v1/models/client_client.py +4 -4
- neurograph/v1/models/client_client_upsert_request.py +95 -0
- neurograph/v1/models/client_client_upsert_response.py +111 -0
- neurograph/v1/models/client_client_url_upsert_request.py +4 -4
- neurograph/v1/models/client_client_url_upsert_response.py +14 -7
- neurograph/v1/models/client_client_urls_response.py +1 -1
- neurograph/v1/models/client_kpi.py +1 -1
- neurograph/v1/models/client_metadata.py +3 -3
- neurograph/v1/models/client_persona.py +4 -4
- neurograph/v1/models/client_persona_factor.py +1 -1
- neurograph/v1/models/client_persona_personality_trait.py +1 -1
- neurograph/v1/models/client_query.py +1 -1
- neurograph/v1/models/dagster_dagster_log_create_request.py +93 -0
- neurograph/v1/models/dagster_dagster_log_create_response.py +91 -0
- neurograph/v1/models/db_client_url.py +14 -7
- neurograph/v1/models/db_persona_factor_create_params.py +1 -1
- neurograph/v1/models/organizations_brand_detail_response.py +2 -2
- neurograph/v1/models/organizations_brand_upsert_request.py +2 -2
- neurograph/v1/models/organizations_metadata.py +3 -3
- neurograph/v1/models/organizations_organization.py +1 -1
- neurograph/v1/models/organizations_organization_detail_response.py +2 -8
- neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
- neurograph/v1/models/organizations_organization_set_workbench_response.py +13 -11
- neurograph/v1/models/organizations_organization_update_request.py +4 -4
- neurograph/v1/models/organizations_workbench_config.py +13 -11
- neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
- neurograph/v1/models/personas_kpi.py +93 -0
- neurograph/v1/models/personas_match_criteria_row.py +1 -1
- neurograph/v1/models/personas_match_criteria_row_in.py +2 -2
- neurograph/v1/models/personas_persona.py +171 -0
- neurograph/v1/models/personas_persona_factor.py +2 -4
- neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
- neurograph/v1/models/personas_persona_factor_resp.py +101 -0
- neurograph/v1/models/personas_persona_insight.py +93 -0
- neurograph/v1/models/personas_persona_insight_create_request.py +2 -2
- neurograph/v1/models/personas_persona_insight_create_response.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_request.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_response.py +2 -2
- neurograph/v1/models/personas_persona_instances_delete_response.py +89 -0
- neurograph/v1/models/personas_persona_instances_response.py +103 -0
- neurograph/v1/models/personas_persona_kpi_req.py +2 -2
- neurograph/v1/models/personas_persona_kpi_resp.py +1 -1
- neurograph/v1/models/personas_persona_personality_trait.py +93 -0
- neurograph/v1/models/personas_persona_seed_create_request.py +2 -2
- neurograph/v1/models/personas_persona_seed_create_response.py +3 -3
- neurograph/v1/models/personas_persona_seed_get_many_response.py +105 -0
- neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
- neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
- neurograph/v1/models/personas_personality_trait_in.py +2 -2
- neurograph/v1/models/personas_personality_trait_out.py +1 -1
- neurograph/v1/models/pgtype_infinity_modifier.py +38 -0
- neurograph/v1/models/pgtype_timestamp.py +92 -0
- neurograph/v1/models/workbench_workbench_version.py +3 -3
- neurograph/v1/models/workbench_workbench_version_response.py +3 -3
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +73 -54
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
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 pydantic import Field
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from neurograph.v1.models.dagster_dagster_log_create_request import DagsterDagsterLogCreateRequest
|
|
22
|
+
from neurograph.v1.models.dagster_dagster_log_create_response import DagsterDagsterLogCreateResponse
|
|
23
|
+
|
|
24
|
+
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from neurograph.v1.api_response import ApiResponse
|
|
26
|
+
from neurograph.v1.rest import RESTResponseType
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class DagsterApi:
|
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
31
|
+
Ref: https://openapi-generator.tech
|
|
32
|
+
|
|
33
|
+
Do not edit the class manually.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, api_client=None) -> None:
|
|
37
|
+
if api_client is None:
|
|
38
|
+
api_client = ApiClient.get_default()
|
|
39
|
+
self.api_client = api_client
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@validate_call
|
|
43
|
+
def api_v1_dagster_log_post(
|
|
44
|
+
self,
|
|
45
|
+
request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
|
|
46
|
+
_request_timeout: Union[
|
|
47
|
+
None,
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Tuple[
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
52
|
+
]
|
|
53
|
+
] = None,
|
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
58
|
+
) -> DagsterDagsterLogCreateResponse:
|
|
59
|
+
"""Log a Dagster Event
|
|
60
|
+
|
|
61
|
+
Log a Dagster Event
|
|
62
|
+
|
|
63
|
+
:param request: Body (required)
|
|
64
|
+
:type request: DagsterDagsterLogCreateRequest
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._api_v1_dagster_log_post_serialize(
|
|
88
|
+
request=request,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': "DagsterDagsterLogCreateResponse",
|
|
97
|
+
'400': "DagsterDagsterLogCreateResponse",
|
|
98
|
+
'503': "DagsterDagsterLogCreateResponse",
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def api_v1_dagster_log_post_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[DagsterDagsterLogCreateResponse]:
|
|
128
|
+
"""Log a Dagster Event
|
|
129
|
+
|
|
130
|
+
Log a Dagster Event
|
|
131
|
+
|
|
132
|
+
:param request: Body (required)
|
|
133
|
+
:type request: DagsterDagsterLogCreateRequest
|
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
135
|
+
number provided, it will be total request
|
|
136
|
+
timeout. It can also be a pair (tuple) of
|
|
137
|
+
(connection, read) timeouts.
|
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the
|
|
141
|
+
authentication in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:param _content_type: force content-type for the request.
|
|
144
|
+
:type _content_type: str, Optional
|
|
145
|
+
:param _headers: set to override the headers for a single
|
|
146
|
+
request; this effectively ignores the headers
|
|
147
|
+
in the spec for a single request.
|
|
148
|
+
:type _headers: dict, optional
|
|
149
|
+
:param _host_index: set to override the host_index for a single
|
|
150
|
+
request; this effectively ignores the host_index
|
|
151
|
+
in the spec for a single request.
|
|
152
|
+
:type _host_index: int, optional
|
|
153
|
+
:return: Returns the result object.
|
|
154
|
+
""" # noqa: E501
|
|
155
|
+
|
|
156
|
+
_param = self._api_v1_dagster_log_post_serialize(
|
|
157
|
+
request=request,
|
|
158
|
+
_request_auth=_request_auth,
|
|
159
|
+
_content_type=_content_type,
|
|
160
|
+
_headers=_headers,
|
|
161
|
+
_host_index=_host_index
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
165
|
+
'200': "DagsterDagsterLogCreateResponse",
|
|
166
|
+
'400': "DagsterDagsterLogCreateResponse",
|
|
167
|
+
'503': "DagsterDagsterLogCreateResponse",
|
|
168
|
+
}
|
|
169
|
+
response_data = self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
def api_v1_dagster_log_post_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
request: Annotated[DagsterDagsterLogCreateRequest, Field(description="Body")],
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""Log a Dagster Event
|
|
198
|
+
|
|
199
|
+
Log a Dagster Event
|
|
200
|
+
|
|
201
|
+
:param request: Body (required)
|
|
202
|
+
:type request: DagsterDagsterLogCreateRequest
|
|
203
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
204
|
+
number provided, it will be total request
|
|
205
|
+
timeout. It can also be a pair (tuple) of
|
|
206
|
+
(connection, read) timeouts.
|
|
207
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
208
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
209
|
+
request; this effectively ignores the
|
|
210
|
+
authentication in the spec for a single request.
|
|
211
|
+
:type _request_auth: dict, optional
|
|
212
|
+
:param _content_type: force content-type for the request.
|
|
213
|
+
:type _content_type: str, Optional
|
|
214
|
+
:param _headers: set to override the headers for a single
|
|
215
|
+
request; this effectively ignores the headers
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _headers: dict, optional
|
|
218
|
+
:param _host_index: set to override the host_index for a single
|
|
219
|
+
request; this effectively ignores the host_index
|
|
220
|
+
in the spec for a single request.
|
|
221
|
+
:type _host_index: int, optional
|
|
222
|
+
:return: Returns the result object.
|
|
223
|
+
""" # noqa: E501
|
|
224
|
+
|
|
225
|
+
_param = self._api_v1_dagster_log_post_serialize(
|
|
226
|
+
request=request,
|
|
227
|
+
_request_auth=_request_auth,
|
|
228
|
+
_content_type=_content_type,
|
|
229
|
+
_headers=_headers,
|
|
230
|
+
_host_index=_host_index
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
234
|
+
'200': "DagsterDagsterLogCreateResponse",
|
|
235
|
+
'400': "DagsterDagsterLogCreateResponse",
|
|
236
|
+
'503': "DagsterDagsterLogCreateResponse",
|
|
237
|
+
}
|
|
238
|
+
response_data = self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
return response_data.response
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _api_v1_dagster_log_post_serialize(
|
|
246
|
+
self,
|
|
247
|
+
request,
|
|
248
|
+
_request_auth,
|
|
249
|
+
_content_type,
|
|
250
|
+
_headers,
|
|
251
|
+
_host_index,
|
|
252
|
+
) -> RequestSerialized:
|
|
253
|
+
|
|
254
|
+
_host = None
|
|
255
|
+
|
|
256
|
+
_collection_formats: Dict[str, str] = {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_path_params: Dict[str, str] = {}
|
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
|
263
|
+
_files: Dict[
|
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
265
|
+
] = {}
|
|
266
|
+
_body_params: Optional[bytes] = None
|
|
267
|
+
|
|
268
|
+
# process the path parameters
|
|
269
|
+
# process the query parameters
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
if request is not None:
|
|
274
|
+
_body_params = request
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# set the HTTP header `Accept`
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'application/json'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# authentication setting
|
|
287
|
+
_auth_settings: List[str] = [
|
|
288
|
+
'TokenAuth'
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
return self.api_client.param_serialize(
|
|
292
|
+
method='POST',
|
|
293
|
+
resource_path='/api/v1/dagster/log',
|
|
294
|
+
path_params=_path_params,
|
|
295
|
+
query_params=_query_params,
|
|
296
|
+
header_params=_header_params,
|
|
297
|
+
body=_body_params,
|
|
298
|
+
post_params=_form_params,
|
|
299
|
+
files=_files,
|
|
300
|
+
auth_settings=_auth_settings,
|
|
301
|
+
collection_formats=_collection_formats,
|
|
302
|
+
_host=_host,
|
|
303
|
+
_request_auth=_request_auth
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
|
neurograph/v1/api/lookup_api.py
CHANGED
|
@@ -268,6 +268,7 @@ class LookupApi:
|
|
|
268
268
|
|
|
269
269
|
# authentication setting
|
|
270
270
|
_auth_settings: List[str] = [
|
|
271
|
+
'TokenAuth',
|
|
271
272
|
'ApiKeyAuth'
|
|
272
273
|
]
|
|
273
274
|
|
|
@@ -517,6 +518,7 @@ class LookupApi:
|
|
|
517
518
|
|
|
518
519
|
# authentication setting
|
|
519
520
|
_auth_settings: List[str] = [
|
|
521
|
+
'TokenAuth',
|
|
520
522
|
'ApiKeyAuth'
|
|
521
523
|
]
|
|
522
524
|
|