@resolution/confluence-api-client 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  3. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  4. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  5. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  6. package/lib/openapi/v1/services/AuditService.js +205 -202
  7. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  8. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  9. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  11. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  12. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  13. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  14. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  17. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  18. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  19. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  20. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  21. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  22. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  23. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  24. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  26. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  27. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  28. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  29. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  30. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  31. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  32. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  33. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  35. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  36. package/lib/openapi/v1/services/ContentService.js +475 -472
  37. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  38. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  39. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  40. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  42. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  43. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  45. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  46. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  47. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  48. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  49. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  51. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  52. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  53. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  54. package/lib/openapi/v1/services/GroupService.js +445 -442
  55. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  56. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  57. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  58. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  59. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  60. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  61. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  62. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  63. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  64. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  65. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  66. package/lib/openapi/v1/services/RelationService.js +231 -228
  67. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  68. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  69. package/lib/openapi/v1/services/SearchService.js +136 -133
  70. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  71. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  72. package/lib/openapi/v1/services/SettingsService.js +204 -201
  73. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  74. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  75. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  76. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  78. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  79. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  80. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  81. package/lib/openapi/v1/services/SpaceService.js +320 -317
  82. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  83. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  84. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  85. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  86. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  87. package/lib/openapi/v1/services/TemplateService.js +214 -211
  88. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  89. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  90. package/lib/openapi/v1/services/ThemesService.js +179 -176
  91. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  92. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  93. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  94. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  95. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  96. package/lib/openapi/v1/services/UsersService.js +229 -226
  97. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  98. package/lib/openapi/v2/models/user.d.ts +0 -2
  99. package/lib/openapi/v2/models/user.js +0 -2
  100. package/lib/openapi/v2/models/user.js.map +1 -1
  101. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  102. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  103. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  104. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  105. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  106. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  107. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  108. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  109. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  110. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  111. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  112. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  113. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  114. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  115. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  116. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  117. package/lib/openapi/v2/services/CommentService.js +635 -632
  118. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  119. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  120. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  121. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  122. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  123. package/lib/openapi/v2/services/ContentService.js +40 -37
  124. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  125. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  126. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  127. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  128. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  129. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  130. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  131. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  132. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  133. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  134. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  135. package/lib/openapi/v2/services/LabelService.js +263 -260
  136. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  137. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  138. package/lib/openapi/v2/services/LikeService.js +250 -247
  139. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  140. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  141. package/lib/openapi/v2/services/OperationService.js +298 -295
  142. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  143. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  144. package/lib/openapi/v2/services/PageService.js +272 -269
  145. package/lib/openapi/v2/services/PageService.js.map +1 -1
  146. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  147. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  148. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  149. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  150. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  151. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  152. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  153. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  154. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  155. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  156. package/lib/openapi/v2/services/SpaceService.js +83 -80
  157. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  158. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  159. package/lib/openapi/v2/services/TaskService.js +120 -117
  160. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  161. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  162. package/lib/openapi/v2/services/UserService.js +91 -88
  163. package/lib/openapi/v2/services/UserService.js.map +1 -1
  164. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  165. package/lib/openapi/v2/services/VersionService.js +395 -392
  166. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  167. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  168. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  169. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  170. package/package.json +4 -3
@@ -12,182 +12,185 @@ const themes_1 = require("../models/themes");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes */
14
14
  class ThemesService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Returns the globally assigned theme.
17
- *
18
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
19
- *
20
- * @returns Returned if the global theme is returned.
21
- * @path {GET} /wiki/rest/api/settings/theme/selected
22
- * @scopes-current manage:confluence-configuration
23
- * @scopes-beta read:configuration:confluence
24
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
25
- */
26
- getGlobalTheme() {
27
- return this.getClientInstance()
28
- .request({
29
- path: "/wiki/rest/api/settings/theme/selected",
30
- method: "GET",
31
- })
32
- .then(this.getClientInstance().responseHandler({
33
- 200: {
34
- "application/json": "json",
35
- },
36
- }))
37
- .then(commonHttpClient.castResponse())
38
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getGlobalTheme.response"))
39
- .then(commonHttpClient.getBody);
40
- }
41
- /**
42
- * Returns the theme selected for a space, if one is set. If no space
43
- * theme is set, this means that the space is inheriting the global look
44
- * and feel settings.
45
- *
46
- * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’
47
- * permission for the space.
48
- *
49
- * @returns Returned if the requested theme is returned.
50
- * @path {GET} /wiki/rest/api/space/{spaceKey}/theme
51
- * @scopes-current read:confluence-space.summary
52
- * @scopes-beta read:space.setting:confluence
53
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
54
- */
55
- getSpaceTheme({ spaceKey, }) {
56
- return this.getClientInstance()
57
- .request({
58
- path: "/wiki/rest/api/space/{spaceKey}/theme",
59
- method: "GET",
60
- pathParams: {
61
- spaceKey,
62
- },
63
- })
64
- .then(this.getClientInstance().responseHandler({
65
- 200: {
66
- "application/json": "json",
67
- },
68
- }))
69
- .then(commonHttpClient.castResponse())
70
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getSpaceTheme.response"))
71
- .then(commonHttpClient.getBody);
72
- }
73
- /**
74
- * Returns a theme. This includes information about the theme name,
75
- * description, and icon.
76
- *
77
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
78
- *
79
- * @returns Returned if the requested theme is returned.
80
- * @path {GET} /wiki/rest/api/settings/theme/{themeKey}
81
- * @scopes-current manage:confluence-configuration
82
- * @scopes-beta read:configuration:confluence
83
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
84
- */
85
- getTheme({ themeKey, }) {
86
- return this.getClientInstance()
87
- .request({
88
- path: "/wiki/rest/api/settings/theme/{themeKey}",
89
- method: "GET",
90
- pathParams: {
91
- themeKey,
92
- },
93
- })
94
- .then(this.getClientInstance().responseHandler({
95
- 200: {
96
- "application/json": "json",
97
- },
98
- }))
99
- .then(commonHttpClient.castResponse())
100
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getTheme.response"))
101
- .then(commonHttpClient.getBody);
102
- }
103
- /**
104
- * Returns all themes, not including the default theme.
105
- *
106
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
107
- *
108
- * @returns Returned if the requested themes are returned.
109
- * @path {GET} /wiki/rest/api/settings/theme
110
- * @scopes-current manage:confluence-configuration
111
- * @scopes-beta read:configuration:confluence
112
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
113
- */
114
- getThemes({ start, limit, } = {}) {
115
- return this.getClientInstance()
116
- .request({
117
- path: "/wiki/rest/api/settings/theme",
118
- method: "GET",
119
- query: {
120
- start,
121
- limit,
122
- },
123
- })
124
- .then(this.getClientInstance().responseHandler({
125
- 200: {
126
- "application/json": "json",
127
- },
128
- }))
129
- .then(commonHttpClient.castResponse())
130
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getThemes.response"))
131
- .then(commonHttpClient.getBody);
132
- }
133
- /**
134
- * Resets the space theme. This means that the space will inherit the
135
- * global look and feel settings
136
- *
137
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
138
- * 'Admin' permission for the space.
139
- *
140
- * @path {DELETE} /wiki/rest/api/space/{spaceKey}/theme
141
- * @scopes-current write:confluence-space
142
- * @scopes-beta write:space.setting:confluence
143
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
144
- */
145
- resetSpaceTheme({ spaceKey, }) {
146
- return this.getClientInstance()
147
- .request({
148
- path: "/wiki/rest/api/space/{spaceKey}/theme",
149
- method: "DELETE",
150
- pathParams: {
151
- spaceKey,
152
- },
153
- })
154
- .then(commonHttpClient.discardResult);
155
- }
156
- /**
157
- * Sets the theme for a space. Note, if you want to reset the space theme to
158
- * the default Confluence theme, use the 'Reset space theme' method instead
159
- * of this method.
160
- *
161
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
162
- * 'Admin' permission for the space.
163
- *
164
- * @returns Returned if the theme was set for the space.
165
- * @path {PUT} /wiki/rest/api/space/{spaceKey}/theme
166
- * @scopes-current write:confluence-space
167
- * @scopes-beta read:space.setting:confluence, write:space.setting:confluence
168
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
169
- */
170
- setSpaceTheme({ spaceKey, themeUpdate, }) {
171
- return this.getClientInstance()
172
- .request({
173
- path: "/wiki/rest/api/space/{spaceKey}/theme",
174
- method: "PUT",
175
- pathParams: {
176
- spaceKey,
177
- },
178
- headers: {
179
- "Content-Type": "application/json",
180
- },
181
- body: themeUpdate,
182
- })
183
- .then(this.getClientInstance().responseHandler({
184
- 200: {
185
- "application/json": "json",
186
- },
187
- }))
188
- .then(commonHttpClient.castResponse())
189
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.setSpaceTheme.response"))
190
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Returns the globally assigned theme.
19
+ *
20
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
21
+ *
22
+ * @returns Returned if the global theme is returned.
23
+ * @path {GET} /wiki/rest/api/settings/theme/selected
24
+ * @scopes-current manage:confluence-configuration
25
+ * @scopes-beta read:configuration:confluence
26
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
27
+ */
28
+ this.getGlobalTheme = () => {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/wiki/rest/api/settings/theme/selected",
32
+ method: "GET",
33
+ })
34
+ .then(this.getClientInstance().responseHandler({
35
+ 200: {
36
+ "application/json": "json",
37
+ },
38
+ }))
39
+ .then(commonHttpClient.castResponse())
40
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getGlobalTheme.response"))
41
+ .then(commonHttpClient.getBody);
42
+ };
43
+ /**
44
+ * Returns the theme selected for a space, if one is set. If no space
45
+ * theme is set, this means that the space is inheriting the global look
46
+ * and feel settings.
47
+ *
48
+ * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’
49
+ * permission for the space.
50
+ *
51
+ * @returns Returned if the requested theme is returned.
52
+ * @path {GET} /wiki/rest/api/space/{spaceKey}/theme
53
+ * @scopes-current read:confluence-space.summary
54
+ * @scopes-beta read:space.setting:confluence
55
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
56
+ */
57
+ this.getSpaceTheme = ({ spaceKey, }) => {
58
+ return this.getClientInstance()
59
+ .request({
60
+ path: "/wiki/rest/api/space/{spaceKey}/theme",
61
+ method: "GET",
62
+ pathParams: {
63
+ spaceKey,
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("ThemesService.getSpaceTheme.response"))
73
+ .then(commonHttpClient.getBody);
74
+ };
75
+ /**
76
+ * Returns a theme. This includes information about the theme name,
77
+ * description, and icon.
78
+ *
79
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
80
+ *
81
+ * @returns Returned if the requested theme is returned.
82
+ * @path {GET} /wiki/rest/api/settings/theme/{themeKey}
83
+ * @scopes-current manage:confluence-configuration
84
+ * @scopes-beta read:configuration:confluence
85
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
86
+ */
87
+ this.getTheme = ({ themeKey, }) => {
88
+ return this.getClientInstance()
89
+ .request({
90
+ path: "/wiki/rest/api/settings/theme/{themeKey}",
91
+ method: "GET",
92
+ pathParams: {
93
+ themeKey,
94
+ },
95
+ })
96
+ .then(this.getClientInstance().responseHandler({
97
+ 200: {
98
+ "application/json": "json",
99
+ },
100
+ }))
101
+ .then(commonHttpClient.castResponse())
102
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getTheme.response"))
103
+ .then(commonHttpClient.getBody);
104
+ };
105
+ /**
106
+ * Returns all themes, not including the default theme.
107
+ *
108
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
109
+ *
110
+ * @returns Returned if the requested themes are returned.
111
+ * @path {GET} /wiki/rest/api/settings/theme
112
+ * @scopes-current manage:confluence-configuration
113
+ * @scopes-beta read:configuration:confluence
114
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
115
+ */
116
+ this.getThemes = ({ start, limit, } = {}) => {
117
+ return this.getClientInstance()
118
+ .request({
119
+ path: "/wiki/rest/api/settings/theme",
120
+ method: "GET",
121
+ query: {
122
+ start,
123
+ limit,
124
+ },
125
+ })
126
+ .then(this.getClientInstance().responseHandler({
127
+ 200: {
128
+ "application/json": "json",
129
+ },
130
+ }))
131
+ .then(commonHttpClient.castResponse())
132
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getThemes.response"))
133
+ .then(commonHttpClient.getBody);
134
+ };
135
+ /**
136
+ * Resets the space theme. This means that the space will inherit the
137
+ * global look and feel settings
138
+ *
139
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
140
+ * 'Admin' permission for the space.
141
+ *
142
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/theme
143
+ * @scopes-current write:confluence-space
144
+ * @scopes-beta write:space.setting:confluence
145
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
146
+ */
147
+ this.resetSpaceTheme = ({ spaceKey, }) => {
148
+ return this.getClientInstance()
149
+ .request({
150
+ path: "/wiki/rest/api/space/{spaceKey}/theme",
151
+ method: "DELETE",
152
+ pathParams: {
153
+ spaceKey,
154
+ },
155
+ })
156
+ .then(commonHttpClient.discardResult);
157
+ };
158
+ /**
159
+ * Sets the theme for a space. Note, if you want to reset the space theme to
160
+ * the default Confluence theme, use the 'Reset space theme' method instead
161
+ * of this method.
162
+ *
163
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
164
+ * 'Admin' permission for the space.
165
+ *
166
+ * @returns Returned if the theme was set for the space.
167
+ * @path {PUT} /wiki/rest/api/space/{spaceKey}/theme
168
+ * @scopes-current write:confluence-space
169
+ * @scopes-beta read:space.setting:confluence, write:space.setting:confluence
170
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
171
+ */
172
+ this.setSpaceTheme = ({ spaceKey, themeUpdate, }) => {
173
+ return this.getClientInstance()
174
+ .request({
175
+ path: "/wiki/rest/api/space/{spaceKey}/theme",
176
+ method: "PUT",
177
+ pathParams: {
178
+ spaceKey,
179
+ },
180
+ headers: {
181
+ "Content-Type": "application/json",
182
+ },
183
+ body: themeUpdate,
184
+ })
185
+ .then(this.getClientInstance().responseHandler({
186
+ 200: {
187
+ "application/json": "json",
188
+ },
189
+ }))
190
+ .then(commonHttpClient.castResponse())
191
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.setSpaceTheme.response"))
192
+ .then(commonHttpClient.getBody);
193
+ };
191
194
  }
192
195
  static initialize() {
193
196
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getThemes.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"ThemesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ThemesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAA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G,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,uCAAuC,CAAC,CACrD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAnUD,sCAmUC"}
1
+ {"version":3,"file":"ThemesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ThemesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAA+E;AAC/E,6CAI0B;AAC1B,wEAAqE;AACrE,qFAAqF;AACrF,MAAa,aAAc,SAAQ,qCAAiB;IAApD;;QACE;;;;;;;;;;WAUG;QACH,mBAAc,GAAG,GAAmB,EAAE;YACpC,OAAO,IAAI,CAAC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AkB,CACxC,uCAAuC,EACvC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,uCAAuC,CAAC,CACrD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAnUD,sCAmUC"}
@@ -19,7 +19,7 @@ export declare class UserPropertiesService extends CommonHttpService {
19
19
  * @scopes-current write:user.property:confluence
20
20
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-post
21
21
  */
22
- createUserProperty({ userId, key, userPropertyCreate, }: {
22
+ createUserProperty: ({ userId, key, userPropertyCreate, }: {
23
23
  /**
24
24
  * The account ID of the user. The accountId uniquely identifies the user across
25
25
  * all Atlassian
@@ -30,7 +30,7 @@ export declare class UserPropertiesService extends CommonHttpService {
30
30
  key: string;
31
31
  /** The user property to be created. */
32
32
  userPropertyCreate: UserPropertyCreate;
33
- }): Promise<void>;
33
+ }) => Promise<void>;
34
34
  /**
35
35
  * Deletes a property for the given user.
36
36
  * For more information about user properties, see
@@ -46,7 +46,7 @@ export declare class UserPropertiesService extends CommonHttpService {
46
46
  * @scopes-current write:user.property:confluence
47
47
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-delete
48
48
  */
49
- deleteUserProperty({ userId, key, }: {
49
+ deleteUserProperty: ({ userId, key, }: {
50
50
  /**
51
51
  * The account ID of the user. The accountId uniquely identifies the user across
52
52
  * all Atlassian
@@ -55,7 +55,7 @@ export declare class UserPropertiesService extends CommonHttpService {
55
55
  userId: string;
56
56
  /** The key of the user property. */
57
57
  key: string;
58
- }): Promise<void>;
58
+ }) => Promise<void>;
59
59
  /**
60
60
  * Returns the properties for a user as list of property keys. For more information
61
61
  * about user properties, see [Confluence entity
@@ -71,17 +71,17 @@ export declare class UserPropertiesService extends CommonHttpService {
71
71
  * @scopes-current read:user.property:confluence
72
72
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-get
73
73
  */
74
- getUserProperties({ userId, start, limit, }: {
74
+ getUserProperties: ({ userId, start, limit, }: {
75
75
  /** The account ID of the user to be queried for its properties. */
76
76
  userId: string;
77
77
  /** The starting index of the returned properties. */
78
- start?: number;
78
+ start?: number | undefined;
79
79
  /**
80
80
  * The maximum number of properties to return per page.
81
81
  * Note, this may be restricted by fixed system limits.
82
82
  */
83
- limit?: number;
84
- }): Promise<UserPropertyKeyArray>;
83
+ limit?: number | undefined;
84
+ }) => Promise<UserPropertyKeyArray>;
85
85
  /**
86
86
  * Returns the property corresponding to `key` for a user. For more information
87
87
  * about user properties, see [Confluence entity
@@ -97,12 +97,12 @@ export declare class UserPropertiesService extends CommonHttpService {
97
97
  * @scopes-current read:user.property:confluence
98
98
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-get
99
99
  */
100
- getUserProperty({ userId, key, }: {
100
+ getUserProperty: ({ userId, key, }: {
101
101
  /** The account ID of the user to be queried for its properties. */
102
102
  userId: string;
103
103
  /** The key of the user property. */
104
104
  key: string;
105
- }): Promise<UserProperty>;
105
+ }) => Promise<UserProperty>;
106
106
  /**
107
107
  * Updates a property for the given user. Note, you cannot update the key of a
108
108
  * user property, only the value.
@@ -119,7 +119,7 @@ export declare class UserPropertiesService extends CommonHttpService {
119
119
  * @scopes-current write:user.property:confluence
120
120
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-put
121
121
  */
122
- updateUserProperty({ userId, key, userPropertyUpdate, }: {
122
+ updateUserProperty: ({ userId, key, userPropertyUpdate, }: {
123
123
  /**
124
124
  * The account ID of the user. The accountId uniquely identifies the user across
125
125
  * all Atlassian
@@ -130,6 +130,6 @@ export declare class UserPropertiesService extends CommonHttpService {
130
130
  key: string;
131
131
  /** The user property to be updated. */
132
132
  userPropertyUpdate: UserPropertyUpdate;
133
- }): Promise<void>;
133
+ }) => Promise<void>;
134
134
  static initialize(): void;
135
135
  }