@@ -46,7 +46,6 @@ import httpx
4646from .dataset import Dataset
4747from .models .api_request import AppSession , SHA256Password
4848from .models .api_response import (
49- BrowseFileResponse ,
5049 GetFinalResultsResponse ,
5150 Hello ,
5251 WorkspaceAncestorUidsResponse ,
@@ -60,6 +59,7 @@ from .models.diagnostics import RuntimeDiagnostics
6059from .models .event import CheckpointEvent , Event , ImageEvent , InteractiveEvent , TextEvent
6160from .models .exposure import Exposure
6261from .models .external import ExternalOutputSpec
62+ from .models .file_browser import BrowseFileResponse , FileBrowserPrefixes
6363from .models .job import Job , JobStatus
6464from .models .job_register import JobRegister
6565from .models .job_spec import Category , InputSpec , OutputResult , OutputSpec
@@ -102,8 +102,25 @@ class APINamespace:
102102
103103class ConfigAPI (APINamespace ):
104104 """
105- Functions available in ``api.config``, e.g., ``api.config.set_instance_banner (...)``
105+ Functions available in ``api.config``, e.g., ``api.config.get_file_browser_settings (...)``
106106 """
107+ def get_file_browser_settings (self ) -> FileBrowserPrefixes :
108+ """
109+ Returns:
110+ FileBrowserPrefixes: Instance file browser settings
111+
112+ """
113+ ...
114+ def set_file_browser_settings (self , body : FileBrowserPrefixes ) -> Any :
115+ """
116+ Args:
117+ body (FileBrowserPrefixes):
118+
119+ Returns:
120+ Any: Successful Response
121+
122+ """
123+ ...
107124 def set_instance_banner (
108125 self , * , active : bool = False , title : Optional [str ] = None , body : Optional [str ] = None
109126 ) -> Any :
@@ -304,8 +321,13 @@ class InstanceAPI(APINamespace):
304321
305322 """
306323 ...
307- def audit_dump (self ) -> Optional [str ]:
324+ def audit_dump (self , * , timestamp : Union [ float , str , None ] = None ) -> Optional [str ]:
308325 """
326+ Generate an audit dump file containing all audit logs since the given timestamp.
327+
328+ Args:
329+ timestamp (float | str, optional): Leave unspecified to dump all audit logs, set to "auto" to dump new logs since the last dump, or set to a UNIX timestamp to dump every log that occurred after it.. Defaults to None
330+
309331 Returns:
310332 str | None: Successful Response
311333
@@ -544,22 +566,6 @@ class UsersAPI(APINamespace):
544566 Returns:
545567 Any: Successful Response
546568
547- """
548- ...
549- def set_allowed_prefix_dir (self , user_id : str , / , allowed_prefix : str ) -> User :
550- """
551- Sets directories that users are allowed to query from the file browser.
552- ``allowed_prefix`` is the path of the directory the user can query inside.
553- (must start with "/", and must be an absolute path)
554- Returns True if successful
555-
556- Args:
557- user_id (str): User ID or Email Address
558- allowed_prefix (str):
559-
560- Returns:
561- User: Successful Response
562-
563569 """
564570 ...
565571 def get_state_var (self , user_id : str , key : str , / ) -> Any :
@@ -629,6 +635,27 @@ class UsersAPI(APINamespace):
629635
630636 """
631637 ...
638+ def get_file_browser_settings (self , user_id : str , / ) -> FileBrowserPrefixes :
639+ """
640+ Args:
641+ user_id (str): User ID or Email Address
642+
643+ Returns:
644+ FileBrowserPrefixes: User file browser settings
645+
646+ """
647+ ...
648+ def set_file_browser_settings (self , user_id : str , / , body : FileBrowserPrefixes ) -> User :
649+ """
650+ Args:
651+ user_id (str): User ID or Email Address
652+ body (FileBrowserPrefixes):
653+
654+ Returns:
655+ User: Successful Response
656+
657+ """
658+ ...
632659
633660class ResourcesAPI (APINamespace ):
634661 """
@@ -4971,7 +4998,7 @@ class DeveloperAPI(APINamespace):
49714998class APIClient :
49724999 """
49735000 Top-level API client class. e.g., ``api.read_root(...)``
4974- or ``api.config.set_instance_banner (...)``
5001+ or ``api.config.get_file_browser_settings (...)``
49755002 """
49765003
49775004 config : ConfigAPI
0 commit comments