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
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt, StrictStr
19
+ from pydantic import Field, StrictInt
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
@@ -614,274 +614,6 @@ class OrganizationApi:
614
614
 
615
615
 
616
616
 
617
- @validate_call
618
- def api_v1_organizations_id_get(
619
- self,
620
- id: Annotated[StrictStr, Field(description="Organization's ID")],
621
- _request_timeout: Union[
622
- None,
623
- Annotated[StrictFloat, Field(gt=0)],
624
- Tuple[
625
- Annotated[StrictFloat, Field(gt=0)],
626
- Annotated[StrictFloat, Field(gt=0)]
627
- ]
628
- ] = None,
629
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
630
- _content_type: Optional[StrictStr] = None,
631
- _headers: Optional[Dict[StrictStr, Any]] = None,
632
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
633
- ) -> OrganizationsDetailResponse:
634
- """Get Organization by it's ID
635
-
636
- Get Organization by it's ID
637
-
638
- :param id: Organization's ID (required)
639
- :type id: str
640
- :param _request_timeout: timeout setting for this request. If one
641
- number provided, it will be total request
642
- timeout. It can also be a pair (tuple) of
643
- (connection, read) timeouts.
644
- :type _request_timeout: int, tuple(int, int), optional
645
- :param _request_auth: set to override the auth_settings for an a single
646
- request; this effectively ignores the
647
- authentication in the spec for a single request.
648
- :type _request_auth: dict, optional
649
- :param _content_type: force content-type for the request.
650
- :type _content_type: str, Optional
651
- :param _headers: set to override the headers for a single
652
- request; this effectively ignores the headers
653
- in the spec for a single request.
654
- :type _headers: dict, optional
655
- :param _host_index: set to override the host_index for a single
656
- request; this effectively ignores the host_index
657
- in the spec for a single request.
658
- :type _host_index: int, optional
659
- :return: Returns the result object.
660
- """ # noqa: E501
661
-
662
- _param = self._api_v1_organizations_id_get_serialize(
663
- id=id,
664
- _request_auth=_request_auth,
665
- _content_type=_content_type,
666
- _headers=_headers,
667
- _host_index=_host_index
668
- )
669
-
670
- _response_types_map: Dict[str, Optional[str]] = {
671
- '200': "OrganizationsDetailResponse",
672
- '400': "OrganizationsDetailResponse",
673
- '503': "OrganizationsDetailResponse",
674
- }
675
- response_data = self.api_client.call_api(
676
- *_param,
677
- _request_timeout=_request_timeout
678
- )
679
- response_data.read()
680
- return self.api_client.response_deserialize(
681
- response_data=response_data,
682
- response_types_map=_response_types_map,
683
- ).data
684
-
685
-
686
- @validate_call
687
- def api_v1_organizations_id_get_with_http_info(
688
- self,
689
- id: Annotated[StrictStr, Field(description="Organization's ID")],
690
- _request_timeout: Union[
691
- None,
692
- Annotated[StrictFloat, Field(gt=0)],
693
- Tuple[
694
- Annotated[StrictFloat, Field(gt=0)],
695
- Annotated[StrictFloat, Field(gt=0)]
696
- ]
697
- ] = None,
698
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
699
- _content_type: Optional[StrictStr] = None,
700
- _headers: Optional[Dict[StrictStr, Any]] = None,
701
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
702
- ) -> ApiResponse[OrganizationsDetailResponse]:
703
- """Get Organization by it's ID
704
-
705
- Get Organization by it's ID
706
-
707
- :param id: Organization's ID (required)
708
- :type id: str
709
- :param _request_timeout: timeout setting for this request. If one
710
- number provided, it will be total request
711
- timeout. It can also be a pair (tuple) of
712
- (connection, read) timeouts.
713
- :type _request_timeout: int, tuple(int, int), optional
714
- :param _request_auth: set to override the auth_settings for an a single
715
- request; this effectively ignores the
716
- authentication in the spec for a single request.
717
- :type _request_auth: dict, optional
718
- :param _content_type: force content-type for the request.
719
- :type _content_type: str, Optional
720
- :param _headers: set to override the headers for a single
721
- request; this effectively ignores the headers
722
- in the spec for a single request.
723
- :type _headers: dict, optional
724
- :param _host_index: set to override the host_index for a single
725
- request; this effectively ignores the host_index
726
- in the spec for a single request.
727
- :type _host_index: int, optional
728
- :return: Returns the result object.
729
- """ # noqa: E501
730
-
731
- _param = self._api_v1_organizations_id_get_serialize(
732
- id=id,
733
- _request_auth=_request_auth,
734
- _content_type=_content_type,
735
- _headers=_headers,
736
- _host_index=_host_index
737
- )
738
-
739
- _response_types_map: Dict[str, Optional[str]] = {
740
- '200': "OrganizationsDetailResponse",
741
- '400': "OrganizationsDetailResponse",
742
- '503': "OrganizationsDetailResponse",
743
- }
744
- response_data = self.api_client.call_api(
745
- *_param,
746
- _request_timeout=_request_timeout
747
- )
748
- response_data.read()
749
- return self.api_client.response_deserialize(
750
- response_data=response_data,
751
- response_types_map=_response_types_map,
752
- )
753
-
754
-
755
- @validate_call
756
- def api_v1_organizations_id_get_without_preload_content(
757
- self,
758
- id: Annotated[StrictStr, Field(description="Organization's ID")],
759
- _request_timeout: Union[
760
- None,
761
- Annotated[StrictFloat, Field(gt=0)],
762
- Tuple[
763
- Annotated[StrictFloat, Field(gt=0)],
764
- Annotated[StrictFloat, Field(gt=0)]
765
- ]
766
- ] = None,
767
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
768
- _content_type: Optional[StrictStr] = None,
769
- _headers: Optional[Dict[StrictStr, Any]] = None,
770
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
771
- ) -> RESTResponseType:
772
- """Get Organization by it's ID
773
-
774
- Get Organization by it's ID
775
-
776
- :param id: Organization's ID (required)
777
- :type id: str
778
- :param _request_timeout: timeout setting for this request. If one
779
- number provided, it will be total request
780
- timeout. It can also be a pair (tuple) of
781
- (connection, read) timeouts.
782
- :type _request_timeout: int, tuple(int, int), optional
783
- :param _request_auth: set to override the auth_settings for an a single
784
- request; this effectively ignores the
785
- authentication in the spec for a single request.
786
- :type _request_auth: dict, optional
787
- :param _content_type: force content-type for the request.
788
- :type _content_type: str, Optional
789
- :param _headers: set to override the headers for a single
790
- request; this effectively ignores the headers
791
- in the spec for a single request.
792
- :type _headers: dict, optional
793
- :param _host_index: set to override the host_index for a single
794
- request; this effectively ignores the host_index
795
- in the spec for a single request.
796
- :type _host_index: int, optional
797
- :return: Returns the result object.
798
- """ # noqa: E501
799
-
800
- _param = self._api_v1_organizations_id_get_serialize(
801
- id=id,
802
- _request_auth=_request_auth,
803
- _content_type=_content_type,
804
- _headers=_headers,
805
- _host_index=_host_index
806
- )
807
-
808
- _response_types_map: Dict[str, Optional[str]] = {
809
- '200': "OrganizationsDetailResponse",
810
- '400': "OrganizationsDetailResponse",
811
- '503': "OrganizationsDetailResponse",
812
- }
813
- response_data = self.api_client.call_api(
814
- *_param,
815
- _request_timeout=_request_timeout
816
- )
817
- return response_data.response
818
-
819
-
820
- def _api_v1_organizations_id_get_serialize(
821
- self,
822
- id,
823
- _request_auth,
824
- _content_type,
825
- _headers,
826
- _host_index,
827
- ) -> RequestSerialized:
828
-
829
- _host = None
830
-
831
- _collection_formats: Dict[str, str] = {
832
- }
833
-
834
- _path_params: Dict[str, str] = {}
835
- _query_params: List[Tuple[str, str]] = []
836
- _header_params: Dict[str, Optional[str]] = _headers or {}
837
- _form_params: List[Tuple[str, str]] = []
838
- _files: Dict[
839
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
840
- ] = {}
841
- _body_params: Optional[bytes] = None
842
-
843
- # process the path parameters
844
- if id is not None:
845
- _path_params['id'] = id
846
- # process the query parameters
847
- # process the header parameters
848
- # process the form parameters
849
- # process the body parameter
850
-
851
-
852
- # set the HTTP header `Accept`
853
- if 'Accept' not in _header_params:
854
- _header_params['Accept'] = self.api_client.select_header_accept(
855
- [
856
- 'application/json'
857
- ]
858
- )
859
-
860
-
861
- # authentication setting
862
- _auth_settings: List[str] = [
863
- 'TokenAuth',
864
- 'ApiKeyAuth'
865
- ]
866
-
867
- return self.api_client.param_serialize(
868
- method='GET',
869
- resource_path='/api/v1/organizations/{id}',
870
- path_params=_path_params,
871
- query_params=_query_params,
872
- header_params=_header_params,
873
- body=_body_params,
874
- post_params=_form_params,
875
- files=_files,
876
- auth_settings=_auth_settings,
877
- collection_formats=_collection_formats,
878
- _host=_host,
879
- _request_auth=_request_auth
880
- )
881
-
882
-
883
-
884
-
885
617
  @validate_call
886
618
  def api_v1_organizations_post(
887
619
  self,
@@ -1444,274 +1176,6 @@ class OrganizationApi:
1444
1176
 
1445
1177
 
1446
1178
 
1447
- @validate_call
1448
- def api_v1_organizations_uid_organization_uid_get(
1449
- self,
1450
- organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1451
- _request_timeout: Union[
1452
- None,
1453
- Annotated[StrictFloat, Field(gt=0)],
1454
- Tuple[
1455
- Annotated[StrictFloat, Field(gt=0)],
1456
- Annotated[StrictFloat, Field(gt=0)]
1457
- ]
1458
- ] = None,
1459
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1460
- _content_type: Optional[StrictStr] = None,
1461
- _headers: Optional[Dict[StrictStr, Any]] = None,
1462
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1463
- ) -> OrganizationsDetailResponse:
1464
- """Get Organization by its UID
1465
-
1466
- Get Organization by its UID
1467
-
1468
- :param organization_uid: Organization's UID (required)
1469
- :type organization_uid: str
1470
- :param _request_timeout: timeout setting for this request. If one
1471
- number provided, it will be total request
1472
- timeout. It can also be a pair (tuple) of
1473
- (connection, read) timeouts.
1474
- :type _request_timeout: int, tuple(int, int), optional
1475
- :param _request_auth: set to override the auth_settings for an a single
1476
- request; this effectively ignores the
1477
- authentication in the spec for a single request.
1478
- :type _request_auth: dict, optional
1479
- :param _content_type: force content-type for the request.
1480
- :type _content_type: str, Optional
1481
- :param _headers: set to override the headers for a single
1482
- request; this effectively ignores the headers
1483
- in the spec for a single request.
1484
- :type _headers: dict, optional
1485
- :param _host_index: set to override the host_index for a single
1486
- request; this effectively ignores the host_index
1487
- in the spec for a single request.
1488
- :type _host_index: int, optional
1489
- :return: Returns the result object.
1490
- """ # noqa: E501
1491
-
1492
- _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1493
- organization_uid=organization_uid,
1494
- _request_auth=_request_auth,
1495
- _content_type=_content_type,
1496
- _headers=_headers,
1497
- _host_index=_host_index
1498
- )
1499
-
1500
- _response_types_map: Dict[str, Optional[str]] = {
1501
- '200': "OrganizationsDetailResponse",
1502
- '400': "OrganizationsDetailResponse",
1503
- '503': "OrganizationsDetailResponse",
1504
- }
1505
- response_data = self.api_client.call_api(
1506
- *_param,
1507
- _request_timeout=_request_timeout
1508
- )
1509
- response_data.read()
1510
- return self.api_client.response_deserialize(
1511
- response_data=response_data,
1512
- response_types_map=_response_types_map,
1513
- ).data
1514
-
1515
-
1516
- @validate_call
1517
- def api_v1_organizations_uid_organization_uid_get_with_http_info(
1518
- self,
1519
- organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1520
- _request_timeout: Union[
1521
- None,
1522
- Annotated[StrictFloat, Field(gt=0)],
1523
- Tuple[
1524
- Annotated[StrictFloat, Field(gt=0)],
1525
- Annotated[StrictFloat, Field(gt=0)]
1526
- ]
1527
- ] = None,
1528
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1529
- _content_type: Optional[StrictStr] = None,
1530
- _headers: Optional[Dict[StrictStr, Any]] = None,
1531
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1532
- ) -> ApiResponse[OrganizationsDetailResponse]:
1533
- """Get Organization by its UID
1534
-
1535
- Get Organization by its UID
1536
-
1537
- :param organization_uid: Organization's UID (required)
1538
- :type organization_uid: str
1539
- :param _request_timeout: timeout setting for this request. If one
1540
- number provided, it will be total request
1541
- timeout. It can also be a pair (tuple) of
1542
- (connection, read) timeouts.
1543
- :type _request_timeout: int, tuple(int, int), optional
1544
- :param _request_auth: set to override the auth_settings for an a single
1545
- request; this effectively ignores the
1546
- authentication in the spec for a single request.
1547
- :type _request_auth: dict, optional
1548
- :param _content_type: force content-type for the request.
1549
- :type _content_type: str, Optional
1550
- :param _headers: set to override the headers for a single
1551
- request; this effectively ignores the headers
1552
- in the spec for a single request.
1553
- :type _headers: dict, optional
1554
- :param _host_index: set to override the host_index for a single
1555
- request; this effectively ignores the host_index
1556
- in the spec for a single request.
1557
- :type _host_index: int, optional
1558
- :return: Returns the result object.
1559
- """ # noqa: E501
1560
-
1561
- _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1562
- organization_uid=organization_uid,
1563
- _request_auth=_request_auth,
1564
- _content_type=_content_type,
1565
- _headers=_headers,
1566
- _host_index=_host_index
1567
- )
1568
-
1569
- _response_types_map: Dict[str, Optional[str]] = {
1570
- '200': "OrganizationsDetailResponse",
1571
- '400': "OrganizationsDetailResponse",
1572
- '503': "OrganizationsDetailResponse",
1573
- }
1574
- response_data = self.api_client.call_api(
1575
- *_param,
1576
- _request_timeout=_request_timeout
1577
- )
1578
- response_data.read()
1579
- return self.api_client.response_deserialize(
1580
- response_data=response_data,
1581
- response_types_map=_response_types_map,
1582
- )
1583
-
1584
-
1585
- @validate_call
1586
- def api_v1_organizations_uid_organization_uid_get_without_preload_content(
1587
- self,
1588
- organization_uid: Annotated[StrictStr, Field(description="Organization's UID")],
1589
- _request_timeout: Union[
1590
- None,
1591
- Annotated[StrictFloat, Field(gt=0)],
1592
- Tuple[
1593
- Annotated[StrictFloat, Field(gt=0)],
1594
- Annotated[StrictFloat, Field(gt=0)]
1595
- ]
1596
- ] = None,
1597
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1598
- _content_type: Optional[StrictStr] = None,
1599
- _headers: Optional[Dict[StrictStr, Any]] = None,
1600
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1601
- ) -> RESTResponseType:
1602
- """Get Organization by its UID
1603
-
1604
- Get Organization by its UID
1605
-
1606
- :param organization_uid: Organization's UID (required)
1607
- :type organization_uid: str
1608
- :param _request_timeout: timeout setting for this request. If one
1609
- number provided, it will be total request
1610
- timeout. It can also be a pair (tuple) of
1611
- (connection, read) timeouts.
1612
- :type _request_timeout: int, tuple(int, int), optional
1613
- :param _request_auth: set to override the auth_settings for an a single
1614
- request; this effectively ignores the
1615
- authentication in the spec for a single request.
1616
- :type _request_auth: dict, optional
1617
- :param _content_type: force content-type for the request.
1618
- :type _content_type: str, Optional
1619
- :param _headers: set to override the headers for a single
1620
- request; this effectively ignores the headers
1621
- in the spec for a single request.
1622
- :type _headers: dict, optional
1623
- :param _host_index: set to override the host_index for a single
1624
- request; this effectively ignores the host_index
1625
- in the spec for a single request.
1626
- :type _host_index: int, optional
1627
- :return: Returns the result object.
1628
- """ # noqa: E501
1629
-
1630
- _param = self._api_v1_organizations_uid_organization_uid_get_serialize(
1631
- organization_uid=organization_uid,
1632
- _request_auth=_request_auth,
1633
- _content_type=_content_type,
1634
- _headers=_headers,
1635
- _host_index=_host_index
1636
- )
1637
-
1638
- _response_types_map: Dict[str, Optional[str]] = {
1639
- '200': "OrganizationsDetailResponse",
1640
- '400': "OrganizationsDetailResponse",
1641
- '503': "OrganizationsDetailResponse",
1642
- }
1643
- response_data = self.api_client.call_api(
1644
- *_param,
1645
- _request_timeout=_request_timeout
1646
- )
1647
- return response_data.response
1648
-
1649
-
1650
- def _api_v1_organizations_uid_organization_uid_get_serialize(
1651
- self,
1652
- organization_uid,
1653
- _request_auth,
1654
- _content_type,
1655
- _headers,
1656
- _host_index,
1657
- ) -> RequestSerialized:
1658
-
1659
- _host = None
1660
-
1661
- _collection_formats: Dict[str, str] = {
1662
- }
1663
-
1664
- _path_params: Dict[str, str] = {}
1665
- _query_params: List[Tuple[str, str]] = []
1666
- _header_params: Dict[str, Optional[str]] = _headers or {}
1667
- _form_params: List[Tuple[str, str]] = []
1668
- _files: Dict[
1669
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1670
- ] = {}
1671
- _body_params: Optional[bytes] = None
1672
-
1673
- # process the path parameters
1674
- if organization_uid is not None:
1675
- _path_params['organization_uid'] = organization_uid
1676
- # process the query parameters
1677
- # process the header parameters
1678
- # process the form parameters
1679
- # process the body parameter
1680
-
1681
-
1682
- # set the HTTP header `Accept`
1683
- if 'Accept' not in _header_params:
1684
- _header_params['Accept'] = self.api_client.select_header_accept(
1685
- [
1686
- 'application/json'
1687
- ]
1688
- )
1689
-
1690
-
1691
- # authentication setting
1692
- _auth_settings: List[str] = [
1693
- 'TokenAuth',
1694
- 'ApiKeyAuth'
1695
- ]
1696
-
1697
- return self.api_client.param_serialize(
1698
- method='GET',
1699
- resource_path='/api/v1/organizations/uid/{organization_uid}',
1700
- path_params=_path_params,
1701
- query_params=_query_params,
1702
- header_params=_header_params,
1703
- body=_body_params,
1704
- post_params=_form_params,
1705
- files=_files,
1706
- auth_settings=_auth_settings,
1707
- collection_formats=_collection_formats,
1708
- _host=_host,
1709
- _request_auth=_request_auth
1710
- )
1711
-
1712
-
1713
-
1714
-
1715
1179
  @validate_call
1716
1180
  def api_v1_organizations_workbench_post(
1717
1181
  self,
@@ -3282,7 +3282,8 @@ class PersonaApi:
3282
3282
 
3283
3283
  # authentication setting
3284
3284
  _auth_settings: List[str] = [
3285
- 'TokenAuth'
3285
+ 'TokenAuth',
3286
+ 'ApiKeyAuth'
3286
3287
  ]
3287
3288
 
3288
3289
  return self.api_client.param_serialize(