@seamapi/types 1.253.1 → 1.254.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 +30 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +138 -2
- package/lib/seam/connect/models/events/devices.d.ts +91 -1
- package/lib/seam/connect/models/events/devices.js +5 -2
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +86 -0
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +29 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +8 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +32 -0
- package/lib/seam/connect/openapi.js +13 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +20 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +5 -2
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +11 -0
- package/src/lib/seam/connect/openapi.ts +13 -0
- package/src/lib/seam/connect/route-types.ts +22 -0
|
@@ -7220,6 +7220,15 @@ export interface Routes {
|
|
|
7220
7220
|
created_at: string;
|
|
7221
7221
|
occurred_at: string;
|
|
7222
7222
|
event_description: string;
|
|
7223
|
+
thermostat_schedule_id?: string | undefined;
|
|
7224
|
+
is_fallback_climate_preset?: boolean | undefined;
|
|
7225
|
+
climate_preset_key?: string | undefined;
|
|
7226
|
+
hvac_mode_setting?: string | undefined;
|
|
7227
|
+
fan_mode_setting?: string | undefined;
|
|
7228
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7229
|
+
heating_set_point_celsius?: number | undefined;
|
|
7230
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7231
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7223
7232
|
} | undefined;
|
|
7224
7233
|
message?: string | undefined;
|
|
7225
7234
|
};
|
|
@@ -7236,8 +7245,8 @@ export interface Routes {
|
|
|
7236
7245
|
device_ids?: string[] | undefined;
|
|
7237
7246
|
access_code_id?: string | undefined;
|
|
7238
7247
|
access_code_ids?: string[] | undefined;
|
|
7239
|
-
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed') | undefined;
|
|
7240
|
-
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed'> | undefined;
|
|
7248
|
+
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted') | undefined;
|
|
7249
|
+
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted'> | undefined;
|
|
7241
7250
|
connected_account_id?: string | undefined;
|
|
7242
7251
|
connect_webview_id?: string | undefined;
|
|
7243
7252
|
limit?: number;
|
|
@@ -7258,6 +7267,15 @@ export interface Routes {
|
|
|
7258
7267
|
created_at: string;
|
|
7259
7268
|
occurred_at: string;
|
|
7260
7269
|
event_description: string;
|
|
7270
|
+
thermostat_schedule_id?: string | undefined;
|
|
7271
|
+
is_fallback_climate_preset?: boolean | undefined;
|
|
7272
|
+
climate_preset_key?: string | undefined;
|
|
7273
|
+
hvac_mode_setting?: string | undefined;
|
|
7274
|
+
fan_mode_setting?: string | undefined;
|
|
7275
|
+
cooling_set_point_celsius?: number | undefined;
|
|
7276
|
+
heating_set_point_celsius?: number | undefined;
|
|
7277
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
7278
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
7261
7279
|
}>;
|
|
7262
7280
|
};
|
|
7263
7281
|
};
|
package/package.json
CHANGED
|
@@ -356,6 +356,9 @@ export type ThermostatClimatePresetActivatedEvent = z.infer<
|
|
|
356
356
|
>
|
|
357
357
|
|
|
358
358
|
export const thermostat_manually_adjusted_event = device_event
|
|
359
|
+
.extend({
|
|
360
|
+
event_type: z.literal('thermostat.manually_adjusted'),
|
|
361
|
+
})
|
|
359
362
|
.merge(
|
|
360
363
|
climate_setting.pick({
|
|
361
364
|
fan_mode_setting: true,
|
|
@@ -398,6 +401,6 @@ export const device_events = [
|
|
|
398
401
|
lock_locked_event,
|
|
399
402
|
lock_unlocked_event,
|
|
400
403
|
lock_access_denied_event,
|
|
401
|
-
|
|
402
|
-
|
|
404
|
+
thermostat_climate_preset_activated_event,
|
|
405
|
+
thermostat_manually_adjusted_event,
|
|
403
406
|
] as const
|
|
@@ -22,3 +22,14 @@ export type ClimatePreset = z.infer<typeof climate_preset>
|
|
|
22
22
|
export const climate_setting = climate_preset.partial()
|
|
23
23
|
|
|
24
24
|
export type ClimateSetting = z.infer<typeof climate_setting>
|
|
25
|
+
|
|
26
|
+
export const climate_setting_manual = climate_setting.pick({
|
|
27
|
+
fan_mode_setting: true,
|
|
28
|
+
hvac_mode_setting: true,
|
|
29
|
+
cooling_set_point_celsius: true,
|
|
30
|
+
heating_set_point_celsius: true,
|
|
31
|
+
cooling_set_point_fahrenheit: true,
|
|
32
|
+
heating_set_point_fahrenheit: true,
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
export type ClimateSettingManual = z.infer<typeof climate_setting_manual>
|
|
@@ -3824,13 +3824,22 @@ export default {
|
|
|
3824
3824
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3825
3825
|
action_attempt_id: { format: 'uuid', type: 'string' },
|
|
3826
3826
|
client_session_id: { format: 'uuid', type: 'string' },
|
|
3827
|
+
climate_preset_key: { type: 'string' },
|
|
3828
|
+
cooling_set_point_celsius: { format: 'float', type: 'number' },
|
|
3829
|
+
cooling_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
3827
3830
|
created_at: { format: 'date-time', type: 'string' },
|
|
3828
3831
|
device_id: { format: 'uuid', type: 'string' },
|
|
3829
3832
|
enrollment_automation_id: { format: 'uuid', type: 'string' },
|
|
3830
3833
|
event_description: { type: 'string' },
|
|
3831
3834
|
event_id: { format: 'uuid', type: 'string' },
|
|
3832
3835
|
event_type: { type: 'string' },
|
|
3836
|
+
fan_mode_setting: { type: 'string' },
|
|
3837
|
+
heating_set_point_celsius: { format: 'float', type: 'number' },
|
|
3838
|
+
heating_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
3839
|
+
hvac_mode_setting: { type: 'string' },
|
|
3840
|
+
is_fallback_climate_preset: { type: 'boolean' },
|
|
3833
3841
|
occurred_at: { format: 'date-time', type: 'string' },
|
|
3842
|
+
thermostat_schedule_id: { format: 'uuid', type: 'string' },
|
|
3834
3843
|
workspace_id: { format: 'uuid', type: 'string' },
|
|
3835
3844
|
},
|
|
3836
3845
|
required: [
|
|
@@ -11667,6 +11676,8 @@ export default {
|
|
|
11667
11676
|
'action_attempt.lock_door.failed',
|
|
11668
11677
|
'action_attempt.unlock_door.succeeded',
|
|
11669
11678
|
'action_attempt.unlock_door.failed',
|
|
11679
|
+
'thermostat.climate_preset_activated',
|
|
11680
|
+
'thermostat.manually_adjusted',
|
|
11670
11681
|
],
|
|
11671
11682
|
type: 'string',
|
|
11672
11683
|
},
|
|
@@ -11735,6 +11746,8 @@ export default {
|
|
|
11735
11746
|
'action_attempt.lock_door.failed',
|
|
11736
11747
|
'action_attempt.unlock_door.succeeded',
|
|
11737
11748
|
'action_attempt.unlock_door.failed',
|
|
11749
|
+
'thermostat.climate_preset_activated',
|
|
11750
|
+
'thermostat.manually_adjusted',
|
|
11738
11751
|
],
|
|
11739
11752
|
type: 'string',
|
|
11740
11753
|
},
|
|
@@ -8858,6 +8858,15 @@ export interface Routes {
|
|
|
8858
8858
|
created_at: string
|
|
8859
8859
|
occurred_at: string
|
|
8860
8860
|
event_description: string
|
|
8861
|
+
thermostat_schedule_id?: string | undefined
|
|
8862
|
+
is_fallback_climate_preset?: boolean | undefined
|
|
8863
|
+
climate_preset_key?: string | undefined
|
|
8864
|
+
hvac_mode_setting?: string | undefined
|
|
8865
|
+
fan_mode_setting?: string | undefined
|
|
8866
|
+
cooling_set_point_celsius?: number | undefined
|
|
8867
|
+
heating_set_point_celsius?: number | undefined
|
|
8868
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
8869
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
8861
8870
|
}
|
|
8862
8871
|
| undefined
|
|
8863
8872
|
message?: string | undefined
|
|
@@ -8939,6 +8948,8 @@ export interface Routes {
|
|
|
8939
8948
|
| 'action_attempt.lock_door.failed'
|
|
8940
8949
|
| 'action_attempt.unlock_door.succeeded'
|
|
8941
8950
|
| 'action_attempt.unlock_door.failed'
|
|
8951
|
+
| 'thermostat.climate_preset_activated'
|
|
8952
|
+
| 'thermostat.manually_adjusted'
|
|
8942
8953
|
)
|
|
8943
8954
|
| undefined
|
|
8944
8955
|
event_types?:
|
|
@@ -9005,6 +9016,8 @@ export interface Routes {
|
|
|
9005
9016
|
| 'action_attempt.lock_door.failed'
|
|
9006
9017
|
| 'action_attempt.unlock_door.succeeded'
|
|
9007
9018
|
| 'action_attempt.unlock_door.failed'
|
|
9019
|
+
| 'thermostat.climate_preset_activated'
|
|
9020
|
+
| 'thermostat.manually_adjusted'
|
|
9008
9021
|
>
|
|
9009
9022
|
| undefined
|
|
9010
9023
|
connected_account_id?: string | undefined
|
|
@@ -9027,6 +9040,15 @@ export interface Routes {
|
|
|
9027
9040
|
created_at: string
|
|
9028
9041
|
occurred_at: string
|
|
9029
9042
|
event_description: string
|
|
9043
|
+
thermostat_schedule_id?: string | undefined
|
|
9044
|
+
is_fallback_climate_preset?: boolean | undefined
|
|
9045
|
+
climate_preset_key?: string | undefined
|
|
9046
|
+
hvac_mode_setting?: string | undefined
|
|
9047
|
+
fan_mode_setting?: string | undefined
|
|
9048
|
+
cooling_set_point_celsius?: number | undefined
|
|
9049
|
+
heating_set_point_celsius?: number | undefined
|
|
9050
|
+
cooling_set_point_fahrenheit?: number | undefined
|
|
9051
|
+
heating_set_point_fahrenheit?: number | undefined
|
|
9030
9052
|
}>
|
|
9031
9053
|
}
|
|
9032
9054
|
}
|