@seamapi/types 1.325.0 → 1.326.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.
@@ -13935,6 +13935,28 @@ export interface Routes {
13935
13935
  lower_limit_celsius: number | null;
13936
13936
  /** Lower temperature limit, in °F, defined by the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds). */
13937
13937
  lower_limit_fahrenheit: number | null;
13938
+ } | {
13939
+ /** ID of the event. */
13940
+ event_id: string;
13941
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
13942
+ workspace_id: string;
13943
+ /** Date and time at which the event was created. */
13944
+ created_at: string;
13945
+ /** Date and time at which the event occurred. */
13946
+ occurred_at: string;
13947
+ /** ID of the device. */
13948
+ device_id: string;
13949
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
13950
+ connected_account_id: string;
13951
+ event_type: 'thermostat.temperature_reached_set_point';
13952
+ /** Temperature, in °C, reported by the thermostat. */
13953
+ temperature_celsius: number;
13954
+ /** Temperature, in °F, reported by the thermostat. */
13955
+ temperature_fahrenheit: number;
13956
+ /** Desired temperature, in °C, set by the thermostat's cooling or heating set point. */
13957
+ desired_temperature_celsius?: number | undefined;
13958
+ /** Desired temperature, in °F, set by the thermostat's cooling or heating set point. */
13959
+ desired_temperature_fahrenheit?: number | undefined;
13938
13960
  } | {
13939
13961
  /** ID of the event. */
13940
13962
  event_id: string;
@@ -13978,8 +14000,8 @@ export interface Routes {
13978
14000
  acs_system_ids?: string[] | undefined;
13979
14001
  access_code_id?: string | undefined;
13980
14002
  access_code_ids?: string[] | undefined;
13981
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
13982
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
14003
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point') | undefined;
14004
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point'> | undefined;
13983
14005
  connected_account_id?: string | undefined;
13984
14006
  connect_webview_id?: string | undefined;
13985
14007
  limit?: number;
@@ -15076,6 +15098,28 @@ export interface Routes {
15076
15098
  lower_limit_celsius: number | null;
15077
15099
  /** Lower temperature limit, in °F, defined by the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds). */
15078
15100
  lower_limit_fahrenheit: number | null;
15101
+ } | {
15102
+ /** ID of the event. */
15103
+ event_id: string;
15104
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
15105
+ workspace_id: string;
15106
+ /** Date and time at which the event was created. */
15107
+ created_at: string;
15108
+ /** Date and time at which the event occurred. */
15109
+ occurred_at: string;
15110
+ /** ID of the device. */
15111
+ device_id: string;
15112
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
15113
+ connected_account_id: string;
15114
+ event_type: 'thermostat.temperature_reached_set_point';
15115
+ /** Temperature, in °C, reported by the thermostat. */
15116
+ temperature_celsius: number;
15117
+ /** Temperature, in °F, reported by the thermostat. */
15118
+ temperature_fahrenheit: number;
15119
+ /** Desired temperature, in °C, set by the thermostat's cooling or heating set point. */
15120
+ desired_temperature_celsius?: number | undefined;
15121
+ /** Desired temperature, in °F, set by the thermostat's cooling or heating set point. */
15122
+ desired_temperature_fahrenheit?: number | undefined;
15079
15123
  } | {
15080
15124
  /** ID of the event. */
15081
15125
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.325.0",
3
+ "version": "1.326.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -561,6 +561,32 @@ export type TemperatureThresholdNoLongerExceededEvent = z.infer<
561
561
  typeof temperature_threshold_no_longer_exceeded_event
562
562
  >
563
563
 
564
+ export const temperature_reached_set_point_event = device_event.extend({
565
+ event_type: z.literal('thermostat.temperature_reached_set_point'),
566
+ temperature_celsius: z
567
+ .number()
568
+ .describe('Temperature, in °C, reported by the thermostat.'),
569
+ temperature_fahrenheit: z
570
+ .number()
571
+ .describe('Temperature, in °F, reported by the thermostat.'),
572
+ desired_temperature_celsius: z
573
+ .number()
574
+ .optional()
575
+ .describe(
576
+ "Desired temperature, in °C, set by the thermostat's cooling or heating set point.",
577
+ ),
578
+ desired_temperature_fahrenheit: z
579
+ .number()
580
+ .optional()
581
+ .describe(
582
+ "Desired temperature, in °F, set by the thermostat's cooling or heating set point.",
583
+ ),
584
+ })
585
+
586
+ export type TemperatureReachedSetPointEvent = z.infer<
587
+ typeof temperature_reached_set_point_event
588
+ >
589
+
564
590
  export const device_events = [
565
591
  device_connected_event,
566
592
  device_added_event,
@@ -592,4 +618,5 @@ export const device_events = [
592
618
  thermostat_manually_adjusted_event,
593
619
  temperature_threshold_exceeded_event,
594
620
  temperature_threshold_no_longer_exceeded_event,
621
+ temperature_reached_set_point_event,
595
622
  ] as const
@@ -10225,6 +10225,80 @@ export default {
10225
10225
  ],
10226
10226
  type: 'object',
10227
10227
  },
10228
+ {
10229
+ properties: {
10230
+ connected_account_id: {
10231
+ description:
10232
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
10233
+ format: 'uuid',
10234
+ type: 'string',
10235
+ },
10236
+ created_at: {
10237
+ description: 'Date and time at which the event was created.',
10238
+ format: 'date-time',
10239
+ type: 'string',
10240
+ },
10241
+ desired_temperature_celsius: {
10242
+ description:
10243
+ "Desired temperature, in °C, set by the thermostat's cooling or heating set point.",
10244
+ format: 'float',
10245
+ type: 'number',
10246
+ },
10247
+ desired_temperature_fahrenheit: {
10248
+ description:
10249
+ "Desired temperature, in °F, set by the thermostat's cooling or heating set point.",
10250
+ format: 'float',
10251
+ type: 'number',
10252
+ },
10253
+ device_id: {
10254
+ description: 'ID of the device.',
10255
+ format: 'uuid',
10256
+ type: 'string',
10257
+ },
10258
+ event_id: {
10259
+ description: 'ID of the event.',
10260
+ format: 'uuid',
10261
+ type: 'string',
10262
+ },
10263
+ event_type: {
10264
+ enum: ['thermostat.temperature_reached_set_point'],
10265
+ type: 'string',
10266
+ },
10267
+ occurred_at: {
10268
+ description: 'Date and time at which the event occurred.',
10269
+ format: 'date-time',
10270
+ type: 'string',
10271
+ },
10272
+ temperature_celsius: {
10273
+ description: 'Temperature, in °C, reported by the thermostat.',
10274
+ format: 'float',
10275
+ type: 'number',
10276
+ },
10277
+ temperature_fahrenheit: {
10278
+ description: 'Temperature, in °F, reported by the thermostat.',
10279
+ format: 'float',
10280
+ type: 'number',
10281
+ },
10282
+ workspace_id: {
10283
+ description:
10284
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
10285
+ format: 'uuid',
10286
+ type: 'string',
10287
+ },
10288
+ },
10289
+ required: [
10290
+ 'event_id',
10291
+ 'workspace_id',
10292
+ 'created_at',
10293
+ 'occurred_at',
10294
+ 'device_id',
10295
+ 'connected_account_id',
10296
+ 'event_type',
10297
+ 'temperature_celsius',
10298
+ 'temperature_fahrenheit',
10299
+ ],
10300
+ type: 'object',
10301
+ },
10228
10302
  {
10229
10303
  description:
10230
10304
  'An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.',
@@ -20643,6 +20717,7 @@ export default {
20643
20717
  'thermostat.manually_adjusted',
20644
20718
  'thermostat.temperature_threshold_exceeded',
20645
20719
  'thermostat.temperature_threshold_no_longer_exceeded',
20720
+ 'thermostat.temperature_reached_set_point',
20646
20721
  ],
20647
20722
  type: 'string',
20648
20723
  },
@@ -20720,6 +20795,7 @@ export default {
20720
20795
  'thermostat.manually_adjusted',
20721
20796
  'thermostat.temperature_threshold_exceeded',
20722
20797
  'thermostat.temperature_threshold_no_longer_exceeded',
20798
+ 'thermostat.temperature_reached_set_point',
20723
20799
  ],
20724
20800
  type: 'string',
20725
20801
  },
@@ -16969,6 +16969,29 @@ export interface Routes {
16969
16969
  /** Lower temperature limit, in °F, defined by the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds). */
16970
16970
  lower_limit_fahrenheit: number | null
16971
16971
  }
16972
+ | {
16973
+ /** ID of the event. */
16974
+ event_id: string
16975
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
16976
+ workspace_id: string
16977
+ /** Date and time at which the event was created. */
16978
+ created_at: string
16979
+ /** Date and time at which the event occurred. */
16980
+ occurred_at: string
16981
+ /** ID of the device. */
16982
+ device_id: string
16983
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
16984
+ connected_account_id: string
16985
+ event_type: 'thermostat.temperature_reached_set_point'
16986
+ /** Temperature, in °C, reported by the thermostat. */
16987
+ temperature_celsius: number
16988
+ /** Temperature, in °F, reported by the thermostat. */
16989
+ temperature_fahrenheit: number
16990
+ /** Desired temperature, in °C, set by the thermostat's cooling or heating set point. */
16991
+ desired_temperature_celsius?: number | undefined
16992
+ /** Desired temperature, in °F, set by the thermostat's cooling or heating set point. */
16993
+ desired_temperature_fahrenheit?: number | undefined
16994
+ }
16972
16995
  | {
16973
16996
  /** ID of the event. */
16974
16997
  event_id: string
@@ -17088,6 +17111,7 @@ export interface Routes {
17088
17111
  | 'thermostat.manually_adjusted'
17089
17112
  | 'thermostat.temperature_threshold_exceeded'
17090
17113
  | 'thermostat.temperature_threshold_no_longer_exceeded'
17114
+ | 'thermostat.temperature_reached_set_point'
17091
17115
  )
17092
17116
  | undefined
17093
17117
  event_types?:
@@ -17163,6 +17187,7 @@ export interface Routes {
17163
17187
  | 'thermostat.manually_adjusted'
17164
17188
  | 'thermostat.temperature_threshold_exceeded'
17165
17189
  | 'thermostat.temperature_threshold_no_longer_exceeded'
17190
+ | 'thermostat.temperature_reached_set_point'
17166
17191
  >
17167
17192
  | undefined
17168
17193
  connected_account_id?: string | undefined
@@ -18341,6 +18366,29 @@ export interface Routes {
18341
18366
  /** Lower temperature limit, in °F, defined by the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds). */
18342
18367
  lower_limit_fahrenheit: number | null
18343
18368
  }
18369
+ | {
18370
+ /** ID of the event. */
18371
+ event_id: string
18372
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
18373
+ workspace_id: string
18374
+ /** Date and time at which the event was created. */
18375
+ created_at: string
18376
+ /** Date and time at which the event occurred. */
18377
+ occurred_at: string
18378
+ /** ID of the device. */
18379
+ device_id: string
18380
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
18381
+ connected_account_id: string
18382
+ event_type: 'thermostat.temperature_reached_set_point'
18383
+ /** Temperature, in °C, reported by the thermostat. */
18384
+ temperature_celsius: number
18385
+ /** Temperature, in °F, reported by the thermostat. */
18386
+ temperature_fahrenheit: number
18387
+ /** Desired temperature, in °C, set by the thermostat's cooling or heating set point. */
18388
+ desired_temperature_celsius?: number | undefined
18389
+ /** Desired temperature, in °F, set by the thermostat's cooling or heating set point. */
18390
+ desired_temperature_fahrenheit?: number | undefined
18391
+ }
18344
18392
  | {
18345
18393
  /** ID of the event. */
18346
18394
  event_id: string