confluence.js 1.5.1 → 1.6.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 (163) hide show
  1. package/CHANGELOG.md +22 -3
  2. package/README.md +1 -0
  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.d.ts +52 -0
  10. package/out/api/contentBody.js +27 -3
  11. package/out/api/contentBody.js.map +1 -1
  12. package/out/api/contentChildrenAndDescendants.js +2 -1
  13. package/out/api/contentChildrenAndDescendants.js.map +1 -1
  14. package/out/api/contentContentState.d.ts +30 -28
  15. package/out/api/contentContentState.js +2 -0
  16. package/out/api/contentContentState.js.map +1 -1
  17. package/out/api/contentMacroBody.d.ts +72 -2
  18. package/out/api/contentMacroBody.js +29 -0
  19. package/out/api/contentMacroBody.js.map +1 -1
  20. package/out/api/contentRestrictions.d.ts +16 -8
  21. package/out/api/contentRestrictions.js.map +1 -1
  22. package/out/api/contentStates.d.ts +120 -0
  23. package/out/api/contentStates.js +88 -0
  24. package/out/api/contentStates.js.map +1 -0
  25. package/out/api/contentWatches.d.ts +16 -8
  26. package/out/api/contentWatches.js.map +1 -1
  27. package/out/api/dynamicModules.js +1 -0
  28. package/out/api/dynamicModules.js.map +1 -1
  29. package/out/api/experimental.d.ts +2 -2
  30. package/out/api/index.d.ts +1 -0
  31. package/out/api/index.js +1 -0
  32. package/out/api/index.js.map +1 -1
  33. package/out/api/models/asyncContentBody.d.ts +30 -0
  34. package/out/api/models/asyncContentBody.js +3 -0
  35. package/out/api/models/asyncContentBody.js.map +1 -0
  36. package/out/api/models/asyncId.d.ts +3 -0
  37. package/out/api/models/asyncId.js +3 -0
  38. package/out/api/models/asyncId.js.map +1 -0
  39. package/out/api/models/contentBodyCreate.d.ts +1 -0
  40. package/out/api/models/contentStateResponse.d.ts +7 -0
  41. package/out/api/models/contentStateResponse.js +3 -0
  42. package/out/api/models/contentStateResponse.js.map +1 -0
  43. package/out/api/models/contentStateRestInput.d.ts +11 -0
  44. package/out/api/models/contentStateRestInput.js +3 -0
  45. package/out/api/models/contentStateRestInput.js.map +1 -0
  46. package/out/api/models/index.d.ts +16 -12
  47. package/out/api/models/index.js +16 -12
  48. package/out/api/models/index.js.map +1 -1
  49. package/out/api/parameters/asyncConvertContentBodyRequest.d.ts +38 -0
  50. package/out/api/parameters/asyncConvertContentBodyRequest.js +3 -0
  51. package/out/api/parameters/asyncConvertContentBodyRequest.js.map +1 -0
  52. package/out/api/parameters/asyncConvertContentBodyResponse.d.ts +4 -0
  53. package/out/api/parameters/asyncConvertContentBodyResponse.js +3 -0
  54. package/out/api/parameters/asyncConvertContentBodyResponse.js.map +1 -0
  55. package/out/api/parameters/convertContentBody.d.ts +16 -2
  56. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.d.ts +46 -0
  57. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js +3 -0
  58. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js.map +1 -0
  59. package/out/api/parameters/getAndConvertMacroBodyByMacroId.d.ts +34 -0
  60. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js +3 -0
  61. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js.map +1 -0
  62. package/out/api/parameters/getAvailableContentStates.d.ts +4 -2
  63. package/out/api/parameters/getContentState.d.ts +8 -4
  64. package/out/api/parameters/getSpaceContentStates.d.ts +4 -0
  65. package/out/api/parameters/getSpaceContentStates.js +3 -0
  66. package/out/api/parameters/getSpaceContentStates.js.map +1 -0
  67. package/out/api/parameters/getUser.d.ts +6 -4
  68. package/out/api/parameters/index.d.ts +5 -0
  69. package/out/api/parameters/index.js +5 -0
  70. package/out/api/parameters/index.js.map +1 -1
  71. package/out/api/parameters/movePage.d.ts +9 -5
  72. package/out/api/parameters/removeContentState.d.ts +5 -1
  73. package/out/api/parameters/setContentState.d.ts +11 -5
  74. package/out/api/relation.d.ts +8 -4
  75. package/out/api/relation.js.map +1 -1
  76. package/out/api/settings.d.ts +6 -4
  77. package/out/api/settings.js.map +1 -1
  78. package/out/api/space.d.ts +6 -4
  79. package/out/api/space.js.map +1 -1
  80. package/out/api/spaceProperties.d.ts +4 -4
  81. package/out/api/template.d.ts +16 -8
  82. package/out/api/template.js.map +1 -1
  83. package/out/clients/baseClient.js +3 -1
  84. package/out/clients/baseClient.js.map +1 -1
  85. package/out/clients/confluenceClient.d.ts +2 -1
  86. package/out/clients/confluenceClient.js +1 -0
  87. package/out/clients/confluenceClient.js.map +1 -1
  88. package/out/clients/serverClient.js.map +1 -1
  89. package/out/server/audit.js +6 -6
  90. package/out/server/audit.js.map +1 -1
  91. package/out/server/content.d.ts +34 -262
  92. package/out/server/content.js +40 -32
  93. package/out/server/content.js.map +1 -1
  94. package/out/server/contentBody.d.ts +2 -12
  95. package/out/server/contentBody.js +2 -1
  96. package/out/server/contentBody.js.map +1 -1
  97. package/out/server/group.js +3 -3
  98. package/out/server/group.js.map +1 -1
  99. package/out/server/longTask.js +2 -2
  100. package/out/server/longTask.js.map +1 -1
  101. package/out/server/parameters/convertContentBody.d.ts +16 -0
  102. package/out/server/parameters/updateAttachmentData.d.ts +8 -2
  103. package/out/server/search.d.ts +2 -22
  104. package/out/server/search.js +1 -1
  105. package/out/server/search.js.map +1 -1
  106. package/out/server/space.d.ts +12 -94
  107. package/out/server/space.js +14 -14
  108. package/out/server/space.js.map +1 -1
  109. package/out/server/user.d.ts +8 -152
  110. package/out/server/user.js +10 -10
  111. package/out/server/user.js.map +1 -1
  112. package/package.json +10 -10
  113. package/src/api/audit.ts +24 -12
  114. package/src/api/content.ts +23 -17
  115. package/src/api/contentAttachments.ts +19 -13
  116. package/src/api/contentBody.ts +102 -0
  117. package/src/api/contentChildrenAndDescendants.ts +3 -1
  118. package/src/api/contentContentState.ts +30 -28
  119. package/src/api/contentMacroBody.ts +119 -2
  120. package/src/api/contentRestrictions.ts +16 -8
  121. package/src/api/contentStates.ts +252 -0
  122. package/src/api/contentWatches.ts +16 -8
  123. package/src/api/dynamicModules.ts +1 -0
  124. package/src/api/experimental.ts +2 -2
  125. package/src/api/index.ts +1 -0
  126. package/src/api/models/asyncContentBody.ts +31 -0
  127. package/src/api/models/asyncId.ts +3 -0
  128. package/src/api/models/contentBodyCreate.ts +1 -0
  129. package/src/api/models/contentStateResponse.ts +8 -0
  130. package/src/api/models/contentStateRestInput.ts +11 -0
  131. package/src/api/models/index.ts +16 -12
  132. package/src/api/parameters/asyncConvertContentBodyRequest.ts +81 -0
  133. package/src/api/parameters/asyncConvertContentBodyResponse.ts +4 -0
  134. package/src/api/parameters/convertContentBody.ts +39 -2
  135. package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +88 -0
  136. package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +104 -0
  137. package/src/api/parameters/getAvailableContentStates.ts +5 -2
  138. package/src/api/parameters/getContentState.ts +9 -4
  139. package/src/api/parameters/getSpaceContentStates.ts +4 -0
  140. package/src/api/parameters/getUser.ts +14 -4
  141. package/src/api/parameters/index.ts +5 -0
  142. package/src/api/parameters/movePage.ts +9 -5
  143. package/src/api/parameters/removeContentState.ts +6 -1
  144. package/src/api/parameters/setContentState.ts +13 -5
  145. package/src/api/relation.ts +8 -4
  146. package/src/api/settings.ts +6 -4
  147. package/src/api/space.ts +7 -5
  148. package/src/api/spaceProperties.ts +4 -4
  149. package/src/api/template.ts +16 -8
  150. package/src/clients/baseClient.ts +5 -10
  151. package/src/clients/client.ts +1 -5
  152. package/src/clients/confluenceClient.ts +2 -0
  153. package/src/clients/serverClient.ts +1 -10
  154. package/src/server/audit.ts +6 -6
  155. package/src/server/content.ts +78 -295
  156. package/src/server/contentBody.ts +4 -13
  157. package/src/server/group.ts +3 -3
  158. package/src/server/longTask.ts +2 -2
  159. package/src/server/parameters/convertContentBody.ts +37 -0
  160. package/src/server/parameters/updateAttachmentData.ts +7 -3
  161. package/src/server/search.ts +3 -23
  162. package/src/server/space.ts +26 -108
  163. package/src/server/user.ts +18 -162
@@ -8,25 +8,9 @@ import { RequestConfig } from '../requestConfig';
8
8
  export class User {
9
9
  constructor(private client: Client) {}
10
10
 
11
- /**
12
- * Get information about a user identified by either user key or username.
13
- *
14
- * @example
15
- * Example request URI(s):
16
- *
17
- * - http://example.com/rest/api/user?username=jblogs
18
- * - http://example.com/rest/api/user?key=402880824ff933a4014ff9345d7c0002
19
- */
11
+ /** Get information about a user identified by either user key or username. */
20
12
  async getUser<T = Models.User>(parameters: Parameters.GetUser | undefined, callback: Callback<T>): Promise<void>;
21
- /**
22
- * Get information about a user identified by either user key or username.
23
- *
24
- * @example
25
- * Example request URI(s):
26
- *
27
- * - http://example.com/rest/api/user?username=jblogs
28
- * - http://example.com/rest/api/user?key=402880824ff933a4014ff9345d7c0002
29
- */
13
+ /** Get information about a user identified by either user key or username. */
30
14
  async getUser<T = Models.User>(parameters?: Parameters.GetUser, callback?: never): Promise<T>;
31
15
  async getUser<T = Models.User>(parameters?: Parameters.GetUser, callback?: Callback<T>): Promise<void | T> {
32
16
  const config: RequestConfig = {
@@ -39,26 +23,12 @@ export class User {
39
23
  },
40
24
  };
41
25
 
42
- return this.client.sendRequest(config, callback, { methodName: 'server.getUser' });
26
+ return this.client.sendRequest(config, callback);
43
27
  }
44
28
 
45
- /**
46
- * Get information about the how anonymous is represented in confluence
47
- *
48
- * @example
49
- * Example request URI(s):
50
- *
51
- * - http://example.com/rest/api/user/anonymous
52
- */
29
+ /** Get information about the how anonymous is represented in confluence */
53
30
  async getAnonymousUser<T = Models.UserAnonymous>(callback: Callback<T>): Promise<void>;
54
- /**
55
- * Get information about the how anonymous is represented in confluence
56
- *
57
- * @example
58
- * Example request URI(s):
59
- *
60
- * - http://example.com/rest/api/user/anonymous
61
- */
31
+ /** Get information about the how anonymous is represented in confluence */
62
32
  async getAnonymousUser<T = Models.UserAnonymous>(callback?: never): Promise<T>;
63
33
  async getAnonymousUser<T = Models.UserAnonymous>(callback?: Callback<T>): Promise<void | T> {
64
34
  const config: RequestConfig = {
@@ -66,29 +36,15 @@ export class User {
66
36
  method: 'GET',
67
37
  };
68
38
 
69
- return this.client.sendRequest(config, callback, { methodName: 'server.getAnonymousUser' });
39
+ return this.client.sendRequest(config, callback);
70
40
  }
71
41
 
72
- /**
73
- * Get information about the current logged in user.
74
- *
75
- * @example
76
- * Example request URI(s):
77
- *
78
- * - http://example.com/rest/api/user/current
79
- */
42
+ /** Get information about the current logged-in user. */
80
43
  async getCurrentUser<T = Models.User>(
81
44
  parameters: Parameters.GetCurrentUser | undefined,
82
45
  callback: Callback<T>
83
46
  ): Promise<void>;
84
- /**
85
- * Get information about the current logged in user.
86
- *
87
- * @example
88
- * Example request URI(s):
89
- *
90
- * - http://example.com/rest/api/user/current
91
- */
47
+ /** Get information about the current logged-in user. */
92
48
  async getCurrentUser<T = Models.User>(parameters?: Parameters.GetCurrentUser, callback?: never): Promise<T>;
93
49
  async getCurrentUser<T = Models.User>(
94
50
  parameters?: Parameters.GetCurrentUser,
@@ -102,31 +58,15 @@ export class User {
102
58
  },
103
59
  };
104
60
 
105
- return this.client.sendRequest(config, callback, { methodName: 'server.getCurrentUser' });
61
+ return this.client.sendRequest(config, callback);
106
62
  }
107
63
 
108
- /**
109
- * Get a paginated collection of groups that the given user is a member of
110
- *
111
- * @example
112
- * Example request URI(s):
113
- *
114
- * http://example.com/rest/api/user/memberof?username=jblogs
115
- * http://example.com/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002
116
- */
64
+ /** Get a paginated collection of groups that the given user is a member of */
117
65
  async getGroupMembershipsForUser<T = Pagination<Models.Group>>(
118
66
  parameters: Parameters.GetGroups | undefined,
119
67
  callback: Callback<T>
120
68
  ): Promise<void>;
121
- /**
122
- * Get a paginated collection of groups that the given user is a member of
123
- *
124
- * @example
125
- * Example request URI(s):
126
- *
127
- * http://example.com/rest/api/user/memberof?username=jblogs
128
- * http://example.com/rest/api/user/memberof?key=402880824ff933a4014ff9345d7c0002
129
- */
69
+ /** Get a paginated collection of groups that the given user is a member of */
130
70
  async getGroupMembershipsForUser<T = Pagination<Models.Group>>(
131
71
  parameters?: Parameters.GetGroups,
132
72
  callback?: never
@@ -147,7 +87,7 @@ export class User {
147
87
  },
148
88
  };
149
89
 
150
- return this.client.sendRequest(config, callback, { methodName: 'server.getGroupMembershipsForUser' });
90
+ return this.client.sendRequest(config, callback);
151
91
  }
152
92
 
153
93
  /**
@@ -156,13 +96,6 @@ export class User {
156
96
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
157
97
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
158
98
  * to be a Confluence administrator.
159
- *
160
- * @example
161
- * Example request URI(s):
162
- *
163
- * - http://example.com/rest/api/user/watch/content/131213
164
- * - http://example.com/rest/api/user/watch/content/131213?username=jblogs
165
- * - http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
166
99
  */
167
100
  async getContentWatchStatus<T = Models.UserWatch>(
168
101
  parameters: Parameters.GetContentWatchStatus,
@@ -174,13 +107,6 @@ export class User {
174
107
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
175
108
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
176
109
  * to be a Confluence administrator.
177
- *
178
- * @example
179
- * Example request URI(s):
180
- *
181
- * - http://example.com/rest/api/user/watch/content/131213
182
- * - http://example.com/rest/api/user/watch/content/131213?username=jblogs
183
- * - http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
184
110
  */
185
111
  async getContentWatchStatus<T = Models.UserWatch>(
186
112
  parameters: Parameters.GetContentWatchStatus,
@@ -199,7 +125,7 @@ export class User {
199
125
  },
200
126
  };
201
127
 
202
- return this.client.sendRequest(config, callback, { methodName: 'server.getContentWatchStatus' });
128
+ return this.client.sendRequest(config, callback);
203
129
  }
204
130
 
205
131
  /**
@@ -208,13 +134,6 @@ export class User {
208
134
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
209
135
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
210
136
  * to be a Confluence administrator.
211
- *
212
- * @example
213
- * Example request URI(s):
214
- *
215
- * - POST http://example.com/rest/api/user/watch/content/131213
216
- * - POST http://example.com/rest/api/user/watch/content/131213?username=jblogs
217
- * - POST http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
218
137
  */
219
138
  async addContentWatcher<T = void>(parameters: Parameters.AddContentWatcher, callback: Callback<T>): Promise<void>;
220
139
  /**
@@ -223,13 +142,6 @@ export class User {
223
142
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
224
143
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
225
144
  * to be a Confluence administrator.
226
- *
227
- * @example
228
- * Example request URI(s):
229
- *
230
- * - POST http://example.com/rest/api/user/watch/content/131213
231
- * - POST http://example.com/rest/api/user/watch/content/131213?username=jblogs
232
- * - POST http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
233
145
  */
234
146
  async addContentWatcher<T = void>(parameters: Parameters.AddContentWatcher, callback?: never): Promise<T>;
235
147
  async addContentWatcher<T = void>(
@@ -245,7 +157,7 @@ export class User {
245
157
  },
246
158
  };
247
159
 
248
- return this.client.sendRequest(config, callback, { methodName: 'server.addContentWatcher' });
160
+ return this.client.sendRequest(config, callback);
249
161
  }
250
162
 
251
163
  /**
@@ -254,13 +166,6 @@ export class User {
254
166
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
255
167
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
256
168
  * to be a Confluence administrator.
257
- *
258
- * @example
259
- * Example request URI(s):
260
- *
261
- * - DELETE http://example.com/rest/api/user/watch/content/131213
262
- * - DELETE http://example.com/rest/api/user/watch/content/131213?username=jblogs
263
- * - DELETE http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
264
169
  */
265
170
  async removeContentWatcher<T = void>(
266
171
  parameters: Parameters.RemoveContentWatcher,
@@ -272,13 +177,6 @@ export class User {
272
177
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
273
178
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
274
179
  * to be a Confluence administrator.
275
- *
276
- * @example
277
- * Example request URI(s):
278
- *
279
- * - DELETE http://example.com/rest/api/user/watch/content/131213
280
- * - DELETE http://example.com/rest/api/user/watch/content/131213?username=jblogs
281
- * - DELETE http://example.com/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000
282
180
  */
283
181
  async removeContentWatcher<T = void>(parameters: Parameters.RemoveContentWatcher, callback?: never): Promise<T>;
284
182
  async removeContentWatcher<T = void>(
@@ -294,7 +192,7 @@ export class User {
294
192
  },
295
193
  };
296
194
 
297
- return this.client.sendRequest(config, callback, { methodName: 'server.removeContentWatcher' });
195
+ return this.client.sendRequest(config, callback);
298
196
  }
299
197
 
300
198
  /**
@@ -303,13 +201,6 @@ export class User {
303
201
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
304
202
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
305
203
  * to be a Confluence administrator.
306
- *
307
- * @example
308
- * Example request URI(s):
309
- *
310
- * - http://example.com/rest/api/user/watch/space/SPACEKEY
311
- * - http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
312
- * - http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
313
204
  */
314
205
  async isWatchingSpace<T = Models.UserWatch>(
315
206
  parameters: Parameters.IsWatchingSpace,
@@ -321,13 +212,6 @@ export class User {
321
212
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
322
213
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
323
214
  * to be a Confluence administrator.
324
- *
325
- * @example
326
- * Example request URI(s):
327
- *
328
- * - http://example.com/rest/api/user/watch/space/SPACEKEY
329
- * - http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
330
- * - http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
331
215
  */
332
216
  async isWatchingSpace<T = Models.UserWatch>(parameters: Parameters.IsWatchingSpace, callback?: never): Promise<T>;
333
217
  async isWatchingSpace<T = Models.UserWatch>(
@@ -343,7 +227,7 @@ export class User {
343
227
  },
344
228
  };
345
229
 
346
- return this.client.sendRequest(config, callback, { methodName: 'server.isWatchingSpace' });
230
+ return this.client.sendRequest(config, callback);
347
231
  }
348
232
 
349
233
  /**
@@ -352,13 +236,6 @@ export class User {
352
236
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
353
237
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
354
238
  * to be a Confluence administrator.
355
- *
356
- * @example
357
- * Example request URI(s):
358
- *
359
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY
360
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
361
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
362
239
  */
363
240
  async addSpaceWatch<T = void>(parameters: Parameters.AddSpaceWatch, callback: Callback<T>): Promise<void>;
364
241
  /**
@@ -367,13 +244,6 @@ export class User {
367
244
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
368
245
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
369
246
  * to be a Confluence administrator.
370
- *
371
- * @example
372
- * Example request URI(s):
373
- *
374
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY
375
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
376
- * - POST http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
377
247
  */
378
248
  async addSpaceWatch<T = void>(parameters: Parameters.AddSpaceWatch, callback?: never): Promise<T>;
379
249
  async addSpaceWatch<T = void>(parameters: Parameters.AddSpaceWatch, callback?: Callback<T>): Promise<void | T> {
@@ -386,7 +256,7 @@ export class User {
386
256
  },
387
257
  };
388
258
 
389
- return this.client.sendRequest(config, callback, { methodName: 'server.addSpaceWatch' });
259
+ return this.client.sendRequest(config, callback);
390
260
  }
391
261
 
392
262
  /**
@@ -395,13 +265,6 @@ export class User {
395
265
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
396
266
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
397
267
  * to be a Confluence administrator.
398
- *
399
- * @example
400
- * Example request URI(s):
401
- *
402
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY
403
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
404
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
405
268
  */
406
269
  async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback: Callback<T>): Promise<void>;
407
270
  /**
@@ -410,13 +273,6 @@ export class User {
410
273
  * User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either
411
274
  * user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs
412
275
  * to be a Confluence administrator.
413
- *
414
- * @example
415
- * Example request URI(s):
416
- *
417
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY
418
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY?username=jblogs
419
- * - DELETE http://example.com/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000
420
276
  */
421
277
  async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback?: never): Promise<T>;
422
278
  async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback?: Callback<T>): Promise<void | T> {
@@ -429,6 +285,6 @@ export class User {
429
285
  },
430
286
  };
431
287
 
432
- return this.client.sendRequest(config, callback, { methodName: 'server.removeSpaceWatch' });
288
+ return this.client.sendRequest(config, callback);
433
289
  }
434
290
  }