@seamapi/types 1.405.0 → 1.406.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 (54) hide show
  1. package/dist/connect.cjs +2217 -559
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +7283 -405
  4. package/lib/seam/connect/models/devices/capabilities-supported.js +3 -1
  5. package/lib/seam/connect/models/devices/capabilities-supported.js.map +1 -1
  6. package/lib/seam/connect/models/devices/capability-properties/access-code.js +53 -21
  7. package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
  8. package/lib/seam/connect/models/devices/capability-properties/lock.js +20 -4
  9. package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
  10. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +175 -31
  11. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  12. package/lib/seam/connect/models/devices/device-metadata.js +455 -191
  13. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device-type.js +8 -6
  15. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device.js +171 -80
  17. package/lib/seam/connect/models/devices/device.js.map +1 -1
  18. package/lib/seam/connect/models/devices/phone-properties.js +5 -7
  19. package/lib/seam/connect/models/devices/phone-properties.js.map +1 -1
  20. package/lib/seam/connect/models/devices/phone.js +22 -8
  21. package/lib/seam/connect/models/devices/phone.js.map +1 -1
  22. package/lib/seam/connect/models/devices/unmanaged-device.js +35 -1
  23. package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
  24. package/lib/seam/connect/models/events/devices.d.ts +4 -4
  25. package/lib/seam/connect/models/events/seam-event.d.ts +2 -2
  26. package/lib/seam/connect/models/index.d.ts +1 -0
  27. package/lib/seam/connect/models/index.js +1 -0
  28. package/lib/seam/connect/models/index.js.map +1 -1
  29. package/lib/seam/connect/models/partner/index.d.ts +1 -0
  30. package/lib/seam/connect/models/partner/index.js +2 -0
  31. package/lib/seam/connect/models/partner/index.js.map +1 -0
  32. package/lib/seam/connect/models/partner/resources.d.ts +42 -0
  33. package/lib/seam/connect/models/partner/resources.js +19 -0
  34. package/lib/seam/connect/models/partner/resources.js.map +1 -0
  35. package/lib/seam/connect/openapi.d.ts +979 -47
  36. package/lib/seam/connect/openapi.js +1331 -205
  37. package/lib/seam/connect/openapi.js.map +1 -1
  38. package/lib/seam/connect/route-types.d.ts +6264 -318
  39. package/package.json +2 -2
  40. package/src/lib/seam/connect/models/devices/capabilities-supported.ts +3 -1
  41. package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +64 -34
  42. package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +20 -4
  43. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +175 -31
  44. package/src/lib/seam/connect/models/devices/device-metadata.ts +457 -193
  45. package/src/lib/seam/connect/models/devices/device-type.ts +10 -6
  46. package/src/lib/seam/connect/models/devices/device.ts +173 -96
  47. package/src/lib/seam/connect/models/devices/phone-properties.ts +34 -36
  48. package/src/lib/seam/connect/models/devices/phone.ts +22 -19
  49. package/src/lib/seam/connect/models/devices/unmanaged-device.ts +35 -1
  50. package/src/lib/seam/connect/models/index.ts +1 -0
  51. package/src/lib/seam/connect/models/partner/index.ts +1 -0
  52. package/src/lib/seam/connect/models/partner/resources.ts +24 -0
  53. package/src/lib/seam/connect/openapi.ts +1577 -210
  54. package/src/lib/seam/connect/route-types.ts +6267 -318
@@ -6,5 +6,7 @@ export const capabilities = z.enum([
6
6
  'thermostat',
7
7
  'battery',
8
8
  'phone',
9
- ]);
9
+ ]).describe(`
10
+ Collection of capabilities that the device supports when connected to Seam. **Important:** Superseded by [capability flags](https://docs.seam.co/latest/capability-guides/device-and-system-capabilities#capability-flags).
11
+ `);
10
12
  //# sourceMappingURL=capabilities-supported.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities-supported.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/capabilities-supported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,aAAa;IACb,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,SAAS;IACT,OAAO;CACR,CAAC,CAAA"}
1
+ {"version":3,"file":"capabilities-supported.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/capabilities-supported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,aAAa;IACb,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,SAAS;IACT,OAAO;CACR,CAAC,CAAC,QAAQ,CAAC;;SAEH,CAAC,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import { z } from 'zod';
2
- export const access_code_code_constraint = z.object({
3
- constraint_type: z.enum([
2
+ export const access_code_code_constraint = z
3
+ .object({
4
+ constraint_type: z
5
+ .enum([
4
6
  'no_zeros', // Nuki
5
7
  'cannot_start_with_12', // Nuki
6
8
  'no_triple_consecutive_ints', // Brivo
@@ -11,28 +13,58 @@ export const access_code_code_constraint = z.object({
11
13
  'at_least_three_unique_digits', // Tedee
12
14
  'cannot_contain_089', // TTLock
13
15
  'cannot_contain_0789', // TTLock (for some cylinder devices only)
14
- ]),
15
- });
16
- export const access_code_name_constraint = z.object({
16
+ ])
17
+ .describe(`Code constraint type for access codes.`),
18
+ })
19
+ .describe(`Code constraint for access codes.`);
20
+ export const access_code_name_constraint = z
21
+ .object({
17
22
  constraint_type: z.enum(['name_length', 'name_must_be_unique']), // Nuki, Kwikset
18
- min_length: z.number().optional(),
19
- max_length: z.number().optional(),
20
- });
21
- export const access_code_constraint = z.union([
22
- access_code_code_constraint,
23
- access_code_name_constraint,
24
- ]);
23
+ min_length: z
24
+ .number()
25
+ .optional()
26
+ .describe(`Minimum name length constraint for access codes.`),
27
+ max_length: z
28
+ .number()
29
+ .optional()
30
+ .describe(`Maximum name length constraint for access codes.`),
31
+ })
32
+ .describe(`Name constraint for access codes.`);
33
+ export const access_code_constraint = z
34
+ .union([access_code_code_constraint, access_code_name_constraint])
35
+ .describe(`Access code constraint.`);
25
36
  export const access_code_capability_properties = z.object({
26
37
  _experimental_supported_code_from_access_codes_lengths: z
27
38
  .array(z.number())
28
- .optional(),
29
- code_constraints: z
30
- .array(access_code_constraint)
31
- .optional()
32
- .describe('Constraints on access codes for the device. Seam represents each constraint as an object with a `constraint_type` property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.'),
33
- supported_code_lengths: z.array(z.number()).optional(),
34
- max_active_codes_supported: z.number().optional(),
35
- supports_backup_access_code_pool: z.boolean().optional(),
36
- has_native_entry_events: z.boolean().optional(),
39
+ .optional().describe(`
40
+ ---
41
+ undocumented: Marked as experimental.
42
+ ---
43
+ `),
44
+ code_constraints: z.array(access_code_constraint).optional().describe(`
45
+ ---
46
+ property_group_key: access_codes
47
+ ---
48
+ Constraints on access codes for the device. Seam represents each constraint as an object with a \`constraint_type\` property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.`),
49
+ supported_code_lengths: z.array(z.number()).optional().describe(`
50
+ ---
51
+ property_group_key: access_codes
52
+ ---
53
+ Supported code lengths for access codes.`),
54
+ max_active_codes_supported: z.number().optional().describe(`
55
+ ---
56
+ property_group_key: access_codes
57
+ ---
58
+ Maximum number of active access codes that the device supports.`),
59
+ supports_backup_access_code_pool: z.boolean().optional().describe(`
60
+ ---
61
+ property_group_key: access_codes
62
+ ---
63
+ Indicates whether the device supports a [backup access code pool](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/backup-access-codes).`),
64
+ has_native_entry_events: z.boolean().optional().describe(`
65
+ ---
66
+ property_group_key: access_codes
67
+ ---
68
+ Indicates whether the device supports native entry events.`),
37
69
  });
38
70
  //# sourceMappingURL=access-code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;QACtB,UAAU,EAAE,OAAO;QACnB,sBAAsB,EAAE,OAAO;QAC/B,4BAA4B,EAAE,QAAQ;QACtC,yBAAyB,EAAE,aAAa;QACxC,+BAA+B,EAAE,QAAQ;QACzC,sBAAsB,EAAE,UAAU;QAClC,qCAAqC,EAAE,QAAQ;QAC/C,8BAA8B,EAAE,QAAQ;QACxC,oBAAoB,EAAE,SAAS;QAC/B,qBAAqB,EAAE,0CAA0C;KAClE,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC,EAAE,gBAAgB;IACjF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5C,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,sDAAsD,EAAE,CAAC;SACtD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;IACb,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,EAAE;SACV,QAAQ,CACP,yQAAyQ,CAC1Q;IACH,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAA"}
1
+ {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,eAAe,EAAE,CAAC;SACf,IAAI,CAAC;QACJ,UAAU,EAAE,OAAO;QACnB,sBAAsB,EAAE,OAAO;QAC/B,4BAA4B,EAAE,QAAQ;QACtC,yBAAyB,EAAE,aAAa;QACxC,+BAA+B,EAAE,QAAQ;QACzC,sBAAsB,EAAE,UAAU;QAClC,qCAAqC,EAAE,QAAQ;QAC/C,8BAA8B,EAAE,QAAQ;QACxC,oBAAoB,EAAE,SAAS;QAC/B,qBAAqB,EAAE,0CAA0C;KAClE,CAAC;SACD,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC,EAAE,gBAAgB;IACjF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,KAAK,CAAC,CAAC,2BAA2B,EAAE,2BAA2B,CAAC,CAAC;KACjE,QAAQ,CAAC,yBAAyB,CAAC,CAAA;AAItC,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,sDAAsD,EAAE,CAAC;SACtD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;WAId,CAAC;IACV,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;oRAI4M,CAAC;IACnR,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;mDAIf,CAAC;IAClD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;0EAIa,CAAC;IACzE,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;yKAIqG,CAAC;IACxK,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;qEAIU,CAAC;CACrE,CAAC,CAAA"}
@@ -1,11 +1,27 @@
1
1
  import { z } from 'zod';
2
2
  export const lock_capability_properties = z.object({
3
- locked: z.boolean().optional(),
3
+ locked: z.boolean().optional().describe(`
4
+ ---
5
+ property_group_key: locks
6
+ ---
7
+ Indicates whether the lock is locked.
8
+ `),
4
9
  keypad_battery: z
5
10
  .object({
6
- level: z.number(),
11
+ level: z.number().describe(`Keypad battery charge level.
12
+ `),
7
13
  })
8
- .optional(),
9
- door_open: z.boolean().optional(),
14
+ .optional().describe(`
15
+ ---
16
+ property_group_key: access_codes
17
+ ---
18
+ Keypad battery status.
19
+ `),
20
+ door_open: z.boolean().optional().describe(`
21
+ ---
22
+ property_group_key: locks
23
+ ---
24
+ Indicates whether the door is open.
25
+ `),
10
26
  });
11
27
  //# sourceMappingURL=lock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,cAAc,EAAE,CAAC;SACd,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;IACb,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
1
+ {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;;WAK/B,CAAC;IACV,cAAc,EAAE,CAAC;SACd,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;WACtB,CAAC;KACP,CAAC;SACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;;WAKd,CAAC;IACV,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;;WAKlC,CAAC;CACX,CAAC,CAAA"}
@@ -2,55 +2,199 @@ import { z } from 'zod';
2
2
  import { climate_preset, climate_setting, fan_mode_setting, hvac_mode_setting, thermostat_daily_program, thermostat_schedule, thermostat_weekly_program, } from '../../thermostats/index.js';
3
3
  export const thermostat_capability_properties = z
4
4
  .object({
5
- temperature_fahrenheit: z.number(),
6
- temperature_celsius: z.number(),
7
- relative_humidity: z.number().min(0).max(1),
8
- available_hvac_mode_settings: z.array(hvac_mode_setting),
9
- available_fan_mode_settings: z.array(fan_mode_setting),
10
- is_heating: z.boolean(),
11
- is_cooling: z.boolean(),
12
- is_fan_running: z.boolean(),
5
+ temperature_fahrenheit: z.number().describe(`
6
+ ---
7
+ property_group_key: thermostats
8
+ ---
9
+ Reported temperature in °F.
10
+ `),
11
+ temperature_celsius: z.number().describe(`
12
+ ---
13
+ property_group_key: thermostats
14
+ ---
15
+ Reported temperature in °C.
16
+ `),
17
+ relative_humidity: z.number().min(0).max(1).describe(`
18
+ ---
19
+ property_group_key: thermostats
20
+ ---
21
+ Reported relative humidity, as a value between 0 and 1, inclusive.
22
+ `),
23
+ available_hvac_mode_settings: z.array(hvac_mode_setting).describe(`
24
+ ---
25
+ property_group_key: thermostats
26
+ ---
27
+ HVAC mode settings that the thermostat supports.
28
+ `),
29
+ available_fan_mode_settings: z.array(fan_mode_setting).describe(`
30
+ ---
31
+ property_group_key: thermostats
32
+ ---
33
+ Fan mode settings that the thermostat supports.
34
+ `),
35
+ is_heating: z.boolean().describe(`
36
+ ---
37
+ property_group_key: thermostats
38
+ ---
39
+ Indicates whether the connected HVAC system is currently heating, as reported by the thermostat.
40
+ `),
41
+ is_cooling: z.boolean().describe(`
42
+ ---
43
+ property_group_key: thermostats
44
+ ---
45
+ Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat.
46
+ `),
47
+ is_fan_running: z.boolean().describe(`
48
+ ---
49
+ property_group_key: thermostats
50
+ ---
51
+ Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat.
52
+ `),
13
53
  fan_mode_setting: fan_mode_setting.describe(`
14
54
  ---
15
- deprecated: use current_climate_setting.fan_mode_setting instead.
55
+ deprecated: Use \`current_climate_setting.fan_mode_setting\` instead.
56
+ property_group_key: thermostats
16
57
  ---
17
58
  `),
18
59
  /**
19
60
  * this is true if the current thermostat settings differ that what is on seam, and `current_climate_setting.manual_override_allowed: true`
20
61
  */
21
- is_temporary_manual_override_active: z.boolean(),
62
+ is_temporary_manual_override_active: z.boolean().describe(`
63
+ ---
64
+ property_group_key: thermostats
65
+ ---
66
+ Indicates whether the current thermostat settings differ from the most recent active program or schedule that Seam activated. For this condition to occur, \`current_climate_setting.manual_override_allowed\` must also be \`true\`.
67
+ `),
22
68
  /**
23
69
  * can be derived from `fallback_climate_preset_key`, or `active_thermostat_schedule` if one is active
24
70
  */
25
- current_climate_setting: climate_setting,
71
+ current_climate_setting: climate_setting.describe(`
72
+ ---
73
+ property_group_key: thermostats
74
+ ---
75
+ Current climate setting.
76
+ `),
26
77
  default_climate_setting: climate_setting.describe(`
27
78
  ---
28
79
  deprecated: use fallback_climate_preset_key to specify a fallback climate preset instead.
80
+ property_group_key: thermostats
29
81
  ---
30
82
  `),
31
- available_climate_presets: z.array(climate_preset),
32
- fallback_climate_preset_key: z.string().min(1).nullable().default(null),
33
- active_thermostat_schedule: thermostat_schedule.nullable().default(null),
34
- thermostat_daily_programs: z.array(thermostat_daily_program).optional(),
35
- thermostat_weekly_program: thermostat_weekly_program.nullable().optional(),
36
- min_cooling_set_point_celsius: z.number(),
37
- min_cooling_set_point_fahrenheit: z.number(),
38
- max_cooling_set_point_celsius: z.number(),
39
- max_cooling_set_point_fahrenheit: z.number(),
40
- min_heating_set_point_celsius: z.number(),
41
- min_heating_set_point_fahrenheit: z.number(),
42
- max_heating_set_point_celsius: z.number(),
43
- max_heating_set_point_fahrenheit: z.number(),
44
- min_heating_cooling_delta_celsius: z.number(),
45
- min_heating_cooling_delta_fahrenheit: z.number(),
83
+ available_climate_presets: z.array(climate_preset).describe(`
84
+ ---
85
+ property_group_key: thermostats
86
+ ---
87
+ Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.
88
+ `),
89
+ fallback_climate_preset_key: z.string().min(1).nullable().default(null)
90
+ .describe(`
91
+ ---
92
+ property_group_key: thermostats
93
+ ---
94
+ Key of the [fallback climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat.
95
+ `),
96
+ active_thermostat_schedule: thermostat_schedule.nullable().default(null)
97
+ .describe(`
98
+ ---
99
+ property_group_key: thermostats
100
+ ---
101
+ Active [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
102
+ `),
103
+ thermostat_daily_programs: z.array(thermostat_daily_program).optional()
104
+ .describe(`
105
+ ---
106
+ property_group_key: thermostats
107
+ ---
108
+ Configured [daily programs](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat.
109
+ `),
110
+ thermostat_weekly_program: thermostat_weekly_program.nullable().optional()
111
+ .describe(`
112
+ ---
113
+ property_group_key: thermostats
114
+ ---
115
+ Current [weekly program](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat.
116
+ `),
117
+ min_cooling_set_point_celsius: z.number().describe(`
118
+ ---
119
+ property_group_key: thermostats
120
+ ---
121
+ Minimum [cooling set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C.
122
+ `),
123
+ min_cooling_set_point_fahrenheit: z.number().describe(`
124
+ ---
125
+ property_group_key: thermostats
126
+ ---
127
+ Minimum [cooling set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F.
128
+ `),
129
+ max_cooling_set_point_celsius: z.number().describe(`
130
+ ---
131
+ property_group_key: thermostats
132
+ ---
133
+ Maximum [cooling set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C.
134
+ `),
135
+ max_cooling_set_point_fahrenheit: z.number().describe(`
136
+ ---
137
+ property_group_key: thermostats
138
+ ---
139
+ Maximum [cooling set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F.
140
+ `),
141
+ min_heating_set_point_celsius: z.number().describe(`
142
+ ---
143
+ property_group_key: thermostats
144
+ ---
145
+ Minimum [heating set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C.
146
+ `),
147
+ min_heating_set_point_fahrenheit: z.number().describe(`
148
+ ---
149
+ property_group_key: thermostats
150
+ ---
151
+ Minimum [heating set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F.
152
+ `),
153
+ max_heating_set_point_celsius: z.number().describe(`
154
+ ---
155
+ property_group_key: thermostats
156
+ ---
157
+ Maximum [heating set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C.
158
+ `),
159
+ max_heating_set_point_fahrenheit: z.number().describe(`
160
+ ---
161
+ property_group_key: thermostats
162
+ ---
163
+ Maximum [heating set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F.
164
+ `),
165
+ min_heating_cooling_delta_celsius: z.number().describe(`
166
+ ---
167
+ property_group_key: thermostats
168
+ ---
169
+ Minimum [temperature difference](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#minimum-heating-cooling-temperature-delta) in °C between the cooling and heating set points when in heat-cool (auto) mode.
170
+ `),
171
+ min_heating_cooling_delta_fahrenheit: z.number().describe(`
172
+ ---
173
+ property_group_key: thermostats
174
+ ---
175
+ Minimum [temperature difference](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points#minimum-heating-cooling-temperature-delta) in °F between the cooling and heating set points when in heat-cool (auto) mode.
176
+ `),
46
177
  temperature_threshold: z
47
178
  .object({
48
- lower_limit_celsius: z.number().nullable(),
49
- lower_limit_fahrenheit: z.number().nullable(),
50
- upper_limit_celsius: z.number().nullable(),
51
- upper_limit_fahrenheit: z.number().nullable(),
179
+ lower_limit_celsius: z.number().nullable()
180
+ .describe(`Lower limit in °C within the current [temperature threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
181
+ `),
182
+ lower_limit_fahrenheit: z.number().nullable()
183
+ .describe(`Lower limit in °F within the current [temperature threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
184
+ `),
185
+ upper_limit_celsius: z.number().nullable()
186
+ .describe(`Upper limit in °C within the current [temperature threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
187
+ `),
188
+ upper_limit_fahrenheit: z.number().nullable()
189
+ .describe(`Upper limit in °F within the current [temperature threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
190
+ `),
52
191
  })
53
- .optional(),
192
+ .optional().describe(`
193
+ ---
194
+ property_group_key: thermostats
195
+ ---
196
+ Current [temperature threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.
197
+ `),
54
198
  })
55
199
  .partial();
56
200
  //# sourceMappingURL=thermostat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,eAAe,EACf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E,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE;IACzC,gCAAgC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5C,iCAAiC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7C,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;IAChD,qBAAqB,EAAE,CAAC;SACrB,MAAM,CAAC;QACN,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;;;;;WA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