@@ -12,6 +12,7 @@ import { buildRunCommand } from "./RunCommand.js";
12
12
import { buildSetAdminPassword } from "./SetAdminPassword.js" ;
13
13
import { buildSetAutoLoadSessionName } from "./SetAutoLoadSessionName.js" ;
14
14
import { buildSetClientPassword } from "./SetClientPassword.js" ;
15
+ import { buildShutdown } from "./Shutdown.js" ;
15
16
import { buildVerifyAuthenticationToken } from "./VerifyAuthenticationToken.js" ;
16
17
17
18
export function buildV1 ( options : InternalClientOptions ) {
@@ -116,6 +117,18 @@ export function buildV1(options: InternalClientOptions) {
116
117
* Requires Admin privileges.
117
118
*/
118
119
RunCommand : buildRunCommand ( options ) ,
120
+ /**
121
+ * Shuts down the Dedicated Server.
122
+ *
123
+ * If automatic restart script is setup, this allows restarting the server to apply new settings or update.
124
+ *
125
+ * Requires Admin privileges.
126
+ *
127
+ * Shutdowns initiated by remote hosts are logged with their IP and their token.
128
+ *
129
+ * Function does not return any data on success, and does not take any parameters.
130
+ */
131
+ Shutdown : buildShutdown ( options ) ,
119
132
} ;
120
133
}
121
134
@@ -132,6 +145,7 @@ export type * from "./QueryServerState.js";
132
145
export type * from "./RenameServer.js" ;
133
146
export type * from "./RunCommand.js" ;
134
147
export type * from "./SetAdminPassword.js" ;
148
+ export type * from "./Shutdown.js" ;
135
149
export type * from "./SetAutoLoadSessionName.js" ;
136
150
export type * from "./SetClientPassword.js" ;
137
151
export type * from "./VerifyAuthenticationToken.js" ;
0 commit comments