@@ -13,7 +13,7 @@ export interface ServerFunctions {
1313 // Static RPCs (can be provide on production build in the future)
1414 getServerConfig : ( ) => NuxtOptions
1515 getServerDebugContext : ( ) => Promise < ServerDebugContext | undefined >
16- getServerData : ( token : string ) => Promise < NuxtServerData >
16+ getServerData : ( ) => Promise < NuxtServerData >
1717 getServerRuntimeConfig : ( ) => Record < string , any >
1818 getModuleOptions : ( ) => ModuleOptions
1919 getComponents : ( ) => Component [ ]
@@ -36,46 +36,46 @@ export interface ServerFunctions {
3636 // Updates
3737 checkForUpdateFor : ( name : string ) => Promise < PackageUpdateInfo | undefined >
3838 getNpmCommand : ( command : NpmCommandType , packageName : string , options ?: NpmCommandOptions ) => Promise < string [ ] | undefined >
39- runNpmCommand : ( token : string , command : NpmCommandType , packageName : string , options ?: NpmCommandOptions ) => Promise < { processId : string } | undefined >
39+ runNpmCommand : ( command : NpmCommandType , packageName : string , options ?: NpmCommandOptions ) => Promise < { processId : string } | undefined >
4040
4141 // Terminal
4242 getTerminals : ( ) => TerminalInfo [ ]
43- getTerminalDetail : ( token : string , id : string ) => Promise < TerminalInfo | undefined >
44- runTerminalAction : ( token : string , id : string , action : TerminalAction ) => Promise < boolean >
43+ getTerminalDetail : ( id : string ) => Promise < TerminalInfo | undefined >
44+ runTerminalAction : ( id : string , action : TerminalAction ) => Promise < boolean >
4545
4646 // Storage
4747 getStorageMounts : ( ) => Promise < StorageMounts >
4848 getStorageKeys : ( base ?: string ) => Promise < string [ ] >
49- getStorageItem : ( token : string , key : string ) => Promise < StorageValue >
50- setStorageItem : ( token : string , key : string , value : StorageValue ) => Promise < void >
51- removeStorageItem : ( token : string , key : string ) => Promise < void >
49+ getStorageItem : ( key : string ) => Promise < StorageValue >
50+ setStorageItem : ( key : string , value : StorageValue ) => Promise < void >
51+ removeStorageItem : ( key : string ) => Promise < void >
5252
5353 // Analyze
5454 getAnalyzeBuildInfo : ( ) => Promise < AnalyzeBuildsInfo >
5555 generateAnalyzeBuildName : ( ) => Promise < string >
56- startAnalyzeBuild : ( token : string , name : string ) => Promise < string >
57- clearAnalyzeBuilds : ( token : string , names ?: string [ ] ) => Promise < void >
56+ startAnalyzeBuild : ( name : string ) => Promise < string >
57+ clearAnalyzeBuilds : ( names ?: string [ ] ) => Promise < void >
5858
5959 // Queries
60- getImageMeta : ( token : string , filepath : string ) => Promise < ImageMeta | undefined >
61- getTextAssetContent : ( token : string , filepath : string , limit ?: number ) => Promise < string | undefined >
62- writeStaticAssets : ( token : string , file : AssetEntry [ ] , folder : string ) => Promise < string [ ] >
63- deleteStaticAsset : ( token : string , filepath : string ) => Promise < void >
64- renameStaticAsset : ( token : string , oldPath : string , newPath : string ) => Promise < void >
60+ getImageMeta : ( filepath : string ) => Promise < ImageMeta | undefined >
61+ getTextAssetContent : ( filepath : string , limit ?: number ) => Promise < string | undefined >
62+ writeStaticAssets : ( file : AssetEntry [ ] , folder : string ) => Promise < string [ ] >
63+ deleteStaticAsset : ( filepath : string ) => Promise < void >
64+ renameStaticAsset : ( oldPath : string , newPath : string ) => Promise < void >
6565
6666 // Actions
6767 telemetryEvent : ( payload : object , immediate ?: boolean ) => void
6868 customTabAction : ( name : string , action : number ) => Promise < boolean >
69- enablePages : ( token : string ) => Promise < void >
69+ enablePages : ( ) => Promise < void >
7070 openInEditor : ( filepath : string ) => Promise < boolean >
71- restartNuxt : ( token : string , hard ?: boolean ) => Promise < void >
72- installNuxtModule : ( token : string , name : string , dry ?: boolean ) => Promise < InstallModuleReturn >
73- uninstallNuxtModule : ( token : string , name : string , dry ?: boolean ) => Promise < InstallModuleReturn >
71+ restartNuxt : ( hard ?: boolean ) => Promise < void >
72+ installNuxtModule : ( name : string , dry ?: boolean ) => Promise < InstallModuleReturn >
73+ uninstallNuxtModule : ( name : string , dry ?: boolean ) => Promise < InstallModuleReturn >
7474 enableTimeline : ( dry : boolean ) => Promise < [ string , string ] >
7575
7676 // Dev Token
7777 requestForAuth : ( info ?: string , origin ?: string ) => Promise < void >
78- verifyAuthToken : ( token : string ) => Promise < boolean >
78+ verifyAuthToken : ( ) => Promise < boolean >
7979}
8080
8181export interface ClientFunctions {
0 commit comments