{"draft":null,"from":219,"to":220,"files":[{"path":"client/src/api.ts","added":11,"removed":0,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -19,6 +19,7 @@\n \tSyncAnswer,\n } from \"./api-answers.ts\";\n import { ApiError, errorSentence, neverSent } from \"./api-error.ts\";\n+import type { AutosettleAnswer, AutosettleMode } from \"./autosettle-commands.ts\";\n import {\n \tboxQuery,\n \tconsumeRun,\n@@ -717,6 +718,16 @@\n \t\treturn this.json(\"POST\", `/visibility?visibility=${v}`, {});\n \t}\n \n+\t/** The project's auto-settle choice (abso-core 23): off, advise or settle, and how sure before abso settles. */\n+\tautosettle(): Promise<AutosettleAnswer> {\n+\t\treturn this.json(\"GET\", \"/autosettle\");\n+\t}\n+\n+\t/** Change it (abso-core 23): an owner's key, or the shared token on staging. Without `at`, the server keeps its own. */\n+\tsetAutosettle(mode: AutosettleMode, at?: number): Promise<AutosettleAnswer> {\n+\t\treturn this.json(\"POST\", `/autosettle?mode=${mode}${at === undefined ? \"\" : `&at=${at}`}`, {});\n+\t}\n+\n \t/** Take back this agent's queued publishes (#39); refused while one is being checked. */\n \tunqueue(): Promise<{ pulled: readonly number[] }> {\n \t\treturn this.json(\"POST\", this.agentPath(\"unqueue\"), {});"}],"unmatched":[]}