@kohost/api-client 6.3.0 → 6.3.2
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.
|
@@ -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;AAA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AA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS;AAAA,IACX;AAAA;AAAA,IAEA,WAAW;AAAA,MACT,MAAM;AAAA,MACN,YAAY;AAAA,QACV,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,MAAM,CAAC,MAAM,SAAS;AAAA,QACxB;AAAA,QACA,SAAS;AAAA,UACP,MAAM;AAAA,QACR;AAAA,MACF;AAAA,MACA,UAAU,CAAC,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.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "API client, models, schemas, commands, and events for Kohost applications",
|
|
5
5
|
"author": "Ian Rogers",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
"eslint-config-prettier": "^10.1.8",
|
|
106
106
|
"globals": "^17.3.0",
|
|
107
107
|
"husky": "^9.0.11",
|
|
108
|
-
"json-schema-to-ts": "^3.1.1",
|
|
109
108
|
"lint-staged": "^16.2.7",
|
|
110
109
|
"prettier": "^3.0.3",
|
|
111
110
|
"tsup": "^8.3.5",
|
|
@@ -114,7 +113,8 @@
|
|
|
114
113
|
},
|
|
115
114
|
"dependencies": {
|
|
116
115
|
"ajv": "^8.11.0",
|
|
117
|
-
"ajv-formats": "^3.0.1"
|
|
116
|
+
"ajv-formats": "^3.0.1",
|
|
117
|
+
"json-schema-to-ts": "^3.1.1"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
120
|
"@rollup/rollup-linux-x64-gnu": "4.60.4"
|