@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.
Files changed (183) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +60 -1
  3. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
  4. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
  5. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  6. package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/v1/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  10. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  11. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  12. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  13. package/lib/openapi/v1/services/AuditService.js +205 -202
  14. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  15. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  16. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  17. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  18. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  19. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  20. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  21. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  22. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  23. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  24. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  25. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  26. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  27. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  28. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  29. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  30. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  31. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  32. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  33. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  34. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  35. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  36. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  37. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  38. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  39. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  40. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  41. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  42. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  43. package/lib/openapi/v1/services/ContentService.js +475 -472
  44. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  45. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  46. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  47. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  48. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  49. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  50. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  51. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  52. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  53. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  54. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  55. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  56. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  57. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  58. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  59. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  60. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  61. package/lib/openapi/v1/services/GroupService.js +445 -442
  62. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  63. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  64. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  65. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  66. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  67. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  68. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  69. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  70. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  71. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  72. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  73. package/lib/openapi/v1/services/RelationService.js +231 -228
  74. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  75. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  76. package/lib/openapi/v1/services/SearchService.js +136 -133
  77. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  78. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  79. package/lib/openapi/v1/services/SettingsService.js +204 -201
  80. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  81. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  82. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  83. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  84. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  85. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  86. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  87. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  88. package/lib/openapi/v1/services/SpaceService.js +320 -317
  89. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  90. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  91. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  92. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  93. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  94. package/lib/openapi/v1/services/TemplateService.js +214 -211
  95. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  96. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  97. package/lib/openapi/v1/services/ThemesService.js +179 -176
  98. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  99. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  100. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  101. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  102. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  103. package/lib/openapi/v1/services/UsersService.js +229 -226
  104. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  105. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
  106. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
  107. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  108. package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
  109. package/lib/openapi/v2/core/CommonHttpService.js +9 -0
  110. package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
  111. package/lib/openapi/v2/models/user.d.ts +0 -2
  112. package/lib/openapi/v2/models/user.js +0 -2
  113. package/lib/openapi/v2/models/user.js.map +1 -1
  114. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  115. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  116. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  117. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  118. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  119. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  120. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  121. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  122. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  123. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  124. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  125. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  126. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  127. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  128. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  129. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  130. package/lib/openapi/v2/services/CommentService.js +635 -632
  131. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  132. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  133. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  134. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  135. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  136. package/lib/openapi/v2/services/ContentService.js +40 -37
  137. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  138. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  139. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  140. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  141. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  142. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  143. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  144. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  145. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  146. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  147. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  148. package/lib/openapi/v2/services/LabelService.js +263 -260
  149. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  150. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  151. package/lib/openapi/v2/services/LikeService.js +250 -247
  152. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  153. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  154. package/lib/openapi/v2/services/OperationService.js +298 -295
  155. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  156. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  157. package/lib/openapi/v2/services/PageService.js +272 -269
  158. package/lib/openapi/v2/services/PageService.js.map +1 -1
  159. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  160. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  161. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  162. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  163. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  164. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  165. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  166. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  167. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  168. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  169. package/lib/openapi/v2/services/SpaceService.js +83 -80
  170. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  171. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  172. package/lib/openapi/v2/services/TaskService.js +120 -117
  173. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  174. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  175. package/lib/openapi/v2/services/UserService.js +91 -88
  176. package/lib/openapi/v2/services/UserService.js.map +1 -1
  177. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  178. package/lib/openapi/v2/services/VersionService.js +395 -392
  179. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  180. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  181. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  182. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  183. 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
- * Returns the [default classification
16
- * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
17
- * for a specific space.
18
- *
19
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
20
- * 'Permission to access the Confluence site ('Can use' global permission) and
21
- * 'Admin' permission for the space.
22
- *
23
- * @path {DELETE} /spaces/{id}/classification-level/default
24
- * @scopes-current read:space:confluence, write:space:confluence
25
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
26
- */
27
- deleteSpaceDefaultClassificationLevel({ id, }) {
28
- return this.getClientInstance()
29
- .request({
30
- path: "/spaces/{id}/classification-level/default",
31
- method: "DELETE",
32
- pathParams: {
33
- id,
34
- },
35
- })
36
- .then(commonHttpClient.discardResult);
37
- }
38
- /**
39
- * Returns the [classification
40
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
41
- * for a specific blog post.
42
- *
43
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
44
- * 'Permission to access the Confluence site ('Can use' global permission) and
45
- * permission to view the blog post.
46
- * 'Permission to edit the blog post is required if trying to view classification
47
- * level for a draft.
48
- *
49
- * @returns Returned if the requested classification level for a blog post is returned.
50
- * @path {GET} /blogposts/{id}/classification-level
51
- * @scopes-current read:page:confluence, write:page:confluence
52
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
53
- */
54
- getBlogPostClassificationLevel({ id, status, }) {
55
- return this.getClientInstance()
56
- .request({
57
- path: "/blogposts/{id}/classification-level",
58
- method: "GET",
59
- pathParams: {
60
- id,
61
- },
62
- query: {
63
- status,
64
- },
65
- })
66
- .then(this.getClientInstance().responseHandler({
67
- 200: {
68
- "application/json": "json",
69
- },
70
- }))
71
- .then(commonHttpClient.castResponse())
72
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getBlogPostClassificationLevel.response"))
73
- .then(commonHttpClient.getBody);
74
- }
75
- /**
76
- * Returns a list of [classification
77
- * levels](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
78
- * available.
79
- *
80
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
81
- * 'Permission to access the Confluence site ('Can use' global permission).
82
- *
83
- * @returns Returned if classifications levels are returned.
84
- * @path {GET} /classification-levels
85
- * @scopes-current read:configuration:confluence
86
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
87
- */
88
- getClassificationLevels() {
89
- return this.getClientInstance()
90
- .request({
91
- path: "/classification-levels",
92
- method: "GET",
93
- })
94
- .then(this.getClientInstance().responseHandler({
95
- 200: {
96
- "application/json": "json",
97
- },
98
- }))
99
- .then(commonHttpClient.castResponse())
100
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getClassificationLevels.response"))
101
- .then(commonHttpClient.getBody);
102
- }
103
- /**
104
- * Returns the [classification
105
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
106
- * for a specific page.
107
- *
108
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
109
- * 'Permission to access the Confluence site ('Can use' global permission) and
110
- * permission to view the page.
111
- * 'Permission to edit the page is required if trying to view classification level
112
- * for a draft.
113
- *
114
- * @returns Returned if the requested classification level for a page is returned.
115
- * @path {GET} /pages/{id}/classification-level
116
- * @scopes-current read:page:confluence, write:page:confluence
117
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
118
- */
119
- getPageClassificationLevel({ id, status, }) {
120
- return this.getClientInstance()
121
- .request({
122
- path: "/pages/{id}/classification-level",
123
- method: "GET",
124
- pathParams: {
125
- id,
126
- },
127
- query: {
128
- status,
129
- },
130
- })
131
- .then(this.getClientInstance().responseHandler({
132
- 200: {
133
- "application/json": "json",
134
- },
135
- }))
136
- .then(commonHttpClient.castResponse())
137
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ClassificationLevelService.getPageClassificationLevel.response"))
138
- .then(commonHttpClient.getBody);
139
- }
140
- /**
141
- * Returns the [default classification
142
- * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
143
- * for a specific space.
144
- *
145
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
146
- * 'Permission to access the Confluence site ('Can use' global permission) and
147
- * permission to view the space.
148
- *
149
- * @returns Returned if the requested default classification level for a space is returned.
150
- * @path {GET} /spaces/{id}/classification-level/default
151
- * @scopes-current read:space:confluence
152
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
153
- */
154
- getSpaceDefaultClassificationLevel({ id, }) {
155
- return this.getClientInstance()
156
- .request({
157
- path: "/spaces/{id}/classification-level/default",
158
- method: "GET",
159
- pathParams: {
160
- id,
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("ClassificationLevelService.getSpaceDefaultClassificationLevel.response"))
170
- .then(commonHttpClient.getBody);
171
- }
172
- /**
173
- * Resets the [classification
174
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
175
- * for a specific blog post to the space
176
- * [default classification
177
- * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/).
178
- *
179
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
180
- * 'Permission to access the Confluence site ('Can use' global permission) and
181
- * permission to view the blog post.
182
- *
183
- * @path {POST} /blogposts/{id}/classification-level/reset
184
- * @scopes-current write:page:confluence
185
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
186
- */
187
- postBlogPostClassificationLevel({ id, requestBody, }) {
188
- return this.getClientInstance()
189
- .request({
190
- path: "/blogposts/{id}/classification-level/reset",
191
- method: "POST",
192
- pathParams: {
193
- id,
194
- },
195
- headers: {
196
- "Content-Type": "application/json",
197
- },
198
- body: requestBody,
199
- })
200
- .then(commonHttpClient.discardResult);
201
- }
202
- /**
203
- * Resets the [classification
204
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
205
- * for a specific page to the space
206
- * [default classification
207
- * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/).
208
- *
209
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
210
- * 'Permission to access the Confluence site ('Can use' global permission) and
211
- * permission to view the page.
212
- *
213
- * @path {POST} /pages/{id}/classification-level/reset
214
- * @scopes-current write:page:confluence
215
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
216
- */
217
- postPageClassificationLevel({ id, requestBody, }) {
218
- return this.getClientInstance()
219
- .request({
220
- path: "/pages/{id}/classification-level/reset",
221
- method: "POST",
222
- pathParams: {
223
- id,
224
- },
225
- headers: {
226
- "Content-Type": "application/json",
227
- },
228
- body: requestBody,
229
- })
230
- .then(commonHttpClient.discardResult);
231
- }
232
- /**
233
- * Updates the [classification
234
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
235
- * for a specific blog post.
236
- *
237
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
238
- * 'Permission to access the Confluence site ('Can use' global permission) and
239
- * permission to edit the blog post.
240
- *
241
- * @path {PUT} /blogposts/{id}/classification-level
242
- * @scopes-current write:page:confluence
243
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
244
- */
245
- putBlogPostClassificationLevel({ id, requestBody, }) {
246
- return this.getClientInstance()
247
- .request({
248
- path: "/blogposts/{id}/classification-level",
249
- method: "PUT",
250
- pathParams: {
251
- id,
252
- },
253
- headers: {
254
- "Content-Type": "application/json",
255
- },
256
- body: requestBody,
257
- })
258
- .then(commonHttpClient.discardResult);
259
- }
260
- /**
261
- * Updates the [classification
262
- * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
263
- * for a specific page.
264
- *
265
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
266
- * 'Permission to access the Confluence site ('Can use' global permission) and
267
- * permission to edit the page.
268
- *
269
- * @path {PUT} /pages/{id}/classification-level
270
- * @scopes-current write:page:confluence
271
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
272
- */
273
- putPageClassificationLevel({ id, requestBody, }) {
274
- return this.getClientInstance()
275
- .request({
276
- path: "/pages/{id}/classification-level",
277
- method: "PUT",
278
- pathParams: {
279
- id,
280
- },
281
- headers: {
282
- "Content-Type": "application/json",
283
- },
284
- body: requestBody,
285
- })
286
- .then(commonHttpClient.discardResult);
287
- }
288
- /**
289
- * Update the [default classification
290
- * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
291
- * for a specific space.
292
- *
293
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
294
- * 'Permission to access the Confluence site ('Can use' global permission) and
295
- * 'Admin' permission for the space.
296
- *
297
- * @path {PUT} /spaces/{id}/classification-level/default
298
- * @scopes-current read:space:confluence, write:space:confluence
299
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
300
- */
301
- putSpaceDefaultClassificationLevel({ id, requestBody, }) {
302
- return this.getClientInstance()
303
- .request({
304
- path: "/spaces/{id}/classification-level/default",
305
- method: "PUT",
306
- pathParams: {
307
- id,
308
- },
309
- headers: {
310
- "Content-Type": "application/json",
311
- },
312
- body: requestBody,
313
- })
314
- .then(commonHttpClient.discardResult);
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