@@ -19,10 +19,95 @@ export interface GetContentById {
1919 */
2020 embeddedContentRender ?: string ;
2121 /** A multi-value parameter indicating which properties of the content to expand. */
22- expand ?: string [ ] ;
22+ expand ?: string | string [ ] | GetContentById . Expand | GetContentById . Expand [ ] ;
2323 /**
2424 * If set to `viewed`, the request will trigger a 'viewed' event for the content. When this event is triggered, the
2525 * page/blogpost will appear on the 'Recently visited' tab of the user's Confluence dashboard.
2626 */
2727 trigger ?: string ;
2828}
29+
30+ export namespace GetContentById {
31+ export enum Expand {
32+ /**
33+ * Returns whether the content has attachments, comments, or child pages. Use this if you only need to check whether
34+ * the content has children of a particular type.
35+ */
36+ AllChildTypes = 'childTypes.all' ,
37+ /** Returns whether the content has attachments. */
38+ AttachmentChildType = 'childTypes.attachment' ,
39+ /** Returns whether the content has comments. */
40+ CommentChildType = 'childTypes.comment' ,
41+ /** Returns whether the content has child pages. */
42+ PageChildType = 'childTypes.page' ,
43+ /**
44+ * Returns the space that the content is in. This is the same as the information returned by [Get
45+ * space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
46+ */
47+ Container = 'container' ,
48+ /**
49+ * Returns information about the current user in relation to the content, including when they last viewed it,
50+ * modified it, contributed to it, or added it as a favorite.
51+ */
52+ CurrentUserMetadata = 'metadata.currentuser' ,
53+ /** Returns content properties that have been set via the Confluence REST API. */
54+ PropertiesMetadata = 'metadata.properties' ,
55+ /** Returns the labels that have been added to the content. */
56+ LabelsMetadata = 'metadata.labels' ,
57+ /** This property is only used by Atlassian. */
58+ FrontendMetadata = 'metadata.frontend' ,
59+ /** Returns the operations for the content, which are used when setting permissions. */
60+ Operations = 'operations' ,
61+ /** Returns pages that are descendants at the level immediately below the content. */
62+ PageChildren = 'children.page' ,
63+ /** Returns all attachments for the content. */
64+ AttachmentChildren = 'children.attachment' ,
65+ /** Returns all comments on the content. */
66+ CommentChildren = 'children.comment' ,
67+ /** Returns the users that have permission to read the content. */
68+ ReadUserRestriction = 'restrictions.read.restrictions.user' ,
69+ /**
70+ * Returns the groups that have permission to read the content. Note that this may return deleted groups, because
71+ * deleting a group doesn't remove associated restrictions.
72+ */
73+ ReadGroupRestriction = 'restrictions.read.restrictions.group' ,
74+ /** Returns the users that have permission to update the content. */
75+ UpdateUserRestriction = 'restrictions.update.restrictions.user' ,
76+ /**
77+ * Returns the groups that have permission to update the content. Note that this may return deleted groups because
78+ * deleting a group doesn't remove associated restrictions.
79+ */
80+ UpdateGroupRestriction = 'restrictions.update.restrictions.group' ,
81+ /** Returns the history of the content, including the date it was created. */
82+ History = 'history' ,
83+ /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
84+ LastUpdated = 'history.lastUpdated' ,
85+ /** Returns information about the update prior to the current content update. */
86+ PreviousVersion = 'history.previousVersion' ,
87+ /** Returns all of the users who have contributed to the content. */
88+ Contributors = 'history.contributors' ,
89+ /** Returns information about the update after to the current content update. */
90+ NextVersion = 'history.nextVersion' ,
91+ /** Returns the parent page, if the content is a page. */
92+ Ancestors = 'ancestors' ,
93+ /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
94+ Body = 'body' ,
95+ /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
96+ Version = 'version' ,
97+ /** Returns pages that are descendants at any level below the content. */
98+ PageDescendant = 'descendants.page' ,
99+ /** Returns all attachments for the content, same as `children.attachment`. */
100+ AttachmentDescendant = 'descendants.attachment' ,
101+ /** Returns all comments on the content, same as `children.comment`. */
102+ CommentDescendant = 'descendants.comment' ,
103+ /**
104+ * Returns the space that the content is in. This is the same as the information returned by [Get
105+ * space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
106+ */
107+ Space = 'space' ,
108+ /** Returns inline comment-specific properties. */
109+ InlineProperties = 'extensions.inlineProperties' ,
110+ /** Returns the resolution status of each comment. */
111+ Resolution = 'extensions.resolution' ,
112+ }
113+ }
0 commit comments