copyFile (the batch route's copy is the one in use), stopMember (stopAgent stops a member) and previewRule had no caller in the app or its tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+46
-18
No files matched your search
@@ -411,8 +411,6 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
|
||||
|
||||
suspend fun team(chatId: String, since: Int = 0): TeamView = get<TeamEnvelope>("/chats/$chatId/team?since=$since").team
|
||||
|
||||
suspend fun stopMember(chatId: String, name: String): List<String> = send<Stopped>("POST", "/chats/$chatId/team/${segment(name)}/stop", null).stopped
|
||||
|
||||
// --- Scheduled tasks (`/api/v2/schedules`; shapes in api/Schedules.kt) ----------------------
|
||||
|
||||
/** Every schedule of this person, newest first, each with its last run. */
|
||||
@@ -437,9 +435,6 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
|
||||
},
|
||||
)
|
||||
|
||||
/** A rule read back: cleaned, in words, and its next runs. An empty rule cannot run. */
|
||||
suspend fun previewRule(rule: JsonObject): RulePreview = send("POST", "/schedules/preview", buildJsonObject { put("rule", rule) })
|
||||
|
||||
/**
|
||||
* Save what the compile made of [words]: a new schedule (201), or with [id] the one being
|
||||
* edited. The words go along as the schedule's `request`, so editing starts from them.
|
||||
@@ -671,17 +666,6 @@ class ApiClient(val base: String, private val token: String, val http: OkHttpCli
|
||||
},
|
||||
)
|
||||
|
||||
/** Copy [path] into the directory [to]; the answer's `copied` says what the copy is called. */
|
||||
suspend fun copyFile(path: String, to: String, name: String? = null): FileListing = send(
|
||||
"POST",
|
||||
"/files/copy",
|
||||
buildJsonObject {
|
||||
put("path", path)
|
||||
put("to", to)
|
||||
name?.let { put("name", it) }
|
||||
},
|
||||
)
|
||||
|
||||
/**
|
||||
* Move or copy [paths] into the directory [to], or delete them (to the trash): `op` is
|
||||
* `move`, `copy` or `delete`. Each path is done by itself, so the answer is read for what
|
||||
|
||||
Reference in new issue
Block a user