Skip to content

Commit 768eb36

Browse files
levindixonclaude
andcommitted
feat: Add MacroList schema for paginated macro responses (intercom/intercom#420117)
- Add MacroList schema to support paginated list responses for macros - Follow established pattern with type "list" and data array - Implement cursor-based pagination with starting_after parameter - Include Base64-encoded cursor for stable pagination ([updated_at, id] tuples) - Reference existing macro schema for data items - Add x-tags: Unstable to match macro visibility This schema will be used by the GET /macros endpoint to return paginated lists of saved reply templates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c9788dd commit 768eb36

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18773,6 +18773,56 @@ components:
1877318773
- updated_at
1877418774
- visible_to
1877518775
- available_on
18776+
macro_list:
18777+
title: Macro List
18778+
type: object
18779+
x-tags:
18780+
- Unstable
18781+
description: A paginated list of macros (saved replies) in the workspace.
18782+
properties:
18783+
type:
18784+
type: string
18785+
description: Always list
18786+
enum:
18787+
- list
18788+
example: list
18789+
data:
18790+
type: array
18791+
description: The list of macro objects
18792+
items:
18793+
"$ref": "#/components/schemas/macro"
18794+
pages:
18795+
type: object
18796+
description: Pagination information
18797+
properties:
18798+
type:
18799+
type: string
18800+
description: The type of pagination
18801+
enum:
18802+
- pages
18803+
example: pages
18804+
per_page:
18805+
type: integer
18806+
description: Number of results per page
18807+
example: 50
18808+
next:
18809+
type: object
18810+
nullable: true
18811+
description: Cursor for the next page
18812+
properties:
18813+
starting_after:
18814+
type: string
18815+
description: Base64-encoded cursor containing [updated_at, id] for pagination
18816+
example: "WzE3MTk0OTM3NTcuMCwgIjEyMyJd"
18817+
required:
18818+
- starting_after
18819+
required:
18820+
- type
18821+
- per_page
18822+
required:
18823+
- type
18824+
- data
18825+
- pages
1877618826
merge_contacts_request:
1877718827
description: Merge contact data.
1877818828
type: object

0 commit comments

Comments
 (0)