@kohost/api-client 3.2.10 → 3.2.12

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.
@@ -135,6 +135,7 @@ export interface Alarm {
135
135
  | "kohost-k7"
136
136
  | "kohost"
137
137
  | "lg"
138
+ | "lapi"
138
139
  | "lirc"
139
140
  | "mews"
140
141
  | "mht"
@@ -134,6 +134,7 @@ export interface Camera {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lapi"
137
138
  | "lirc"
138
139
  | "mews"
139
140
  | "mht"
@@ -153,12 +154,24 @@ export interface Camera {
153
154
  | "cloudflare-images"
154
155
  | "cloudflare-stream"
155
156
  | "insperia-privacy";
156
- liveStreams: {
157
+ liveStreams?: {
157
158
  iframe?: string | null;
158
159
  hls?: string | null;
159
160
  webRTC?: string | null;
160
161
  rtsp?: string | null;
161
162
  };
163
+ liveStream?: {
164
+ id?: string;
165
+ driver?: "cloudflare-stream" | "aws-kinesis" | "digital-watchdog";
166
+ allowedOrigins?: string[];
167
+ iframe?: string | null;
168
+ hls?: string | null;
169
+ webRTC?: string | null;
170
+ /**
171
+ * Local RTSP stream URL
172
+ */
173
+ rtsp?: string | null;
174
+ };
162
175
  systemId?: string;
163
176
  watts?: number;
164
177
  }
@@ -31,6 +31,7 @@ export interface Category {
31
31
  | "kohost-k7"
32
32
  | "kohost"
33
33
  | "lg"
34
+ | "lapi"
34
35
  | "lirc"
35
36
  | "mews"
36
37
  | "mht"
@@ -133,6 +133,7 @@ export interface Courtesy {
133
133
  | "kohost-k7"
134
134
  | "kohost"
135
135
  | "lg"
136
+ | "lapi"
136
137
  | "lirc"
137
138
  | "mews"
138
139
  | "mht"
@@ -24,6 +24,7 @@ export interface Credential {
24
24
  | "kohost-k7"
25
25
  | "kohost"
26
26
  | "lg"
27
+ | "lapi"
27
28
  | "lirc"
28
29
  | "mews"
29
30
  | "mht"
@@ -133,6 +133,7 @@ export interface Dimmer {
133
133
  | "kohost-k7"
134
134
  | "kohost"
135
135
  | "lg"
136
+ | "lapi"
136
137
  | "lirc"
137
138
  | "mews"
138
139
  | "mht"
@@ -134,6 +134,7 @@ export interface IoTGateway {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lapi"
137
138
  | "lirc"
138
139
  | "mews"
139
140
  | "mht"
@@ -134,6 +134,7 @@ export interface Lock {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lapi"
137
138
  | "lirc"
138
139
  | "mews"
139
140
  | "mht"
@@ -121,6 +121,7 @@ export interface MediaSource {
121
121
  | "kohost-k7"
122
122
  | "kohost"
123
123
  | "lg"
124
+ | "lapi"
124
125
  | "lirc"
125
126
  | "mews"
126
127
  | "mht"
@@ -147,6 +148,7 @@ export interface MediaSource {
147
148
  volumeFeedback?: boolean;
148
149
  muted?: boolean;
149
150
  volume?: number;
151
+ brightness?: number;
150
152
  power?: "on" | "off";
151
153
  input?: string;
152
154
  supportedInputs?: string[];
@@ -130,6 +130,7 @@ export interface MotionSensor {
130
130
  | "kohost-k7"
131
131
  | "kohost"
132
132
  | "lg"
133
+ | "lapi"
133
134
  | "lirc"
134
135
  | "mews"
135
136
  | "mht"
@@ -31,6 +31,7 @@ export interface Product {
31
31
  | "kohost-k7"
32
32
  | "kohost"
33
33
  | "lg"
34
+ | "lapi"
34
35
  | "lirc"
35
36
  | "mews"
36
37
  | "mht"
@@ -37,6 +37,7 @@ export interface Reservation {
37
37
  | "kohost-k7"
38
38
  | "kohost"
39
39
  | "lg"
40
+ | "lapi"
40
41
  | "lirc"
41
42
  | "mews"
42
43
  | "mht"
@@ -165,6 +165,7 @@ export interface Dimmer {
165
165
  | "kohost-k7"
166
166
  | "kohost"
167
167
  | "lg"
168
+ | "lapi"
168
169
  | "lirc"
169
170
  | "mews"
170
171
  | "mht"
@@ -262,6 +263,7 @@ export interface Switch {
262
263
  | "kohost-k7"
263
264
  | "kohost"
264
265
  | "lg"
266
+ | "lapi"
265
267
  | "lirc"
266
268
  | "mews"
267
269
  | "mht"
@@ -327,6 +329,7 @@ export interface Thermostat {
327
329
  | "kohost-k7"
328
330
  | "kohost"
329
331
  | "lg"
332
+ | "lapi"
330
333
  | "lirc"
331
334
  | "mews"
332
335
  | "mht"
@@ -484,6 +487,7 @@ export interface Lock {
484
487
  | "kohost-k7"
485
488
  | "kohost"
486
489
  | "lg"
490
+ | "lapi"
487
491
  | "lirc"
488
492
  | "mews"
489
493
  | "mht"
@@ -585,6 +589,7 @@ export interface WindowCovering {
585
589
  | "kohost-k7"
586
590
  | "kohost"
587
591
  | "lg"
592
+ | "lapi"
588
593
  | "lirc"
589
594
  | "mews"
590
595
  | "mht"
@@ -681,6 +686,7 @@ export interface Courtesy {
681
686
  | "kohost-k7"
682
687
  | "kohost"
683
688
  | "lg"
689
+ | "lapi"
684
690
  | "lirc"
685
691
  | "mews"
686
692
  | "mht"
@@ -779,6 +785,7 @@ export interface Camera {
779
785
  | "kohost-k7"
780
786
  | "kohost"
781
787
  | "lg"
788
+ | "lapi"
782
789
  | "lirc"
783
790
  | "mews"
784
791
  | "mht"
@@ -798,12 +805,24 @@ export interface Camera {
798
805
  | "cloudflare-images"
799
806
  | "cloudflare-stream"
800
807
  | "insperia-privacy";
801
- liveStreams: {
808
+ liveStreams?: {
802
809
  iframe?: string | null;
803
810
  hls?: string | null;
804
811
  webRTC?: string | null;
805
812
  rtsp?: string | null;
806
813
  };
814
+ liveStream?: {
815
+ id?: string;
816
+ driver?: "cloudflare-stream" | "aws-kinesis" | "digital-watchdog";
817
+ allowedOrigins?: string[];
818
+ iframe?: string | null;
819
+ hls?: string | null;
820
+ webRTC?: string | null;
821
+ /**
822
+ * Local RTSP stream URL
823
+ */
824
+ rtsp?: string | null;
825
+ };
807
826
  systemId?: string;
808
827
  watts?: number;
809
828
  }
@@ -837,6 +856,7 @@ export interface MediaSource {
837
856
  | "kohost-k7"
838
857
  | "kohost"
839
858
  | "lg"
859
+ | "lapi"
840
860
  | "lirc"
841
861
  | "mews"
842
862
  | "mht"
@@ -863,6 +883,7 @@ export interface MediaSource {
863
883
  volumeFeedback?: boolean;
864
884
  muted?: boolean;
865
885
  volume?: number;
886
+ brightness?: number;
866
887
  power?: "on" | "off";
867
888
  input?: string;
868
889
  supportedInputs?: string[];
@@ -1055,6 +1076,7 @@ export interface MotionSensor {
1055
1076
  | "kohost-k7"
1056
1077
  | "kohost"
1057
1078
  | "lg"
1079
+ | "lapi"
1058
1080
  | "lirc"
1059
1081
  | "mews"
1060
1082
  | "mht"
@@ -1181,6 +1203,7 @@ export interface Alarm {
1181
1203
  | "kohost-k7"
1182
1204
  | "kohost"
1183
1205
  | "lg"
1206
+ | "lapi"
1184
1207
  | "lirc"
1185
1208
  | "mews"
1186
1209
  | "mht"
@@ -36,6 +36,7 @@ export interface Space {
36
36
  | "kohost-k7"
37
37
  | "kohost"
38
38
  | "lg"
39
+ | "lapi"
39
40
  | "lirc"
40
41
  | "mews"
41
42
  | "mht"
@@ -134,6 +134,7 @@ export interface Switch {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lapi"
137
138
  | "lirc"
138
139
  | "mews"
139
140
  | "mht"
@@ -59,6 +59,7 @@ export interface SystemUser {
59
59
  | "kohost-k7"
60
60
  | "kohost"
61
61
  | "lg"
62
+ | "lapi"
62
63
  | "lirc"
63
64
  | "mews"
64
65
  | "mht"
@@ -133,6 +133,7 @@ export interface Thermostat {
133
133
  | "kohost-k7"
134
134
  | "kohost"
135
135
  | "lg"
136
+ | "lapi"
136
137
  | "lirc"
137
138
  | "mews"
138
139
  | "mht"
@@ -228,6 +228,7 @@ export interface Reservation {
228
228
  | "kohost-k7"
229
229
  | "kohost"
230
230
  | "lg"
231
+ | "lapi"
231
232
  | "lirc"
232
233
  | "mews"
233
234
  | "mht"
@@ -134,6 +134,7 @@ export interface WindowCovering {
134
134
  | "kohost-k7"
135
135
  | "kohost"
136
136
  | "lg"
137
+ | "lapi"
137
138
  | "lirc"
138
139
  | "mews"
139
140
  | "mht"
@@ -30,6 +30,7 @@
30
30
  "liveStreams": {
31
31
  "type": "object",
32
32
  "additionalProperties": false,
33
+ "$comment": "This is now deprecated. Use liveStream instead. This will remain here for backwards compatibility.",
33
34
  "properties": {
34
35
  "iframe": {
35
36
  "type": ["string", "null"]
@@ -45,6 +46,42 @@
45
46
  }
46
47
  }
47
48
  },
49
+ "liveStream": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "id": {
54
+ "type": "string"
55
+ },
56
+ "driver": {
57
+ "type": "string",
58
+ "enum": ["cloudflare-stream", "aws-kinesis", "digital-watchdog"]
59
+ },
60
+ "allowedOrigins": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "iframe": {
67
+ "type": ["string", "null"]
68
+ },
69
+ "hls": {
70
+ "type": ["string", "null"]
71
+ },
72
+ "webRTC": {
73
+ "type": ["string", "null"]
74
+ },
75
+ "rtsp": {
76
+ "type": ["string", "null"],
77
+ "description": "Local RTSP stream URL",
78
+ "examples": [
79
+ "rtsp://192.168.1.4:544/channels/1",
80
+ "rtsp://10.145.6.129:8554/unicast"
81
+ ]
82
+ }
83
+ }
84
+ },
48
85
  "systemId": {
49
86
  "$ref": "definitions.json#/definitions/systemId"
50
87
  },
@@ -53,5 +90,5 @@
53
90
  }
54
91
  },
55
92
  "additionalProperties": false,
56
- "required": ["id", "type", "liveStreams", "driver"]
93
+ "required": ["id", "type", "driver"]
57
94
  }
@@ -98,6 +98,7 @@
98
98
  "kohost-k7",
99
99
  "kohost",
100
100
  "lg",
101
+ "lapi",
101
102
  "lirc",
102
103
  "mews",
103
104
  "mht",
@@ -73,6 +73,11 @@
73
73
  "minimum": 0,
74
74
  "maximum": 100
75
75
  },
76
+ "brightness": {
77
+ "type": "number",
78
+ "minimum": 0,
79
+ "maximum": 100
80
+ },
76
81
  "power": {
77
82
  "type": "string",
78
83
  "enum": ["on", "off"]
@@ -7557,6 +7557,7 @@ var require_definitions = __commonJS({
7557
7557
  "kohost-k7",
7558
7558
  "kohost",
7559
7559
  "lg",
7560
+ "lapi",
7560
7561
  "lirc",
7561
7562
  "mews",
7562
7563
  "mht",
@@ -10138,6 +10139,7 @@ var require_camera = __commonJS({
10138
10139
  liveStreams: {
10139
10140
  type: "object",
10140
10141
  additionalProperties: false,
10142
+ $comment: "This is now deprecated. Use liveStream instead. This will remain here for backwards compatibility.",
10141
10143
  properties: {
10142
10144
  iframe: {
10143
10145
  type: ["string", "null"]
@@ -10153,6 +10155,42 @@ var require_camera = __commonJS({
10153
10155
  }
10154
10156
  }
10155
10157
  },
10158
+ liveStream: {
10159
+ type: "object",
10160
+ additionalProperties: false,
10161
+ properties: {
10162
+ id: {
10163
+ type: "string"
10164
+ },
10165
+ driver: {
10166
+ type: "string",
10167
+ enum: ["cloudflare-stream", "aws-kinesis", "digital-watchdog"]
10168
+ },
10169
+ allowedOrigins: {
10170
+ type: "array",
10171
+ items: {
10172
+ type: "string"
10173
+ }
10174
+ },
10175
+ iframe: {
10176
+ type: ["string", "null"]
10177
+ },
10178
+ hls: {
10179
+ type: ["string", "null"]
10180
+ },
10181
+ webRTC: {
10182
+ type: ["string", "null"]
10183
+ },
10184
+ rtsp: {
10185
+ type: ["string", "null"],
10186
+ description: "Local RTSP stream URL",
10187
+ examples: [
10188
+ "rtsp://192.168.1.4:544/channels/1",
10189
+ "rtsp://10.145.6.129:8554/unicast"
10190
+ ]
10191
+ }
10192
+ }
10193
+ },
10156
10194
  systemId: {
10157
10195
  $ref: "definitions.json#/definitions/systemId"
10158
10196
  },
@@ -10161,7 +10199,7 @@ var require_camera = __commonJS({
10161
10199
  }
10162
10200
  },
10163
10201
  additionalProperties: false,
10164
- required: ["id", "type", "liveStreams", "driver"]
10202
+ required: ["id", "type", "driver"]
10165
10203
  };
10166
10204
  }
10167
10205
  });
@@ -10356,6 +10394,11 @@ var require_mediaSource = __commonJS({
10356
10394
  minimum: 0,
10357
10395
  maximum: 100
10358
10396
  },
10397
+ brightness: {
10398
+ type: "number",
10399
+ minimum: 0,
10400
+ maximum: 100
10401
+ },
10359
10402
  power: {
10360
10403
  type: "string",
10361
10404
  enum: ["on", "off"]