mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: provide endpoint to lock/unlock workspace (#8239)
This commit is contained in:
@@ -998,6 +998,11 @@ export interface UpdateWorkspaceAutostartRequest {
|
||||
readonly schedule?: string
|
||||
}
|
||||
|
||||
// From codersdk/workspaces.go
|
||||
export interface UpdateWorkspaceLock {
|
||||
readonly lock: boolean
|
||||
}
|
||||
|
||||
// From codersdk/workspaceproxy.go
|
||||
export interface UpdateWorkspaceProxyResponse {
|
||||
readonly proxy: WorkspaceProxy
|
||||
@@ -1075,6 +1080,7 @@ export interface Workspace {
|
||||
readonly ttl_ms?: number
|
||||
readonly last_used_at: string
|
||||
readonly deleting_at?: string
|
||||
readonly locked_at?: string
|
||||
}
|
||||
|
||||
// From codersdk/workspaceagents.go
|
||||
|
||||
Reference in New Issue
Block a user