@seamapi/types 1.190.0 → 1.192.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 (56) hide show
  1. package/dist/connect.cjs +23 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +90 -62
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +2 -3
  6. package/lib/seam/connect/models/devices/capability-properties/index.js +2 -2
  7. package/lib/seam/connect/models/devices/capability-properties/index.js.map +1 -1
  8. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +0 -86
  9. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +1 -26
  10. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  11. package/lib/seam/connect/models/devices/index.d.ts +0 -1
  12. package/lib/seam/connect/models/devices/index.js +0 -1
  13. package/lib/seam/connect/models/devices/index.js.map +1 -1
  14. package/lib/seam/connect/models/events/devices.d.ts +13 -13
  15. package/lib/seam/connect/models/events/devices.js +7 -2
  16. package/lib/seam/connect/models/events/devices.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +6 -6
  18. package/lib/seam/connect/models/index.d.ts +2 -0
  19. package/lib/seam/connect/models/index.js +2 -0
  20. package/lib/seam/connect/models/index.js.map +1 -1
  21. package/lib/seam/connect/models/noise-sensors/index.d.ts +1 -0
  22. package/lib/seam/connect/models/noise-sensors/index.js +2 -0
  23. package/lib/seam/connect/models/noise-sensors/index.js.map +1 -0
  24. package/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.d.ts +1 -0
  25. package/lib/seam/connect/models/noise-sensors/noise-threshold.js.map +1 -0
  26. package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +54 -0
  27. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js +17 -0
  28. package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +1 -0
  29. package/lib/seam/connect/models/thermostats/climate-setting.d.ts +30 -0
  30. package/lib/seam/connect/models/thermostats/climate-setting.js +13 -0
  31. package/lib/seam/connect/models/thermostats/climate-setting.js.map +1 -0
  32. package/lib/seam/connect/models/thermostats/index.d.ts +3 -0
  33. package/lib/seam/connect/models/thermostats/index.js +4 -0
  34. package/lib/seam/connect/models/thermostats/index.js.map +1 -0
  35. package/lib/seam/connect/models/thermostats/modes.d.ts +5 -0
  36. package/lib/seam/connect/models/thermostats/modes.js +4 -0
  37. package/lib/seam/connect/models/thermostats/modes.js.map +1 -0
  38. package/lib/seam/connect/schemas.d.ts +1 -1
  39. package/lib/seam/connect/schemas.js +1 -1
  40. package/lib/seam/connect/schemas.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/lib/seam/connect/model-types.ts +1 -0
  43. package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -17
  44. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +5 -38
  45. package/src/lib/seam/connect/models/devices/index.ts +0 -1
  46. package/src/lib/seam/connect/models/events/devices.ts +7 -2
  47. package/src/lib/seam/connect/models/index.ts +2 -0
  48. package/src/lib/seam/connect/models/noise-sensors/index.ts +1 -0
  49. package/src/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.ts +2 -0
  50. package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +22 -0
  51. package/src/lib/seam/connect/models/thermostats/climate-setting.ts +16 -0
  52. package/src/lib/seam/connect/models/thermostats/index.ts +3 -0
  53. package/src/lib/seam/connect/models/thermostats/modes.ts +9 -0
  54. package/src/lib/seam/connect/schemas.ts +1 -0
  55. package/lib/seam/connect/models/devices/noise-threshold.js.map +0 -1
  56. /package/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.js +0 -0
@@ -0,0 +1,2 @@
1
+ export * from './noise-threshold.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/noise-sensors/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -24,3 +24,4 @@ export declare const noise_threshold: z.ZodObject<{
24
24
  noise_threshold_decibels: number;
25
25
  noise_threshold_nrs?: number | undefined;
26
26
  }>;
27
+ export type NoiseThreshold = z.infer<typeof noise_threshold>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noise-threshold.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/noise-sensors/noise-threshold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,mBAAmB;IAChD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,mBAAmB;IAC9C,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE;CACrC,CAAC,CAAA"}
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ export declare const climate_setting_schedule: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ device_id: z.ZodString;
5
+ created_at: z.ZodString;
6
+ errors: z.ZodAny;
7
+ climate_setting_schedule_id: z.ZodString;
8
+ schedule_type: z.ZodLiteral<"time_bound">;
9
+ schedule_starts_at: z.ZodString;
10
+ schedule_ends_at: z.ZodString;
11
+ automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
12
+ automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
13
+ hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
14
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
15
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
16
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
17
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
18
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ device_id: string;
21
+ created_at: string;
22
+ climate_setting_schedule_id: string;
23
+ schedule_type: "time_bound";
24
+ schedule_starts_at: string;
25
+ schedule_ends_at: string;
26
+ name?: string | undefined;
27
+ errors?: any;
28
+ automatic_heating_enabled?: boolean | undefined;
29
+ automatic_cooling_enabled?: boolean | undefined;
30
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
31
+ cooling_set_point_celsius?: number | undefined;
32
+ heating_set_point_celsius?: number | undefined;
33
+ cooling_set_point_fahrenheit?: number | undefined;
34
+ heating_set_point_fahrenheit?: number | undefined;
35
+ manual_override_allowed?: boolean | undefined;
36
+ }, {
37
+ device_id: string;
38
+ created_at: string;
39
+ climate_setting_schedule_id: string;
40
+ schedule_type: "time_bound";
41
+ schedule_starts_at: string;
42
+ schedule_ends_at: string;
43
+ name?: string | undefined;
44
+ errors?: any;
45
+ automatic_heating_enabled?: boolean | undefined;
46
+ automatic_cooling_enabled?: boolean | undefined;
47
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
48
+ cooling_set_point_celsius?: number | undefined;
49
+ heating_set_point_celsius?: number | undefined;
50
+ cooling_set_point_fahrenheit?: number | undefined;
51
+ heating_set_point_fahrenheit?: number | undefined;
52
+ manual_override_allowed?: boolean | undefined;
53
+ }>;
54
+ export type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>;
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { climate_setting } from './climate-setting.js';
3
+ export const climate_setting_schedule = z
4
+ .object({
5
+ climate_setting_schedule_id: z.string().uuid(),
6
+ schedule_type: z.literal('time_bound'),
7
+ device_id: z.string().uuid(),
8
+ name: z.string().optional(),
9
+ schedule_starts_at: z.string(),
10
+ schedule_ends_at: z.string(),
11
+ created_at: z.string().datetime(),
12
+ errors: z
13
+ .any()
14
+ .describe('Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'),
15
+ })
16
+ .merge(climate_setting.partial());
17
+ //# sourceMappingURL=climate-setting-schedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"climate-setting-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,uZAAuZ,CACxZ;CACJ,CAAC;KACD,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const climate_setting: z.ZodObject<{
3
+ automatic_heating_enabled: z.ZodBoolean;
4
+ automatic_cooling_enabled: z.ZodBoolean;
5
+ hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
6
+ cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
7
+ heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
8
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
9
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
10
+ manual_override_allowed: z.ZodBoolean;
11
+ }, "strip", z.ZodTypeAny, {
12
+ automatic_heating_enabled: boolean;
13
+ automatic_cooling_enabled: boolean;
14
+ hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
15
+ manual_override_allowed: boolean;
16
+ cooling_set_point_celsius?: number | undefined;
17
+ heating_set_point_celsius?: number | undefined;
18
+ cooling_set_point_fahrenheit?: number | undefined;
19
+ heating_set_point_fahrenheit?: number | undefined;
20
+ }, {
21
+ automatic_heating_enabled: boolean;
22
+ automatic_cooling_enabled: boolean;
23
+ hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
24
+ manual_override_allowed: boolean;
25
+ cooling_set_point_celsius?: number | undefined;
26
+ heating_set_point_celsius?: number | undefined;
27
+ cooling_set_point_fahrenheit?: number | undefined;
28
+ heating_set_point_fahrenheit?: number | undefined;
29
+ }>;
30
+ export type ClimateSetting = z.infer<typeof climate_setting>;
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { hvac_mode_setting } from './modes.js';
3
+ export const climate_setting = z.object({
4
+ automatic_heating_enabled: z.boolean(),
5
+ automatic_cooling_enabled: z.boolean(),
6
+ hvac_mode_setting,
7
+ cooling_set_point_celsius: z.number().optional(),
8
+ heating_set_point_celsius: z.number().optional(),
9
+ cooling_set_point_fahrenheit: z.number().optional(),
10
+ heating_set_point_fahrenheit: z.number().optional(),
11
+ manual_override_allowed: z.boolean(),
12
+ });
13
+ //# sourceMappingURL=climate-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"climate-setting.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE;IACtC,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE;IACtC,iBAAiB;IACjB,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './climate-setting.js';
2
+ export * from './climate-setting-schedule.js';
3
+ export * from './modes.js';
@@ -0,0 +1,4 @@
1
+ export * from './climate-setting.js';
2
+ export * from './climate-setting-schedule.js';
3
+ export * from './modes.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,YAAY,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
3
+ export type HvacModeSetting = z.infer<typeof hvac_mode_setting>;
4
+ export declare const fan_mode_setting: z.ZodEnum<["auto", "on"]>;
5
+ export type FanModeSetting = z.infer<typeof fan_mode_setting>;
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool']);
3
+ export const fan_mode_setting = z.enum(['auto', 'on']);
4
+ //# sourceMappingURL=modes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AAI7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
@@ -1,2 +1,2 @@
1
- export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
1
+ export { access_code, acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, climate_setting_schedule, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, seam_event, unmanaged_access_code, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
2
2
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.190.0",
3
+ "version": "1.192.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,6 +13,7 @@ export type {
13
13
  CustomMetadata,
14
14
  Device,
15
15
  DeviceProvider,
16
+ NoiseThreshold,
16
17
  SeamEvent,
17
18
  SeamEventType,
18
19
  UnmanagedAccessCode,
@@ -5,21 +5,11 @@ import {
5
5
  access_code_code_constraint,
6
6
  } from './access-code.js'
7
7
  import { lock_capability_properties } from './lock.js'
8
- import {
9
- climate_setting,
10
- climate_setting_schedule,
11
- fan_mode_setting,
12
- hvac_mode_setting,
13
- thermostat_capability_properties,
14
- } from './thermostat.js'
8
+ import { thermostat_capability_properties } from './thermostat.js'
15
9
 
16
10
  export {
17
11
  access_code_capability_properties,
18
12
  access_code_code_constraint,
19
- climate_setting,
20
- climate_setting_schedule,
21
- fan_mode_setting,
22
- hvac_mode_setting,
23
13
  lock_capability_properties,
24
14
  thermostat_capability_properties,
25
15
  }
@@ -33,9 +23,3 @@ export const capability_properties = z.intersection(
33
23
  )
34
24
 
35
25
  export type { AccessCodeConstraint } from './access-code.js'
36
- export type {
37
- ClimateSetting,
38
- ClimateSettingSchedule,
39
- FanModeSetting,
40
- HvacModeSetting,
41
- } from './thermostat.js'
@@ -1,44 +1,11 @@
1
1
  import { z } from 'zod'
2
2
 
3
- export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool'])
4
-
5
- export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
6
-
7
- export const fan_mode_setting = z.enum(['auto', 'on'])
8
-
9
- export type FanModeSetting = z.infer<typeof fan_mode_setting>
10
-
11
- export const climate_setting = z.object({
12
- automatic_heating_enabled: z.boolean(),
13
- automatic_cooling_enabled: z.boolean(),
3
+ import {
4
+ climate_setting,
5
+ climate_setting_schedule,
6
+ fan_mode_setting,
14
7
  hvac_mode_setting,
15
- cooling_set_point_celsius: z.number().optional(),
16
- heating_set_point_celsius: z.number().optional(),
17
- cooling_set_point_fahrenheit: z.number().optional(),
18
- heating_set_point_fahrenheit: z.number().optional(),
19
- manual_override_allowed: z.boolean(),
20
- })
21
-
22
- export type ClimateSetting = z.infer<typeof climate_setting>
23
-
24
- export const climate_setting_schedule = z
25
- .object({
26
- climate_setting_schedule_id: z.string().uuid(),
27
- schedule_type: z.literal('time_bound'),
28
- device_id: z.string().uuid(),
29
- name: z.string().optional(),
30
- schedule_starts_at: z.string(),
31
- schedule_ends_at: z.string(),
32
- created_at: z.string().datetime(),
33
- errors: z
34
- .any()
35
- .describe(
36
- 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
37
- ),
38
- })
39
- .merge(climate_setting.partial())
40
-
41
- export type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>
8
+ } from '../../thermostats/index.js'
42
9
 
43
10
  const base_thermostat_capability_properties = z.object({
44
11
  temperature_fahrenheit: z.number(),
@@ -4,6 +4,5 @@ export * from './device.js'
4
4
  export * from './device-metadata.js'
5
5
  export * from './device-provider.js'
6
6
  export * from './device-type.js'
7
- export * from './noise-threshold.js'
8
7
  export * from './phone.js'
9
8
  export * from './unmanaged-device.js'
@@ -43,8 +43,13 @@ const disconnection_error_code = z.enum([
43
43
  The error code associated with the event, if any.
44
44
  `)
45
45
 
46
- export const lock_method = z.enum(['keycode', 'manual', 'unknown', 'seamapi'])
47
- .describe(`
46
+ export const lock_method = z.enum([
47
+ 'keycode',
48
+ 'manual',
49
+ 'automatic',
50
+ 'unknown',
51
+ 'seamapi',
52
+ ]).describe(`
48
53
  ---
49
54
  title: Lock Lock/Unlock Method
50
55
  ---
@@ -7,7 +7,9 @@ export * from './connected-accounts/index.js'
7
7
  export * from './custom-metadata.js'
8
8
  export * from './devices/index.js'
9
9
  export * from './events/index.js'
10
+ export * from './noise-sensors/index.js'
10
11
  export * from './phone-number.js'
12
+ export * from './thermostats/index.js'
11
13
  export * from './user-identities/index.js'
12
14
  export * from './webhooks/index.js'
13
15
  export * from './workspaces/index.js'
@@ -0,0 +1 @@
1
+ export * from './noise-threshold.js'
@@ -9,3 +9,5 @@ export const noise_threshold = z.object({
9
9
  ends_daily_at: z.string(), // TODO: zoned_time
10
10
  noise_threshold_decibels: z.number(),
11
11
  })
12
+
13
+ export type NoiseThreshold = z.infer<typeof noise_threshold>
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod'
2
+
3
+ import { climate_setting } from './climate-setting.js'
4
+
5
+ export const climate_setting_schedule = z
6
+ .object({
7
+ climate_setting_schedule_id: z.string().uuid(),
8
+ schedule_type: z.literal('time_bound'),
9
+ device_id: z.string().uuid(),
10
+ name: z.string().optional(),
11
+ schedule_starts_at: z.string(),
12
+ schedule_ends_at: z.string(),
13
+ created_at: z.string().datetime(),
14
+ errors: z
15
+ .any()
16
+ .describe(
17
+ 'Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.',
18
+ ),
19
+ })
20
+ .merge(climate_setting.partial())
21
+
22
+ export type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod'
2
+
3
+ import { hvac_mode_setting } from './modes.js'
4
+
5
+ export const climate_setting = z.object({
6
+ automatic_heating_enabled: z.boolean(),
7
+ automatic_cooling_enabled: z.boolean(),
8
+ hvac_mode_setting,
9
+ cooling_set_point_celsius: z.number().optional(),
10
+ heating_set_point_celsius: z.number().optional(),
11
+ cooling_set_point_fahrenheit: z.number().optional(),
12
+ heating_set_point_fahrenheit: z.number().optional(),
13
+ manual_override_allowed: z.boolean(),
14
+ })
15
+
16
+ export type ClimateSetting = z.infer<typeof climate_setting>
@@ -0,0 +1,3 @@
1
+ export * from './climate-setting.js'
2
+ export * from './climate-setting-schedule.js'
3
+ export * from './modes.js'
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod'
2
+
3
+ export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool'])
4
+
5
+ export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
6
+
7
+ export const fan_mode_setting = z.enum(['auto', 'on'])
8
+
9
+ export type FanModeSetting = z.infer<typeof fan_mode_setting>
@@ -13,6 +13,7 @@ export {
13
13
  custom_metadata,
14
14
  device,
15
15
  device_provider,
16
+ noise_threshold,
16
17
  seam_event,
17
18
  unmanaged_access_code,
18
19
  unmanaged_device,
@@ -1 +0,0 @@
1
- {"version":3,"file":"noise-threshold.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/noise-threshold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,mBAAmB;IAChD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,mBAAmB;IAC9C,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE;CACrC,CAAC,CAAA"}