@resolution/confluence-api-client 0.4.1 → 0.4.3

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 (206) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +125 -1
  3. package/lib/index.js +1 -1
  4. package/lib/index.js.map +1 -1
  5. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +51 -7
  6. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
  7. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  8. package/lib/openapi/v1/models/common.d.ts +75 -75
  9. package/lib/openapi/v1/models/common.js +42 -42
  10. package/lib/openapi/v1/models/common.js.map +1 -1
  11. package/lib/openapi/v1/models/content.d.ts +8 -8
  12. package/lib/openapi/v1/models/content.js +9 -7
  13. package/lib/openapi/v1/models/content.js.map +1 -1
  14. package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
  15. package/lib/openapi/v1/models/contentRestrictions.js +1 -1
  16. package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
  17. package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
  18. package/lib/openapi/v1/models/contentWatches.js +1 -1
  19. package/lib/openapi/v1/models/contentWatches.js.map +1 -1
  20. package/lib/openapi/v1/models/relation.d.ts +4 -4
  21. package/lib/openapi/v1/models/relation.js +5 -3
  22. package/lib/openapi/v1/models/relation.js.map +1 -1
  23. package/lib/openapi/v1/models/search.d.ts +2 -2
  24. package/lib/openapi/v1/models/search.js +1 -1
  25. package/lib/openapi/v1/models/search.js.map +1 -1
  26. package/lib/openapi/v1/models/space.d.ts +2 -2
  27. package/lib/openapi/v1/models/space.js +1 -1
  28. package/lib/openapi/v1/models/space.js.map +1 -1
  29. package/lib/openapi/v1/models/themes.d.ts +2 -2
  30. package/lib/openapi/v1/models/themes.js +1 -1
  31. package/lib/openapi/v1/models/themes.js.map +1 -1
  32. package/lib/openapi/v1/models/users.d.ts +3 -3
  33. package/lib/openapi/v1/models/users.js +2 -2
  34. package/lib/openapi/v1/models/users.js.map +1 -1
  35. package/lib/openapi/v1/services/AnalyticsService.d.ts +3 -0
  36. package/lib/openapi/v1/services/AnalyticsService.js +3 -0
  37. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  38. package/lib/openapi/v1/services/AuditService.d.ts +10 -3
  39. package/lib/openapi/v1/services/AuditService.js +10 -3
  40. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -0
  42. package/lib/openapi/v1/services/ContentAttachmentsService.js +7 -0
  43. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentBodyService.d.ts +4 -0
  45. package/lib/openapi/v1/services/ContentBodyService.js +4 -0
  46. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  47. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -0
  48. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +8 -0
  49. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  50. package/lib/openapi/v1/services/ContentCommentsService.d.ts +5 -1
  51. package/lib/openapi/v1/services/ContentCommentsService.js +5 -1
  52. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  53. package/lib/openapi/v1/services/ContentLabelsService.d.ts +5 -0
  54. package/lib/openapi/v1/services/ContentLabelsService.js +5 -0
  55. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  56. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -0
  57. package/lib/openapi/v1/services/ContentMacroBodyService.js +4 -0
  58. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  59. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -0
  60. package/lib/openapi/v1/services/ContentPermissionsService.js +2 -0
  61. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  62. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +10 -1
  63. package/lib/openapi/v1/services/ContentPropertiesService.js +10 -1
  64. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  65. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +16 -0
  66. package/lib/openapi/v1/services/ContentRestrictionsService.js +16 -0
  67. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  68. package/lib/openapi/v1/services/ContentService.d.ts +12 -1
  69. package/lib/openapi/v1/services/ContentService.js +12 -1
  70. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  71. package/lib/openapi/v1/services/ContentStatesService.d.ts +11 -0
  72. package/lib/openapi/v1/services/ContentStatesService.js +11 -0
  73. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  74. package/lib/openapi/v1/services/ContentVersionsService.d.ts +5 -0
  75. package/lib/openapi/v1/services/ContentVersionsService.js +5 -0
  76. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -0
  78. package/lib/openapi/v1/services/ContentWatchesService.js +13 -0
  79. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  80. package/lib/openapi/v1/services/DynamicModulesService.d.ts +4 -0
  81. package/lib/openapi/v1/services/DynamicModulesService.js +4 -0
  82. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  83. package/lib/openapi/v1/services/ExperimentalService.d.ts +9 -1
  84. package/lib/openapi/v1/services/ExperimentalService.js +9 -1
  85. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  86. package/lib/openapi/v1/services/GroupService.d.ts +18 -1
  87. package/lib/openapi/v1/services/GroupService.js +18 -1
  88. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  89. package/lib/openapi/v1/services/InlineTasksService.d.ts +8 -2
  90. package/lib/openapi/v1/services/InlineTasksService.js +8 -2
  91. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  92. package/lib/openapi/v1/services/LabelInfoService.d.ts +2 -0
  93. package/lib/openapi/v1/services/LabelInfoService.js +2 -0
  94. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  95. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +4 -1
  96. package/lib/openapi/v1/services/LongRunningTaskService.js +4 -1
  97. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  98. package/lib/openapi/v1/services/RelationService.d.ts +6 -0
  99. package/lib/openapi/v1/services/RelationService.js +6 -0
  100. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  101. package/lib/openapi/v1/services/SearchService.d.ts +3 -0
  102. package/lib/openapi/v1/services/SearchService.js +3 -0
  103. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  104. package/lib/openapi/v1/services/SettingsService.d.ts +9 -2
  105. package/lib/openapi/v1/services/SettingsService.js +9 -2
  106. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  107. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -0
  108. package/lib/openapi/v1/services/SpacePermissionsService.js +4 -0
  109. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  110. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +10 -1
  111. package/lib/openapi/v1/services/SpacePropertiesService.js +10 -1
  112. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  113. package/lib/openapi/v1/services/SpaceService.d.ts +10 -1
  114. package/lib/openapi/v1/services/SpaceService.js +10 -1
  115. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  116. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +3 -0
  117. package/lib/openapi/v1/services/SpaceSettingsService.js +3 -0
  118. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  119. package/lib/openapi/v1/services/TemplateService.d.ts +9 -2
  120. package/lib/openapi/v1/services/TemplateService.js +9 -2
  121. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  122. package/lib/openapi/v1/services/ThemesService.d.ts +8 -1
  123. package/lib/openapi/v1/services/ThemesService.js +8 -1
  124. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  125. package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -0
  126. package/lib/openapi/v1/services/UserPropertiesService.js +6 -0
  127. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  128. package/lib/openapi/v1/services/UsersService.d.ts +13 -5
  129. package/lib/openapi/v1/services/UsersService.js +12 -4
  130. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  131. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +25 -1
  132. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
  133. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  134. package/lib/openapi/v2/models/user.d.ts +51 -0
  135. package/lib/openapi/v2/models/user.js +41 -0
  136. package/lib/openapi/v2/models/user.js.map +1 -0
  137. package/lib/openapi/v2/services/AncestorsService.d.ts +5 -0
  138. package/lib/openapi/v2/services/AncestorsService.js +5 -0
  139. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  140. package/lib/openapi/v2/services/AttachmentService.d.ts +9 -1
  141. package/lib/openapi/v2/services/AttachmentService.js +9 -1
  142. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  143. package/lib/openapi/v2/services/BlogPostService.d.ts +9 -1
  144. package/lib/openapi/v2/services/BlogPostService.js +9 -1
  145. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  146. package/lib/openapi/v2/services/ChildrenService.d.ts +3 -0
  147. package/lib/openapi/v2/services/ChildrenService.js +3 -0
  148. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  149. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +11 -0
  150. package/lib/openapi/v2/services/ClassificationLevelService.js +11 -0
  151. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  152. package/lib/openapi/v2/services/CommentService.d.ts +21 -2
  153. package/lib/openapi/v2/services/CommentService.js +21 -2
  154. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  155. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +41 -0
  156. package/lib/openapi/v2/services/ContentPropertiesService.js +41 -0
  157. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  158. package/lib/openapi/v2/services/ContentService.d.ts +2 -0
  159. package/lib/openapi/v2/services/ContentService.js +2 -0
  160. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  161. package/lib/openapi/v2/services/CustomContentService.d.ts +9 -0
  162. package/lib/openapi/v2/services/CustomContentService.js +9 -0
  163. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  164. package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -1
  165. package/lib/openapi/v2/services/DataPoliciesService.js +4 -1
  166. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  167. package/lib/openapi/v2/services/DatabaseService.d.ts +4 -0
  168. package/lib/openapi/v2/services/DatabaseService.js +4 -0
  169. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  170. package/lib/openapi/v2/services/LabelService.d.ts +9 -1
  171. package/lib/openapi/v2/services/LabelService.js +9 -1
  172. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  173. package/lib/openapi/v2/services/LikeService.d.ts +9 -0
  174. package/lib/openapi/v2/services/LikeService.js +9 -0
  175. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  176. package/lib/openapi/v2/services/OperationService.d.ts +11 -0
  177. package/lib/openapi/v2/services/OperationService.js +11 -0
  178. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  179. package/lib/openapi/v2/services/PageService.d.ts +9 -1
  180. package/lib/openapi/v2/services/PageService.js +9 -1
  181. package/lib/openapi/v2/services/PageService.js.map +1 -1
  182. package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -0
  183. package/lib/openapi/v2/services/SmartLinkService.js +4 -0
  184. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  185. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +2 -0
  186. package/lib/openapi/v2/services/SpacePermissionsService.js +2 -0
  187. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  188. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -0
  189. package/lib/openapi/v2/services/SpacePropertiesService.js +6 -0
  190. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  191. package/lib/openapi/v2/services/SpaceService.d.ts +4 -1
  192. package/lib/openapi/v2/services/SpaceService.js +4 -1
  193. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  194. package/lib/openapi/v2/services/TaskService.d.ts +5 -1
  195. package/lib/openapi/v2/services/TaskService.js +5 -1
  196. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  197. package/lib/openapi/v2/services/UserService.d.ts +31 -0
  198. package/lib/openapi/v2/services/UserService.js +55 -0
  199. package/lib/openapi/v2/services/UserService.js.map +1 -1
  200. package/lib/openapi/v2/services/VersionService.d.ts +13 -0
  201. package/lib/openapi/v2/services/VersionService.js +13 -0
  202. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  203. package/lib/openapi/v2/services/WhiteboardService.d.ts +4 -0
  204. package/lib/openapi/v2/services/WhiteboardService.js +4 -0
  205. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  206. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,27 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.4.3](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/branches/compare/v0.4.3%0Dv0.4.2) (2024-06-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update generated files according to new OpenAPI schemas ([381a1ea](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/381a1ea9b21cfaf6325d7f564ecba2453c8410fa))
12
+
13
+
14
+
15
+ ## [0.4.2](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/compare/v0.4.1...v0.4.2) (2024-06-11)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add base path to confluence v2 API ([8b1965c](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/8b1965ca84d55dd4bf9600c36006d7d61e8e2fcd))
21
+ * add links to JIRA/Confluence documentation ([64c19b2](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/64c19b2b0d1685c0d64639c6a44314a253ad5529))
22
+
23
+
24
+
25
+
26
+
6
27
  ## [0.4.1](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/compare/v0.4.0...v0.4.1) (2024-06-10)
7
28
 
8
29
 
package/README.md CHANGED
@@ -9,4 +9,128 @@ Compatible with the following request/fetch Atlassian libraries:
9
9
  * [@forge/api](https://developer.atlassian.com/cloud/jira/platform/forge/)
10
10
  * [@forge/bridge](https://developer.atlassian.com/cloud/jira/platform/forge/)
11
11
 
12
- More details will follow.
12
+ ## Installation
13
+
14
+ Install using npm
15
+
16
+ ```bash
17
+ npm add @resolution/confluence-api-client
18
+ ```
19
+
20
+ Or using yarn
21
+
22
+ ```bash
23
+ yarn add @resolution/confluence-api-client
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ### Connect
29
+
30
+ Inside Connect iframe:
31
+
32
+ ```typescript
33
+ import { ConfluenceApiV1, ConfluenceApiV2 } from '@resolution/confluence-api-client';
34
+
35
+ async function test() {
36
+ const confluenceApiV1 = new ConfluenceApiV1({ AP: window.AP });
37
+ const currentUser = await confluenceApiV1.users.getCurrentUser();
38
+ console.log("Current User:", currentUser);
39
+
40
+ const confluenceApiV2 = new ConfluenceApiV2({ AP: window.AP });
41
+ const spaces = await confluenceApiV2.space.getSpaces({ keys: ["SPACE"] });
42
+ console.log("Space:", spaces.results[0]);
43
+ }
44
+
45
+ test().catch(console.error);
46
+ ```
47
+
48
+ On the server side using `atlassian-connect-express`:
49
+
50
+ ```typescript
51
+ import atlassianConnectExpress from 'atlassian-connect-express';
52
+ import { ConfluenceApiV1, ConfluenceApiV2 } from '@resolution/confluence-api-client';
53
+
54
+ const app = express();
55
+ const ace = atlassianConnectExpress(app);
56
+
57
+ app.use(ace.authenticate());
58
+
59
+ app.get('/current-user', async () => {
60
+ const confluenceApiV1 = new ConfluenceApiV1({ ace, clientKey: req.context.clientKey });
61
+ const currentUser = await confluenceApiV1.users.getCurrentUser();
62
+ res.status(200).send(currentUser);
63
+ });
64
+
65
+ app.get('/spaces/:spaceKey', async () => {
66
+ const confluenceApiV2 = new ConfluenceApiV2({ ace, clientKey: req.context.clientKey });
67
+ const spaces = await confluenceApiV2.space.getSpaces({ keys: [req.params.spaceKey] });
68
+ res.status(200).send(spaces.results[0]);
69
+ });
70
+
71
+ app.listen(3000);
72
+ ```
73
+
74
+ ### Forge
75
+
76
+ Inside Forge iframe:
77
+
78
+ ```typescript
79
+ import { ConfluenceApiV1, ConfluenceApiV2 } from '@resolution/confluence-api-client';
80
+ import { requestConfluence } from '@forge/bridge';
81
+
82
+ async function test() {
83
+ const confluenceApiV1 = new ConfluenceApiV1({ requestConfluence });
84
+ const currentUser = await confluenceApiV1.users.getCurrentUser();
85
+ console.log("Current User:", currentUser);
86
+
87
+ const confluenceApiV2 = new ConfluenceApiV2({ requestConfluence });
88
+ const spaces = await confluenceApiV2.space.getSpaces({ keys: ["SPACE"] });
89
+ console.log("Space:", spaces.results[0]);
90
+ }
91
+
92
+ test().catch(console.error);
93
+ ```
94
+
95
+ On the server side using `@forge/api`:
96
+
97
+ ```typescript
98
+ import { ConfluenceApiV1, ConfluenceApiV2 } from '@resolution/confluence-api-client';
99
+ import * as forgeApi from '@forge/api';
100
+
101
+ export const handler = async ({ payload }) => {
102
+ const confluenceApiV1 = new ConfluenceApiV1({ forgeApi });
103
+ const currentUser = await confluenceApiV1.users.getCurrentUser();
104
+
105
+ const confluenceApiV2 = new ConfluenceApiV2({ forgeApi });
106
+ const spaces = await confluenceApiV2.space.getSpaces({ keys: [payload.spaceKey] });
107
+
108
+ return { currentUser, space: spaces.results[0] };
109
+ }
110
+ ```
111
+
112
+ External fetch on the server side:
113
+
114
+ ```typescript
115
+ import { ConfluenceApiV1, ConfluenceApiV2 } from '@resolution/confluence-api-client';
116
+ import { fetch } from "@forge/api";
117
+
118
+ const baseUrl = "https://your-jira-instance.atlassian.net";
119
+
120
+ export const handler = async ({ payload }) => {
121
+ const confluenceApiV1 = new ConfluenceApiV1({ fetch, baseUrl });
122
+ const currentUser = await confluenceApiV1.users.getCurrentUser();
123
+
124
+ const confluenceApiV2 = new ConfluenceApiV2({ fetch, baseUrl });
125
+ const spaces = await confluenceApiV2.space.getSpaces({ keys: [payload.spaceKey] });
126
+
127
+ return { currentUser, space: spaces.results[0] };
128
+ }
129
+ ```
130
+
131
+ ## References
132
+
133
+ * [Confluence API V1](https://developer.atlassian.com/cloud/confluence/rest/v1/intro/)
134
+ * [Confluence API V2](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/)
135
+ * [Atlassian Connect for Confluence](https://developer.atlassian.com/cloud/confluence/getting-started-with-connect/)
136
+ * [Atlassian Forge for Confluence](https://developer.atlassian.com/cloud/confluence/getting-started-with-forge/)
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ validationSchemaStorage_1.validationSchemaStorage.setErrorClass(atlassian_api_co
30
30
  */
31
31
  class ConfluenceApiV2 extends BaseConfluenceApiV2Client_1.BaseConfluenceApiV2Client {
32
32
  constructor(options) {
33
- super((0, atlassian_api_common_1.getApiClientOptions)(options));
33
+ super((0, atlassian_api_common_1.getApiClientOptions)(Object.assign(Object.assign({}, options), { basePath: "/wiki/api/v2" })));
34
34
  this.options = options;
35
35
  /**
36
36
  * Switches the API client to the app context.
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2EAW0C;AAQjC,yFAdP,+BAAQ,OAcO;AANjB,sFAAmF;AACnF,sFAAmF;AAEnF,yEAAuD;AACvD,yEAAuD;AAIvD,kFAAkH;AAClH,kFAAkH;AAElH,iD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AEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAA0B,CAAC;QACpD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAA0B,CAAC;IATtD,CAAC;CAUF;AApBD,0CAoBC;AAED;;GAEG;AACH,MAAa,eAAgB,SAAQ,qDAAyB;IAC5D,YACY,OAKY;QAEtB,KAAK,CAAC,IAAA,0CAAmB,EAAC,OAAO,CAAC,CAAC,CAAC;QAP1B,YAAO,GAAP,OAAO,CAKK;QAIxB;;WAEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAA0B,CAAC;QACpD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAA0B,CAAC;IARtD,CAAC;CASF;AAnBD,0CAmBC"}
@@ -1,7 +1,7 @@
1
1
  import * as commonHttpClient from "./core/CommonHttpClient";
2
2
  import { CommonHttpService } from "./core/CommonHttpService";
3
3
  import type { AffectedObject, AuditRecord, AuditRecordArray, AuditRecordCreate, ChangedValue, RetentionPeriod } from "./models/audit";
4
- import type { AsyncId, Container, Content, ContentArray, ContentBody, ContentBodyCreate, ContentChildren, ContentId, ContentRestriction, EmbeddedContent, GenericAccountId, GenericLinks, GenericUserKey, GenericUserName, Group, GroupArrayWithLinks, Icon, LabelArray, LabelCreate, LabelV1, LongTask, LookAndFeel, Message, OperationCheckResult, Space, SpaceSettings, Theme, User, UserArray, UserDetails, VersionV1, WebResourceDependencies } from "./models/common";
4
+ import type { AsyncId, Container, Content, ContentArray, ContentBody, ContentBodyCreate, ContentChildren, ContentId, ContentRestriction, EmbeddedContent, GenericAccountId, GenericLinks, GenericUserKey, GenericUserName, Group, GroupArrayWithLinks, IconV1, LabelArray, LabelCreate, LabelV1, LongTask, LookAndFeel, Message, OperationCheckResult, Space, SpaceSettings, Theme, UserArray, UserDetails, UserV1, VersionV1, WebResourceDependencies } from "./models/common";
5
5
  import type { ButtonLookAndFeel, ContainerLookAndFeel, ContentBlueprintDraft, ContentBodyCreateStorage, ContentChildType, ContentCreate, ContentHistory, ContentLookAndFeel, ContentMetadata, ContentUpdate, Embeddable, GlobalSpaceIdentifier, GroupArray, HeaderLookAndFeel, HorizontalHeaderLookAndFeel, MenusLookAndFeel, NavigationLookAndFeel, ScreenLookAndFeel, SearchFieldLookAndFeel, SpaceDescriptionV1, SpacePermissionV1, SuperBatchWebResources, TopNavigationLookAndFeel, UsersUserKeys } from "./models/content";
6
6
  import type { AttachmentPropertiesUpdateBody } from "./models/contentAttachments";
7
7
  import type { AsyncContentBody } from "./models/contentBody";
@@ -84,50 +84,94 @@ export declare class BaseConfluenceApiV1ClientError extends commonHttpClient.Com
84
84
  export declare class BaseConfluenceApiV1Client extends CommonHttpService {
85
85
  client: commonHttpClient.CommonHttpClient;
86
86
  getClient: () => commonHttpClient.CommonHttpClient;
87
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-analytics */
87
88
  analytics: AnalyticsService;
89
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit */
88
90
  audit: AuditService;
91
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments */
89
92
  contentAttachments: ContentAttachmentsService;
93
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body */
90
94
  contentBody: ContentBodyService;
95
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants */
91
96
  contentChildrenAndDescendants: ContentChildrenAndDescendantsService;
92
- /** @deprecated */
97
+ /**
98
+ * @deprecated
99
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
100
+ */
93
101
  contentComments: ContentCommentsService;
102
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels */
94
103
  contentLabels: ContentLabelsService;
104
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body */
95
105
  contentMacroBody: ContentMacroBodyService;
106
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions */
96
107
  contentPermissions: ContentPermissionsService;
97
- /** @deprecated */
108
+ /**
109
+ * @deprecated
110
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
111
+ */
98
112
  contentProperties: ContentPropertiesService;
113
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
99
114
  contentRestrictions: ContentRestrictionsService;
115
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
100
116
  content: ContentService;
117
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states */
101
118
  contentStates: ContentStatesService;
119
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions */
102
120
  contentVersions: ContentVersionsService;
121
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches */
103
122
  contentWatches: ContentWatchesService;
123
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules */
104
124
  dynamicModules: DynamicModulesService;
105
- /** APIs in this section can change without any prior deprecation notice. */
125
+ /**
126
+ * APIs in this section can change without any prior deprecation notice.
127
+ *
128
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
129
+ */
106
130
  experimental: ExperimentalService;
107
131
  /**
108
132
  * **[WARNING](https://support.atlassian.com/user-management/docs/create-and-update-groups/)
109
133
  * The standard Atlassian group names are default names only and can be edited or
110
134
  * deleted.** For example, an admin or Atlassian support could delete the default
111
135
  * group jira-software-users or rename it to jsw-users at any point.
136
+ *
137
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group
112
138
  */
113
139
  group: GroupService;
114
- /** @deprecated */
140
+ /**
141
+ * @deprecated
142
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks
143
+ */
115
144
  inlineTasks: InlineTasksService;
145
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-label-info */
116
146
  labelInfo: LabelInfoService;
147
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task */
117
148
  longRunningTask: LongRunningTaskService;
149
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation */
118
150
  relation: RelationService;
151
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-search */
119
152
  search: SearchService;
153
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-settings */
120
154
  settings: SettingsService;
155
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions */
121
156
  spacePermissions: SpacePermissionsService;
122
- /** @deprecated */
157
+ /**
158
+ * @deprecated
159
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties
160
+ */
123
161
  spaceProperties: SpacePropertiesService;
162
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space */
124
163
  space: SpaceService;
164
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
125
165
  spaceSettings: SpaceSettingsService;
166
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
126
167
  template: TemplateService;
168
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes */
127
169
  themes: ThemesService;
170
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties */
128
171
  userProperties: UserPropertiesService;
172
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users */
129
173
  users: UsersService;
130
174
  constructor(options?: BaseConfluenceApiV1ClientOptions);
131
175
  static createClientWithServices: typeof commonHttpClient.createClientWithServices;
132
176
  }
133
- export type { AccountId, GroupName, AccountIdEmailRecord, AccountIdEmailRecordArray, BulkUserLookup, BulkUserLookupArray, UserAnonymous, AffectedObject, AuditRecord, AuditRecordArray, AuditRecordCreate, ChangedValue, RetentionPeriod, AsyncContentBody, AsyncId, Container, Content, ContentArray, ContentBody, ContentBodyCreate, ContentChildren, ContentId, ContentRestriction, EmbeddedContent, GenericAccountId, GenericLinks, GenericUserKey, GenericUserName, Group, GroupArrayWithLinks, Icon, LabelArray, LabelCreate, LabelV1, LongTask, LookAndFeel, Message, OperationCheckResult, Space, SpaceSettings, Theme, User, UserArray, UserDetails, VersionV1, WebResourceDependencies, AttachmentPropertiesUpdateBody, AvailableContentStates, ContentState, ContentStateBulkSetTaskUpdate, ContentStateFailure, ContentStateResponse, ContentStateRestInput, ContentStateSettings, BlueprintTemplate, BlueprintTemplateArray, ContentTemplate, ContentTemplateArray, ContentTemplateBody, ContentTemplateBodyCreate, ContentTemplateCreate, ContentTemplateUpdate, Breadcrumb, ContainerSummary, SearchPageResponseSearchResult, SearchResult, ButtonLookAndFeel, ContainerLookAndFeel, ContentBlueprintDraft, ContentBodyCreateStorage, ContentChildType, ContentCreate, ContentHistory, ContentLookAndFeel, ContentMetadata, ContentUpdate, Embeddable, GlobalSpaceIdentifier, GroupArray, HeaderLookAndFeel, HorizontalHeaderLookAndFeel, MenusLookAndFeel, NavigationLookAndFeel, ScreenLookAndFeel, SearchFieldLookAndFeel, SpaceDescriptionV1, SpacePermissionV1, SuperBatchWebResources, TopNavigationLookAndFeel, UsersUserKeys, ConnectModule, ConnectModules, DynamicModulesErrorMessage, ContentPermissionRequest, PermissionCheckResponse, PermissionSubjectWithGroupId, ContentPropertyArray, ContentPropertyCreate, ContentPropertyCreateNoKey, ContentPropertyUpdate, ContentPropertyV1, ContentRestrictionAddOrUpdateArray, ContentRestrictionArray, ContentRestrictionUpdate, CopyPageHierarchyRequest, CopyPageHierarchyTitleOptions, CopyPageRequest, CopyPageRequestDestination, GroupCreate, SpaceArray, SpaceCreate, SpaceDescriptionCreate, SpacePermissionCreate, SpaceUpdate, LabelCreateArray, LabelDetails, LabeledContent, LabeledContentPageResponse, LabeledContentType, LongTaskStatus, LongTaskStatusArray, LongTaskStatusWithLinks, LookAndFeelSelection, LookAndFeelSettings, LookAndFeelWithLinks, SystemInfoEntity, MacroInstance, PermissionSubject, SpacePermissionCustomContent, SpacePermissionRequest, SpacePermissionV2, PropertyValue, SpacePropertyArray, SpacePropertyCreate, SpacePropertyCreateNoKey, SpacePropertyUpdate, SpacePropertyV1, Relation, RelationArray, RelationData, SpaceSettingsUpdate, SpaceWatch, SpaceWatchArray, UserWatch, Watch, WatchArray, WatchUser, TaskPageResponse, TaskStatusUpdate, TaskV1, ThemeArray, ThemeNoLinks, ThemeUpdate, UserProperty, UserPropertyCreate, UserPropertyKeyArray, UserPropertyUpdate, VersionArray, VersionRestore, };
177
+ export type { AccountId, GroupName, AccountIdEmailRecord, AccountIdEmailRecordArray, BulkUserLookup, BulkUserLookupArray, UserAnonymous, AffectedObject, AuditRecord, AuditRecordArray, AuditRecordCreate, ChangedValue, RetentionPeriod, AsyncContentBody, AsyncId, Container, Content, ContentArray, ContentBody, ContentBodyCreate, ContentChildren, ContentId, ContentRestriction, EmbeddedContent, GenericAccountId, GenericLinks, GenericUserKey, GenericUserName, Group, GroupArrayWithLinks, IconV1, LabelArray, LabelCreate, LabelV1, LongTask, LookAndFeel, Message, OperationCheckResult, Space, SpaceSettings, Theme, UserArray, UserDetails, UserV1, VersionV1, WebResourceDependencies, AttachmentPropertiesUpdateBody, AvailableContentStates, ContentState, ContentStateBulkSetTaskUpdate, ContentStateFailure, ContentStateResponse, ContentStateRestInput, ContentStateSettings, BlueprintTemplate, BlueprintTemplateArray, ContentTemplate, ContentTemplateArray, ContentTemplateBody, ContentTemplateBodyCreate, ContentTemplateCreate, ContentTemplateUpdate, Breadcrumb, ContainerSummary, SearchPageResponseSearchResult, SearchResult, ButtonLookAndFeel, ContainerLookAndFeel, ContentBlueprintDraft, ContentBodyCreateStorage, ContentChildType, ContentCreate, ContentHistory, ContentLookAndFeel, ContentMetadata, ContentUpdate, Embeddable, GlobalSpaceIdentifier, GroupArray, HeaderLookAndFeel, HorizontalHeaderLookAndFeel, MenusLookAndFeel, NavigationLookAndFeel, ScreenLookAndFeel, SearchFieldLookAndFeel, SpaceDescriptionV1, SpacePermissionV1, SuperBatchWebResources, TopNavigationLookAndFeel, UsersUserKeys, ConnectModule, ConnectModules, DynamicModulesErrorMessage, ContentPermissionRequest, PermissionCheckResponse, PermissionSubjectWithGroupId, ContentPropertyArray, ContentPropertyCreate, ContentPropertyCreateNoKey, ContentPropertyUpdate, ContentPropertyV1, ContentRestrictionAddOrUpdateArray, ContentRestrictionArray, ContentRestrictionUpdate, CopyPageHierarchyRequest, CopyPageHierarchyTitleOptions, CopyPageRequest, CopyPageRequestDestination, GroupCreate, SpaceArray, SpaceCreate, SpaceDescriptionCreate, SpacePermissionCreate, SpaceUpdate, LabelCreateArray, LabelDetails, LabeledContent, LabeledContentPageResponse, LabeledContentType, LongTaskStatus, LongTaskStatusArray, LongTaskStatusWithLinks, LookAndFeelSelection, LookAndFeelSettings, LookAndFeelWithLinks, SystemInfoEntity, MacroInstance, PermissionSubject, SpacePermissionCustomContent, SpacePermissionRequest, SpacePermissionV2, PropertyValue, SpacePropertyArray, SpacePropertyCreate, SpacePropertyCreateNoKey, SpacePropertyUpdate, SpacePropertyV1, Relation, RelationArray, RelationData, SpaceSettingsUpdate, SpaceWatch, SpaceWatchArray, UserWatch, Watch, WatchArray, WatchUser, TaskPageResponse, TaskStatusUpdate, TaskV1, ThemeArray, ThemeNoLinks, ThemeUpdate, UserProperty, UserPropertyCreate, UserPropertyKeyArray, UserPropertyUpdate, VersionArray, VersionRestore, };
@@ -70,48 +70,92 @@ class BaseConfluenceApiV1Client extends CommonHttpService_1.CommonHttpService {
70
70
  errorClass: BaseConfluenceApiV1ClientError,
71
71
  });
72
72
  this.getClient = () => this.client;
73
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-analytics */
73
74
  this.analytics = new AnalyticsService_1.AnalyticsService(this.getClient);
75
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit */
74
76
  this.audit = new AuditService_1.AuditService(this.getClient);
77
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments */
75
78
  this.contentAttachments = new ContentAttachmentsService_1.ContentAttachmentsService(this.getClient);
79
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body */
76
80
  this.contentBody = new ContentBodyService_1.ContentBodyService(this.getClient);
81
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants */
77
82
  this.contentChildrenAndDescendants = new ContentChildrenAndDescendantsService_1.ContentChildrenAndDescendantsService(this.getClient);
78
- /** @deprecated */
83
+ /**
84
+ * @deprecated
85
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
86
+ */
79
87
  this.contentComments = new ContentCommentsService_1.ContentCommentsService(this.getClient);
88
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels */
80
89
  this.contentLabels = new ContentLabelsService_1.ContentLabelsService(this.getClient);
90
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-macro-body */
81
91
  this.contentMacroBody = new ContentMacroBodyService_1.ContentMacroBodyService(this.getClient);
92
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions */
82
93
  this.contentPermissions = new ContentPermissionsService_1.ContentPermissionsService(this.getClient);
83
- /** @deprecated */
94
+ /**
95
+ * @deprecated
96
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
97
+ */
84
98
  this.contentProperties = new ContentPropertiesService_1.ContentPropertiesService(this.getClient);
99
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
85
100
  this.contentRestrictions = new ContentRestrictionsService_1.ContentRestrictionsService(this.getClient);
101
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
86
102
  this.content = new ContentService_1.ContentService(this.getClient);
103
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states */
87
104
  this.contentStates = new ContentStatesService_1.ContentStatesService(this.getClient);
105
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions */
88
106
  this.contentVersions = new ContentVersionsService_1.ContentVersionsService(this.getClient);
107
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches */
89
108
  this.contentWatches = new ContentWatchesService_1.ContentWatchesService(this.getClient);
109
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules */
90
110
  this.dynamicModules = new DynamicModulesService_1.DynamicModulesService(this.getClient);
91
- /** APIs in this section can change without any prior deprecation notice. */
111
+ /**
112
+ * APIs in this section can change without any prior deprecation notice.
113
+ *
114
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
115
+ */
92
116
  this.experimental = new ExperimentalService_1.ExperimentalService(this.getClient);
93
117
  /**
94
118
  * **[WARNING](https://support.atlassian.com/user-management/docs/create-and-update-groups/)
95
119
  * The standard Atlassian group names are default names only and can be edited or
96
120
  * deleted.** For example, an admin or Atlassian support could delete the default
97
121
  * group jira-software-users or rename it to jsw-users at any point.
122
+ *
123
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group
98
124
  */
99
125
  this.group = new GroupService_1.GroupService(this.getClient);
100
- /** @deprecated */
126
+ /**
127
+ * @deprecated
128
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks
129
+ */
101
130
  this.inlineTasks = new InlineTasksService_1.InlineTasksService(this.getClient);
131
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-label-info */
102
132
  this.labelInfo = new LabelInfoService_1.LabelInfoService(this.getClient);
133
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task */
103
134
  this.longRunningTask = new LongRunningTaskService_1.LongRunningTaskService(this.getClient);
135
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation */
104
136
  this.relation = new RelationService_1.RelationService(this.getClient);
137
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-search */
105
138
  this.search = new SearchService_1.SearchService(this.getClient);
139
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-settings */
106
140
  this.settings = new SettingsService_1.SettingsService(this.getClient);
141
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions */
107
142
  this.spacePermissions = new SpacePermissionsService_1.SpacePermissionsService(this.getClient);
108
- /** @deprecated */
143
+ /**
144
+ * @deprecated
145
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties
146
+ */
109
147
  this.spaceProperties = new SpacePropertiesService_1.SpacePropertiesService(this.getClient);
148
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space */
110
149
  this.space = new SpaceService_1.SpaceService(this.getClient);
150
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
111
151
  this.spaceSettings = new SpaceSettingsService_1.SpaceSettingsService(this.getClient);
152
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
112
153
  this.template = new TemplateService_1.TemplateService(this.getClient);
154
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes */
113
155
  this.themes = new ThemesService_1.ThemesService(this.getClient);
156
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties */
114
157
  this.userProperties = new UserPropertiesService_1.UserPropertiesService(this.getClient);
158
+ /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users */
115
159
  this.users = new UsersService_1.UsersService(this.getClient);
116
160
  this.client.setOptions(Object.assign(Object.assign({}, this.client.getOptions()), options));
117
161
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseConfluenceApiV1Client.js","sourceRoot":"","sources":["../../../src/openapi/v1/BaseConfluenceApiV1Client.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,4DAA4D;AAC5D,gEAA6D;AAoM7D,kEAA+D;AAC/D,0DAAuD;AACvD,oFAAiF;AACjF,sEAAmE;AACnE,0GAAuG;AACvG,8EAA2E;AAC3E,0EAAuE;AACvE,gFAA6E;AAC7E,oFAAiF;AACjF,k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tGH,8DAwGC;AADQ,kDAAwB,GAAG,gBAAgB,CAAC,wBAAwB,AAA5C,CAA6C;AAE9E,iDAAuB,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC"}
@@ -258,7 +258,7 @@ export interface GroupArrayWithLinks extends Record<string, unknown> {
258
258
  * This object represents an icon. If used as a profilePicture, this may be
259
259
  * returned as null, depending on the user's privacy setting.
260
260
  */
261
- export interface Icon extends Record<string, unknown> {
261
+ export interface IconV1 extends Record<string, unknown> {
262
262
  path: string;
263
263
  width: number;
264
264
  height: number;
@@ -343,7 +343,7 @@ export interface Space extends Record<string, unknown> {
343
343
  * This object represents an icon. If used as a profilePicture, this may be
344
344
  * returned as null, depending on the user's privacy setting.
345
345
  */
346
- icon?: Icon | null;
346
+ icon?: IconV1 | null;
347
347
  description?: {
348
348
  plain?: SpaceDescriptionV1;
349
349
  view?: SpaceDescriptionV1;
@@ -375,7 +375,7 @@ export interface Space extends Record<string, unknown> {
375
375
  lookAndFeel?: LookAndFeel;
376
376
  history?: {
377
377
  createdDate: string;
378
- createdBy?: User | null;
378
+ createdBy?: UserV1 | null;
379
379
  } & {
380
380
  [key: string]: unknown;
381
381
  };
@@ -424,80 +424,11 @@ export interface Theme extends Record<string, unknown> {
424
424
  * This object represents an icon. If used as a profilePicture, this may be
425
425
  * returned as null, depending on the user's privacy setting.
426
426
  */
427
- icon?: Icon | null;
428
- _links?: GenericLinks;
429
- }
430
- export interface User extends Record<string, unknown> {
431
- type: "known" | "unknown" | "anonymous" | "user";
432
- /**
433
- * This property is no longer available and will be removed from the documentation
434
- * soon.
435
- * Use `accountId` instead.
436
- * See the [deprecation
437
- * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
438
- * for details.
439
- */
440
- username?: GenericUserName | null;
441
- /**
442
- * This property is no longer available and will be removed from the documentation
443
- * soon.
444
- * Use `accountId` instead.
445
- * See the [deprecation
446
- * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
447
- * for details.
448
- */
449
- userKey?: GenericUserKey | null;
450
- /**
451
- * The account ID of the user, which uniquely identifies the user across all
452
- * Atlassian products.
453
- * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
454
- */
455
- accountId?: GenericAccountId | null;
456
- /**
457
- * The account type of the user, may return empty string if unavailable. App is if
458
- * the user is a bot user created on behalf of an Atlassian app.
459
- */
460
- accountType?: "atlassian" | "app" | "";
461
- /**
462
- * The email address of the user. Depending on the user's privacy setting, this
463
- * may return an empty string.
464
- */
465
- email?: string | null;
466
- /** The public name or nickname of the user. Will always contain a value. */
467
- publicName?: string;
468
- /**
469
- * This object represents an icon. If used as a profilePicture, this may be
470
- * returned as null, depending on the user's privacy setting.
471
- */
472
- profilePicture?: Icon | null;
473
- /**
474
- * The displays name of the user. Depending on the user's privacy setting, this
475
- * may be the same as publicName.
476
- */
477
- displayName?: string | null;
478
- /**
479
- * This displays user time zone. Depending on the user's privacy setting, this may
480
- * return null.
481
- */
482
- timeZone?: string | null;
483
- /** Whether the user is an external collaborator user */
484
- isExternalCollaborator?: boolean;
485
- /** Whether the user is an external collaborator user */
486
- externalCollaborator?: boolean;
487
- operations?: OperationCheckResult[] | null;
488
- details?: UserDetails;
489
- personalSpace?: Space | null;
490
- _expandable?: {
491
- operations?: string;
492
- details?: string;
493
- personalSpace?: string;
494
- } & {
495
- [key: string]: unknown;
496
- };
427
+ icon?: IconV1 | null;
497
428
  _links?: GenericLinks;
498
429
  }
499
430
  export interface UserArray extends Record<string, unknown> {
500
- results: (User | null)[];
431
+ results: (UserV1 | null)[];
501
432
  start?: number;
502
433
  limit?: number;
503
434
  size?: number;
@@ -575,8 +506,77 @@ export interface UserDetails extends Record<string, unknown> {
575
506
  [key: string]: unknown;
576
507
  };
577
508
  }
509
+ export interface UserV1 extends Record<string, unknown> {
510
+ type: "known" | "unknown" | "anonymous" | "user";
511
+ /**
512
+ * This property is no longer available and will be removed from the documentation
513
+ * soon.
514
+ * Use `accountId` instead.
515
+ * See the [deprecation
516
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
517
+ * for details.
518
+ */
519
+ username?: GenericUserName | null;
520
+ /**
521
+ * This property is no longer available and will be removed from the documentation
522
+ * soon.
523
+ * Use `accountId` instead.
524
+ * See the [deprecation
525
+ * notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
526
+ * for details.
527
+ */
528
+ userKey?: GenericUserKey | null;
529
+ /**
530
+ * The account ID of the user, which uniquely identifies the user across all
531
+ * Atlassian products.
532
+ * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
533
+ */
534
+ accountId?: GenericAccountId | null;
535
+ /**
536
+ * The account type of the user, may return empty string if unavailable. App is if
537
+ * the user is a bot user created on behalf of an Atlassian app.
538
+ */
539
+ accountType?: "atlassian" | "app" | "";
540
+ /**
541
+ * The email address of the user. Depending on the user's privacy setting, this
542
+ * may return an empty string.
543
+ */
544
+ email?: string | null;
545
+ /** The public name or nickname of the user. Will always contain a value. */
546
+ publicName?: string;
547
+ /**
548
+ * This object represents an icon. If used as a profilePicture, this may be
549
+ * returned as null, depending on the user's privacy setting.
550
+ */
551
+ profilePicture?: IconV1 | null;
552
+ /**
553
+ * The displays name of the user. Depending on the user's privacy setting, this
554
+ * may be the same as publicName.
555
+ */
556
+ displayName?: string | null;
557
+ /**
558
+ * This displays user time zone. Depending on the user's privacy setting, this may
559
+ * return null.
560
+ */
561
+ timeZone?: string | null;
562
+ /** Whether the user is an external collaborator user */
563
+ isExternalCollaborator?: boolean;
564
+ /** Whether the user is an external collaborator user */
565
+ externalCollaborator?: boolean;
566
+ operations?: OperationCheckResult[] | null;
567
+ details?: UserDetails;
568
+ personalSpace?: Space | null;
569
+ _expandable?: {
570
+ operations?: string;
571
+ details?: string;
572
+ personalSpace?: string;
573
+ } & {
574
+ [key: string]: unknown;
575
+ };
576
+ _links?: GenericLinks;
577
+ }
578
578
  export interface VersionV1 extends Record<string, unknown> {
579
- by?: User | null;
579
+ by?: UserV1 | null;
580
580
  when: string | null;
581
581
  friendlyWhen?: string | null;
582
582
  message?: string | null;