@seamapi/types 1.359.0 → 1.360.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 (36) hide show
  1. package/dist/connect.cjs +964 -570
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3805 -2953
  4. package/lib/seam/connect/models/acs/acs-credential.js +94 -51
  5. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-encoder.js +12 -7
  7. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  8. package/lib/seam/connect/models/acs/acs-entrance.js +37 -14
  9. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-system.js +48 -41
  11. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-user.js +45 -32
  13. package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
  14. package/lib/seam/connect/models/events/devices.d.ts +60 -0
  15. package/lib/seam/connect/models/events/devices.js +10 -0
  16. package/lib/seam/connect/models/events/devices.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +30 -1
  18. package/lib/seam/connect/models/thermostats/climate-preset.js +12 -10
  19. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  20. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +19 -12
  21. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  22. package/lib/seam/connect/openapi.d.ts +161 -23
  23. package/lib/seam/connect/openapi.js +611 -401
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +3615 -2930
  26. package/package.json +2 -2
  27. package/src/lib/seam/connect/models/acs/acs-credential.ts +162 -51
  28. package/src/lib/seam/connect/models/acs/acs-encoder.ts +22 -7
  29. package/src/lib/seam/connect/models/acs/acs-entrance.ts +65 -18
  30. package/src/lib/seam/connect/models/acs/acs-system.ts +81 -52
  31. package/src/lib/seam/connect/models/acs/acs-user.ts +69 -32
  32. package/src/lib/seam/connect/models/events/devices.ts +13 -0
  33. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +28 -10
  34. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +31 -12
  35. package/src/lib/seam/connect/openapi.ts +755 -401
  36. package/src/lib/seam/connect/route-types.ts +3617 -2928
@@ -5,24 +5,36 @@ import { fan_mode_setting, hvac_mode_setting } from './modes.js'
5
5
  export const climate_preset = z.object({
6
6
  climate_preset_key: z
7
7
  .string()
8
- .describe('Unique key to identify the climate preset.'),
8
+ .describe(
9
+ 'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
10
+ ),
9
11
  can_edit: z
10
12
  .boolean()
11
- .describe('Indicates whether this climate preset key can be edited.'),
13
+ .describe(
14
+ 'Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.',
15
+ ),
12
16
  can_delete: z
13
17
  .boolean()
14
- .describe('Indicates whether this climate preset key can be deleted.'),
18
+ .describe(
19
+ 'Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.',
20
+ ),
15
21
  name: z
16
22
  .string()
17
23
  .nullable()
18
24
  .default(null)
19
25
  .optional()
20
- .describe('User-friendly name to identify the climate preset.'),
21
- display_name: z.string().describe('Display name for the climate preset.'),
26
+ .describe(
27
+ 'User-friendly name to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
28
+ ),
29
+ display_name: z
30
+ .string()
31
+ .describe(
32
+ 'Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
33
+ ),
22
34
  fan_mode_setting: fan_mode_setting
23
35
  .optional()
24
36
  .describe(
25
- 'Desired fan mode setting, such as `on`, `auto`, or `circulate`.',
37
+ 'Desired [fan mode setting](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.',
26
38
  ),
27
39
  hvac_mode_setting: hvac_mode_setting
28
40
  .optional()
@@ -38,21 +50,27 @@ export const climate_preset = z.object({
38
50
  heating_set_point_celsius: z
39
51
  .number()
40
52
  .optional()
41
- .describe('Temperature to which the thermostat should heat (in °C).'),
53
+ .describe(
54
+ 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
55
+ ),
42
56
  cooling_set_point_fahrenheit: z
43
57
  .number()
44
58
  .optional()
45
- .describe('Temperature to which the thermostat should cool (in °F).'),
59
+ .describe(
60
+ 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
61
+ ),
46
62
  heating_set_point_fahrenheit: z
47
63
  .number()
48
64
  .optional()
49
- .describe('Temperature to which the thermostat should heat (in °F).'),
65
+ .describe(
66
+ 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
67
+ ),
50
68
  manual_override_allowed: z.boolean().describe(
51
69
  `
52
70
  ---
53
71
  deprecated: Use 'thermostat_schedule.is_override_allowed'
54
72
  ---
55
- Indicates whether a person at the thermostat can change the thermostat's settings.`,
73
+ Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).`,
56
74
  ),
57
75
  })
58
76
 
@@ -4,29 +4,38 @@ export const thermostat_schedule = z.object({
4
4
  thermostat_schedule_id: z
5
5
  .string()
6
6
  .uuid()
7
- .describe('ID of the thermostat schedule.'),
8
- device_id: z.string().uuid().describe('ID of the desired thermostat device.'),
7
+ .describe(
8
+ 'ID of the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
9
+ ),
10
+ device_id: z
11
+ .string()
12
+ .uuid()
13
+ .describe(
14
+ 'ID of the desired [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) device.',
15
+ ),
9
16
  name: z
10
17
  .string()
11
18
  .optional()
12
- .describe('User-friendly name to identify the thermostat schedule.'),
19
+ .describe(
20
+ 'User-friendly name to identify the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
21
+ ),
13
22
  climate_preset_key: z
14
23
  .string()
15
24
  .describe(
16
- 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.',
25
+ 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
17
26
  ),
18
27
  max_override_period_minutes: z
19
28
  .number()
20
29
  .int()
21
30
  .nonnegative()
22
31
  .describe(
23
- "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
32
+ "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
24
33
  ),
25
34
  starts_at: z
26
35
  .string()
27
36
  .datetime()
28
37
  .describe(
29
- 'Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
38
+ 'Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
30
39
  ),
31
40
  unstable_is_override_allowed: z
32
41
  .boolean()
@@ -36,27 +45,37 @@ export const thermostat_schedule = z.object({
36
45
  ---
37
46
  undocumented: Unstable
38
47
  ---
39
- Indicates whether a person at the thermostat can change the thermostat's settings.`,
48
+ Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts.`,
40
49
  ),
41
50
  ends_at: z
42
51
  .string()
43
52
  .datetime()
44
53
  .describe(
45
- 'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
54
+ 'Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
46
55
  ),
47
56
  created_at: z
48
57
  .string()
49
58
  .datetime()
50
- .describe('Date and time at which the thermostat schedule was created.'),
59
+ .describe(
60
+ 'Date and time at which the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.',
61
+ ),
51
62
  errors: z
52
63
  .array(
53
64
  z.object({
54
- error_code: z.string(),
55
- message: z.string(),
65
+ error_code: z
66
+ .string()
67
+ .describe(
68
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
69
+ ),
70
+ message: z
71
+ .string()
72
+ .describe(
73
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
74
+ ),
56
75
  }),
57
76
  )
58
77
  .describe(
59
- 'Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
78
+ 'Errors associated with the [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
60
79
  ),
61
80
  }).describe(`
62
81
  ---