@seamapi/types 1.359.0 → 1.360.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.
@@ -16616,6 +16616,22 @@ export interface Routes {
16616
16616
  temperature_celsius: number;
16617
16617
  /** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
16618
16618
  temperature_fahrenheit: number;
16619
+ } | {
16620
+ /** ID of the event. */
16621
+ event_id: string;
16622
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
16623
+ workspace_id: string;
16624
+ /** Date and time at which the event was created. */
16625
+ created_at: string;
16626
+ /** Date and time at which the event occurred. */
16627
+ occurred_at: string;
16628
+ /** ID of the device. */
16629
+ device_id: string;
16630
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
16631
+ connected_account_id: string;
16632
+ event_type: 'device.name_changed';
16633
+ /** The new name of the device. */
16634
+ new_name: string;
16619
16635
  } | {
16620
16636
  /** ID of the event. */
16621
16637
  event_id: string;
@@ -16659,8 +16675,8 @@ export interface Routes {
16659
16675
  acs_system_ids?: string[] | undefined;
16660
16676
  access_code_id?: string | undefined;
16661
16677
  access_code_ids?: string[] | undefined;
16662
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
16663
- event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
16678
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
16679
+ event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | '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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
16664
16680
  connected_account_id?: string | undefined;
16665
16681
  connect_webview_id?: string | undefined;
16666
16682
  limit?: number;
@@ -17828,6 +17844,22 @@ export interface Routes {
17828
17844
  temperature_celsius: number;
17829
17845
  /** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
17830
17846
  temperature_fahrenheit: number;
17847
+ } | {
17848
+ /** ID of the event. */
17849
+ event_id: string;
17850
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
17851
+ workspace_id: string;
17852
+ /** Date and time at which the event was created. */
17853
+ created_at: string;
17854
+ /** Date and time at which the event occurred. */
17855
+ occurred_at: string;
17856
+ /** ID of the device. */
17857
+ device_id: string;
17858
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
17859
+ connected_account_id: string;
17860
+ event_type: 'device.name_changed';
17861
+ /** The new name of the device. */
17862
+ new_name: string;
17831
17863
  } | {
17832
17864
  /** ID of the event. */
17833
17865
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.359.0",
3
+ "version": "1.360.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.21.4"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.36.0",
95
+ "@seamapi/blueprint": "^0.37.1",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -651,6 +651,18 @@ export const temperature_changed_event = device_event.extend({
651
651
 
652
652
  export type TemperatureChangedEvent = z.infer<typeof temperature_changed_event>
653
653
 
654
+ export const device_name_changed_event = device_event.extend({
655
+ event_type: z.literal('device.name_changed'),
656
+ new_name: z.string().describe('The new name of the device.'),
657
+ }).describe(`
658
+ ---
659
+ route_path: /devices
660
+ ---
661
+ The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.
662
+ `)
663
+
664
+ export type DeviceNameChangedEvent = z.infer<typeof device_name_changed_event>
665
+
654
666
  export const device_events = [
655
667
  device_connected_event,
656
668
  device_added_event,
@@ -684,4 +696,5 @@ export const device_events = [
684
696
  temperature_threshold_no_longer_exceeded_event,
685
697
  temperature_reached_set_point_event,
686
698
  temperature_changed_event,
699
+ device_name_changed_event,
687
700
  ] as const
@@ -11982,6 +11982,61 @@ export default {
11982
11982
  type: 'object',
11983
11983
  'x-route-path': '/thermostats',
11984
11984
  },
11985
+ {
11986
+ description:
11987
+ 'The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.',
11988
+ properties: {
11989
+ connected_account_id: {
11990
+ description:
11991
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
11992
+ format: 'uuid',
11993
+ type: 'string',
11994
+ },
11995
+ created_at: {
11996
+ description: 'Date and time at which the event was created.',
11997
+ format: 'date-time',
11998
+ type: 'string',
11999
+ },
12000
+ device_id: {
12001
+ description: 'ID of the device.',
12002
+ format: 'uuid',
12003
+ type: 'string',
12004
+ },
12005
+ event_id: {
12006
+ description: 'ID of the event.',
12007
+ format: 'uuid',
12008
+ type: 'string',
12009
+ },
12010
+ event_type: { enum: ['device.name_changed'], type: 'string' },
12011
+ new_name: {
12012
+ description: 'The new name of the device.',
12013
+ type: 'string',
12014
+ },
12015
+ occurred_at: {
12016
+ description: 'Date and time at which the event occurred.',
12017
+ format: 'date-time',
12018
+ type: 'string',
12019
+ },
12020
+ workspace_id: {
12021
+ description:
12022
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
12023
+ format: 'uuid',
12024
+ type: 'string',
12025
+ },
12026
+ },
12027
+ required: [
12028
+ 'event_id',
12029
+ 'workspace_id',
12030
+ 'created_at',
12031
+ 'occurred_at',
12032
+ 'device_id',
12033
+ 'connected_account_id',
12034
+ 'event_type',
12035
+ 'new_name',
12036
+ ],
12037
+ type: 'object',
12038
+ 'x-route-path': '/devices',
12039
+ },
11985
12040
  {
11986
12041
  description:
11987
12042
  '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.',
@@ -22355,6 +22410,7 @@ export default {
22355
22410
  'thermostat.temperature_threshold_no_longer_exceeded',
22356
22411
  'thermostat.temperature_reached_set_point',
22357
22412
  'thermostat.temperature_changed',
22413
+ 'device.name_changed',
22358
22414
  'enrollment_automation.deleted',
22359
22415
  'phone.deactivated',
22360
22416
  ],
@@ -22436,6 +22492,7 @@ export default {
22436
22492
  'thermostat.temperature_threshold_no_longer_exceeded',
22437
22493
  'thermostat.temperature_reached_set_point',
22438
22494
  'thermostat.temperature_changed',
22495
+ 'device.name_changed',
22439
22496
  'enrollment_automation.deleted',
22440
22497
  'phone.deactivated',
22441
22498
  ],
@@ -20275,6 +20275,23 @@ export interface Routes {
20275
20275
  /** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
20276
20276
  temperature_fahrenheit: number
20277
20277
  }
20278
+ | {
20279
+ /** ID of the event. */
20280
+ event_id: string
20281
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
20282
+ workspace_id: string
20283
+ /** Date and time at which the event was created. */
20284
+ created_at: string
20285
+ /** Date and time at which the event occurred. */
20286
+ occurred_at: string
20287
+ /** ID of the device. */
20288
+ device_id: string
20289
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
20290
+ connected_account_id: string
20291
+ event_type: 'device.name_changed'
20292
+ /** The new name of the device. */
20293
+ new_name: string
20294
+ }
20278
20295
  | {
20279
20296
  /** ID of the event. */
20280
20297
  event_id: string
@@ -20396,6 +20413,7 @@ export interface Routes {
20396
20413
  | 'thermostat.temperature_threshold_no_longer_exceeded'
20397
20414
  | 'thermostat.temperature_reached_set_point'
20398
20415
  | 'thermostat.temperature_changed'
20416
+ | 'device.name_changed'
20399
20417
  | 'enrollment_automation.deleted'
20400
20418
  | 'phone.deactivated'
20401
20419
  )
@@ -20475,6 +20493,7 @@ export interface Routes {
20475
20493
  | 'thermostat.temperature_threshold_no_longer_exceeded'
20476
20494
  | 'thermostat.temperature_reached_set_point'
20477
20495
  | 'thermostat.temperature_changed'
20496
+ | 'device.name_changed'
20478
20497
  | 'enrollment_automation.deleted'
20479
20498
  | 'phone.deactivated'
20480
20499
  >
@@ -21730,6 +21749,23 @@ export interface Routes {
21730
21749
  /** Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats). */
21731
21750
  temperature_fahrenheit: number
21732
21751
  }
21752
+ | {
21753
+ /** ID of the event. */
21754
+ event_id: string
21755
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
21756
+ workspace_id: string
21757
+ /** Date and time at which the event was created. */
21758
+ created_at: string
21759
+ /** Date and time at which the event occurred. */
21760
+ occurred_at: string
21761
+ /** ID of the device. */
21762
+ device_id: string
21763
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
21764
+ connected_account_id: string
21765
+ event_type: 'device.name_changed'
21766
+ /** The new name of the device. */
21767
+ new_name: string
21768
+ }
21733
21769
  | {
21734
21770
  /** ID of the event. */
21735
21771
  event_id: string