neurograph-core 1.202509252137__py3-none-any.whl → 1.202509282026__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 (35) hide show
  1. neurograph/v1/__init__.py +72 -6
  2. neurograph/v1/api/__init__.py +4 -0
  3. neurograph/v1/api/admin_api.py +575 -0
  4. neurograph/v1/api/dagster_api.py +2 -1
  5. neurograph/v1/api/lookup_api.py +277 -27
  6. neurograph/v1/api/organization_api.py +1 -537
  7. neurograph/v1/api/persona_api.py +2 -1
  8. neurograph/v1/api/user_api.py +1356 -0
  9. neurograph/v1/models/__init__.py +44 -4
  10. neurograph/v1/models/admin_permission_response.py +95 -0
  11. neurograph/v1/models/admin_set_permission_request.py +91 -0
  12. neurograph/v1/models/admin_upsert_user_request.py +91 -0
  13. neurograph/v1/models/admin_upsert_user_response.py +99 -0
  14. neurograph/v1/models/admin_user.py +97 -0
  15. neurograph/v1/models/admin_user_detail_response.py +121 -0
  16. neurograph/v1/models/admin_users_get_many_response.py +97 -0
  17. neurograph/v1/models/admin_users_org_response.py +97 -0
  18. neurograph/v1/models/db_account_organization_brand.py +109 -0
  19. neurograph/v1/models/db_lookup_environment.py +95 -0
  20. neurograph/v1/models/db_my_client.py +99 -0
  21. neurograph/v1/models/db_my_org.py +121 -0
  22. neurograph/v1/models/db_user_client_role.py +93 -0
  23. neurograph/v1/models/db_user_in_db.py +127 -0
  24. neurograph/v1/models/db_user_org_role.py +93 -0
  25. neurograph/v1/models/db_user_role.py +91 -0
  26. neurograph/v1/models/{lookup_lookup_language_response.py → lookup_language_response.py} +4 -4
  27. neurograph/v1/models/lookup_lookup_environments_response.py +97 -0
  28. neurograph/v1/models/lookup_role.py +89 -0
  29. neurograph/v1/models/lookup_roles_response.py +97 -0
  30. neurograph/v1/models/{lookup_lookup_state_response.py → lookup_states_response.py} +4 -4
  31. neurograph/v1/models/me_my_profile_response.py +115 -0
  32. {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202509282026.dist-info}/METADATA +1 -1
  33. {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202509282026.dist-info}/RECORD +35 -13
  34. {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202509282026.dist-info}/WHEEL +0 -0
  35. {neurograph_core-1.202509252137.dist-info → neurograph_core-1.202509282026.dist-info}/top_level.txt +0 -0
@@ -19,9 +19,11 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
- from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLanguageResponse
23
- from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse
22
+ from neurograph.v1.models.lookup_language_response import LookupLanguageResponse
23
+ from neurograph.v1.models.lookup_lookup_environments_response import LookupLookupEnvironmentsResponse
24
+ from neurograph.v1.models.lookup_roles_response import LookupRolesResponse
24
25
  from neurograph.v1.models.lookup_state_response import LookupStateResponse
26
+ from neurograph.v1.models.lookup_states_response import LookupStatesResponse
25
27
  from neurograph.v1.models.lookup_uids_response import LookupUidsResponse
26
28
 
27
29
  from neurograph.v1.api_client import ApiClient, RequestSerialized
@@ -57,7 +59,7 @@ class LookupApi:
57
59
  _content_type: Optional[StrictStr] = None,
58
60
  _headers: Optional[Dict[StrictStr, Any]] = None,
59
61
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
- ) -> LookupLookupStateResponse:
62
+ ) -> LookupLookupEnvironmentsResponse:
61
63
  """Get Environments
62
64
 
63
65
  Retrieve Environments that are possible for Client's URLs
@@ -92,8 +94,8 @@ class LookupApi:
92
94
  )
93
95
 
94
96
  _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "LookupLookupStateResponse",
96
- '503': "LookupLookupStateResponse",
97
+ '200': "LookupLookupEnvironmentsResponse",
98
+ '503': "LookupLookupEnvironmentsResponse",
97
99
  }
98
100
  response_data = self.api_client.call_api(
99
101
  *_param,
@@ -121,7 +123,7 @@ class LookupApi:
121
123
  _content_type: Optional[StrictStr] = None,
122
124
  _headers: Optional[Dict[StrictStr, Any]] = None,
123
125
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
- ) -> ApiResponse[LookupLookupStateResponse]:
126
+ ) -> ApiResponse[LookupLookupEnvironmentsResponse]:
125
127
  """Get Environments
126
128
 
127
129
  Retrieve Environments that are possible for Client's URLs
@@ -156,8 +158,8 @@ class LookupApi:
156
158
  )
157
159
 
158
160
  _response_types_map: Dict[str, Optional[str]] = {
159
- '200': "LookupLookupStateResponse",
160
- '503': "LookupLookupStateResponse",
161
+ '200': "LookupLookupEnvironmentsResponse",
162
+ '503': "LookupLookupEnvironmentsResponse",
161
163
  }
162
164
  response_data = self.api_client.call_api(
163
165
  *_param,
@@ -220,8 +222,8 @@ class LookupApi:
220
222
  )
221
223
 
222
224
  _response_types_map: Dict[str, Optional[str]] = {
223
- '200': "LookupLookupStateResponse",
224
- '503': "LookupLookupStateResponse",
225
+ '200': "LookupLookupEnvironmentsResponse",
226
+ '503': "LookupLookupEnvironmentsResponse",
225
227
  }
226
228
  response_data = self.api_client.call_api(
227
229
  *_param,
@@ -307,7 +309,7 @@ class LookupApi:
307
309
  _content_type: Optional[StrictStr] = None,
308
310
  _headers: Optional[Dict[StrictStr, Any]] = None,
309
311
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
310
- ) -> LookupLookupLanguageResponse:
312
+ ) -> LookupLanguageResponse:
311
313
  """Lookup Supported Languages
312
314
 
313
315
  Lookup Supported Languages
@@ -342,8 +344,8 @@ class LookupApi:
342
344
  )
343
345
 
344
346
  _response_types_map: Dict[str, Optional[str]] = {
345
- '200': "LookupLookupLanguageResponse",
346
- '503': "LookupLookupLanguageResponse",
347
+ '200': "LookupLanguageResponse",
348
+ '503': "LookupLanguageResponse",
347
349
  }
348
350
  response_data = self.api_client.call_api(
349
351
  *_param,
@@ -371,7 +373,7 @@ class LookupApi:
371
373
  _content_type: Optional[StrictStr] = None,
372
374
  _headers: Optional[Dict[StrictStr, Any]] = None,
373
375
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
374
- ) -> ApiResponse[LookupLookupLanguageResponse]:
376
+ ) -> ApiResponse[LookupLanguageResponse]:
375
377
  """Lookup Supported Languages
376
378
 
377
379
  Lookup Supported Languages
@@ -406,8 +408,8 @@ class LookupApi:
406
408
  )
407
409
 
408
410
  _response_types_map: Dict[str, Optional[str]] = {
409
- '200': "LookupLookupLanguageResponse",
410
- '503': "LookupLookupLanguageResponse",
411
+ '200': "LookupLanguageResponse",
412
+ '503': "LookupLanguageResponse",
411
413
  }
412
414
  response_data = self.api_client.call_api(
413
415
  *_param,
@@ -470,8 +472,8 @@ class LookupApi:
470
472
  )
471
473
 
472
474
  _response_types_map: Dict[str, Optional[str]] = {
473
- '200': "LookupLookupLanguageResponse",
474
- '503': "LookupLookupLanguageResponse",
475
+ '200': "LookupLanguageResponse",
476
+ '503': "LookupLanguageResponse",
475
477
  }
476
478
  response_data = self.api_client.call_api(
477
479
  *_param,
@@ -820,7 +822,7 @@ class LookupApi:
820
822
  _content_type: Optional[StrictStr] = None,
821
823
  _headers: Optional[Dict[StrictStr, Any]] = None,
822
824
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
823
- ) -> LookupLookupStateResponse:
825
+ ) -> LookupStatesResponse:
824
826
  """Get US States
825
827
 
826
828
  Retrieve US States
@@ -855,8 +857,8 @@ class LookupApi:
855
857
  )
856
858
 
857
859
  _response_types_map: Dict[str, Optional[str]] = {
858
- '200': "LookupLookupStateResponse",
859
- '503': "LookupLookupStateResponse",
860
+ '200': "LookupStatesResponse",
861
+ '503': "LookupStatesResponse",
860
862
  }
861
863
  response_data = self.api_client.call_api(
862
864
  *_param,
@@ -884,7 +886,7 @@ class LookupApi:
884
886
  _content_type: Optional[StrictStr] = None,
885
887
  _headers: Optional[Dict[StrictStr, Any]] = None,
886
888
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
887
- ) -> ApiResponse[LookupLookupStateResponse]:
889
+ ) -> ApiResponse[LookupStatesResponse]:
888
890
  """Get US States
889
891
 
890
892
  Retrieve US States
@@ -919,8 +921,8 @@ class LookupApi:
919
921
  )
920
922
 
921
923
  _response_types_map: Dict[str, Optional[str]] = {
922
- '200': "LookupLookupStateResponse",
923
- '503': "LookupLookupStateResponse",
924
+ '200': "LookupStatesResponse",
925
+ '503': "LookupStatesResponse",
924
926
  }
925
927
  response_data = self.api_client.call_api(
926
928
  *_param,
@@ -983,8 +985,8 @@ class LookupApi:
983
985
  )
984
986
 
985
987
  _response_types_map: Dict[str, Optional[str]] = {
986
- '200': "LookupLookupStateResponse",
987
- '503': "LookupLookupStateResponse",
988
+ '200': "LookupStatesResponse",
989
+ '503': "LookupStatesResponse",
988
990
  }
989
991
  response_data = self.api_client.call_api(
990
992
  *_param,
@@ -1037,7 +1039,7 @@ class LookupApi:
1037
1039
 
1038
1040
  return self.api_client.param_serialize(
1039
1041
  method='GET',
1040
- resource_path='/api/v1/lookup/states',
1042
+ resource_path='/api/v1/lookup/states/',
1041
1043
  path_params=_path_params,
1042
1044
  query_params=_query_params,
1043
1045
  header_params=_header_params,
@@ -1317,3 +1319,251 @@ class LookupApi:
1317
1319
  )
1318
1320
 
1319
1321
 
1322
+
1323
+
1324
+ @validate_call
1325
+ def api_v1_lookup_user_roles_get(
1326
+ self,
1327
+ _request_timeout: Union[
1328
+ None,
1329
+ Annotated[StrictFloat, Field(gt=0)],
1330
+ Tuple[
1331
+ Annotated[StrictFloat, Field(gt=0)],
1332
+ Annotated[StrictFloat, Field(gt=0)]
1333
+ ]
1334
+ ] = None,
1335
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1336
+ _content_type: Optional[StrictStr] = None,
1337
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1338
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1339
+ ) -> LookupRolesResponse:
1340
+ """Get Possible User Roles
1341
+
1342
+ Retrieve possible user roles
1343
+
1344
+ :param _request_timeout: timeout setting for this request. If one
1345
+ number provided, it will be total request
1346
+ timeout. It can also be a pair (tuple) of
1347
+ (connection, read) timeouts.
1348
+ :type _request_timeout: int, tuple(int, int), optional
1349
+ :param _request_auth: set to override the auth_settings for an a single
1350
+ request; this effectively ignores the
1351
+ authentication in the spec for a single request.
1352
+ :type _request_auth: dict, optional
1353
+ :param _content_type: force content-type for the request.
1354
+ :type _content_type: str, Optional
1355
+ :param _headers: set to override the headers for a single
1356
+ request; this effectively ignores the headers
1357
+ in the spec for a single request.
1358
+ :type _headers: dict, optional
1359
+ :param _host_index: set to override the host_index for a single
1360
+ request; this effectively ignores the host_index
1361
+ in the spec for a single request.
1362
+ :type _host_index: int, optional
1363
+ :return: Returns the result object.
1364
+ """ # noqa: E501
1365
+
1366
+ _param = self._api_v1_lookup_user_roles_get_serialize(
1367
+ _request_auth=_request_auth,
1368
+ _content_type=_content_type,
1369
+ _headers=_headers,
1370
+ _host_index=_host_index
1371
+ )
1372
+
1373
+ _response_types_map: Dict[str, Optional[str]] = {
1374
+ '200': "LookupRolesResponse",
1375
+ '503': "LookupRolesResponse",
1376
+ }
1377
+ response_data = self.api_client.call_api(
1378
+ *_param,
1379
+ _request_timeout=_request_timeout
1380
+ )
1381
+ response_data.read()
1382
+ return self.api_client.response_deserialize(
1383
+ response_data=response_data,
1384
+ response_types_map=_response_types_map,
1385
+ ).data
1386
+
1387
+
1388
+ @validate_call
1389
+ def api_v1_lookup_user_roles_get_with_http_info(
1390
+ self,
1391
+ _request_timeout: Union[
1392
+ None,
1393
+ Annotated[StrictFloat, Field(gt=0)],
1394
+ Tuple[
1395
+ Annotated[StrictFloat, Field(gt=0)],
1396
+ Annotated[StrictFloat, Field(gt=0)]
1397
+ ]
1398
+ ] = None,
1399
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1400
+ _content_type: Optional[StrictStr] = None,
1401
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1402
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1403
+ ) -> ApiResponse[LookupRolesResponse]:
1404
+ """Get Possible User Roles
1405
+
1406
+ Retrieve possible user roles
1407
+
1408
+ :param _request_timeout: timeout setting for this request. If one
1409
+ number provided, it will be total request
1410
+ timeout. It can also be a pair (tuple) of
1411
+ (connection, read) timeouts.
1412
+ :type _request_timeout: int, tuple(int, int), optional
1413
+ :param _request_auth: set to override the auth_settings for an a single
1414
+ request; this effectively ignores the
1415
+ authentication in the spec for a single request.
1416
+ :type _request_auth: dict, optional
1417
+ :param _content_type: force content-type for the request.
1418
+ :type _content_type: str, Optional
1419
+ :param _headers: set to override the headers for a single
1420
+ request; this effectively ignores the headers
1421
+ in the spec for a single request.
1422
+ :type _headers: dict, optional
1423
+ :param _host_index: set to override the host_index for a single
1424
+ request; this effectively ignores the host_index
1425
+ in the spec for a single request.
1426
+ :type _host_index: int, optional
1427
+ :return: Returns the result object.
1428
+ """ # noqa: E501
1429
+
1430
+ _param = self._api_v1_lookup_user_roles_get_serialize(
1431
+ _request_auth=_request_auth,
1432
+ _content_type=_content_type,
1433
+ _headers=_headers,
1434
+ _host_index=_host_index
1435
+ )
1436
+
1437
+ _response_types_map: Dict[str, Optional[str]] = {
1438
+ '200': "LookupRolesResponse",
1439
+ '503': "LookupRolesResponse",
1440
+ }
1441
+ response_data = self.api_client.call_api(
1442
+ *_param,
1443
+ _request_timeout=_request_timeout
1444
+ )
1445
+ response_data.read()
1446
+ return self.api_client.response_deserialize(
1447
+ response_data=response_data,
1448
+ response_types_map=_response_types_map,
1449
+ )
1450
+
1451
+
1452
+ @validate_call
1453
+ def api_v1_lookup_user_roles_get_without_preload_content(
1454
+ self,
1455
+ _request_timeout: Union[
1456
+ None,
1457
+ Annotated[StrictFloat, Field(gt=0)],
1458
+ Tuple[
1459
+ Annotated[StrictFloat, Field(gt=0)],
1460
+ Annotated[StrictFloat, Field(gt=0)]
1461
+ ]
1462
+ ] = None,
1463
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1464
+ _content_type: Optional[StrictStr] = None,
1465
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1466
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1467
+ ) -> RESTResponseType:
1468
+ """Get Possible User Roles
1469
+
1470
+ Retrieve possible user roles
1471
+
1472
+ :param _request_timeout: timeout setting for this request. If one
1473
+ number provided, it will be total request
1474
+ timeout. It can also be a pair (tuple) of
1475
+ (connection, read) timeouts.
1476
+ :type _request_timeout: int, tuple(int, int), optional
1477
+ :param _request_auth: set to override the auth_settings for an a single
1478
+ request; this effectively ignores the
1479
+ authentication in the spec for a single request.
1480
+ :type _request_auth: dict, optional
1481
+ :param _content_type: force content-type for the request.
1482
+ :type _content_type: str, Optional
1483
+ :param _headers: set to override the headers for a single
1484
+ request; this effectively ignores the headers
1485
+ in the spec for a single request.
1486
+ :type _headers: dict, optional
1487
+ :param _host_index: set to override the host_index for a single
1488
+ request; this effectively ignores the host_index
1489
+ in the spec for a single request.
1490
+ :type _host_index: int, optional
1491
+ :return: Returns the result object.
1492
+ """ # noqa: E501
1493
+
1494
+ _param = self._api_v1_lookup_user_roles_get_serialize(
1495
+ _request_auth=_request_auth,
1496
+ _content_type=_content_type,
1497
+ _headers=_headers,
1498
+ _host_index=_host_index
1499
+ )
1500
+
1501
+ _response_types_map: Dict[str, Optional[str]] = {
1502
+ '200': "LookupRolesResponse",
1503
+ '503': "LookupRolesResponse",
1504
+ }
1505
+ response_data = self.api_client.call_api(
1506
+ *_param,
1507
+ _request_timeout=_request_timeout
1508
+ )
1509
+ return response_data.response
1510
+
1511
+
1512
+ def _api_v1_lookup_user_roles_get_serialize(
1513
+ self,
1514
+ _request_auth,
1515
+ _content_type,
1516
+ _headers,
1517
+ _host_index,
1518
+ ) -> RequestSerialized:
1519
+
1520
+ _host = None
1521
+
1522
+ _collection_formats: Dict[str, str] = {
1523
+ }
1524
+
1525
+ _path_params: Dict[str, str] = {}
1526
+ _query_params: List[Tuple[str, str]] = []
1527
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1528
+ _form_params: List[Tuple[str, str]] = []
1529
+ _files: Dict[
1530
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1531
+ ] = {}
1532
+ _body_params: Optional[bytes] = None
1533
+
1534
+ # process the path parameters
1535
+ # process the query parameters
1536
+ # process the header parameters
1537
+ # process the form parameters
1538
+ # process the body parameter
1539
+
1540
+
1541
+ # set the HTTP header `Accept`
1542
+ if 'Accept' not in _header_params:
1543
+ _header_params['Accept'] = self.api_client.select_header_accept(
1544
+ [
1545
+ 'application/json'
1546
+ ]
1547
+ )
1548
+
1549
+
1550
+ # authentication setting
1551
+ _auth_settings: List[str] = [
1552
+ ]
1553
+
1554
+ return self.api_client.param_serialize(
1555
+ method='GET',
1556
+ resource_path='/api/v1/lookup/user-roles/',
1557
+ path_params=_path_params,
1558
+ query_params=_query_params,
1559
+ header_params=_header_params,
1560
+ body=_body_params,
1561
+ post_params=_form_params,
1562
+ files=_files,
1563
+ auth_settings=_auth_settings,
1564
+ collection_formats=_collection_formats,
1565
+ _host=_host,
1566
+ _request_auth=_request_auth
1567
+ )
1568
+
1569
+