@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
@@ -12,232 +12,235 @@ const users_1 = require("../models/users");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users */
14
14
  class UsersService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Returns information about how anonymous users are represented, like the
17
- * profile picture and display name.
18
- *
19
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
20
- * Permission to access the Confluence site ('Can use' global permission).
21
- *
22
- * @returns Returned if the anonymous user representation is returned.
23
- * @path {GET} /wiki/rest/api/user/anonymous
24
- * @scopes-current read:confluence-user
25
- * @scopes-beta read:user:confluence
26
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-anonymous-get
27
- */
28
- getAnonymousUser({ expand, } = {}) {
29
- return this.getClientInstance()
30
- .request({
31
- path: "/wiki/rest/api/user/anonymous",
32
- method: "GET",
33
- query: {
34
- expand,
35
- },
36
- })
37
- .then(this.getClientInstance().responseHandler({
38
- 200: {
39
- "application/json": "json",
40
- },
41
- }))
42
- .then(commonHttpClient.castResponse())
43
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getAnonymousUser.response"))
44
- .then(commonHttpClient.getBody);
45
- }
46
- /**
47
- * Returns user details for the ids provided in request.
48
- *
49
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
50
- * Permission to access the Confluence site ('Can use' global permission).
51
- *
52
- * @returns Returned if, the list of users is returned.
53
- * @path {GET} /wiki/rest/api/user/bulk
54
- * @scopes-current read:confluence-user
55
- * @scopes-beta read:content-details:confluence
56
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-bulk-get
57
- */
58
- getBulkUserLookup({ accountId, expand, limit, }) {
59
- return this.getClientInstance()
60
- .request({
61
- path: "/wiki/rest/api/user/bulk",
62
- method: "GET",
63
- query: {
64
- accountId,
65
- expand,
66
- limit,
67
- },
68
- })
69
- .then(this.getClientInstance().responseHandler({
70
- 200: {
71
- "application/json": "json",
72
- },
73
- }))
74
- .then(commonHttpClient.castResponse())
75
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getBulkUserLookup.response"))
76
- .then(commonHttpClient.getBody);
77
- }
78
- /**
79
- * Returns the currently logged-in user. This includes information about
80
- * the user, like the display name, userKey, account ID, profile picture,
81
- * and more.
82
- *
83
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
84
- * Permission to access the Confluence site ('Can use' global permission).
85
- *
86
- * @returns Returned if the current user is returned.
87
- * @path {GET} /wiki/rest/api/user/current
88
- * @scopes-current read:confluence-user
89
- * @scopes-beta read:content-details:confluence
90
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-current-get
91
- */
92
- getCurrentUser({ expand, } = {}) {
93
- return this.getClientInstance()
94
- .request({
95
- path: "/wiki/rest/api/user/current",
96
- method: "GET",
97
- query: {
98
- expand,
99
- },
100
- })
101
- .then(this.getClientInstance().responseHandler({
102
- 200: {
103
- "application/json": "json",
104
- },
105
- }))
106
- .then(commonHttpClient.castResponse())
107
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getCurrentUser.response"))
108
- .then(commonHttpClient.getBody);
109
- }
110
- /**
111
- * Returns the groups that a user is a member of.
112
- *
113
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
114
- * Permission to access the Confluence site ('Can use' global permission).
115
- *
116
- * @returns Returned if the requested groups are returned.
117
- * @path {GET} /wiki/rest/api/user/memberof
118
- * @scopes-current read:confluence-user
119
- * @scopes-beta read:user:confluence, read:group:confluence
120
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-memberof-get
121
- */
122
- getGroupMembershipsForUser({ accountId, start, limit, }) {
123
- return this.getClientInstance()
124
- .request({
125
- path: "/wiki/rest/api/user/memberof",
126
- method: "GET",
127
- query: {
128
- accountId,
129
- start,
130
- limit,
131
- },
132
- })
133
- .then(this.getClientInstance().responseHandler({
134
- 200: {
135
- "application/json": "json",
136
- },
137
- }))
138
- .then(commonHttpClient.castResponse())
139
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getGroupMembershipsForUser.response"))
140
- .then(commonHttpClient.getBody);
141
- }
142
- /**
143
- * Returns a user's email address. This API is only available to apps approved by
144
- * Atlassian, according to these
145
- * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
146
- *
147
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
148
- * Permission to access the Confluence site ('Can use' global permission).
149
- *
150
- * @returns Returned if the requested user's email is returned.
151
- * @path {GET} /wiki/rest/api/user/email
152
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-get
153
- */
154
- getPrivacyUnsafeUserEmail({ accountId, }) {
155
- return this.getClientInstance()
156
- .request({
157
- path: "/wiki/rest/api/user/email",
158
- method: "GET",
159
- query: {
160
- accountId,
161
- },
162
- })
163
- .then(this.getClientInstance().responseHandler({
164
- 200: {
165
- "application/json": "json",
166
- },
167
- }))
168
- .then(commonHttpClient.castResponse())
169
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmail.response"))
170
- .then(commonHttpClient.getBody);
171
- }
172
- /**
173
- * Returns user email addresses for a set of accountIds. This API is only
174
- * available to apps approved by
175
- * Atlassian, according to these
176
- * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
177
- *
178
- * Any accounts which are not available will not be included in the result.
179
- *
180
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
181
- * Permission to access the Confluence site ('Can use' global permission).
182
- *
183
- * @returns Returned if the request is successful.
184
- * @path {GET} /wiki/rest/api/user/email/bulk
185
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-bulk-get
186
- */
187
- getPrivacyUnsafeUserEmailBulk({ accountId, }) {
188
- return this.getClientInstance()
189
- .request({
190
- path: "/wiki/rest/api/user/email/bulk",
191
- method: "GET",
192
- query: {
193
- accountId,
194
- },
195
- })
196
- .then(this.getClientInstance().responseHandler({
197
- 200: {
198
- "application/json": "json",
199
- },
200
- }))
201
- .then(commonHttpClient.castResponse())
202
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmailBulk.response"))
203
- .then(commonHttpClient.getBody);
204
- }
205
- /**
206
- * Returns a user. This includes information about the user, such as the
207
- * display name, account ID, profile picture, and more. The information returned
208
- * may be
209
- * restricted by the user's profile visibility settings.
210
- *
211
- * **Note:** to add, edit, or delete users in your organization, see the
212
- * [user management REST API](/cloud/admin/user-management/about/).
213
- *
214
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
215
- * Permission to access the Confluence site ('Can use' global permission).
216
- *
217
- * @returns Returned if the requested user is returned.
218
- * @path {GET} /wiki/rest/api/user
219
- * @scopes-current read:confluence-user
220
- * @scopes-beta read:content-details:confluence
221
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-get
222
- */
223
- getUser({ accountId, expand, }) {
224
- return this.getClientInstance()
225
- .request({
226
- path: "/wiki/rest/api/user",
227
- method: "GET",
228
- query: {
229
- accountId,
230
- expand,
231
- },
232
- })
233
- .then(this.getClientInstance().responseHandler({
234
- 200: {
235
- "application/json": "json",
236
- },
237
- }))
238
- .then(commonHttpClient.castResponse())
239
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getUser.response"))
240
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Returns information about how anonymous users are represented, like the
19
+ * profile picture and display name.
20
+ *
21
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
22
+ * Permission to access the Confluence site ('Can use' global permission).
23
+ *
24
+ * @returns Returned if the anonymous user representation is returned.
25
+ * @path {GET} /wiki/rest/api/user/anonymous
26
+ * @scopes-current read:confluence-user
27
+ * @scopes-beta read:user:confluence
28
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-anonymous-get
29
+ */
30
+ this.getAnonymousUser = ({ expand, } = {}) => {
31
+ return this.getClientInstance()
32
+ .request({
33
+ path: "/wiki/rest/api/user/anonymous",
34
+ method: "GET",
35
+ query: {
36
+ expand,
37
+ },
38
+ })
39
+ .then(this.getClientInstance().responseHandler({
40
+ 200: {
41
+ "application/json": "json",
42
+ },
43
+ }))
44
+ .then(commonHttpClient.castResponse())
45
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getAnonymousUser.response"))
46
+ .then(commonHttpClient.getBody);
47
+ };
48
+ /**
49
+ * Returns user details for the ids provided in request.
50
+ *
51
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
52
+ * Permission to access the Confluence site ('Can use' global permission).
53
+ *
54
+ * @returns Returned if, the list of users is returned.
55
+ * @path {GET} /wiki/rest/api/user/bulk
56
+ * @scopes-current read:confluence-user
57
+ * @scopes-beta read:content-details:confluence
58
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-bulk-get
59
+ */
60
+ this.getBulkUserLookup = ({ accountId, expand, limit, }) => {
61
+ return this.getClientInstance()
62
+ .request({
63
+ path: "/wiki/rest/api/user/bulk",
64
+ method: "GET",
65
+ query: {
66
+ accountId,
67
+ expand,
68
+ limit,
69
+ },
70
+ })
71
+ .then(this.getClientInstance().responseHandler({
72
+ 200: {
73
+ "application/json": "json",
74
+ },
75
+ }))
76
+ .then(commonHttpClient.castResponse())
77
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getBulkUserLookup.response"))
78
+ .then(commonHttpClient.getBody);
79
+ };
80
+ /**
81
+ * Returns the currently logged-in user. This includes information about
82
+ * the user, like the display name, userKey, account ID, profile picture,
83
+ * and more.
84
+ *
85
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
86
+ * Permission to access the Confluence site ('Can use' global permission).
87
+ *
88
+ * @returns Returned if the current user is returned.
89
+ * @path {GET} /wiki/rest/api/user/current
90
+ * @scopes-current read:confluence-user
91
+ * @scopes-beta read:content-details:confluence
92
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-current-get
93
+ */
94
+ this.getCurrentUser = ({ expand, } = {}) => {
95
+ return this.getClientInstance()
96
+ .request({
97
+ path: "/wiki/rest/api/user/current",
98
+ method: "GET",
99
+ query: {
100
+ expand,
101
+ },
102
+ })
103
+ .then(this.getClientInstance().responseHandler({
104
+ 200: {
105
+ "application/json": "json",
106
+ },
107
+ }))
108
+ .then(commonHttpClient.castResponse())
109
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getCurrentUser.response"))
110
+ .then(commonHttpClient.getBody);
111
+ };
112
+ /**
113
+ * Returns the groups that a user is a member of.
114
+ *
115
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
116
+ * Permission to access the Confluence site ('Can use' global permission).
117
+ *
118
+ * @returns Returned if the requested groups are returned.
119
+ * @path {GET} /wiki/rest/api/user/memberof
120
+ * @scopes-current read:confluence-user
121
+ * @scopes-beta read:user:confluence, read:group:confluence
122
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-memberof-get
123
+ */
124
+ this.getGroupMembershipsForUser = ({ accountId, start, limit, }) => {
125
+ return this.getClientInstance()
126
+ .request({
127
+ path: "/wiki/rest/api/user/memberof",
128
+ method: "GET",
129
+ query: {
130
+ accountId,
131
+ start,
132
+ limit,
133
+ },
134
+ })
135
+ .then(this.getClientInstance().responseHandler({
136
+ 200: {
137
+ "application/json": "json",
138
+ },
139
+ }))
140
+ .then(commonHttpClient.castResponse())
141
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getGroupMembershipsForUser.response"))
142
+ .then(commonHttpClient.getBody);
143
+ };
144
+ /**
145
+ * Returns a user's email address. This API is only available to apps approved by
146
+ * Atlassian, according to these
147
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
148
+ *
149
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
150
+ * Permission to access the Confluence site ('Can use' global permission).
151
+ *
152
+ * @returns Returned if the requested user's email is returned.
153
+ * @path {GET} /wiki/rest/api/user/email
154
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-get
155
+ */
156
+ this.getPrivacyUnsafeUserEmail = ({ accountId, }) => {
157
+ return this.getClientInstance()
158
+ .request({
159
+ path: "/wiki/rest/api/user/email",
160
+ method: "GET",
161
+ query: {
162
+ accountId,
163
+ },
164
+ })
165
+ .then(this.getClientInstance().responseHandler({
166
+ 200: {
167
+ "application/json": "json",
168
+ },
169
+ }))
170
+ .then(commonHttpClient.castResponse())
171
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmail.response"))
172
+ .then(commonHttpClient.getBody);
173
+ };
174
+ /**
175
+ * Returns user email addresses for a set of accountIds. This API is only
176
+ * available to apps approved by
177
+ * Atlassian, according to these
178
+ * [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).
179
+ *
180
+ * Any accounts which are not available will not be included in the result.
181
+ *
182
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
183
+ * Permission to access the Confluence site ('Can use' global permission).
184
+ *
185
+ * @returns Returned if the request is successful.
186
+ * @path {GET} /wiki/rest/api/user/email/bulk
187
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-bulk-get
188
+ */
189
+ this.getPrivacyUnsafeUserEmailBulk = ({ accountId, }) => {
190
+ return this.getClientInstance()
191
+ .request({
192
+ path: "/wiki/rest/api/user/email/bulk",
193
+ method: "GET",
194
+ query: {
195
+ accountId,
196
+ },
197
+ })
198
+ .then(this.getClientInstance().responseHandler({
199
+ 200: {
200
+ "application/json": "json",
201
+ },
202
+ }))
203
+ .then(commonHttpClient.castResponse())
204
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getPrivacyUnsafeUserEmailBulk.response"))
205
+ .then(commonHttpClient.getBody);
206
+ };
207
+ /**
208
+ * Returns a user. This includes information about the user, such as the
209
+ * display name, account ID, profile picture, and more. The information returned
210
+ * may be
211
+ * restricted by the user's profile visibility settings.
212
+ *
213
+ * **Note:** to add, edit, or delete users in your organization, see the
214
+ * [user management REST API](/cloud/admin/user-management/about/).
215
+ *
216
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
217
+ * Permission to access the Confluence site ('Can use' global permission).
218
+ *
219
+ * @returns Returned if the requested user is returned.
220
+ * @path {GET} /wiki/rest/api/user
221
+ * @scopes-current read:confluence-user
222
+ * @scopes-beta read:content-details:confluence
223
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-get
224
+ */
225
+ this.getUser = ({ accountId, expand, }) => {
226
+ return this.getClientInstance()
227
+ .request({
228
+ path: "/wiki/rest/api/user",
229
+ method: "GET",
230
+ query: {
231
+ accountId,
232
+ expand,
233
+ },
234
+ })
235
+ .then(this.getClientInstance().responseHandler({
236
+ 200: {
237
+ "application/json": "json",
238
+ },
239
+ }))
240
+ .then(commonHttpClient.castResponse())
241
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("UsersService.getUser.response"))
242
+ .then(commonHttpClient.getBody);
243
+ };
241
244
  }
242
245
  static initialize() {
243
246
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getUser.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UsersService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB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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,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,kDAAkD,CAAC,CAChE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,sCAA8B;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AAleD,oCAkeC"}
@@ -61,52 +61,51 @@ export declare class BaseConfluenceApiV2Client extends CommonHttpService {
61
61
  client: commonHttpClient.CommonHttpClient;
62
62
  getClient: () => commonHttpClient.CommonHttpClient;
63
63
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors */
64
- ancestors: AncestorsService;
64
+ get ancestors(): AncestorsService;
65
65
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment */
66
- attachment: AttachmentService;
66
+ get attachment(): AttachmentService;
67
67
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post */
68
- blogPost: BlogPostService;
68
+ get blogPost(): BlogPostService;
69
69
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children */
70
- children: ChildrenService;
70
+ get children(): ChildrenService;
71
71
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
72
- classificationLevel: ClassificationLevelService;
72
+ get classificationLevel(): ClassificationLevelService;
73
73
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment */
74
- comment: CommentService;
74
+ get comment(): CommentService;
75
75
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties */
76
- contentProperties: ContentPropertiesService;
76
+ get contentProperties(): ContentPropertiesService;
77
77
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content */
78
- content: ContentService;
78
+ get content(): ContentService;
79
79
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content */
80
- customContent: CustomContentService;
80
+ get customContent(): CustomContentService;
81
81
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database */
82
- database: DatabaseService;
82
+ get database(): DatabaseService;
83
83
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-data-policies */
84
- dataPolicies: DataPoliciesService;
84
+ get dataPolicies(): DataPoliciesService;
85
85
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label */
86
- label: LabelService;
86
+ get label(): LabelService;
87
87
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like */
88
- like: LikeService;
88
+ get like(): LikeService;
89
89
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
90
- operation: OperationService;
90
+ get operation(): OperationService;
91
91
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page */
92
- page: PageService;
92
+ get page(): PageService;
93
93
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link */
94
- smartLink: SmartLinkService;
94
+ get smartLink(): SmartLinkService;
95
95
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions */
96
- spacePermissions: SpacePermissionsService;
96
+ get spacePermissions(): SpacePermissionsService;
97
97
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-properties */
98
- spaceProperties: SpacePropertiesService;
98
+ get spaceProperties(): SpacePropertiesService;
99
99
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space */
100
- space: SpaceService;
100
+ get space(): SpaceService;
101
101
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task */
102
- task: TaskService;
102
+ get task(): TaskService;
103
103
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-user */
104
- user: UserService;
104
+ get user(): UserService;
105
105
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version */
106
- version: VersionService;
106
+ get version(): VersionService;
107
107
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard */
108
- whiteboard: WhiteboardService;
108
+ get whiteboard(): WhiteboardService;
109
109
  constructor(options?: BaseConfluenceApiV2ClientOptions);
110
- static createClientWithServices: typeof commonHttpClient.createClientWithServices;
111
110
  }
112
111
  export type { AbstractPageLinks, BodyBulk, BodySingle, BodyType, ContentProperty, ContentStatus, CustomContentBodyRepresentation, Label, Like, MultiEntityLinks, Operation, OptionalFieldLinks, OptionalFieldMeta, ParentContentType, PrimaryBodyRepresentation, PrimaryBodyRepresentationSingle, SpaceDescription, SpaceIcon, SpaceLinks, SpacePermission, SpaceProperty, SpaceSortOrder, Version, AccountStatus, AccountType, Icon, User, Ancestor, AncestorType, AttachmentBulk, AttachmentLinks, AttachmentSingle, AttachmentSortOrder, AttachmentCommentModel, BlogPostCommentModel, BlogPostInlineCommentModel, ChildrenCommentModel, CommentBodyWrite, CommentLinks, CommentNestedBodyWrite, CommentSortOrder, CreateFooterCommentModel, CreateInlineCommentModel, CustomContentCommentModel, FooterCommentModel, InlineCommentChildrenModel, InlineCommentModel, InlineCommentProperties, InlineCommentResolutionStatus, PageCommentModel, PageInlineCommentModel, UpdateFooterCommentModel, UpdateInlineCommentModel, AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder, BlogPostBodyWrite, BlogPostBulk, BlogPostContentStatus, BlogPostNestedBodyWrite, BlogPostSingle, BlogPostSortOrder, ChildCustomContent, ChildPage, OnlyArchivedAndCurrentContentStatus, ClassificationLevel, ClassificationLevelColor, ClassificationLevelStatus, ContentIdToContentTypeResponse, ContentPropertyCreateRequest, ContentPropertySortOrder, ContentPropertyUpdateRequest, CustomContentBodyBulk, CustomContentBodyRepresentationSingle, CustomContentBodySingle, CustomContentBodyWrite, CustomContentBulk, CustomContentLinks, CustomContentNestedBodyWrite, CustomContentSingle, CustomContentSortOrder, DatabaseLinks, DatabaseSingle, DataPolicyMetadata, DataPolicySpace, PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder, PermittedOperationsResponse, SmartLinkLinks, SmartLinkSingle, SpaceBulk, SpaceDescriptionBodyRepresentation, SpaceSingle, SpaceStatus, SpaceType, SpacePropertyCreateRequest, SpacePropertyUpdateRequest, Task, TaskBodySingle, WhiteboardLinks, WhiteboardSingle, };