@kohost/api-client 6.2.1 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/camera.js +1 -0
- package/dist/models/camera.js.map +1 -1
- package/dist/schemas/camera.d.ts +3 -0
- package/dist/schemas/camera.js +3 -0
- package/dist/schemas/camera.js.map +1 -1
- package/dist/schemas/definitions.d.ts +1 -1
- package/dist/schemas/definitions.js +5 -3
- package/dist/schemas/definitions.js.map +1 -1
- package/dist/schemas/thermostat.d.ts +19 -0
- package/dist/schemas/thermostat.js +38 -19
- package/dist/schemas/thermostat.js.map +1 -1
- package/package.json +3 -3
package/dist/models/camera.js
CHANGED
|
@@ -28,6 +28,7 @@ class Camera extends Entity {
|
|
|
28
28
|
if (data.serialNumber !== void 0) this.serialNumber = data.serialNumber;
|
|
29
29
|
if (data.firmwareVersion !== void 0)
|
|
30
30
|
this.firmwareVersion = data.firmwareVersion;
|
|
31
|
+
if (data.alerts !== void 0) this.alerts = data.alerts;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
Object.defineProperty(Camera.prototype, "schema", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/models/camera.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCamera as validate } from \"../validate.js\";\nimport { cameraSchema, type CameraSchema } from \"../schemas/camera.js\";\n\n/**\n * Data type for Camera constructor - exported for backwards compatibility\n */\nexport type CameraData = CameraSchema;\n\n/**\n * Any smart camera\n */\nexport interface Camera extends CameraSchema {}\nexport class Camera extends Entity {\n declare schema: typeof cameraSchema;\n declare validator: typeof validate;\n\n constructor(data: CameraSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n this.type = data.type;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.liveStream !== undefined) this.liveStream = data.liveStream;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(Camera.prototype, \"schema\", {\n value: cameraSchema,\n});\n\nObject.defineProperty(Camera.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../.generated/models/camera.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCamera as validate } from \"../validate.js\";\nimport { cameraSchema, type CameraSchema } from \"../schemas/camera.js\";\n\n/**\n * Data type for Camera constructor - exported for backwards compatibility\n */\nexport type CameraData = CameraSchema;\n\n/**\n * Any smart camera\n */\nexport interface Camera extends CameraSchema {}\nexport class Camera extends Entity {\n declare schema: typeof cameraSchema;\n declare validator: typeof validate;\n\n constructor(data: CameraSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n this.type = data.type;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.liveStream !== undefined) this.liveStream = data.liveStream;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n }\n}\n\nObject.defineProperty(Camera.prototype, \"schema\", {\n value: cameraSchema,\n});\n\nObject.defineProperty(Camera.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAC9B,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAAA,EACpD;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
package/dist/schemas/camera.d.ts
CHANGED
|
@@ -104,6 +104,9 @@ declare const cameraSchema: {
|
|
|
104
104
|
readonly firmwareVersion: {
|
|
105
105
|
readonly type: "string";
|
|
106
106
|
};
|
|
107
|
+
readonly alerts: {
|
|
108
|
+
readonly $ref: "definitions.json#/definitions/alerts";
|
|
109
|
+
};
|
|
107
110
|
};
|
|
108
111
|
};
|
|
109
112
|
type CameraSchema = FromSchema<typeof cameraSchema, {
|
package/dist/schemas/camera.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/camera.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const cameraSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"camera.json\",\n title: \"Camera\",\n description: \"Any smart camera\",\n type: \"object\",\n required: [\"id\", \"type\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"doorStation\"],\n },\n type: {\n type: \"string\",\n enum: [\"camera\"],\n default: \"camera\",\n },\n offline: {\n type: \"boolean\",\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n liveStream: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n enum: [\n \"aws-kinesis\",\n \"cloudflare-stream\",\n \"doorbird\",\n \"digital-watchdog\",\n \"verkada\",\n \"mediamtx\",\n \"mobile-mule\",\n ],\n },\n allowedOrigins: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n authRequired: {\n type: \"boolean\",\n },\n authHeaders: {\n type: [\"object\", \"null\"],\n additionalProperties: true,\n default: null,\n },\n iframe: {\n type: [\"string\", \"null\"],\n },\n hls: {\n type: [\"string\", \"null\"],\n },\n webRTC: {\n type: [\"string\", \"null\"],\n },\n rtsp: {\n type: [\"string\", \"null\"],\n description: \"Local RTSP stream URL\",\n examples: [\n \"rtsp://192.168.1.4:544/channels/1\",\n \"rtsp://10.145.6.129:8554/unicast\",\n ],\n },\n previewImage: {\n type: [\"string\", \"null\"],\n description: \"Source to preview the camera stream\",\n examples: [\n \"https://example.com/preview.jpg\",\n \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBYRXhpZgAATU0AKgAAAAgAA1EQAAEAAAABAQAAAFERAAQAAAABAAABAgABAA\",\n ],\n },\n },\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n },\n modelNumber: {\n type: \"string\",\n },\n serialNumber: {\n type: \"string\",\n },\n firmwareVersion: {\n type: \"string\",\n },\n },\n} as const;\n\nexport type CameraSchema = FromSchema<\n typeof cameraSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,QAAQ;AAAA,EACjC,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM,CAAC,aAAa;AAAA,IACtB;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,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AM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/camera.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const cameraSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"camera.json\",\n title: \"Camera\",\n description: \"Any smart camera\",\n type: \"object\",\n required: [\"id\", \"type\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n discriminator: {\n type: \"string\",\n enum: [\"doorStation\"],\n },\n type: {\n type: \"string\",\n enum: [\"camera\"],\n default: \"camera\",\n },\n offline: {\n type: \"boolean\",\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n liveStream: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n enum: [\n \"aws-kinesis\",\n \"cloudflare-stream\",\n \"doorbird\",\n \"digital-watchdog\",\n \"verkada\",\n \"mediamtx\",\n \"mobile-mule\",\n ],\n },\n allowedOrigins: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n },\n authRequired: {\n type: \"boolean\",\n },\n authHeaders: {\n type: [\"object\", \"null\"],\n additionalProperties: true,\n default: null,\n },\n iframe: {\n type: [\"string\", \"null\"],\n },\n hls: {\n type: [\"string\", \"null\"],\n },\n webRTC: {\n type: [\"string\", \"null\"],\n },\n rtsp: {\n type: [\"string\", \"null\"],\n description: \"Local RTSP stream URL\",\n examples: [\n \"rtsp://192.168.1.4:544/channels/1\",\n \"rtsp://10.145.6.129:8554/unicast\",\n ],\n },\n previewImage: {\n type: [\"string\", \"null\"],\n description: \"Source to preview the camera stream\",\n examples: [\n \"https://example.com/preview.jpg\",\n \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBYRXhpZgAATU0AKgAAAAgAA1EQAAEAAAABAQAAAFERAAQAAAABAAABAgABAA\",\n ],\n },\n },\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n },\n modelNumber: {\n type: \"string\",\n },\n serialNumber: {\n type: \"string\",\n },\n firmwareVersion: {\n type: \"string\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\"\n },\n },\n} as const;\n\nexport type CameraSchema = FromSchema<\n typeof cameraSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,QAAQ;AAAA,EACjC,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM,CAAC,aAAa;AAAA,IACtB;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;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c;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -97,7 +97,7 @@ declare const defs: {
|
|
|
97
97
|
};
|
|
98
98
|
readonly type: {
|
|
99
99
|
readonly type: "string";
|
|
100
|
-
readonly enum: readonly ["Battery", "Communication", "Config", "Door Ajar", "Equipment", "
|
|
100
|
+
readonly enum: readonly ["Battery", "Button", "Communication", "Config", "Cost", "Door Ajar", "Equipment", "Maintenance", "Motion", "Registration", "Temperature"];
|
|
101
101
|
};
|
|
102
102
|
readonly status: {
|
|
103
103
|
readonly type: "string";
|
|
@@ -186,14 +186,16 @@ const defs = {
|
|
|
186
186
|
type: "string",
|
|
187
187
|
enum: [
|
|
188
188
|
"Battery",
|
|
189
|
+
"Button",
|
|
189
190
|
"Communication",
|
|
190
191
|
"Config",
|
|
192
|
+
"Cost",
|
|
191
193
|
"Door Ajar",
|
|
192
194
|
"Equipment",
|
|
193
|
-
"Temperature",
|
|
194
195
|
"Maintenance",
|
|
195
|
-
"
|
|
196
|
-
"Registration"
|
|
196
|
+
"Motion",
|
|
197
|
+
"Registration",
|
|
198
|
+
"Temperature"
|
|
197
199
|
]
|
|
198
200
|
},
|
|
199
201
|
status: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"honeywell-resideo\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"mock\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,IAAI;AAAA,UACF,MAAM;AAAA,QACR;AA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;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"honeywell-resideo\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"mock\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Button\",\n \"Communication\",\n \"Config\",\n \"Cost\",\n \"Door Ajar\",\n \"Equipment\",\n \"Maintenance\",\n \"Motion\",\n \"Registration\",\n \"Temperature\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,IAAI;AAAA,UACF,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,U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;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
@@ -12,6 +12,7 @@ declare const thermostatSchema: {
|
|
|
12
12
|
readonly properties: {
|
|
13
13
|
readonly id: {
|
|
14
14
|
readonly $ref: "definitions.json#/definitions/id";
|
|
15
|
+
readonly readOnly: true;
|
|
15
16
|
};
|
|
16
17
|
readonly name: {
|
|
17
18
|
readonly $ref: "definitions.json#/definitions/name";
|
|
@@ -20,15 +21,18 @@ declare const thermostatSchema: {
|
|
|
20
21
|
readonly type: "string";
|
|
21
22
|
readonly enum: readonly ["thermostat"];
|
|
22
23
|
readonly default: "thermostat";
|
|
24
|
+
readonly readOnly: true;
|
|
23
25
|
};
|
|
24
26
|
readonly driver: {
|
|
25
27
|
readonly $ref: "definitions.json#/definitions/driver";
|
|
28
|
+
readonly readOnly: true;
|
|
26
29
|
};
|
|
27
30
|
readonly alerts: {
|
|
28
31
|
readonly $ref: "definitions.json#/definitions/alerts";
|
|
29
32
|
};
|
|
30
33
|
readonly offline: {
|
|
31
34
|
readonly type: "boolean";
|
|
35
|
+
readonly readOnly: true;
|
|
32
36
|
};
|
|
33
37
|
readonly supportedNotifications: {
|
|
34
38
|
readonly $ref: "definitions.json#/definitions/supportedNotifications";
|
|
@@ -38,6 +42,7 @@ declare const thermostatSchema: {
|
|
|
38
42
|
};
|
|
39
43
|
readonly currentTemperature: {
|
|
40
44
|
readonly type: "number";
|
|
45
|
+
readonly readOnly: true;
|
|
41
46
|
};
|
|
42
47
|
readonly maxSafeCurrentTemp: {
|
|
43
48
|
readonly type: readonly ["number", "null"];
|
|
@@ -50,6 +55,7 @@ declare const thermostatSchema: {
|
|
|
50
55
|
readonly currentHumidity: {
|
|
51
56
|
readonly type: "number";
|
|
52
57
|
readonly minimum: 0;
|
|
58
|
+
readonly readOnly: true;
|
|
53
59
|
};
|
|
54
60
|
readonly maxSafeCurrentHumidity: {
|
|
55
61
|
readonly type: readonly ["number", "null"];
|
|
@@ -66,6 +72,7 @@ declare const thermostatSchema: {
|
|
|
66
72
|
readonly hvacState: {
|
|
67
73
|
readonly type: readonly ["string", "null"];
|
|
68
74
|
readonly enum: readonly ["cooling", "heating", "off", null];
|
|
75
|
+
readonly readOnly: true;
|
|
69
76
|
};
|
|
70
77
|
readonly fanMode: {
|
|
71
78
|
readonly type: "string";
|
|
@@ -74,6 +81,7 @@ declare const thermostatSchema: {
|
|
|
74
81
|
readonly fanState: {
|
|
75
82
|
readonly type: readonly ["string", "null"];
|
|
76
83
|
readonly enum: readonly ["off", "low", "medium", "high", "on", null];
|
|
84
|
+
readonly readOnly: true;
|
|
77
85
|
};
|
|
78
86
|
readonly temperatureScale: {
|
|
79
87
|
readonly type: "string";
|
|
@@ -91,6 +99,7 @@ declare const thermostatSchema: {
|
|
|
91
99
|
readonly type: "string";
|
|
92
100
|
readonly enum: readonly ["cool", "heat", "auto", "off"];
|
|
93
101
|
};
|
|
102
|
+
readonly readOnly: true;
|
|
94
103
|
};
|
|
95
104
|
readonly supportedFanModes: {
|
|
96
105
|
readonly type: "array";
|
|
@@ -99,6 +108,7 @@ declare const thermostatSchema: {
|
|
|
99
108
|
readonly type: "string";
|
|
100
109
|
readonly enum: readonly ["auto", "low", "medium", "high", "off", "on"];
|
|
101
110
|
};
|
|
111
|
+
readonly readOnly: true;
|
|
102
112
|
};
|
|
103
113
|
readonly setpoints: {
|
|
104
114
|
readonly type: "object";
|
|
@@ -121,38 +131,47 @@ declare const thermostatSchema: {
|
|
|
121
131
|
};
|
|
122
132
|
readonly cycleRate: {
|
|
123
133
|
readonly type: "number";
|
|
134
|
+
readonly readOnly: true;
|
|
124
135
|
};
|
|
125
136
|
readonly co2: {
|
|
126
137
|
readonly type: readonly ["number", "null"];
|
|
127
138
|
readonly description: "Parts per million (ppm)";
|
|
139
|
+
readonly readOnly: true;
|
|
128
140
|
};
|
|
129
141
|
readonly voc: {
|
|
130
142
|
readonly type: readonly ["number", "null"];
|
|
131
143
|
readonly description: "Parts per billion (ppb)";
|
|
144
|
+
readonly readOnly: true;
|
|
132
145
|
};
|
|
133
146
|
readonly batteryLevel: {
|
|
134
147
|
readonly $ref: "definitions.json#/definitions/batteryLevel";
|
|
148
|
+
readonly readOnly: true;
|
|
135
149
|
};
|
|
136
150
|
readonly systemId: {
|
|
137
151
|
readonly $ref: "definitions.json#/definitions/systemId";
|
|
138
152
|
};
|
|
139
153
|
readonly watts: {
|
|
140
154
|
readonly $ref: "definitions.json#/definitions/watts";
|
|
155
|
+
readonly readOnly: true;
|
|
141
156
|
};
|
|
142
157
|
readonly icon: {
|
|
143
158
|
readonly type: "string";
|
|
144
159
|
};
|
|
145
160
|
readonly manufacturer: {
|
|
146
161
|
readonly type: "string";
|
|
162
|
+
readonly readOnly: true;
|
|
147
163
|
};
|
|
148
164
|
readonly modelNumber: {
|
|
149
165
|
readonly type: "string";
|
|
166
|
+
readonly readOnly: true;
|
|
150
167
|
};
|
|
151
168
|
readonly serialNumber: {
|
|
152
169
|
readonly type: "string";
|
|
170
|
+
readonly readOnly: true;
|
|
153
171
|
};
|
|
154
172
|
readonly firmwareVersion: {
|
|
155
173
|
readonly type: "string";
|
|
174
|
+
readonly readOnly: true;
|
|
156
175
|
};
|
|
157
176
|
readonly uiEnabled: {
|
|
158
177
|
readonly type: "boolean";
|
|
@@ -20,7 +20,8 @@ const thermostatSchema = {
|
|
|
20
20
|
additionalProperties: false,
|
|
21
21
|
properties: {
|
|
22
22
|
id: {
|
|
23
|
-
$ref: "definitions.json#/definitions/id"
|
|
23
|
+
$ref: "definitions.json#/definitions/id",
|
|
24
|
+
readOnly: true
|
|
24
25
|
},
|
|
25
26
|
name: {
|
|
26
27
|
$ref: "definitions.json#/definitions/name"
|
|
@@ -28,16 +29,19 @@ const thermostatSchema = {
|
|
|
28
29
|
type: {
|
|
29
30
|
type: "string",
|
|
30
31
|
enum: ["thermostat"],
|
|
31
|
-
default: "thermostat"
|
|
32
|
+
default: "thermostat",
|
|
33
|
+
readOnly: true
|
|
32
34
|
},
|
|
33
35
|
driver: {
|
|
34
|
-
$ref: "definitions.json#/definitions/driver"
|
|
36
|
+
$ref: "definitions.json#/definitions/driver",
|
|
37
|
+
readOnly: true
|
|
35
38
|
},
|
|
36
39
|
alerts: {
|
|
37
40
|
$ref: "definitions.json#/definitions/alerts"
|
|
38
41
|
},
|
|
39
42
|
offline: {
|
|
40
|
-
type: "boolean"
|
|
43
|
+
type: "boolean",
|
|
44
|
+
readOnly: true
|
|
41
45
|
},
|
|
42
46
|
supportedNotifications: {
|
|
43
47
|
$ref: "definitions.json#/definitions/supportedNotifications"
|
|
@@ -46,7 +50,8 @@ const thermostatSchema = {
|
|
|
46
50
|
$ref: "definitions.json#/definitions/notification"
|
|
47
51
|
},
|
|
48
52
|
currentTemperature: {
|
|
49
|
-
type: "number"
|
|
53
|
+
type: "number",
|
|
54
|
+
readOnly: true
|
|
50
55
|
},
|
|
51
56
|
maxSafeCurrentTemp: {
|
|
52
57
|
type: ["number", "null"],
|
|
@@ -58,7 +63,8 @@ const thermostatSchema = {
|
|
|
58
63
|
},
|
|
59
64
|
currentHumidity: {
|
|
60
65
|
type: "number",
|
|
61
|
-
minimum: 0
|
|
66
|
+
minimum: 0,
|
|
67
|
+
readOnly: true
|
|
62
68
|
},
|
|
63
69
|
maxSafeCurrentHumidity: {
|
|
64
70
|
type: ["number", "null"],
|
|
@@ -74,7 +80,8 @@ const thermostatSchema = {
|
|
|
74
80
|
},
|
|
75
81
|
hvacState: {
|
|
76
82
|
type: ["string", "null"],
|
|
77
|
-
enum: ["cooling", "heating", "off", null]
|
|
83
|
+
enum: ["cooling", "heating", "off", null],
|
|
84
|
+
readOnly: true
|
|
78
85
|
},
|
|
79
86
|
fanMode: {
|
|
80
87
|
type: "string",
|
|
@@ -82,7 +89,8 @@ const thermostatSchema = {
|
|
|
82
89
|
},
|
|
83
90
|
fanState: {
|
|
84
91
|
type: ["string", "null"],
|
|
85
|
-
enum: ["off", "low", "medium", "high", "on", null]
|
|
92
|
+
enum: ["off", "low", "medium", "high", "on", null],
|
|
93
|
+
readOnly: true
|
|
86
94
|
},
|
|
87
95
|
temperatureScale: {
|
|
88
96
|
type: "string",
|
|
@@ -99,7 +107,8 @@ const thermostatSchema = {
|
|
|
99
107
|
items: {
|
|
100
108
|
type: "string",
|
|
101
109
|
enum: ["cool", "heat", "auto", "off"]
|
|
102
|
-
}
|
|
110
|
+
},
|
|
111
|
+
readOnly: true
|
|
103
112
|
},
|
|
104
113
|
supportedFanModes: {
|
|
105
114
|
type: "array",
|
|
@@ -107,7 +116,8 @@ const thermostatSchema = {
|
|
|
107
116
|
items: {
|
|
108
117
|
type: "string",
|
|
109
118
|
enum: ["auto", "low", "medium", "high", "off", "on"]
|
|
110
|
-
}
|
|
119
|
+
},
|
|
120
|
+
readOnly: true
|
|
111
121
|
},
|
|
112
122
|
setpoints: {
|
|
113
123
|
type: "object",
|
|
@@ -129,39 +139,48 @@ const thermostatSchema = {
|
|
|
129
139
|
default: 3
|
|
130
140
|
},
|
|
131
141
|
cycleRate: {
|
|
132
|
-
type: "number"
|
|
142
|
+
type: "number",
|
|
143
|
+
readOnly: true
|
|
133
144
|
},
|
|
134
145
|
co2: {
|
|
135
146
|
type: ["number", "null"],
|
|
136
|
-
description: "Parts per million (ppm)"
|
|
147
|
+
description: "Parts per million (ppm)",
|
|
148
|
+
readOnly: true
|
|
137
149
|
},
|
|
138
150
|
voc: {
|
|
139
151
|
type: ["number", "null"],
|
|
140
|
-
description: "Parts per billion (ppb)"
|
|
152
|
+
description: "Parts per billion (ppb)",
|
|
153
|
+
readOnly: true
|
|
141
154
|
},
|
|
142
155
|
batteryLevel: {
|
|
143
|
-
$ref: "definitions.json#/definitions/batteryLevel"
|
|
156
|
+
$ref: "definitions.json#/definitions/batteryLevel",
|
|
157
|
+
readOnly: true
|
|
144
158
|
},
|
|
145
159
|
systemId: {
|
|
146
160
|
$ref: "definitions.json#/definitions/systemId"
|
|
147
161
|
},
|
|
148
162
|
watts: {
|
|
149
|
-
$ref: "definitions.json#/definitions/watts"
|
|
163
|
+
$ref: "definitions.json#/definitions/watts",
|
|
164
|
+
readOnly: true
|
|
150
165
|
},
|
|
151
166
|
icon: {
|
|
152
167
|
type: "string"
|
|
153
168
|
},
|
|
154
169
|
manufacturer: {
|
|
155
|
-
type: "string"
|
|
170
|
+
type: "string",
|
|
171
|
+
readOnly: true
|
|
156
172
|
},
|
|
157
173
|
modelNumber: {
|
|
158
|
-
type: "string"
|
|
174
|
+
type: "string",
|
|
175
|
+
readOnly: true
|
|
159
176
|
},
|
|
160
177
|
serialNumber: {
|
|
161
|
-
type: "string"
|
|
178
|
+
type: "string",
|
|
179
|
+
readOnly: true
|
|
162
180
|
},
|
|
163
181
|
firmwareVersion: {
|
|
164
|
-
type: "string"
|
|
182
|
+
type: "string",
|
|
183
|
+
readOnly: true
|
|
165
184
|
},
|
|
166
185
|
uiEnabled: {
|
|
167
186
|
type: "boolean",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n },\n modelNumber: {\n type: \"string\",\n },\n serialNumber: {\n type: \"string\",\n },\n firmwareVersion: {\n type: \"string\",\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n default: true,\n },\n // deprecated, use alerts instead\n equipment: {\n type: \"object\",\n properties: {\n status: {\n type: \"string\",\n enum: [\"Ok\", \"Trouble\"],\n },\n message: {\n type: \"string\",\n },\n },\n required: [\"status\"],\n },\n },\n definitions: {\n setpoint: {\n type: \"object\",\n additionalProperties: false,\n required: [\"value\", \"min\", \"max\"],\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n min: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n max: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n} as const;\n\nexport type ThermostatSchema = FromSchema<\n typeof thermostatSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n readOnly: true,\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n readOnly: true,\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n readOnly: true,\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n readOnly: true,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n readOnly: true,\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n readOnly: true,\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n readOnly: true,\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n readOnly: true,\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n readOnly: true,\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n readOnly: true,\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n readOnly: true,\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n readOnly: true,\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n default: true,\n },\n // deprecated, use alerts instead\n equipment: {\n type: \"object\",\n properties: {\n status: {\n type: \"string\",\n enum: [\"Ok\", \"Trouble\"],\n },\n message: {\n type: \"string\",\n },\n },\n required: [\"status\"],\n },\n },\n definitions: {\n setpoint: {\n type: \"object\",\n additionalProperties: false,\n required: [\"value\", \"min\", \"max\"],\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n min: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n max: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n} as const;\n\nexport type ThermostatSchema = FromSchema<\n typeof thermostatSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,mBAAmB;AAAA,EAC9B,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,YAAY;AAAA,MACnB,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,oBAAoB;AAAA,MAClB,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,oBAAoB;AAAA,MAClB,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,aAAa;AAAA,IACf;AAAA,IACA,oBAAoB;AAAA,MAClB,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,aAAa;AAAA,IACf;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,aAAa;AAAA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QAAQ;AAAA,IACrB;AAAA,EACF;AAAA,EACA,aAAa;AAAA,IACX,UAAU;AAAA,MACR,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,UAAU,CAAC,SAAS,OAAO,KAAK;AAAA,MAChC,YAAY;AAAA,QACV,OAAO;AAAA,UACL,MAAM;AAAA,UACN,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,QACA,KAAK;AAAA,UACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACvB,SAAS;AAAA,UACT,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kohost/api-client",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "API client, models, schemas, commands, and events for Kohost applications",
|
|
5
5
|
"author": "Ian Rogers",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"lint-staged": "^16.2.7",
|
|
110
110
|
"prettier": "^3.0.3",
|
|
111
111
|
"tsup": "^8.3.5",
|
|
112
|
-
"tsx": "^4.22.
|
|
112
|
+
"tsx": "^4.22.3",
|
|
113
113
|
"typescript": "^6.0.3"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"ajv-formats": "^3.0.1"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
|
-
"@rollup/rollup-linux-x64-gnu": "4.60.
|
|
120
|
+
"@rollup/rollup-linux-x64-gnu": "4.60.4"
|
|
121
121
|
},
|
|
122
122
|
"lint-staged": {
|
|
123
123
|
"*.js": "eslint --cache --fix",
|