@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,307 +11,310 @@ const classificationLevel_1 = require("../models/classificationLevel");
|
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
|
|
13
13
|
class ClassificationLevelService 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
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* Returns the [default classification
|
|
18
|
+
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
|
|
19
|
+
* for a specific space.
|
|
20
|
+
*
|
|
21
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
22
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
23
|
+
* 'Admin' permission for the space.
|
|
24
|
+
*
|
|
25
|
+
* @path {DELETE} /spaces/{id}/classification-level/default
|
|
26
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
27
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
|
|
28
|
+
*/
|
|
29
|
+
this.deleteSpaceDefaultClassificationLevel = ({ id, }) => {
|
|
30
|
+
return this.getClientInstance()
|
|
31
|
+
.request({
|
|
32
|
+
path: "/spaces/{id}/classification-level/default",
|
|
33
|
+
method: "DELETE",
|
|
34
|
+
pathParams: {
|
|
35
|
+
id,
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
.then(commonHttpClient.discardResult);
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Returns the [classification
|
|
42
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
43
|
+
* for a specific blog post.
|
|
44
|
+
*
|
|
45
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
46
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
47
|
+
* permission to view the blog post.
|
|
48
|
+
* 'Permission to edit the blog post is required if trying to view classification
|
|
49
|
+
* level for a draft.
|
|
50
|
+
*
|
|
51
|
+
* @returns Returned if the requested classification level for a blog post is returned.
|
|
52
|
+
* @path {GET} /blogposts/{id}/classification-level
|
|
53
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
54
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
|
|
55
|
+
*/
|
|
56
|
+
this.getBlogPostClassificationLevel = ({ id, status, }) => {
|
|
57
|
+
return this.getClientInstance()
|
|
58
|
+
.request({
|
|
59
|
+
path: "/blogposts/{id}/classification-level",
|
|
60
|
+
method: "GET",
|
|
61
|
+
pathParams: {
|
|
62
|
+
id,
|
|
63
|
+
},
|
|
64
|
+
query: {
|
|
65
|
+
status,
|
|
66
|
+
},
|
|
67
|
+
})
|
|
68
|
+
.then(this.getClientInstance().responseHandler({
|
|
69
|
+
200: {
|
|
70
|
+
"application/json": "json",
|
|
71
|
+
},
|
|
72
|
+
}))
|
|
73
|
+
.then(commonHttpClient.castResponse())
|
|
74
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getBlogPostClassificationLevel.response"))
|
|
75
|
+
.then(commonHttpClient.getBody);
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Returns a list of [classification
|
|
79
|
+
* levels](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
80
|
+
* available.
|
|
81
|
+
*
|
|
82
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
83
|
+
* 'Permission to access the Confluence site ('Can use' global permission).
|
|
84
|
+
*
|
|
85
|
+
* @returns Returned if classifications levels are returned.
|
|
86
|
+
* @path {GET} /classification-levels
|
|
87
|
+
* @scopes-current read:configuration:confluence
|
|
88
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
|
|
89
|
+
*/
|
|
90
|
+
this.getClassificationLevels = () => {
|
|
91
|
+
return this.getClientInstance()
|
|
92
|
+
.request({
|
|
93
|
+
path: "/classification-levels",
|
|
94
|
+
method: "GET",
|
|
95
|
+
})
|
|
96
|
+
.then(this.getClientInstance().responseHandler({
|
|
97
|
+
200: {
|
|
98
|
+
"application/json": "json",
|
|
99
|
+
},
|
|
100
|
+
}))
|
|
101
|
+
.then(commonHttpClient.castResponse())
|
|
102
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getClassificationLevels.response"))
|
|
103
|
+
.then(commonHttpClient.getBody);
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Returns the [classification
|
|
107
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
108
|
+
* for a specific page.
|
|
109
|
+
*
|
|
110
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
111
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
112
|
+
* permission to view the page.
|
|
113
|
+
* 'Permission to edit the page is required if trying to view classification level
|
|
114
|
+
* for a draft.
|
|
115
|
+
*
|
|
116
|
+
* @returns Returned if the requested classification level for a page is returned.
|
|
117
|
+
* @path {GET} /pages/{id}/classification-level
|
|
118
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
119
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
|
|
120
|
+
*/
|
|
121
|
+
this.getPageClassificationLevel = ({ id, status, }) => {
|
|
122
|
+
return this.getClientInstance()
|
|
123
|
+
.request({
|
|
124
|
+
path: "/pages/{id}/classification-level",
|
|
125
|
+
method: "GET",
|
|
126
|
+
pathParams: {
|
|
127
|
+
id,
|
|
128
|
+
},
|
|
129
|
+
query: {
|
|
130
|
+
status,
|
|
131
|
+
},
|
|
132
|
+
})
|
|
133
|
+
.then(this.getClientInstance().responseHandler({
|
|
134
|
+
200: {
|
|
135
|
+
"application/json": "json",
|
|
136
|
+
},
|
|
137
|
+
}))
|
|
138
|
+
.then(commonHttpClient.castResponse())
|
|
139
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getPageClassificationLevel.response"))
|
|
140
|
+
.then(commonHttpClient.getBody);
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Returns the [default classification
|
|
144
|
+
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
|
|
145
|
+
* for a specific space.
|
|
146
|
+
*
|
|
147
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
148
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
149
|
+
* permission to view the space.
|
|
150
|
+
*
|
|
151
|
+
* @returns Returned if the requested default classification level for a space is returned.
|
|
152
|
+
* @path {GET} /spaces/{id}/classification-level/default
|
|
153
|
+
* @scopes-current read:space:confluence
|
|
154
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
|
|
155
|
+
*/
|
|
156
|
+
this.getSpaceDefaultClassificationLevel = ({ id, }) => {
|
|
157
|
+
return this.getClientInstance()
|
|
158
|
+
.request({
|
|
159
|
+
path: "/spaces/{id}/classification-level/default",
|
|
160
|
+
method: "GET",
|
|
161
|
+
pathParams: {
|
|
162
|
+
id,
|
|
163
|
+
},
|
|
164
|
+
})
|
|
165
|
+
.then(this.getClientInstance().responseHandler({
|
|
166
|
+
200: {
|
|
167
|
+
"application/json": "json",
|
|
168
|
+
},
|
|
169
|
+
}))
|
|
170
|
+
.then(commonHttpClient.castResponse())
|
|
171
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getSpaceDefaultClassificationLevel.response"))
|
|
172
|
+
.then(commonHttpClient.getBody);
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Resets the [classification
|
|
176
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
177
|
+
* for a specific blog post to the space
|
|
178
|
+
* [default classification
|
|
179
|
+
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/).
|
|
180
|
+
*
|
|
181
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
182
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
183
|
+
* permission to view the blog post.
|
|
184
|
+
*
|
|
185
|
+
* @path {POST} /blogposts/{id}/classification-level/reset
|
|
186
|
+
* @scopes-current write:page:confluence
|
|
187
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
|
|
188
|
+
*/
|
|
189
|
+
this.postBlogPostClassificationLevel = ({ id, requestBody, }) => {
|
|
190
|
+
return this.getClientInstance()
|
|
191
|
+
.request({
|
|
192
|
+
path: "/blogposts/{id}/classification-level/reset",
|
|
193
|
+
method: "POST",
|
|
194
|
+
pathParams: {
|
|
195
|
+
id,
|
|
196
|
+
},
|
|
197
|
+
headers: {
|
|
198
|
+
"Content-Type": "application/json",
|
|
199
|
+
},
|
|
200
|
+
body: requestBody,
|
|
201
|
+
})
|
|
202
|
+
.then(commonHttpClient.discardResult);
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Resets the [classification
|
|
206
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
207
|
+
* for a specific page to the space
|
|
208
|
+
* [default classification
|
|
209
|
+
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/).
|
|
210
|
+
*
|
|
211
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
212
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
213
|
+
* permission to view the page.
|
|
214
|
+
*
|
|
215
|
+
* @path {POST} /pages/{id}/classification-level/reset
|
|
216
|
+
* @scopes-current write:page:confluence
|
|
217
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
|
|
218
|
+
*/
|
|
219
|
+
this.postPageClassificationLevel = ({ id, requestBody, }) => {
|
|
220
|
+
return this.getClientInstance()
|
|
221
|
+
.request({
|
|
222
|
+
path: "/pages/{id}/classification-level/reset",
|
|
223
|
+
method: "POST",
|
|
224
|
+
pathParams: {
|
|
225
|
+
id,
|
|
226
|
+
},
|
|
227
|
+
headers: {
|
|
228
|
+
"Content-Type": "application/json",
|
|
229
|
+
},
|
|
230
|
+
body: requestBody,
|
|
231
|
+
})
|
|
232
|
+
.then(commonHttpClient.discardResult);
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Updates the [classification
|
|
236
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
237
|
+
* for a specific blog post.
|
|
238
|
+
*
|
|
239
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
240
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
241
|
+
* permission to edit the blog post.
|
|
242
|
+
*
|
|
243
|
+
* @path {PUT} /blogposts/{id}/classification-level
|
|
244
|
+
* @scopes-current write:page:confluence
|
|
245
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
|
|
246
|
+
*/
|
|
247
|
+
this.putBlogPostClassificationLevel = ({ id, requestBody, }) => {
|
|
248
|
+
return this.getClientInstance()
|
|
249
|
+
.request({
|
|
250
|
+
path: "/blogposts/{id}/classification-level",
|
|
251
|
+
method: "PUT",
|
|
252
|
+
pathParams: {
|
|
253
|
+
id,
|
|
254
|
+
},
|
|
255
|
+
headers: {
|
|
256
|
+
"Content-Type": "application/json",
|
|
257
|
+
},
|
|
258
|
+
body: requestBody,
|
|
259
|
+
})
|
|
260
|
+
.then(commonHttpClient.discardResult);
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Updates the [classification
|
|
264
|
+
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
265
|
+
* for a specific page.
|
|
266
|
+
*
|
|
267
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
268
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
269
|
+
* permission to edit the page.
|
|
270
|
+
*
|
|
271
|
+
* @path {PUT} /pages/{id}/classification-level
|
|
272
|
+
* @scopes-current write:page:confluence
|
|
273
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
|
|
274
|
+
*/
|
|
275
|
+
this.putPageClassificationLevel = ({ id, requestBody, }) => {
|
|
276
|
+
return this.getClientInstance()
|
|
277
|
+
.request({
|
|
278
|
+
path: "/pages/{id}/classification-level",
|
|
279
|
+
method: "PUT",
|
|
280
|
+
pathParams: {
|
|
281
|
+
id,
|
|
282
|
+
},
|
|
283
|
+
headers: {
|
|
284
|
+
"Content-Type": "application/json",
|
|
285
|
+
},
|
|
286
|
+
body: requestBody,
|
|
287
|
+
})
|
|
288
|
+
.then(commonHttpClient.discardResult);
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Update the [default classification
|
|
292
|
+
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
|
|
293
|
+
* for a specific space.
|
|
294
|
+
*
|
|
295
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
296
|
+
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
297
|
+
* 'Admin' permission for the space.
|
|
298
|
+
*
|
|
299
|
+
* @path {PUT} /spaces/{id}/classification-level/default
|
|
300
|
+
* @scopes-current read:space:confluence, write:space:confluence
|
|
301
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
|
|
302
|
+
*/
|
|
303
|
+
this.putSpaceDefaultClassificationLevel = ({ id, requestBody, }) => {
|
|
304
|
+
return this.getClientInstance()
|
|
305
|
+
.request({
|
|
306
|
+
path: "/spaces/{id}/classification-level/default",
|
|
307
|
+
method: "PUT",
|
|
308
|
+
pathParams: {
|
|
309
|
+
id,
|
|
310
|
+
},
|
|
311
|
+
headers: {
|
|
312
|
+
"Content-Type": "application/json",
|
|
313
|
+
},
|
|
314
|
+
body: requestBody,
|
|
315
|
+
})
|
|
316
|
+
.then(commonHttpClient.discardResult);
|
|
317
|
+
};
|
|
315
318
|
}
|
|
316
319
|
static initialize() {
|
|
317
320
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ClassificationLevelService.getBlogPostClassificationLevel.response", zod_1.z
|