@resolution/confluence-api-client 0.5.7 → 0.5.9
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 +16 -0
- package/lib/openapi/v1/models/audit.d.ts +7 -1
- package/lib/openapi/v1/models/audit.js +1 -0
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +11 -3
- package/lib/openapi/v1/models/common.js +2 -1
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -1
- package/lib/openapi/v1/models/contentWatches.js +2 -1
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +6 -3
- package/lib/openapi/v1/models/users.js +1 -1
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +0 -86
- package/lib/openapi/v1/services/ContentRestrictionsService.js +0 -98
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +2 -191
- package/lib/openapi/v1/services/GroupService.js +0 -248
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +6 -6
- package/lib/openapi/v2/services/LabelService.d.ts +6 -0
- package/lib/openapi/v2/services/LabelService.js +6 -0
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +1 -6
- package/lib/openapi/v2/services/SmartLinkService.js +1 -4
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +1 -1
- package/package.json +3 -3
|
@@ -30,24 +30,6 @@ export declare class GroupService extends CommonHttpService {
|
|
|
30
30
|
/** AccountId of the user who needs to be added as member. */
|
|
31
31
|
accountId: AccountId;
|
|
32
32
|
}) => Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Adds a user as a member in a group represented by its groupId
|
|
35
|
-
*
|
|
36
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
37
|
-
* User must be a site admin.
|
|
38
|
-
*
|
|
39
|
-
* @path POST `/wiki/rest/api/group/userByGroupId`
|
|
40
|
-
* @scopes-current write:confluence-groups
|
|
41
|
-
* @scopes-beta write:group:confluence
|
|
42
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-post
|
|
43
|
-
* @param params
|
|
44
|
-
*/
|
|
45
|
-
addUserToGroupByGroupId: ({ groupId, accountId, }: {
|
|
46
|
-
/** GroupId of the group whose membership is updated */
|
|
47
|
-
groupId: string;
|
|
48
|
-
/** AccountId of the user who needs to be added as member. */
|
|
49
|
-
accountId: AccountId;
|
|
50
|
-
}) => Promise<void>;
|
|
51
33
|
/**
|
|
52
34
|
* Creates a new user group.
|
|
53
35
|
*
|
|
@@ -82,73 +64,6 @@ export declare class GroupService extends CommonHttpService {
|
|
|
82
64
|
/** The id of the group. */
|
|
83
65
|
id: string;
|
|
84
66
|
}) => Promise<Group>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns a user group for a given group name.
|
|
87
|
-
*
|
|
88
|
-
* Use updated Get group API
|
|
89
|
-
*
|
|
90
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
91
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
92
|
-
*
|
|
93
|
-
* @deprecated
|
|
94
|
-
* @returns Returned if the requested group is returned.
|
|
95
|
-
* @path GET `/wiki/rest/api/group/{groupName}`
|
|
96
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-get
|
|
97
|
-
* @param params
|
|
98
|
-
*/
|
|
99
|
-
getGroupByName: ({ groupName, }: {
|
|
100
|
-
/**
|
|
101
|
-
* The name of the group. This is the same as the group name shown in
|
|
102
|
-
* the Confluence administration console.
|
|
103
|
-
*/
|
|
104
|
-
groupName: string;
|
|
105
|
-
}) => Promise<Group>;
|
|
106
|
-
/**
|
|
107
|
-
* Returns a user group for a given group name.
|
|
108
|
-
*
|
|
109
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
110
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
111
|
-
*
|
|
112
|
-
* @deprecated
|
|
113
|
-
* @returns Returned if the requested group is returned.
|
|
114
|
-
* @path GET `/wiki/rest/api/group/by-name`
|
|
115
|
-
* @scopes-current read:confluence-groups
|
|
116
|
-
* @scopes-beta read:group:confluence
|
|
117
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-name-get
|
|
118
|
-
* @param params
|
|
119
|
-
*/
|
|
120
|
-
getGroupByQueryParam: ({ name, }: {
|
|
121
|
-
/**
|
|
122
|
-
* The name of the group. This is the same as the group name shown in
|
|
123
|
-
* the Confluence administration console.
|
|
124
|
-
*/
|
|
125
|
-
name: string;
|
|
126
|
-
}) => Promise<Group>;
|
|
127
|
-
/**
|
|
128
|
-
* Returns the users that are members of a group.
|
|
129
|
-
*
|
|
130
|
-
* Use updated Get group API
|
|
131
|
-
*
|
|
132
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
133
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
134
|
-
*
|
|
135
|
-
* @deprecated
|
|
136
|
-
* @returns Returned if the requested users are returned.
|
|
137
|
-
* @path GET `/wiki/rest/api/group/{groupName}/member`
|
|
138
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-member-get
|
|
139
|
-
* @param params
|
|
140
|
-
*/
|
|
141
|
-
getGroupMembers: ({ groupName, start, limit, }: {
|
|
142
|
-
/** The name of the group to be queried for its members. */
|
|
143
|
-
groupName: string;
|
|
144
|
-
/** The starting index of the returned users. */
|
|
145
|
-
start?: number | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* The maximum number of users to return per page.
|
|
148
|
-
* Note, this may be restricted by fixed system limits.
|
|
149
|
-
*/
|
|
150
|
-
limit?: number | undefined;
|
|
151
|
-
}) => Promise<UserArray>;
|
|
152
67
|
/**
|
|
153
68
|
* Returns the users that are members of a group.
|
|
154
69
|
*
|
|
@@ -186,8 +101,8 @@ export declare class GroupService extends CommonHttpService {
|
|
|
186
101
|
*
|
|
187
102
|
* - `operations` returns the operations that the user is allowed to do.
|
|
188
103
|
* - `personalSpace` returns the user's personal space, if it exists.
|
|
189
|
-
* - `isExternalCollaborator`
|
|
190
|
-
*
|
|
104
|
+
* - `isExternalCollaborator`(@deprecated) see `isGuest` in response to find out
|
|
105
|
+
* whether the user is a guest.
|
|
191
106
|
*/
|
|
192
107
|
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
193
108
|
}) => Promise<UserArray>;
|
|
@@ -216,66 +131,6 @@ export declare class GroupService extends CommonHttpService {
|
|
|
216
131
|
/** The group permission level for which to filter results. */
|
|
217
132
|
accessType?: "user" | "admin" | "site-admin" | undefined;
|
|
218
133
|
}) => Promise<GroupArrayWithLinks>;
|
|
219
|
-
/**
|
|
220
|
-
* Returns the users that are members of a group.
|
|
221
|
-
*
|
|
222
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
223
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
224
|
-
*
|
|
225
|
-
* @deprecated
|
|
226
|
-
* @returns Returned if the requested users are returned.
|
|
227
|
-
* @path GET `/wiki/rest/api/group/member`
|
|
228
|
-
* @scopes-current read:confluence-groups
|
|
229
|
-
* @scopes-beta read:group:confluence, read:user:confluence
|
|
230
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-member-get
|
|
231
|
-
* @param params
|
|
232
|
-
*/
|
|
233
|
-
getMembersByQueryParam: ({ name, start, limit, shouldReturnTotalSize, expand, }: {
|
|
234
|
-
/** The name of the group to be queried for its members. */
|
|
235
|
-
name: string;
|
|
236
|
-
/** The starting index of the returned users. */
|
|
237
|
-
start?: number | undefined;
|
|
238
|
-
/**
|
|
239
|
-
* The maximum number of users to return per page.
|
|
240
|
-
* Note, this is restricted by fixed system limit of 200 which is to say if the
|
|
241
|
-
* limit parameter
|
|
242
|
-
* exceeds 200, this API will return a maximum of 200 users per page.
|
|
243
|
-
*/
|
|
244
|
-
limit?: number | undefined;
|
|
245
|
-
/**
|
|
246
|
-
* Whether to include total size parameter in the results.
|
|
247
|
-
* Note, fetching total size property is an expensive operation; use it if your
|
|
248
|
-
* use case needs this value.
|
|
249
|
-
*/
|
|
250
|
-
shouldReturnTotalSize?: boolean | undefined;
|
|
251
|
-
/**
|
|
252
|
-
* A multi-value parameter indicating which properties of the user to
|
|
253
|
-
* expand.
|
|
254
|
-
*
|
|
255
|
-
* - `operations` returns the operations that the user is allowed to do.
|
|
256
|
-
* - `personalSpace` returns the user's personal space, if it exists.
|
|
257
|
-
* - `isExternalCollaborator` returns whether the user is an external
|
|
258
|
-
* collaborator user.
|
|
259
|
-
*/
|
|
260
|
-
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
261
|
-
}) => Promise<UserArray>;
|
|
262
|
-
/**
|
|
263
|
-
* Delete user group.
|
|
264
|
-
*
|
|
265
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
266
|
-
* User must be a site admin.
|
|
267
|
-
*
|
|
268
|
-
* @deprecated
|
|
269
|
-
* @path DELETE `/wiki/rest/api/group`
|
|
270
|
-
* @scopes-current write:confluence-groups
|
|
271
|
-
* @scopes-beta write:group:confluence
|
|
272
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-delete
|
|
273
|
-
* @param params
|
|
274
|
-
*/
|
|
275
|
-
removeGroup: ({ name, }: {
|
|
276
|
-
/** Name of the group to delete. */
|
|
277
|
-
name: string;
|
|
278
|
-
}) => Promise<void>;
|
|
279
134
|
/**
|
|
280
135
|
* Delete user group.
|
|
281
136
|
*
|
|
@@ -337,50 +192,6 @@ export declare class GroupService extends CommonHttpService {
|
|
|
337
192
|
*/
|
|
338
193
|
accountId?: string | undefined;
|
|
339
194
|
}) => Promise<void>;
|
|
340
|
-
/**
|
|
341
|
-
* Remove user as a member from a group.
|
|
342
|
-
*
|
|
343
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
344
|
-
* User must be a site admin.
|
|
345
|
-
*
|
|
346
|
-
* @path DELETE `/wiki/rest/api/group/userByGroupId`
|
|
347
|
-
* @scopes-current write:confluence-groups
|
|
348
|
-
* @scopes-beta write:group:confluence
|
|
349
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-delete
|
|
350
|
-
* @param params
|
|
351
|
-
*/
|
|
352
|
-
removeMemberFromGroupByGroupId: ({ groupId, key, username, accountId, }: {
|
|
353
|
-
/** Id of the group whose membership is updated. */
|
|
354
|
-
groupId: string;
|
|
355
|
-
/**
|
|
356
|
-
* This parameter is no longer available and will be removed from the
|
|
357
|
-
* documentation soon.
|
|
358
|
-
* Use `accountId` instead.
|
|
359
|
-
* See the [deprecation
|
|
360
|
-
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
361
|
-
* for details.
|
|
362
|
-
*
|
|
363
|
-
* @deprecated
|
|
364
|
-
*/
|
|
365
|
-
key?: string | undefined;
|
|
366
|
-
/**
|
|
367
|
-
* This parameter is no longer available and will be removed from the
|
|
368
|
-
* documentation soon.
|
|
369
|
-
* Use `accountId` instead.
|
|
370
|
-
* See the [deprecation
|
|
371
|
-
* notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
372
|
-
* for details.
|
|
373
|
-
*
|
|
374
|
-
* @deprecated
|
|
375
|
-
*/
|
|
376
|
-
username?: string | undefined;
|
|
377
|
-
/**
|
|
378
|
-
* The account ID of the user. The accountId uniquely identifies the user across
|
|
379
|
-
* all Atlassian products.
|
|
380
|
-
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
381
|
-
*/
|
|
382
|
-
accountId?: string | undefined;
|
|
383
|
-
}) => Promise<void>;
|
|
384
195
|
/**
|
|
385
196
|
* Get search results of groups by partial query provided.
|
|
386
197
|
*
|
|
@@ -49,33 +49,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
49
49
|
})
|
|
50
50
|
.then(commonHttpClient.discardResult);
|
|
51
51
|
};
|
|
52
|
-
/**
|
|
53
|
-
* Adds a user as a member in a group represented by its groupId
|
|
54
|
-
*
|
|
55
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
56
|
-
* User must be a site admin.
|
|
57
|
-
*
|
|
58
|
-
* @path POST `/wiki/rest/api/group/userByGroupId`
|
|
59
|
-
* @scopes-current write:confluence-groups
|
|
60
|
-
* @scopes-beta write:group:confluence
|
|
61
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-post
|
|
62
|
-
* @param params
|
|
63
|
-
*/
|
|
64
|
-
this.addUserToGroupByGroupId = ({ groupId, accountId, }) => {
|
|
65
|
-
return this.getClientInstance()
|
|
66
|
-
.request({
|
|
67
|
-
path: "/wiki/rest/api/group/userByGroupId",
|
|
68
|
-
method: "POST",
|
|
69
|
-
query: {
|
|
70
|
-
groupId,
|
|
71
|
-
},
|
|
72
|
-
headers: {
|
|
73
|
-
"Content-Type": "application/json",
|
|
74
|
-
},
|
|
75
|
-
body: accountId,
|
|
76
|
-
})
|
|
77
|
-
.then(commonHttpClient.discardResult);
|
|
78
|
-
};
|
|
79
52
|
/**
|
|
80
53
|
* Creates a new user group.
|
|
81
54
|
*
|
|
@@ -139,106 +112,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
139
112
|
.then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupService.getGroupByGroupId.response"))
|
|
140
113
|
.then(commonHttpClient.getBody);
|
|
141
114
|
};
|
|
142
|
-
/**
|
|
143
|
-
* Returns a user group for a given group name.
|
|
144
|
-
*
|
|
145
|
-
* Use updated Get group API
|
|
146
|
-
*
|
|
147
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
148
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
149
|
-
*
|
|
150
|
-
* @deprecated
|
|
151
|
-
* @returns Returned if the requested group is returned.
|
|
152
|
-
* @path GET `/wiki/rest/api/group/{groupName}`
|
|
153
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-get
|
|
154
|
-
* @param params
|
|
155
|
-
*/
|
|
156
|
-
this.getGroupByName = ({ groupName, }) => {
|
|
157
|
-
return this.getClientInstance()
|
|
158
|
-
.request({
|
|
159
|
-
path: "/wiki/rest/api/group/{groupName}",
|
|
160
|
-
method: "GET",
|
|
161
|
-
pathParams: {
|
|
162
|
-
groupName,
|
|
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("GroupService.getGroupByName.response"))
|
|
172
|
-
.then(commonHttpClient.getBody);
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Returns a user group for a given group name.
|
|
176
|
-
*
|
|
177
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
178
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
179
|
-
*
|
|
180
|
-
* @deprecated
|
|
181
|
-
* @returns Returned if the requested group is returned.
|
|
182
|
-
* @path GET `/wiki/rest/api/group/by-name`
|
|
183
|
-
* @scopes-current read:confluence-groups
|
|
184
|
-
* @scopes-beta read:group:confluence
|
|
185
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-name-get
|
|
186
|
-
* @param params
|
|
187
|
-
*/
|
|
188
|
-
this.getGroupByQueryParam = ({ name, }) => {
|
|
189
|
-
return this.getClientInstance()
|
|
190
|
-
.request({
|
|
191
|
-
path: "/wiki/rest/api/group/by-name",
|
|
192
|
-
method: "GET",
|
|
193
|
-
query: {
|
|
194
|
-
name,
|
|
195
|
-
},
|
|
196
|
-
})
|
|
197
|
-
.then(this.getClientInstance().responseHandler({
|
|
198
|
-
200: {
|
|
199
|
-
"application/json": "json",
|
|
200
|
-
},
|
|
201
|
-
}))
|
|
202
|
-
.then(commonHttpClient.castResponse())
|
|
203
|
-
.then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupService.getGroupByQueryParam.response"))
|
|
204
|
-
.then(commonHttpClient.getBody);
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* Returns the users that are members of a group.
|
|
208
|
-
*
|
|
209
|
-
* Use updated Get group API
|
|
210
|
-
*
|
|
211
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
212
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
213
|
-
*
|
|
214
|
-
* @deprecated
|
|
215
|
-
* @returns Returned if the requested users are returned.
|
|
216
|
-
* @path GET `/wiki/rest/api/group/{groupName}/member`
|
|
217
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-member-get
|
|
218
|
-
* @param params
|
|
219
|
-
*/
|
|
220
|
-
this.getGroupMembers = ({ groupName, start, limit, }) => {
|
|
221
|
-
return this.getClientInstance()
|
|
222
|
-
.request({
|
|
223
|
-
path: "/wiki/rest/api/group/{groupName}/member",
|
|
224
|
-
method: "GET",
|
|
225
|
-
pathParams: {
|
|
226
|
-
groupName,
|
|
227
|
-
},
|
|
228
|
-
query: {
|
|
229
|
-
start,
|
|
230
|
-
limit,
|
|
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("GroupService.getGroupMembers.response"))
|
|
240
|
-
.then(commonHttpClient.getBody);
|
|
241
|
-
};
|
|
242
115
|
/**
|
|
243
116
|
* Returns the users that are members of a group.
|
|
244
117
|
*
|
|
@@ -319,73 +192,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
319
192
|
.then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupService.getGroups.response"))
|
|
320
193
|
.then(commonHttpClient.getBody);
|
|
321
194
|
};
|
|
322
|
-
/**
|
|
323
|
-
* Returns the users that are members of a group.
|
|
324
|
-
*
|
|
325
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
326
|
-
* Permission to access the Confluence site ('Can use' global permission).
|
|
327
|
-
*
|
|
328
|
-
* @deprecated
|
|
329
|
-
* @returns Returned if the requested users are returned.
|
|
330
|
-
* @path GET `/wiki/rest/api/group/member`
|
|
331
|
-
* @scopes-current read:confluence-groups
|
|
332
|
-
* @scopes-beta read:group:confluence, read:user:confluence
|
|
333
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-member-get
|
|
334
|
-
* @param params
|
|
335
|
-
*/
|
|
336
|
-
this.getMembersByQueryParam = ({ name, start, limit, shouldReturnTotalSize, expand, }) => {
|
|
337
|
-
return this.getClientInstance()
|
|
338
|
-
.request({
|
|
339
|
-
path: "/wiki/rest/api/group/member",
|
|
340
|
-
method: "GET",
|
|
341
|
-
query: {
|
|
342
|
-
name,
|
|
343
|
-
start,
|
|
344
|
-
limit,
|
|
345
|
-
shouldReturnTotalSize,
|
|
346
|
-
expand,
|
|
347
|
-
},
|
|
348
|
-
parameters: {
|
|
349
|
-
query: {
|
|
350
|
-
expand: {
|
|
351
|
-
explode: false,
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
})
|
|
356
|
-
.then(this.getClientInstance().responseHandler({
|
|
357
|
-
200: {
|
|
358
|
-
"application/json": "json",
|
|
359
|
-
},
|
|
360
|
-
}))
|
|
361
|
-
.then(commonHttpClient.castResponse())
|
|
362
|
-
.then(validationSchemaStorage_1.validationSchemaStorage.validator("GroupService.getMembersByQueryParam.response"))
|
|
363
|
-
.then(commonHttpClient.getBody);
|
|
364
|
-
};
|
|
365
|
-
/**
|
|
366
|
-
* Delete user group.
|
|
367
|
-
*
|
|
368
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
369
|
-
* User must be a site admin.
|
|
370
|
-
*
|
|
371
|
-
* @deprecated
|
|
372
|
-
* @path DELETE `/wiki/rest/api/group`
|
|
373
|
-
* @scopes-current write:confluence-groups
|
|
374
|
-
* @scopes-beta write:group:confluence
|
|
375
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-delete
|
|
376
|
-
* @param params
|
|
377
|
-
*/
|
|
378
|
-
this.removeGroup = ({ name, }) => {
|
|
379
|
-
return this.getClientInstance()
|
|
380
|
-
.request({
|
|
381
|
-
path: "/wiki/rest/api/group",
|
|
382
|
-
method: "DELETE",
|
|
383
|
-
query: {
|
|
384
|
-
name,
|
|
385
|
-
},
|
|
386
|
-
})
|
|
387
|
-
.then(commonHttpClient.discardResult);
|
|
388
|
-
};
|
|
389
195
|
/**
|
|
390
196
|
* Delete user group.
|
|
391
197
|
*
|
|
@@ -436,32 +242,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
436
242
|
})
|
|
437
243
|
.then(commonHttpClient.discardResult);
|
|
438
244
|
};
|
|
439
|
-
/**
|
|
440
|
-
* Remove user as a member from a group.
|
|
441
|
-
*
|
|
442
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
443
|
-
* User must be a site admin.
|
|
444
|
-
*
|
|
445
|
-
* @path DELETE `/wiki/rest/api/group/userByGroupId`
|
|
446
|
-
* @scopes-current write:confluence-groups
|
|
447
|
-
* @scopes-beta write:group:confluence
|
|
448
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-delete
|
|
449
|
-
* @param params
|
|
450
|
-
*/
|
|
451
|
-
this.removeMemberFromGroupByGroupId = ({ groupId, key, username, accountId, }) => {
|
|
452
|
-
return this.getClientInstance()
|
|
453
|
-
.request({
|
|
454
|
-
path: "/wiki/rest/api/group/userByGroupId",
|
|
455
|
-
method: "DELETE",
|
|
456
|
-
query: {
|
|
457
|
-
groupId,
|
|
458
|
-
key,
|
|
459
|
-
username,
|
|
460
|
-
accountId,
|
|
461
|
-
},
|
|
462
|
-
})
|
|
463
|
-
.then(commonHttpClient.discardResult);
|
|
464
|
-
};
|
|
465
245
|
/**
|
|
466
246
|
* Get search results of groups by partial query provided.
|
|
467
247
|
*
|
|
@@ -516,20 +296,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
516
296
|
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserArray"),
|
|
517
297
|
})
|
|
518
298
|
.describe("GroupService.getGroupMembersByGroupId.response"));
|
|
519
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.getGroupByName.response", zod_1.z
|
|
520
|
-
.object({
|
|
521
|
-
status: zod_1.z.literal(200),
|
|
522
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
523
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Group"),
|
|
524
|
-
})
|
|
525
|
-
.describe("GroupService.getGroupByName.response"));
|
|
526
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.getGroupMembers.response", zod_1.z
|
|
527
|
-
.object({
|
|
528
|
-
status: zod_1.z.literal(200),
|
|
529
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
530
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserArray"),
|
|
531
|
-
})
|
|
532
|
-
.describe("GroupService.getGroupMembers.response"));
|
|
533
299
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.getGroupByGroupId.response", zod_1.z
|
|
534
300
|
.object({
|
|
535
301
|
status: zod_1.z.literal(200),
|
|
@@ -537,20 +303,6 @@ class GroupService extends CommonHttpService_1.CommonHttpService {
|
|
|
537
303
|
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Group"),
|
|
538
304
|
})
|
|
539
305
|
.describe("GroupService.getGroupByGroupId.response"));
|
|
540
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.getGroupByQueryParam.response", zod_1.z
|
|
541
|
-
.object({
|
|
542
|
-
status: zod_1.z.literal(200),
|
|
543
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
544
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Group"),
|
|
545
|
-
})
|
|
546
|
-
.describe("GroupService.getGroupByQueryParam.response"));
|
|
547
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.getMembersByQueryParam.response", zod_1.z
|
|
548
|
-
.object({
|
|
549
|
-
status: zod_1.z.literal(200),
|
|
550
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
551
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserArray"),
|
|
552
|
-
})
|
|
553
|
-
.describe("GroupService.getMembersByQueryParam.response"));
|
|
554
306
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("GroupService.searchGroups.response", zod_1.z
|
|
555
307
|
.object({
|
|
556
308
|
status: zod_1.z.literal(200),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/GroupService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAK0B;AAE1B,wEAAqE;AACrE;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,qCAAiB;IAAnD;;QACE;;;;;;;;;;;;WAYG;QACH,mBAAc,GAAG,CAAC,EAChB,IAAI,EACJ,SAAS,GAMV,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2BAA2B;gBACjC,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE;oBACL,IAAI;iBACL;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,SAAS;aAChB,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF
|
|
1
|
+
{"version":3,"file":"GroupService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/GroupService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAK0B;AAE1B,wEAAqE;AACrE;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,qCAAiB;IAAnD;;QACE;;;;;;;;;;;;WAYG;QACH,mBAAc,GAAG,CAAC,EAChB,IAAI,EACJ,SAAS,GAMV,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2BAA2B;gBACjC,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE;oBACL,IAAI;iBACL;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,SAAS;aAChB,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;;;WAYG;QACH,gBAAW,G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B,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,yCAAyC,CAAC,CACvD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,oCAAoC,EACpC,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,oCAAoC,CAAC,CAClD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAteD,oCAseC"}
|
|
@@ -53,8 +53,8 @@ export declare class UsersService extends CommonHttpService {
|
|
|
53
53
|
*
|
|
54
54
|
* - `operations` returns the operations that the user is allowed to do.
|
|
55
55
|
* - `personalSpace` returns the user's personal space, if it exists.
|
|
56
|
-
* - `isExternalCollaborator`
|
|
57
|
-
*
|
|
56
|
+
* - `isExternalCollaborator`(@deprecated) use `isGuest` instead to return
|
|
57
|
+
* whether the user is a guest.
|
|
58
58
|
*/
|
|
59
59
|
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
60
60
|
}) => Promise<BulkUserLookupArray>;
|
|
@@ -80,8 +80,8 @@ export declare class UsersService extends CommonHttpService {
|
|
|
80
80
|
*
|
|
81
81
|
* - `operations` returns the operations that the user is allowed to do.
|
|
82
82
|
* - `personalSpace` returns the user's personal space, if it exists.
|
|
83
|
-
* - `isExternalCollaborator`
|
|
84
|
-
*
|
|
83
|
+
* - `isExternalCollaborator`(@deprecated) see `isGuest` in response to find out
|
|
84
|
+
* whether the user is a guest.
|
|
85
85
|
*/
|
|
86
86
|
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
87
87
|
}) => Promise<UserV1 | null>;
|
|
@@ -186,8 +186,8 @@ export declare class UsersService extends CommonHttpService {
|
|
|
186
186
|
*
|
|
187
187
|
* - `operations` returns the operations that the user is allowed to do.
|
|
188
188
|
* - `personalSpace` returns the user's personal space, if it exists.
|
|
189
|
-
* - `isExternalCollaborator`
|
|
190
|
-
*
|
|
189
|
+
* - `isExternalCollaborator`(@deprecated) see `isGuest` in response to find out
|
|
190
|
+
* whether the user is a guest.
|
|
191
191
|
*/
|
|
192
192
|
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
193
193
|
}) => Promise<UserV1 | null>;
|
|
@@ -13,6 +13,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
13
13
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
14
14
|
* Permission to view the parent content of the attachment and its corresponding
|
|
15
15
|
* space.
|
|
16
|
+
* Only labels that the user has permission to view will be returned.
|
|
16
17
|
*
|
|
17
18
|
* @returns Returned if the requested labels are returned.
|
|
18
19
|
* @path GET `/attachments/{id}/labels`
|
|
@@ -52,6 +53,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
52
53
|
*
|
|
53
54
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
54
55
|
* Permission to view the content of the blog post and its corresponding space.
|
|
56
|
+
* Only labels that the user has permission to view will be returned.
|
|
55
57
|
*
|
|
56
58
|
* @returns Returned if the requested labels are returned.
|
|
57
59
|
* @path GET `/blogposts/{id}/labels`
|
|
@@ -92,6 +94,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
92
94
|
*
|
|
93
95
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
94
96
|
* Permission to view the custom content and its corresponding space.
|
|
97
|
+
* Only labels that the user has permission to view will be returned.
|
|
95
98
|
*
|
|
96
99
|
* @returns Returned if the requested labels are returned.
|
|
97
100
|
* @path GET `/custom-content/{id}/labels`
|
|
@@ -174,6 +177,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
174
177
|
*
|
|
175
178
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
176
179
|
* Permission to view the content of the page and its corresponding space.
|
|
180
|
+
* Only labels that the user has permission to view will be returned.
|
|
177
181
|
*
|
|
178
182
|
* @returns Returned if the requested labels are returned.
|
|
179
183
|
* @path GET `/pages/{id}/labels`
|
|
@@ -214,6 +218,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
214
218
|
*
|
|
215
219
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
216
220
|
* Permission to view the space.
|
|
221
|
+
* Only labels that the user has permission to view will be returned.
|
|
217
222
|
*
|
|
218
223
|
* @returns Returned if the requested labels are returned.
|
|
219
224
|
* @path GET `/spaces/{id}/content/labels`
|
|
@@ -253,6 +258,7 @@ export declare class LabelService extends CommonHttpService {
|
|
|
253
258
|
*
|
|
254
259
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
255
260
|
* Permission to view the space.
|
|
261
|
+
* Only labels that the user has permission to view will be returned.
|
|
256
262
|
*
|
|
257
263
|
* @returns Returned if the requested labels are returned.
|
|
258
264
|
* @path GET `/spaces/{id}/labels`
|