@resolution/confluence-api-client 0.4.4 → 0.4.5
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 +11 -0
- 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/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
|
@@ -12,508 +12,511 @@ const contentRestrictions_1 = require("../models/contentRestrictions");
|
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
13
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
|
|
14
14
|
class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
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
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Deprecated, use [Add group to content restriction via
|
|
19
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put).
|
|
20
|
+
* Adds a group to a content restriction. That is, grant read or update
|
|
21
|
+
* permission to the group for a piece of content.
|
|
22
|
+
*
|
|
23
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
24
|
+
* Permission to edit the content.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated
|
|
27
|
+
* @path {PUT}
|
|
28
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
29
|
+
* @scopes-current write:confluence-content
|
|
30
|
+
* @scopes-beta write:content.restriction:confluence
|
|
31
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-put
|
|
32
|
+
*/
|
|
33
|
+
this.addGroupToContentRestriction = ({ id, operationKey, groupName, }) => {
|
|
34
|
+
return this.getClientInstance()
|
|
35
|
+
.request({
|
|
36
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}",
|
|
37
|
+
method: "PUT",
|
|
38
|
+
pathParams: {
|
|
39
|
+
id,
|
|
40
|
+
operationKey,
|
|
41
|
+
groupName,
|
|
42
|
+
},
|
|
43
|
+
})
|
|
44
|
+
.then(commonHttpClient.discardResult);
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Adds a group to a content restriction by Group Id. That is, grant read or update
|
|
48
|
+
* permission to the group for a piece of content.
|
|
49
|
+
*
|
|
50
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
51
|
+
* Permission to edit the content.
|
|
52
|
+
*
|
|
53
|
+
* @path {PUT}
|
|
54
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
55
|
+
* @scopes-current write:confluence-content
|
|
56
|
+
* @scopes-beta write:content.restriction:confluence
|
|
57
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put
|
|
58
|
+
*/
|
|
59
|
+
this.addGroupToContentRestrictionByGroupId = ({ id, operationKey, groupId, }) => {
|
|
60
|
+
return this.getClientInstance()
|
|
61
|
+
.request({
|
|
62
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}",
|
|
63
|
+
method: "PUT",
|
|
64
|
+
pathParams: {
|
|
65
|
+
id,
|
|
66
|
+
operationKey,
|
|
67
|
+
groupId,
|
|
68
|
+
},
|
|
69
|
+
})
|
|
70
|
+
.then(commonHttpClient.discardResult);
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Adds restrictions to a piece of content. Note, this does not change any
|
|
74
|
+
* existing restrictions on the content.
|
|
75
|
+
*
|
|
76
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
77
|
+
* Permission to edit the content.
|
|
78
|
+
*
|
|
79
|
+
* @returns Returned if the requested restrictions are added.
|
|
80
|
+
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
81
|
+
* @scopes-current write:confluence-content
|
|
82
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
83
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-post
|
|
84
|
+
*/
|
|
85
|
+
this.addRestrictions = ({ id, expand, contentRestrictionAddOrUpdateArray, }) => {
|
|
86
|
+
return this.getClientInstance()
|
|
87
|
+
.request({
|
|
88
|
+
path: "/wiki/rest/api/content/{id}/restriction",
|
|
89
|
+
method: "POST",
|
|
90
|
+
pathParams: {
|
|
91
|
+
id,
|
|
92
|
+
},
|
|
93
|
+
query: {
|
|
94
|
+
expand,
|
|
95
|
+
},
|
|
96
|
+
headers: {
|
|
97
|
+
"Content-Type": "application/json",
|
|
98
|
+
},
|
|
99
|
+
body: contentRestrictionAddOrUpdateArray,
|
|
100
|
+
})
|
|
101
|
+
.then(this.getClientInstance().responseHandler({
|
|
102
|
+
200: {
|
|
103
|
+
"application/json": "json",
|
|
104
|
+
},
|
|
105
|
+
}))
|
|
106
|
+
.then(commonHttpClient.castResponse())
|
|
107
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentRestrictionsService.addRestrictions.response"))
|
|
108
|
+
.then(commonHttpClient.getBody);
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Adds a user to a content restriction. That is, grant read or update
|
|
112
|
+
* permission to the user for a piece of content.
|
|
113
|
+
*
|
|
114
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
115
|
+
* Permission to edit the content.
|
|
116
|
+
*
|
|
117
|
+
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
118
|
+
* @scopes-current write:confluence-content
|
|
119
|
+
* @scopes-beta write:content.restriction:confluence
|
|
120
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-put
|
|
121
|
+
*/
|
|
122
|
+
this.addUserToContentRestriction = ({ id, operationKey, key, username, accountId, }) => {
|
|
123
|
+
return this.getClientInstance()
|
|
124
|
+
.request({
|
|
125
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user",
|
|
126
|
+
method: "PUT",
|
|
127
|
+
pathParams: {
|
|
128
|
+
id,
|
|
129
|
+
operationKey,
|
|
130
|
+
},
|
|
131
|
+
query: {
|
|
132
|
+
key,
|
|
133
|
+
username,
|
|
134
|
+
accountId,
|
|
135
|
+
},
|
|
136
|
+
})
|
|
137
|
+
.then(commonHttpClient.discardResult);
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Removes all restrictions (read and update) on a piece of content.
|
|
141
|
+
*
|
|
142
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
143
|
+
* Permission to edit the content.
|
|
144
|
+
*
|
|
145
|
+
* @returns Returned if the restrictions are removed.
|
|
146
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
147
|
+
* @scopes-current write:confluence-content
|
|
148
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
149
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-delete
|
|
150
|
+
*/
|
|
151
|
+
this.deleteRestrictions = ({ id, expand, }) => {
|
|
152
|
+
return this.getClientInstance()
|
|
153
|
+
.request({
|
|
154
|
+
path: "/wiki/rest/api/content/{id}/restriction",
|
|
155
|
+
method: "DELETE",
|
|
156
|
+
pathParams: {
|
|
157
|
+
id,
|
|
158
|
+
},
|
|
159
|
+
query: {
|
|
160
|
+
expand,
|
|
161
|
+
},
|
|
162
|
+
})
|
|
163
|
+
.then(this.getClientInstance().responseHandler({
|
|
164
|
+
200: {
|
|
165
|
+
"application/json": "json",
|
|
166
|
+
},
|
|
167
|
+
}))
|
|
168
|
+
.then(commonHttpClient.castResponse())
|
|
169
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentRestrictionsService.deleteRestrictions.response"))
|
|
170
|
+
.then(commonHttpClient.getBody);
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Deprecated, use [Get content restriction status for group via
|
|
174
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get).
|
|
175
|
+
* Returns whether the specified content restriction applies to a group.
|
|
176
|
+
* For example, if a page with `id=123` has a `read` restriction for the `admins`
|
|
177
|
+
* group,
|
|
178
|
+
* the following request will return `true`:
|
|
179
|
+
*
|
|
180
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/group/admins`
|
|
181
|
+
*
|
|
182
|
+
* Note that a response of `true` does not guarantee that the group can view the
|
|
183
|
+
* page, as it does not account for
|
|
184
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
185
|
+
* more
|
|
186
|
+
* information, see [Confluence
|
|
187
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
188
|
+
*
|
|
189
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
190
|
+
* Permission to view the content.
|
|
191
|
+
*
|
|
192
|
+
* @deprecated
|
|
193
|
+
* @path {GET}
|
|
194
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
195
|
+
* @scopes-current read:confluence-content.all
|
|
196
|
+
* @scopes-beta read:content.restriction:confluence
|
|
197
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-get
|
|
198
|
+
*/
|
|
199
|
+
this.getContentRestrictionStatusForGroup = ({ id, operationKey, groupName, }) => {
|
|
200
|
+
return this.getClientInstance()
|
|
201
|
+
.request({
|
|
202
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}",
|
|
203
|
+
method: "GET",
|
|
204
|
+
pathParams: {
|
|
205
|
+
id,
|
|
206
|
+
operationKey,
|
|
207
|
+
groupName,
|
|
208
|
+
},
|
|
209
|
+
})
|
|
210
|
+
.then(commonHttpClient.discardResult);
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Returns whether the specified content restriction applies to a user.
|
|
214
|
+
* For example, if a page with `id=123` has a `read` restriction for a user with
|
|
215
|
+
* an account ID of
|
|
216
|
+
* `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will
|
|
217
|
+
* return `true`:
|
|
218
|
+
*
|
|
219
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`
|
|
220
|
+
*
|
|
221
|
+
* Note that a response of `true` does not guarantee that the user can view the
|
|
222
|
+
* page, as it does not account for
|
|
223
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
224
|
+
* more
|
|
225
|
+
* information, see [Confluence
|
|
226
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
227
|
+
*
|
|
228
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
229
|
+
* Permission to view the content.
|
|
230
|
+
*
|
|
231
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
232
|
+
* @scopes-current read:confluence-content.all
|
|
233
|
+
* @scopes-beta read:content.restriction:confluence
|
|
234
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-get
|
|
235
|
+
*/
|
|
236
|
+
this.getContentRestrictionStatusForUser = ({ id, operationKey, key, username, accountId, }) => {
|
|
237
|
+
return this.getClientInstance()
|
|
238
|
+
.request({
|
|
239
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user",
|
|
240
|
+
method: "GET",
|
|
241
|
+
pathParams: {
|
|
242
|
+
id,
|
|
243
|
+
operationKey,
|
|
244
|
+
},
|
|
245
|
+
query: {
|
|
246
|
+
key,
|
|
247
|
+
username,
|
|
248
|
+
accountId,
|
|
249
|
+
},
|
|
250
|
+
})
|
|
251
|
+
.then(commonHttpClient.discardResult);
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Returns whether the specified content restriction applies to a group.
|
|
255
|
+
* For example, if a page with `id=123` has a `read` restriction for the `123456`
|
|
256
|
+
* group id,
|
|
257
|
+
* the following request will return `true`:
|
|
258
|
+
*
|
|
259
|
+
* `/wiki/rest/api/content/123/restriction/byOperation/read/byGroupId/123456`
|
|
260
|
+
*
|
|
261
|
+
* Note that a response of `true` does not guarantee that the group can view the
|
|
262
|
+
* page, as it does not account for
|
|
263
|
+
* account-inherited restrictions, space permissions, or even product access. For
|
|
264
|
+
* more
|
|
265
|
+
* information, see [Confluence
|
|
266
|
+
* permissions](https://confluence.atlassian.com/x/_AozKw).
|
|
267
|
+
*
|
|
268
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
269
|
+
* Permission to view the content.
|
|
270
|
+
*
|
|
271
|
+
* @path {GET}
|
|
272
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
273
|
+
* @scopes-current read:confluence-content.all
|
|
274
|
+
* @scopes-beta read:content.restriction:confluence
|
|
275
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get
|
|
276
|
+
*/
|
|
277
|
+
this.getIndividualGroupRestrictionStatusByGroupId = ({ id, operationKey, groupId, }) => {
|
|
278
|
+
return this.getClientInstance()
|
|
279
|
+
.request({
|
|
280
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}",
|
|
281
|
+
method: "GET",
|
|
282
|
+
pathParams: {
|
|
283
|
+
id,
|
|
284
|
+
operationKey,
|
|
285
|
+
groupId,
|
|
286
|
+
},
|
|
287
|
+
})
|
|
288
|
+
.then(commonHttpClient.discardResult);
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Returns the restrictions on a piece of content.
|
|
292
|
+
*
|
|
293
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
294
|
+
* Permission to view the content.
|
|
295
|
+
*
|
|
296
|
+
* @returns Returned if the requested restrictions are returned.
|
|
297
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
298
|
+
* @scopes-current read:confluence-content.all
|
|
299
|
+
* @scopes-beta read:content-details:confluence
|
|
300
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-get
|
|
301
|
+
*/
|
|
302
|
+
this.getRestrictions = ({ id, expand, start, limit, }) => {
|
|
303
|
+
return this.getClientInstance()
|
|
304
|
+
.request({
|
|
305
|
+
path: "/wiki/rest/api/content/{id}/restriction",
|
|
306
|
+
method: "GET",
|
|
307
|
+
pathParams: {
|
|
308
|
+
id,
|
|
309
|
+
},
|
|
310
|
+
query: {
|
|
311
|
+
expand,
|
|
312
|
+
start,
|
|
313
|
+
limit,
|
|
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("ContentRestrictionsService.getRestrictions.response"))
|
|
323
|
+
.then(commonHttpClient.getBody);
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Returns restrictions on a piece of content by operation. This method is
|
|
327
|
+
* similar to [Get restrictions](#api-content-id-restriction-get) except that
|
|
328
|
+
* the operations are properties of the return object, rather than items in
|
|
329
|
+
* a results array.
|
|
330
|
+
*
|
|
331
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
332
|
+
* Permission to view the content.
|
|
333
|
+
*
|
|
334
|
+
* @returns Returned if the requested restrictions are returned.
|
|
335
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
336
|
+
* @scopes-current read:confluence-content.all
|
|
337
|
+
* @scopes-beta read:content-details:confluence
|
|
338
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-get
|
|
339
|
+
*/
|
|
340
|
+
this.getRestrictionsByOperation = ({ id, expand, }) => {
|
|
341
|
+
return this.getClientInstance()
|
|
342
|
+
.request({
|
|
343
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation",
|
|
344
|
+
method: "GET",
|
|
345
|
+
pathParams: {
|
|
346
|
+
id,
|
|
347
|
+
},
|
|
348
|
+
query: {
|
|
349
|
+
expand,
|
|
350
|
+
},
|
|
351
|
+
})
|
|
352
|
+
.then(this.getClientInstance().responseHandler({
|
|
353
|
+
200: {
|
|
354
|
+
"application/json": "json",
|
|
355
|
+
},
|
|
356
|
+
}))
|
|
357
|
+
.then(commonHttpClient.castResponse())
|
|
358
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentRestrictionsService.getRestrictionsByOperation.response"))
|
|
359
|
+
.then(commonHttpClient.getBody);
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Returns the restictions on a piece of content for a given operation (read
|
|
363
|
+
* or update).
|
|
364
|
+
*
|
|
365
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
366
|
+
* Permission to view the content.
|
|
367
|
+
*
|
|
368
|
+
* @returns Returned if the requested restrictions are returned.
|
|
369
|
+
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
370
|
+
* @scopes-current read:confluence-content.all
|
|
371
|
+
* @scopes-beta read:content-details:confluence
|
|
372
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-get
|
|
373
|
+
*/
|
|
374
|
+
this.getRestrictionsForOperation = ({ id, operationKey, expand, start, limit, }) => {
|
|
375
|
+
return this.getClientInstance()
|
|
376
|
+
.request({
|
|
377
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}",
|
|
378
|
+
method: "GET",
|
|
379
|
+
pathParams: {
|
|
380
|
+
id,
|
|
381
|
+
operationKey,
|
|
382
|
+
},
|
|
383
|
+
query: {
|
|
384
|
+
expand,
|
|
385
|
+
start,
|
|
386
|
+
limit,
|
|
387
|
+
},
|
|
388
|
+
})
|
|
389
|
+
.then(this.getClientInstance().responseHandler({
|
|
390
|
+
200: {
|
|
391
|
+
"application/json": "json",
|
|
392
|
+
},
|
|
393
|
+
}))
|
|
394
|
+
.then(commonHttpClient.castResponse())
|
|
395
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentRestrictionsService.getRestrictionsForOperation.response"))
|
|
396
|
+
.then(commonHttpClient.getBody);
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
400
|
+
* permission for the group for a piece of content.
|
|
401
|
+
*
|
|
402
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
403
|
+
* Permission to edit the content.
|
|
404
|
+
*
|
|
405
|
+
* @path {DELETE}
|
|
406
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
407
|
+
* @scopes-current write:confluence-content
|
|
408
|
+
* @scopes-beta write:content.restriction:confluence
|
|
409
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-delete
|
|
410
|
+
*/
|
|
411
|
+
this.removeGroupFromContentRestriction = ({ id, operationKey, groupId, }) => {
|
|
412
|
+
return this.getClientInstance()
|
|
413
|
+
.request({
|
|
414
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}",
|
|
415
|
+
method: "DELETE",
|
|
416
|
+
pathParams: {
|
|
417
|
+
id,
|
|
418
|
+
operationKey,
|
|
419
|
+
groupId,
|
|
420
|
+
},
|
|
421
|
+
})
|
|
422
|
+
.then(commonHttpClient.discardResult);
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* Deprecated, use [Remove group from content restriction by
|
|
426
|
+
* groupId](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete).
|
|
427
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
428
|
+
* permission for the group for a piece of content.
|
|
429
|
+
*
|
|
430
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
431
|
+
* Permission to edit the content.
|
|
432
|
+
*
|
|
433
|
+
* @deprecated
|
|
434
|
+
* @path {DELETE}
|
|
435
|
+
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
436
|
+
* @scopes-current write:confluence-content
|
|
437
|
+
* @scopes-beta write:content.restriction:confluence
|
|
438
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-delete
|
|
439
|
+
*/
|
|
440
|
+
this.removeGroupFromContentRestrictionById = ({ id, operationKey, groupName, }) => {
|
|
441
|
+
return this.getClientInstance()
|
|
442
|
+
.request({
|
|
443
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}",
|
|
444
|
+
method: "DELETE",
|
|
445
|
+
pathParams: {
|
|
446
|
+
id,
|
|
447
|
+
operationKey,
|
|
448
|
+
groupName,
|
|
449
|
+
},
|
|
450
|
+
})
|
|
451
|
+
.then(commonHttpClient.discardResult);
|
|
452
|
+
};
|
|
453
|
+
/**
|
|
454
|
+
* Removes a group from a content restriction. That is, remove read or update
|
|
455
|
+
* permission for the group for a piece of content.
|
|
456
|
+
*
|
|
457
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
458
|
+
* Permission to edit the content.
|
|
459
|
+
*
|
|
460
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
461
|
+
* @scopes-current write:confluence-content
|
|
462
|
+
* @scopes-beta write:content.restriction:confluence
|
|
463
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete
|
|
464
|
+
*/
|
|
465
|
+
this.removeUserFromContentRestriction = ({ id, operationKey, key, username, accountId, }) => {
|
|
466
|
+
return this.getClientInstance()
|
|
467
|
+
.request({
|
|
468
|
+
path: "/wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user",
|
|
469
|
+
method: "DELETE",
|
|
470
|
+
pathParams: {
|
|
471
|
+
id,
|
|
472
|
+
operationKey,
|
|
473
|
+
},
|
|
474
|
+
query: {
|
|
475
|
+
key,
|
|
476
|
+
username,
|
|
477
|
+
accountId,
|
|
478
|
+
},
|
|
479
|
+
})
|
|
480
|
+
.then(commonHttpClient.discardResult);
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Updates restrictions for a piece of content. This removes the existing
|
|
484
|
+
* restrictions and replaces them with the restrictions in the request.
|
|
485
|
+
*
|
|
486
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
487
|
+
* Permission to edit the content.
|
|
488
|
+
*
|
|
489
|
+
* @returns Returned if the requested restrictions are updated.
|
|
490
|
+
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
491
|
+
* @scopes-current write:confluence-content
|
|
492
|
+
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
493
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-put
|
|
494
|
+
*/
|
|
495
|
+
this.updateRestrictions = ({ id, expand, contentRestrictionAddOrUpdateArray, }) => {
|
|
496
|
+
return this.getClientInstance()
|
|
497
|
+
.request({
|
|
498
|
+
path: "/wiki/rest/api/content/{id}/restriction",
|
|
499
|
+
method: "PUT",
|
|
500
|
+
pathParams: {
|
|
501
|
+
id,
|
|
502
|
+
},
|
|
503
|
+
query: {
|
|
504
|
+
expand,
|
|
505
|
+
},
|
|
506
|
+
headers: {
|
|
507
|
+
"Content-Type": "application/json",
|
|
508
|
+
},
|
|
509
|
+
body: contentRestrictionAddOrUpdateArray,
|
|
510
|
+
})
|
|
511
|
+
.then(this.getClientInstance().responseHandler({
|
|
512
|
+
200: {
|
|
513
|
+
"application/json": "json",
|
|
514
|
+
},
|
|
515
|
+
}))
|
|
516
|
+
.then(commonHttpClient.castResponse())
|
|
517
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentRestrictionsService.updateRestrictions.response"))
|
|
518
|
+
.then(commonHttpClient.getBody);
|
|
519
|
+
};
|
|
517
520
|
}
|
|
518
521
|
static initialize() {
|
|
519
522
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentRestrictionsService.getRestrictions.response", zod_1.z
|