@seamapi/types 1.191.0 → 1.193.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 (61) hide show
  1. package/dist/connect.cjs +26 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +110 -58
  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 +50 -0
  15. package/lib/seam/connect/models/events/devices.js +7 -0
  16. package/lib/seam/connect/models/events/devices.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +24 -0
  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/openapi.js +2 -0
  39. package/lib/seam/connect/openapi.js.map +1 -1
  40. package/lib/seam/connect/route-types.d.ts +2 -2
  41. package/lib/seam/connect/schemas.d.ts +1 -1
  42. package/lib/seam/connect/schemas.js +1 -1
  43. package/lib/seam/connect/schemas.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/lib/seam/connect/model-types.ts +1 -0
  46. package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -17
  47. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +5 -38
  48. package/src/lib/seam/connect/models/devices/index.ts +0 -1
  49. package/src/lib/seam/connect/models/events/devices.ts +12 -0
  50. package/src/lib/seam/connect/models/index.ts +2 -0
  51. package/src/lib/seam/connect/models/noise-sensors/index.ts +1 -0
  52. package/src/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.ts +2 -0
  53. package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +22 -0
  54. package/src/lib/seam/connect/models/thermostats/climate-setting.ts +16 -0
  55. package/src/lib/seam/connect/models/thermostats/index.ts +3 -0
  56. package/src/lib/seam/connect/models/thermostats/modes.ts +9 -0
  57. package/src/lib/seam/connect/openapi.ts +2 -0
  58. package/src/lib/seam/connect/route-types.ts +2 -0
  59. package/src/lib/seam/connect/schemas.ts +1 -0
  60. package/lib/seam/connect/models/devices/noise-threshold.js.map +0 -1
  61. /package/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.js +0 -0
@@ -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"}
@@ -9076,6 +9076,7 @@ export default {
9076
9076
  'access_code.unmanaged.removed',
9077
9077
  'lock.locked',
9078
9078
  'lock.unlocked',
9079
+ 'lock.access_denied',
9079
9080
  'phone.deactivated',
9080
9081
  'connected_account.connected',
9081
9082
  'connected_account.successful_login',
@@ -9140,6 +9141,7 @@ export default {
9140
9141
  'access_code.unmanaged.removed',
9141
9142
  'lock.locked',
9142
9143
  'lock.unlocked',
9144
+ 'lock.access_denied',
9143
9145
  'phone.deactivated',
9144
9146
  'connected_account.connected',
9145
9147
  'connected_account.successful_login',