Skip to content

Commit a262190

Browse files
markdennis22claude
andcommitted
Show the occupancy events in the 2.14 and 2.15 activity log examples
In 2.14 and 2.15, add an admin_occupancy_state_change and an admin_occupancy_setting_change entry to the GET /admins/activity_logs response example, so it shows previous_state, new_state, threshold_minutes, last_activity_at, auto, setting_type and changes. The state change is recorded by the system, so its performed_by ip is `unknown`. The before and after values in activity_log_metadata.changes get an example each, and their descriptions say they take the setting's own type. They keep no `type`, because the value can be an integer, a boolean, a string or a list depending on the setting. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 98a259b commit a262190

2 files changed

Lines changed: 78 additions & 4 deletions

File tree

‎descriptions/2.14/api.intercom.io.yaml‎

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,37 @@ paths:
256256
activity_description: Ciaran5 Lee changed your Initial message
257257
title message from Initial message title to Eventual message
258258
title.
259+
- id: 9eedfb5c-b5c2-4105-bf17-a9acedf29e8d
260+
performed_by:
261+
type: admin
262+
id: '991267464'
263+
email: admin5@email.com
264+
ip: unknown
265+
metadata:
266+
previous_state: idle
267+
new_state: occupied
268+
threshold_minutes: 15
269+
last_activity_at: 1734537195
270+
auto: true
271+
created_at: 1734537253
272+
activity_type: admin_occupancy_state_change
273+
activity_description: Ciaran5 Lee changed from idle to occupied.
274+
- id: 25023ca3-acbd-43ca-a3b5-ff30a516d017
275+
performed_by:
276+
type: admin
277+
id: '991267464'
278+
email: admin5@email.com
279+
ip: 127.0.0.1
280+
metadata:
281+
setting_type: teammate_occupancy
282+
changes:
283+
occupancy_window_minutes:
284+
before: 15
285+
after: 30
286+
created_at: 1734537253
287+
activity_type: admin_occupancy_setting_change
288+
activity_description: Ciaran5 Lee updated the occupancy window
289+
to 30 minutes.
259290
schema:
260291
"$ref": "#/components/schemas/activity_log_list"
261292
'401':
@@ -15557,9 +15588,15 @@ components:
1555715588
type: object
1555815589
properties:
1555915590
before:
15560-
description: The value before the change.
15591+
description: The value before the change. It has the setting's
15592+
own type, such as an integer for `occupancy_window_minutes` or
15593+
a boolean for `occupancy_window_active`.
15594+
example: 15
1556115595
after:
15562-
description: The value after the change.
15596+
description: The value after the change. It has the setting's
15597+
own type, such as an integer for `occupancy_window_minutes` or
15598+
a boolean for `occupancy_window_active`.
15599+
example: 30
1556315600
example:
1556415601
occupancy_window_minutes:
1556515602
before: 15

‎descriptions/2.15/api.intercom.io.yaml‎

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,37 @@ paths:
256256
activity_description: Ciaran5 Lee changed your Initial message
257257
title message from Initial message title to Eventual message
258258
title.
259+
- id: 9eedfb5c-b5c2-4105-bf17-a9acedf29e8d
260+
performed_by:
261+
type: admin
262+
id: '991267464'
263+
email: admin5@email.com
264+
ip: unknown
265+
metadata:
266+
previous_state: idle
267+
new_state: occupied
268+
threshold_minutes: 15
269+
last_activity_at: 1734537195
270+
auto: true
271+
created_at: 1734537253
272+
activity_type: admin_occupancy_state_change
273+
activity_description: Ciaran5 Lee changed from idle to occupied.
274+
- id: 25023ca3-acbd-43ca-a3b5-ff30a516d017
275+
performed_by:
276+
type: admin
277+
id: '991267464'
278+
email: admin5@email.com
279+
ip: 127.0.0.1
280+
metadata:
281+
setting_type: teammate_occupancy
282+
changes:
283+
occupancy_window_minutes:
284+
before: 15
285+
after: 30
286+
created_at: 1734537253
287+
activity_type: admin_occupancy_setting_change
288+
activity_description: Ciaran5 Lee updated the occupancy window
289+
to 30 minutes.
259290
schema:
260291
"$ref": "#/components/schemas/activity_log_list"
261292
'401':
@@ -16181,9 +16212,15 @@ components:
1618116212
type: object
1618216213
properties:
1618316214
before:
16184-
description: The value before the change.
16215+
description: The value before the change. It has the setting's
16216+
own type, such as an integer for `occupancy_window_minutes` or
16217+
a boolean for `occupancy_window_active`.
16218+
example: 15
1618516219
after:
16186-
description: The value after the change.
16220+
description: The value after the change. It has the setting's
16221+
own type, such as an integer for `occupancy_window_minutes` or
16222+
a boolean for `occupancy_window_active`.
16223+
example: 30
1618716224
example:
1618816225
occupancy_window_minutes:
1618916226
before: 15

0 commit comments

Comments
 (0)