@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
@@ -15,154 +15,157 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
15
15
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
16
16
  */
17
17
  class ExperimentalService extends CommonHttpService_1.CommonHttpService {
18
- /**
19
- * Adds labels to a piece of content. Does not modify the existing labels.
20
- *
21
- * Notes:
22
- *
23
- * - Labels can also be added when creating content ([Create
24
- * content](#api-content-post)).
25
- * - Labels can be updated when updating content ([Update
26
- * content](#api-content-id-put)).
27
- * This will delete the existing labels and replace them with the labels in
28
- * the request.
29
- *
30
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
31
- * Permission to update the content.
32
- *
33
- * @returns Returned if the labels are added to the content.
34
- * @path {POST} /wiki/rest/api/space/{spaceKey}/label
35
- * @scopes-current write:confluence-space
36
- * @scopes-beta read:label:confluence, write:label:confluence
37
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-post
38
- */
39
- addLabelsToSpace({ spaceKey, labelCreates, }) {
40
- return this.getClientInstance()
41
- .request({
42
- path: "/wiki/rest/api/space/{spaceKey}/label",
43
- method: "POST",
44
- pathParams: {
45
- spaceKey,
46
- },
47
- headers: {
48
- "Content-Type": "application/json",
49
- },
50
- body: labelCreates,
51
- })
52
- .then(this.getClientInstance().responseHandler({
53
- 200: {
54
- "application/json": "json",
55
- },
56
- }))
57
- .then(commonHttpClient.castResponse())
58
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.addLabelsToSpace.response"))
59
- .then(commonHttpClient.getBody);
60
- }
61
- /**
62
- * @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
63
- * @scopes-current write:confluence-space
64
- * @scopes-beta write:label:confluence
65
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-delete
66
- */
67
- deleteLabelFromSpace({ spaceKey, name, prefix, }) {
68
- return this.getClientInstance()
69
- .request({
70
- path: "/wiki/rest/api/space/{spaceKey}/label",
71
- method: "DELETE",
72
- pathParams: {
73
- spaceKey,
74
- },
75
- query: {
76
- name,
77
- prefix,
78
- },
79
- })
80
- .then(commonHttpClient.discardResult);
81
- }
82
- /**
83
- * Moves a pagetree rooted at a page to the space's trash:
84
- *
85
- * - If the content's type is `page` and its status is `current`, it will be
86
- * trashed including
87
- * all its descendants.
88
- * - For every other combination of content type and status, this API is not
89
- * supported.
90
- *
91
- * This API accepts the pageTree delete request and returns a task ID.
92
- * The delete process happens asynchronously.
93
- *
94
- * Response example:
95
- * <pre><code>
96
- * {
97
- * "id" : "1180606",
98
- * "links" : {
99
- * "status" : "/rest/api/longtask/1180606"
100
- * }
101
- * }
102
- * </code></pre>
103
- * Use the `/longtask/<taskId>` REST API to get the copy task status.
104
- *
105
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
106
- * 'Delete' permission for the space that the content is in.
107
- *
108
- * @returns Returned if the request to trash content and all its current page descendants,
109
- * is successfully accepted.
110
- * @path {DELETE} /wiki/rest/api/content/{id}/pageTree
111
- * @scopes-current write:confluence-content
112
- * @scopes-beta delete:content:confluence
113
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-content-id-pagetree-delete
114
- */
115
- deletePageTree({ id, }) {
116
- return this.getClientInstance()
117
- .request({
118
- path: "/wiki/rest/api/content/{id}/pageTree",
119
- method: "DELETE",
120
- pathParams: {
121
- id,
122
- },
123
- })
124
- .then(this.getClientInstance().responseHandler({
125
- 202: {
126
- "application/json": "json",
127
- },
128
- }))
129
- .then(commonHttpClient.castResponse())
130
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.deletePageTree.response"))
131
- .then(commonHttpClient.getBody);
132
- }
133
- /**
134
- * Returns a list of labels associated with a space. Can provide a prefix as well
135
- * as other filters to
136
- * select different types of labels.
137
- *
138
- * @returns Returned if the list of labels is returned.
139
- * @path {GET} /wiki/rest/api/space/{spaceKey}/label
140
- * @scopes-current read:confluence-space.summary
141
- * @scopes-beta read:label:confluence
142
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-get
143
- */
144
- getLabelsForSpace({ spaceKey, prefix, start, limit, }) {
145
- return this.getClientInstance()
146
- .request({
147
- path: "/wiki/rest/api/space/{spaceKey}/label",
148
- method: "GET",
149
- pathParams: {
150
- spaceKey,
151
- },
152
- query: {
153
- prefix,
154
- start,
155
- limit,
156
- },
157
- })
158
- .then(this.getClientInstance().responseHandler({
159
- 200: {
160
- "application/json": "json",
161
- },
162
- }))
163
- .then(commonHttpClient.castResponse())
164
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.getLabelsForSpace.response"))
165
- .then(commonHttpClient.getBody);
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * Adds labels to a piece of content. Does not modify the existing labels.
22
+ *
23
+ * Notes:
24
+ *
25
+ * - Labels can also be added when creating content ([Create
26
+ * content](#api-content-post)).
27
+ * - Labels can be updated when updating content ([Update
28
+ * content](#api-content-id-put)).
29
+ * This will delete the existing labels and replace them with the labels in
30
+ * the request.
31
+ *
32
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
33
+ * Permission to update the content.
34
+ *
35
+ * @returns Returned if the labels are added to the content.
36
+ * @path {POST} /wiki/rest/api/space/{spaceKey}/label
37
+ * @scopes-current write:confluence-space
38
+ * @scopes-beta read:label:confluence, write:label:confluence
39
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-post
40
+ */
41
+ this.addLabelsToSpace = ({ spaceKey, labelCreates, }) => {
42
+ return this.getClientInstance()
43
+ .request({
44
+ path: "/wiki/rest/api/space/{spaceKey}/label",
45
+ method: "POST",
46
+ pathParams: {
47
+ spaceKey,
48
+ },
49
+ headers: {
50
+ "Content-Type": "application/json",
51
+ },
52
+ body: labelCreates,
53
+ })
54
+ .then(this.getClientInstance().responseHandler({
55
+ 200: {
56
+ "application/json": "json",
57
+ },
58
+ }))
59
+ .then(commonHttpClient.castResponse())
60
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.addLabelsToSpace.response"))
61
+ .then(commonHttpClient.getBody);
62
+ };
63
+ /**
64
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
65
+ * @scopes-current write:confluence-space
66
+ * @scopes-beta write:label:confluence
67
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-delete
68
+ */
69
+ this.deleteLabelFromSpace = ({ spaceKey, name, prefix, }) => {
70
+ return this.getClientInstance()
71
+ .request({
72
+ path: "/wiki/rest/api/space/{spaceKey}/label",
73
+ method: "DELETE",
74
+ pathParams: {
75
+ spaceKey,
76
+ },
77
+ query: {
78
+ name,
79
+ prefix,
80
+ },
81
+ })
82
+ .then(commonHttpClient.discardResult);
83
+ };
84
+ /**
85
+ * Moves a pagetree rooted at a page to the space's trash:
86
+ *
87
+ * - If the content's type is `page` and its status is `current`, it will be
88
+ * trashed including
89
+ * all its descendants.
90
+ * - For every other combination of content type and status, this API is not
91
+ * supported.
92
+ *
93
+ * This API accepts the pageTree delete request and returns a task ID.
94
+ * The delete process happens asynchronously.
95
+ *
96
+ * Response example:
97
+ * <pre><code>
98
+ * {
99
+ * "id" : "1180606",
100
+ * "links" : {
101
+ * "status" : "/rest/api/longtask/1180606"
102
+ * }
103
+ * }
104
+ * </code></pre>
105
+ * Use the `/longtask/<taskId>` REST API to get the copy task status.
106
+ *
107
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
108
+ * 'Delete' permission for the space that the content is in.
109
+ *
110
+ * @returns Returned if the request to trash content and all its current page descendants,
111
+ * is successfully accepted.
112
+ * @path {DELETE} /wiki/rest/api/content/{id}/pageTree
113
+ * @scopes-current write:confluence-content
114
+ * @scopes-beta delete:content:confluence
115
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-content-id-pagetree-delete
116
+ */
117
+ this.deletePageTree = ({ id, }) => {
118
+ return this.getClientInstance()
119
+ .request({
120
+ path: "/wiki/rest/api/content/{id}/pageTree",
121
+ method: "DELETE",
122
+ pathParams: {
123
+ id,
124
+ },
125
+ })
126
+ .then(this.getClientInstance().responseHandler({
127
+ 202: {
128
+ "application/json": "json",
129
+ },
130
+ }))
131
+ .then(commonHttpClient.castResponse())
132
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.deletePageTree.response"))
133
+ .then(commonHttpClient.getBody);
134
+ };
135
+ /**
136
+ * Returns a list of labels associated with a space. Can provide a prefix as well
137
+ * as other filters to
138
+ * select different types of labels.
139
+ *
140
+ * @returns Returned if the list of labels is returned.
141
+ * @path {GET} /wiki/rest/api/space/{spaceKey}/label
142
+ * @scopes-current read:confluence-space.summary
143
+ * @scopes-beta read:label:confluence
144
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-get
145
+ */
146
+ this.getLabelsForSpace = ({ spaceKey, prefix, start, limit, }) => {
147
+ return this.getClientInstance()
148
+ .request({
149
+ path: "/wiki/rest/api/space/{spaceKey}/label",
150
+ method: "GET",
151
+ pathParams: {
152
+ spaceKey,
153
+ },
154
+ query: {
155
+ prefix,
156
+ start,
157
+ limit,
158
+ },
159
+ })
160
+ .then(this.getClientInstance().responseHandler({
161
+ 200: {
162
+ "application/json": "json",
163
+ },
164
+ }))
165
+ .then(commonHttpClient.castResponse())
166
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.getLabelsForSpace.response"))
167
+ .then(commonHttpClient.getBody);
168
+ };
166
169
  }
167
170
  static initialize() {
168
171
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ExperimentalService.deletePageTree.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"ExperimentalService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ExperimentalService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,wEAAqE;AACrE;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,qCAAiB;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gBAAgB,CAAC,EACf,QAAQ,EACR,YAAY,GAMb;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,uCAAuC;YAC7C,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,YAAY;SACnB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,+CAA+C,CAChD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;OAKG;IACH,oBAAoB,CAAC,EACnB,QAAQ,EACR,IAAI,EACJ,MAAM,GAQP;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,uCAAuC;YAC7C,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,KAAK,EAAE;gBACL,IAAI;gBACJ,MAAM;aACP;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,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AC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAC;aACD,QAAQ,CAAC,6CAA6C,CAAC,CAC3D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,YAAY,CAAC;SACjD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,+CAA+C,EAC/C,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,YAAY,CAAC;SACjD,CAAC;aACD,QAAQ,CAAC,+CAA+C,CAAC,CAC7D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA7QD,kDA6QC"}
1
+ {"version":3,"file":"ExperimentalService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ExperimentalService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,wEAAqE;AACrE;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,qCAAiB;IAA1D;;QACE;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,qBAAgB,GAAG,CAAC,EAClB,QAAQ,EACR,YAAY,GAMb,EAAuB,E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