@@ -17,6 +17,7 @@ from .models.api_response import (
1717)
1818from .models .asset import GridFSAsset , GridFSFile
1919from .models .auth import Token
20+ from .models .config import SystemInfo
2021from .models .diagnostics import RuntimeDiagnostics
2122from .models .event import CheckpointEvent , Event , ImageEvent , InteractiveEvent , TextEvent
2223from .models .exposure import Exposure
@@ -29,7 +30,7 @@ from .models.notification import Notification
2930from .models .project import GenerateIntermediateResultsSettings , Project , ProjectSymlink
3031from .models .scheduler_lane import SchedulerLane
3132from .models .scheduler_target import Cluster , Node , SchedulerTarget
32- from .models .service import LoggingService , ServiceLogLevel
33+ from .models .services import LoggingService
3334from .models .session import (
3435 DataManagementStats ,
3536 ExposureGroup ,
@@ -56,8 +57,14 @@ class APINamespace:
5657
5758class ConfigNamespace (APINamespace ):
5859 """
59- Methods available in api.config, e.g., api.config.get_instance_uid (...)
60+ Methods available in api.config, e.g., api.config.set_instance_banner (...)
6061 """
62+ def set_instance_banner (
63+ self , * , active : bool = False , title : Optional [str ] = ..., body : Optional [str ] = ...
64+ ) -> Any : ...
65+ def set_login_message (
66+ self , * , active : bool = False , title : Optional [str ] = ..., body : Optional [str ] = ...
67+ ) -> Any : ...
6168 def get_instance_uid (self ) -> str :
6269 """
6370 Gets this CryoSPARC instance's unique UID.
@@ -80,7 +87,7 @@ class ConfigNamespace(APINamespace):
8087 Gets the current CryoSPARC version (with patch suffix, if available)
8188 """
8289 ...
83- def get_system_info (self ) -> Dict [ str , Any ] :
90+ def get_system_info (self ) -> SystemInfo :
8491 """
8592 System information related to the CryoSPARC application
8693 """
@@ -140,16 +147,7 @@ class InstanceNamespace(APINamespace):
140147 """
141148 ...
142149 def get_service_log (
143- self ,
144- service : LoggingService ,
145- / ,
146- * ,
147- days : int = 7 ,
148- date : Optional [str ] = ...,
149- log_name : str = "" ,
150- func_name : str = "" ,
151- level : Optional [ServiceLogLevel ] = ...,
152- max_lines : Optional [int ] = ...,
150+ self , service : LoggingService , / , * , days : int = 30 , date : Optional [str ] = ..., max_lines : Optional [int ] = ...
153151 ) -> str :
154152 """
155153 Gets cryosparc service logs, filterable by date, name, function, and level
@@ -160,6 +158,7 @@ class InstanceNamespace(APINamespace):
160158 Gets runtime diagnostics for the CryoSPARC instance
161159 """
162160 ...
161+ def audit_dump (self ) -> str | None : ...
163162
164163class CacheNamespace (APINamespace ):
165164 """
@@ -797,7 +796,7 @@ class JobsNamespace(APINamespace):
797796 Adds the job to the queue for the given worker lane (default lane if not specified)
798797 """
799798 ...
800- def recalculate_intermediate_results_size (self , project_uid : str , job_uid : str , / ) -> Any :
799+ def recalculate_size_async (self , project_uid : str , job_uid : str , / ) -> Any :
801800 """
802801 For a job, find intermediate results and recalculate their total size.
803802 """
@@ -2337,7 +2336,7 @@ class DeveloperNamespace(APINamespace):
23372336class APIClient :
23382337 """
23392338 Top-level API client class. e.g., ``api.read_root(...)``
2340- or ``api.config.get_instance_uid (...)``
2339+ or ``api.config.set_instance_banner (...)``
23412340 """
23422341
23432342 config : ConfigNamespace
0 commit comments