confluence.js 1.5.0 → 1.5.3

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 (77) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/README.md +3 -3
  3. package/out/api/audit.d.ts +24 -12
  4. package/out/api/audit.js.map +1 -1
  5. package/out/api/content.d.ts +18 -12
  6. package/out/api/content.js.map +1 -1
  7. package/out/api/contentAttachments.d.ts +14 -8
  8. package/out/api/contentAttachments.js.map +1 -1
  9. package/out/api/contentBody.js +2 -4
  10. package/out/api/contentBody.js.map +1 -1
  11. package/out/api/contentMacroBody.d.ts +4 -2
  12. package/out/api/contentMacroBody.js.map +1 -1
  13. package/out/api/contentRestrictions.d.ts +16 -8
  14. package/out/api/contentRestrictions.js.map +1 -1
  15. package/out/api/contentWatches.d.ts +16 -8
  16. package/out/api/contentWatches.js.map +1 -1
  17. package/out/api/parameters/convertContentBody.d.ts +16 -2
  18. package/out/api/relation.d.ts +8 -4
  19. package/out/api/relation.js.map +1 -1
  20. package/out/api/settings.d.ts +4 -2
  21. package/out/api/settings.js.map +1 -1
  22. package/out/api/space.d.ts +4 -2
  23. package/out/api/space.js.map +1 -1
  24. package/out/api/template.d.ts +16 -8
  25. package/out/api/template.js.map +1 -1
  26. package/out/clients/baseClient.js +3 -1
  27. package/out/clients/baseClient.js.map +1 -1
  28. package/out/clients/serverClient.js.map +1 -1
  29. package/out/server/audit.js +6 -6
  30. package/out/server/audit.js.map +1 -1
  31. package/out/server/content.d.ts +34 -262
  32. package/out/server/content.js +40 -32
  33. package/out/server/content.js.map +1 -1
  34. package/out/server/contentBody.d.ts +2 -12
  35. package/out/server/contentBody.js +2 -1
  36. package/out/server/contentBody.js.map +1 -1
  37. package/out/server/group.js +3 -3
  38. package/out/server/group.js.map +1 -1
  39. package/out/server/longTask.js +2 -2
  40. package/out/server/longTask.js.map +1 -1
  41. package/out/server/parameters/convertContentBody.d.ts +16 -0
  42. package/out/server/parameters/updateAttachmentData.d.ts +8 -2
  43. package/out/server/search.d.ts +2 -22
  44. package/out/server/search.js +1 -1
  45. package/out/server/search.js.map +1 -1
  46. package/out/server/space.d.ts +12 -94
  47. package/out/server/space.js +14 -14
  48. package/out/server/space.js.map +1 -1
  49. package/out/server/user.d.ts +8 -152
  50. package/out/server/user.js +10 -10
  51. package/out/server/user.js.map +1 -1
  52. package/package.json +14 -14
  53. package/src/api/audit.ts +24 -12
  54. package/src/api/content.ts +23 -17
  55. package/src/api/contentAttachments.ts +19 -13
  56. package/src/api/contentBody.ts +2 -0
  57. package/src/api/contentMacroBody.ts +4 -2
  58. package/src/api/contentRestrictions.ts +16 -8
  59. package/src/api/contentWatches.ts +16 -8
  60. package/src/api/parameters/convertContentBody.ts +39 -2
  61. package/src/api/relation.ts +8 -4
  62. package/src/api/settings.ts +4 -2
  63. package/src/api/space.ts +4 -2
  64. package/src/api/template.ts +16 -8
  65. package/src/clients/baseClient.ts +5 -10
  66. package/src/clients/client.ts +1 -5
  67. package/src/clients/serverClient.ts +1 -10
  68. package/src/server/audit.ts +6 -6
  69. package/src/server/content.ts +78 -295
  70. package/src/server/contentBody.ts +4 -13
  71. package/src/server/group.ts +3 -3
  72. package/src/server/longTask.ts +2 -2
  73. package/src/server/parameters/convertContentBody.ts +37 -0
  74. package/src/server/parameters/updateAttachmentData.ts +7 -3
  75. package/src/server/search.ts +3 -23
  76. package/src/server/space.ts +26 -108
  77. package/src/server/user.ts +18 -162
@@ -6,34 +6,20 @@ import { Pagination } from '../pagination';
6
6
  export declare class Content {
7
7
  private client;
8
8
  constructor(client: Client);
9
- /**
10
- * Returns a paginated list of Content.
11
- *
12
- * @example
13
- * Example request URI(s):
14
- *
15
- * - http://example.com/rest/api/content?spaceKey=TST&title=Cheese&expand=space,body.view,version,container
16
- * - http://example.com/rest/api/content?type=blogpost&spaceKey=TST&title=Bacon&postingDay=2014-02-13&expand=space,body.view,version,container
17
- */
9
+ /** Returns a paginated list of Content. */
18
10
  getContent<T = Pagination<Models.Content>>(parameters: Parameters.GetContent | undefined, callback: Callback<T>): Promise<void>;
19
- /**
20
- * Returns a paginated list of Content.
21
- *
22
- * @example
23
- * Example request URI(s):
24
- *
25
- * - http://example.com/rest/api/content?spaceKey=TST&title=Cheese&expand=space,body.view,version,container
26
- * - http://example.com/rest/api/content?type=blogpost&spaceKey=TST&title=Bacon&postingDay=2014-02-13&expand=space,body.view,version,container
27
- */
11
+ /** Returns a paginated list of Content. */
28
12
  getContent<T = Pagination<Models.Content>>(parameters?: Parameters.GetContent, callback?: never): Promise<T>;
29
13
  /**
30
14
  * Creates a new piece of Content or publishes the draft if the content id is present.For the case publishing draft, a
31
- * new piece of content will be created and all metadata from the draft will be transferred into the newly created content.
15
+ * new piece of content will be created and all metadata from the draft will be transferred into the newly created
16
+ * content.
32
17
  */
33
18
  createContent<T = Models.Content>(parameters: Parameters.CreateContent | undefined, callback: Callback<T>): Promise<void>;
34
19
  /**
35
20
  * Creates a new piece of Content or publishes the draft if the content id is present.For the case publishing draft, a
36
- * new piece of content will be created and all metadata from the draft will be transferred into the newly created content.
21
+ * new piece of content will be created and all metadata from the draft will be transferred into the newly created
22
+ * content.
37
23
  */
38
24
  createContent<T = Models.Content>(parameters?: Parameters.CreateContent, callback?: never): Promise<T>;
39
25
  /**
@@ -48,25 +34,9 @@ export declare class Content {
48
34
  * content, body can be updated on all content that has a body (not attachments).
49
35
  */
50
36
  updateContent<T = Models.Content>(parameters: Parameters.UpdateContent, callback?: never): Promise<T>;
51
- /**
52
- * Returns a piece of Content.
53
- *
54
- * @example
55
- * Example request URI(s):
56
- *
57
- * http://example.com/rest/api/content/1234?expand=space,body.view,version,container
58
- * http://example.com/rest/api/content/1234?status=any
59
- */
37
+ /** Returns a piece of Content. */
60
38
  getContentById<T = Models.Content>(parameters: Parameters.GetContentById, callback: Callback<T>): Promise<void>;
61
- /**
62
- * Returns a piece of Content.
63
- *
64
- * @example
65
- * Example request URI(s):
66
- *
67
- * http://example.com/rest/api/content/1234?expand=space,body.view,version,container
68
- * http://example.com/rest/api/content/1234?status=any
69
- */
39
+ /** Returns a piece of Content. */
70
40
  getContentById<T = Models.Content>(parameters: Parameters.GetContentById, callback?: never): Promise<T>;
71
41
  /**
72
42
  * Trashes or purges a piece of Content, based on its ContentType and ContentStatus. There are three cases:
@@ -86,23 +56,9 @@ export declare class Content {
86
56
  * - If the content is not trashable it will be deleted permanently without being trashed.
87
57
  */
88
58
  deleteContent<T = void>(parameters: Parameters.DeleteContent, callback?: never): Promise<T>;
89
- /**
90
- * Returns the history of a particular piece of content
91
- *
92
- * @example
93
- * Example request URI(s):
94
- *
95
- * http://example.com/rest/api/content/1234/history
96
- */
59
+ /** Returns the history of a particular piece of content */
97
60
  getHistory<T = Models.ContentHistory>(parameters: Parameters.GetHistory, callback: Callback<T>): Promise<void>;
98
- /**
99
- * Returns the history of a particular piece of content
100
- *
101
- * @example
102
- * Example request URI(s):
103
- *
104
- * http://example.com/rest/api/content/1234/history
105
- */
61
+ /** Returns the history of a particular piece of content */
106
62
  getHistory<T = Models.ContentHistory>(parameters: Parameters.GetHistory, callback?: never): Promise<T>;
107
63
  /**
108
64
  * Returns the body of a macro (in storage format) with the given hash. This resource is primarily used by connect
@@ -113,7 +69,8 @@ export declare class Content {
113
69
  *
114
70
  * Collecting a macro by its hash should now be considered deprecated and will be replaced, transparently with
115
71
  * macroIds. This resource is currently only called from connect addons which will eventually all use the
116
- * {@link #getContentById(com.atlassian.confluence.api.model.content.id.ContentId, java.util.List, Integer, String)} resource.
72
+ * {@link #getContentById(com.atlassian.confluence.api.model.content.id.ContentId, java.util.List, Integer, String)}
73
+ * resource.
117
74
  *
118
75
  * To make the migration as seamless as possible, this resource will match macros against a generated hash or a stored
119
76
  * macroId. This will allow add ons to work during the migration period.
@@ -128,7 +85,8 @@ export declare class Content {
128
85
  *
129
86
  * Collecting a macro by its hash should now be considered deprecated and will be replaced, transparently with
130
87
  * macroIds. This resource is currently only called from connect addons which will eventually all use the
131
- * {@link #getContentById(com.atlassian.confluence.api.model.content.id.ContentId, java.util.List, Integer, String)} resource.
88
+ * {@link #getContentById(com.atlassian.confluence.api.model.content.id.ContentId, java.util.List, Integer, String)}
89
+ * resource.
132
90
  *
133
91
  * To make the migration as seamless as possible, this resource will match macros against a generated hash or a stored
134
92
  * macroId. This will allow add ons to work during the migration period.
@@ -158,29 +116,9 @@ export declare class Content {
158
116
  * out to all instances.
159
117
  */
160
118
  getMacroBodyByMacroId<T = Models.MacroInstance>(parameters: Parameters.GetMacroBodyByMacroId, callback?: never): Promise<T>;
161
- /**
162
- * Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL
163
- *
164
- * @example
165
- * For example :
166
- *
167
- * Example request URI(s):
168
- *
169
- * - http://localhost:8080/confluence/rest/api/content/search?cql=creator=currentUser()&cqlcontext={%22spaceKey%22:%22TST%22,%22contentId%22:%2255%22}
170
- * - http://localhost:8080/confluence/rest/api/content/search?cql=space=DEV%20AND%20label=docs&expand=space,metadata.labels&limit=10
171
- */
119
+ /** Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL */
172
120
  searchContent<T = Pagination<Models.Content>>(parameters: Parameters.SearchContent | undefined, callback: Callback<T>): Promise<void>;
173
- /**
174
- * Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL
175
- *
176
- * @example
177
- * For example :
178
- *
179
- * Example request URI(s):
180
- *
181
- * - http://localhost:8080/confluence/rest/api/content/search?cql=creator=currentUser()&cqlcontext={%22spaceKey%22:%22TST%22,%22contentId%22:%2255%22}
182
- * - http://localhost:8080/confluence/rest/api/content/search?cql=space=DEV%20AND%20label=docs&expand=space,metadata.labels&limit=10
183
- */
121
+ /** Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL */
184
122
  searchContent<T = Pagination<Models.Content>>(parameters?: Parameters.SearchContent, callback?: never): Promise<T>;
185
123
  /**
186
124
  * Returns a map of the direct children of a piece of Content. Content can have multiple types of children - for
@@ -191,13 +129,6 @@ export declare class Content {
191
129
  *
192
130
  * If no types are included in the expand parameter, the map returned will just list the child types that are
193
131
  * available to be expanded for the Content referenced by the "id" path parameter.
194
- *
195
- * @example
196
- * Example request URI(s):
197
- *
198
- * - http://example.com/rest/api/content/1234/child
199
- * - http://example.com/rest/api/content/1234/child?expand=page.body.VIEW
200
- * - http://example.com/rest/api/content/1234/child?expand=page&start=20&limit=10
201
132
  */
202
133
  getContentChildren<T = Models.ContentChildren>(parameters: Parameters.GetContentChildren, callback: Callback<T>): Promise<void>;
203
134
  /**
@@ -209,88 +140,27 @@ export declare class Content {
209
140
  *
210
141
  * If no types are included in the expand parameter, the map returned will just list the child types that are
211
142
  * available to be expanded for the Content referenced by the "id" path parameter.
212
- *
213
- * @example
214
- * Example request URI(s):
215
- *
216
- * - http://example.com/rest/api/content/1234/child
217
- * - http://example.com/rest/api/content/1234/child?expand=page.body.VIEW
218
- * - http://example.com/rest/api/content/1234/child?expand=page&start=20&limit=10
219
143
  */
220
144
  getContentChildren<T = Models.ContentChildren>(parameters: Parameters.GetContentChildren, callback?: never): Promise<T>;
221
145
  /**
222
146
  * Returns the direct children of a piece of Content, limited to a single child type.
223
147
  *
224
148
  * The ContentType(s) of the children returned is specified by the "type" path parameter in the request.
225
- *
226
- * @example
227
- * Example request URI(s):
228
- *
229
- * - http://example.com/rest/api/content/1234/child/page
230
- * - http://example.com/rest/api/content/1234/child/comment
231
- * - http://example.com/rest/api/content/1234/child/page?expand=body.view
232
- * - http://example.com/rest/api/content/1234/child/comment?start=20&limit=10
233
149
  */
234
150
  getContentChildrenByType<T = Pagination<Models.Content>>(parameters: Parameters.GetContentChildrenByType, callback: Callback<T>): Promise<void>;
235
151
  /**
236
152
  * Returns the direct children of a piece of Content, limited to a single child type.
237
153
  *
238
154
  * The ContentType(s) of the children returned is specified by the "type" path parameter in the request.
239
- *
240
- * @example
241
- * Example request URI(s):
242
- *
243
- * - http://example.com/rest/api/content/1234/child/page
244
- * - http://example.com/rest/api/content/1234/child/comment
245
- * - http://example.com/rest/api/content/1234/child/page?expand=body.view
246
- * - http://example.com/rest/api/content/1234/child/comment?start=20&limit=10
247
155
  */
248
156
  getContentChildrenByType<T = Pagination<Models.Content>>(parameters: Parameters.GetContentChildrenByType, callback?: never): Promise<T>;
249
- /**
250
- * Returns the comments of a content
251
- *
252
- * @example
253
- * Example request URI(s):
254
- *
255
- * - http://example.com/rest/api/content/1234/child/comment
256
- * - http://example.com/rest/api/content/1234/child/comment?expand=body.view
257
- * - http://example.com/rest/api/content/1234/child/comment?start=20&limit=10
258
- * - http://example.com/rest/api/content/1234/child/comment?location=footer&location=inline&location=resolved
259
- * - http://example.com/rest/api/content/1234/child/comment?expand=extensions.inlineProperties,extensions.resolution
260
- */
157
+ /** Returns the comments of a content */
261
158
  getContentComments<T = Pagination<Models.Content>>(parameters: Parameters.GetContentComments, callback: Callback<T>): Promise<void>;
262
- /**
263
- * Returns the comments of a content
264
- *
265
- * @example
266
- * Example request URI(s):
267
- *
268
- * - http://example.com/rest/api/content/1234/child/comment
269
- * - http://example.com/rest/api/content/1234/child/comment?expand=body.view
270
- * - http://example.com/rest/api/content/1234/child/comment?start=20&limit=10
271
- * - http://example.com/rest/api/content/1234/child/comment?location=footer&location=inline&location=resolved
272
- * - http://example.com/rest/api/content/1234/child/comment?expand=extensions.inlineProperties,extensions.resolution
273
- */
159
+ /** Returns the comments of a content */
274
160
  getContentComments<T = Pagination<Models.Content>>(parameters: Parameters.GetContentComments, callback?: never): Promise<T>;
275
- /**
276
- * Returns a paginated list of attachment Content entities within a single container.
277
- *
278
- * @example
279
- * Example request URI(s):
280
- *
281
- * - http://example.com/rest/api/content/1234/child/attachment?start=0&limit=10
282
- * - http://example.com/rest/api/content/1234/child/attachment?filename=myfile.txt&expand=version,container
283
- */
161
+ /** Returns a paginated list of attachment Content entities within a single container. */
284
162
  getAttachments<T = Pagination<Models.Content>>(parameters: Parameters.GetAttachments, callback: Callback<T>): Promise<void>;
285
- /**
286
- * Returns a paginated list of attachment Content entities within a single container.
287
- *
288
- * @example
289
- * Example request URI(s):
290
- *
291
- * - http://example.com/rest/api/content/1234/child/attachment?start=0&limit=10
292
- * - http://example.com/rest/api/content/1234/child/attachment?filename=myfile.txt&expand=version,container
293
- */
163
+ /** Returns a paginated list of attachment Content entities within a single container. */
294
164
  getAttachments<T = Pagination<Models.Content>>(parameters: Parameters.GetAttachments, callback?: never): Promise<T>;
295
165
  /**
296
166
  * Add one or more attachments to a Confluence Content entity, with optional comments.
@@ -303,7 +173,8 @@ export declare class Content {
303
173
  * Components library provides a MultiPartEntity that makes it simple to submit a multipart POST.
304
174
  *
305
175
  * In order to protect against XSRF attacks, because this method accepts multipart/form-data, it has XSRF protection
306
- * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be blocked.
176
+ * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be
177
+ * blocked.
307
178
  *
308
179
  * The name of the multipart/form-data parameter that contains attachments must be "file"
309
180
  *
@@ -315,11 +186,6 @@ export declare class Content {
315
186
  * http://myhost/rest/api/content/123/child/attachment An example to attach the same file, with no comment: curl -D-
316
187
  * -u admin:admin -X POST -H "X-Atlassian-Token: nocheck" -F "file=@myfile.txt"
317
188
  * http://myhost/rest/api/content/123/child/attachment
318
- *
319
- * @example
320
- * Example request URI(s):
321
- *
322
- * - http://example.com/rest/api/content/1234/child/attachment
323
189
  */
324
190
  createAttachments<T = Pagination<Models.Content>>(parameters: Parameters.CreateAttachments, callback: Callback<T>): Promise<void>;
325
191
  /**
@@ -333,7 +199,8 @@ export declare class Content {
333
199
  * Components library provides a MultiPartEntity that makes it simple to submit a multipart POST.
334
200
  *
335
201
  * In order to protect against XSRF attacks, because this method accepts multipart/form-data, it has XSRF protection
336
- * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be blocked.
202
+ * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be
203
+ * blocked.
337
204
  *
338
205
  * The name of the multipart/form-data parameter that contains attachments must be "file"
339
206
  *
@@ -345,33 +212,18 @@ export declare class Content {
345
212
  * http://myhost/rest/api/content/123/child/attachment An example to attach the same file, with no comment: curl -D-
346
213
  * -u admin:admin -X POST -H "X-Atlassian-Token: nocheck" -F "file=@myfile.txt"
347
214
  * http://myhost/rest/api/content/123/child/attachment
348
- *
349
- * @example
350
- * Example request URI(s):
351
- *
352
- * - http://example.com/rest/api/content/1234/child/attachment
353
215
  */
354
216
  createAttachments<T = Pagination<Models.Content>>(parameters: Parameters.CreateAttachments, callback?: never): Promise<T>;
355
217
  /**
356
218
  * Update the non-binary data of an Attachment.
357
219
  *
358
220
  * This resource can be used to update an attachment's filename, media-type, comment, and parent container.
359
- *
360
- * @example
361
- * Example request URI(s):
362
- *
363
- * - http://example.com/rest/api/content/1234/child/attachment/5678
364
221
  */
365
222
  updateAttachmentProperties<T = Models.Content>(parameters: Parameters.UpdateAttachmentProperties, callback: Callback<T>): Promise<void>;
366
223
  /**
367
224
  * Update the non-binary data of an Attachment.
368
225
  *
369
226
  * This resource can be used to update an attachment's filename, media-type, comment, and parent container.
370
- *
371
- * @example
372
- * Example request URI(s):
373
- *
374
- * - http://example.com/rest/api/content/1234/child/attachment/5678
375
227
  */
376
228
  updateAttachmentProperties<T = Models.Content>(parameters: Parameters.UpdateAttachmentProperties, callback?: never): Promise<T>;
377
229
  /**
@@ -387,7 +239,8 @@ export declare class Content {
387
239
  * Components library provides a MultiPartEntity that makes it simple to submit a multipart POST.
388
240
  *
389
241
  * In order to protect against XSRF attacks, because this method accepts multipart/form-data, it has XSRF protection
390
- * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be blocked.
242
+ * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be
243
+ * blocked.
391
244
  *
392
245
  * The name of the multipart/form-data parameter that contains attachments must be "file"
393
246
  *
@@ -398,11 +251,6 @@ export declare class Content {
398
251
  *
399
252
  * An example to upload the same file, with no comment: curl -D- -u admin:admin -X POST -H "X-Atlassian-Token:
400
253
  * nocheck" -F "file=@myfile.txt" http://myhost/rest/api/content/123/child/attachment/456/data
401
- *
402
- * @example
403
- * Example request URI(s):
404
- *
405
- * - http://example.com/rest/api/content/1234/child/attachment/5678/data
406
254
  */
407
255
  updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback: Callback<T>): Promise<void>;
408
256
  /**
@@ -418,7 +266,8 @@ export declare class Content {
418
266
  * Components library provides a MultiPartEntity that makes it simple to submit a multipart POST.
419
267
  *
420
268
  * In order to protect against XSRF attacks, because this method accepts multipart/form-data, it has XSRF protection
421
- * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be blocked.
269
+ * on it. This means you must submit a header of X-Atlassian-Token: nocheck with the request, otherwise it will be
270
+ * blocked.
422
271
  *
423
272
  * The name of the multipart/form-data parameter that contains attachments must be "file"
424
273
  *
@@ -429,11 +278,6 @@ export declare class Content {
429
278
  *
430
279
  * An example to upload the same file, with no comment: curl -D- -u admin:admin -X POST -H "X-Atlassian-Token:
431
280
  * nocheck" -F "file=@myfile.txt" http://myhost/rest/api/content/123/child/attachment/456/data
432
- *
433
- * @example
434
- * Example request URI(s):
435
- *
436
- * - http://example.com/rest/api/content/1234/child/attachment/5678/data
437
281
  */
438
282
  updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback?: never): Promise<T>;
439
283
  /**
@@ -447,13 +291,6 @@ export declare class Content {
447
291
  * available to be expanded for the Content referenced by the "id" path parameter.
448
292
  *
449
293
  * Currently the only supported descendants are comment descendants of non-comment Content.
450
- *
451
- * @example
452
- * Example request URI(s):
453
- *
454
- * - http://example.com/rest/api/content/1234/descendant
455
- * - http://example.com/rest/api/content/1234/descendant?expand=comment.body.VIEW
456
- * - http://example.com/rest/api/content/1234/descendant?expand=comment
457
294
  */
458
295
  getContentDescendants<T = Models.ContentChildren>(parameters: Parameters.GetContentDescendants, callback: Callback<T>): Promise<void>;
459
296
  /**
@@ -467,13 +304,6 @@ export declare class Content {
467
304
  * available to be expanded for the Content referenced by the "id" path parameter.
468
305
  *
469
306
  * Currently the only supported descendants are comment descendants of non-comment Content.
470
- *
471
- * @example
472
- * Example request URI(s):
473
- *
474
- * - http://example.com/rest/api/content/1234/descendant
475
- * - http://example.com/rest/api/content/1234/descendant?expand=comment.body.VIEW
476
- * - http://example.com/rest/api/content/1234/descendant?expand=comment
477
307
  */
478
308
  getContentDescendants<T = Models.ContentChildren>(parameters: Parameters.GetContentDescendants, callback?: never): Promise<T>;
479
309
  /**
@@ -482,13 +312,6 @@ export declare class Content {
482
312
  * The ContentType(s) of the descendants returned is specified by the "type" path parameter in the request.
483
313
  *
484
314
  * Currently the only supported descendants are comment descendants of non-comment Content.
485
- *
486
- * @example
487
- * Example request URI(s):
488
- *
489
- * - http://example.com/rest/api/content/1234/descendant/comment
490
- * - http://example.com/rest/api/content/1234/descendant/comment?expand=body.VIEW
491
- * - http://example.com/rest/api/content/1234/descendant/comment?start=20&limit=10
492
315
  */
493
316
  getContentDescendantsOfType<T = Pagination<Models.Content>>(parameters: Parameters.GetContentDescendantsOfType, callback: Callback<T>): Promise<void>;
494
317
  /**
@@ -497,34 +320,11 @@ export declare class Content {
497
320
  * The ContentType(s) of the descendants returned is specified by the "type" path parameter in the request.
498
321
  *
499
322
  * Currently the only supported descendants are comment descendants of non-comment Content.
500
- *
501
- * @example
502
- * Example request URI(s):
503
- *
504
- * - http://example.com/rest/api/content/1234/descendant/comment
505
- * - http://example.com/rest/api/content/1234/descendant/comment?expand=body.VIEW
506
- * - http://example.com/rest/api/content/1234/descendant/comment?start=20&limit=10
507
323
  */
508
324
  getContentDescendantsOfType<T = Pagination<Models.Content>>(parameters: Parameters.GetContentDescendantsOfType, callback?: never): Promise<T>;
509
- /**
510
- * Returns the list of labels on a piece of Content.
511
- *
512
- * @example
513
- * Example request URI(s):
514
- *
515
- * - http://example.com/rest/api/content/1234/label
516
- * - http://example.com/rest/api/content/1234/label?prefix=global&start=0&limit=200
517
- */
325
+ /** Returns the list of labels on a piece of Content. */
518
326
  getContentLabels<T = Pagination<Models.Label>>(parameters: Parameters.GetContentLabels, callback: Callback<T>): Promise<void>;
519
- /**
520
- * Returns the list of labels on a piece of Content.
521
- *
522
- * @example
523
- * Example request URI(s):
524
- *
525
- * - http://example.com/rest/api/content/1234/label
526
- * - http://example.com/rest/api/content/1234/label?prefix=global&start=0&limit=200
527
- */
327
+ /** Returns the list of labels on a piece of Content. */
528
328
  getContentLabels<T = Pagination<Models.Label>>(parameters: Parameters.GetContentLabels, callback?: never): Promise<T>;
529
329
  /** Adds a list of labels to the specified content. The body is the json representation of the list. */
530
330
  addLabelsToContent<T = Pagination<Models.Label>>(parameters: Parameters.AddLabelsToContent, callback: Callback<T>): Promise<void>;
@@ -546,45 +346,17 @@ export declare class Content {
546
346
  * version of this method (/content/{id}/label?name={label}Responses
547
347
  */
548
348
  deleteLabel<T = void>(parameters: Parameters.DeleteLabel, callback?: never): Promise<T>;
549
- /**
550
- * Returns a paginated list of content properties.
551
- *
552
- * @example
553
- * Example request URI:
554
- *
555
- * - http://example.com/rest/api/content/1234/property?expand=content,version
556
- */
349
+ /** Returns a paginated list of content properties. */
557
350
  getContentProperties<T = Pagination<Models.ContentProperty>>(parameters: Parameters.GetContentProperties, callback: Callback<T>): Promise<void>;
558
- /**
559
- * Returns a paginated list of content properties.
560
- *
561
- * @example
562
- * Example request URI:
563
- *
564
- * - http://example.com/rest/api/content/1234/property?expand=content,version
565
- */
351
+ /** Returns a paginated list of content properties. */
566
352
  getContentProperties<T = Pagination<Models.ContentProperty>>(parameters: Parameters.GetContentProperties, callback?: never): Promise<T>;
567
353
  /** Creates a new content property. */
568
354
  createContentProperty<T = Models.ContentProperty>(parameters: Parameters.CreateContentProperty, callback: Callback<T>): Promise<void>;
569
355
  /** Creates a new content property. */
570
356
  createContentProperty<T = Models.ContentProperty>(parameters: Parameters.CreateContentProperty, callback?: never): Promise<T>;
571
- /**
572
- * Returns a content property.
573
- *
574
- * @example
575
- * Example request URI:
576
- *
577
- * - http://example.com/rest/api/content/1234/property/example-property-key?expand=content,version
578
- */
357
+ /** Returns a content property. */
579
358
  getContentProperty<T = Models.ContentProperty>(parameters: Parameters.GetContentProperty, callback: Callback<T>): Promise<void>;
580
- /**
581
- * Returns a content property.
582
- *
583
- * @example
584
- * Example request URI:
585
- *
586
- * - http://example.com/rest/api/content/1234/property/example-property-key?expand=content,version
587
- */
359
+ /** Returns a content property. */
588
360
  getContentProperty<T = Models.ContentProperty>(parameters: Parameters.GetContentProperty, callback?: never): Promise<T>;
589
361
  /** Creates a new content property. */
590
362
  createContentPropertyForKey<T = Models.ContentProperty>(parameters: Parameters.CreateContentPropertyForKey, callback: Callback<T>): Promise<void>;