@seamapi/types 1.1158.0 → 1.1160.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1158.0",
3
+ "version": "1.1160.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1211,6 +1211,39 @@ export const device_metadata = z
1211
1211
  .optional()
1212
1212
  .describe('Metadata for a Reolink camera.'),
1213
1213
 
1214
+ unifi_protect_metadata: z
1215
+ .object({
1216
+ camera_id: z
1217
+ .string()
1218
+ .optional()
1219
+ .describe('Camera ID reported by UniFi Protect.'),
1220
+ camera_name: z
1221
+ .string()
1222
+ .optional()
1223
+ .describe('Camera name reported by UniFi Protect.'),
1224
+ model: z
1225
+ .string()
1226
+ .optional()
1227
+ .describe('Model reported by the UniFi Protect camera.'),
1228
+ mac: z
1229
+ .string()
1230
+ .optional()
1231
+ .describe('MAC address reported by the UniFi Protect camera.'),
1232
+ nvr_name: z
1233
+ .string()
1234
+ .optional()
1235
+ .describe(
1236
+ 'Name of the UniFi Protect console that manages the camera.',
1237
+ ),
1238
+ has_mic: z
1239
+ .boolean()
1240
+ .optional()
1241
+ .describe('Whether the camera has a microphone.'),
1242
+ })
1243
+ .partial()
1244
+ .optional()
1245
+ .describe('Metadata for a UniFi Protect camera.'),
1246
+
1214
1247
  arlo_metadata: z
1215
1248
  .object({
1216
1249
  device_id: z
@@ -64,6 +64,7 @@ export const DEVICE_PROVIDERS = {
64
64
  TAPO: 'tapo',
65
65
  ARLO: 'arlo',
66
66
  REOLINK: 'reolink',
67
+ UNIFI_PROTECT: 'unifi_protect',
67
68
  ICAL: 'ical',
68
69
  LODGIFY: 'lodgify',
69
70
  HOSTAWAY: 'hostaway',
@@ -171,7 +172,7 @@ export const PROVIDER_CATEGORY_MAP = {
171
172
  'hotek',
172
173
  ],
173
174
 
174
- cameras: ['ring', 'tapo', 'arlo', 'reolink'],
175
+ cameras: ['ring', 'tapo', 'arlo', 'reolink', 'unifi_protect'],
175
176
 
176
177
  connectors: ['ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling'],
177
178
 
@@ -131,6 +131,7 @@ export const CAMERA_DEVICE_TYPE = {
131
131
  TAPO_CAMERA: 'tapo_camera',
132
132
  ARLO_CAMERA: 'arlo_camera',
133
133
  REOLINK_CAMERA: 'reolink_camera',
134
+ UNIFI_PROTECT_CAMERA: 'unifi_protect_camera',
134
135
  } as const
135
136
 
136
137
  type CameraDeviceTypeFromMapping =