@resolution/confluence-api-client 0.4.4 → 0.4.6
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.
- package/CHANGELOG.md +22 -0
- package/README.md +60 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v1/core/CommonHttpService.js +9 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v2/core/CommonHttpService.js +9 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -11,457 +11,460 @@ const contentWatches_1 = require("../models/contentWatches");
|
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches */
|
|
13
13
|
class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* Adds a user as a watcher to a piece of content. Choose the user by doing
|
|
18
|
+
* one of the following:
|
|
19
|
+
*
|
|
20
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
21
|
+
* user.
|
|
22
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
23
|
+
*
|
|
24
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
25
|
+
* request, as this operation has XSRF protection.
|
|
26
|
+
*
|
|
27
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
28
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
29
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
30
|
+
*
|
|
31
|
+
* @path {POST} /wiki/rest/api/user/watch/content/{contentId}
|
|
32
|
+
* @scopes-current write:confluence-content
|
|
33
|
+
* @scopes-beta write:watcher:confluence
|
|
34
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-post
|
|
35
|
+
*/
|
|
36
|
+
this.addContentWatcher = ({ contentId, key, username, accountId, }) => {
|
|
37
|
+
return this.getClientInstance()
|
|
38
|
+
.request({
|
|
39
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
40
|
+
method: "POST",
|
|
41
|
+
pathParams: {
|
|
42
|
+
contentId,
|
|
43
|
+
},
|
|
44
|
+
query: {
|
|
45
|
+
key,
|
|
46
|
+
username,
|
|
47
|
+
accountId,
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
.then(commonHttpClient.discardResult);
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Adds a user as a watcher to a label. Choose the user by doing one of the
|
|
54
|
+
* following:
|
|
55
|
+
*
|
|
56
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
57
|
+
* user.
|
|
58
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
59
|
+
*
|
|
60
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
61
|
+
* request, as this operation has XSRF protection.
|
|
62
|
+
*
|
|
63
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
64
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
65
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
66
|
+
*
|
|
67
|
+
* @path {POST} /wiki/rest/api/user/watch/label/{labelName}
|
|
68
|
+
* @scopes-current write:confluence-content
|
|
69
|
+
* @scopes-beta write:watcher:confluence
|
|
70
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-post
|
|
71
|
+
*/
|
|
72
|
+
this.addLabelWatcher = ({ labelName, key, username, accountId, xAtlassianToken, }) => {
|
|
73
|
+
return this.getClientInstance()
|
|
74
|
+
.request({
|
|
75
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
76
|
+
method: "POST",
|
|
77
|
+
pathParams: {
|
|
78
|
+
labelName,
|
|
79
|
+
},
|
|
80
|
+
query: {
|
|
81
|
+
key,
|
|
82
|
+
username,
|
|
83
|
+
accountId,
|
|
84
|
+
},
|
|
85
|
+
headers: {
|
|
86
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
87
|
+
},
|
|
88
|
+
})
|
|
89
|
+
.then(commonHttpClient.discardResult);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Adds a user as a watcher to a space. Choose the user by doing one of the
|
|
93
|
+
* following:
|
|
94
|
+
*
|
|
95
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
96
|
+
* user.
|
|
97
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
98
|
+
*
|
|
99
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
100
|
+
* request, as this operation has XSRF protection.
|
|
101
|
+
*
|
|
102
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
103
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
104
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
105
|
+
*
|
|
106
|
+
* @path {POST} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
107
|
+
* @scopes-current write:confluence-content
|
|
108
|
+
* @scopes-beta write:watcher:confluence
|
|
109
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-post
|
|
110
|
+
*/
|
|
111
|
+
this.addSpaceWatcher = ({ spaceKey, key, username, accountId, xAtlassianToken, }) => {
|
|
112
|
+
return this.getClientInstance()
|
|
113
|
+
.request({
|
|
114
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
115
|
+
method: "POST",
|
|
116
|
+
pathParams: {
|
|
117
|
+
spaceKey,
|
|
118
|
+
},
|
|
119
|
+
query: {
|
|
120
|
+
key,
|
|
121
|
+
username,
|
|
122
|
+
accountId,
|
|
123
|
+
},
|
|
124
|
+
headers: {
|
|
125
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
126
|
+
},
|
|
127
|
+
})
|
|
128
|
+
.then(commonHttpClient.discardResult);
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Returns whether a user is watching a piece of content. Choose the user by
|
|
132
|
+
* doing one of the following:
|
|
133
|
+
*
|
|
134
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
135
|
+
* user.
|
|
136
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
137
|
+
*
|
|
138
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
139
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
140
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
141
|
+
*
|
|
142
|
+
* @returns Returned if the requested watch status is returned.
|
|
143
|
+
* @path {GET} /wiki/rest/api/user/watch/content/{contentId}
|
|
144
|
+
* @scopes-current read:confluence-content.summary
|
|
145
|
+
* @scopes-beta read:watcher:confluence
|
|
146
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-get
|
|
147
|
+
*/
|
|
148
|
+
this.getContentWatchStatus = ({ contentId, key, username, accountId, }) => {
|
|
149
|
+
return this.getClientInstance()
|
|
150
|
+
.request({
|
|
151
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
152
|
+
method: "GET",
|
|
153
|
+
pathParams: {
|
|
154
|
+
contentId,
|
|
155
|
+
},
|
|
156
|
+
query: {
|
|
157
|
+
key,
|
|
158
|
+
username,
|
|
159
|
+
accountId,
|
|
160
|
+
},
|
|
161
|
+
})
|
|
162
|
+
.then(this.getClientInstance().responseHandler({
|
|
163
|
+
200: {
|
|
164
|
+
"application/json": "json",
|
|
165
|
+
},
|
|
166
|
+
}))
|
|
167
|
+
.then(commonHttpClient.castResponse())
|
|
168
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getContentWatchStatus.response"))
|
|
169
|
+
.then(commonHttpClient.getBody);
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Returns a list of watchers of a space
|
|
173
|
+
*
|
|
174
|
+
* @returns Returned if watchers list is returned.
|
|
175
|
+
* @path {GET} /wiki/rest/api/space/{spaceKey}/watch
|
|
176
|
+
* @scopes-current read:watcher:confluence, read:user:confluence
|
|
177
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-space-spacekey-watch-get
|
|
178
|
+
*/
|
|
179
|
+
this.getWatchersForSpace = ({ spaceKey, start, limit, }) => {
|
|
180
|
+
return this.getClientInstance()
|
|
181
|
+
.request({
|
|
182
|
+
path: "/wiki/rest/api/space/{spaceKey}/watch",
|
|
183
|
+
method: "GET",
|
|
184
|
+
pathParams: {
|
|
185
|
+
spaceKey,
|
|
186
|
+
},
|
|
187
|
+
query: {
|
|
188
|
+
start,
|
|
189
|
+
limit,
|
|
190
|
+
},
|
|
191
|
+
})
|
|
192
|
+
.then(this.getClientInstance().responseHandler({
|
|
193
|
+
200: {
|
|
194
|
+
"application/json": "json",
|
|
195
|
+
},
|
|
196
|
+
}))
|
|
197
|
+
.then(commonHttpClient.castResponse())
|
|
198
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchersForSpace.response"))
|
|
199
|
+
.then(commonHttpClient.getBody);
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Returns the watches for a page. A user that watches a page will receive
|
|
203
|
+
* receive notifications when the page is updated.
|
|
204
|
+
*
|
|
205
|
+
* If you want to manage watches for a page, use the following `user` methods:
|
|
206
|
+
*
|
|
207
|
+
* - [Get content watch status for user](#api-user-watch-content-contentId-get)
|
|
208
|
+
* - [Add content watch](#api-user-watch-content-contentId-post)
|
|
209
|
+
* - [Remove content watch](#api-user-watch-content-contentId-delete)
|
|
210
|
+
*
|
|
211
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
212
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
213
|
+
*
|
|
214
|
+
* @returns Returned if the requested watches are returned.
|
|
215
|
+
* @path {GET} /wiki/rest/api/content/{id}/notification/child-created
|
|
216
|
+
* @scopes-current read:confluence-content.summary
|
|
217
|
+
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
218
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-child-created-get
|
|
219
|
+
*/
|
|
220
|
+
this.getWatchesForPage = ({ id, start, limit, }) => {
|
|
221
|
+
return this.getClientInstance()
|
|
222
|
+
.request({
|
|
223
|
+
path: "/wiki/rest/api/content/{id}/notification/child-created",
|
|
224
|
+
method: "GET",
|
|
225
|
+
pathParams: {
|
|
226
|
+
id,
|
|
227
|
+
},
|
|
228
|
+
query: {
|
|
229
|
+
start,
|
|
230
|
+
limit,
|
|
231
|
+
},
|
|
232
|
+
})
|
|
233
|
+
.then(this.getClientInstance().responseHandler({
|
|
234
|
+
200: {
|
|
235
|
+
"application/json": "json",
|
|
236
|
+
},
|
|
237
|
+
}))
|
|
238
|
+
.then(commonHttpClient.castResponse())
|
|
239
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchesForPage.response"))
|
|
240
|
+
.then(commonHttpClient.getBody);
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Returns all space watches for the space that the content is in. A user that
|
|
244
|
+
* watches a space will receive receive notifications when any content in the
|
|
245
|
+
* space is updated.
|
|
246
|
+
*
|
|
247
|
+
* If you want to manage watches for a space, use the following `user` methods:
|
|
248
|
+
*
|
|
249
|
+
* - [Get space watch status for user](#api-user-watch-space-spaceKey-get)
|
|
250
|
+
* - [Add space watch](#api-user-watch-space-spaceKey-post)
|
|
251
|
+
* - [Remove space watch](#api-user-watch-space-spaceKey-delete)
|
|
252
|
+
*
|
|
253
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
254
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
255
|
+
*
|
|
256
|
+
* @returns Returned if the requested watches are returned.
|
|
257
|
+
* @path {GET} /wiki/rest/api/content/{id}/notification/created
|
|
258
|
+
* @scopes-current read:confluence-content.summary
|
|
259
|
+
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
260
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-created-get
|
|
261
|
+
*/
|
|
262
|
+
this.getWatchesForSpace = ({ id, start, limit, }) => {
|
|
263
|
+
return this.getClientInstance()
|
|
264
|
+
.request({
|
|
265
|
+
path: "/wiki/rest/api/content/{id}/notification/created",
|
|
266
|
+
method: "GET",
|
|
267
|
+
pathParams: {
|
|
268
|
+
id,
|
|
269
|
+
},
|
|
270
|
+
query: {
|
|
271
|
+
start,
|
|
272
|
+
limit,
|
|
273
|
+
},
|
|
274
|
+
})
|
|
275
|
+
.then(this.getClientInstance().responseHandler({
|
|
276
|
+
200: {
|
|
277
|
+
"application/json": "json",
|
|
278
|
+
},
|
|
279
|
+
}))
|
|
280
|
+
.then(commonHttpClient.castResponse())
|
|
281
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchesForSpace.response"))
|
|
282
|
+
.then(commonHttpClient.getBody);
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Returns whether a user is watching a label. Choose the user by doing one
|
|
286
|
+
* of the following:
|
|
287
|
+
*
|
|
288
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
289
|
+
* user.
|
|
290
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
291
|
+
*
|
|
292
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
293
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
294
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
295
|
+
*
|
|
296
|
+
* @returns Returned if the requested watch status is returned.
|
|
297
|
+
* @path {GET} /wiki/rest/api/user/watch/label/{labelName}
|
|
298
|
+
* @scopes-current read:confluence-content.summary
|
|
299
|
+
* @scopes-beta read:watcher:confluence
|
|
300
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-get
|
|
301
|
+
*/
|
|
302
|
+
this.isWatchingLabel = ({ labelName, key, username, accountId, }) => {
|
|
303
|
+
return this.getClientInstance()
|
|
304
|
+
.request({
|
|
305
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
306
|
+
method: "GET",
|
|
307
|
+
pathParams: {
|
|
308
|
+
labelName,
|
|
309
|
+
},
|
|
310
|
+
query: {
|
|
311
|
+
key,
|
|
312
|
+
username,
|
|
313
|
+
accountId,
|
|
314
|
+
},
|
|
315
|
+
})
|
|
316
|
+
.then(this.getClientInstance().responseHandler({
|
|
317
|
+
200: {
|
|
318
|
+
"application/json": "json",
|
|
319
|
+
},
|
|
320
|
+
}))
|
|
321
|
+
.then(commonHttpClient.castResponse())
|
|
322
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.isWatchingLabel.response"))
|
|
323
|
+
.then(commonHttpClient.getBody);
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Returns whether a user is watching a space. Choose the user by
|
|
327
|
+
* doing one of the following:
|
|
328
|
+
*
|
|
329
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
330
|
+
* user.
|
|
331
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
332
|
+
*
|
|
333
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
334
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
335
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
336
|
+
*
|
|
337
|
+
* @returns Returned if the requested watch status is returned.
|
|
338
|
+
* @path {GET} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
339
|
+
* @scopes-current read:confluence-content.summary
|
|
340
|
+
* @scopes-beta read:watcher:confluence
|
|
341
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-get
|
|
342
|
+
*/
|
|
343
|
+
this.isWatchingSpace = ({ spaceKey, key, username, accountId, }) => {
|
|
344
|
+
return this.getClientInstance()
|
|
345
|
+
.request({
|
|
346
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
347
|
+
method: "GET",
|
|
348
|
+
pathParams: {
|
|
349
|
+
spaceKey,
|
|
350
|
+
},
|
|
351
|
+
query: {
|
|
352
|
+
key,
|
|
353
|
+
username,
|
|
354
|
+
accountId,
|
|
355
|
+
},
|
|
356
|
+
})
|
|
357
|
+
.then(this.getClientInstance().responseHandler({
|
|
358
|
+
200: {
|
|
359
|
+
"application/json": "json",
|
|
360
|
+
},
|
|
361
|
+
}))
|
|
362
|
+
.then(commonHttpClient.castResponse())
|
|
363
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.isWatchingSpace.response"))
|
|
364
|
+
.then(commonHttpClient.getBody);
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Removes a user as a watcher from a piece of content. Choose the user by
|
|
368
|
+
* doing one of the following:
|
|
369
|
+
*
|
|
370
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
371
|
+
* user.
|
|
372
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
373
|
+
*
|
|
374
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
375
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
376
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
377
|
+
*
|
|
378
|
+
* @path {DELETE} /wiki/rest/api/user/watch/content/{contentId}
|
|
379
|
+
* @scopes-current write:confluence-content
|
|
380
|
+
* @scopes-beta write:watcher:confluence
|
|
381
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-delete
|
|
382
|
+
*/
|
|
383
|
+
this.removeContentWatcher = ({ contentId, key, username, accountId, xAtlassianToken, }) => {
|
|
384
|
+
return this.getClientInstance()
|
|
385
|
+
.request({
|
|
386
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
387
|
+
method: "DELETE",
|
|
388
|
+
pathParams: {
|
|
389
|
+
contentId,
|
|
390
|
+
},
|
|
391
|
+
query: {
|
|
392
|
+
key,
|
|
393
|
+
username,
|
|
394
|
+
accountId,
|
|
395
|
+
},
|
|
396
|
+
headers: {
|
|
397
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
398
|
+
},
|
|
399
|
+
})
|
|
400
|
+
.then(commonHttpClient.discardResult);
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Removes a user as a watcher from a label. Choose the user by doing one of
|
|
404
|
+
* the following:
|
|
405
|
+
*
|
|
406
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
407
|
+
* user.
|
|
408
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
409
|
+
*
|
|
410
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
411
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
412
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
413
|
+
*
|
|
414
|
+
* @path {DELETE} /wiki/rest/api/user/watch/label/{labelName}
|
|
415
|
+
* @scopes-current write:confluence-content
|
|
416
|
+
* @scopes-beta write:watcher:confluence
|
|
417
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-delete
|
|
418
|
+
*/
|
|
419
|
+
this.removeLabelWatcher = ({ labelName, key, username, accountId, }) => {
|
|
420
|
+
return this.getClientInstance()
|
|
421
|
+
.request({
|
|
422
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
423
|
+
method: "DELETE",
|
|
424
|
+
pathParams: {
|
|
425
|
+
labelName,
|
|
426
|
+
},
|
|
427
|
+
query: {
|
|
428
|
+
key,
|
|
429
|
+
username,
|
|
430
|
+
accountId,
|
|
431
|
+
},
|
|
432
|
+
})
|
|
433
|
+
.then(commonHttpClient.discardResult);
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* Removes a user as a watcher from a space. Choose the user by doing one of
|
|
437
|
+
* the following:
|
|
438
|
+
*
|
|
439
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
440
|
+
* user.
|
|
441
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
442
|
+
*
|
|
443
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
444
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
445
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
446
|
+
*
|
|
447
|
+
* @path {DELETE} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
448
|
+
* @scopes-current write:confluence-content
|
|
449
|
+
* @scopes-beta write:watcher:confluence
|
|
450
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-delete
|
|
451
|
+
*/
|
|
452
|
+
this.removeSpaceWatch = ({ spaceKey, key, username, accountId, }) => {
|
|
453
|
+
return this.getClientInstance()
|
|
454
|
+
.request({
|
|
455
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
456
|
+
method: "DELETE",
|
|
457
|
+
pathParams: {
|
|
458
|
+
spaceKey,
|
|
459
|
+
},
|
|
460
|
+
query: {
|
|
461
|
+
key,
|
|
462
|
+
username,
|
|
463
|
+
accountId,
|
|
464
|
+
},
|
|
465
|
+
})
|
|
466
|
+
.then(commonHttpClient.discardResult);
|
|
467
|
+
};
|
|
465
468
|
}
|
|
466
469
|
static initialize() {
|
|
467
470
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.getWatchesForPage.response", zod_1.z
|