Add automatic_away_mode_setting_change to activity log event types #329
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds OpenAPI documentation for the
automatic_away_mode_setting_changeactivity type to API version 2.14.This activity type tracks when automatic away mode settings are changed by admins, allowing developers to monitor automatic away mode configuration changes through the Admin Activity Logs API.
Changes
Activity Type Enum
Adds
automatic_away_mode_setting_changeto theactivity_typeenum in theactivity_logschema (in alphabetical order).Metadata Fields
Adds generic
beforeandafterobject fields toactivity_log_metadataschema to support various activity types that track setting changes. These fields store the state before and after a change, with structure varying by activity type.Example API Response
{ "type": "admin_activity_log_event", "id": "762d17eb-3072-464b-be81-bfd904f2eaf1", "performed_by": { "type": "admin", "id": "144", "email": "admin@example.com", "ip": "154.61.86.89" }, "metadata": { "before": { "initial_inactivity_threshold": 40 }, "after": { "initial_inactivity_threshold": 41 } }, "created_at": 1763990263, "activity_type": "automatic_away_mode_setting_change", "activity_description": "Admin updated automatic away mode settings." }Pattern Alignment
before/aftermetadata fields are generic objects that can be reused by multiple activity typesRelated Issues & PRs
Intercom Monolith:
Frontend:
Developer Docs:
OpenAPI Spec:
Reference:
unassign_unsnoozed_at_capacity_setting_changeto activty log event types #328 - Pattern reference (unassign_unsnoozed_at_capacity_setting_change)