From 0c7f6510ced5c656398f4ccfe8d35b71fd59946d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwo=20Strzebo=C5=84ski?= Date: Wed, 2 Sep 2026 20:38:36 +0000 Subject: [PATCH] feat: (almost) all schemas done --- .../camera/ipcam_record_set.schema.json | 23 +++++++++++++++++++ .../report/camera/ipcam_timelapse.schema.json | 23 +++++++++++++++++++ .../report/system/get_access_code.schema.json | 16 +++++++++++++ .../report/system/set_accessories.schema.json | 23 +++++++++++++++++++ .../camera/ipcam_record_set.schema.json | 23 +++++++++++++++++++ .../camera/ipcam_timelapse.schema.json | 23 +++++++++++++++++++ .../system/get_access_code.schema.json | 14 +++++++++++ .../system/set_accessories.schema.json | 23 +++++++++++++++++++ .../camera/ipcam_record_set.schema.json | 23 +++++++++++++++++++ .../report/camera/ipcam_timelapse.schema.json | 23 +++++++++++++++++++ .../report/system/get_access_code.schema.json | 16 +++++++++++++ .../report/system/set_accessories.schema.json | 23 +++++++++++++++++++ .../camera/ipcam_record_set.schema.json | 23 +++++++++++++++++++ .../camera/ipcam_timelapse.schema.json | 23 +++++++++++++++++++ .../system/get_access_code.schema.json | 14 +++++++++++ .../system/set_accessories.schema.json | 23 +++++++++++++++++++ 16 files changed, 336 insertions(+) create mode 100644 schemas/bambulab/v1/report/camera/ipcam_record_set.schema.json create mode 100644 schemas/bambulab/v1/report/camera/ipcam_timelapse.schema.json create mode 100644 schemas/bambulab/v1/report/system/get_access_code.schema.json create mode 100644 schemas/bambulab/v1/report/system/set_accessories.schema.json create mode 100644 schemas/bambulab/v1/request/camera/ipcam_record_set.schema.json create mode 100644 schemas/bambulab/v1/request/camera/ipcam_timelapse.schema.json create mode 100644 schemas/bambulab/v1/request/system/get_access_code.schema.json create mode 100644 schemas/bambulab/v1/request/system/set_accessories.schema.json create mode 100644 schemas/bambulab/v2/report/camera/ipcam_record_set.schema.json create mode 100644 schemas/bambulab/v2/report/camera/ipcam_timelapse.schema.json create mode 100644 schemas/bambulab/v2/report/system/get_access_code.schema.json create mode 100644 schemas/bambulab/v2/report/system/set_accessories.schema.json create mode 100644 schemas/bambulab/v2/request/camera/ipcam_record_set.schema.json create mode 100644 schemas/bambulab/v2/request/camera/ipcam_timelapse.schema.json create mode 100644 schemas/bambulab/v2/request/system/get_access_code.schema.json create mode 100644 schemas/bambulab/v2/request/system/set_accessories.schema.json diff --git a/schemas/bambulab/v1/report/camera/ipcam_record_set.schema.json b/schemas/bambulab/v1/report/camera/ipcam_record_set.schema.json new file mode 100644 index 0000000..e7cc7c4 --- /dev/null +++ b/schemas/bambulab/v1/report/camera/ipcam_record_set.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/report/camera/ipcam_record_set.schema.json", + "title": "IpcamRecordSetReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_record_set" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v1/report/camera/ipcam_timelapse.schema.json b/schemas/bambulab/v1/report/camera/ipcam_timelapse.schema.json new file mode 100644 index 0000000..5d3fdae --- /dev/null +++ b/schemas/bambulab/v1/report/camera/ipcam_timelapse.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/report/camera/ipcam_timelapse.schema.json", + "title": "IpcamTimelapseReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_timelapse" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v1/report/system/get_access_code.schema.json b/schemas/bambulab/v1/report/system/get_access_code.schema.json new file mode 100644 index 0000000..cf73bc5 --- /dev/null +++ b/schemas/bambulab/v1/report/system/get_access_code.schema.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/report/system/get_access_code.schema.json", + "title": "GetAccessCodeReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "get_access_code" }, + "access_code": { "type": "string" } + }, + "required": ["access_code"] + } + ] +} diff --git a/schemas/bambulab/v1/report/system/set_accessories.schema.json b/schemas/bambulab/v1/report/system/set_accessories.schema.json new file mode 100644 index 0000000..ad98fe9 --- /dev/null +++ b/schemas/bambulab/v1/report/system/set_accessories.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/report/system/set_accessories.schema.json", + "title": "SetAccessoriesReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "command": { "const": "set_accessories" }, + "accessory_type": { "type": "string", "const": "nozzle" }, + "nozzle_diameter": { + "$ref": "../../common/nozzle_diameter.schema.json" + }, + "nozzle_type": { "$ref": "../../common/nozzle_type.schema.json" } + } + } + ] + } + ] +} diff --git a/schemas/bambulab/v1/request/camera/ipcam_record_set.schema.json b/schemas/bambulab/v1/request/camera/ipcam_record_set.schema.json new file mode 100644 index 0000000..43f25c7 --- /dev/null +++ b/schemas/bambulab/v1/request/camera/ipcam_record_set.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/request/camera/ipcam_record_set.schema.json", + "title": "IpcamRecordSetRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_record_set" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v1/request/camera/ipcam_timelapse.schema.json b/schemas/bambulab/v1/request/camera/ipcam_timelapse.schema.json new file mode 100644 index 0000000..86da96e --- /dev/null +++ b/schemas/bambulab/v1/request/camera/ipcam_timelapse.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/request/camera/ipcam_timelapse.schema.json", + "title": "IpcamTimelapseRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_timelapse" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v1/request/system/get_access_code.schema.json b/schemas/bambulab/v1/request/system/get_access_code.schema.json new file mode 100644 index 0000000..42681d7 --- /dev/null +++ b/schemas/bambulab/v1/request/system/get_access_code.schema.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/request/system/get_access_code.schema.json", + "title": "GetAccessCodeRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "get_access_code" } + } + } + ] +} diff --git a/schemas/bambulab/v1/request/system/set_accessories.schema.json b/schemas/bambulab/v1/request/system/set_accessories.schema.json new file mode 100644 index 0000000..592898e --- /dev/null +++ b/schemas/bambulab/v1/request/system/set_accessories.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/request/system/set_accessories.schema.json", + "title": "SetAccessoriesRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "command": { "const": "set_accessories" }, + "accessory_type": { "type": "string", "const": "nozzle" }, + "nozzle_diameter": { + "$ref": "../../common/nozzle_diameter.schema.json" + }, + "nozzle_type": { "$ref": "../../common/nozzle_type.schema.json" } + } + } + ] + } + ] +} diff --git a/schemas/bambulab/v2/report/camera/ipcam_record_set.schema.json b/schemas/bambulab/v2/report/camera/ipcam_record_set.schema.json new file mode 100644 index 0000000..df1d6b2 --- /dev/null +++ b/schemas/bambulab/v2/report/camera/ipcam_record_set.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/camera/ipcam_record_set.schema.json", + "title": "IpcamRecordSetReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_record_set" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v2/report/camera/ipcam_timelapse.schema.json b/schemas/bambulab/v2/report/camera/ipcam_timelapse.schema.json new file mode 100644 index 0000000..4387f7a --- /dev/null +++ b/schemas/bambulab/v2/report/camera/ipcam_timelapse.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/camera/ipcam_timelapse.schema.json", + "title": "IpcamTimelapseReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_timelapse" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v2/report/system/get_access_code.schema.json b/schemas/bambulab/v2/report/system/get_access_code.schema.json new file mode 100644 index 0000000..f3235bb --- /dev/null +++ b/schemas/bambulab/v2/report/system/get_access_code.schema.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/system/get_access_code.schema.json", + "title": "GetAccessCodeReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "get_access_code" }, + "access_code": { "type": "string" } + }, + "required": ["access_code"] + } + ] +} diff --git a/schemas/bambulab/v2/report/system/set_accessories.schema.json b/schemas/bambulab/v2/report/system/set_accessories.schema.json new file mode 100644 index 0000000..135b027 --- /dev/null +++ b/schemas/bambulab/v2/report/system/set_accessories.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/system/set_accessories.schema.json", + "title": "SetAccessoriesReport", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "command": { "const": "set_accessories" }, + "accessory_type": { "type": "string", "const": "nozzle" }, + "nozzle_diameter": { + "$ref": "../../common/nozzle_diameter.schema.json" + }, + "nozzle_type": { "$ref": "../../common/nozzle_type.schema.json" } + } + } + ] + } + ] +} diff --git a/schemas/bambulab/v2/request/camera/ipcam_record_set.schema.json b/schemas/bambulab/v2/request/camera/ipcam_record_set.schema.json new file mode 100644 index 0000000..35973f3 --- /dev/null +++ b/schemas/bambulab/v2/request/camera/ipcam_record_set.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/camera/ipcam_record_set.schema.json", + "title": "IpcamRecordSetRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_record_set" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v2/request/camera/ipcam_timelapse.schema.json b/schemas/bambulab/v2/request/camera/ipcam_timelapse.schema.json new file mode 100644 index 0000000..a890f33 --- /dev/null +++ b/schemas/bambulab/v2/request/camera/ipcam_timelapse.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/camera/ipcam_timelapse.schema.json", + "title": "IpcamTimelapseRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "ipcam_timelapse" }, + "control": { + "type": "string", + "enum": [ + "enable", + "ENABLE", + "disable", + "DISABLE" + ] + } + } + } + ] +} diff --git a/schemas/bambulab/v2/request/system/get_access_code.schema.json b/schemas/bambulab/v2/request/system/get_access_code.schema.json new file mode 100644 index 0000000..f975c71 --- /dev/null +++ b/schemas/bambulab/v2/request/system/get_access_code.schema.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/system/get_access_code.schema.json", + "title": "GetAccessCodeRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "type": "object", + "properties": { + "command": { "const": "get_access_code" } + } + } + ] +} diff --git a/schemas/bambulab/v2/request/system/set_accessories.schema.json b/schemas/bambulab/v2/request/system/set_accessories.schema.json new file mode 100644 index 0000000..c834d30 --- /dev/null +++ b/schemas/bambulab/v2/request/system/set_accessories.schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/system/set_accessories.schema.json", + "title": "SetAccessoriesRequest", + "allOf": [ + { "$ref": "../../../common/envelope.schema.json" }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "command": { "const": "set_accessories" }, + "accessory_type": { "type": "string", "const": "nozzle" }, + "nozzle_diameter": { + "$ref": "../../common/nozzle_diameter.schema.json" + }, + "nozzle_type": { "$ref": "../../common/nozzle_type.schema.json" } + } + } + ] + } + ] +}