@seamapi/types 1.912.0 → 1.914.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;
@@ -29121,6 +29323,7 @@ declare const workspace: z.ZodObject<{
29121
29323
  connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
29122
29324
  publishable_key: z.ZodOptional<z.ZodString>;
29123
29325
  is_publishable_key_auth_enabled: z.ZodBoolean;
29326
+ organization_id: z.ZodNullable<z.ZodString>;
29124
29327
  }, "strip", z.ZodTypeAny, {
29125
29328
  name: string;
29126
29329
  workspace_id: string;
@@ -29136,6 +29339,7 @@ declare const workspace: z.ZodObject<{
29136
29339
  };
29137
29340
  connect_partner_name: string | null;
29138
29341
  is_publishable_key_auth_enabled: boolean;
29342
+ organization_id: string | null;
29139
29343
  publishable_key?: string | undefined;
29140
29344
  }, {
29141
29345
  name: string;
@@ -29152,6 +29356,7 @@ declare const workspace: z.ZodObject<{
29152
29356
  };
29153
29357
  connect_partner_name: string | null;
29154
29358
  is_publishable_key_auth_enabled: boolean;
29359
+ organization_id: string | null;
29155
29360
  publishable_key?: string | undefined;
29156
29361
  }>;
29157
29362
  type Workspace = z.infer<typeof workspace>;
@@ -74206,6 +74411,112 @@ type Routes = {
74206
74411
  }[] | undefined;
74207
74412
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
74208
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
+ from: {
74439
+ /** Previous name of the access code. */
74440
+ name: string | null;
74441
+ };
74442
+ to: {
74443
+ /** New name of the access code. */
74444
+ name: string | null;
74445
+ };
74446
+ /** Human-readable description of the change and its source. */
74447
+ description: string;
74448
+ } | {
74449
+ /** ID of the event. */
74450
+ event_id: string;
74451
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
74452
+ workspace_id: string;
74453
+ /** Date and time at which the event was created. */
74454
+ created_at: string;
74455
+ /** Date and time at which the event occurred. */
74456
+ occurred_at: string;
74457
+ /** ID of the affected access code. */
74458
+ access_code_id: string;
74459
+ /** ID of the device associated with the affected access code. */
74460
+ device_id: string;
74461
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
74462
+ connected_account_id: string;
74463
+ /** Custom metadata of the device, present when device_id is provided. */
74464
+ device_custom_metadata?: {
74465
+ [x: string]: string | boolean;
74466
+ } | undefined;
74467
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
74468
+ connected_account_custom_metadata?: {
74469
+ [x: string]: string | boolean;
74470
+ } | undefined;
74471
+ event_type: 'access_code.code_changed';
74472
+ from: {
74473
+ /** Previous pin code. */
74474
+ code: string | null;
74475
+ };
74476
+ to: {
74477
+ /** New pin code. */
74478
+ code: string | null;
74479
+ };
74480
+ /** Human-readable description of the change and its source. */
74481
+ description: string;
74482
+ } | {
74483
+ /** ID of the event. */
74484
+ event_id: string;
74485
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
74486
+ workspace_id: string;
74487
+ /** Date and time at which the event was created. */
74488
+ created_at: string;
74489
+ /** Date and time at which the event occurred. */
74490
+ occurred_at: string;
74491
+ /** ID of the affected access code. */
74492
+ access_code_id: string;
74493
+ /** ID of the device associated with the affected access code. */
74494
+ device_id: string;
74495
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
74496
+ connected_account_id: string;
74497
+ /** Custom metadata of the device, present when device_id is provided. */
74498
+ device_custom_metadata?: {
74499
+ [x: string]: string | boolean;
74500
+ } | undefined;
74501
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
74502
+ connected_account_custom_metadata?: {
74503
+ [x: string]: string | boolean;
74504
+ } | undefined;
74505
+ event_type: 'access_code.time_frame_changed';
74506
+ from: {
74507
+ /** Previous start time. */
74508
+ starts_at: string | null;
74509
+ /** Previous end time. */
74510
+ ends_at: string | null;
74511
+ };
74512
+ to: {
74513
+ /** New start time. */
74514
+ starts_at: string | null;
74515
+ /** New end time. */
74516
+ ends_at: string | null;
74517
+ };
74518
+ /** Human-readable description of the change and its source. */
74519
+ description: string;
74209
74520
  } | {
74210
74521
  /** ID of the event. */
74211
74522
  event_id: string;
@@ -76968,9 +77279,9 @@ type Routes = {
76968
77279
  /** IDs of the access codes for which you want to list events. */
76969
77280
  access_code_ids?: string[] | undefined;
76970
77281
  /** Type of the events that you want to list. */
76971
- 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;
77282
+ 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;
76972
77283
  /** Types of the events that you want to list. */
76973
- 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;
77284
+ 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;
76974
77285
  /** ID of the connected account for which you want to list events. */
76975
77286
  connected_account_id?: string | undefined;
76976
77287
  /** ID of the Connect Webview for which you want to list events. */
@@ -77065,6 +77376,112 @@ type Routes = {
77065
77376
  }[] | undefined;
77066
77377
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
77067
77378
  change_reason?: string | undefined;
77379
+ } | {
77380
+ /** ID of the event. */
77381
+ event_id: string;
77382
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77383
+ workspace_id: string;
77384
+ /** Date and time at which the event was created. */
77385
+ created_at: string;
77386
+ /** Date and time at which the event occurred. */
77387
+ occurred_at: string;
77388
+ /** ID of the affected access code. */
77389
+ access_code_id: string;
77390
+ /** ID of the device associated with the affected access code. */
77391
+ device_id: string;
77392
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77393
+ connected_account_id: string;
77394
+ /** Custom metadata of the device, present when device_id is provided. */
77395
+ device_custom_metadata?: {
77396
+ [x: string]: string | boolean;
77397
+ } | undefined;
77398
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77399
+ connected_account_custom_metadata?: {
77400
+ [x: string]: string | boolean;
77401
+ } | undefined;
77402
+ event_type: 'access_code.name_changed';
77403
+ from: {
77404
+ /** Previous name of the access code. */
77405
+ name: string | null;
77406
+ };
77407
+ to: {
77408
+ /** New name of the access code. */
77409
+ name: string | null;
77410
+ };
77411
+ /** Human-readable description of the change and its source. */
77412
+ description: string;
77413
+ } | {
77414
+ /** ID of the event. */
77415
+ event_id: string;
77416
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77417
+ workspace_id: string;
77418
+ /** Date and time at which the event was created. */
77419
+ created_at: string;
77420
+ /** Date and time at which the event occurred. */
77421
+ occurred_at: string;
77422
+ /** ID of the affected access code. */
77423
+ access_code_id: string;
77424
+ /** ID of the device associated with the affected access code. */
77425
+ device_id: string;
77426
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77427
+ connected_account_id: string;
77428
+ /** Custom metadata of the device, present when device_id is provided. */
77429
+ device_custom_metadata?: {
77430
+ [x: string]: string | boolean;
77431
+ } | undefined;
77432
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77433
+ connected_account_custom_metadata?: {
77434
+ [x: string]: string | boolean;
77435
+ } | undefined;
77436
+ event_type: 'access_code.code_changed';
77437
+ from: {
77438
+ /** Previous pin code. */
77439
+ code: string | null;
77440
+ };
77441
+ to: {
77442
+ /** New pin code. */
77443
+ code: string | null;
77444
+ };
77445
+ /** Human-readable description of the change and its source. */
77446
+ description: string;
77447
+ } | {
77448
+ /** ID of the event. */
77449
+ event_id: string;
77450
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
77451
+ workspace_id: string;
77452
+ /** Date and time at which the event was created. */
77453
+ created_at: string;
77454
+ /** Date and time at which the event occurred. */
77455
+ occurred_at: string;
77456
+ /** ID of the affected access code. */
77457
+ access_code_id: string;
77458
+ /** ID of the device associated with the affected access code. */
77459
+ device_id: string;
77460
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
77461
+ connected_account_id: string;
77462
+ /** Custom metadata of the device, present when device_id is provided. */
77463
+ device_custom_metadata?: {
77464
+ [x: string]: string | boolean;
77465
+ } | undefined;
77466
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
77467
+ connected_account_custom_metadata?: {
77468
+ [x: string]: string | boolean;
77469
+ } | undefined;
77470
+ event_type: 'access_code.time_frame_changed';
77471
+ from: {
77472
+ /** Previous start time. */
77473
+ starts_at: string | null;
77474
+ /** Previous end time. */
77475
+ ends_at: string | null;
77476
+ };
77477
+ to: {
77478
+ /** New start time. */
77479
+ starts_at: string | null;
77480
+ /** New end time. */
77481
+ ends_at: string | null;
77482
+ };
77483
+ /** Human-readable description of the change and its source. */
77484
+ description: string;
77068
77485
  } | {
77069
77486
  /** ID of the event. */
77070
77487
  event_id: string;
@@ -105489,9 +105906,9 @@ type Routes = {
105489
105906
  /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
105490
105907
  between?: (string | Date)[] | undefined;
105491
105908
  /** Type of the events that you want to list. */
105492
- 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;
105909
+ 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;
105493
105910
  /** Types of the events that you want to list. */
105494
- 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;
105911
+ 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;
105495
105912
  /** Numerical limit on the number of events to return. */
105496
105913
  limit?: number;
105497
105914
  };
@@ -105556,6 +105973,112 @@ type Routes = {
105556
105973
  }[] | undefined;
105557
105974
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
105558
105975
  change_reason?: string | undefined;
105976
+ } | {
105977
+ /** ID of the event. */
105978
+ event_id: string;
105979
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
105980
+ workspace_id: string;
105981
+ /** Date and time at which the event was created. */
105982
+ created_at: string;
105983
+ /** Date and time at which the event occurred. */
105984
+ occurred_at: string;
105985
+ /** ID of the affected access code. */
105986
+ access_code_id: string;
105987
+ /** ID of the device associated with the affected access code. */
105988
+ device_id: string;
105989
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
105990
+ connected_account_id: string;
105991
+ /** Custom metadata of the device, present when device_id is provided. */
105992
+ device_custom_metadata?: {
105993
+ [x: string]: string | boolean;
105994
+ } | undefined;
105995
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
105996
+ connected_account_custom_metadata?: {
105997
+ [x: string]: string | boolean;
105998
+ } | undefined;
105999
+ event_type: 'access_code.name_changed';
106000
+ from: {
106001
+ /** Previous name of the access code. */
106002
+ name: string | null;
106003
+ };
106004
+ to: {
106005
+ /** New name of the access code. */
106006
+ name: string | null;
106007
+ };
106008
+ /** Human-readable description of the change and its source. */
106009
+ description: string;
106010
+ } | {
106011
+ /** ID of the event. */
106012
+ event_id: string;
106013
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
106014
+ workspace_id: string;
106015
+ /** Date and time at which the event was created. */
106016
+ created_at: string;
106017
+ /** Date and time at which the event occurred. */
106018
+ occurred_at: string;
106019
+ /** ID of the affected access code. */
106020
+ access_code_id: string;
106021
+ /** ID of the device associated with the affected access code. */
106022
+ device_id: string;
106023
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
106024
+ connected_account_id: string;
106025
+ /** Custom metadata of the device, present when device_id is provided. */
106026
+ device_custom_metadata?: {
106027
+ [x: string]: string | boolean;
106028
+ } | undefined;
106029
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
106030
+ connected_account_custom_metadata?: {
106031
+ [x: string]: string | boolean;
106032
+ } | undefined;
106033
+ event_type: 'access_code.code_changed';
106034
+ from: {
106035
+ /** Previous pin code. */
106036
+ code: string | null;
106037
+ };
106038
+ to: {
106039
+ /** New pin code. */
106040
+ code: string | null;
106041
+ };
106042
+ /** Human-readable description of the change and its source. */
106043
+ description: string;
106044
+ } | {
106045
+ /** ID of the event. */
106046
+ event_id: string;
106047
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
106048
+ workspace_id: string;
106049
+ /** Date and time at which the event was created. */
106050
+ created_at: string;
106051
+ /** Date and time at which the event occurred. */
106052
+ occurred_at: string;
106053
+ /** ID of the affected access code. */
106054
+ access_code_id: string;
106055
+ /** ID of the device associated with the affected access code. */
106056
+ device_id: string;
106057
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
106058
+ connected_account_id: string;
106059
+ /** Custom metadata of the device, present when device_id is provided. */
106060
+ device_custom_metadata?: {
106061
+ [x: string]: string | boolean;
106062
+ } | undefined;
106063
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
106064
+ connected_account_custom_metadata?: {
106065
+ [x: string]: string | boolean;
106066
+ } | undefined;
106067
+ event_type: 'access_code.time_frame_changed';
106068
+ from: {
106069
+ /** Previous start time. */
106070
+ starts_at: string | null;
106071
+ /** Previous end time. */
106072
+ ends_at: string | null;
106073
+ };
106074
+ to: {
106075
+ /** New start time. */
106076
+ starts_at: string | null;
106077
+ /** New end time. */
106078
+ ends_at: string | null;
106079
+ };
106080
+ /** Human-readable description of the change and its source. */
106081
+ description: string;
105559
106082
  } | {
105560
106083
  /** ID of the event. */
105561
106084
  event_id: string;
@@ -136717,6 +137240,8 @@ type Routes = {
136717
137240
  publishable_key?: string | undefined;
136718
137241
  /** Indicates whether publishable key authentication is enabled for this workspace. */
136719
137242
  is_publishable_key_auth_enabled: boolean;
137243
+ /** ID of the organization to which the [workspace](https://docs.seam.co/core-concepts/workspaces) belongs, or `null` if the workspace is not assigned to an organization. */
137244
+ organization_id: string | null;
136720
137245
  };
136721
137246
  };
136722
137247
  maxDuration: undefined;
@@ -136971,6 +137496,8 @@ type Routes = {
136971
137496
  publishable_key?: string | undefined;
136972
137497
  /** Indicates whether publishable key authentication is enabled for this workspace. */
136973
137498
  is_publishable_key_auth_enabled: boolean;
137499
+ /** ID of the organization to which the [workspace](https://docs.seam.co/core-concepts/workspaces) belongs, or `null` if the workspace is not assigned to an organization. */
137500
+ organization_id: string | null;
136974
137501
  }[] | undefined;
136975
137502
  devices?: {
136976
137503
  /** ID of the device. */
@@ -142275,6 +142802,112 @@ type Routes = {
142275
142802
  }[] | undefined;
142276
142803
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
142277
142804
  change_reason?: string | undefined;
142805
+ } | {
142806
+ /** ID of the event. */
142807
+ event_id: string;
142808
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142809
+ workspace_id: string;
142810
+ /** Date and time at which the event was created. */
142811
+ created_at: string;
142812
+ /** Date and time at which the event occurred. */
142813
+ occurred_at: string;
142814
+ /** ID of the affected access code. */
142815
+ access_code_id: string;
142816
+ /** ID of the device associated with the affected access code. */
142817
+ device_id: string;
142818
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142819
+ connected_account_id: string;
142820
+ /** Custom metadata of the device, present when device_id is provided. */
142821
+ device_custom_metadata?: {
142822
+ [x: string]: string | boolean;
142823
+ } | undefined;
142824
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142825
+ connected_account_custom_metadata?: {
142826
+ [x: string]: string | boolean;
142827
+ } | undefined;
142828
+ event_type: 'access_code.name_changed';
142829
+ from: {
142830
+ /** Previous name of the access code. */
142831
+ name: string | null;
142832
+ };
142833
+ to: {
142834
+ /** New name of the access code. */
142835
+ name: string | null;
142836
+ };
142837
+ /** Human-readable description of the change and its source. */
142838
+ description: string;
142839
+ } | {
142840
+ /** ID of the event. */
142841
+ event_id: string;
142842
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142843
+ workspace_id: string;
142844
+ /** Date and time at which the event was created. */
142845
+ created_at: string;
142846
+ /** Date and time at which the event occurred. */
142847
+ occurred_at: string;
142848
+ /** ID of the affected access code. */
142849
+ access_code_id: string;
142850
+ /** ID of the device associated with the affected access code. */
142851
+ device_id: string;
142852
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142853
+ connected_account_id: string;
142854
+ /** Custom metadata of the device, present when device_id is provided. */
142855
+ device_custom_metadata?: {
142856
+ [x: string]: string | boolean;
142857
+ } | undefined;
142858
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142859
+ connected_account_custom_metadata?: {
142860
+ [x: string]: string | boolean;
142861
+ } | undefined;
142862
+ event_type: 'access_code.code_changed';
142863
+ from: {
142864
+ /** Previous pin code. */
142865
+ code: string | null;
142866
+ };
142867
+ to: {
142868
+ /** New pin code. */
142869
+ code: string | null;
142870
+ };
142871
+ /** Human-readable description of the change and its source. */
142872
+ description: string;
142873
+ } | {
142874
+ /** ID of the event. */
142875
+ event_id: string;
142876
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event. */
142877
+ workspace_id: string;
142878
+ /** Date and time at which the event was created. */
142879
+ created_at: string;
142880
+ /** Date and time at which the event occurred. */
142881
+ occurred_at: string;
142882
+ /** ID of the affected access code. */
142883
+ access_code_id: string;
142884
+ /** ID of the device associated with the affected access code. */
142885
+ device_id: string;
142886
+ /** ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code. */
142887
+ connected_account_id: string;
142888
+ /** Custom metadata of the device, present when device_id is provided. */
142889
+ device_custom_metadata?: {
142890
+ [x: string]: string | boolean;
142891
+ } | undefined;
142892
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
142893
+ connected_account_custom_metadata?: {
142894
+ [x: string]: string | boolean;
142895
+ } | undefined;
142896
+ event_type: 'access_code.time_frame_changed';
142897
+ from: {
142898
+ /** Previous start time. */
142899
+ starts_at: string | null;
142900
+ /** Previous end time. */
142901
+ ends_at: string | null;
142902
+ };
142903
+ to: {
142904
+ /** New start time. */
142905
+ starts_at: string | null;
142906
+ /** New end time. */
142907
+ ends_at: string | null;
142908
+ };
142909
+ /** Human-readable description of the change and its source. */
142910
+ description: string;
142278
142911
  } | {
142279
142912
  /** ID of the event. */
142280
142913
  event_id: string;
@@ -146360,6 +146993,8 @@ type Routes = {
146360
146993
  publishable_key?: string | undefined;
146361
146994
  /** Indicates whether publishable key authentication is enabled for this workspace. */
146362
146995
  is_publishable_key_auth_enabled: boolean;
146996
+ /** ID of the organization to which the [workspace](https://docs.seam.co/core-concepts/workspaces) belongs, or `null` if the workspace is not assigned to an organization. */
146997
+ organization_id: string | null;
146363
146998
  };
146364
146999
  };
146365
147000
  maxDuration: undefined;
@@ -146402,6 +147037,8 @@ type Routes = {
146402
147037
  publishable_key?: string | undefined;
146403
147038
  /** Indicates whether publishable key authentication is enabled for this workspace. */
146404
147039
  is_publishable_key_auth_enabled: boolean;
147040
+ /** ID of the organization to which the [workspace](https://docs.seam.co/core-concepts/workspaces) belongs, or `null` if the workspace is not assigned to an organization. */
147041
+ organization_id: string | null;
146405
147042
  }[];
146406
147043
  };
146407
147044
  maxDuration: undefined;
@@ -148081,6 +148718,8 @@ type Routes = {
148081
148718
  jsonBody: {
148082
148719
  /** Name of the workspace. */
148083
148720
  name?: string | undefined;
148721
+ /** ID of the organization to assign the workspace to. The authenticated user must be the owner of the workspace and an admin of the target organization. */
148722
+ organization_id?: string | undefined;
148084
148723
  /** Connect partner name for the workspace. */
148085
148724
  connect_partner_name?: string | undefined;
148086
148725
  /** [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) customizations for the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */