@seamapi/types 0.17.0 → 0.18.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 (37) hide show
  1. package/lib/seam/connect/route-types.d.ts +876 -12
  2. package/lib/seam/connect/unstable/model-types.d.ts +1 -1
  3. package/lib/seam/connect/unstable/models/capability-properties/access-code.d.ts +70 -0
  4. package/lib/seam/connect/unstable/models/capability-properties/access-code.js +28 -0
  5. package/lib/seam/connect/unstable/models/capability-properties/access-code.js.map +1 -0
  6. package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +286 -0
  7. package/lib/seam/connect/unstable/models/capability-properties/index.js +10 -0
  8. package/lib/seam/connect/unstable/models/capability-properties/index.js.map +1 -0
  9. package/lib/seam/connect/unstable/models/capability-properties/lock.d.ts +24 -0
  10. package/lib/seam/connect/unstable/models/capability-properties/lock.js +11 -0
  11. package/lib/seam/connect/unstable/models/capability-properties/lock.js.map +1 -0
  12. package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +302 -0
  13. package/lib/seam/connect/unstable/models/capability-properties/thermostat.js +46 -0
  14. package/lib/seam/connect/unstable/models/capability-properties/thermostat.js.map +1 -0
  15. package/lib/seam/connect/unstable/models/device-metadata.d.ts +722 -0
  16. package/lib/seam/connect/unstable/models/device-metadata.js +143 -0
  17. package/lib/seam/connect/unstable/models/device-metadata.js.map +1 -0
  18. package/lib/seam/connect/unstable/models/index.d.ts +1 -0
  19. package/lib/seam/connect/unstable/models/index.js +1 -0
  20. package/lib/seam/connect/unstable/models/index.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/managed-device.d.ts +1549 -7
  22. package/lib/seam/connect/unstable/models/managed-device.js +31 -9
  23. package/lib/seam/connect/unstable/models/managed-device.js.map +1 -1
  24. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  25. package/lib/seam/connect/unstable/schemas.js +1 -1
  26. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  27. package/package.json +4 -1
  28. package/src/lib/seam/connect/route-types.ts +1200 -12
  29. package/src/lib/seam/connect/unstable/model-types.ts +4 -0
  30. package/src/lib/seam/connect/unstable/models/capability-properties/access-code.ts +33 -0
  31. package/src/lib/seam/connect/unstable/models/capability-properties/index.ts +26 -0
  32. package/src/lib/seam/connect/unstable/models/capability-properties/lock.ts +11 -0
  33. package/src/lib/seam/connect/unstable/models/capability-properties/thermostat.ts +53 -0
  34. package/src/lib/seam/connect/unstable/models/device-metadata.ts +162 -0
  35. package/src/lib/seam/connect/unstable/models/index.ts +1 -0
  36. package/src/lib/seam/connect/unstable/models/managed-device.ts +44 -9
  37. package/src/lib/seam/connect/unstable/schemas.ts +5 -1
@@ -1 +1 @@
1
- export type { AnyDeviceType, Capabilities, LockDeviceType, ManagedDevice, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedDevice, } from './models/index.js';
1
+ export type { AccessCodeConstraint, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, LockDeviceType, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedDevice, } from './models/index.js';
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ export declare const access_code_constraint: z.ZodUnion<[z.ZodObject<{
3
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
6
+ }, {
7
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
8
+ }>, z.ZodObject<{
9
+ constraint_type: z.ZodEnum<["name_length"]>;
10
+ min_length: z.ZodOptional<z.ZodNumber>;
11
+ max_length: z.ZodOptional<z.ZodNumber>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ constraint_type: "name_length";
14
+ min_length?: number | undefined;
15
+ max_length?: number | undefined;
16
+ }, {
17
+ constraint_type: "name_length";
18
+ min_length?: number | undefined;
19
+ max_length?: number | undefined;
20
+ }>]>;
21
+ export type AccessCodeConstraint = z.infer<typeof access_code_constraint>;
22
+ export declare const access_code_capability_properties: z.ZodObject<{
23
+ code_constraints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
24
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
27
+ }, {
28
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
29
+ }>, z.ZodObject<{
30
+ constraint_type: z.ZodEnum<["name_length"]>;
31
+ min_length: z.ZodOptional<z.ZodNumber>;
32
+ max_length: z.ZodOptional<z.ZodNumber>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ constraint_type: "name_length";
35
+ min_length?: number | undefined;
36
+ max_length?: number | undefined;
37
+ }, {
38
+ constraint_type: "name_length";
39
+ min_length?: number | undefined;
40
+ max_length?: number | undefined;
41
+ }>]>, "many">>;
42
+ supported_code_lengths: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
43
+ max_active_codes_supported: z.ZodOptional<z.ZodNumber>;
44
+ supports_backup_access_code_pool: z.ZodOptional<z.ZodBoolean>;
45
+ has_native_entry_events: z.ZodOptional<z.ZodBoolean>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ code_constraints?: ({
48
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
49
+ } | {
50
+ constraint_type: "name_length";
51
+ min_length?: number | undefined;
52
+ max_length?: number | undefined;
53
+ })[] | undefined;
54
+ supported_code_lengths?: number[] | undefined;
55
+ max_active_codes_supported?: number | undefined;
56
+ supports_backup_access_code_pool?: boolean | undefined;
57
+ has_native_entry_events?: boolean | undefined;
58
+ }, {
59
+ code_constraints?: ({
60
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
61
+ } | {
62
+ constraint_type: "name_length";
63
+ min_length?: number | undefined;
64
+ max_length?: number | undefined;
65
+ })[] | undefined;
66
+ supported_code_lengths?: number[] | undefined;
67
+ max_active_codes_supported?: number | undefined;
68
+ supports_backup_access_code_pool?: boolean | undefined;
69
+ has_native_entry_events?: boolean | undefined;
70
+ }>;
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ const simple_access_code_constraint = z.object({
3
+ constraint_type: z.enum([
4
+ 'no_zeros',
5
+ 'cannot_start_with_12',
6
+ 'no_triple_consecutive_ints',
7
+ 'cannot_specify_pin_code',
8
+ 'pin_code_matches_existing_set',
9
+ 'start_date_in_future', // Kwikset
10
+ ]),
11
+ });
12
+ const complex_access_code_constraint = z.object({
13
+ constraint_type: z.enum(['name_length']),
14
+ min_length: z.number().optional(),
15
+ max_length: z.number().optional(),
16
+ });
17
+ export const access_code_constraint = z.union([
18
+ simple_access_code_constraint,
19
+ complex_access_code_constraint,
20
+ ]);
21
+ export const access_code_capability_properties = z.object({
22
+ code_constraints: z.array(access_code_constraint).optional(),
23
+ supported_code_lengths: z.array(z.number()).optional(),
24
+ max_active_codes_supported: z.number().optional(),
25
+ supports_backup_access_code_pool: z.boolean().optional(),
26
+ has_native_entry_events: z.boolean().optional(),
27
+ });
28
+ //# sourceMappingURL=access-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;QACtB,UAAU;QACV,sBAAsB;QACtB,4BAA4B;QAC5B,yBAAyB;QACzB,+BAA+B;QAC/B,sBAAsB,EAAE,UAAU;KACnC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;IACxC,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,6BAA6B;IAC7B,8BAA8B;CAC/B,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE;IAC5D,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"}
@@ -0,0 +1,286 @@
1
+ import { access_code_capability_properties } from './access-code.js';
2
+ import { lock_capability_properties } from './lock.js';
3
+ import { climate_setting, climate_setting_schedule, hvac_mode_setting, thermostat_capability_properties } from './thermostat.js';
4
+ export { access_code_capability_properties, climate_setting, climate_setting_schedule, hvac_mode_setting, lock_capability_properties, thermostat_capability_properties, };
5
+ export declare const capability_properties: import("zod").ZodObject<{
6
+ code_constraints: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
7
+ constraint_type: import("zod").ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
10
+ }, {
11
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
12
+ }>, import("zod").ZodObject<{
13
+ constraint_type: import("zod").ZodEnum<["name_length"]>;
14
+ min_length: import("zod").ZodOptional<import("zod").ZodNumber>;
15
+ max_length: import("zod").ZodOptional<import("zod").ZodNumber>;
16
+ }, "strip", import("zod").ZodTypeAny, {
17
+ constraint_type: "name_length";
18
+ min_length?: number | undefined;
19
+ max_length?: number | undefined;
20
+ }, {
21
+ constraint_type: "name_length";
22
+ min_length?: number | undefined;
23
+ max_length?: number | undefined;
24
+ }>]>, "many">>>;
25
+ supported_code_lengths: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>>;
26
+ max_active_codes_supported: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
27
+ supports_backup_access_code_pool: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
28
+ has_native_entry_events: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
29
+ locked: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
30
+ keypad_battery: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
31
+ level: import("zod").ZodNumber;
32
+ }, "strip", import("zod").ZodTypeAny, {
33
+ level: number;
34
+ }, {
35
+ level: number;
36
+ }>>>;
37
+ door_open: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
38
+ temperature_fahrenheit: import("zod").ZodOptional<import("zod").ZodNumber>;
39
+ temperature_celsius: import("zod").ZodOptional<import("zod").ZodNumber>;
40
+ relative_humidity: import("zod").ZodOptional<import("zod").ZodNumber>;
41
+ can_enable_automatic_heating: import("zod").ZodOptional<import("zod").ZodBoolean>;
42
+ can_enable_automatic_cooling: import("zod").ZodOptional<import("zod").ZodBoolean>;
43
+ available_hvac_mode_settings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["off", "heat", "cool", "heatcool"]>, "many">>;
44
+ is_heating: import("zod").ZodOptional<import("zod").ZodBoolean>;
45
+ is_cooling: import("zod").ZodOptional<import("zod").ZodBoolean>;
46
+ is_fan_running: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
+ is_temporary_manual_override_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
+ current_climate_setting: import("zod").ZodOptional<import("zod").ZodObject<{
49
+ automatic_heating_enabled: import("zod").ZodBoolean;
50
+ automatic_cooling_enabled: import("zod").ZodBoolean;
51
+ hvac_mode_setting: import("zod").ZodEnum<["off", "heat", "cool", "heatcool"]>;
52
+ cooling_set_point_celsius: import("zod").ZodOptional<import("zod").ZodNumber>;
53
+ heating_set_point_celsius: import("zod").ZodOptional<import("zod").ZodNumber>;
54
+ cooling_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodNumber>;
55
+ heating_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodNumber>;
56
+ manual_override_allowed: import("zod").ZodBoolean;
57
+ }, "strip", import("zod").ZodTypeAny, {
58
+ automatic_heating_enabled: boolean;
59
+ automatic_cooling_enabled: boolean;
60
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
61
+ manual_override_allowed: boolean;
62
+ cooling_set_point_celsius?: number | undefined;
63
+ heating_set_point_celsius?: number | undefined;
64
+ cooling_set_point_fahrenheit?: number | undefined;
65
+ heating_set_point_fahrenheit?: number | undefined;
66
+ }, {
67
+ automatic_heating_enabled: boolean;
68
+ automatic_cooling_enabled: boolean;
69
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
70
+ manual_override_allowed: boolean;
71
+ cooling_set_point_celsius?: number | undefined;
72
+ heating_set_point_celsius?: number | undefined;
73
+ cooling_set_point_fahrenheit?: number | undefined;
74
+ heating_set_point_fahrenheit?: number | undefined;
75
+ }>>;
76
+ default_climate_setting: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
77
+ automatic_heating_enabled: import("zod").ZodBoolean;
78
+ automatic_cooling_enabled: import("zod").ZodBoolean;
79
+ hvac_mode_setting: import("zod").ZodEnum<["off", "heat", "cool", "heatcool"]>;
80
+ cooling_set_point_celsius: import("zod").ZodOptional<import("zod").ZodNumber>;
81
+ heating_set_point_celsius: import("zod").ZodOptional<import("zod").ZodNumber>;
82
+ cooling_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodNumber>;
83
+ heating_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodNumber>;
84
+ manual_override_allowed: import("zod").ZodBoolean;
85
+ }, "strip", import("zod").ZodTypeAny, {
86
+ automatic_heating_enabled: boolean;
87
+ automatic_cooling_enabled: boolean;
88
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
89
+ manual_override_allowed: boolean;
90
+ cooling_set_point_celsius?: number | undefined;
91
+ heating_set_point_celsius?: number | undefined;
92
+ cooling_set_point_fahrenheit?: number | undefined;
93
+ heating_set_point_fahrenheit?: number | undefined;
94
+ }, {
95
+ automatic_heating_enabled: boolean;
96
+ automatic_cooling_enabled: boolean;
97
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
98
+ manual_override_allowed: boolean;
99
+ cooling_set_point_celsius?: number | undefined;
100
+ heating_set_point_celsius?: number | undefined;
101
+ cooling_set_point_fahrenheit?: number | undefined;
102
+ heating_set_point_fahrenheit?: number | undefined;
103
+ }>>>;
104
+ is_climate_setting_schedule_active: import("zod").ZodOptional<import("zod").ZodBoolean>;
105
+ active_climate_setting_schedule: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
106
+ name: import("zod").ZodOptional<import("zod").ZodString>;
107
+ created_at: import("zod").ZodString;
108
+ climate_setting_schedule_id: import("zod").ZodString;
109
+ schedule_type: import("zod").ZodLiteral<"time_bound">;
110
+ device_id: import("zod").ZodString;
111
+ schedule_starts_at: import("zod").ZodString;
112
+ schedule_ends_at: import("zod").ZodString;
113
+ automatic_heating_enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
114
+ automatic_cooling_enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
115
+ hvac_mode_setting: import("zod").ZodOptional<import("zod").ZodEnum<["off", "heat", "cool", "heatcool"]>>;
116
+ cooling_set_point_celsius: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
117
+ heating_set_point_celsius: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
118
+ cooling_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
119
+ heating_set_point_fahrenheit: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
120
+ manual_override_allowed: import("zod").ZodOptional<import("zod").ZodBoolean>;
121
+ }, "strip", import("zod").ZodTypeAny, {
122
+ created_at: string;
123
+ climate_setting_schedule_id: string;
124
+ schedule_type: "time_bound";
125
+ device_id: string;
126
+ schedule_starts_at: string;
127
+ schedule_ends_at: string;
128
+ name?: string | undefined;
129
+ automatic_heating_enabled?: boolean | undefined;
130
+ automatic_cooling_enabled?: boolean | undefined;
131
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
132
+ cooling_set_point_celsius?: number | undefined;
133
+ heating_set_point_celsius?: number | undefined;
134
+ cooling_set_point_fahrenheit?: number | undefined;
135
+ heating_set_point_fahrenheit?: number | undefined;
136
+ manual_override_allowed?: boolean | undefined;
137
+ }, {
138
+ created_at: string;
139
+ climate_setting_schedule_id: string;
140
+ schedule_type: "time_bound";
141
+ device_id: string;
142
+ schedule_starts_at: string;
143
+ schedule_ends_at: string;
144
+ name?: string | undefined;
145
+ automatic_heating_enabled?: boolean | undefined;
146
+ automatic_cooling_enabled?: boolean | undefined;
147
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
148
+ cooling_set_point_celsius?: number | undefined;
149
+ heating_set_point_celsius?: number | undefined;
150
+ cooling_set_point_fahrenheit?: number | undefined;
151
+ heating_set_point_fahrenheit?: number | undefined;
152
+ manual_override_allowed?: boolean | undefined;
153
+ }>>>;
154
+ }, "strip", import("zod").ZodTypeAny, {
155
+ code_constraints?: ({
156
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
157
+ } | {
158
+ constraint_type: "name_length";
159
+ min_length?: number | undefined;
160
+ max_length?: number | undefined;
161
+ })[] | undefined;
162
+ supported_code_lengths?: number[] | undefined;
163
+ max_active_codes_supported?: number | undefined;
164
+ supports_backup_access_code_pool?: boolean | undefined;
165
+ has_native_entry_events?: boolean | undefined;
166
+ locked?: boolean | undefined;
167
+ keypad_battery?: {
168
+ level: number;
169
+ } | undefined;
170
+ door_open?: boolean | undefined;
171
+ temperature_fahrenheit?: number | undefined;
172
+ temperature_celsius?: number | undefined;
173
+ relative_humidity?: number | undefined;
174
+ can_enable_automatic_heating?: boolean | undefined;
175
+ can_enable_automatic_cooling?: boolean | undefined;
176
+ available_hvac_mode_settings?: ("off" | "heat" | "cool" | "heatcool")[] | undefined;
177
+ is_heating?: boolean | undefined;
178
+ is_cooling?: boolean | undefined;
179
+ is_fan_running?: boolean | undefined;
180
+ is_temporary_manual_override_active?: boolean | undefined;
181
+ current_climate_setting?: {
182
+ automatic_heating_enabled: boolean;
183
+ automatic_cooling_enabled: boolean;
184
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
185
+ manual_override_allowed: boolean;
186
+ cooling_set_point_celsius?: number | undefined;
187
+ heating_set_point_celsius?: number | undefined;
188
+ cooling_set_point_fahrenheit?: number | undefined;
189
+ heating_set_point_fahrenheit?: number | undefined;
190
+ } | undefined;
191
+ default_climate_setting?: {
192
+ automatic_heating_enabled: boolean;
193
+ automatic_cooling_enabled: boolean;
194
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
195
+ manual_override_allowed: boolean;
196
+ cooling_set_point_celsius?: number | undefined;
197
+ heating_set_point_celsius?: number | undefined;
198
+ cooling_set_point_fahrenheit?: number | undefined;
199
+ heating_set_point_fahrenheit?: number | undefined;
200
+ } | undefined;
201
+ is_climate_setting_schedule_active?: boolean | undefined;
202
+ active_climate_setting_schedule?: {
203
+ created_at: string;
204
+ climate_setting_schedule_id: string;
205
+ schedule_type: "time_bound";
206
+ device_id: string;
207
+ schedule_starts_at: string;
208
+ schedule_ends_at: string;
209
+ name?: string | undefined;
210
+ automatic_heating_enabled?: boolean | undefined;
211
+ automatic_cooling_enabled?: boolean | undefined;
212
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
213
+ cooling_set_point_celsius?: number | undefined;
214
+ heating_set_point_celsius?: number | undefined;
215
+ cooling_set_point_fahrenheit?: number | undefined;
216
+ heating_set_point_fahrenheit?: number | undefined;
217
+ manual_override_allowed?: boolean | undefined;
218
+ } | undefined;
219
+ }, {
220
+ code_constraints?: ({
221
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
222
+ } | {
223
+ constraint_type: "name_length";
224
+ min_length?: number | undefined;
225
+ max_length?: number | undefined;
226
+ })[] | undefined;
227
+ supported_code_lengths?: number[] | undefined;
228
+ max_active_codes_supported?: number | undefined;
229
+ supports_backup_access_code_pool?: boolean | undefined;
230
+ has_native_entry_events?: boolean | undefined;
231
+ locked?: boolean | undefined;
232
+ keypad_battery?: {
233
+ level: number;
234
+ } | undefined;
235
+ door_open?: boolean | undefined;
236
+ temperature_fahrenheit?: number | undefined;
237
+ temperature_celsius?: number | undefined;
238
+ relative_humidity?: number | undefined;
239
+ can_enable_automatic_heating?: boolean | undefined;
240
+ can_enable_automatic_cooling?: boolean | undefined;
241
+ available_hvac_mode_settings?: ("off" | "heat" | "cool" | "heatcool")[] | undefined;
242
+ is_heating?: boolean | undefined;
243
+ is_cooling?: boolean | undefined;
244
+ is_fan_running?: boolean | undefined;
245
+ is_temporary_manual_override_active?: boolean | undefined;
246
+ current_climate_setting?: {
247
+ automatic_heating_enabled: boolean;
248
+ automatic_cooling_enabled: boolean;
249
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
250
+ manual_override_allowed: boolean;
251
+ cooling_set_point_celsius?: number | undefined;
252
+ heating_set_point_celsius?: number | undefined;
253
+ cooling_set_point_fahrenheit?: number | undefined;
254
+ heating_set_point_fahrenheit?: number | undefined;
255
+ } | undefined;
256
+ default_climate_setting?: {
257
+ automatic_heating_enabled: boolean;
258
+ automatic_cooling_enabled: boolean;
259
+ hvac_mode_setting: "off" | "heat" | "cool" | "heatcool";
260
+ manual_override_allowed: boolean;
261
+ cooling_set_point_celsius?: number | undefined;
262
+ heating_set_point_celsius?: number | undefined;
263
+ cooling_set_point_fahrenheit?: number | undefined;
264
+ heating_set_point_fahrenheit?: number | undefined;
265
+ } | undefined;
266
+ is_climate_setting_schedule_active?: boolean | undefined;
267
+ active_climate_setting_schedule?: {
268
+ created_at: string;
269
+ climate_setting_schedule_id: string;
270
+ schedule_type: "time_bound";
271
+ device_id: string;
272
+ schedule_starts_at: string;
273
+ schedule_ends_at: string;
274
+ name?: string | undefined;
275
+ automatic_heating_enabled?: boolean | undefined;
276
+ automatic_cooling_enabled?: boolean | undefined;
277
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heatcool" | undefined;
278
+ cooling_set_point_celsius?: number | undefined;
279
+ heating_set_point_celsius?: number | undefined;
280
+ cooling_set_point_fahrenheit?: number | undefined;
281
+ heating_set_point_fahrenheit?: number | undefined;
282
+ manual_override_allowed?: boolean | undefined;
283
+ } | undefined;
284
+ }>;
285
+ export type { AccessCodeConstraint } from './access-code.js';
286
+ export type { ClimateSetting } from './thermostat.js';
@@ -0,0 +1,10 @@
1
+ import { access_code_capability_properties } from './access-code.js';
2
+ import { lock_capability_properties } from './lock.js';
3
+ import { climate_setting, climate_setting_schedule, hvac_mode_setting, thermostat_capability_properties, } from './thermostat.js';
4
+ export { access_code_capability_properties, climate_setting, climate_setting_schedule, hvac_mode_setting, lock_capability_properties, thermostat_capability_properties, };
5
+ // todo: discriminate based on capability and remove intersection type
6
+ export const capability_properties = access_code_capability_properties
7
+ .partial()
8
+ .merge(lock_capability_properties.partial())
9
+ .merge(thermostat_capability_properties.partial());
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/capability-properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,iCAAiC,EACjC,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,gCAAgC,GACjC,CAAA;AAED,sEAAsE;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,iCAAiC;KACnE,OAAO,EAAE;KACT,KAAK,CAAC,0BAA0B,CAAC,OAAO,EAAE,CAAC;KAC3C,KAAK,CAAC,gCAAgC,CAAC,OAAO,EAAE,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const lock_capability_properties: z.ZodObject<{
3
+ locked: z.ZodOptional<z.ZodBoolean>;
4
+ keypad_battery: z.ZodOptional<z.ZodObject<{
5
+ level: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ level: number;
8
+ }, {
9
+ level: number;
10
+ }>>;
11
+ door_open: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ locked?: boolean | undefined;
14
+ keypad_battery?: {
15
+ level: number;
16
+ } | undefined;
17
+ door_open?: boolean | undefined;
18
+ }, {
19
+ locked?: boolean | undefined;
20
+ keypad_battery?: {
21
+ level: number;
22
+ } | undefined;
23
+ door_open?: boolean | undefined;
24
+ }>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export const lock_capability_properties = z.object({
3
+ locked: z.boolean().optional(),
4
+ keypad_battery: z
5
+ .object({
6
+ level: z.number(),
7
+ })
8
+ .optional(),
9
+ door_open: z.boolean().optional(),
10
+ });
11
+ //# sourceMappingURL=lock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/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"}