@resolution/confluence-api-client 0.4.3 → 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.
- package/CHANGELOG.md +22 -0
- package/README.md +4 -0
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- 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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAMyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UsersService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAMyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IAAnD;;QACE;;;;;;;;;;;;WAYG;QACH,qBAAgB,GAAG,CAAC,EAClB,MAAM,MASJ,EAAE,EAA0B,EAAE;YAChC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,+BAA+B;gBACrC,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE;oBACL,MAAM;iBACP;aACF,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,wCAAwC,CACzC,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;WAWG;QACH,sBAAiB,GAAG,CAAC,EACnB,SAAS,EACT,MAAM,EACN,KAAK,GAoBN,EAA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AAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,qDAAqD,EACrD,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,2BAA2B,CAAC;SAChE,CAAC;aACD,QAAQ,CAAC,qDAAqD,CAAC,CACnE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,kDAAkD,EAClD,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,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"}
|
|
@@ -10,8 +10,6 @@ export type AccountType = "atlassian" | "app" | "customer" | "unknown";
|
|
|
10
10
|
*/
|
|
11
11
|
export interface Icon extends Record<string, unknown> {
|
|
12
12
|
path: string;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
13
|
isDefault: boolean;
|
|
16
14
|
}
|
|
17
15
|
export interface User extends Record<string, unknown> {
|
|
@@ -13,8 +13,6 @@ function registerUserValidationSchemas(validationSchemaStorage) {
|
|
|
13
13
|
validationSchemaStorage.register("Icon", zod_1.z
|
|
14
14
|
.object({
|
|
15
15
|
path: zod_1.z.string(),
|
|
16
|
-
width: zod_1.z.number().int(),
|
|
17
|
-
height: zod_1.z.number().int(),
|
|
18
16
|
isDefault: zod_1.z.boolean(),
|
|
19
17
|
})
|
|
20
18
|
.catchall(zod_1.z.unknown())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/openapi/v2/models/user.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/openapi/v2/models/user.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAiDzC,SAAgB,6BAA6B,CAC3C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,eAAe,EACf,OAAC;SACE,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;SACjD,QAAQ,CAAC,eAAe,CAAC,CAC7B,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,aAAa,EACb,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAC5E,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,MAAM,EACN,OAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;KACvB,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,MAAM,CAAC,CACpB,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,MAAM,EACN,OAAC;SACE,MAAM,CAAC;QACN,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,sBAAsB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC9C,aAAa,EAAE,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;QACvE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,WAAW,EAAE,uBAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;QACnE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,cAAc,EAAE,OAAC;aACd,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC9C,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,MAAM,CAAC,CACpB,CAAC;AACJ,CAAC;AA3CD,sEA2CC"}
|
|
@@ -25,16 +25,16 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
25
25
|
* @scopes-current read:content.metadata:confluence
|
|
26
26
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-databases-id-ancestors-get
|
|
27
27
|
*/
|
|
28
|
-
getDatabaseAncestors({ id, limit, }: {
|
|
28
|
+
getDatabaseAncestors: ({ id, limit, }: {
|
|
29
29
|
/** The ID of the database. */
|
|
30
30
|
id: number;
|
|
31
31
|
/**
|
|
32
32
|
* Maximum number of items per result to return. If more results exist, call the
|
|
33
33
|
* endpoint with the highest ancestor's ID to fetch the next set of results.
|
|
34
34
|
*/
|
|
35
|
-
limit?: number;
|
|
36
|
-
})
|
|
37
|
-
results?: Ancestor[];
|
|
35
|
+
limit?: number | undefined;
|
|
36
|
+
}) => Promise<{
|
|
37
|
+
results?: Ancestor[] | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
[key: string]: unknown;
|
|
40
40
|
}>;
|
|
@@ -59,17 +59,17 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
59
59
|
* @scopes-current read:content.metadata:confluence
|
|
60
60
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-pages-id-ancestors-get
|
|
61
61
|
*/
|
|
62
|
-
getPageAncestors({ id, limit, }: {
|
|
62
|
+
getPageAncestors: ({ id, limit, }: {
|
|
63
63
|
/** The ID of the page. */
|
|
64
64
|
id: number;
|
|
65
65
|
/**
|
|
66
66
|
* Maximum number of pages per result to return. If more results exist, call this
|
|
67
67
|
* endpoint with the highest ancestor's ID to fetch the next set of results.
|
|
68
68
|
*/
|
|
69
|
-
limit?: number;
|
|
70
|
-
})
|
|
71
|
-
results?: Ancestor[];
|
|
72
|
-
_links?: MultiEntityLinks;
|
|
69
|
+
limit?: number | undefined;
|
|
70
|
+
}) => Promise<{
|
|
71
|
+
results?: Ancestor[] | undefined;
|
|
72
|
+
_links?: MultiEntityLinks | undefined;
|
|
73
73
|
} & {
|
|
74
74
|
[key: string]: unknown;
|
|
75
75
|
}>;
|
|
@@ -96,16 +96,16 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
96
96
|
* @scopes-current read:content.metadata:confluence
|
|
97
97
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-embeds-id-ancestors-get
|
|
98
98
|
*/
|
|
99
|
-
getSmartLinkAncestors({ id, limit, }: {
|
|
99
|
+
getSmartLinkAncestors: ({ id, limit, }: {
|
|
100
100
|
/** The ID of the Smart Link in the content tree. */
|
|
101
101
|
id: number;
|
|
102
102
|
/**
|
|
103
103
|
* Maximum number of items per result to return. If more results exist, call the
|
|
104
104
|
* endpoint with the highest ancestor's ID to fetch the next set of results.
|
|
105
105
|
*/
|
|
106
|
-
limit?: number;
|
|
107
|
-
})
|
|
108
|
-
results?: Ancestor[];
|
|
106
|
+
limit?: number | undefined;
|
|
107
|
+
}) => Promise<{
|
|
108
|
+
results?: Ancestor[] | undefined;
|
|
109
109
|
} & {
|
|
110
110
|
[key: string]: unknown;
|
|
111
111
|
}>;
|
|
@@ -131,16 +131,16 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
131
131
|
* @scopes-current read:content.metadata:confluence
|
|
132
132
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-whiteboards-id-ancestors-get
|
|
133
133
|
*/
|
|
134
|
-
getWhiteboardAncestors({ id, limit, }: {
|
|
134
|
+
getWhiteboardAncestors: ({ id, limit, }: {
|
|
135
135
|
/** The ID of the whiteboard. */
|
|
136
136
|
id: number;
|
|
137
137
|
/**
|
|
138
138
|
* Maximum number of items per result to return. If more results exist, call the
|
|
139
139
|
* endpoint with the highest ancestor's ID to fetch the next set of results.
|
|
140
140
|
*/
|
|
141
|
-
limit?: number;
|
|
142
|
-
})
|
|
143
|
-
results?: Ancestor[];
|
|
141
|
+
limit?: number | undefined;
|
|
142
|
+
}) => Promise<{
|
|
143
|
+
results?: Ancestor[] | undefined;
|
|
144
144
|
} & {
|
|
145
145
|
[key: string]: unknown;
|
|
146
146
|
}>;
|