@kohost/api-client 3.2.11 → 3.2.13
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/cjs/schemas/AlarmSchema.d.ts +1 -0
- package/dist/cjs/schemas/CameraSchema.d.ts +15 -1
- package/dist/cjs/schemas/CategorySchema.d.ts +1 -0
- package/dist/cjs/schemas/CourtesySchema.d.ts +1 -0
- package/dist/cjs/schemas/CredentialSchema.d.ts +1 -0
- package/dist/cjs/schemas/DimmerSchema.d.ts +1 -0
- package/dist/cjs/schemas/GatewaySchema.d.ts +1 -0
- package/dist/cjs/schemas/LockSchema.d.ts +1 -0
- package/dist/cjs/schemas/MediaSourceSchema.d.ts +1 -0
- package/dist/cjs/schemas/MotionSensorSchema.d.ts +1 -0
- package/dist/cjs/schemas/ProductSchema.d.ts +1 -0
- package/dist/cjs/schemas/ReservationSchema.d.ts +1 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +24 -1
- package/dist/cjs/schemas/SpaceSchema.d.ts +1 -0
- package/dist/cjs/schemas/SwitchSchema.d.ts +1 -0
- package/dist/cjs/schemas/SystemUserSchema.d.ts +1 -0
- package/dist/cjs/schemas/ThermostatSchema.d.ts +1 -0
- package/dist/cjs/schemas/UserSchema.d.ts +1 -0
- package/dist/cjs/schemas/WindowCoveringSchema.d.ts +1 -0
- package/dist/cjs/schemas/camera.json +41 -1
- package/dist/cjs/schemas/definitions.json +1 -0
- package/dist/esm/Models.js +42 -1
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +42 -1
- package/dist/esm/utils.js.map +2 -2
- package/package.json +1 -1
|
@@ -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,25 @@ 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
|
+
authRequired?: boolean;
|
|
168
|
+
iframe?: string | null;
|
|
169
|
+
hls?: string | null;
|
|
170
|
+
webRTC?: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* Local RTSP stream URL
|
|
173
|
+
*/
|
|
174
|
+
rtsp?: string | null;
|
|
175
|
+
};
|
|
162
176
|
systemId?: string;
|
|
163
177
|
watts?: number;
|
|
164
178
|
}
|
|
@@ -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,25 @@ 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
|
+
authRequired?: boolean;
|
|
819
|
+
iframe?: string | null;
|
|
820
|
+
hls?: string | null;
|
|
821
|
+
webRTC?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
* Local RTSP stream URL
|
|
824
|
+
*/
|
|
825
|
+
rtsp?: string | null;
|
|
826
|
+
};
|
|
807
827
|
systemId?: string;
|
|
808
828
|
watts?: number;
|
|
809
829
|
}
|
|
@@ -837,6 +857,7 @@ export interface MediaSource {
|
|
|
837
857
|
| "kohost-k7"
|
|
838
858
|
| "kohost"
|
|
839
859
|
| "lg"
|
|
860
|
+
| "lapi"
|
|
840
861
|
| "lirc"
|
|
841
862
|
| "mews"
|
|
842
863
|
| "mht"
|
|
@@ -1056,6 +1077,7 @@ export interface MotionSensor {
|
|
|
1056
1077
|
| "kohost-k7"
|
|
1057
1078
|
| "kohost"
|
|
1058
1079
|
| "lg"
|
|
1080
|
+
| "lapi"
|
|
1059
1081
|
| "lirc"
|
|
1060
1082
|
| "mews"
|
|
1061
1083
|
| "mht"
|
|
@@ -1182,6 +1204,7 @@ export interface Alarm {
|
|
|
1182
1204
|
| "kohost-k7"
|
|
1183
1205
|
| "kohost"
|
|
1184
1206
|
| "lg"
|
|
1207
|
+
| "lapi"
|
|
1185
1208
|
| "lirc"
|
|
1186
1209
|
| "mews"
|
|
1187
1210
|
| "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,45 @@
|
|
|
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
|
+
"authRequired": {
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
},
|
|
69
|
+
"iframe": {
|
|
70
|
+
"type": ["string", "null"]
|
|
71
|
+
},
|
|
72
|
+
"hls": {
|
|
73
|
+
"type": ["string", "null"]
|
|
74
|
+
},
|
|
75
|
+
"webRTC": {
|
|
76
|
+
"type": ["string", "null"]
|
|
77
|
+
},
|
|
78
|
+
"rtsp": {
|
|
79
|
+
"type": ["string", "null"],
|
|
80
|
+
"description": "Local RTSP stream URL",
|
|
81
|
+
"examples": [
|
|
82
|
+
"rtsp://192.168.1.4:544/channels/1",
|
|
83
|
+
"rtsp://10.145.6.129:8554/unicast"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
48
88
|
"systemId": {
|
|
49
89
|
"$ref": "definitions.json#/definitions/systemId"
|
|
50
90
|
},
|
|
@@ -53,5 +93,5 @@
|
|
|
53
93
|
}
|
|
54
94
|
},
|
|
55
95
|
"additionalProperties": false,
|
|
56
|
-
"required": ["id", "type", "
|
|
96
|
+
"required": ["id", "type", "driver"]
|
|
57
97
|
}
|
package/dist/esm/Models.js
CHANGED
|
@@ -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,45 @@ 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
|
+
authRequired: {
|
|
10176
|
+
type: "boolean"
|
|
10177
|
+
},
|
|
10178
|
+
iframe: {
|
|
10179
|
+
type: ["string", "null"]
|
|
10180
|
+
},
|
|
10181
|
+
hls: {
|
|
10182
|
+
type: ["string", "null"]
|
|
10183
|
+
},
|
|
10184
|
+
webRTC: {
|
|
10185
|
+
type: ["string", "null"]
|
|
10186
|
+
},
|
|
10187
|
+
rtsp: {
|
|
10188
|
+
type: ["string", "null"],
|
|
10189
|
+
description: "Local RTSP stream URL",
|
|
10190
|
+
examples: [
|
|
10191
|
+
"rtsp://192.168.1.4:544/channels/1",
|
|
10192
|
+
"rtsp://10.145.6.129:8554/unicast"
|
|
10193
|
+
]
|
|
10194
|
+
}
|
|
10195
|
+
}
|
|
10196
|
+
},
|
|
10156
10197
|
systemId: {
|
|
10157
10198
|
$ref: "definitions.json#/definitions/systemId"
|
|
10158
10199
|
},
|
|
@@ -10161,7 +10202,7 @@ var require_camera = __commonJS({
|
|
|
10161
10202
|
}
|
|
10162
10203
|
},
|
|
10163
10204
|
additionalProperties: false,
|
|
10164
|
-
required: ["id", "type", "
|
|
10205
|
+
required: ["id", "type", "driver"]
|
|
10165
10206
|
};
|
|
10166
10207
|
}
|
|
10167
10208
|
});
|