@seamapi/types 1.191.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.
- package/dist/connect.cjs +16 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +84 -56
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +2 -3
- package/lib/seam/connect/models/devices/capability-properties/index.js +2 -2
- package/lib/seam/connect/models/devices/capability-properties/index.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +0 -86
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +1 -26
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/index.d.ts +0 -1
- package/lib/seam/connect/models/devices/index.js +0 -1
- package/lib/seam/connect/models/devices/index.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +2 -0
- package/lib/seam/connect/models/index.js +2 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/noise-sensors/index.d.ts +1 -0
- package/lib/seam/connect/models/noise-sensors/index.js +2 -0
- package/lib/seam/connect/models/noise-sensors/index.js.map +1 -0
- package/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.d.ts +1 -0
- package/lib/seam/connect/models/noise-sensors/noise-threshold.js.map +1 -0
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +54 -0
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js +17 -0
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +1 -0
- package/lib/seam/connect/models/thermostats/climate-setting.d.ts +30 -0
- package/lib/seam/connect/models/thermostats/climate-setting.js +13 -0
- package/lib/seam/connect/models/thermostats/climate-setting.js.map +1 -0
- package/lib/seam/connect/models/thermostats/index.d.ts +3 -0
- package/lib/seam/connect/models/thermostats/index.js +4 -0
- package/lib/seam/connect/models/thermostats/index.js.map +1 -0
- package/lib/seam/connect/models/thermostats/modes.d.ts +5 -0
- package/lib/seam/connect/models/thermostats/modes.js +4 -0
- package/lib/seam/connect/models/thermostats/modes.js.map +1 -0
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/devices/capability-properties/index.ts +1 -17
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +5 -38
- package/src/lib/seam/connect/models/devices/index.ts +0 -1
- package/src/lib/seam/connect/models/index.ts +2 -0
- package/src/lib/seam/connect/models/noise-sensors/index.ts +1 -0
- package/src/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.ts +2 -0
- package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +22 -0
- package/src/lib/seam/connect/models/thermostats/climate-setting.ts +16 -0
- package/src/lib/seam/connect/models/thermostats/index.ts +3 -0
- package/src/lib/seam/connect/models/thermostats/modes.ts +9 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
- package/lib/seam/connect/models/devices/noise-threshold.js.map +0 -1
- /package/lib/seam/connect/models/{devices → noise-sensors}/noise-threshold.js +0 -0
package/dist/connect.d.cts
CHANGED
|
@@ -1748,60 +1748,6 @@ type ConnectedAccount = z.infer<typeof connected_account>;
|
|
|
1748
1748
|
declare const custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
1749
1749
|
type CustomMetadata = z.output<typeof custom_metadata>;
|
|
1750
1750
|
|
|
1751
|
-
declare const climate_setting_schedule: z.ZodObject<{
|
|
1752
|
-
device_id: z.ZodString;
|
|
1753
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
created_at: z.ZodString;
|
|
1755
|
-
errors: z.ZodAny;
|
|
1756
|
-
climate_setting_schedule_id: z.ZodString;
|
|
1757
|
-
schedule_type: z.ZodLiteral<"time_bound">;
|
|
1758
|
-
schedule_starts_at: z.ZodString;
|
|
1759
|
-
schedule_ends_at: z.ZodString;
|
|
1760
|
-
automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1761
|
-
automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1762
|
-
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
1763
|
-
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1764
|
-
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1765
|
-
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1766
|
-
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1767
|
-
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
1768
|
-
}, "strip", z.ZodTypeAny, {
|
|
1769
|
-
device_id: string;
|
|
1770
|
-
created_at: string;
|
|
1771
|
-
climate_setting_schedule_id: string;
|
|
1772
|
-
schedule_type: "time_bound";
|
|
1773
|
-
schedule_starts_at: string;
|
|
1774
|
-
schedule_ends_at: string;
|
|
1775
|
-
name?: string | undefined;
|
|
1776
|
-
errors?: any;
|
|
1777
|
-
automatic_heating_enabled?: boolean | undefined;
|
|
1778
|
-
automatic_cooling_enabled?: boolean | undefined;
|
|
1779
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1780
|
-
cooling_set_point_celsius?: number | undefined;
|
|
1781
|
-
heating_set_point_celsius?: number | undefined;
|
|
1782
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
1783
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
1784
|
-
manual_override_allowed?: boolean | undefined;
|
|
1785
|
-
}, {
|
|
1786
|
-
device_id: string;
|
|
1787
|
-
created_at: string;
|
|
1788
|
-
climate_setting_schedule_id: string;
|
|
1789
|
-
schedule_type: "time_bound";
|
|
1790
|
-
schedule_starts_at: string;
|
|
1791
|
-
schedule_ends_at: string;
|
|
1792
|
-
name?: string | undefined;
|
|
1793
|
-
errors?: any;
|
|
1794
|
-
automatic_heating_enabled?: boolean | undefined;
|
|
1795
|
-
automatic_cooling_enabled?: boolean | undefined;
|
|
1796
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1797
|
-
cooling_set_point_celsius?: number | undefined;
|
|
1798
|
-
heating_set_point_celsius?: number | undefined;
|
|
1799
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
1800
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
1801
|
-
manual_override_allowed?: boolean | undefined;
|
|
1802
|
-
}>;
|
|
1803
|
-
type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>;
|
|
1804
|
-
|
|
1805
1751
|
declare const device: z.ZodObject<{
|
|
1806
1752
|
device_id: z.ZodString;
|
|
1807
1753
|
created_at: z.ZodString;
|
|
@@ -7189,6 +7135,87 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
7189
7135
|
type SeamEvent = z.infer<typeof seam_event>;
|
|
7190
7136
|
type SeamEventType = SeamEvent['event_type'];
|
|
7191
7137
|
|
|
7138
|
+
declare const noise_threshold: z.ZodObject<{
|
|
7139
|
+
noise_threshold_id: z.ZodString;
|
|
7140
|
+
device_id: z.ZodString;
|
|
7141
|
+
name: z.ZodString;
|
|
7142
|
+
noise_threshold_nrs: z.ZodOptional<z.ZodNumber>;
|
|
7143
|
+
starts_daily_at: z.ZodString;
|
|
7144
|
+
ends_daily_at: z.ZodString;
|
|
7145
|
+
noise_threshold_decibels: z.ZodNumber;
|
|
7146
|
+
}, "strip", z.ZodTypeAny, {
|
|
7147
|
+
device_id: string;
|
|
7148
|
+
name: string;
|
|
7149
|
+
noise_threshold_id: string;
|
|
7150
|
+
starts_daily_at: string;
|
|
7151
|
+
ends_daily_at: string;
|
|
7152
|
+
noise_threshold_decibels: number;
|
|
7153
|
+
noise_threshold_nrs?: number | undefined;
|
|
7154
|
+
}, {
|
|
7155
|
+
device_id: string;
|
|
7156
|
+
name: string;
|
|
7157
|
+
noise_threshold_id: string;
|
|
7158
|
+
starts_daily_at: string;
|
|
7159
|
+
ends_daily_at: string;
|
|
7160
|
+
noise_threshold_decibels: number;
|
|
7161
|
+
noise_threshold_nrs?: number | undefined;
|
|
7162
|
+
}>;
|
|
7163
|
+
type NoiseThreshold = z.infer<typeof noise_threshold>;
|
|
7164
|
+
|
|
7165
|
+
declare const climate_setting_schedule: z.ZodObject<{
|
|
7166
|
+
device_id: z.ZodString;
|
|
7167
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7168
|
+
created_at: z.ZodString;
|
|
7169
|
+
errors: z.ZodAny;
|
|
7170
|
+
climate_setting_schedule_id: z.ZodString;
|
|
7171
|
+
schedule_type: z.ZodLiteral<"time_bound">;
|
|
7172
|
+
schedule_starts_at: z.ZodString;
|
|
7173
|
+
schedule_ends_at: z.ZodString;
|
|
7174
|
+
automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7175
|
+
automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7176
|
+
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
7177
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
7178
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
7179
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
7180
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
7181
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
7182
|
+
}, "strip", z.ZodTypeAny, {
|
|
7183
|
+
device_id: string;
|
|
7184
|
+
created_at: string;
|
|
7185
|
+
climate_setting_schedule_id: string;
|
|
7186
|
+
schedule_type: "time_bound";
|
|
7187
|
+
schedule_starts_at: string;
|
|
7188
|
+
schedule_ends_at: string;
|
|
7189
|
+
name?: string | undefined;
|
|
7190
|
+
errors?: any;
|
|
7191
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
7192
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
7193
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
7194
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7195
|
+
heating_set_point_celsius?: number | undefined;
|
|
7196
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7197
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7198
|
+
manual_override_allowed?: boolean | undefined;
|
|
7199
|
+
}, {
|
|
7200
|
+
device_id: string;
|
|
7201
|
+
created_at: string;
|
|
7202
|
+
climate_setting_schedule_id: string;
|
|
7203
|
+
schedule_type: "time_bound";
|
|
7204
|
+
schedule_starts_at: string;
|
|
7205
|
+
schedule_ends_at: string;
|
|
7206
|
+
name?: string | undefined;
|
|
7207
|
+
errors?: any;
|
|
7208
|
+
automatic_heating_enabled?: boolean | undefined;
|
|
7209
|
+
automatic_cooling_enabled?: boolean | undefined;
|
|
7210
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
7211
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7212
|
+
heating_set_point_celsius?: number | undefined;
|
|
7213
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7214
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7215
|
+
manual_override_allowed?: boolean | undefined;
|
|
7216
|
+
}>;
|
|
7217
|
+
type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>;
|
|
7218
|
+
|
|
7192
7219
|
declare const user_identity: z.ZodObject<{
|
|
7193
7220
|
user_identity_id: z.ZodString;
|
|
7194
7221
|
user_identity_key: z.ZodNullable<z.ZodString>;
|
|
@@ -7272,6 +7299,7 @@ declare const schemas_connected_account: typeof connected_account;
|
|
|
7272
7299
|
declare const schemas_custom_metadata: typeof custom_metadata;
|
|
7273
7300
|
declare const schemas_device: typeof device;
|
|
7274
7301
|
declare const schemas_device_provider: typeof device_provider;
|
|
7302
|
+
declare const schemas_noise_threshold: typeof noise_threshold;
|
|
7275
7303
|
declare const schemas_seam_event: typeof seam_event;
|
|
7276
7304
|
declare const schemas_unmanaged_access_code: typeof unmanaged_access_code;
|
|
7277
7305
|
declare const schemas_unmanaged_device: typeof unmanaged_device;
|
|
@@ -7279,7 +7307,7 @@ declare const schemas_user_identity: typeof user_identity;
|
|
|
7279
7307
|
declare const schemas_webhook: typeof webhook;
|
|
7280
7308
|
declare const schemas_workspace: typeof workspace;
|
|
7281
7309
|
declare namespace schemas {
|
|
7282
|
-
export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_client_session as client_session, schemas_climate_setting_schedule as climate_setting_schedule, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_device as device, schemas_device_provider as device_provider, schemas_seam_event as seam_event, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
|
|
7310
|
+
export { schemas_access_code as access_code, schemas_acs_access_group as acs_access_group, schemas_acs_credential as acs_credential, schemas_acs_entrance as acs_entrance, schemas_acs_system as acs_system, schemas_acs_user as acs_user, schemas_action_attempt as action_attempt, schemas_client_session as client_session, schemas_climate_setting_schedule as climate_setting_schedule, schemas_connect_webview as connect_webview, schemas_connected_account as connected_account, schemas_custom_metadata as custom_metadata, schemas_device as device, schemas_device_provider as device_provider, schemas_noise_threshold as noise_threshold, schemas_seam_event as seam_event, schemas_unmanaged_access_code as unmanaged_access_code, schemas_unmanaged_device as unmanaged_device, schemas_user_identity as user_identity, schemas_webhook as webhook, schemas_workspace as workspace };
|
|
7283
7311
|
}
|
|
7284
7312
|
|
|
7285
7313
|
declare const _default: {
|
|
@@ -42277,4 +42305,4 @@ type RouteRequestParams<Path extends keyof Routes> = Routes[Path]['queryParams']
|
|
|
42277
42305
|
|
|
42278
42306
|
declare const routes: {};
|
|
42279
42307
|
|
|
42280
|
-
export { type AccessCode, type AcsAccessGroup, type AcsCredential, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type ClientSession, type ClimateSettingSchedule, type ConnectWebview, type ConnectedAccount, type CustomMetadata, type Device, type DeviceProvider, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
|
|
42308
|
+
export { type AccessCode, type AcsAccessGroup, type AcsCredential, type AcsEntrance, type AcsSystem, type AcsUser, type ActionAttempt, type ClientSession, type ClimateSettingSchedule, type ConnectWebview, type ConnectedAccount, type CustomMetadata, type Device, type DeviceProvider, type NoiseThreshold, type RouteRequestBody, type RouteRequestParams, type RouteResponse, type Routes, type SeamEvent, type SeamEventType, type UnmanagedAccessCode, type UnmanagedDevice, type UserIdentity, type Webhook, type Workspace, _default as openapi, routes, schemas };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AccessCode, AcsAccessGroup, AcsCredential, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, ClientSession, ClimateSettingSchedule, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceProvider, SeamEvent, SeamEventType, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
1
|
+
export type { AccessCode, AcsAccessGroup, AcsCredential, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, ClientSession, ClimateSettingSchedule, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceProvider, NoiseThreshold, SeamEvent, SeamEventType, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { access_code_capability_properties, access_code_code_constraint } from './access-code.js';
|
|
3
3
|
import { lock_capability_properties } from './lock.js';
|
|
4
|
-
import {
|
|
5
|
-
export { access_code_capability_properties, access_code_code_constraint,
|
|
4
|
+
import { thermostat_capability_properties } from './thermostat.js';
|
|
5
|
+
export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, thermostat_capability_properties, };
|
|
6
6
|
export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
|
|
7
7
|
_experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
8
8
|
code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -816,4 +816,3 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
|
|
|
816
816
|
is_cooling_available?: true | undefined;
|
|
817
817
|
}>]>>;
|
|
818
818
|
export type { AccessCodeConstraint } from './access-code.js';
|
|
819
|
-
export type { ClimateSetting, ClimateSettingSchedule, FanModeSetting, HvacModeSetting, } from './thermostat.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { access_code_capability_properties, access_code_code_constraint, } from './access-code.js';
|
|
3
3
|
import { lock_capability_properties } from './lock.js';
|
|
4
|
-
import {
|
|
5
|
-
export { access_code_capability_properties, access_code_code_constraint,
|
|
4
|
+
import { thermostat_capability_properties } from './thermostat.js';
|
|
5
|
+
export { access_code_capability_properties, access_code_code_constraint, lock_capability_properties, thermostat_capability_properties, };
|
|
6
6
|
// todo: discriminate based on capability and remove intersection type
|
|
7
7
|
export const capability_properties = z.intersection(access_code_capability_properties
|
|
8
8
|
.partial()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,GACjC,CAAA;AAED,sEAAsE;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CACjD,iCAAiC;KAC9B,OAAO,EAAE;KACT,KAAK,CAAC,0BAA0B,CAAC,OAAO,EAAE,CAAC,EAC9C,gCAAgC,CACjC,CAAA"}
|
|
@@ -1,90 +1,4 @@
|
|
|
1
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>;
|
|
6
|
-
export declare const climate_setting: z.ZodObject<{
|
|
7
|
-
automatic_heating_enabled: z.ZodBoolean;
|
|
8
|
-
automatic_cooling_enabled: z.ZodBoolean;
|
|
9
|
-
hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
|
|
10
|
-
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
manual_override_allowed: z.ZodBoolean;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
automatic_heating_enabled: boolean;
|
|
17
|
-
automatic_cooling_enabled: boolean;
|
|
18
|
-
hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
|
|
19
|
-
manual_override_allowed: boolean;
|
|
20
|
-
cooling_set_point_celsius?: number | undefined;
|
|
21
|
-
heating_set_point_celsius?: number | undefined;
|
|
22
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
23
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
automatic_heating_enabled: boolean;
|
|
26
|
-
automatic_cooling_enabled: boolean;
|
|
27
|
-
hvac_mode_setting: "off" | "heat" | "cool" | "heat_cool";
|
|
28
|
-
manual_override_allowed: boolean;
|
|
29
|
-
cooling_set_point_celsius?: number | undefined;
|
|
30
|
-
heating_set_point_celsius?: number | undefined;
|
|
31
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
32
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export type ClimateSetting = z.infer<typeof climate_setting>;
|
|
35
|
-
export declare const climate_setting_schedule: z.ZodObject<{
|
|
36
|
-
name: z.ZodOptional<z.ZodString>;
|
|
37
|
-
device_id: z.ZodString;
|
|
38
|
-
created_at: z.ZodString;
|
|
39
|
-
errors: z.ZodAny;
|
|
40
|
-
climate_setting_schedule_id: z.ZodString;
|
|
41
|
-
schedule_type: z.ZodLiteral<"time_bound">;
|
|
42
|
-
schedule_starts_at: z.ZodString;
|
|
43
|
-
schedule_ends_at: z.ZodString;
|
|
44
|
-
automatic_heating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
automatic_cooling_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
47
|
-
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
48
|
-
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
49
|
-
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
-
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
51
|
-
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
device_id: string;
|
|
54
|
-
created_at: string;
|
|
55
|
-
climate_setting_schedule_id: string;
|
|
56
|
-
schedule_type: "time_bound";
|
|
57
|
-
schedule_starts_at: string;
|
|
58
|
-
schedule_ends_at: string;
|
|
59
|
-
name?: string | undefined;
|
|
60
|
-
errors?: any;
|
|
61
|
-
automatic_heating_enabled?: boolean | undefined;
|
|
62
|
-
automatic_cooling_enabled?: boolean | undefined;
|
|
63
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
64
|
-
cooling_set_point_celsius?: number | undefined;
|
|
65
|
-
heating_set_point_celsius?: number | undefined;
|
|
66
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
67
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
68
|
-
manual_override_allowed?: boolean | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
device_id: string;
|
|
71
|
-
created_at: string;
|
|
72
|
-
climate_setting_schedule_id: string;
|
|
73
|
-
schedule_type: "time_bound";
|
|
74
|
-
schedule_starts_at: string;
|
|
75
|
-
schedule_ends_at: string;
|
|
76
|
-
name?: string | undefined;
|
|
77
|
-
errors?: any;
|
|
78
|
-
automatic_heating_enabled?: boolean | undefined;
|
|
79
|
-
automatic_cooling_enabled?: boolean | undefined;
|
|
80
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
81
|
-
cooling_set_point_celsius?: number | undefined;
|
|
82
|
-
heating_set_point_celsius?: number | undefined;
|
|
83
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
84
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
85
|
-
manual_override_allowed?: boolean | undefined;
|
|
86
|
-
}>;
|
|
87
|
-
export type ClimateSettingSchedule = z.infer<typeof climate_setting_schedule>;
|
|
88
2
|
export declare const cooling_thermostat_capability_properties: z.ZodObject<{
|
|
89
3
|
temperature_fahrenheit: z.ZodNumber;
|
|
90
4
|
temperature_celsius: z.ZodNumber;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const fan_mode_setting = z.enum(['auto', 'on']);
|
|
4
|
-
export const climate_setting = z.object({
|
|
5
|
-
automatic_heating_enabled: z.boolean(),
|
|
6
|
-
automatic_cooling_enabled: z.boolean(),
|
|
7
|
-
hvac_mode_setting,
|
|
8
|
-
cooling_set_point_celsius: z.number().optional(),
|
|
9
|
-
heating_set_point_celsius: z.number().optional(),
|
|
10
|
-
cooling_set_point_fahrenheit: z.number().optional(),
|
|
11
|
-
heating_set_point_fahrenheit: z.number().optional(),
|
|
12
|
-
manual_override_allowed: z.boolean(),
|
|
13
|
-
});
|
|
14
|
-
export const climate_setting_schedule = z
|
|
15
|
-
.object({
|
|
16
|
-
climate_setting_schedule_id: z.string().uuid(),
|
|
17
|
-
schedule_type: z.literal('time_bound'),
|
|
18
|
-
device_id: z.string().uuid(),
|
|
19
|
-
name: z.string().optional(),
|
|
20
|
-
schedule_starts_at: z.string(),
|
|
21
|
-
schedule_ends_at: z.string(),
|
|
22
|
-
created_at: z.string().datetime(),
|
|
23
|
-
errors: z
|
|
24
|
-
.any()
|
|
25
|
-
.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.'),
|
|
26
|
-
})
|
|
27
|
-
.merge(climate_setting.partial());
|
|
2
|
+
import { climate_setting, climate_setting_schedule, fan_mode_setting, hvac_mode_setting, } from '../../thermostats/index.js';
|
|
28
3
|
const base_thermostat_capability_properties = z.object({
|
|
29
4
|
temperature_fahrenheit: z.number(),
|
|
30
5
|
temperature_celsius: z.number(),
|
|
@@ -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,
|
|
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,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACxD,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACtC,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACtC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,gBAAgB;IAEhB;;OAEG;IACH,mCAAmC,EAAE,CAAC,CAAC,OAAO,EAAE;IAEhD;;OAEG;IACH,uBAAuB,EAAE,eAAe;IACxC,uBAAuB,EAAE,eAAe,CAAC,QAAQ,EAAE;IACnD,kCAAkC,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/C,+BAA+B,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wCAAwC,GACnD,qCAAqC,CAAC,KAAK,CACzC,CAAC,CAAC,MAAM,CAAC;IACP,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,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACtC,CAAC,CACH,CAAA;AAEH,MAAM,CAAC,MAAM,wCAAwC,GACnD,qCAAqC,CAAC,KAAK,CACzC,CAAC,CAAC,MAAM,CAAC;IACP,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,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACtC,CAAC,CACH,CAAA;AAEH,MAAM,CAAC,MAAM,gDAAgD,GAC3D,wCAAwC;KACrC,KAAK,CAAC,wCAAwC,CAAC;KAC/C,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;IACP,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,iCAAiC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7C,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC,CACH,CAAA;AAEL,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC;IACtD,gDAAgD,CAAC,OAAO,EAAE;IAC1D,wCAAwC,CAAC,OAAO,EAAE;IAClD,wCAAwC,CAAC,OAAO,EAAE;CACnD,CAAC,CAAA"}
|
|
@@ -4,7 +4,6 @@ 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';
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA"}
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './noise-threshold.js';
|
|
@@ -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"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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