@seamapi/types 1.25.0 → 1.26.1

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.
Files changed (31) hide show
  1. package/dist/connect.cjs +10 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +35 -0
  4. package/dist/devicedb.cjs +81 -9
  5. package/dist/devicedb.cjs.map +1 -1
  6. package/dist/devicedb.d.cts +1842 -2
  7. package/lib/seam/connect/openapi.d.ts +30 -0
  8. package/lib/seam/connect/openapi.js +10 -0
  9. package/lib/seam/connect/openapi.js.map +1 -1
  10. package/lib/seam/connect/route-types.d.ts +5 -0
  11. package/lib/seam/devicedb/index.d.ts +3 -2
  12. package/lib/seam/devicedb/index.js +2 -0
  13. package/lib/seam/devicedb/index.js.map +1 -1
  14. package/lib/seam/devicedb/public-models/device-model-v1.d.ts +5 -2
  15. package/lib/seam/devicedb/public-models/device-model-v1.js +22 -8
  16. package/lib/seam/devicedb/public-models/device-model-v1.js.map +1 -1
  17. package/lib/seam/devicedb/public-models/manufacturer.d.ts +2 -0
  18. package/lib/seam/devicedb/public-models/manufacturer.js +8 -1
  19. package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -1
  20. package/lib/seam/devicedb/route-specs.d.ts +1817 -0
  21. package/lib/seam/devicedb/route-specs.js +49 -0
  22. package/lib/seam/devicedb/route-specs.js.map +1 -0
  23. package/lib/seam/devicedb/route-types.d.ts +1 -1
  24. package/package.json +3 -1
  25. package/src/lib/seam/connect/openapi.ts +10 -0
  26. package/src/lib/seam/connect/route-types.ts +5 -0
  27. package/src/lib/seam/devicedb/index.ts +5 -1
  28. package/src/lib/seam/devicedb/public-models/device-model-v1.ts +28 -8
  29. package/src/lib/seam/devicedb/public-models/manufacturer.ts +13 -1
  30. package/src/lib/seam/devicedb/route-specs.ts +50 -0
  31. package/src/lib/seam/devicedb/route-types.ts +7 -1
@@ -0,0 +1,1817 @@
1
+ import { z } from 'zod';
2
+ export declare const routes: {
3
+ readonly '/api/v1/device_models/get': {
4
+ readonly auth: "publishable_key";
5
+ readonly methods: readonly ["GET", "OPTIONS"];
6
+ readonly queryParams: z.ZodObject<{
7
+ device_model_id: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ device_model_id: string;
10
+ }, {
11
+ device_model_id: string;
12
+ }>;
13
+ readonly jsonResponse: z.ZodObject<{
14
+ device_model: z.ZodIntersection<z.ZodObject<{
15
+ device_model_id: z.ZodString;
16
+ manufacturer: z.ZodObject<{
17
+ manufacturer_id: z.ZodString;
18
+ display_name: z.ZodString;
19
+ logo: z.ZodOptional<z.ZodObject<{
20
+ url: z.ZodString;
21
+ width: z.ZodNumber;
22
+ height: z.ZodNumber;
23
+ }, "strip", z.ZodTypeAny, {
24
+ height: number;
25
+ width: number;
26
+ url: string;
27
+ }, {
28
+ height: number;
29
+ width: number;
30
+ url: string;
31
+ }>>;
32
+ integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
33
+ is_connect_webview_supported: z.ZodBoolean;
34
+ requires_seam_support_to_add_account: z.ZodBoolean;
35
+ }, "strip", z.ZodTypeAny, {
36
+ display_name: string;
37
+ manufacturer_id: string;
38
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
39
+ is_connect_webview_supported: boolean;
40
+ requires_seam_support_to_add_account: boolean;
41
+ logo?: {
42
+ height: number;
43
+ width: number;
44
+ url: string;
45
+ } | undefined;
46
+ }, {
47
+ display_name: string;
48
+ manufacturer_id: string;
49
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
50
+ is_connect_webview_supported: boolean;
51
+ requires_seam_support_to_add_account: boolean;
52
+ logo?: {
53
+ height: number;
54
+ width: number;
55
+ url: string;
56
+ } | undefined;
57
+ }>;
58
+ is_device_supported: z.ZodBoolean;
59
+ display_name: z.ZodString;
60
+ description: z.ZodString;
61
+ product_url: z.ZodOptional<z.ZodString>;
62
+ main_connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
63
+ aesthetic_variants: z.ZodArray<z.ZodObject<{
64
+ slug: z.ZodString;
65
+ display_name: z.ZodString;
66
+ primary_color_hex: z.ZodOptional<z.ZodString>;
67
+ manufacturer_sku: z.ZodOptional<z.ZodString>;
68
+ front_image: z.ZodOptional<z.ZodObject<{
69
+ url: z.ZodString;
70
+ width: z.ZodNumber;
71
+ height: z.ZodNumber;
72
+ }, "strip", z.ZodTypeAny, {
73
+ height: number;
74
+ width: number;
75
+ url: string;
76
+ }, {
77
+ height: number;
78
+ width: number;
79
+ url: string;
80
+ }>>;
81
+ back_image: z.ZodOptional<z.ZodObject<{
82
+ url: z.ZodString;
83
+ width: z.ZodNumber;
84
+ height: z.ZodNumber;
85
+ }, "strip", z.ZodTypeAny, {
86
+ height: number;
87
+ width: number;
88
+ url: string;
89
+ }, {
90
+ height: number;
91
+ width: number;
92
+ url: string;
93
+ }>>;
94
+ images: z.ZodArray<z.ZodObject<{
95
+ url: z.ZodString;
96
+ width: z.ZodNumber;
97
+ height: z.ZodNumber;
98
+ }, "strip", z.ZodTypeAny, {
99
+ height: number;
100
+ width: number;
101
+ url: string;
102
+ }, {
103
+ height: number;
104
+ width: number;
105
+ url: string;
106
+ }>, "many">;
107
+ }, "strip", z.ZodTypeAny, {
108
+ display_name: string;
109
+ slug: string;
110
+ images: {
111
+ height: number;
112
+ width: number;
113
+ url: string;
114
+ }[];
115
+ primary_color_hex?: string | undefined;
116
+ manufacturer_sku?: string | undefined;
117
+ front_image?: {
118
+ height: number;
119
+ width: number;
120
+ url: string;
121
+ } | undefined;
122
+ back_image?: {
123
+ height: number;
124
+ width: number;
125
+ url: string;
126
+ } | undefined;
127
+ }, {
128
+ display_name: string;
129
+ slug: string;
130
+ images: {
131
+ height: number;
132
+ width: number;
133
+ url: string;
134
+ }[];
135
+ primary_color_hex?: string | undefined;
136
+ manufacturer_sku?: string | undefined;
137
+ front_image?: {
138
+ height: number;
139
+ width: number;
140
+ url: string;
141
+ } | undefined;
142
+ back_image?: {
143
+ height: number;
144
+ width: number;
145
+ url: string;
146
+ } | undefined;
147
+ }>, "many">;
148
+ power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
149
+ }, "strip", z.ZodTypeAny, {
150
+ description: string;
151
+ display_name: string;
152
+ device_model_id: string;
153
+ manufacturer: {
154
+ display_name: string;
155
+ manufacturer_id: string;
156
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
157
+ is_connect_webview_supported: boolean;
158
+ requires_seam_support_to_add_account: boolean;
159
+ logo?: {
160
+ height: number;
161
+ width: number;
162
+ url: string;
163
+ } | undefined;
164
+ };
165
+ is_device_supported: boolean;
166
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
167
+ aesthetic_variants: {
168
+ display_name: string;
169
+ slug: string;
170
+ images: {
171
+ height: number;
172
+ width: number;
173
+ url: string;
174
+ }[];
175
+ primary_color_hex?: string | undefined;
176
+ manufacturer_sku?: string | undefined;
177
+ front_image?: {
178
+ height: number;
179
+ width: number;
180
+ url: string;
181
+ } | undefined;
182
+ back_image?: {
183
+ height: number;
184
+ width: number;
185
+ url: string;
186
+ } | undefined;
187
+ }[];
188
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
189
+ product_url?: string | undefined;
190
+ }, {
191
+ description: string;
192
+ display_name: string;
193
+ device_model_id: string;
194
+ manufacturer: {
195
+ display_name: string;
196
+ manufacturer_id: string;
197
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
198
+ is_connect_webview_supported: boolean;
199
+ requires_seam_support_to_add_account: boolean;
200
+ logo?: {
201
+ height: number;
202
+ width: number;
203
+ url: string;
204
+ } | undefined;
205
+ };
206
+ is_device_supported: boolean;
207
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
208
+ aesthetic_variants: {
209
+ display_name: string;
210
+ slug: string;
211
+ images: {
212
+ height: number;
213
+ width: number;
214
+ url: string;
215
+ }[];
216
+ primary_color_hex?: string | undefined;
217
+ manufacturer_sku?: string | undefined;
218
+ front_image?: {
219
+ height: number;
220
+ width: number;
221
+ url: string;
222
+ } | undefined;
223
+ back_image?: {
224
+ height: number;
225
+ width: number;
226
+ url: string;
227
+ } | undefined;
228
+ }[];
229
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
230
+ product_url?: string | undefined;
231
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
232
+ main_category: z.ZodLiteral<"smartlock">;
233
+ physical_properties: z.ZodObject<{
234
+ lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
235
+ has_physical_key: z.ZodBoolean;
236
+ has_camera: z.ZodBoolean;
237
+ }, "strip", z.ZodTypeAny, {
238
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
239
+ has_physical_key: boolean;
240
+ has_camera: boolean;
241
+ }, {
242
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
243
+ has_physical_key: boolean;
244
+ has_camera: boolean;
245
+ }>;
246
+ software_features: z.ZodObject<{
247
+ can_remotely_unlock: z.ZodBoolean;
248
+ can_program_access_codes: z.ZodBoolean;
249
+ can_program_access_schedules: z.ZodBoolean;
250
+ can_program_access_codes_offline: z.ZodBoolean;
251
+ }, "strip", z.ZodTypeAny, {
252
+ can_remotely_unlock: boolean;
253
+ can_program_access_codes: boolean;
254
+ can_program_access_schedules: boolean;
255
+ can_program_access_codes_offline: boolean;
256
+ }, {
257
+ can_remotely_unlock: boolean;
258
+ can_program_access_codes: boolean;
259
+ can_program_access_schedules: boolean;
260
+ can_program_access_codes_offline: boolean;
261
+ }>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ main_category: "smartlock";
264
+ physical_properties: {
265
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
266
+ has_physical_key: boolean;
267
+ has_camera: boolean;
268
+ };
269
+ software_features: {
270
+ can_remotely_unlock: boolean;
271
+ can_program_access_codes: boolean;
272
+ can_program_access_schedules: boolean;
273
+ can_program_access_codes_offline: boolean;
274
+ };
275
+ }, {
276
+ main_category: "smartlock";
277
+ physical_properties: {
278
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
279
+ has_physical_key: boolean;
280
+ has_camera: boolean;
281
+ };
282
+ software_features: {
283
+ can_remotely_unlock: boolean;
284
+ can_program_access_codes: boolean;
285
+ can_program_access_schedules: boolean;
286
+ can_program_access_codes_offline: boolean;
287
+ };
288
+ }>, z.ZodObject<{
289
+ main_category: z.ZodLiteral<"sensor">;
290
+ physical_properties: z.ZodObject<{
291
+ has_noise_sensor: z.ZodBoolean;
292
+ has_humidity_sensor: z.ZodBoolean;
293
+ has_temperature_sensor: z.ZodBoolean;
294
+ has_occupancy_detection: z.ZodBoolean;
295
+ }, "strip", z.ZodTypeAny, {
296
+ has_noise_sensor: boolean;
297
+ has_humidity_sensor: boolean;
298
+ has_temperature_sensor: boolean;
299
+ has_occupancy_detection: boolean;
300
+ }, {
301
+ has_noise_sensor: boolean;
302
+ has_humidity_sensor: boolean;
303
+ has_temperature_sensor: boolean;
304
+ has_occupancy_detection: boolean;
305
+ }>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ main_category: "sensor";
308
+ physical_properties: {
309
+ has_noise_sensor: boolean;
310
+ has_humidity_sensor: boolean;
311
+ has_temperature_sensor: boolean;
312
+ has_occupancy_detection: boolean;
313
+ };
314
+ }, {
315
+ main_category: "sensor";
316
+ physical_properties: {
317
+ has_noise_sensor: boolean;
318
+ has_humidity_sensor: boolean;
319
+ has_temperature_sensor: boolean;
320
+ has_occupancy_detection: boolean;
321
+ };
322
+ }>, z.ZodObject<{
323
+ main_category: z.ZodLiteral<"thermostat">;
324
+ physical_properties: z.ZodObject<{
325
+ available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
326
+ is_heat_pump_compatible: z.ZodBoolean;
327
+ has_occupancy_detection: z.ZodBoolean;
328
+ supports_demand_response: z.ZodBoolean;
329
+ has_humidity_sensor: z.ZodBoolean;
330
+ has_temperature_sensor: z.ZodBoolean;
331
+ supports_emergency_heating_mode: z.ZodBoolean;
332
+ }, "strip", z.ZodTypeAny, {
333
+ has_humidity_sensor: boolean;
334
+ has_temperature_sensor: boolean;
335
+ has_occupancy_detection: boolean;
336
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
337
+ is_heat_pump_compatible: boolean;
338
+ supports_demand_response: boolean;
339
+ supports_emergency_heating_mode: boolean;
340
+ }, {
341
+ has_humidity_sensor: boolean;
342
+ has_temperature_sensor: boolean;
343
+ has_occupancy_detection: boolean;
344
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
345
+ is_heat_pump_compatible: boolean;
346
+ supports_demand_response: boolean;
347
+ supports_emergency_heating_mode: boolean;
348
+ }>;
349
+ software_features: z.ZodObject<{
350
+ can_program_climate_schedules: z.ZodBoolean;
351
+ }, "strip", z.ZodTypeAny, {
352
+ can_program_climate_schedules: boolean;
353
+ }, {
354
+ can_program_climate_schedules: boolean;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ main_category: "thermostat";
358
+ physical_properties: {
359
+ has_humidity_sensor: boolean;
360
+ has_temperature_sensor: boolean;
361
+ has_occupancy_detection: boolean;
362
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
363
+ is_heat_pump_compatible: boolean;
364
+ supports_demand_response: boolean;
365
+ supports_emergency_heating_mode: boolean;
366
+ };
367
+ software_features: {
368
+ can_program_climate_schedules: boolean;
369
+ };
370
+ }, {
371
+ main_category: "thermostat";
372
+ physical_properties: {
373
+ has_humidity_sensor: boolean;
374
+ has_temperature_sensor: boolean;
375
+ has_occupancy_detection: boolean;
376
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
377
+ is_heat_pump_compatible: boolean;
378
+ supports_demand_response: boolean;
379
+ supports_emergency_heating_mode: boolean;
380
+ };
381
+ software_features: {
382
+ can_program_climate_schedules: boolean;
383
+ };
384
+ }>, z.ZodObject<{
385
+ main_category: z.ZodLiteral<"relay">;
386
+ }, "strip", z.ZodTypeAny, {
387
+ main_category: "relay";
388
+ }, {
389
+ main_category: "relay";
390
+ }>, z.ZodObject<{
391
+ main_category: z.ZodLiteral<"intercom">;
392
+ physical_properties: z.ZodObject<{
393
+ has_camera: z.ZodBoolean;
394
+ }, "strip", z.ZodTypeAny, {
395
+ has_camera: boolean;
396
+ }, {
397
+ has_camera: boolean;
398
+ }>;
399
+ software_features: z.ZodObject<{
400
+ can_remotely_unlock: z.ZodBoolean;
401
+ can_program_access_codes: z.ZodBoolean;
402
+ }, "strip", z.ZodTypeAny, {
403
+ can_remotely_unlock: boolean;
404
+ can_program_access_codes: boolean;
405
+ }, {
406
+ can_remotely_unlock: boolean;
407
+ can_program_access_codes: boolean;
408
+ }>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ main_category: "intercom";
411
+ physical_properties: {
412
+ has_camera: boolean;
413
+ };
414
+ software_features: {
415
+ can_remotely_unlock: boolean;
416
+ can_program_access_codes: boolean;
417
+ };
418
+ }, {
419
+ main_category: "intercom";
420
+ physical_properties: {
421
+ has_camera: boolean;
422
+ };
423
+ software_features: {
424
+ can_remotely_unlock: boolean;
425
+ can_program_access_codes: boolean;
426
+ };
427
+ }>, z.ZodObject<{
428
+ main_category: z.ZodLiteral<"accessory">;
429
+ }, "strip", z.ZodTypeAny, {
430
+ main_category: "accessory";
431
+ }, {
432
+ main_category: "accessory";
433
+ }>]>>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ device_model: ({
436
+ description: string;
437
+ display_name: string;
438
+ device_model_id: string;
439
+ manufacturer: {
440
+ display_name: string;
441
+ manufacturer_id: string;
442
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
443
+ is_connect_webview_supported: boolean;
444
+ requires_seam_support_to_add_account: boolean;
445
+ logo?: {
446
+ height: number;
447
+ width: number;
448
+ url: string;
449
+ } | undefined;
450
+ };
451
+ is_device_supported: boolean;
452
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
453
+ aesthetic_variants: {
454
+ display_name: string;
455
+ slug: string;
456
+ images: {
457
+ height: number;
458
+ width: number;
459
+ url: string;
460
+ }[];
461
+ primary_color_hex?: string | undefined;
462
+ manufacturer_sku?: string | undefined;
463
+ front_image?: {
464
+ height: number;
465
+ width: number;
466
+ url: string;
467
+ } | undefined;
468
+ back_image?: {
469
+ height: number;
470
+ width: number;
471
+ url: string;
472
+ } | undefined;
473
+ }[];
474
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
475
+ product_url?: string | undefined;
476
+ } & {
477
+ main_category: "smartlock";
478
+ physical_properties: {
479
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
480
+ has_physical_key: boolean;
481
+ has_camera: boolean;
482
+ };
483
+ software_features: {
484
+ can_remotely_unlock: boolean;
485
+ can_program_access_codes: boolean;
486
+ can_program_access_schedules: boolean;
487
+ can_program_access_codes_offline: boolean;
488
+ };
489
+ }) | ({
490
+ description: string;
491
+ display_name: string;
492
+ device_model_id: string;
493
+ manufacturer: {
494
+ display_name: string;
495
+ manufacturer_id: string;
496
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
497
+ is_connect_webview_supported: boolean;
498
+ requires_seam_support_to_add_account: boolean;
499
+ logo?: {
500
+ height: number;
501
+ width: number;
502
+ url: string;
503
+ } | undefined;
504
+ };
505
+ is_device_supported: boolean;
506
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
507
+ aesthetic_variants: {
508
+ display_name: string;
509
+ slug: string;
510
+ images: {
511
+ height: number;
512
+ width: number;
513
+ url: string;
514
+ }[];
515
+ primary_color_hex?: string | undefined;
516
+ manufacturer_sku?: string | undefined;
517
+ front_image?: {
518
+ height: number;
519
+ width: number;
520
+ url: string;
521
+ } | undefined;
522
+ back_image?: {
523
+ height: number;
524
+ width: number;
525
+ url: string;
526
+ } | undefined;
527
+ }[];
528
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
529
+ product_url?: string | undefined;
530
+ } & {
531
+ main_category: "sensor";
532
+ physical_properties: {
533
+ has_noise_sensor: boolean;
534
+ has_humidity_sensor: boolean;
535
+ has_temperature_sensor: boolean;
536
+ has_occupancy_detection: boolean;
537
+ };
538
+ }) | ({
539
+ description: string;
540
+ display_name: string;
541
+ device_model_id: string;
542
+ manufacturer: {
543
+ display_name: string;
544
+ manufacturer_id: string;
545
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
546
+ is_connect_webview_supported: boolean;
547
+ requires_seam_support_to_add_account: boolean;
548
+ logo?: {
549
+ height: number;
550
+ width: number;
551
+ url: string;
552
+ } | undefined;
553
+ };
554
+ is_device_supported: boolean;
555
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
556
+ aesthetic_variants: {
557
+ display_name: string;
558
+ slug: string;
559
+ images: {
560
+ height: number;
561
+ width: number;
562
+ url: string;
563
+ }[];
564
+ primary_color_hex?: string | undefined;
565
+ manufacturer_sku?: string | undefined;
566
+ front_image?: {
567
+ height: number;
568
+ width: number;
569
+ url: string;
570
+ } | undefined;
571
+ back_image?: {
572
+ height: number;
573
+ width: number;
574
+ url: string;
575
+ } | undefined;
576
+ }[];
577
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
578
+ product_url?: string | undefined;
579
+ } & {
580
+ main_category: "thermostat";
581
+ physical_properties: {
582
+ has_humidity_sensor: boolean;
583
+ has_temperature_sensor: boolean;
584
+ has_occupancy_detection: boolean;
585
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
586
+ is_heat_pump_compatible: boolean;
587
+ supports_demand_response: boolean;
588
+ supports_emergency_heating_mode: boolean;
589
+ };
590
+ software_features: {
591
+ can_program_climate_schedules: boolean;
592
+ };
593
+ }) | ({
594
+ description: string;
595
+ display_name: string;
596
+ device_model_id: string;
597
+ manufacturer: {
598
+ display_name: string;
599
+ manufacturer_id: string;
600
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
601
+ is_connect_webview_supported: boolean;
602
+ requires_seam_support_to_add_account: boolean;
603
+ logo?: {
604
+ height: number;
605
+ width: number;
606
+ url: string;
607
+ } | undefined;
608
+ };
609
+ is_device_supported: boolean;
610
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
611
+ aesthetic_variants: {
612
+ display_name: string;
613
+ slug: string;
614
+ images: {
615
+ height: number;
616
+ width: number;
617
+ url: string;
618
+ }[];
619
+ primary_color_hex?: string | undefined;
620
+ manufacturer_sku?: string | undefined;
621
+ front_image?: {
622
+ height: number;
623
+ width: number;
624
+ url: string;
625
+ } | undefined;
626
+ back_image?: {
627
+ height: number;
628
+ width: number;
629
+ url: string;
630
+ } | undefined;
631
+ }[];
632
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
633
+ product_url?: string | undefined;
634
+ } & {
635
+ main_category: "relay";
636
+ }) | ({
637
+ description: string;
638
+ display_name: string;
639
+ device_model_id: string;
640
+ manufacturer: {
641
+ display_name: string;
642
+ manufacturer_id: string;
643
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
644
+ is_connect_webview_supported: boolean;
645
+ requires_seam_support_to_add_account: boolean;
646
+ logo?: {
647
+ height: number;
648
+ width: number;
649
+ url: string;
650
+ } | undefined;
651
+ };
652
+ is_device_supported: boolean;
653
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
654
+ aesthetic_variants: {
655
+ display_name: string;
656
+ slug: string;
657
+ images: {
658
+ height: number;
659
+ width: number;
660
+ url: string;
661
+ }[];
662
+ primary_color_hex?: string | undefined;
663
+ manufacturer_sku?: string | undefined;
664
+ front_image?: {
665
+ height: number;
666
+ width: number;
667
+ url: string;
668
+ } | undefined;
669
+ back_image?: {
670
+ height: number;
671
+ width: number;
672
+ url: string;
673
+ } | undefined;
674
+ }[];
675
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
676
+ product_url?: string | undefined;
677
+ } & {
678
+ main_category: "intercom";
679
+ physical_properties: {
680
+ has_camera: boolean;
681
+ };
682
+ software_features: {
683
+ can_remotely_unlock: boolean;
684
+ can_program_access_codes: boolean;
685
+ };
686
+ }) | ({
687
+ description: string;
688
+ display_name: string;
689
+ device_model_id: string;
690
+ manufacturer: {
691
+ display_name: string;
692
+ manufacturer_id: string;
693
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
694
+ is_connect_webview_supported: boolean;
695
+ requires_seam_support_to_add_account: boolean;
696
+ logo?: {
697
+ height: number;
698
+ width: number;
699
+ url: string;
700
+ } | undefined;
701
+ };
702
+ is_device_supported: boolean;
703
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
704
+ aesthetic_variants: {
705
+ display_name: string;
706
+ slug: string;
707
+ images: {
708
+ height: number;
709
+ width: number;
710
+ url: string;
711
+ }[];
712
+ primary_color_hex?: string | undefined;
713
+ manufacturer_sku?: string | undefined;
714
+ front_image?: {
715
+ height: number;
716
+ width: number;
717
+ url: string;
718
+ } | undefined;
719
+ back_image?: {
720
+ height: number;
721
+ width: number;
722
+ url: string;
723
+ } | undefined;
724
+ }[];
725
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
726
+ product_url?: string | undefined;
727
+ } & {
728
+ main_category: "accessory";
729
+ });
730
+ }, {
731
+ device_model: ({
732
+ description: string;
733
+ display_name: string;
734
+ device_model_id: string;
735
+ manufacturer: {
736
+ display_name: string;
737
+ manufacturer_id: string;
738
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
739
+ is_connect_webview_supported: boolean;
740
+ requires_seam_support_to_add_account: boolean;
741
+ logo?: {
742
+ height: number;
743
+ width: number;
744
+ url: string;
745
+ } | undefined;
746
+ };
747
+ is_device_supported: boolean;
748
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
749
+ aesthetic_variants: {
750
+ display_name: string;
751
+ slug: string;
752
+ images: {
753
+ height: number;
754
+ width: number;
755
+ url: string;
756
+ }[];
757
+ primary_color_hex?: string | undefined;
758
+ manufacturer_sku?: string | undefined;
759
+ front_image?: {
760
+ height: number;
761
+ width: number;
762
+ url: string;
763
+ } | undefined;
764
+ back_image?: {
765
+ height: number;
766
+ width: number;
767
+ url: string;
768
+ } | undefined;
769
+ }[];
770
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
771
+ product_url?: string | undefined;
772
+ } & {
773
+ main_category: "smartlock";
774
+ physical_properties: {
775
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
776
+ has_physical_key: boolean;
777
+ has_camera: boolean;
778
+ };
779
+ software_features: {
780
+ can_remotely_unlock: boolean;
781
+ can_program_access_codes: boolean;
782
+ can_program_access_schedules: boolean;
783
+ can_program_access_codes_offline: boolean;
784
+ };
785
+ }) | ({
786
+ description: string;
787
+ display_name: string;
788
+ device_model_id: string;
789
+ manufacturer: {
790
+ display_name: string;
791
+ manufacturer_id: string;
792
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
793
+ is_connect_webview_supported: boolean;
794
+ requires_seam_support_to_add_account: boolean;
795
+ logo?: {
796
+ height: number;
797
+ width: number;
798
+ url: string;
799
+ } | undefined;
800
+ };
801
+ is_device_supported: boolean;
802
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
803
+ aesthetic_variants: {
804
+ display_name: string;
805
+ slug: string;
806
+ images: {
807
+ height: number;
808
+ width: number;
809
+ url: string;
810
+ }[];
811
+ primary_color_hex?: string | undefined;
812
+ manufacturer_sku?: string | undefined;
813
+ front_image?: {
814
+ height: number;
815
+ width: number;
816
+ url: string;
817
+ } | undefined;
818
+ back_image?: {
819
+ height: number;
820
+ width: number;
821
+ url: string;
822
+ } | undefined;
823
+ }[];
824
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
825
+ product_url?: string | undefined;
826
+ } & {
827
+ main_category: "sensor";
828
+ physical_properties: {
829
+ has_noise_sensor: boolean;
830
+ has_humidity_sensor: boolean;
831
+ has_temperature_sensor: boolean;
832
+ has_occupancy_detection: boolean;
833
+ };
834
+ }) | ({
835
+ description: string;
836
+ display_name: string;
837
+ device_model_id: string;
838
+ manufacturer: {
839
+ display_name: string;
840
+ manufacturer_id: string;
841
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
842
+ is_connect_webview_supported: boolean;
843
+ requires_seam_support_to_add_account: boolean;
844
+ logo?: {
845
+ height: number;
846
+ width: number;
847
+ url: string;
848
+ } | undefined;
849
+ };
850
+ is_device_supported: boolean;
851
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
852
+ aesthetic_variants: {
853
+ display_name: string;
854
+ slug: string;
855
+ images: {
856
+ height: number;
857
+ width: number;
858
+ url: string;
859
+ }[];
860
+ primary_color_hex?: string | undefined;
861
+ manufacturer_sku?: string | undefined;
862
+ front_image?: {
863
+ height: number;
864
+ width: number;
865
+ url: string;
866
+ } | undefined;
867
+ back_image?: {
868
+ height: number;
869
+ width: number;
870
+ url: string;
871
+ } | undefined;
872
+ }[];
873
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
874
+ product_url?: string | undefined;
875
+ } & {
876
+ main_category: "thermostat";
877
+ physical_properties: {
878
+ has_humidity_sensor: boolean;
879
+ has_temperature_sensor: boolean;
880
+ has_occupancy_detection: boolean;
881
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
882
+ is_heat_pump_compatible: boolean;
883
+ supports_demand_response: boolean;
884
+ supports_emergency_heating_mode: boolean;
885
+ };
886
+ software_features: {
887
+ can_program_climate_schedules: boolean;
888
+ };
889
+ }) | ({
890
+ description: string;
891
+ display_name: string;
892
+ device_model_id: string;
893
+ manufacturer: {
894
+ display_name: string;
895
+ manufacturer_id: string;
896
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
897
+ is_connect_webview_supported: boolean;
898
+ requires_seam_support_to_add_account: boolean;
899
+ logo?: {
900
+ height: number;
901
+ width: number;
902
+ url: string;
903
+ } | undefined;
904
+ };
905
+ is_device_supported: boolean;
906
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
907
+ aesthetic_variants: {
908
+ display_name: string;
909
+ slug: string;
910
+ images: {
911
+ height: number;
912
+ width: number;
913
+ url: string;
914
+ }[];
915
+ primary_color_hex?: string | undefined;
916
+ manufacturer_sku?: string | undefined;
917
+ front_image?: {
918
+ height: number;
919
+ width: number;
920
+ url: string;
921
+ } | undefined;
922
+ back_image?: {
923
+ height: number;
924
+ width: number;
925
+ url: string;
926
+ } | undefined;
927
+ }[];
928
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
929
+ product_url?: string | undefined;
930
+ } & {
931
+ main_category: "relay";
932
+ }) | ({
933
+ description: string;
934
+ display_name: string;
935
+ device_model_id: string;
936
+ manufacturer: {
937
+ display_name: string;
938
+ manufacturer_id: string;
939
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
940
+ is_connect_webview_supported: boolean;
941
+ requires_seam_support_to_add_account: boolean;
942
+ logo?: {
943
+ height: number;
944
+ width: number;
945
+ url: string;
946
+ } | undefined;
947
+ };
948
+ is_device_supported: boolean;
949
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
950
+ aesthetic_variants: {
951
+ display_name: string;
952
+ slug: string;
953
+ images: {
954
+ height: number;
955
+ width: number;
956
+ url: string;
957
+ }[];
958
+ primary_color_hex?: string | undefined;
959
+ manufacturer_sku?: string | undefined;
960
+ front_image?: {
961
+ height: number;
962
+ width: number;
963
+ url: string;
964
+ } | undefined;
965
+ back_image?: {
966
+ height: number;
967
+ width: number;
968
+ url: string;
969
+ } | undefined;
970
+ }[];
971
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
972
+ product_url?: string | undefined;
973
+ } & {
974
+ main_category: "intercom";
975
+ physical_properties: {
976
+ has_camera: boolean;
977
+ };
978
+ software_features: {
979
+ can_remotely_unlock: boolean;
980
+ can_program_access_codes: boolean;
981
+ };
982
+ }) | ({
983
+ description: string;
984
+ display_name: string;
985
+ device_model_id: string;
986
+ manufacturer: {
987
+ display_name: string;
988
+ manufacturer_id: string;
989
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
990
+ is_connect_webview_supported: boolean;
991
+ requires_seam_support_to_add_account: boolean;
992
+ logo?: {
993
+ height: number;
994
+ width: number;
995
+ url: string;
996
+ } | undefined;
997
+ };
998
+ is_device_supported: boolean;
999
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
1000
+ aesthetic_variants: {
1001
+ display_name: string;
1002
+ slug: string;
1003
+ images: {
1004
+ height: number;
1005
+ width: number;
1006
+ url: string;
1007
+ }[];
1008
+ primary_color_hex?: string | undefined;
1009
+ manufacturer_sku?: string | undefined;
1010
+ front_image?: {
1011
+ height: number;
1012
+ width: number;
1013
+ url: string;
1014
+ } | undefined;
1015
+ back_image?: {
1016
+ height: number;
1017
+ width: number;
1018
+ url: string;
1019
+ } | undefined;
1020
+ }[];
1021
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1022
+ product_url?: string | undefined;
1023
+ } & {
1024
+ main_category: "accessory";
1025
+ });
1026
+ }>;
1027
+ };
1028
+ readonly '/api/v1/device_models/list': {
1029
+ readonly auth: "publishable_key";
1030
+ readonly methods: readonly ["GET", "OPTIONS"];
1031
+ readonly queryParams: z.ZodObject<{
1032
+ main_category: z.ZodEnum<["smartlock", "sensor", "thermostat", "relay", "intercom", "accessory"]>;
1033
+ manufacturer_id: z.ZodOptional<z.ZodString>;
1034
+ manufacturer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
+ integration_status: z.ZodOptional<z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>>;
1036
+ text_search: z.ZodOptional<z.ZodString>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ main_category: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory";
1039
+ manufacturer_id?: string | undefined;
1040
+ manufacturer_ids?: string[] | undefined;
1041
+ integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
1042
+ text_search?: string | undefined;
1043
+ }, {
1044
+ main_category: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory";
1045
+ manufacturer_id?: string | undefined;
1046
+ manufacturer_ids?: string[] | undefined;
1047
+ integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
1048
+ text_search?: string | undefined;
1049
+ }>;
1050
+ readonly jsonResponse: z.ZodObject<{
1051
+ device_models: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1052
+ device_model_id: z.ZodString;
1053
+ manufacturer: z.ZodObject<{
1054
+ manufacturer_id: z.ZodString;
1055
+ display_name: z.ZodString;
1056
+ logo: z.ZodOptional<z.ZodObject<{
1057
+ url: z.ZodString;
1058
+ width: z.ZodNumber;
1059
+ height: z.ZodNumber;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ height: number;
1062
+ width: number;
1063
+ url: string;
1064
+ }, {
1065
+ height: number;
1066
+ width: number;
1067
+ url: string;
1068
+ }>>;
1069
+ integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
1070
+ is_connect_webview_supported: z.ZodBoolean;
1071
+ requires_seam_support_to_add_account: z.ZodBoolean;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ display_name: string;
1074
+ manufacturer_id: string;
1075
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1076
+ is_connect_webview_supported: boolean;
1077
+ requires_seam_support_to_add_account: boolean;
1078
+ logo?: {
1079
+ height: number;
1080
+ width: number;
1081
+ url: string;
1082
+ } | undefined;
1083
+ }, {
1084
+ display_name: string;
1085
+ manufacturer_id: string;
1086
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1087
+ is_connect_webview_supported: boolean;
1088
+ requires_seam_support_to_add_account: boolean;
1089
+ logo?: {
1090
+ height: number;
1091
+ width: number;
1092
+ url: string;
1093
+ } | undefined;
1094
+ }>;
1095
+ is_device_supported: z.ZodBoolean;
1096
+ display_name: z.ZodString;
1097
+ description: z.ZodString;
1098
+ product_url: z.ZodOptional<z.ZodString>;
1099
+ main_connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
1100
+ aesthetic_variants: z.ZodArray<z.ZodObject<{
1101
+ slug: z.ZodString;
1102
+ display_name: z.ZodString;
1103
+ primary_color_hex: z.ZodOptional<z.ZodString>;
1104
+ manufacturer_sku: z.ZodOptional<z.ZodString>;
1105
+ front_image: z.ZodOptional<z.ZodObject<{
1106
+ url: z.ZodString;
1107
+ width: z.ZodNumber;
1108
+ height: z.ZodNumber;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ height: number;
1111
+ width: number;
1112
+ url: string;
1113
+ }, {
1114
+ height: number;
1115
+ width: number;
1116
+ url: string;
1117
+ }>>;
1118
+ back_image: z.ZodOptional<z.ZodObject<{
1119
+ url: z.ZodString;
1120
+ width: z.ZodNumber;
1121
+ height: z.ZodNumber;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ height: number;
1124
+ width: number;
1125
+ url: string;
1126
+ }, {
1127
+ height: number;
1128
+ width: number;
1129
+ url: string;
1130
+ }>>;
1131
+ images: z.ZodArray<z.ZodObject<{
1132
+ url: z.ZodString;
1133
+ width: z.ZodNumber;
1134
+ height: z.ZodNumber;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ height: number;
1137
+ width: number;
1138
+ url: string;
1139
+ }, {
1140
+ height: number;
1141
+ width: number;
1142
+ url: string;
1143
+ }>, "many">;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ display_name: string;
1146
+ slug: string;
1147
+ images: {
1148
+ height: number;
1149
+ width: number;
1150
+ url: string;
1151
+ }[];
1152
+ primary_color_hex?: string | undefined;
1153
+ manufacturer_sku?: string | undefined;
1154
+ front_image?: {
1155
+ height: number;
1156
+ width: number;
1157
+ url: string;
1158
+ } | undefined;
1159
+ back_image?: {
1160
+ height: number;
1161
+ width: number;
1162
+ url: string;
1163
+ } | undefined;
1164
+ }, {
1165
+ display_name: string;
1166
+ slug: string;
1167
+ images: {
1168
+ height: number;
1169
+ width: number;
1170
+ url: string;
1171
+ }[];
1172
+ primary_color_hex?: string | undefined;
1173
+ manufacturer_sku?: string | undefined;
1174
+ front_image?: {
1175
+ height: number;
1176
+ width: number;
1177
+ url: string;
1178
+ } | undefined;
1179
+ back_image?: {
1180
+ height: number;
1181
+ width: number;
1182
+ url: string;
1183
+ } | undefined;
1184
+ }>, "many">;
1185
+ power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ description: string;
1188
+ display_name: string;
1189
+ device_model_id: string;
1190
+ manufacturer: {
1191
+ display_name: string;
1192
+ manufacturer_id: string;
1193
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1194
+ is_connect_webview_supported: boolean;
1195
+ requires_seam_support_to_add_account: boolean;
1196
+ logo?: {
1197
+ height: number;
1198
+ width: number;
1199
+ url: string;
1200
+ } | undefined;
1201
+ };
1202
+ is_device_supported: boolean;
1203
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
1204
+ aesthetic_variants: {
1205
+ display_name: string;
1206
+ slug: string;
1207
+ images: {
1208
+ height: number;
1209
+ width: number;
1210
+ url: string;
1211
+ }[];
1212
+ primary_color_hex?: string | undefined;
1213
+ manufacturer_sku?: string | undefined;
1214
+ front_image?: {
1215
+ height: number;
1216
+ width: number;
1217
+ url: string;
1218
+ } | undefined;
1219
+ back_image?: {
1220
+ height: number;
1221
+ width: number;
1222
+ url: string;
1223
+ } | undefined;
1224
+ }[];
1225
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1226
+ product_url?: string | undefined;
1227
+ }, {
1228
+ description: string;
1229
+ display_name: string;
1230
+ device_model_id: string;
1231
+ manufacturer: {
1232
+ display_name: string;
1233
+ manufacturer_id: string;
1234
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1235
+ is_connect_webview_supported: boolean;
1236
+ requires_seam_support_to_add_account: boolean;
1237
+ logo?: {
1238
+ height: number;
1239
+ width: number;
1240
+ url: string;
1241
+ } | undefined;
1242
+ };
1243
+ is_device_supported: boolean;
1244
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
1245
+ aesthetic_variants: {
1246
+ display_name: string;
1247
+ slug: string;
1248
+ images: {
1249
+ height: number;
1250
+ width: number;
1251
+ url: string;
1252
+ }[];
1253
+ primary_color_hex?: string | undefined;
1254
+ manufacturer_sku?: string | undefined;
1255
+ front_image?: {
1256
+ height: number;
1257
+ width: number;
1258
+ url: string;
1259
+ } | undefined;
1260
+ back_image?: {
1261
+ height: number;
1262
+ width: number;
1263
+ url: string;
1264
+ } | undefined;
1265
+ }[];
1266
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1267
+ product_url?: string | undefined;
1268
+ }>, z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<{
1269
+ main_category: z.ZodLiteral<"smartlock">;
1270
+ physical_properties: z.ZodObject<{
1271
+ lock_type: z.ZodEnum<["deadbolt", "lever", "mortise", "lockbox", "cylinder", "padlock", "locker", "unknown"]>;
1272
+ has_physical_key: z.ZodBoolean;
1273
+ has_camera: z.ZodBoolean;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1276
+ has_physical_key: boolean;
1277
+ has_camera: boolean;
1278
+ }, {
1279
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1280
+ has_physical_key: boolean;
1281
+ has_camera: boolean;
1282
+ }>;
1283
+ software_features: z.ZodObject<{
1284
+ can_remotely_unlock: z.ZodBoolean;
1285
+ can_program_access_codes: z.ZodBoolean;
1286
+ can_program_access_schedules: z.ZodBoolean;
1287
+ can_program_access_codes_offline: z.ZodBoolean;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ can_remotely_unlock: boolean;
1290
+ can_program_access_codes: boolean;
1291
+ can_program_access_schedules: boolean;
1292
+ can_program_access_codes_offline: boolean;
1293
+ }, {
1294
+ can_remotely_unlock: boolean;
1295
+ can_program_access_codes: boolean;
1296
+ can_program_access_schedules: boolean;
1297
+ can_program_access_codes_offline: boolean;
1298
+ }>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ main_category: "smartlock";
1301
+ physical_properties: {
1302
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1303
+ has_physical_key: boolean;
1304
+ has_camera: boolean;
1305
+ };
1306
+ software_features: {
1307
+ can_remotely_unlock: boolean;
1308
+ can_program_access_codes: boolean;
1309
+ can_program_access_schedules: boolean;
1310
+ can_program_access_codes_offline: boolean;
1311
+ };
1312
+ }, {
1313
+ main_category: "smartlock";
1314
+ physical_properties: {
1315
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1316
+ has_physical_key: boolean;
1317
+ has_camera: boolean;
1318
+ };
1319
+ software_features: {
1320
+ can_remotely_unlock: boolean;
1321
+ can_program_access_codes: boolean;
1322
+ can_program_access_schedules: boolean;
1323
+ can_program_access_codes_offline: boolean;
1324
+ };
1325
+ }>, z.ZodObject<{
1326
+ main_category: z.ZodLiteral<"sensor">;
1327
+ physical_properties: z.ZodObject<{
1328
+ has_noise_sensor: z.ZodBoolean;
1329
+ has_humidity_sensor: z.ZodBoolean;
1330
+ has_temperature_sensor: z.ZodBoolean;
1331
+ has_occupancy_detection: z.ZodBoolean;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ has_noise_sensor: boolean;
1334
+ has_humidity_sensor: boolean;
1335
+ has_temperature_sensor: boolean;
1336
+ has_occupancy_detection: boolean;
1337
+ }, {
1338
+ has_noise_sensor: boolean;
1339
+ has_humidity_sensor: boolean;
1340
+ has_temperature_sensor: boolean;
1341
+ has_occupancy_detection: boolean;
1342
+ }>;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ main_category: "sensor";
1345
+ physical_properties: {
1346
+ has_noise_sensor: boolean;
1347
+ has_humidity_sensor: boolean;
1348
+ has_temperature_sensor: boolean;
1349
+ has_occupancy_detection: boolean;
1350
+ };
1351
+ }, {
1352
+ main_category: "sensor";
1353
+ physical_properties: {
1354
+ has_noise_sensor: boolean;
1355
+ has_humidity_sensor: boolean;
1356
+ has_temperature_sensor: boolean;
1357
+ has_occupancy_detection: boolean;
1358
+ };
1359
+ }>, z.ZodObject<{
1360
+ main_category: z.ZodLiteral<"thermostat">;
1361
+ physical_properties: z.ZodObject<{
1362
+ available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
1363
+ is_heat_pump_compatible: z.ZodBoolean;
1364
+ has_occupancy_detection: z.ZodBoolean;
1365
+ supports_demand_response: z.ZodBoolean;
1366
+ has_humidity_sensor: z.ZodBoolean;
1367
+ has_temperature_sensor: z.ZodBoolean;
1368
+ supports_emergency_heating_mode: z.ZodBoolean;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ has_humidity_sensor: boolean;
1371
+ has_temperature_sensor: boolean;
1372
+ has_occupancy_detection: boolean;
1373
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1374
+ is_heat_pump_compatible: boolean;
1375
+ supports_demand_response: boolean;
1376
+ supports_emergency_heating_mode: boolean;
1377
+ }, {
1378
+ has_humidity_sensor: boolean;
1379
+ has_temperature_sensor: boolean;
1380
+ has_occupancy_detection: boolean;
1381
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1382
+ is_heat_pump_compatible: boolean;
1383
+ supports_demand_response: boolean;
1384
+ supports_emergency_heating_mode: boolean;
1385
+ }>;
1386
+ software_features: z.ZodObject<{
1387
+ can_program_climate_schedules: z.ZodBoolean;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ can_program_climate_schedules: boolean;
1390
+ }, {
1391
+ can_program_climate_schedules: boolean;
1392
+ }>;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ main_category: "thermostat";
1395
+ physical_properties: {
1396
+ has_humidity_sensor: boolean;
1397
+ has_temperature_sensor: boolean;
1398
+ has_occupancy_detection: boolean;
1399
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1400
+ is_heat_pump_compatible: boolean;
1401
+ supports_demand_response: boolean;
1402
+ supports_emergency_heating_mode: boolean;
1403
+ };
1404
+ software_features: {
1405
+ can_program_climate_schedules: boolean;
1406
+ };
1407
+ }, {
1408
+ main_category: "thermostat";
1409
+ physical_properties: {
1410
+ has_humidity_sensor: boolean;
1411
+ has_temperature_sensor: boolean;
1412
+ has_occupancy_detection: boolean;
1413
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1414
+ is_heat_pump_compatible: boolean;
1415
+ supports_demand_response: boolean;
1416
+ supports_emergency_heating_mode: boolean;
1417
+ };
1418
+ software_features: {
1419
+ can_program_climate_schedules: boolean;
1420
+ };
1421
+ }>, z.ZodObject<{
1422
+ main_category: z.ZodLiteral<"relay">;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ main_category: "relay";
1425
+ }, {
1426
+ main_category: "relay";
1427
+ }>, z.ZodObject<{
1428
+ main_category: z.ZodLiteral<"intercom">;
1429
+ physical_properties: z.ZodObject<{
1430
+ has_camera: z.ZodBoolean;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ has_camera: boolean;
1433
+ }, {
1434
+ has_camera: boolean;
1435
+ }>;
1436
+ software_features: z.ZodObject<{
1437
+ can_remotely_unlock: z.ZodBoolean;
1438
+ can_program_access_codes: z.ZodBoolean;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ can_remotely_unlock: boolean;
1441
+ can_program_access_codes: boolean;
1442
+ }, {
1443
+ can_remotely_unlock: boolean;
1444
+ can_program_access_codes: boolean;
1445
+ }>;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ main_category: "intercom";
1448
+ physical_properties: {
1449
+ has_camera: boolean;
1450
+ };
1451
+ software_features: {
1452
+ can_remotely_unlock: boolean;
1453
+ can_program_access_codes: boolean;
1454
+ };
1455
+ }, {
1456
+ main_category: "intercom";
1457
+ physical_properties: {
1458
+ has_camera: boolean;
1459
+ };
1460
+ software_features: {
1461
+ can_remotely_unlock: boolean;
1462
+ can_program_access_codes: boolean;
1463
+ };
1464
+ }>, z.ZodObject<{
1465
+ main_category: z.ZodLiteral<"accessory">;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ main_category: "accessory";
1468
+ }, {
1469
+ main_category: "accessory";
1470
+ }>]>>, "many">;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ device_models: ({
1473
+ description: string;
1474
+ display_name: string;
1475
+ device_model_id: string;
1476
+ manufacturer: {
1477
+ display_name: string;
1478
+ manufacturer_id: string;
1479
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1480
+ is_connect_webview_supported: boolean;
1481
+ requires_seam_support_to_add_account: boolean;
1482
+ logo?: {
1483
+ height: number;
1484
+ width: number;
1485
+ url: string;
1486
+ } | undefined;
1487
+ };
1488
+ is_device_supported: boolean;
1489
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
1490
+ aesthetic_variants: {
1491
+ display_name: string;
1492
+ slug: string;
1493
+ images: {
1494
+ height: number;
1495
+ width: number;
1496
+ url: string;
1497
+ }[];
1498
+ primary_color_hex?: string | undefined;
1499
+ manufacturer_sku?: string | undefined;
1500
+ front_image?: {
1501
+ height: number;
1502
+ width: number;
1503
+ url: string;
1504
+ } | undefined;
1505
+ back_image?: {
1506
+ height: number;
1507
+ width: number;
1508
+ url: string;
1509
+ } | undefined;
1510
+ }[];
1511
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1512
+ product_url?: string | undefined;
1513
+ } & ({
1514
+ main_category: "smartlock";
1515
+ physical_properties: {
1516
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1517
+ has_physical_key: boolean;
1518
+ has_camera: boolean;
1519
+ };
1520
+ software_features: {
1521
+ can_remotely_unlock: boolean;
1522
+ can_program_access_codes: boolean;
1523
+ can_program_access_schedules: boolean;
1524
+ can_program_access_codes_offline: boolean;
1525
+ };
1526
+ } | {
1527
+ main_category: "sensor";
1528
+ physical_properties: {
1529
+ has_noise_sensor: boolean;
1530
+ has_humidity_sensor: boolean;
1531
+ has_temperature_sensor: boolean;
1532
+ has_occupancy_detection: boolean;
1533
+ };
1534
+ } | {
1535
+ main_category: "thermostat";
1536
+ physical_properties: {
1537
+ has_humidity_sensor: boolean;
1538
+ has_temperature_sensor: boolean;
1539
+ has_occupancy_detection: boolean;
1540
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1541
+ is_heat_pump_compatible: boolean;
1542
+ supports_demand_response: boolean;
1543
+ supports_emergency_heating_mode: boolean;
1544
+ };
1545
+ software_features: {
1546
+ can_program_climate_schedules: boolean;
1547
+ };
1548
+ } | {
1549
+ main_category: "relay";
1550
+ } | {
1551
+ main_category: "intercom";
1552
+ physical_properties: {
1553
+ has_camera: boolean;
1554
+ };
1555
+ software_features: {
1556
+ can_remotely_unlock: boolean;
1557
+ can_program_access_codes: boolean;
1558
+ };
1559
+ } | {
1560
+ main_category: "accessory";
1561
+ }))[];
1562
+ }, {
1563
+ device_models: ({
1564
+ description: string;
1565
+ display_name: string;
1566
+ device_model_id: string;
1567
+ manufacturer: {
1568
+ display_name: string;
1569
+ manufacturer_id: string;
1570
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1571
+ is_connect_webview_supported: boolean;
1572
+ requires_seam_support_to_add_account: boolean;
1573
+ logo?: {
1574
+ height: number;
1575
+ width: number;
1576
+ url: string;
1577
+ } | undefined;
1578
+ };
1579
+ is_device_supported: boolean;
1580
+ main_connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
1581
+ aesthetic_variants: {
1582
+ display_name: string;
1583
+ slug: string;
1584
+ images: {
1585
+ height: number;
1586
+ width: number;
1587
+ url: string;
1588
+ }[];
1589
+ primary_color_hex?: string | undefined;
1590
+ manufacturer_sku?: string | undefined;
1591
+ front_image?: {
1592
+ height: number;
1593
+ width: number;
1594
+ url: string;
1595
+ } | undefined;
1596
+ back_image?: {
1597
+ height: number;
1598
+ width: number;
1599
+ url: string;
1600
+ } | undefined;
1601
+ }[];
1602
+ power_sources: ("battery" | "hardwired" | "mechanical_harvesting" | "wireless" | "ethernet")[];
1603
+ product_url?: string | undefined;
1604
+ } & ({
1605
+ main_category: "smartlock";
1606
+ physical_properties: {
1607
+ lock_type: "unknown" | "deadbolt" | "lever" | "mortise" | "lockbox" | "cylinder" | "padlock" | "locker";
1608
+ has_physical_key: boolean;
1609
+ has_camera: boolean;
1610
+ };
1611
+ software_features: {
1612
+ can_remotely_unlock: boolean;
1613
+ can_program_access_codes: boolean;
1614
+ can_program_access_schedules: boolean;
1615
+ can_program_access_codes_offline: boolean;
1616
+ };
1617
+ } | {
1618
+ main_category: "sensor";
1619
+ physical_properties: {
1620
+ has_noise_sensor: boolean;
1621
+ has_humidity_sensor: boolean;
1622
+ has_temperature_sensor: boolean;
1623
+ has_occupancy_detection: boolean;
1624
+ };
1625
+ } | {
1626
+ main_category: "thermostat";
1627
+ physical_properties: {
1628
+ has_humidity_sensor: boolean;
1629
+ has_temperature_sensor: boolean;
1630
+ has_occupancy_detection: boolean;
1631
+ available_modes: ("heat" | "cool" | "fan" | "eco")[];
1632
+ is_heat_pump_compatible: boolean;
1633
+ supports_demand_response: boolean;
1634
+ supports_emergency_heating_mode: boolean;
1635
+ };
1636
+ software_features: {
1637
+ can_program_climate_schedules: boolean;
1638
+ };
1639
+ } | {
1640
+ main_category: "relay";
1641
+ } | {
1642
+ main_category: "intercom";
1643
+ physical_properties: {
1644
+ has_camera: boolean;
1645
+ };
1646
+ software_features: {
1647
+ can_remotely_unlock: boolean;
1648
+ can_program_access_codes: boolean;
1649
+ };
1650
+ } | {
1651
+ main_category: "accessory";
1652
+ }))[];
1653
+ }>;
1654
+ };
1655
+ readonly '/api/v1/manufacturers/get': {
1656
+ readonly auth: "publishable_key";
1657
+ readonly methods: readonly ["GET", "OPTIONS"];
1658
+ readonly queryParams: z.ZodObject<{
1659
+ manufacturer_id: z.ZodString;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ manufacturer_id: string;
1662
+ }, {
1663
+ manufacturer_id: string;
1664
+ }>;
1665
+ readonly jsonResponse: z.ZodObject<{
1666
+ manufacturer: z.ZodObject<{
1667
+ manufacturer_id: z.ZodString;
1668
+ display_name: z.ZodString;
1669
+ logo: z.ZodOptional<z.ZodObject<{
1670
+ url: z.ZodString;
1671
+ width: z.ZodNumber;
1672
+ height: z.ZodNumber;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ height: number;
1675
+ width: number;
1676
+ url: string;
1677
+ }, {
1678
+ height: number;
1679
+ width: number;
1680
+ url: string;
1681
+ }>>;
1682
+ integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
1683
+ is_connect_webview_supported: z.ZodBoolean;
1684
+ requires_seam_support_to_add_account: z.ZodBoolean;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ display_name: string;
1687
+ manufacturer_id: string;
1688
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1689
+ is_connect_webview_supported: boolean;
1690
+ requires_seam_support_to_add_account: boolean;
1691
+ logo?: {
1692
+ height: number;
1693
+ width: number;
1694
+ url: string;
1695
+ } | undefined;
1696
+ }, {
1697
+ display_name: string;
1698
+ manufacturer_id: string;
1699
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1700
+ is_connect_webview_supported: boolean;
1701
+ requires_seam_support_to_add_account: boolean;
1702
+ logo?: {
1703
+ height: number;
1704
+ width: number;
1705
+ url: string;
1706
+ } | undefined;
1707
+ }>;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ manufacturer: {
1710
+ display_name: string;
1711
+ manufacturer_id: string;
1712
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1713
+ is_connect_webview_supported: boolean;
1714
+ requires_seam_support_to_add_account: boolean;
1715
+ logo?: {
1716
+ height: number;
1717
+ width: number;
1718
+ url: string;
1719
+ } | undefined;
1720
+ };
1721
+ }, {
1722
+ manufacturer: {
1723
+ display_name: string;
1724
+ manufacturer_id: string;
1725
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1726
+ is_connect_webview_supported: boolean;
1727
+ requires_seam_support_to_add_account: boolean;
1728
+ logo?: {
1729
+ height: number;
1730
+ width: number;
1731
+ url: string;
1732
+ } | undefined;
1733
+ };
1734
+ }>;
1735
+ };
1736
+ readonly '/api/v1/manufacturers/list': {
1737
+ readonly auth: "publishable_key";
1738
+ readonly methods: readonly ["GET", "OPTIONS"];
1739
+ readonly queryParams: z.ZodObject<{
1740
+ integration_status: z.ZodOptional<z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
1743
+ }, {
1744
+ integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
1745
+ }>;
1746
+ readonly jsonResponse: z.ZodObject<{
1747
+ manufacturers: z.ZodArray<z.ZodObject<{
1748
+ manufacturer_id: z.ZodString;
1749
+ display_name: z.ZodString;
1750
+ logo: z.ZodOptional<z.ZodObject<{
1751
+ url: z.ZodString;
1752
+ width: z.ZodNumber;
1753
+ height: z.ZodNumber;
1754
+ }, "strip", z.ZodTypeAny, {
1755
+ height: number;
1756
+ width: number;
1757
+ url: string;
1758
+ }, {
1759
+ height: number;
1760
+ width: number;
1761
+ url: string;
1762
+ }>>;
1763
+ integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
1764
+ is_connect_webview_supported: z.ZodBoolean;
1765
+ requires_seam_support_to_add_account: z.ZodBoolean;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ display_name: string;
1768
+ manufacturer_id: string;
1769
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1770
+ is_connect_webview_supported: boolean;
1771
+ requires_seam_support_to_add_account: boolean;
1772
+ logo?: {
1773
+ height: number;
1774
+ width: number;
1775
+ url: string;
1776
+ } | undefined;
1777
+ }, {
1778
+ display_name: string;
1779
+ manufacturer_id: string;
1780
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1781
+ is_connect_webview_supported: boolean;
1782
+ requires_seam_support_to_add_account: boolean;
1783
+ logo?: {
1784
+ height: number;
1785
+ width: number;
1786
+ url: string;
1787
+ } | undefined;
1788
+ }>, "many">;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ manufacturers: {
1791
+ display_name: string;
1792
+ manufacturer_id: string;
1793
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1794
+ is_connect_webview_supported: boolean;
1795
+ requires_seam_support_to_add_account: boolean;
1796
+ logo?: {
1797
+ height: number;
1798
+ width: number;
1799
+ url: string;
1800
+ } | undefined;
1801
+ }[];
1802
+ }, {
1803
+ manufacturers: {
1804
+ display_name: string;
1805
+ manufacturer_id: string;
1806
+ integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
1807
+ is_connect_webview_supported: boolean;
1808
+ requires_seam_support_to_add_account: boolean;
1809
+ logo?: {
1810
+ height: number;
1811
+ width: number;
1812
+ url: string;
1813
+ } | undefined;
1814
+ }[];
1815
+ }>;
1816
+ };
1817
+ };