Add ams_slot to start_print

This commit is contained in:
2026-10-30 06:56:24 +00:00
parent 1b1df9c438
commit 2bc5b88dd7
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -131,6 +131,14 @@ export const PrinterCommandSchema = Type.Union([
* may wait days and the URL would be long expired.
*/
url: Type.String({ format: "uri" }),
/**
* Use this AMS slot (0-based, across all units: AMS1 slot 4 is 3)
* instead of the one the project's own filament colour would pick.
* Only valid for a single-filament project, and the slot must hold the
* same material type; the gateway refuses otherwise. Absent: map by the
* project's filament.
*/
ams_slot: Type.Optional(Type.Integer({ minimum: 0, maximum: 15 })),
}, { additionalProperties: false }),
Type.Object({
action: Type.Literal("set_fan_speed"),