Commit c9788dd
committed
feat(api): Add Macro schema definition to OpenAPI spec (intercom/intercom#420117)
Add the Macro object schema to the Unstable API specification. This schema
represents saved replies (macros) that can be used for quick responses in
conversations.
Schema includes:
- Basic fields: type, id, name
- Content fields: body (HTML with transformed placeholders), body_text
- Timestamps: created_at, updated_at (Unix timestamps)
- Visibility controls: visible_to, visible_to_team_ids
- Availability: available_on array for inbox/messenger
The schema follows the implementation in MacroPresenter and includes the
placeholder transformation feature where mustache-style placeholders are
converted to XML-like attribute tags.
Part of: intercom/intercom#4201171 parent 33da172 commit c9788dd
1 file changed
+71
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18702 | 18702 | | |
18703 | 18703 | | |
18704 | 18704 | | |
| 18705 | + | |
| 18706 | + | |
| 18707 | + | |
| 18708 | + | |
| 18709 | + | |
| 18710 | + | |
| 18711 | + | |
| 18712 | + | |
| 18713 | + | |
| 18714 | + | |
| 18715 | + | |
| 18716 | + | |
| 18717 | + | |
| 18718 | + | |
| 18719 | + | |
| 18720 | + | |
| 18721 | + | |
| 18722 | + | |
| 18723 | + | |
| 18724 | + | |
| 18725 | + | |
| 18726 | + | |
| 18727 | + | |
| 18728 | + | |
| 18729 | + | |
| 18730 | + | |
| 18731 | + | |
| 18732 | + | |
| 18733 | + | |
| 18734 | + | |
| 18735 | + | |
| 18736 | + | |
| 18737 | + | |
| 18738 | + | |
| 18739 | + | |
| 18740 | + | |
| 18741 | + | |
| 18742 | + | |
| 18743 | + | |
| 18744 | + | |
| 18745 | + | |
| 18746 | + | |
| 18747 | + | |
| 18748 | + | |
| 18749 | + | |
| 18750 | + | |
| 18751 | + | |
| 18752 | + | |
| 18753 | + | |
| 18754 | + | |
| 18755 | + | |
| 18756 | + | |
| 18757 | + | |
| 18758 | + | |
| 18759 | + | |
| 18760 | + | |
| 18761 | + | |
| 18762 | + | |
| 18763 | + | |
| 18764 | + | |
| 18765 | + | |
| 18766 | + | |
| 18767 | + | |
| 18768 | + | |
| 18769 | + | |
| 18770 | + | |
| 18771 | + | |
| 18772 | + | |
| 18773 | + | |
| 18774 | + | |
| 18775 | + | |
18705 | 18776 | | |
18706 | 18777 | | |
18707 | 18778 | | |
| |||
0 commit comments