@seamapi/types 1.913.0 → 1.915.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.
@@ -23730,6 +23730,208 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
23730
23730
  connected_account_id: z.ZodString;
23731
23731
  device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23732
23732
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23733
+ } & {
23734
+ event_type: z.ZodLiteral<"access_code.name_changed">;
23735
+ from: z.ZodObject<{
23736
+ name: z.ZodNullable<z.ZodString>;
23737
+ }, "strip", z.ZodTypeAny, {
23738
+ name: string | null;
23739
+ }, {
23740
+ name: string | null;
23741
+ }>;
23742
+ to: z.ZodObject<{
23743
+ name: z.ZodNullable<z.ZodString>;
23744
+ }, "strip", z.ZodTypeAny, {
23745
+ name: string | null;
23746
+ }, {
23747
+ name: string | null;
23748
+ }>;
23749
+ description: z.ZodString;
23750
+ }, "strip", z.ZodTypeAny, {
23751
+ device_id: string;
23752
+ workspace_id: string;
23753
+ created_at: string;
23754
+ connected_account_id: string;
23755
+ from: {
23756
+ name: string | null;
23757
+ };
23758
+ to: {
23759
+ name: string | null;
23760
+ };
23761
+ access_code_id: string;
23762
+ event_id: string;
23763
+ occurred_at: string;
23764
+ event_type: "access_code.name_changed";
23765
+ description: string;
23766
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23767
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23768
+ }, {
23769
+ device_id: string;
23770
+ workspace_id: string;
23771
+ created_at: string;
23772
+ connected_account_id: string;
23773
+ from: {
23774
+ name: string | null;
23775
+ };
23776
+ to: {
23777
+ name: string | null;
23778
+ };
23779
+ access_code_id: string;
23780
+ event_id: string;
23781
+ occurred_at: string;
23782
+ event_type: "access_code.name_changed";
23783
+ description: string;
23784
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23785
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23786
+ }>, z.ZodObject<{
23787
+ event_id: z.ZodString;
23788
+ workspace_id: z.ZodString;
23789
+ created_at: z.ZodString;
23790
+ occurred_at: z.ZodString;
23791
+ } & {
23792
+ access_code_id: z.ZodString;
23793
+ device_id: z.ZodString;
23794
+ connected_account_id: z.ZodString;
23795
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23796
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23797
+ } & {
23798
+ event_type: z.ZodLiteral<"access_code.code_changed">;
23799
+ from: z.ZodObject<{
23800
+ code: z.ZodNullable<z.ZodString>;
23801
+ }, "strip", z.ZodTypeAny, {
23802
+ code: string | null;
23803
+ }, {
23804
+ code: string | null;
23805
+ }>;
23806
+ to: z.ZodObject<{
23807
+ code: z.ZodNullable<z.ZodString>;
23808
+ }, "strip", z.ZodTypeAny, {
23809
+ code: string | null;
23810
+ }, {
23811
+ code: string | null;
23812
+ }>;
23813
+ description: z.ZodString;
23814
+ }, "strip", z.ZodTypeAny, {
23815
+ device_id: string;
23816
+ workspace_id: string;
23817
+ created_at: string;
23818
+ connected_account_id: string;
23819
+ from: {
23820
+ code: string | null;
23821
+ };
23822
+ to: {
23823
+ code: string | null;
23824
+ };
23825
+ access_code_id: string;
23826
+ event_id: string;
23827
+ occurred_at: string;
23828
+ event_type: "access_code.code_changed";
23829
+ description: string;
23830
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23831
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23832
+ }, {
23833
+ device_id: string;
23834
+ workspace_id: string;
23835
+ created_at: string;
23836
+ connected_account_id: string;
23837
+ from: {
23838
+ code: string | null;
23839
+ };
23840
+ to: {
23841
+ code: string | null;
23842
+ };
23843
+ access_code_id: string;
23844
+ event_id: string;
23845
+ occurred_at: string;
23846
+ event_type: "access_code.code_changed";
23847
+ description: string;
23848
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23849
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23850
+ }>, z.ZodObject<{
23851
+ event_id: z.ZodString;
23852
+ workspace_id: z.ZodString;
23853
+ created_at: z.ZodString;
23854
+ occurred_at: z.ZodString;
23855
+ } & {
23856
+ access_code_id: z.ZodString;
23857
+ device_id: z.ZodString;
23858
+ connected_account_id: z.ZodString;
23859
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23860
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23861
+ } & {
23862
+ event_type: z.ZodLiteral<"access_code.time_frame_changed">;
23863
+ from: z.ZodObject<{
23864
+ starts_at: z.ZodNullable<z.ZodString>;
23865
+ ends_at: z.ZodNullable<z.ZodString>;
23866
+ }, "strip", z.ZodTypeAny, {
23867
+ starts_at: string | null;
23868
+ ends_at: string | null;
23869
+ }, {
23870
+ starts_at: string | null;
23871
+ ends_at: string | null;
23872
+ }>;
23873
+ to: z.ZodObject<{
23874
+ starts_at: z.ZodNullable<z.ZodString>;
23875
+ ends_at: z.ZodNullable<z.ZodString>;
23876
+ }, "strip", z.ZodTypeAny, {
23877
+ starts_at: string | null;
23878
+ ends_at: string | null;
23879
+ }, {
23880
+ starts_at: string | null;
23881
+ ends_at: string | null;
23882
+ }>;
23883
+ description: z.ZodString;
23884
+ }, "strip", z.ZodTypeAny, {
23885
+ device_id: string;
23886
+ workspace_id: string;
23887
+ created_at: string;
23888
+ connected_account_id: string;
23889
+ from: {
23890
+ starts_at: string | null;
23891
+ ends_at: string | null;
23892
+ };
23893
+ to: {
23894
+ starts_at: string | null;
23895
+ ends_at: string | null;
23896
+ };
23897
+ access_code_id: string;
23898
+ event_id: string;
23899
+ occurred_at: string;
23900
+ event_type: "access_code.time_frame_changed";
23901
+ description: string;
23902
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23903
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23904
+ }, {
23905
+ device_id: string;
23906
+ workspace_id: string;
23907
+ created_at: string;
23908
+ connected_account_id: string;
23909
+ from: {
23910
+ starts_at: string | null;
23911
+ ends_at: string | null;
23912
+ };
23913
+ to: {
23914
+ starts_at: string | null;
23915
+ ends_at: string | null;
23916
+ };
23917
+ access_code_id: string;
23918
+ event_id: string;
23919
+ occurred_at: string;
23920
+ event_type: "access_code.time_frame_changed";
23921
+ description: string;
23922
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
23923
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
23924
+ }>, z.ZodObject<{
23925
+ event_id: z.ZodString;
23926
+ workspace_id: z.ZodString;
23927
+ created_at: z.ZodString;
23928
+ occurred_at: z.ZodString;
23929
+ } & {
23930
+ access_code_id: z.ZodString;
23931
+ device_id: z.ZodString;
23932
+ connected_account_id: z.ZodString;
23933
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23934
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
23733
23935
  } & {
23734
23936
  event_type: z.ZodLiteral<"access_code.scheduled_on_device">;
23735
23937
  code: z.ZodString;
@@ -74209,6 +74411,118 @@ type Routes = {
74209
74411
  }[] | undefined;
74210
74412
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
74211
74413
  change_reason?: string | undefined;
74414
+ } | {
74415
+ /** ID of the event. */
74416
+ event_id: string;
74417
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
74418
+ workspace_id: string;
74419
+ /** Date and time at which the event was created. */
74420
+ created_at: string;
74421
+ /** Date and time at which the event occurred. */
74422
+ occurred_at: string;
74423
+ /** ID of the affected access code. */
74424
+ access_code_id: string;
74425
+ /** ID of the device associated with the affected access code. */
74426
+ device_id: string;
74427
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
74428
+ connected_account_id: string;
74429
+ /** Custom metadata of the device, present when device_id is provided. */
74430
+ device_custom_metadata?: {
74431
+ [x: string]: string | boolean;
74432
+ } | undefined;
74433
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
74434
+ connected_account_custom_metadata?: {
74435
+ [x: string]: string | boolean;
74436
+ } | undefined;
74437
+ event_type: 'access_code.name_changed';
74438
+ /** Previous access code name configuration. */
74439
+ from: {
74440
+ /** Previous name of the access code. */
74441
+ name: string | null;
74442
+ };
74443
+ /** New access code name configuration. */
74444
+ to: {
74445
+ /** New name of the access code. */
74446
+ name: string | null;
74447
+ };
74448
+ /** Human-readable description of the change and its source. */
74449
+ description: string;
74450
+ } | {
74451
+ /** ID of the event. */
74452
+ event_id: string;
74453
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
74454
+ workspace_id: string;
74455
+ /** Date and time at which the event was created. */
74456
+ created_at: string;
74457
+ /** Date and time at which the event occurred. */
74458
+ occurred_at: string;
74459
+ /** ID of the affected access code. */
74460
+ access_code_id: string;
74461
+ /** ID of the device associated with the affected access code. */
74462
+ device_id: string;
74463
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
74464
+ connected_account_id: string;
74465
+ /** Custom metadata of the device, present when device_id is provided. */
74466
+ device_custom_metadata?: {
74467
+ [x: string]: string | boolean;
74468
+ } | undefined;
74469
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
74470
+ connected_account_custom_metadata?: {
74471
+ [x: string]: string | boolean;
74472
+ } | undefined;
74473
+ event_type: 'access_code.code_changed';
74474
+ /** Previous pin code configuration. */
74475
+ from: {
74476
+ /** Previous pin code. */
74477
+ code: string | null;
74478
+ };
74479
+ /** New pin code configuration. */
74480
+ to: {
74481
+ /** New pin code. */
74482
+ code: string | null;
74483
+ };
74484
+ /** Human-readable description of the change and its source. */
74485
+ description: string;
74486
+ } | {
74487
+ /** ID of the event. */
74488
+ event_id: string;
74489
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
74490
+ workspace_id: string;
74491
+ /** Date and time at which the event was created. */
74492
+ created_at: string;
74493
+ /** Date and time at which the event occurred. */
74494
+ occurred_at: string;
74495
+ /** ID of the affected access code. */
74496
+ access_code_id: string;
74497
+ /** ID of the device associated with the affected access code. */
74498
+ device_id: string;
74499
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
74500
+ connected_account_id: string;
74501
+ /** Custom metadata of the device, present when device_id is provided. */
74502
+ device_custom_metadata?: {
74503
+ [x: string]: string | boolean;
74504
+ } | undefined;
74505
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
74506
+ connected_account_custom_metadata?: {
74507
+ [x: string]: string | boolean;
74508
+ } | undefined;
74509
+ event_type: 'access_code.time_frame_changed';
74510
+ /** Previous time frame configuration. */
74511
+ from: {
74512
+ /** Previous start time. */
74513
+ starts_at: string | null;
74514
+ /** Previous end time. */
74515
+ ends_at: string | null;
74516
+ };
74517
+ /** New time frame configuration. */
74518
+ to: {
74519
+ /** New start time. */
74520
+ starts_at: string | null;
74521
+ /** New end time. */
74522
+ ends_at: string | null;
74523
+ };
74524
+ /** Human-readable description of the change and its source. */
74525
+ description: string;
74212
74526
  } | {
74213
74527
  /** ID of the event. */
74214
74528
  event_id: string;
@@ -76971,9 +77285,9 @@ type Routes = {
76971
77285
  /** IDs of the access codes for which you want to list events. */
76972
77286
  access_code_ids?: string[] | undefined;
76973
77287
  /** Type of the events that you want to list. */
76974
- 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
77288
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
76975
77289
  /** Types of the events that you want to list. */
76976
- event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
77290
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
76977
77291
  /** ID of the connected account for which you want to list events. */
76978
77292
  connected_account_id?: string | undefined;
76979
77293
  /** ID of the Connect Webview for which you want to list events. */
@@ -77068,6 +77382,118 @@ type Routes = {
77068
77382
  }[] | undefined;
77069
77383
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
77070
77384
  change_reason?: string | undefined;
77385
+ } | {
77386
+ /** ID of the event. */
77387
+ event_id: string;
77388
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77389
+ workspace_id: string;
77390
+ /** Date and time at which the event was created. */
77391
+ created_at: string;
77392
+ /** Date and time at which the event occurred. */
77393
+ occurred_at: string;
77394
+ /** ID of the affected access code. */
77395
+ access_code_id: string;
77396
+ /** ID of the device associated with the affected access code. */
77397
+ device_id: string;
77398
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77399
+ connected_account_id: string;
77400
+ /** Custom metadata of the device, present when device_id is provided. */
77401
+ device_custom_metadata?: {
77402
+ [x: string]: string | boolean;
77403
+ } | undefined;
77404
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77405
+ connected_account_custom_metadata?: {
77406
+ [x: string]: string | boolean;
77407
+ } | undefined;
77408
+ event_type: 'access_code.name_changed';
77409
+ /** Previous access code name configuration. */
77410
+ from: {
77411
+ /** Previous name of the access code. */
77412
+ name: string | null;
77413
+ };
77414
+ /** New access code name configuration. */
77415
+ to: {
77416
+ /** New name of the access code. */
77417
+ name: string | null;
77418
+ };
77419
+ /** Human-readable description of the change and its source. */
77420
+ description: string;
77421
+ } | {
77422
+ /** ID of the event. */
77423
+ event_id: string;
77424
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77425
+ workspace_id: string;
77426
+ /** Date and time at which the event was created. */
77427
+ created_at: string;
77428
+ /** Date and time at which the event occurred. */
77429
+ occurred_at: string;
77430
+ /** ID of the affected access code. */
77431
+ access_code_id: string;
77432
+ /** ID of the device associated with the affected access code. */
77433
+ device_id: string;
77434
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77435
+ connected_account_id: string;
77436
+ /** Custom metadata of the device, present when device_id is provided. */
77437
+ device_custom_metadata?: {
77438
+ [x: string]: string | boolean;
77439
+ } | undefined;
77440
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77441
+ connected_account_custom_metadata?: {
77442
+ [x: string]: string | boolean;
77443
+ } | undefined;
77444
+ event_type: 'access_code.code_changed';
77445
+ /** Previous pin code configuration. */
77446
+ from: {
77447
+ /** Previous pin code. */
77448
+ code: string | null;
77449
+ };
77450
+ /** New pin code configuration. */
77451
+ to: {
77452
+ /** New pin code. */
77453
+ code: string | null;
77454
+ };
77455
+ /** Human-readable description of the change and its source. */
77456
+ description: string;
77457
+ } | {
77458
+ /** ID of the event. */
77459
+ event_id: string;
77460
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77461
+ workspace_id: string;
77462
+ /** Date and time at which the event was created. */
77463
+ created_at: string;
77464
+ /** Date and time at which the event occurred. */
77465
+ occurred_at: string;
77466
+ /** ID of the affected access code. */
77467
+ access_code_id: string;
77468
+ /** ID of the device associated with the affected access code. */
77469
+ device_id: string;
77470
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77471
+ connected_account_id: string;
77472
+ /** Custom metadata of the device, present when device_id is provided. */
77473
+ device_custom_metadata?: {
77474
+ [x: string]: string | boolean;
77475
+ } | undefined;
77476
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77477
+ connected_account_custom_metadata?: {
77478
+ [x: string]: string | boolean;
77479
+ } | undefined;
77480
+ event_type: 'access_code.time_frame_changed';
77481
+ /** Previous time frame configuration. */
77482
+ from: {
77483
+ /** Previous start time. */
77484
+ starts_at: string | null;
77485
+ /** Previous end time. */
77486
+ ends_at: string | null;
77487
+ };
77488
+ /** New time frame configuration. */
77489
+ to: {
77490
+ /** New start time. */
77491
+ starts_at: string | null;
77492
+ /** New end time. */
77493
+ ends_at: string | null;
77494
+ };
77495
+ /** Human-readable description of the change and its source. */
77496
+ description: string;
77071
77497
  } | {
77072
77498
  /** ID of the event. */
77073
77499
  event_id: string;
@@ -105492,9 +105918,9 @@ type Routes = {
105492
105918
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
105493
105919
  between?: (string | Date)[] | undefined;
105494
105920
  /** Type of the events that you want to list. */
105495
- 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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
105921
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted') | undefined;
105496
105922
  /** Types of the events that you want to list. */
105497
- event_types?: ('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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
105923
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.name_changed' | 'access_code.code_changed' | 'access_code.time_frame_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' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_grant.access_times_changed' | 'access_grant.could_not_create_requested_access_methods' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'access_method.created' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | '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' | 'connected_account.reauthorization_requested' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'action_attempt.simulate_keypad_code_entry.succeeded' | 'action_attempt.simulate_keypad_code_entry.failed' | 'action_attempt.simulate_manual_lock_via_keypad.succeeded' | 'action_attempt.simulate_manual_lock_via_keypad.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' | 'camera.activated' | 'device.doorbell_rang' | 'enrollment_automation.deleted' | 'phone.deactivated' | 'space.device_membership_changed' | 'space.created' | 'space.deleted')[] | undefined;
105498
105924
  /** Numerical limit on the number of events to return. */
105499
105925
  limit?: number;
105500
105926
  };
@@ -105559,6 +105985,118 @@ type Routes = {
105559
105985
  }[] | undefined;
105560
105986
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
105561
105987
  change_reason?: string | undefined;
105988
+ } | {
105989
+ /** ID of the event. */
105990
+ event_id: string;
105991
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
105992
+ workspace_id: string;
105993
+ /** Date and time at which the event was created. */
105994
+ created_at: string;
105995
+ /** Date and time at which the event occurred. */
105996
+ occurred_at: string;
105997
+ /** ID of the affected access code. */
105998
+ access_code_id: string;
105999
+ /** ID of the device associated with the affected access code. */
106000
+ device_id: string;
106001
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
106002
+ connected_account_id: string;
106003
+ /** Custom metadata of the device, present when device_id is provided. */
106004
+ device_custom_metadata?: {
106005
+ [x: string]: string | boolean;
106006
+ } | undefined;
106007
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
106008
+ connected_account_custom_metadata?: {
106009
+ [x: string]: string | boolean;
106010
+ } | undefined;
106011
+ event_type: 'access_code.name_changed';
106012
+ /** Previous access code name configuration. */
106013
+ from: {
106014
+ /** Previous name of the access code. */
106015
+ name: string | null;
106016
+ };
106017
+ /** New access code name configuration. */
106018
+ to: {
106019
+ /** New name of the access code. */
106020
+ name: string | null;
106021
+ };
106022
+ /** Human-readable description of the change and its source. */
106023
+ description: string;
106024
+ } | {
106025
+ /** ID of the event. */
106026
+ event_id: string;
106027
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
106028
+ workspace_id: string;
106029
+ /** Date and time at which the event was created. */
106030
+ created_at: string;
106031
+ /** Date and time at which the event occurred. */
106032
+ occurred_at: string;
106033
+ /** ID of the affected access code. */
106034
+ access_code_id: string;
106035
+ /** ID of the device associated with the affected access code. */
106036
+ device_id: string;
106037
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
106038
+ connected_account_id: string;
106039
+ /** Custom metadata of the device, present when device_id is provided. */
106040
+ device_custom_metadata?: {
106041
+ [x: string]: string | boolean;
106042
+ } | undefined;
106043
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
106044
+ connected_account_custom_metadata?: {
106045
+ [x: string]: string | boolean;
106046
+ } | undefined;
106047
+ event_type: 'access_code.code_changed';
106048
+ /** Previous pin code configuration. */
106049
+ from: {
106050
+ /** Previous pin code. */
106051
+ code: string | null;
106052
+ };
106053
+ /** New pin code configuration. */
106054
+ to: {
106055
+ /** New pin code. */
106056
+ code: string | null;
106057
+ };
106058
+ /** Human-readable description of the change and its source. */
106059
+ description: string;
106060
+ } | {
106061
+ /** ID of the event. */
106062
+ event_id: string;
106063
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
106064
+ workspace_id: string;
106065
+ /** Date and time at which the event was created. */
106066
+ created_at: string;
106067
+ /** Date and time at which the event occurred. */
106068
+ occurred_at: string;
106069
+ /** ID of the affected access code. */
106070
+ access_code_id: string;
106071
+ /** ID of the device associated with the affected access code. */
106072
+ device_id: string;
106073
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
106074
+ connected_account_id: string;
106075
+ /** Custom metadata of the device, present when device_id is provided. */
106076
+ device_custom_metadata?: {
106077
+ [x: string]: string | boolean;
106078
+ } | undefined;
106079
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
106080
+ connected_account_custom_metadata?: {
106081
+ [x: string]: string | boolean;
106082
+ } | undefined;
106083
+ event_type: 'access_code.time_frame_changed';
106084
+ /** Previous time frame configuration. */
106085
+ from: {
106086
+ /** Previous start time. */
106087
+ starts_at: string | null;
106088
+ /** Previous end time. */
106089
+ ends_at: string | null;
106090
+ };
106091
+ /** New time frame configuration. */
106092
+ to: {
106093
+ /** New start time. */
106094
+ starts_at: string | null;
106095
+ /** New end time. */
106096
+ ends_at: string | null;
106097
+ };
106098
+ /** Human-readable description of the change and its source. */
106099
+ description: string;
105562
106100
  } | {
105563
106101
  /** ID of the event. */
105564
106102
  event_id: string;
@@ -142282,6 +142820,118 @@ type Routes = {
142282
142820
  }[] | undefined;
142283
142821
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
142284
142822
  change_reason?: string | undefined;
142823
+ } | {
142824
+ /** ID of the event. */
142825
+ event_id: string;
142826
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142827
+ workspace_id: string;
142828
+ /** Date and time at which the event was created. */
142829
+ created_at: string;
142830
+ /** Date and time at which the event occurred. */
142831
+ occurred_at: string;
142832
+ /** ID of the affected access code. */
142833
+ access_code_id: string;
142834
+ /** ID of the device associated with the affected access code. */
142835
+ device_id: string;
142836
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142837
+ connected_account_id: string;
142838
+ /** Custom metadata of the device, present when device_id is provided. */
142839
+ device_custom_metadata?: {
142840
+ [x: string]: string | boolean;
142841
+ } | undefined;
142842
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142843
+ connected_account_custom_metadata?: {
142844
+ [x: string]: string | boolean;
142845
+ } | undefined;
142846
+ event_type: 'access_code.name_changed';
142847
+ /** Previous access code name configuration. */
142848
+ from: {
142849
+ /** Previous name of the access code. */
142850
+ name: string | null;
142851
+ };
142852
+ /** New access code name configuration. */
142853
+ to: {
142854
+ /** New name of the access code. */
142855
+ name: string | null;
142856
+ };
142857
+ /** Human-readable description of the change and its source. */
142858
+ description: string;
142859
+ } | {
142860
+ /** ID of the event. */
142861
+ event_id: string;
142862
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142863
+ workspace_id: string;
142864
+ /** Date and time at which the event was created. */
142865
+ created_at: string;
142866
+ /** Date and time at which the event occurred. */
142867
+ occurred_at: string;
142868
+ /** ID of the affected access code. */
142869
+ access_code_id: string;
142870
+ /** ID of the device associated with the affected access code. */
142871
+ device_id: string;
142872
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142873
+ connected_account_id: string;
142874
+ /** Custom metadata of the device, present when device_id is provided. */
142875
+ device_custom_metadata?: {
142876
+ [x: string]: string | boolean;
142877
+ } | undefined;
142878
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142879
+ connected_account_custom_metadata?: {
142880
+ [x: string]: string | boolean;
142881
+ } | undefined;
142882
+ event_type: 'access_code.code_changed';
142883
+ /** Previous pin code configuration. */
142884
+ from: {
142885
+ /** Previous pin code. */
142886
+ code: string | null;
142887
+ };
142888
+ /** New pin code configuration. */
142889
+ to: {
142890
+ /** New pin code. */
142891
+ code: string | null;
142892
+ };
142893
+ /** Human-readable description of the change and its source. */
142894
+ description: string;
142895
+ } | {
142896
+ /** ID of the event. */
142897
+ event_id: string;
142898
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142899
+ workspace_id: string;
142900
+ /** Date and time at which the event was created. */
142901
+ created_at: string;
142902
+ /** Date and time at which the event occurred. */
142903
+ occurred_at: string;
142904
+ /** ID of the affected access code. */
142905
+ access_code_id: string;
142906
+ /** ID of the device associated with the affected access code. */
142907
+ device_id: string;
142908
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142909
+ connected_account_id: string;
142910
+ /** Custom metadata of the device, present when device_id is provided. */
142911
+ device_custom_metadata?: {
142912
+ [x: string]: string | boolean;
142913
+ } | undefined;
142914
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142915
+ connected_account_custom_metadata?: {
142916
+ [x: string]: string | boolean;
142917
+ } | undefined;
142918
+ event_type: 'access_code.time_frame_changed';
142919
+ /** Previous time frame configuration. */
142920
+ from: {
142921
+ /** Previous start time. */
142922
+ starts_at: string | null;
142923
+ /** Previous end time. */
142924
+ ends_at: string | null;
142925
+ };
142926
+ /** New time frame configuration. */
142927
+ to: {
142928
+ /** New start time. */
142929
+ starts_at: string | null;
142930
+ /** New end time. */
142931
+ ends_at: string | null;
142932
+ };
142933
+ /** Human-readable description of the change and its source. */
142934
+ description: string;
142285
142935
  } | {
142286
142936
  /** ID of the event. */
142287
142937
  event_id: string;