@seamapi/types 1.1185.0 → 1.1186.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.1185.0",
3
+ "version": "1.1186.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1241,6 +1241,38 @@ export const device_metadata = z
1241
1241
  .optional()
1242
1242
  .describe('Metadata for a Reolink camera.'),
1243
1243
 
1244
+ alertify_metadata: z
1245
+ .object({
1246
+ device_id: z
1247
+ .string()
1248
+ .optional()
1249
+ .describe('Device ID reported by Alertify.'),
1250
+ device_name: z
1251
+ .string()
1252
+ .optional()
1253
+ .describe('Device name, as set in the Alertify dashboard.'),
1254
+ unit_id: z
1255
+ .string()
1256
+ .optional()
1257
+ .describe('ID of the Alertify unit where the device is installed.'),
1258
+ unit_name: z
1259
+ .string()
1260
+ .optional()
1261
+ .describe('Name of the Alertify unit where the device is installed.'),
1262
+ building_id: z
1263
+ .string()
1264
+ .nullable()
1265
+ .optional()
1266
+ .describe('ID of the Alertify building that contains the unit.'),
1267
+ })
1268
+ .partial()
1269
+ .optional().describe(`
1270
+ ---
1271
+ undocumented: Unreleased.
1272
+ ---
1273
+ Metadata for an Alertify sensor.
1274
+ `),
1275
+
1244
1276
  unifi_protect_metadata: z
1245
1277
  .object({
1246
1278
  camera_id: z
@@ -68,6 +68,7 @@ export const DEVICE_PROVIDERS = {
68
68
  REOLINK: 'reolink',
69
69
  UNIFI_PROTECT: 'unifi_protect',
70
70
  YALE_CONNECT: 'yale_connect',
71
+ ALERTIFY: 'alertify',
71
72
  ICAL: 'ical',
72
73
  LODGIFY: 'lodgify',
73
74
  HOSTAWAY: 'hostaway',
@@ -170,6 +171,7 @@ export const PROVIDER_CATEGORY_MAP = {
170
171
  'reolink',
171
172
  'unifi_protect',
172
173
  'yale_connect',
174
+ 'alertify',
173
175
  ],
174
176
 
175
177
  thermostats: [
@@ -165,6 +165,21 @@ export const speaker_device_type = z
165
165
 
166
166
  export type SpeakerDeviceType = z.infer<typeof speaker_device_type>
167
167
 
168
+ export const SENSOR_DEVICE_TYPE = {
169
+ ALERTIFY_SENSOR: 'alertify_sensor',
170
+ } as const
171
+
172
+ type SensorDeviceTypeFromMapping =
173
+ (typeof SENSOR_DEVICE_TYPE)[keyof typeof SENSOR_DEVICE_TYPE]
174
+
175
+ export const SENSOR_DEVICE_TYPE_LIST = Object.values(SENSOR_DEVICE_TYPE)
176
+
177
+ export const sensor_device_type = z
178
+ .enum(Object.values(SENSOR_DEVICE_TYPE) as [SensorDeviceTypeFromMapping])
179
+ .describe('Device type for environmental sensors.')
180
+
181
+ export type SensorDeviceType = z.infer<typeof sensor_device_type>
182
+
168
183
  export const any_device_type = z.union([
169
184
  lock_device_type,
170
185
  key_device_type,
@@ -173,6 +188,7 @@ export const any_device_type = z.union([
173
188
  phone_device_type,
174
189
  camera_device_type,
175
190
  speaker_device_type,
191
+ sensor_device_type,
176
192
  ])
177
193
 
178
194
  export type AnyDeviceType = z.infer<typeof any_device_type>
@@ -16041,6 +16041,11 @@ const openapi: OpenAPISpec = {
16041
16041
  enum: ['sonos_speaker'],
16042
16042
  type: 'string',
16043
16043
  },
16044
+ {
16045
+ description: 'Device type for environmental sensors.',
16046
+ enum: ['alertify_sensor'],
16047
+ type: 'string',
16048
+ },
16044
16049
  ],
16045
16050
  },
16046
16051
  display_name: {
@@ -17127,6 +17132,38 @@ const openapi: OpenAPISpec = {
17127
17132
  },
17128
17133
  type: 'object',
17129
17134
  },
17135
+ alertify_metadata: {
17136
+ description: 'Metadata for an Alertify sensor.',
17137
+ properties: {
17138
+ building_id: {
17139
+ description:
17140
+ 'ID of the Alertify building that contains the unit.',
17141
+ nullable: true,
17142
+ type: 'string',
17143
+ },
17144
+ device_id: {
17145
+ description: 'Device ID reported by Alertify.',
17146
+ type: 'string',
17147
+ },
17148
+ device_name: {
17149
+ description:
17150
+ 'Device name, as set in the Alertify dashboard.',
17151
+ type: 'string',
17152
+ },
17153
+ unit_id: {
17154
+ description:
17155
+ 'ID of the Alertify unit where the device is installed.',
17156
+ type: 'string',
17157
+ },
17158
+ unit_name: {
17159
+ description:
17160
+ 'Name of the Alertify unit where the device is installed.',
17161
+ type: 'string',
17162
+ },
17163
+ },
17164
+ type: 'object',
17165
+ 'x-undocumented': 'Unreleased.',
17166
+ },
17130
17167
  aqara_metadata: {
17131
17168
  description: 'Metadata for an Aqara device.',
17132
17169
  properties: {
@@ -21064,6 +21101,7 @@ const openapi: OpenAPISpec = {
21064
21101
  'reolink',
21065
21102
  'unifi_protect',
21066
21103
  'yale_connect',
21104
+ 'alertify',
21067
21105
  'ical',
21068
21106
  'lodgify',
21069
21107
  'hostaway',
@@ -41539,6 +41577,11 @@ const openapi: OpenAPISpec = {
41539
41577
  enum: ['sonos_speaker'],
41540
41578
  type: 'string',
41541
41579
  },
41580
+ {
41581
+ description: 'Device type for environmental sensors.',
41582
+ enum: ['alertify_sensor'],
41583
+ type: 'string',
41584
+ },
41542
41585
  ],
41543
41586
  },
41544
41587
  display_name: {
@@ -52460,6 +52503,7 @@ const openapi: OpenAPISpec = {
52460
52503
  'reolink',
52461
52504
  'unifi_protect',
52462
52505
  'yale_connect',
52506
+ 'alertify',
52463
52507
  'ical',
52464
52508
  'lodgify',
52465
52509
  'hostaway',
@@ -56446,6 +56490,11 @@ const openapi: OpenAPISpec = {
56446
56490
  enum: ['sonos_speaker'],
56447
56491
  type: 'string',
56448
56492
  },
56493
+ {
56494
+ description: 'Device type for environmental sensors.',
56495
+ enum: ['alertify_sensor'],
56496
+ type: 'string',
56497
+ },
56449
56498
  ],
56450
56499
  },
56451
56500
  },
@@ -56541,6 +56590,11 @@ const openapi: OpenAPISpec = {
56541
56590
  enum: ['sonos_speaker'],
56542
56591
  type: 'string',
56543
56592
  },
56593
+ {
56594
+ description: 'Device type for environmental sensors.',
56595
+ enum: ['alertify_sensor'],
56596
+ type: 'string',
56597
+ },
56544
56598
  ],
56545
56599
  },
56546
56600
  type: 'array',
@@ -56603,6 +56657,7 @@ const openapi: OpenAPISpec = {
56603
56657
  'reolink',
56604
56658
  'unifi_protect',
56605
56659
  'yale_connect',
56660
+ 'alertify',
56606
56661
  'ical',
56607
56662
  'lodgify',
56608
56663
  'hostaway',
@@ -58804,6 +58859,11 @@ const openapi: OpenAPISpec = {
58804
58859
  enum: ['sonos_speaker'],
58805
58860
  type: 'string',
58806
58861
  },
58862
+ {
58863
+ description: 'Device type for environmental sensors.',
58864
+ enum: ['alertify_sensor'],
58865
+ type: 'string',
58866
+ },
58807
58867
  ],
58808
58868
  },
58809
58869
  },
@@ -58899,6 +58959,11 @@ const openapi: OpenAPISpec = {
58899
58959
  enum: ['sonos_speaker'],
58900
58960
  type: 'string',
58901
58961
  },
58962
+ {
58963
+ description: 'Device type for environmental sensors.',
58964
+ enum: ['alertify_sensor'],
58965
+ type: 'string',
58966
+ },
58902
58967
  ],
58903
58968
  },
58904
58969
  type: 'array',
@@ -58961,6 +59026,7 @@ const openapi: OpenAPISpec = {
58961
59026
  'reolink',
58962
59027
  'unifi_protect',
58963
59028
  'yale_connect',
59029
+ 'alertify',
58964
59030
  'ical',
58965
59031
  'lodgify',
58966
59032
  'hostaway',
@@ -60853,7 +60919,7 @@ const openapi: OpenAPISpec = {
60853
60919
  schema: {
60854
60920
  description:
60855
60921
  'Manufacturers of the noise sensors that you want to list.',
60856
- enum: ['minut', 'noiseaware'],
60922
+ enum: ['minut', 'noiseaware', 'alertify'],
60857
60923
  type: 'string',
60858
60924
  },
60859
60925
  },