@seamapi/types 1.196.1 → 1.197.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.
Files changed (55) hide show
  1. package/dist/connect.cjs +1718 -1501
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1859 -1101
  4. package/dist/devicedb.d.cts +40 -40
  5. package/lib/seam/connect/model-types.d.ts +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +113 -12
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +17 -2
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +87 -12
  10. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +4 -4
  12. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  13. package/lib/seam/connect/models/acs/acs-entrance.d.ts +10 -10
  14. package/lib/seam/connect/models/acs/acs-system.d.ts +29 -29
  15. package/lib/seam/connect/models/acs/acs-user.d.ts +6 -6
  16. package/lib/seam/connect/models/acs/metadata/latch.d.ts +4 -4
  17. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +6 -6
  18. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +69 -8
  19. package/lib/seam/connect/models/connected-accounts/connected-account.js +15 -2
  20. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  21. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +15 -15
  22. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +30 -30
  23. package/lib/seam/connect/models/devices/device-metadata.d.ts +8 -8
  24. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
  25. package/lib/seam/connect/models/devices/device.d.ts +116 -65
  26. package/lib/seam/connect/models/devices/device.js +16 -8
  27. package/lib/seam/connect/models/devices/device.js.map +1 -1
  28. package/lib/seam/connect/models/devices/phone.d.ts +44 -19
  29. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +53 -28
  30. package/lib/seam/connect/models/events/access-codes.d.ts +306 -306
  31. package/lib/seam/connect/models/events/acs/common.d.ts +4 -4
  32. package/lib/seam/connect/models/events/acs/credentials.d.ts +12 -12
  33. package/lib/seam/connect/models/events/acs/index.d.ts +18 -18
  34. package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
  35. package/lib/seam/connect/models/events/acs/users.d.ts +12 -12
  36. package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -42
  37. package/lib/seam/connect/models/events/devices.d.ts +316 -316
  38. package/lib/seam/connect/models/events/phones.d.ts +6 -6
  39. package/lib/seam/connect/models/events/seam-event.d.ts +353 -353
  40. package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +3 -3
  41. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  42. package/lib/seam/connect/openapi.d.ts +263 -26
  43. package/lib/seam/connect/openapi.js +209 -23
  44. package/lib/seam/connect/openapi.js.map +1 -1
  45. package/lib/seam/connect/route-types.d.ts +247 -36
  46. package/lib/seam/devicedb/models/device-model.d.ts +8 -8
  47. package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
  48. package/lib/seam/devicedb/route-specs.d.ts +30 -30
  49. package/package.json +1 -1
  50. package/src/lib/seam/connect/model-types.ts +6 -0
  51. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +26 -2
  52. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +23 -2
  53. package/src/lib/seam/connect/models/devices/device.ts +24 -12
  54. package/src/lib/seam/connect/openapi.ts +209 -23
  55. package/src/lib/seam/connect/route-types.ts +377 -92
@@ -26,6 +26,31 @@ export declare const device_capability_flags: z.ZodObject<{
26
26
  }>;
27
27
  export declare const battery_status: z.ZodEnum<["critical", "low", "good", "full"]>;
28
28
  export type BatteryStatus = z.infer<typeof battery_status>;
29
+ export declare const device_error: z.ZodObject<{
30
+ message: z.ZodString;
31
+ is_device_error: z.ZodLiteral<true>;
32
+ error_code: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ message: string;
35
+ error_code: string;
36
+ is_device_error: true;
37
+ }, {
38
+ message: string;
39
+ error_code: string;
40
+ is_device_error: true;
41
+ }>;
42
+ export type DeviceError = z.infer<typeof device_error>;
43
+ declare const device_warning: z.ZodObject<{
44
+ message: z.ZodString;
45
+ warning_code: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ message: string;
48
+ warning_code: string;
49
+ }, {
50
+ message: string;
51
+ warning_code: string;
52
+ }>;
53
+ export type DeviceWarning = z.infer<typeof device_warning>;
29
54
  export declare const common_device_properties: z.ZodObject<{
30
55
  online: z.ZodBoolean;
31
56
  name: z.ZodString;
@@ -189,21 +214,36 @@ export declare const device: z.ZodObject<{
189
214
  location_name?: string | undefined;
190
215
  timezone?: string | undefined;
191
216
  }>>;
192
- device_id: z.ZodString;
217
+ connected_account_id: z.ZodString;
193
218
  created_at: z.ZodString;
194
- errors: z.ZodArray<z.ZodObject<{
219
+ errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
220
+ message: z.ZodString;
221
+ is_device_error: z.ZodLiteral<true>;
195
222
  error_code: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ message: string;
225
+ error_code: string;
226
+ is_device_error: true;
227
+ }, {
228
+ message: string;
229
+ error_code: string;
230
+ is_device_error: true;
231
+ }>, z.ZodObject<{
196
232
  message: z.ZodString;
233
+ is_connected_account_error: z.ZodLiteral<true>;
234
+ error_code: z.ZodString;
197
235
  }, "strip", z.ZodTypeAny, {
198
236
  message: string;
237
+ is_connected_account_error: true;
199
238
  error_code: string;
200
239
  }, {
201
240
  message: string;
241
+ is_connected_account_error: true;
202
242
  error_code: string;
203
- }>, "many">;
243
+ }>]>, "many">;
204
244
  warnings: z.ZodArray<z.ZodObject<{
205
- warning_code: z.ZodString;
206
245
  message: z.ZodString;
246
+ warning_code: z.ZodString;
207
247
  }, "strip", z.ZodTypeAny, {
208
248
  message: string;
209
249
  warning_code: string;
@@ -211,11 +251,9 @@ export declare const device: z.ZodObject<{
211
251
  message: string;
212
252
  warning_code: string;
213
253
  }>, "many">;
214
- is_managed: z.ZodLiteral<true>;
215
- workspace_id: z.ZodString;
216
- display_name: z.ZodString;
217
- connected_account_id: z.ZodString;
218
254
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
255
+ device_id: z.ZodString;
256
+ display_name: z.ZodString;
219
257
  device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
220
258
  nickname: z.ZodOptional<z.ZodString>;
221
259
  capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
@@ -566,11 +604,11 @@ export declare const device: z.ZodObject<{
566
604
  device_name: z.ZodString;
567
605
  door_name: z.ZodString;
568
606
  }, "strip", z.ZodTypeAny, {
569
- door_name: string;
570
607
  device_name: string;
571
- }, {
572
608
  door_name: string;
609
+ }, {
573
610
  device_name: string;
611
+ door_name: string;
574
612
  }>>;
575
613
  brivo_metadata: z.ZodOptional<z.ZodObject<{
576
614
  device_name: z.ZodString;
@@ -929,9 +967,9 @@ export declare const device: z.ZodObject<{
929
967
  dormakaba_oracode_user_level_id: string;
930
968
  }>, "many">>;
931
969
  }, "strip", z.ZodTypeAny, {
932
- door_name: string;
933
970
  site_id: number;
934
971
  site_name: string;
972
+ door_name: string;
935
973
  door_id: number;
936
974
  door_is_wireless: boolean;
937
975
  device_id?: number | undefined;
@@ -949,9 +987,9 @@ export declare const device: z.ZodObject<{
949
987
  dormakaba_oracode_user_level_id: string;
950
988
  }[] | undefined;
951
989
  }, {
952
- door_name: string;
953
990
  site_id: number;
954
991
  site_name: string;
992
+ door_name: string;
955
993
  door_id: number;
956
994
  door_is_wireless: boolean;
957
995
  device_id?: number | undefined;
@@ -1079,8 +1117,8 @@ export declare const device: z.ZodObject<{
1079
1117
  model?: string | undefined;
1080
1118
  } | undefined;
1081
1119
  genie_metadata?: {
1082
- door_name: string;
1083
1120
  device_name: string;
1121
+ door_name: string;
1084
1122
  } | undefined;
1085
1123
  brivo_metadata?: {
1086
1124
  device_name: string;
@@ -1173,9 +1211,9 @@ export declare const device: z.ZodObject<{
1173
1211
  device_label: string;
1174
1212
  } | undefined;
1175
1213
  dormakaba_oracode_metadata?: {
1176
- door_name: string;
1177
1214
  site_id: number;
1178
1215
  site_name: string;
1216
+ door_name: string;
1179
1217
  door_id: number;
1180
1218
  door_is_wireless: boolean;
1181
1219
  device_id?: number | undefined;
@@ -1269,8 +1307,8 @@ export declare const device: z.ZodObject<{
1269
1307
  model?: string | undefined;
1270
1308
  } | undefined;
1271
1309
  genie_metadata?: {
1272
- door_name: string;
1273
1310
  device_name: string;
1311
+ door_name: string;
1274
1312
  } | undefined;
1275
1313
  brivo_metadata?: {
1276
1314
  device_name: string;
@@ -1363,9 +1401,9 @@ export declare const device: z.ZodObject<{
1363
1401
  device_label: string;
1364
1402
  } | undefined;
1365
1403
  dormakaba_oracode_metadata?: {
1366
- door_name: string;
1367
1404
  site_id: number;
1368
1405
  site_name: string;
1406
+ door_name: string;
1369
1407
  door_id: number;
1370
1408
  door_is_wireless: boolean;
1371
1409
  device_id?: number | undefined;
@@ -1543,11 +1581,11 @@ export declare const device: z.ZodObject<{
1543
1581
  is_climate_setting_schedule_active: z.ZodOptional<z.ZodBoolean>;
1544
1582
  active_climate_setting_schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1545
1583
  name: z.ZodOptional<z.ZodString>;
1546
- device_id: z.ZodString;
1547
1584
  created_at: z.ZodString;
1548
1585
  errors: z.ZodAny;
1549
1586
  climate_setting_schedule_id: z.ZodString;
1550
1587
  schedule_type: z.ZodLiteral<"time_bound">;
1588
+ device_id: z.ZodString;
1551
1589
  schedule_starts_at: z.ZodString;
1552
1590
  schedule_ends_at: z.ZodString;
1553
1591
  automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
@@ -1559,10 +1597,10 @@ export declare const device: z.ZodObject<{
1559
1597
  heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1560
1598
  manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
1561
1599
  }, "strip", z.ZodTypeAny, {
1562
- device_id: string;
1563
1600
  created_at: string;
1564
1601
  climate_setting_schedule_id: string;
1565
1602
  schedule_type: "time_bound";
1603
+ device_id: string;
1566
1604
  schedule_starts_at: string;
1567
1605
  schedule_ends_at: string;
1568
1606
  name?: string | undefined;
@@ -1576,10 +1614,10 @@ export declare const device: z.ZodObject<{
1576
1614
  heating_set_point_fahrenheit?: number | undefined;
1577
1615
  manual_override_allowed?: boolean | undefined;
1578
1616
  }, {
1579
- device_id: string;
1580
1617
  created_at: string;
1581
1618
  climate_setting_schedule_id: string;
1582
1619
  schedule_type: "time_bound";
1620
+ device_id: string;
1583
1621
  schedule_starts_at: string;
1584
1622
  schedule_ends_at: string;
1585
1623
  name?: string | undefined;
@@ -1639,10 +1677,10 @@ export declare const device: z.ZodObject<{
1639
1677
  } | undefined;
1640
1678
  is_climate_setting_schedule_active?: boolean | undefined;
1641
1679
  active_climate_setting_schedule?: {
1642
- device_id: string;
1643
1680
  created_at: string;
1644
1681
  climate_setting_schedule_id: string;
1645
1682
  schedule_type: "time_bound";
1683
+ device_id: string;
1646
1684
  schedule_starts_at: string;
1647
1685
  schedule_ends_at: string;
1648
1686
  name?: string | undefined;
@@ -1702,10 +1740,10 @@ export declare const device: z.ZodObject<{
1702
1740
  } | undefined;
1703
1741
  is_climate_setting_schedule_active?: boolean | undefined;
1704
1742
  active_climate_setting_schedule?: {
1705
- device_id: string;
1706
1743
  created_at: string;
1707
1744
  climate_setting_schedule_id: string;
1708
1745
  schedule_type: "time_bound";
1746
+ device_id: string;
1709
1747
  schedule_starts_at: string;
1710
1748
  schedule_ends_at: string;
1711
1749
  name?: string | undefined;
@@ -1803,11 +1841,11 @@ export declare const device: z.ZodObject<{
1803
1841
  is_climate_setting_schedule_active: z.ZodOptional<z.ZodBoolean>;
1804
1842
  active_climate_setting_schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1805
1843
  name: z.ZodOptional<z.ZodString>;
1806
- device_id: z.ZodString;
1807
1844
  created_at: z.ZodString;
1808
1845
  errors: z.ZodAny;
1809
1846
  climate_setting_schedule_id: z.ZodString;
1810
1847
  schedule_type: z.ZodLiteral<"time_bound">;
1848
+ device_id: z.ZodString;
1811
1849
  schedule_starts_at: z.ZodString;
1812
1850
  schedule_ends_at: z.ZodString;
1813
1851
  automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
@@ -1819,10 +1857,10 @@ export declare const device: z.ZodObject<{
1819
1857
  heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1820
1858
  manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
1821
1859
  }, "strip", z.ZodTypeAny, {
1822
- device_id: string;
1823
1860
  created_at: string;
1824
1861
  climate_setting_schedule_id: string;
1825
1862
  schedule_type: "time_bound";
1863
+ device_id: string;
1826
1864
  schedule_starts_at: string;
1827
1865
  schedule_ends_at: string;
1828
1866
  name?: string | undefined;
@@ -1836,10 +1874,10 @@ export declare const device: z.ZodObject<{
1836
1874
  heating_set_point_fahrenheit?: number | undefined;
1837
1875
  manual_override_allowed?: boolean | undefined;
1838
1876
  }, {
1839
- device_id: string;
1840
1877
  created_at: string;
1841
1878
  climate_setting_schedule_id: string;
1842
1879
  schedule_type: "time_bound";
1880
+ device_id: string;
1843
1881
  schedule_starts_at: string;
1844
1882
  schedule_ends_at: string;
1845
1883
  name?: string | undefined;
@@ -1893,10 +1931,10 @@ export declare const device: z.ZodObject<{
1893
1931
  } | undefined;
1894
1932
  is_climate_setting_schedule_active?: boolean | undefined;
1895
1933
  active_climate_setting_schedule?: {
1896
- device_id: string;
1897
1934
  created_at: string;
1898
1935
  climate_setting_schedule_id: string;
1899
1936
  schedule_type: "time_bound";
1937
+ device_id: string;
1900
1938
  schedule_starts_at: string;
1901
1939
  schedule_ends_at: string;
1902
1940
  name?: string | undefined;
@@ -1950,10 +1988,10 @@ export declare const device: z.ZodObject<{
1950
1988
  } | undefined;
1951
1989
  is_climate_setting_schedule_active?: boolean | undefined;
1952
1990
  active_climate_setting_schedule?: {
1953
- device_id: string;
1954
1991
  created_at: string;
1955
1992
  climate_setting_schedule_id: string;
1956
1993
  schedule_type: "time_bound";
1994
+ device_id: string;
1957
1995
  schedule_starts_at: string;
1958
1996
  schedule_ends_at: string;
1959
1997
  name?: string | undefined;
@@ -2044,11 +2082,11 @@ export declare const device: z.ZodObject<{
2044
2082
  is_climate_setting_schedule_active: z.ZodOptional<z.ZodBoolean>;
2045
2083
  active_climate_setting_schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2046
2084
  name: z.ZodOptional<z.ZodString>;
2047
- device_id: z.ZodString;
2048
2085
  created_at: z.ZodString;
2049
2086
  errors: z.ZodAny;
2050
2087
  climate_setting_schedule_id: z.ZodString;
2051
2088
  schedule_type: z.ZodLiteral<"time_bound">;
2089
+ device_id: z.ZodString;
2052
2090
  schedule_starts_at: z.ZodString;
2053
2091
  schedule_ends_at: z.ZodString;
2054
2092
  automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
@@ -2060,10 +2098,10 @@ export declare const device: z.ZodObject<{
2060
2098
  heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2061
2099
  manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
2062
2100
  }, "strip", z.ZodTypeAny, {
2063
- device_id: string;
2064
2101
  created_at: string;
2065
2102
  climate_setting_schedule_id: string;
2066
2103
  schedule_type: "time_bound";
2104
+ device_id: string;
2067
2105
  schedule_starts_at: string;
2068
2106
  schedule_ends_at: string;
2069
2107
  name?: string | undefined;
@@ -2077,10 +2115,10 @@ export declare const device: z.ZodObject<{
2077
2115
  heating_set_point_fahrenheit?: number | undefined;
2078
2116
  manual_override_allowed?: boolean | undefined;
2079
2117
  }, {
2080
- device_id: string;
2081
2118
  created_at: string;
2082
2119
  climate_setting_schedule_id: string;
2083
2120
  schedule_type: "time_bound";
2121
+ device_id: string;
2084
2122
  schedule_starts_at: string;
2085
2123
  schedule_ends_at: string;
2086
2124
  name?: string | undefined;
@@ -2134,10 +2172,10 @@ export declare const device: z.ZodObject<{
2134
2172
  } | undefined;
2135
2173
  is_climate_setting_schedule_active?: boolean | undefined;
2136
2174
  active_climate_setting_schedule?: {
2137
- device_id: string;
2138
2175
  created_at: string;
2139
2176
  climate_setting_schedule_id: string;
2140
2177
  schedule_type: "time_bound";
2178
+ device_id: string;
2141
2179
  schedule_starts_at: string;
2142
2180
  schedule_ends_at: string;
2143
2181
  name?: string | undefined;
@@ -2191,10 +2229,10 @@ export declare const device: z.ZodObject<{
2191
2229
  } | undefined;
2192
2230
  is_climate_setting_schedule_active?: boolean | undefined;
2193
2231
  active_climate_setting_schedule?: {
2194
- device_id: string;
2195
2232
  created_at: string;
2196
2233
  climate_setting_schedule_id: string;
2197
2234
  schedule_type: "time_bound";
2235
+ device_id: string;
2198
2236
  schedule_starts_at: string;
2199
2237
  schedule_ends_at: string;
2200
2238
  name?: string | undefined;
@@ -2214,6 +2252,8 @@ export declare const device: z.ZodObject<{
2214
2252
  max_cooling_set_point_fahrenheit?: number | undefined;
2215
2253
  is_cooling_available?: true | undefined;
2216
2254
  }>]>>>;
2255
+ workspace_id: z.ZodString;
2256
+ is_managed: z.ZodLiteral<true>;
2217
2257
  can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
2218
2258
  can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
2219
2259
  can_program_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
@@ -2226,21 +2266,24 @@ export declare const device: z.ZodObject<{
2226
2266
  location_name?: string | undefined;
2227
2267
  timezone?: string | undefined;
2228
2268
  } | null;
2229
- device_id: string;
2269
+ connected_account_id: string;
2230
2270
  created_at: string;
2231
- errors: {
2271
+ errors: ({
2232
2272
  message: string;
2273
+ is_connected_account_error: true;
2233
2274
  error_code: string;
2234
- }[];
2275
+ } | {
2276
+ message: string;
2277
+ error_code: string;
2278
+ is_device_error: true;
2279
+ })[];
2235
2280
  warnings: {
2236
2281
  message: string;
2237
2282
  warning_code: string;
2238
2283
  }[];
2239
- is_managed: true;
2240
- workspace_id: string;
2241
- display_name: string;
2242
- connected_account_id: string;
2243
2284
  custom_metadata: Record<string, string | boolean>;
2285
+ device_id: string;
2286
+ display_name: string;
2244
2287
  device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "ios_phone" | "android_phone";
2245
2288
  capabilities_supported: ("phone" | "access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
2246
2289
  properties: ({
@@ -2345,8 +2388,8 @@ export declare const device: z.ZodObject<{
2345
2388
  model?: string | undefined;
2346
2389
  } | undefined;
2347
2390
  genie_metadata?: {
2348
- door_name: string;
2349
2391
  device_name: string;
2392
+ door_name: string;
2350
2393
  } | undefined;
2351
2394
  brivo_metadata?: {
2352
2395
  device_name: string;
@@ -2439,9 +2482,9 @@ export declare const device: z.ZodObject<{
2439
2482
  device_label: string;
2440
2483
  } | undefined;
2441
2484
  dormakaba_oracode_metadata?: {
2442
- door_name: string;
2443
2485
  site_id: number;
2444
2486
  site_name: string;
2487
+ door_name: string;
2445
2488
  door_id: number;
2446
2489
  door_is_wireless: boolean;
2447
2490
  device_id?: number | undefined;
@@ -2530,10 +2573,10 @@ export declare const device: z.ZodObject<{
2530
2573
  } | undefined;
2531
2574
  is_climate_setting_schedule_active?: boolean | undefined;
2532
2575
  active_climate_setting_schedule?: {
2533
- device_id: string;
2534
2576
  created_at: string;
2535
2577
  climate_setting_schedule_id: string;
2536
2578
  schedule_type: "time_bound";
2579
+ device_id: string;
2537
2580
  schedule_starts_at: string;
2538
2581
  schedule_ends_at: string;
2539
2582
  name?: string | undefined;
@@ -2594,10 +2637,10 @@ export declare const device: z.ZodObject<{
2594
2637
  } | undefined;
2595
2638
  is_climate_setting_schedule_active?: boolean | undefined;
2596
2639
  active_climate_setting_schedule?: {
2597
- device_id: string;
2598
2640
  created_at: string;
2599
2641
  climate_setting_schedule_id: string;
2600
2642
  schedule_type: "time_bound";
2643
+ device_id: string;
2601
2644
  schedule_starts_at: string;
2602
2645
  schedule_ends_at: string;
2603
2646
  name?: string | undefined;
@@ -2651,10 +2694,10 @@ export declare const device: z.ZodObject<{
2651
2694
  } | undefined;
2652
2695
  is_climate_setting_schedule_active?: boolean | undefined;
2653
2696
  active_climate_setting_schedule?: {
2654
- device_id: string;
2655
2697
  created_at: string;
2656
2698
  climate_setting_schedule_id: string;
2657
2699
  schedule_type: "time_bound";
2700
+ device_id: string;
2658
2701
  schedule_starts_at: string;
2659
2702
  schedule_ends_at: string;
2660
2703
  name?: string | undefined;
@@ -2775,8 +2818,8 @@ export declare const device: z.ZodObject<{
2775
2818
  model?: string | undefined;
2776
2819
  } | undefined;
2777
2820
  genie_metadata?: {
2778
- door_name: string;
2779
2821
  device_name: string;
2822
+ door_name: string;
2780
2823
  } | undefined;
2781
2824
  brivo_metadata?: {
2782
2825
  device_name: string;
@@ -2869,9 +2912,9 @@ export declare const device: z.ZodObject<{
2869
2912
  device_label: string;
2870
2913
  } | undefined;
2871
2914
  dormakaba_oracode_metadata?: {
2872
- door_name: string;
2873
2915
  site_id: number;
2874
2916
  site_name: string;
2917
+ door_name: string;
2875
2918
  door_id: number;
2876
2919
  door_is_wireless: boolean;
2877
2920
  device_id?: number | undefined;
@@ -2960,10 +3003,10 @@ export declare const device: z.ZodObject<{
2960
3003
  } | undefined;
2961
3004
  is_climate_setting_schedule_active?: boolean | undefined;
2962
3005
  active_climate_setting_schedule?: {
2963
- device_id: string;
2964
3006
  created_at: string;
2965
3007
  climate_setting_schedule_id: string;
2966
3008
  schedule_type: "time_bound";
3009
+ device_id: string;
2967
3010
  schedule_starts_at: string;
2968
3011
  schedule_ends_at: string;
2969
3012
  name?: string | undefined;
@@ -3024,10 +3067,10 @@ export declare const device: z.ZodObject<{
3024
3067
  } | undefined;
3025
3068
  is_climate_setting_schedule_active?: boolean | undefined;
3026
3069
  active_climate_setting_schedule?: {
3027
- device_id: string;
3028
3070
  created_at: string;
3029
3071
  climate_setting_schedule_id: string;
3030
3072
  schedule_type: "time_bound";
3073
+ device_id: string;
3031
3074
  schedule_starts_at: string;
3032
3075
  schedule_ends_at: string;
3033
3076
  name?: string | undefined;
@@ -3081,10 +3124,10 @@ export declare const device: z.ZodObject<{
3081
3124
  } | undefined;
3082
3125
  is_climate_setting_schedule_active?: boolean | undefined;
3083
3126
  active_climate_setting_schedule?: {
3084
- device_id: string;
3085
3127
  created_at: string;
3086
3128
  climate_setting_schedule_id: string;
3087
3129
  schedule_type: "time_bound";
3130
+ device_id: string;
3088
3131
  schedule_starts_at: string;
3089
3132
  schedule_ends_at: string;
3090
3133
  name?: string | undefined;
@@ -3104,6 +3147,8 @@ export declare const device: z.ZodObject<{
3104
3147
  max_cooling_set_point_fahrenheit?: number | undefined;
3105
3148
  is_cooling_available?: true | undefined;
3106
3149
  })))) | undefined);
3150
+ workspace_id: string;
3151
+ is_managed: true;
3107
3152
  nickname?: string | undefined;
3108
3153
  can_remotely_unlock?: boolean | undefined;
3109
3154
  can_remotely_lock?: boolean | undefined;
@@ -3117,21 +3162,24 @@ export declare const device: z.ZodObject<{
3117
3162
  location_name?: string | undefined;
3118
3163
  timezone?: string | undefined;
3119
3164
  } | null;
3120
- device_id: string;
3165
+ connected_account_id: string;
3121
3166
  created_at: string;
3122
- errors: {
3167
+ errors: ({
3123
3168
  message: string;
3169
+ is_connected_account_error: true;
3124
3170
  error_code: string;
3125
- }[];
3171
+ } | {
3172
+ message: string;
3173
+ error_code: string;
3174
+ is_device_error: true;
3175
+ })[];
3126
3176
  warnings: {
3127
3177
  message: string;
3128
3178
  warning_code: string;
3129
3179
  }[];
3130
- is_managed: true;
3131
- workspace_id: string;
3132
- display_name: string;
3133
- connected_account_id: string;
3134
3180
  custom_metadata: Record<string, string | boolean>;
3181
+ device_id: string;
3182
+ display_name: string;
3135
3183
  device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "ios_phone" | "android_phone";
3136
3184
  capabilities_supported: ("phone" | "access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
3137
3185
  properties: ({
@@ -3236,8 +3284,8 @@ export declare const device: z.ZodObject<{
3236
3284
  model?: string | undefined;
3237
3285
  } | undefined;
3238
3286
  genie_metadata?: {
3239
- door_name: string;
3240
3287
  device_name: string;
3288
+ door_name: string;
3241
3289
  } | undefined;
3242
3290
  brivo_metadata?: {
3243
3291
  device_name: string;
@@ -3330,9 +3378,9 @@ export declare const device: z.ZodObject<{
3330
3378
  device_label: string;
3331
3379
  } | undefined;
3332
3380
  dormakaba_oracode_metadata?: {
3333
- door_name: string;
3334
3381
  site_id: number;
3335
3382
  site_name: string;
3383
+ door_name: string;
3336
3384
  door_id: number;
3337
3385
  door_is_wireless: boolean;
3338
3386
  device_id?: number | undefined;
@@ -3421,10 +3469,10 @@ export declare const device: z.ZodObject<{
3421
3469
  } | undefined;
3422
3470
  is_climate_setting_schedule_active?: boolean | undefined;
3423
3471
  active_climate_setting_schedule?: {
3424
- device_id: string;
3425
3472
  created_at: string;
3426
3473
  climate_setting_schedule_id: string;
3427
3474
  schedule_type: "time_bound";
3475
+ device_id: string;
3428
3476
  schedule_starts_at: string;
3429
3477
  schedule_ends_at: string;
3430
3478
  name?: string | undefined;
@@ -3485,10 +3533,10 @@ export declare const device: z.ZodObject<{
3485
3533
  } | undefined;
3486
3534
  is_climate_setting_schedule_active?: boolean | undefined;
3487
3535
  active_climate_setting_schedule?: {
3488
- device_id: string;
3489
3536
  created_at: string;
3490
3537
  climate_setting_schedule_id: string;
3491
3538
  schedule_type: "time_bound";
3539
+ device_id: string;
3492
3540
  schedule_starts_at: string;
3493
3541
  schedule_ends_at: string;
3494
3542
  name?: string | undefined;
@@ -3542,10 +3590,10 @@ export declare const device: z.ZodObject<{
3542
3590
  } | undefined;
3543
3591
  is_climate_setting_schedule_active?: boolean | undefined;
3544
3592
  active_climate_setting_schedule?: {
3545
- device_id: string;
3546
3593
  created_at: string;
3547
3594
  climate_setting_schedule_id: string;
3548
3595
  schedule_type: "time_bound";
3596
+ device_id: string;
3549
3597
  schedule_starts_at: string;
3550
3598
  schedule_ends_at: string;
3551
3599
  name?: string | undefined;
@@ -3666,8 +3714,8 @@ export declare const device: z.ZodObject<{
3666
3714
  model?: string | undefined;
3667
3715
  } | undefined;
3668
3716
  genie_metadata?: {
3669
- door_name: string;
3670
3717
  device_name: string;
3718
+ door_name: string;
3671
3719
  } | undefined;
3672
3720
  brivo_metadata?: {
3673
3721
  device_name: string;
@@ -3760,9 +3808,9 @@ export declare const device: z.ZodObject<{
3760
3808
  device_label: string;
3761
3809
  } | undefined;
3762
3810
  dormakaba_oracode_metadata?: {
3763
- door_name: string;
3764
3811
  site_id: number;
3765
3812
  site_name: string;
3813
+ door_name: string;
3766
3814
  door_id: number;
3767
3815
  door_is_wireless: boolean;
3768
3816
  device_id?: number | undefined;
@@ -3851,10 +3899,10 @@ export declare const device: z.ZodObject<{
3851
3899
  } | undefined;
3852
3900
  is_climate_setting_schedule_active?: boolean | undefined;
3853
3901
  active_climate_setting_schedule?: {
3854
- device_id: string;
3855
3902
  created_at: string;
3856
3903
  climate_setting_schedule_id: string;
3857
3904
  schedule_type: "time_bound";
3905
+ device_id: string;
3858
3906
  schedule_starts_at: string;
3859
3907
  schedule_ends_at: string;
3860
3908
  name?: string | undefined;
@@ -3915,10 +3963,10 @@ export declare const device: z.ZodObject<{
3915
3963
  } | undefined;
3916
3964
  is_climate_setting_schedule_active?: boolean | undefined;
3917
3965
  active_climate_setting_schedule?: {
3918
- device_id: string;
3919
3966
  created_at: string;
3920
3967
  climate_setting_schedule_id: string;
3921
3968
  schedule_type: "time_bound";
3969
+ device_id: string;
3922
3970
  schedule_starts_at: string;
3923
3971
  schedule_ends_at: string;
3924
3972
  name?: string | undefined;
@@ -3972,10 +4020,10 @@ export declare const device: z.ZodObject<{
3972
4020
  } | undefined;
3973
4021
  is_climate_setting_schedule_active?: boolean | undefined;
3974
4022
  active_climate_setting_schedule?: {
3975
- device_id: string;
3976
4023
  created_at: string;
3977
4024
  climate_setting_schedule_id: string;
3978
4025
  schedule_type: "time_bound";
4026
+ device_id: string;
3979
4027
  schedule_starts_at: string;
3980
4028
  schedule_ends_at: string;
3981
4029
  name?: string | undefined;
@@ -3995,6 +4043,8 @@ export declare const device: z.ZodObject<{
3995
4043
  max_cooling_set_point_fahrenheit?: number | undefined;
3996
4044
  is_cooling_available?: true | undefined;
3997
4045
  })))) | undefined);
4046
+ workspace_id: string;
4047
+ is_managed: true;
3998
4048
  nickname?: string | undefined;
3999
4049
  can_remotely_unlock?: boolean | undefined;
4000
4050
  can_remotely_lock?: boolean | undefined;
@@ -4005,3 +4055,4 @@ export declare const device: z.ZodObject<{
4005
4055
  can_simulate_disconnection?: boolean | undefined;
4006
4056
  }>;
4007
4057
  export type Device = z.infer<typeof device>;
4058
+ export {};