@seamapi/http - v2.0.0
    Preparing search index...

    Type Alias SeamEvent

    SeamEvent:
        | {
            created_at?: string;
            event_description?: string;
            event_id?: string;
            event_type?: | "access_code.created"
            | "access_code.changed"
            | "access_code.name_changed"
            | "access_code.code_changed"
            | "access_code.time_frame_changed"
            | "access_code.mutations_requested"
            | "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"
            | "access_method.delay_in_issuing"
            | "access_method.failed_to_issue"
            | "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";
            occurred_at?: string;
            workspace_id?: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            change_reason?: string;
            changed_properties?: {
                from: string
                | null;
                property: string;
                to: string | null;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.changed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            description: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.name_changed";
            from: { name: string | null };
            occurred_at: string;
            to: { name: string | null };
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            description: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.code_changed";
            from: { code: string | null };
            occurred_at: string;
            to: { code: string | null };
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            description: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.time_frame_changed";
            from: { ends_at: string | null; starts_at: string | null };
            occurred_at: string;
            to: { ends_at: string | null; starts_at: string | null };
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.mutations_requested";
            occurred_at: string;
            requested_mutations: {
                from?: Record<string, unknown>;
                mutation_code:
                    | "updating_name"
                    | "updating_code"
                    | "updating_time_frame"
                    | "deleting"
                    | "creating"
                    | "deferring_creation";
                to?: Record<string, unknown>;
            }[];
            workspace_id: string;
        }
        | {
            access_code_id: string;
            code: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.scheduled_on_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            code: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.set_on_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.removed_from_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            access_code_id: string;
            access_code_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "access_code.delay_in_setting_on_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            access_code_id: string;
            access_code_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "access_code.failed_to_set_on_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            code: string
            | null;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            access_code_id: string;
            access_code_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "access_code.delay_in_removing_from_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            access_code_id: string;
            access_code_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "access_code.failed_to_remove_from_device";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.modified_external_to_seam";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.deleted_external_to_seam";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            backup_access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.backup_access_code_pulled";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.unmanaged.converted_to_managed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            access_code_id: string;
            access_code_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "access_code.unmanaged.failed_to_convert_to_managed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.unmanaged.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "access_code.unmanaged.removed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.access_granted_to_all_doors";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            acs_entrance_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.access_granted_to_door";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            acs_entrance_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.access_to_door_lost";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            access_grant_key?: string;
            created_at: string;
            ends_at?: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.access_times_changed";
            occurred_at: string;
            starts_at?: string;
            workspace_id: string;
        }
        | {
            access_grant_id: string;
            created_at: string;
            error_message: string;
            event_description?: string;
            event_id: string;
            event_type: "access_grant.could_not_create_requested_access_methods";
            missing_device_ids?: string[];
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            code?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.issued";
            is_backup_code?: boolean;
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.revoked";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.card_encoding_required";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            code?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.reissued";
            is_backup_code?: boolean;
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.delay_in_issuing";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_grant_ids: string[];
            access_grant_keys?: string[];
            access_method_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "access_method.failed_to_issue";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_system.connected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_system.added";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_system_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            acs_system_id: string;
            acs_system_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id?: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_system.disconnected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_credential_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_credential.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_credential_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_credential.issued";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_credential_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_credential.reissued";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_credential_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_credential.invalidated";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_system_id: string;
            acs_user_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_user.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_system_id: string;
            acs_user_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_user.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_encoder_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_encoder.added";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_encoder_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_encoder.removed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_access_group_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_access_group.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_entrance_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_entrance.added";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_entrance_id: string;
            acs_system_id: string;
            connected_account_id?: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "acs_entrance.removed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            client_session_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "client_session.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connect_webview_id?: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.connected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connect_webview_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.created";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connect_webview_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.successful_login";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.disconnected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.completed_first_sync";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            connected_account_type?: string;
            created_at: string;
            customer_key?: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.completed_first_sync_after_reconnection";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connected_account.reauthorization_requested";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.lock_door.succeeded";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.lock_door.failed";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.unlock_door.succeeded";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.unlock_door.failed";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.simulate_keypad_code_entry.succeeded";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.simulate_keypad_code_entry.failed";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.simulate_manual_lock_via_keypad.succeeded";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            action_attempt_id: string;
            action_type: string;
            connected_account_id?: string;
            created_at: string;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "action_attempt.simulate_manual_lock_via_keypad.failed";
            occurred_at: string;
            status: string;
            workspace_id: string;
        }
        | {
            connect_webview_id: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            event_description?: string;
            event_id: string;
            event_type: "connect_webview.login_succeeded";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connect_webview_id: string;
            created_at: string;
            event_description?: string;
            event_id: string;
            event_type: "connect_webview.login_failed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.connected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.added";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.converted_to_unmanaged";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.unmanaged.converted_to_managed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.unmanaged.connected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            error_code: | "account_disconnected"
            | "hub_disconnected"
            | "device_disconnected";
            event_description?: string;
            event_id: string;
            event_type: "device.disconnected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            error_code: | "account_disconnected"
            | "hub_disconnected"
            | "device_disconnected";
            event_description?: string;
            event_id: string;
            event_type: "device.unmanaged.disconnected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.tampered";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            battery_level: number;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.low_battery";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            battery_level: number;
            battery_status: "critical"
            | "low"
            | "good"
            | "full";
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.battery_status_changed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.removed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            device_name?: string | null;
            event_description?: string;
            event_id: string;
            event_type: "device.deleted";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.third_party_integration_detected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.third_party_integration_no_longer_detected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.salto.privacy_mode_activated";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.salto.privacy_mode_deactivated";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "device.connection_became_flaky";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.connection_stabilized";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "device.error.subscription_required";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.error.subscription_required.resolved";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.accessory_keypad_connected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_errors: {
                created_at: string;
                error_code: string;
                message: string;
            }[];
            connected_account_id: string;
            connected_account_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_errors: { created_at: string; error_code: string; message: string }[];
            device_id: string;
            device_warnings: {
                created_at: string;
                message: string;
                warning_code: string;
            }[];
            event_description?: string;
            event_id: string;
            event_type: "device.accessory_keypad_disconnected";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "noise_sensor.noise_threshold_triggered";
            minut_metadata?: Record<string, unknown>;
            noise_level_decibels?: number;
            noise_level_nrs?: number;
            noise_threshold_id?: string;
            noise_threshold_name?: string;
            noiseaware_metadata?: Record<string, unknown>;
            occurred_at: string;
            workspace_id: string;
        }
        | {
            access_code_id?: string;
            access_code_is_managed?: boolean;
            acs_entrance_id?: string;
            acs_system_id?: string;
            acs_user_id?: string;
            action_attempt_id?: string;
            code?: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "lock.locked";
            is_via_bluetooth?: boolean;
            is_via_nfc?: boolean;
            method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card";
            occurred_at: string;
            user_identity_id?: string;
            workspace_id: string;
        }
        | {
            access_code_id?: string;
            access_code_is_managed?: boolean;
            acs_entrance_id?: string;
            acs_system_id?: string;
            acs_user_id?: string;
            action_attempt_id?: string;
            code?: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "lock.unlocked";
            is_via_bluetooth?: boolean;
            is_via_nfc?: boolean;
            method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card";
            occurred_at: string;
            user_identity_id?: string;
            workspace_id: string;
        }
        | {
            access_code_id?: string;
            acs_entrance_id?: string;
            acs_system_id?: string;
            acs_user_id?: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id?: string;
            event_description?: string;
            event_id: string;
            event_type: "lock.access_denied";
            occurred_at: string;
            reason?: {
                message: string;
                reason_code:
                    | "unknown_code"
                    | "expired_code"
                    | "blocklisted_code"
                    | "too_many_attempts"
                    | "blocked_by_privacy_mode"
                    | "credential_error";
            };
            user_identity_id?: string;
            workspace_id: string;
        }
        | {
            climate_preset_key: string;
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.climate_preset_activated";
            is_fallback_climate_preset: boolean;
            occurred_at: string;
            thermostat_schedule_id: string | null;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            cooling_set_point_celsius?: number;
            cooling_set_point_fahrenheit?: number;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.manually_adjusted";
            fan_mode_setting?: "auto" | "on" | "circulate";
            heating_set_point_celsius?: number;
            heating_set_point_fahrenheit?: number;
            hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | "eco";
            method: "seam" | "external";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.temperature_threshold_exceeded";
            lower_limit_celsius: number | null;
            lower_limit_fahrenheit: number | null;
            occurred_at: string;
            temperature_celsius: number;
            temperature_fahrenheit: number;
            upper_limit_celsius: number | null;
            upper_limit_fahrenheit: number | null;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.temperature_threshold_no_longer_exceeded";
            lower_limit_celsius: number | null;
            lower_limit_fahrenheit: number | null;
            occurred_at: string;
            temperature_celsius: number;
            temperature_fahrenheit: number;
            upper_limit_celsius: number | null;
            upper_limit_fahrenheit: number | null;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            desired_temperature_celsius?: number;
            desired_temperature_fahrenheit?: number;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.temperature_reached_set_point";
            occurred_at: string;
            temperature_celsius: number;
            temperature_fahrenheit: number;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "thermostat.temperature_changed";
            occurred_at: string;
            temperature_celsius: number;
            temperature_fahrenheit: number;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            device_name: string;
            event_description?: string;
            event_id: string;
            event_type: "device.name_changed";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            activation_reason: "motion_detected";
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "camera.activated";
            image_url?: string;
            motion_sub_type?: "human" | "vehicle" | "package" | "other";
            occurred_at: string;
            video_url?: string;
            workspace_id: string;
        }
        | {
            connected_account_custom_metadata?: Record<string, unknown>;
            connected_account_id: string;
            created_at: string;
            customer_key?: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "device.doorbell_rang";
            image_url?: string;
            occurred_at: string;
            video_url?: string;
            workspace_id: string;
        }
        | {
            created_at: string;
            device_custom_metadata?: Record<string, unknown>;
            device_id: string;
            event_description?: string;
            event_id: string;
            event_type: "phone.deactivated";
            occurred_at: string;
            workspace_id: string;
        }
        | {
            acs_entrance_ids: string[];
            created_at: string;
            device_ids: string[];
            event_description?: string;
            event_id: string;
            event_type: "space.device_membership_changed";
            occurred_at: string;
            space_id: string;
            space_key?: string;
            workspace_id: string;
        }
        | {
            acs_entrance_ids: string[];
            created_at: string;
            device_ids: string[];
            event_description?: string;
            event_id: string;
            event_type: "space.created";
            occurred_at: string;
            space_id: string;
            space_key?: string;
            workspace_id: string;
        }
        | {
            acs_entrance_ids: string[];
            created_at: string;
            device_ids: string[];
            event_description?: string;
            event_id: string;
            event_type: "space.deleted";
            occurred_at: string;
            space_id: string;
            space_key?: string;
            workspace_id: string;
        }

    Type Declaration

    • {
          created_at?: string;
          event_description?: string;
          event_id?: string;
          event_type?:
              | "access_code.created"
              | "access_code.changed"
              | "access_code.name_changed"
              | "access_code.code_changed"
              | "access_code.time_frame_changed"
              | "access_code.mutations_requested"
              | "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"
              | "access_method.delay_in_issuing"
              | "access_method.failed_to_issue"
              | "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";
          occurred_at?: string;
          workspace_id?: string;
      }
      • Optionalcreated_at?: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • Optionalevent_id?: string

        ID of the event.

      • Optionalevent_type?:
            | "access_code.created"
            | "access_code.changed"
            | "access_code.name_changed"
            | "access_code.code_changed"
            | "access_code.time_frame_changed"
            | "access_code.mutations_requested"
            | "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"
            | "access_method.delay_in_issuing"
            | "access_method.failed_to_issue"
            | "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"
      • Optionaloccurred_at?: string

        Date and time at which the event occurred.

      • Optionalworkspace_id?: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.created";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          change_reason?: string;
          changed_properties?: {
              from: string | null;
              property: string;
              to: string | null;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.changed";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalchange_reason?: string

        Human-readable reason for the change (e.g. ongoing code auto-renewed).

      • Optionalchanged_properties?: { from: string | null; property: string; to: string | null }[]

        List of properties that changed on the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.changed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          description: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.name_changed";
          from: { name: string | null };
          occurred_at: string;
          to: { name: string | null };
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • description: string

        Human-readable description of the change and its source.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.name_changed"
      • from: { name: string | null }

        Previous access code name configuration.

        • name: string | null

          Previous name of the access code.

      • occurred_at: string

        Date and time at which the event occurred.

      • to: { name: string | null }

        New access code name configuration.

        • name: string | null

          New name of the access code.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          description: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.code_changed";
          from: { code: string | null };
          occurred_at: string;
          to: { code: string | null };
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • description: string

        Human-readable description of the change and its source.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.code_changed"
      • from: { code: string | null }

        Previous pin code configuration.

        • code: string | null

          Previous pin code.

      • occurred_at: string

        Date and time at which the event occurred.

      • to: { code: string | null }

        New pin code configuration.

        • code: string | null

          New pin code.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          description: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.time_frame_changed";
          from: { ends_at: string | null; starts_at: string | null };
          occurred_at: string;
          to: { ends_at: string | null; starts_at: string | null };
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • description: string

        Human-readable description of the change and its source.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.time_frame_changed"
      • from: { ends_at: string | null; starts_at: string | null }

        Previous time frame configuration.

        • ends_at: string | null

          Previous end time.

        • starts_at: string | null

          Previous start time.

      • occurred_at: string

        Date and time at which the event occurred.

      • to: { ends_at: string | null; starts_at: string | null }

        New time frame configuration.

        • ends_at: string | null

          New end time.

        • starts_at: string | null

          New start time.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.mutations_requested";
          occurred_at: string;
          requested_mutations: {
              from?: Record<string, unknown>;
              mutation_code:
                  | "updating_name"
                  | "updating_code"
                  | "updating_time_frame"
                  | "deleting"
                  | "creating"
                  | "deferring_creation";
              to?: Record<string, unknown>;
          }[];
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.mutations_requested"
      • occurred_at: string

        Date and time at which the event occurred.

      • requested_mutations: {
            from?: Record<string, unknown>;
            mutation_code:
                | "updating_name"
                | "updating_code"
                | "updating_time_frame"
                | "deleting"
                | "creating"
                | "deferring_creation";
            to?: Record<string, unknown>;
        }[]

        Array of mutations requested on the access code, each containing the mutation type and from/to values.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          code: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.scheduled_on_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • code: string

        Code for the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.scheduled_on_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          code: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.set_on_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • code: string

        Code for the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.set_on_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.removed_from_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.removed_from_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          access_code_id: string;
          access_code_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "access_code.delay_in_setting_on_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access code.

      • access_code_id: string

        ID of the affected access code.

      • access_code_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the device associated with the affected access code.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.delay_in_setting_on_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          access_code_id: string;
          access_code_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "access_code.failed_to_set_on_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access code.

      • access_code_id: string

        ID of the affected access code.

      • access_code_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the device associated with the affected access code.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.failed_to_set_on_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          code: string | null;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • code: string | null

        Code for the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          access_code_id: string;
          access_code_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "access_code.delay_in_removing_from_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access code.

      • access_code_id: string

        ID of the affected access code.

      • access_code_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the device associated with the affected access code.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.delay_in_removing_from_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          access_code_id: string;
          access_code_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "access_code.failed_to_remove_from_device";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access code.

      • access_code_id: string

        ID of the affected access code.

      • access_code_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the device associated with the affected access code.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.failed_to_remove_from_device"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.modified_external_to_seam";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.modified_external_to_seam"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.deleted_external_to_seam";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.deleted_external_to_seam"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          backup_access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.backup_access_code_pulled";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • backup_access_code_id: string

        ID of the backup access code that was pulled from the pool.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.backup_access_code_pulled"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.unmanaged.converted_to_managed";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.unmanaged.converted_to_managed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          access_code_id: string;
          access_code_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "access_code.unmanaged.failed_to_convert_to_managed";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access code.

      • access_code_id: string

        ID of the affected access code.

      • access_code_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the device associated with the affected access code.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.unmanaged.failed_to_convert_to_managed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.unmanaged.created";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.unmanaged.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "access_code.unmanaged.removed";
          occurred_at: string;
          workspace_id: string;
      }
      • access_code_id: string

        ID of the affected access code.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the affected access code.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the device associated with the affected access code.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_code.unmanaged.removed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.created";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.access_granted_to_all_doors";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.access_granted_to_all_doors"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          acs_entrance_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.access_granted_to_door";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • acs_entrance_id: string

        ID of the affected entrance.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.access_granted_to_door"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          acs_entrance_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.access_to_door_lost";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • acs_entrance_id: string

        ID of the affected entrance.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.access_to_door_lost"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          access_grant_key?: string;
          created_at: string;
          ends_at?: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.access_times_changed";
          occurred_at: string;
          starts_at?: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • Optionalaccess_grant_key?: string

        Key of the affected Access Grant (if present).

      • created_at: string

        Date and time at which the event was created.

      • Optionalends_at?: string

        The new end time for the access grant.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.access_times_changed"
      • occurred_at: string

        Date and time at which the event occurred.

      • Optionalstarts_at?: string

        The new start time for the access grant.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_id: string;
          created_at: string;
          error_message: string;
          event_description?: string;
          event_id: string;
          event_type: "access_grant.could_not_create_requested_access_methods";
          missing_device_ids?: string[];
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_id: string

        ID of the affected Access Grant.

      • created_at: string

        Date and time at which the event was created.

      • error_message: string

        Description of why the access methods could not be created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_grant.could_not_create_requested_access_methods"
      • Optionalmissing_device_ids?: string[]

        IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant.

      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          code?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.issued";
          is_backup_code?: boolean;
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • Optionalcode?: string

        The actual PIN code for code access methods (only present when mode is 'code').

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.issued"
      • Optionalis_backup_code?: boolean

        Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).

      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.revoked";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.revoked"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.card_encoding_required";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.card_encoding_required"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          code?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.reissued";
          is_backup_code?: boolean;
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • Optionalcode?: string

        The actual PIN code for code access methods (only present when mode is 'code').

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.reissued"
      • Optionalis_backup_code?: boolean

        Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).

      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.created";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.delay_in_issuing";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.delay_in_issuing"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_grant_ids: string[];
          access_grant_keys?: string[];
          access_method_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "access_method.failed_to_issue";
          occurred_at: string;
          workspace_id: string;
      }
      • access_grant_ids: string[]

        IDs of the access grants associated with this access method.

      • Optionalaccess_grant_keys?: string[]

        Keys of the access grants associated with this access method (if present).

      • access_method_id: string

        ID of the affected access method.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "access_method.failed_to_issue"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_system.connected";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_system.connected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_system.added";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_system.added"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_system_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          acs_system_id: string;
          acs_system_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id?: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_system.disconnected";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_system_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the access control system.

      • acs_system_id: string

        ID of the access system.

      • acs_system_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the access control system.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_system.disconnected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_credential_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_credential.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_credential_id: string

        ID of the affected credential.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_credential.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_credential_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_credential.issued";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_credential_id: string

        ID of the affected credential.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_credential.issued"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_credential_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_credential.reissued";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_credential_id: string

        ID of the affected credential.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_credential.reissued"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_credential_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_credential.invalidated";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_credential_id: string

        ID of the affected credential.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_credential.invalidated"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_system_id: string;
          acs_user_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_user.created";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_system_id: string

        ID of the access system.

      • acs_user_id: string

        ID of the affected access system user.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_user.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_system_id: string;
          acs_user_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_user.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_system_id: string

        ID of the access system.

      • acs_user_id: string

        ID of the affected access system user.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_user.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_encoder_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_encoder.added";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_encoder_id: string

        ID of the affected encoder.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_encoder.added"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_encoder_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_encoder.removed";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_encoder_id: string

        ID of the affected encoder.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_encoder.removed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_access_group_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_access_group.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_access_group_id: string

        ID of the affected access group.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_access_group.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_entrance_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_entrance.added";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_entrance_id: string

        ID of the affected entrance.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_entrance.added"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_entrance_id: string;
          acs_system_id: string;
          connected_account_id?: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "acs_entrance.removed";
          occurred_at: string;
          workspace_id: string;
      }
      • acs_entrance_id: string

        ID of the affected entrance.

      • acs_system_id: string

        ID of the access system.

      • Optionalconnected_account_id?: string

        ID of the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "acs_entrance.removed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          client_session_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "client_session.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • client_session_id: string

        ID of the affected client session.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "client_session.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connect_webview_id?: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.connected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnect_webview_id?: string

        ID of the Connect Webview associated with the event.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with this connected account, if any.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.connected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connect_webview_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.created";
          occurred_at: string;
          workspace_id: string;
      }
      • connect_webview_id: string

        ID of the Connect Webview associated with the event.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.created"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connect_webview_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.successful_login";
          occurred_at: string;
          workspace_id: string;
      }
      • connect_webview_id: string

        ID of the Connect Webview associated with the event.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.successful_login"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.disconnected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the affected connected account.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.disconnected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.completed_first_sync";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.completed_first_sync"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          connected_account_type?: string;
          created_at: string;
          customer_key?: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • Optionalconnected_account_type?: string

        undocumented: Unreleased.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with this connected account, if any.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.completed_first_sync_after_reconnection";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the affected connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.completed_first_sync_after_reconnection"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connected_account.reauthorization_requested";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the affected connected account.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connected_account.reauthorization_requested"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.lock_door.succeeded";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.lock_door.succeeded"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.lock_door.failed";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.lock_door.failed"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.unlock_door.succeeded";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.unlock_door.succeeded"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.unlock_door.failed";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.unlock_door.failed"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.simulate_keypad_code_entry.succeeded";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.simulate_keypad_code_entry.succeeded"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.simulate_keypad_code_entry.failed";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.simulate_keypad_code_entry.failed"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.simulate_manual_lock_via_keypad.succeeded";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.simulate_manual_lock_via_keypad.succeeded"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          action_attempt_id: string;
          action_type: string;
          connected_account_id?: string;
          created_at: string;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "action_attempt.simulate_manual_lock_via_keypad.failed";
          occurred_at: string;
          status: string;
          workspace_id: string;
      }
      • action_attempt_id: string

        ID of the affected action attempt.

      • action_type: string

        Type of the action.

      • Optionalconnected_account_id?: string

        ID of the connected account associated with the action attempt, if applicable.

      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_id?: string

        ID of the device associated with the action attempt, if applicable.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "action_attempt.simulate_manual_lock_via_keypad.failed"
      • occurred_at: string

        Date and time at which the event occurred.

      • status: string

        Status of the action.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connect_webview_id: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          event_description?: string;
          event_id: string;
          event_type: "connect_webview.login_succeeded";
          occurred_at: string;
          workspace_id: string;
      }
      • connect_webview_id: string

        ID of the affected Connect Webview.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account; present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with this connect webview, if any.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connect_webview.login_succeeded"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connect_webview_id: string;
          created_at: string;
          event_description?: string;
          event_id: string;
          event_type: "connect_webview.login_failed";
          occurred_at: string;
          workspace_id: string;
      }
      • connect_webview_id: string

        ID of the affected Connect Webview.

      • created_at: string

        Date and time at which the event was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "connect_webview.login_failed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.connected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.connected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.added";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.added"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.converted_to_unmanaged";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.converted_to_unmanaged"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.unmanaged.converted_to_managed";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.unmanaged.converted_to_managed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.unmanaged.connected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.unmanaged.connected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          error_code: | "account_disconnected"
          | "hub_disconnected"
          | "device_disconnected";
          event_description?: string;
          event_id: string;
          event_type: "device.disconnected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the affected device.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • error_code: "account_disconnected" | "hub_disconnected" | "device_disconnected"

        Error code associated with the disconnection event, if any.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.disconnected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          error_code: | "account_disconnected"
          | "hub_disconnected"
          | "device_disconnected";
          event_description?: string;
          event_id: string;
          event_type: "device.unmanaged.disconnected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the affected device.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • error_code: "account_disconnected" | "hub_disconnected" | "device_disconnected"

        Error code associated with the disconnection event, if any.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.unmanaged.disconnected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.tampered";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.tampered"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          battery_level: number;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.low_battery";
          occurred_at: string;
          workspace_id: string;
      }
      • battery_level: number

        Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.low_battery"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          battery_level: number;
          battery_status: "critical" | "low" | "good" | "full";
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.battery_status_changed";
          occurred_at: string;
          workspace_id: string;
      }
      • battery_level: number

        Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.

      • battery_status: "critical" | "low" | "good" | "full"

        Battery status of the affected device, calculated from the numeric battery_level value.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.battery_status_changed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.removed";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.removed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          device_name?: string | null;
          event_description?: string;
          event_id: string;
          event_type: "device.deleted";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionaldevice_name?: string | null

        Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.deleted"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.third_party_integration_detected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.third_party_integration_detected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.third_party_integration_no_longer_detected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.third_party_integration_no_longer_detected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.salto.privacy_mode_activated";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.salto.privacy_mode_activated"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.salto.privacy_mode_deactivated";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.salto.privacy_mode_deactivated"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "device.connection_became_flaky";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the affected device.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.connection_became_flaky"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.connection_stabilized";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.connection_stabilized"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "device.error.subscription_required";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the affected device.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.error.subscription_required"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.error.subscription_required.resolved";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.error.subscription_required.resolved"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.accessory_keypad_connected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.accessory_keypad_connected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_errors: {
              created_at: string;
              error_code: string;
              message: string;
          }[];
          connected_account_id: string;
          connected_account_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_errors: { created_at: string; error_code: string; message: string }[];
          device_id: string;
          device_warnings: {
              created_at: string;
              message: string;
              warning_code: string;
          }[];
          event_description?: string;
          event_id: string;
          event_type: "device.accessory_keypad_disconnected";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the connected account.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • connected_account_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the connected account.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_errors: { created_at: string; error_code: string; message: string }[]

        Errors associated with the device.

      • device_id: string

        ID of the affected device.

      • device_warnings: { created_at: string; message: string; warning_code: string }[]

        Warnings associated with the device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.accessory_keypad_disconnected"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "noise_sensor.noise_threshold_triggered";
          minut_metadata?: Record<string, unknown>;
          noise_level_decibels?: number;
          noise_level_nrs?: number;
          noise_threshold_id?: string;
          noise_threshold_name?: string;
          noiseaware_metadata?: Record<string, unknown>;
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "noise_sensor.noise_threshold_triggered"
      • Optionalminut_metadata?: Record<string, unknown>

        Metadata from Minut.

      • Optionalnoise_level_decibels?: number

        Detected noise level in decibels.

      • Optionalnoise_level_nrs?: number

        Detected noise level in Noiseaware Noise Risk Score (NRS).

      • Optionalnoise_threshold_id?: string

        ID of the noise threshold that was triggered.

      • Optionalnoise_threshold_name?: string

        Name of the noise threshold that was triggered.

      • Optionalnoiseaware_metadata?: Record<string, unknown>

        Metadata from Noiseaware.

      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id?: string;
          access_code_is_managed?: boolean;
          acs_entrance_id?: string;
          acs_system_id?: string;
          acs_user_id?: string;
          action_attempt_id?: string;
          code?: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "lock.locked";
          is_via_bluetooth?: boolean;
          is_via_nfc?: boolean;
          method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card";
          occurred_at: string;
          user_identity_id?: string;
          workspace_id: string;
      }
      • Optionalaccess_code_id?: string

        ID of the access code that was used to lock the device.

      • Optionalaccess_code_is_managed?: boolean

        Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.

      • Optionalacs_entrance_id?: string

        undocumented: Unreleased. --- ID of the ACS entrance associated with the lock event.

      • Optionalacs_system_id?: string

        undocumented: Unreleased. --- ID of the ACS system associated with the lock event.

      • Optionalacs_user_id?: string

        undocumented: Unreleased. --- ID of the ACS user associated with the lock event.

      • Optionalaction_attempt_id?: string

        ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a LOCK_DOOR action attempt).

      • Optionalcode?: string

        Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "lock.locked"
      • Optionalis_via_bluetooth?: boolean

        Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.

      • Optionalis_via_nfc?: boolean

        Whether the lock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.

      • method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card"

        Method by which the lock was locked. keycode: an access code was used (see access_code_id). manual: a physical action such as a thumbturn or button press. remote: a remote action via an app, Bluetooth, or the Seam API (see action_attempt_id if Seam-initiated; see is_via_bluetooth or is_via_nfc for the transport). automatic: triggered automatically, for example by an auto-relock timer. unknown: could not be determined.

      • occurred_at: string

        Date and time at which the event occurred.

      • Optionaluser_identity_id?: string

        undocumented: Unreleased. --- ID of the user identity associated with the lock event.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id?: string;
          access_code_is_managed?: boolean;
          acs_entrance_id?: string;
          acs_system_id?: string;
          acs_user_id?: string;
          action_attempt_id?: string;
          code?: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "lock.unlocked";
          is_via_bluetooth?: boolean;
          is_via_nfc?: boolean;
          method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card";
          occurred_at: string;
          user_identity_id?: string;
          workspace_id: string;
      }
      • Optionalaccess_code_id?: string

        ID of the access code that was used to unlock the affected device.

      • Optionalaccess_code_is_managed?: boolean

        Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.

      • Optionalacs_entrance_id?: string

        undocumented: Unreleased. --- ID of the ACS entrance associated with the unlock event.

      • Optionalacs_system_id?: string

        undocumented: Unreleased. --- ID of the ACS system associated with the unlock event.

      • Optionalacs_user_id?: string

        undocumented: Unreleased. --- ID of the ACS user associated with the unlock event.

      • Optionalaction_attempt_id?: string

        ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an UNLOCK_DOOR action attempt).

      • Optionalcode?: string

        Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • Optionaldevice_id?: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "lock.unlocked"
      • Optionalis_via_bluetooth?: boolean

        Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.

      • Optionalis_via_nfc?: boolean

        Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.

      • method: "keycode" | "manual" | "automatic" | "unknown" | "remote" | "card"

        Method by which the lock was unlocked. keycode: an access code was used (see access_code_id). manual: a physical action such as a thumbturn or handle press. remote: a remote action via an app, Bluetooth, or the Seam API (see action_attempt_id if Seam-initiated; see is_via_bluetooth or is_via_nfc for the transport). automatic: triggered automatically, for example by a time-based schedule. unknown: could not be determined.

      • occurred_at: string

        Date and time at which the event occurred.

      • Optionaluser_identity_id?: string

        undocumented: Unreleased. --- ID of the user identity associated with the unlock event.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          access_code_id?: string;
          acs_entrance_id?: string;
          acs_system_id?: string;
          acs_user_id?: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id?: string;
          event_description?: string;
          event_id: string;
          event_type: "lock.access_denied";
          occurred_at: string;
          reason?: {
              message: string;
              reason_code:
                  | "unknown_code"
                  | "expired_code"
                  | "blocklisted_code"
                  | "too_many_attempts"
                  | "blocked_by_privacy_mode"
                  | "credential_error";
          };
          user_identity_id?: string;
          workspace_id: string;
      }
      • Optionalaccess_code_id?: string

        ID of the access code that was used in the unlock attempts.

      • Optionalacs_entrance_id?: string

        undocumented: Unreleased. --- ID of the ACS entrance associated with the access-denied event.

      • Optionalacs_system_id?: string

        undocumented: Unreleased. --- ID of the ACS system associated with the access-denied event.

      • Optionalacs_user_id?: string

        undocumented: Unreleased. --- ID of the ACS user associated with the access-denied event.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • Optionaldevice_id?: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "lock.access_denied"
      • occurred_at: string

        Date and time at which the event occurred.

      • Optionalreason?: {
            message: string;
            reason_code:
                | "unknown_code"
                | "expired_code"
                | "blocklisted_code"
                | "too_many_attempts"
                | "blocked_by_privacy_mode"
                | "credential_error";
        }

        Why access was denied, when the provider reports a determinable cause. Omitted when unknown.

        • message: string

          Human-readable explanation of why access was denied.

        • reason_code:
              | "unknown_code"
              | "expired_code"
              | "blocklisted_code"
              | "too_many_attempts"
              | "blocked_by_privacy_mode"
              | "credential_error"

          Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.

      • Optionaluser_identity_id?: string

        undocumented: Unreleased. --- ID of the user identity associated with the access-denied event.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          climate_preset_key: string;
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.climate_preset_activated";
          is_fallback_climate_preset: boolean;
          occurred_at: string;
          thermostat_schedule_id: string | null;
          workspace_id: string;
      }
      • climate_preset_key: string

        Key of the climate preset that was activated.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.climate_preset_activated"
      • is_fallback_climate_preset: boolean

        Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat.

      • occurred_at: string

        Date and time at which the event occurred.

      • thermostat_schedule_id: string | null

        ID of the thermostat schedule that prompted the affected climate preset to be activated.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          cooling_set_point_celsius?: number;
          cooling_set_point_fahrenheit?: number;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.manually_adjusted";
          fan_mode_setting?: "auto" | "on" | "circulate";
          heating_set_point_celsius?: number;
          heating_set_point_fahrenheit?: number;
          hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | "eco";
          method: "seam" | "external";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • Optionalcooling_set_point_celsius?: number

        Temperature to which the thermostat should cool (in °C). See also Set Points.

      • Optionalcooling_set_point_fahrenheit?: number

        Temperature to which the thermostat should cool (in °F). See also Set Points.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.manually_adjusted"
      • Optionalfan_mode_setting?: "auto" | "on" | "circulate"

        Desired fan mode setting, such as on, auto, or circulate.

      • Optionalheating_set_point_celsius?: number

        Temperature to which the thermostat should heat (in °C). See also Set Points.

      • Optionalheating_set_point_fahrenheit?: number

        Temperature to which the thermostat should heat (in °F). See also Set Points.

      • Optionalhvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | "eco"

        Desired HVAC mode setting, such as heat, cool, heat_cool, or off.

      • method: "seam" | "external"

        Method used to adjust the affected thermostat manually. seam indicates that the Seam API, Seam CLI, or Seam Console was used to adjust the thermostat.

      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.temperature_threshold_exceeded";
          lower_limit_celsius: number | null;
          lower_limit_fahrenheit: number | null;
          occurred_at: string;
          temperature_celsius: number;
          temperature_fahrenheit: number;
          upper_limit_celsius: number | null;
          upper_limit_fahrenheit: number | null;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.temperature_threshold_exceeded"
      • lower_limit_celsius: number | null

        Lower temperature limit, in °C, defined by the set threshold.

      • lower_limit_fahrenheit: number | null

        Lower temperature limit, in °F, defined by the set threshold.

      • occurred_at: string

        Date and time at which the event occurred.

      • temperature_celsius: number

        Temperature, in °C, reported by the affected thermostat.

      • temperature_fahrenheit: number

        Temperature, in °F, reported by the affected thermostat.

      • upper_limit_celsius: number | null

        Upper temperature limit, in °C, defined by the set threshold.

      • upper_limit_fahrenheit: number | null

        Upper temperature limit, in °F, defined by the set threshold.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.temperature_threshold_no_longer_exceeded";
          lower_limit_celsius: number | null;
          lower_limit_fahrenheit: number | null;
          occurred_at: string;
          temperature_celsius: number;
          temperature_fahrenheit: number;
          upper_limit_celsius: number | null;
          upper_limit_fahrenheit: number | null;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.temperature_threshold_no_longer_exceeded"
      • lower_limit_celsius: number | null

        Lower temperature limit, in °C, defined by the set threshold.

      • lower_limit_fahrenheit: number | null

        Lower temperature limit, in °F, defined by the set threshold.

      • occurred_at: string

        Date and time at which the event occurred.

      • temperature_celsius: number

        Temperature, in °C, reported by the affected thermostat.

      • temperature_fahrenheit: number

        Temperature, in °F, reported by the affected thermostat.

      • upper_limit_celsius: number | null

        Upper temperature limit, in °C, defined by the set threshold.

      • upper_limit_fahrenheit: number | null

        Upper temperature limit, in °F, defined by the set threshold.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          desired_temperature_celsius?: number;
          desired_temperature_fahrenheit?: number;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.temperature_reached_set_point";
          occurred_at: string;
          temperature_celsius: number;
          temperature_fahrenheit: number;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldesired_temperature_celsius?: number

        Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point.

      • Optionaldesired_temperature_fahrenheit?: number

        Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.temperature_reached_set_point"
      • occurred_at: string

        Date and time at which the event occurred.

      • temperature_celsius: number

        Temperature, in °C, reported by the affected thermostat.

      • temperature_fahrenheit: number

        Temperature, in °F, reported by the affected thermostat.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "thermostat.temperature_changed";
          occurred_at: string;
          temperature_celsius: number;
          temperature_fahrenheit: number;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "thermostat.temperature_changed"
      • occurred_at: string

        Date and time at which the event occurred.

      • temperature_celsius: number

        Temperature, in °C, reported by the affected thermostat.

      • temperature_fahrenheit: number

        Temperature, in °F, reported by the affected thermostat.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          device_name: string;
          event_description?: string;
          event_id: string;
          event_type: "device.name_changed";
          occurred_at: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • device_name: string

        The new name of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.name_changed"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          activation_reason: "motion_detected";
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "camera.activated";
          image_url?: string;
          motion_sub_type?: "human" | "vehicle" | "package" | "other";
          occurred_at: string;
          video_url?: string;
          workspace_id: string;
      }
      • activation_reason: "motion_detected"

        The reason the camera was activated.

      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "camera.activated"
      • Optionalimage_url?: string

        URL to a thumbnail image captured at the time of activation.

      • Optionalmotion_sub_type?: "human" | "vehicle" | "package" | "other"

        Sub-type of motion detected, if available.

      • occurred_at: string

        Date and time at which the event occurred.

      • Optionalvideo_url?: string

        URL to a short video clip captured at the time of activation.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          connected_account_custom_metadata?: Record<string, unknown>;
          connected_account_id: string;
          created_at: string;
          customer_key?: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "device.doorbell_rang";
          image_url?: string;
          occurred_at: string;
          video_url?: string;
          workspace_id: string;
      }
      • Optionalconnected_account_custom_metadata?: Record<string, unknown>

        Custom metadata of the connected account, present when connected_account_id is provided.

      • connected_account_id: string

        ID of the connected account associated with the event.

      • created_at: string

        Date and time at which the event was created.

      • Optionalcustomer_key?: string

        The customer key associated with the device, if any.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device, present when device_id is provided.

      • device_id: string

        ID of the affected device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "device.doorbell_rang"
      • Optionalimage_url?: string

        URL to a thumbnail image captured at the time the doorbell was pressed.

      • occurred_at: string

        Date and time at which the event occurred.

      • Optionalvideo_url?: string

        URL to a short video clip captured at the time the doorbell was pressed.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          created_at: string;
          device_custom_metadata?: Record<string, unknown>;
          device_id: string;
          event_description?: string;
          event_id: string;
          event_type: "phone.deactivated";
          occurred_at: string;
          workspace_id: string;
      }
      • created_at: string

        Date and time at which the event was created.

      • Optionaldevice_custom_metadata?: Record<string, unknown>

        Custom metadata of the device; present when device_id is provided.

      • device_id: string

        ID of the affected phone device.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "phone.deactivated"
      • occurred_at: string

        Date and time at which the event occurred.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_entrance_ids: string[];
          created_at: string;
          device_ids: string[];
          event_description?: string;
          event_id: string;
          event_type: "space.device_membership_changed";
          occurred_at: string;
          space_id: string;
          space_key?: string;
          workspace_id: string;
      }
      • acs_entrance_ids: string[]

        IDs of all ACS entrances currently attached to the space.

      • created_at: string

        Date and time at which the event was created.

      • device_ids: string[]

        IDs of all devices currently attached to the space.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "space.device_membership_changed"

        Type of the event.

      • occurred_at: string

        Date and time at which the event occurred.

      • space_id: string

        ID of the affected space.

      • Optionalspace_key?: string

        Unique key for the space within the workspace.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_entrance_ids: string[];
          created_at: string;
          device_ids: string[];
          event_description?: string;
          event_id: string;
          event_type: "space.created";
          occurred_at: string;
          space_id: string;
          space_key?: string;
          workspace_id: string;
      }
      • acs_entrance_ids: string[]

        IDs of all ACS entrances attached to the space when it was created.

      • created_at: string

        Date and time at which the event was created.

      • device_ids: string[]

        IDs of all devices attached to the space when it was created.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "space.created"

        Type of the event.

      • occurred_at: string

        Date and time at which the event occurred.

      • space_id: string

        ID of the affected space.

      • Optionalspace_key?: string

        Unique key for the space within the workspace.

      • workspace_id: string

        ID of the workspace associated with the event.

    • {
          acs_entrance_ids: string[];
          created_at: string;
          device_ids: string[];
          event_description?: string;
          event_id: string;
          event_type: "space.deleted";
          occurred_at: string;
          space_id: string;
          space_key?: string;
          workspace_id: string;
      }
      • acs_entrance_ids: string[]

        IDs of all ACS entrances currently attached to the space when it was deleted.

      • created_at: string

        Date and time at which the event was created.

      • device_ids: string[]

        IDs of all devices attached to the space when it was deleted.

      • Optionalevent_description?: string

        Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.

      • event_id: string

        ID of the event.

      • event_type: "space.deleted"

        Type of the event.

      • occurred_at: string

        Date and time at which the event occurred.

      • space_id: string

        ID of the affected space.

      • Optionalspace_key?: string

        Unique key for the space within the workspace.

      • workspace_id: string

        ID of the workspace associated with the event.