@resolution/confluence-api-client 0.13.4 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/lib/openapi/core/CommonHttpClient.d.ts +1 -1
  2. package/lib/openapi/core/CommonHttpClient.js +1 -1
  3. package/lib/openapi/core/CommonHttpClient.js.map +1 -1
  4. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +6 -37
  5. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -71
  6. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  7. package/lib/openapi/v1/models/audit.js +2 -2
  8. package/lib/openapi/v1/models/audit.js.map +1 -1
  9. package/lib/openapi/v1/models/common.d.ts +1 -1
  10. package/lib/openapi/v1/models/common.js +3 -3
  11. package/lib/openapi/v1/models/common.js.map +1 -1
  12. package/lib/openapi/v1/models/content.d.ts +0 -543
  13. package/lib/openapi/v1/models/content.js +2 -309
  14. package/lib/openapi/v1/models/content.js.map +1 -1
  15. package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +7 -3
  16. package/lib/openapi/v1/models/contentChildrenAndDescendants.js +1 -1
  17. package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
  18. package/lib/openapi/v1/models/contentRestrictions.js +1 -1
  19. package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
  20. package/lib/openapi/v1/models/contentStates.d.ts +322 -0
  21. package/lib/openapi/v1/models/contentStates.js +219 -0
  22. package/lib/openapi/v1/models/contentStates.js.map +1 -1
  23. package/lib/openapi/v1/models/contentVersions.d.ts +0 -9
  24. package/lib/openapi/v1/models/contentVersions.js +1 -10
  25. package/lib/openapi/v1/models/contentVersions.js.map +1 -1
  26. package/lib/openapi/v1/models/dynamicModules.d.ts +3 -3
  27. package/lib/openapi/v1/models/space.d.ts +1 -9
  28. package/lib/openapi/v1/models/space.js +1 -8
  29. package/lib/openapi/v1/models/space.js.map +1 -1
  30. package/lib/openapi/v1/models/template.js +1 -1
  31. package/lib/openapi/v1/models/template.js.map +1 -1
  32. package/lib/openapi/v1/services/AnalyticsService.d.ts +4 -0
  33. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  34. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +0 -130
  35. package/lib/openapi/v1/services/ContentAttachmentsService.js +0 -52
  36. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  37. package/lib/openapi/v1/services/ContentBodyService.d.ts +1 -102
  38. package/lib/openapi/v1/services/ContentBodyService.js +1 -65
  39. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  40. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +5 -220
  41. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +4 -144
  42. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  43. package/lib/openapi/v1/services/ContentLabelsService.d.ts +1 -44
  44. package/lib/openapi/v1/services/ContentLabelsService.js +0 -41
  45. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  46. package/lib/openapi/v1/services/ContentService.d.ts +2 -560
  47. package/lib/openapi/v1/services/ContentService.js +1 -300
  48. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  49. package/lib/openapi/v1/services/ContentVersionsService.d.ts +1 -72
  50. package/lib/openapi/v1/services/ContentVersionsService.js +1 -97
  51. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  52. package/lib/openapi/v1/services/GroupService.d.ts +1 -1
  53. package/lib/openapi/v1/services/GroupService.js +1 -1
  54. package/lib/openapi/v1/services/SettingsService.d.ts +0 -26
  55. package/lib/openapi/v1/services/SettingsService.js +0 -38
  56. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  57. package/lib/openapi/v1/services/SpaceService.d.ts +2 -406
  58. package/lib/openapi/v1/services/SpaceService.js +1 -215
  59. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  60. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +22 -3
  61. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +25 -1
  62. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  63. package/lib/openapi/v2/models/adminKey.d.ts +13 -0
  64. package/lib/openapi/v2/models/adminKey.js +12 -0
  65. package/lib/openapi/v2/models/adminKey.js.map +1 -0
  66. package/lib/openapi/v2/models/children.d.ts +21 -6
  67. package/lib/openapi/v2/models/children.js +10 -1
  68. package/lib/openapi/v2/models/children.js.map +1 -1
  69. package/lib/openapi/v2/models/common.d.ts +6 -0
  70. package/lib/openapi/v2/models/common.js +1 -0
  71. package/lib/openapi/v2/models/common.js.map +1 -1
  72. package/lib/openapi/v2/models/descendants.d.ts +29 -0
  73. package/lib/openapi/v2/models/descendants.js +19 -0
  74. package/lib/openapi/v2/models/descendants.js.map +1 -0
  75. package/lib/openapi/v2/services/AdminKeyService.d.ts +71 -0
  76. package/lib/openapi/v2/services/AdminKeyService.js +111 -0
  77. package/lib/openapi/v2/services/AdminKeyService.js.map +1 -0
  78. package/lib/openapi/v2/services/AttachmentService.d.ts +6 -5
  79. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  80. package/lib/openapi/v2/services/BlogPostService.d.ts +5 -4
  81. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  82. package/lib/openapi/v2/services/ChildrenService.d.ts +307 -1
  83. package/lib/openapi/v2/services/ChildrenService.js +321 -0
  84. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  85. package/lib/openapi/v2/services/CommentService.d.ts +10 -8
  86. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  87. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +1 -1
  88. package/lib/openapi/v2/services/CustomContentService.d.ts +18 -1
  89. package/lib/openapi/v2/services/CustomContentService.js +5 -0
  90. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  91. package/lib/openapi/v2/services/DatabaseService.d.ts +4 -6
  92. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  93. package/lib/openapi/v2/services/DescendantsService.d.ts +346 -0
  94. package/lib/openapi/v2/services/DescendantsService.js +362 -0
  95. package/lib/openapi/v2/services/DescendantsService.js.map +1 -0
  96. package/lib/openapi/v2/services/FolderService.d.ts +4 -6
  97. package/lib/openapi/v2/services/FolderService.js.map +1 -1
  98. package/lib/openapi/v2/services/PageService.d.ts +49 -6
  99. package/lib/openapi/v2/services/PageService.js +42 -2
  100. package/lib/openapi/v2/services/PageService.js.map +1 -1
  101. package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -6
  102. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  103. package/lib/openapi/v2/services/SpaceService.d.ts +2 -1
  104. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  105. package/lib/openapi/v2/services/WhiteboardService.d.ts +6 -8
  106. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  107. package/package.json +3 -3
  108. package/lib/openapi/v1/models/contentProperties.d.ts +0 -78
  109. package/lib/openapi/v1/models/contentProperties.js +0 -48
  110. package/lib/openapi/v1/models/contentProperties.js.map +0 -1
  111. package/lib/openapi/v1/models/inlineTasks.d.ts +0 -33
  112. package/lib/openapi/v1/models/inlineTasks.js +0 -36
  113. package/lib/openapi/v1/models/inlineTasks.js.map +0 -1
  114. package/lib/openapi/v1/models/spaceProperties.d.ts +0 -103
  115. package/lib/openapi/v1/models/spaceProperties.js +0 -48
  116. package/lib/openapi/v1/models/spaceProperties.js.map +0 -1
  117. package/lib/openapi/v1/services/ContentCommentsService.d.ts +0 -153
  118. package/lib/openapi/v1/services/ContentCommentsService.js +0 -81
  119. package/lib/openapi/v1/services/ContentCommentsService.js.map +0 -1
  120. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +0 -203
  121. package/lib/openapi/v1/services/ContentPropertiesService.js +0 -279
  122. package/lib/openapi/v1/services/ContentPropertiesService.js.map +0 -1
  123. package/lib/openapi/v1/services/InlineTasksService.d.ts +0 -101
  124. package/lib/openapi/v1/services/InlineTasksService.js +0 -145
  125. package/lib/openapi/v1/services/InlineTasksService.js.map +0 -1
  126. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +0 -177
  127. package/lib/openapi/v1/services/SpacePropertiesService.js +0 -269
  128. package/lib/openapi/v1/services/SpacePropertiesService.js.map +0 -1
@@ -0,0 +1,346 @@
1
+ import { CommonHttpService } from "../../core/CommonHttpService";
2
+ import { type MultiEntityLinks } from "../models/common";
3
+ import { type DescendantsResponse } from "../models/descendants";
4
+ /**
5
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants
6
+ * @category Services
7
+ */
8
+ export declare class DescendantsService extends CommonHttpService {
9
+ /**
10
+ * Returns descendants in the content tree for a given database by ID in
11
+ * top-to-bottom order (that is, the highest descendant is the first
12
+ * item in the response payload). The number of results is limited by the `limit`
13
+ * parameter and additional results (if available)
14
+ * will be available by calling this endpoint with the cursor in the response
15
+ * payload. There is also a `depth` parameter specifying depth
16
+ * of descendants to be fetched.
17
+ *
18
+ * The following types of content will be returned:
19
+ * - Database
20
+ * - Embed
21
+ * - Folder
22
+ * - Page
23
+ * - Whiteboard
24
+ *
25
+ * This endpoint returns minimal information about each descendant. To fetch more
26
+ * details, use a related endpoint based on the content type, such
27
+ * as:
28
+ *
29
+ * - [Get database by
30
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database/#api-databases-id-get)
31
+ * - [Get embed by
32
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link/#api-embeds-id-get)
33
+ * - [Get folder by
34
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get)
35
+ * - [Get page by
36
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)
37
+ * - [Get whiteboard by
38
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard/#api-whiteboards-id-get).
39
+ *
40
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
41
+ * Permission to access the Confluence site ('Can use' global permission).
42
+ * Permission to view the database and its corresponding space
43
+ *
44
+ * @returns Returned if the requested descendants are returned.
45
+ * @path GET `/databases/{id}/descendants`
46
+ * @scopes-current read:hierarchical-content:confluence
47
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants#api-databases-id-descendants-get
48
+ * @param params
49
+ */
50
+ getDatabaseDescendants: ({ id, limit, depth, cursor }: {
51
+ /** The ID of the database. */
52
+ id: number;
53
+ /**
54
+ * Maximum number of items per result to return. If more results exist, call the
55
+ * endpoint with the cursor to fetch the next set of results.
56
+ */
57
+ limit?: number | undefined;
58
+ /**
59
+ * Maximum depth of descendants to return. If more results are required, use the
60
+ * endpoint corresponding to the content type of the deepest descendant to fetch
61
+ * more descendants.
62
+ */
63
+ depth?: number | undefined;
64
+ /**
65
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
66
+ * the `Link` response header. Use the relative URL in the `Link` header to
67
+ * retrieve the `next` set of results.
68
+ */
69
+ cursor?: string | undefined;
70
+ }) => Promise<{
71
+ results?: DescendantsResponse[] | undefined;
72
+ _links?: MultiEntityLinks | undefined;
73
+ } & {
74
+ [key: string]: unknown;
75
+ }>;
76
+ /**
77
+ * Returns descendants in the content tree for a given folder by ID in
78
+ * top-to-bottom order (that is, the highest descendant is the first
79
+ * item in the response payload). The number of results is limited by the `limit`
80
+ * parameter and additional results (if available)
81
+ * will be available by calling this endpoint with the cursor in the response
82
+ * payload. There is also a `depth` parameter specifying depth
83
+ * of descendants to be fetched.
84
+ *
85
+ * The following types of content will be returned:
86
+ * - Database
87
+ * - Embed
88
+ * - Folder
89
+ * - Page
90
+ * - Whiteboard
91
+ *
92
+ * This endpoint returns minimal information about each descendant. To fetch more
93
+ * details, use a related endpoint based on the content type, such
94
+ * as:
95
+ *
96
+ * - [Get database by
97
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database/#api-databases-id-get)
98
+ * - [Get embed by
99
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link/#api-embeds-id-get)
100
+ * - [Get folder by
101
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get)
102
+ * - [Get page by
103
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)
104
+ * - [Get whiteboard by
105
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard/#api-whiteboards-id-get).
106
+ *
107
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
108
+ * Permission to access the Confluence site ('Can use' global permission).
109
+ * Permission to view the and its corresponding space
110
+ *
111
+ * @returns Returned if the requested descendants are returned.
112
+ * @path GET `/folders/{id}/descendants`
113
+ * @scopes-current read:hierarchical-content:confluence
114
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants#api-folders-id-descendants-get
115
+ * @param params
116
+ */
117
+ getFolderDescendants: ({ id, limit, depth, cursor }: {
118
+ /** The ID of the folder. */
119
+ id: number;
120
+ /**
121
+ * Maximum number of items per result to return. If more results exist, call the
122
+ * endpoint with the cursor to fetch the next set of results.
123
+ */
124
+ limit?: number | undefined;
125
+ /**
126
+ * Maximum depth of descendants to return. If more results are required, use the
127
+ * endpoint corresponding to the content type of the deepest descendant to fetch
128
+ * more descendants.
129
+ */
130
+ depth?: number | undefined;
131
+ /**
132
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
133
+ * the `Link` response header. Use the relative URL in the `Link` header to
134
+ * retrieve the `next` set of results.
135
+ */
136
+ cursor?: string | undefined;
137
+ }) => Promise<{
138
+ results?: DescendantsResponse[] | undefined;
139
+ _links?: MultiEntityLinks | undefined;
140
+ } & {
141
+ [key: string]: unknown;
142
+ }>;
143
+ /**
144
+ * Returns descendants in the content tree for a given page by ID in top-to-bottom
145
+ * order (that is, the highest descendant is the first
146
+ * item in the response payload). The number of results is limited by the `limit`
147
+ * parameter and additional results (if available)
148
+ * will be available by calling this endpoint with the cursor in the response
149
+ * payload. There is also a `depth` parameter specifying depth
150
+ * of descendants to be fetched.
151
+ *
152
+ * The following types of content will be returned:
153
+ * - Database
154
+ * - Embed
155
+ * - Folder
156
+ * - Page
157
+ * - Whiteboard
158
+ *
159
+ * This endpoint returns minimal information about each descendant. To fetch more
160
+ * details, use a related endpoint based on the content type, such
161
+ * as:
162
+ *
163
+ * - [Get database by
164
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database/#api-databases-id-get)
165
+ * - [Get embed by
166
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link/#api-embeds-id-get)
167
+ * - [Get folder by
168
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get)
169
+ * - [Get page by
170
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)
171
+ * - [Get whiteboard by
172
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard/#api-whiteboards-id-get).
173
+ *
174
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
175
+ * Permission to access the Confluence site ('Can use' global permission).
176
+ * Permission to view the page and its corresponding space
177
+ *
178
+ * @returns Returned if the requested descendants are returned.
179
+ * @path GET `/pages/{id}/descendants`
180
+ * @scopes-current read:hierarchical-content:confluence
181
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants#api-pages-id-descendants-get
182
+ * @param params
183
+ */
184
+ getPageDescendants: ({ id, limit, depth, cursor }: {
185
+ /** The ID of the page. */
186
+ id: number;
187
+ /**
188
+ * Maximum number of items per result to return. If more results exist, call the
189
+ * endpoint with the cursor to fetch the next set of results.
190
+ */
191
+ limit?: number | undefined;
192
+ /**
193
+ * Maximum depth of descendants to return. If more results are required, use the
194
+ * endpoint corresponding to the content type of the deepest descendant to fetch
195
+ * more descendants.
196
+ */
197
+ depth?: number | undefined;
198
+ /**
199
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
200
+ * the `Link` response header. Use the relative URL in the `Link` header to
201
+ * retrieve the `next` set of results.
202
+ */
203
+ cursor?: string | undefined;
204
+ }) => Promise<{
205
+ results?: DescendantsResponse[] | undefined;
206
+ _links?: MultiEntityLinks | undefined;
207
+ } & {
208
+ [key: string]: unknown;
209
+ }>;
210
+ /**
211
+ * Returns descendants in the content tree for a given smart link by ID in
212
+ * top-to-bottom order (that is, the highest descendant is the first
213
+ * item in the response payload). The number of results is limited by the `limit`
214
+ * parameter and additional results (if available)
215
+ * will be available by calling this endpoint with the cursor in the response
216
+ * payload. There is also a `depth` parameter specifying depth
217
+ * of descendants to be fetched.
218
+ *
219
+ * The following types of content will be returned:
220
+ * - Database
221
+ * - Embed
222
+ * - Folder
223
+ * - Page
224
+ * - Whiteboard
225
+ *
226
+ *
227
+ * This endpoint returns minimal information about each descendant. To fetch more
228
+ * details, use a related endpoint based on the content type, such
229
+ * as:
230
+ *
231
+ * - [Get database by
232
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database/#api-databases-id-get)
233
+ * - [Get embed by
234
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link/#api-embeds-id-get)
235
+ * - [Get folder by
236
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get)
237
+ * - [Get page by
238
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)
239
+ * - [Get whiteboard by
240
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard/#api-whiteboards-id-get).
241
+ *
242
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
243
+ * Permission to access the Confluence site ('Can use' global permission).
244
+ * Permission to view the smart link and its corresponding space
245
+ *
246
+ * @returns Returned if the requested descendants are returned.
247
+ * @path GET `/embeds/{id}/descendants`
248
+ * @scopes-current read:hierarchical-content:confluence
249
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants#api-embeds-id-descendants-get
250
+ * @param params
251
+ */
252
+ getSmartLinkDescendants: ({ id, limit, depth, cursor }: {
253
+ /** The ID of the smart link. */
254
+ id: number;
255
+ /**
256
+ * Maximum number of items per result to return. If more results exist, call the
257
+ * endpoint with the cursor to fetch the next set of results.
258
+ */
259
+ limit?: number | undefined;
260
+ /**
261
+ * Maximum depth of descendants to return. If more results are required, use the
262
+ * endpoint corresponding to the content type of the deepest descendant to fetch
263
+ * more descendants.
264
+ */
265
+ depth?: number | undefined;
266
+ /**
267
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
268
+ * the `Link` response header. Use the relative URL in the `Link` header to
269
+ * retrieve the `next` set of results.
270
+ */
271
+ cursor?: string | undefined;
272
+ }) => Promise<{
273
+ results?: DescendantsResponse[] | undefined;
274
+ _links?: MultiEntityLinks | undefined;
275
+ } & {
276
+ [key: string]: unknown;
277
+ }>;
278
+ /**
279
+ * Returns descendants in the content tree for a given whiteboard by ID in
280
+ * top-to-bottom order (that is, the highest descendant is the first
281
+ * item in the response payload). The number of results is limited by the `limit`
282
+ * parameter and additional results (if available)
283
+ * will be available by calling this endpoint with the cursor in the response
284
+ * payload. There is also a `depth` parameter specifying depth
285
+ * of descendants to be fetched.
286
+ *
287
+ * The following types of content will be returned:
288
+ * - Database
289
+ * - Embed
290
+ * - Folder
291
+ * - Page
292
+ * - Whiteboard
293
+ *
294
+ * This endpoint returns minimal information about each descendant. To fetch more
295
+ * details, use a related endpoint based on the content type, such
296
+ * as:
297
+ *
298
+ * - [Get database by
299
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database/#api-databases-id-get)
300
+ * - [Get embed by
301
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link/#api-embeds-id-get)
302
+ * - [Get folder by
303
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-folders-id-get)
304
+ * - [Get page by
305
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get)
306
+ * - [Get whiteboard by
307
+ * id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard/#api-whiteboards-id-get).
308
+ *
309
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
310
+ * Permission to access the Confluence site ('Can use' global permission).
311
+ * Permission to view the whiteboard and its corresponding space
312
+ *
313
+ * @returns Returned if the requested descendants are returned.
314
+ * @path GET `/whiteboards/{id}/descendants`
315
+ * @scopes-current read:hierarchical-content:confluence
316
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-descendants#api-whiteboards-id-descendants-get
317
+ * @param params
318
+ */
319
+ getWhiteboardDescendants: ({ id, limit, depth, cursor }: {
320
+ /** The ID of the whiteboard. */
321
+ id: number;
322
+ /**
323
+ * Maximum number of items per result to return. If more results exist, call the
324
+ * endpoint with the cursor to fetch the next set of results.
325
+ */
326
+ limit?: number | undefined;
327
+ /**
328
+ * Maximum depth of descendants to return. If more results are required, use the
329
+ * endpoint corresponding to the content type of the deepest descendant to fetch
330
+ * more descendants.
331
+ */
332
+ depth?: number | undefined;
333
+ /**
334
+ * Used for pagination, this opaque cursor will be returned in the `next` URL in
335
+ * the `Link` response header. Use the relative URL in the `Link` header to
336
+ * retrieve the `next` set of results.
337
+ */
338
+ cursor?: string | undefined;
339
+ }) => Promise<{
340
+ results?: DescendantsResponse[] | undefined;
341
+ _links?: MultiEntityLinks | undefined;
342
+ } & {
343
+ [key: string]: unknown;
344
+ }>;
345
+ protected static initialize(): void;
346
+ }