confluence.js 2.0.0-dev20250512202536 → 2.1.0
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 +52 -2
- package/README.md +145 -183
- package/dist/cjs/api/analytics.cjs.map +1 -1
- package/dist/cjs/api/audit.cjs.map +1 -1
- package/dist/cjs/api/content.cjs +0 -5
- package/dist/cjs/api/content.cjs.map +1 -1
- package/dist/cjs/api/contentAttachments.cjs +1 -0
- package/dist/cjs/api/contentAttachments.cjs.map +1 -1
- package/dist/cjs/api/contentBody.cjs +18 -0
- package/dist/cjs/api/contentBody.cjs.map +1 -1
- package/dist/cjs/api/contentChildrenAndDescendants.cjs +2 -0
- package/dist/cjs/api/contentChildrenAndDescendants.cjs.map +1 -1
- package/dist/cjs/api/contentComments.cjs +1 -0
- package/dist/cjs/api/contentComments.cjs.map +1 -1
- package/dist/cjs/api/contentLabels.cjs.map +1 -1
- package/dist/cjs/api/contentMacroBody.cjs.map +1 -1
- package/dist/cjs/api/contentPermissions.cjs.map +1 -1
- package/dist/cjs/api/contentProperties.cjs +1 -0
- package/dist/cjs/api/contentProperties.cjs.map +1 -1
- package/dist/cjs/api/contentRestrictions.cjs.map +1 -1
- package/dist/cjs/api/contentStates.cjs +13 -0
- package/dist/cjs/api/contentStates.cjs.map +1 -1
- package/dist/cjs/api/contentVersions.cjs.map +1 -1
- package/dist/cjs/api/contentWatches.cjs.map +1 -1
- package/dist/cjs/api/dynamicModules.cjs.map +1 -1
- package/dist/cjs/api/experimental.cjs.map +1 -1
- package/dist/cjs/api/group.cjs +18 -17
- package/dist/cjs/api/group.cjs.map +1 -1
- package/dist/cjs/api/index.cjs +2 -0
- package/dist/cjs/api/index.cjs.map +1 -1
- package/dist/cjs/api/inlineTasks.cjs +1 -0
- package/dist/cjs/api/inlineTasks.cjs.map +1 -1
- package/dist/cjs/api/labelInfo.cjs.map +1 -1
- package/dist/cjs/api/longRunningTask.cjs +1 -0
- package/dist/cjs/api/longRunningTask.cjs.map +1 -1
- package/dist/cjs/api/models/labeledContentType.cjs.map +1 -1
- package/dist/cjs/api/relation.cjs.map +1 -1
- package/dist/cjs/api/search.cjs +1 -0
- package/dist/cjs/api/search.cjs.map +1 -1
- package/dist/cjs/api/settings.cjs.map +1 -1
- package/dist/cjs/api/space.cjs +4 -2
- package/dist/cjs/api/space.cjs.map +1 -1
- package/dist/cjs/api/spacePermissions.cjs.map +1 -1
- package/dist/cjs/api/spaceProperties.cjs +1 -0
- package/dist/cjs/api/spaceProperties.cjs.map +1 -1
- package/dist/cjs/api/spaceSettings.cjs.map +1 -1
- package/dist/cjs/api/template.cjs.map +1 -1
- package/dist/cjs/api/themes.cjs.map +1 -1
- package/dist/cjs/api/userProperties.cjs +56 -0
- package/dist/cjs/api/userProperties.cjs.map +1 -0
- package/dist/cjs/api/users.cjs.map +1 -1
- package/dist/cjs/clients/baseClient.cjs.map +1 -1
- package/dist/cjs/clients/confluenceClient.cjs +6 -0
- package/dist/cjs/clients/confluenceClient.cjs.map +1 -1
- package/dist/cjs/config.cjs +3 -1
- package/dist/cjs/config.cjs.map +1 -1
- package/dist/cjs/paramSerializer.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authenticationService.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authentications/createBasicAuthenticationToken.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.cjs +1 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/base64Encoder.cjs.map +1 -1
- package/dist/esm/api/analytics.mjs.map +1 -1
- package/dist/esm/api/audit.mjs.map +1 -1
- package/dist/esm/api/content.mjs +0 -5
- package/dist/esm/api/content.mjs.map +1 -1
- package/dist/esm/api/contentAttachments.mjs +1 -0
- package/dist/esm/api/contentAttachments.mjs.map +1 -1
- package/dist/esm/api/contentBody.mjs +18 -0
- package/dist/esm/api/contentBody.mjs.map +1 -1
- package/dist/esm/api/contentChildrenAndDescendants.mjs +2 -0
- package/dist/esm/api/contentChildrenAndDescendants.mjs.map +1 -1
- package/dist/esm/api/contentComments.mjs +1 -0
- package/dist/esm/api/contentComments.mjs.map +1 -1
- package/dist/esm/api/contentLabels.mjs.map +1 -1
- package/dist/esm/api/contentMacroBody.mjs.map +1 -1
- package/dist/esm/api/contentPermissions.mjs.map +1 -1
- package/dist/esm/api/contentProperties.mjs +1 -0
- package/dist/esm/api/contentProperties.mjs.map +1 -1
- package/dist/esm/api/contentRestrictions.mjs.map +1 -1
- package/dist/esm/api/contentStates.mjs +13 -0
- package/dist/esm/api/contentStates.mjs.map +1 -1
- package/dist/esm/api/contentVersions.mjs.map +1 -1
- package/dist/esm/api/contentWatches.mjs.map +1 -1
- package/dist/esm/api/dynamicModules.mjs.map +1 -1
- package/dist/esm/api/experimental.mjs.map +1 -1
- package/dist/esm/api/group.mjs +18 -17
- package/dist/esm/api/group.mjs.map +1 -1
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/index.mjs.map +1 -1
- package/dist/esm/api/inlineTasks.mjs +1 -0
- package/dist/esm/api/inlineTasks.mjs.map +1 -1
- package/dist/esm/api/labelInfo.mjs.map +1 -1
- package/dist/esm/api/longRunningTask.mjs +1 -0
- package/dist/esm/api/longRunningTask.mjs.map +1 -1
- package/dist/esm/api/models/labeledContentType.mjs.map +1 -1
- package/dist/esm/api/relation.mjs.map +1 -1
- package/dist/esm/api/search.mjs +1 -0
- package/dist/esm/api/search.mjs.map +1 -1
- package/dist/esm/api/settings.mjs.map +1 -1
- package/dist/esm/api/space.mjs +4 -2
- package/dist/esm/api/space.mjs.map +1 -1
- package/dist/esm/api/spacePermissions.mjs.map +1 -1
- package/dist/esm/api/spaceProperties.mjs +1 -0
- package/dist/esm/api/spaceProperties.mjs.map +1 -1
- package/dist/esm/api/spaceSettings.mjs.map +1 -1
- package/dist/esm/api/template.mjs.map +1 -1
- package/dist/esm/api/themes.mjs.map +1 -1
- package/dist/esm/api/userProperties.mjs +54 -0
- package/dist/esm/api/userProperties.mjs.map +1 -0
- package/dist/esm/api/users.mjs.map +1 -1
- package/dist/esm/clients/baseClient.mjs.map +1 -1
- package/dist/esm/clients/confluenceClient.mjs +6 -0
- package/dist/esm/clients/confluenceClient.mjs.map +1 -1
- package/dist/esm/config.mjs +3 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/paramSerializer.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authenticationService.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authentications/createBasicAuthenticationToken.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.mjs +1 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.mjs.map +1 -1
- package/dist/esm/services/authenticationService/base64Encoder.mjs.map +1 -1
- package/dist/esm/types/api/analytics.d.ts +1 -1
- package/dist/esm/types/api/audit.d.ts +3 -3
- package/dist/esm/types/api/content.d.ts +33 -7
- package/dist/esm/types/api/contentAttachments.d.ts +5 -1
- package/dist/esm/types/api/contentBody.d.ts +73 -7
- package/dist/esm/types/api/contentChildrenAndDescendants.d.ts +37 -5
- package/dist/esm/types/api/contentComments.d.ts +5 -0
- package/dist/esm/types/api/contentLabels.d.ts +17 -9
- package/dist/esm/types/api/contentMacroBody.d.ts +79 -1
- package/dist/esm/types/api/contentPermissions.d.ts +1 -1
- package/dist/esm/types/api/contentProperties.d.ts +25 -0
- package/dist/esm/types/api/contentRestrictions.d.ts +19 -7
- package/dist/esm/types/api/contentStates.d.ts +23 -5
- package/dist/esm/types/api/contentVersions.d.ts +9 -1
- package/dist/esm/types/api/contentWatches.d.ts +1 -1
- package/dist/esm/types/api/dynamicModules.d.ts +1 -1
- package/dist/esm/types/api/experimental.d.ts +21 -1
- package/dist/esm/types/api/group.d.ts +47 -27
- package/dist/esm/types/api/index.d.ts +1 -0
- package/dist/esm/types/api/inlineTasks.d.ts +13 -0
- package/dist/esm/types/api/labelInfo.d.ts +1 -1
- package/dist/esm/types/api/longRunningTask.d.ts +1 -1
- package/dist/esm/types/api/models/spaceCreate.d.ts +11 -2
- package/dist/esm/types/api/models/spacePrivateCreate.d.ts +11 -2
- package/dist/esm/types/api/parameters/bulkAsyncConvertContentBodyRequest.d.ts +58 -0
- package/dist/esm/types/api/parameters/bulkAsyncConvertContentBodyResponse.d.ts +4 -0
- package/dist/esm/types/api/parameters/deleteGroupById.d.ts +4 -0
- package/dist/esm/types/api/parameters/downloadAttachment.d.ts +6 -0
- package/dist/esm/types/api/parameters/getContentChildren.d.ts +6 -1
- package/dist/esm/types/api/parameters/getContentsWithState.d.ts +17 -0
- package/dist/esm/types/api/parameters/getGroupMembersByGroupId.d.ts +7 -0
- package/dist/esm/types/api/parameters/getGroupMembershipsForUser.d.ts +4 -0
- package/dist/esm/types/api/parameters/getTasks.d.ts +2 -0
- package/dist/esm/types/api/parameters/getUser.d.ts +4 -0
- package/dist/esm/types/api/parameters/index.d.ts +4 -0
- package/dist/esm/types/api/parameters/searchUser.d.ts +7 -0
- package/dist/esm/types/api/relation.d.ts +13 -15
- package/dist/esm/types/api/search.d.ts +7 -1
- package/dist/esm/types/api/settings.d.ts +5 -1
- package/dist/esm/types/api/space.d.ts +23 -7
- package/dist/esm/types/api/spacePermissions.d.ts +1 -1
- package/dist/esm/types/api/spaceProperties.d.ts +25 -0
- package/dist/esm/types/api/spaceSettings.d.ts +1 -1
- package/dist/esm/types/api/template.d.ts +1 -1
- package/dist/esm/types/api/themes.d.ts +1 -1
- package/dist/esm/types/api/userProperties.d.ts +102 -0
- package/dist/esm/types/api/users.d.ts +21 -9
- package/dist/esm/types/clients/confluenceClient.d.ts +6 -1
- package/eslint.config.ts +11 -16
- package/package.json +29 -28
- package/src/api/analytics.ts +1 -1
- package/src/api/audit.ts +3 -3
- package/src/api/content.ts +33 -12
- package/src/api/contentAttachments.ts +6 -1
- package/src/api/contentBody.ts +113 -7
- package/src/api/contentChildrenAndDescendants.ts +39 -5
- package/src/api/contentComments.ts +5 -0
- package/src/api/contentLabels.ts +17 -9
- package/src/api/contentMacroBody.ts +79 -1
- package/src/api/contentPermissions.ts +1 -1
- package/src/api/contentProperties.ts +25 -0
- package/src/api/contentRestrictions.ts +19 -7
- package/src/api/contentStates.ts +47 -5
- package/src/api/contentVersions.ts +9 -1
- package/src/api/contentWatches.ts +1 -1
- package/src/api/dynamicModules.ts +1 -1
- package/src/api/experimental.ts +21 -1
- package/src/api/group.ts +96 -75
- package/src/api/index.ts +1 -0
- package/src/api/inlineTasks.ts +13 -0
- package/src/api/labelInfo.ts +1 -1
- package/src/api/longRunningTask.ts +2 -1
- package/src/api/models/spaceCreate.ts +11 -2
- package/src/api/models/spacePrivateCreate.ts +11 -2
- package/src/api/parameters/bulkAsyncConvertContentBodyRequest.ts +88 -0
- package/src/api/parameters/bulkAsyncConvertContentBodyResponse.ts +4 -0
- package/src/api/parameters/deleteGroupById.ts +4 -0
- package/src/api/parameters/downloadAttachment.ts +6 -0
- package/src/api/parameters/getContentChildren.ts +7 -1
- package/src/api/parameters/getContentsWithState.ts +17 -0
- package/src/api/parameters/getGroupMembersByGroupId.ts +7 -0
- package/src/api/parameters/getGroupMembershipsForUser.ts +4 -0
- package/src/api/parameters/getTasks.ts +2 -0
- package/src/api/parameters/getUser.ts +4 -0
- package/src/api/parameters/index.ts +4 -0
- package/src/api/parameters/searchUser.ts +7 -0
- package/src/api/relation.ts +13 -15
- package/src/api/search.ts +8 -1
- package/src/api/settings.ts +5 -1
- package/src/api/space.ts +27 -9
- package/src/api/spacePermissions.ts +1 -1
- package/src/api/spaceProperties.ts +25 -0
- package/src/api/spaceSettings.ts +1 -1
- package/src/api/template.ts +1 -1
- package/src/api/themes.ts +1 -1
- package/src/api/userProperties.ts +185 -0
- package/src/api/users.ts +21 -9
- package/src/clients/baseClient.ts +1 -5
- package/src/clients/confluenceClient.ts +6 -0
- package/src/config.ts +4 -1
- package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -1
- package/favicon.svg +0 -7
package/src/api/group.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Group {
|
|
@@ -72,12 +72,16 @@ export class Group {
|
|
|
72
72
|
* Delete user group.
|
|
73
73
|
*
|
|
74
74
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated Will be removed in next major version.
|
|
75
77
|
*/
|
|
76
78
|
async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback: Callback<T>): Promise<void>;
|
|
77
79
|
/**
|
|
78
80
|
* Delete user group.
|
|
79
81
|
*
|
|
80
82
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated Will be removed in next major version.
|
|
81
85
|
*/
|
|
82
86
|
async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback?: never): Promise<T>;
|
|
83
87
|
async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback?: Callback<T>): Promise<void | T> {
|
|
@@ -97,6 +101,8 @@ export class Group {
|
|
|
97
101
|
*
|
|
98
102
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
99
103
|
* ('Can use' global permission).
|
|
104
|
+
*
|
|
105
|
+
* @deprecated Will be removed in next major version.
|
|
100
106
|
*/
|
|
101
107
|
async getGroupByQueryParam<T = Models.Group>(
|
|
102
108
|
parameters: Parameters.GetGroupByQueryParam,
|
|
@@ -107,6 +113,8 @@ export class Group {
|
|
|
107
113
|
*
|
|
108
114
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
109
115
|
* ('Can use' global permission).
|
|
116
|
+
*
|
|
117
|
+
* @deprecated Will be removed in next major version.
|
|
110
118
|
*/
|
|
111
119
|
async getGroupByQueryParam<T = Models.Group>(
|
|
112
120
|
parameters: Parameters.GetGroupByQueryParam,
|
|
@@ -164,14 +172,14 @@ export class Group {
|
|
|
164
172
|
*
|
|
165
173
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
166
174
|
*/
|
|
167
|
-
async removeGroupById<T = void>(parameters: Parameters.
|
|
175
|
+
async removeGroupById<T = void>(parameters: Parameters.DeleteGroupById, callback: Callback<T>): Promise<void>;
|
|
168
176
|
/**
|
|
169
177
|
* Delete user group.
|
|
170
178
|
*
|
|
171
179
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
172
180
|
*/
|
|
173
|
-
async removeGroupById<T = void>(parameters: Parameters.
|
|
174
|
-
async removeGroupById<T = void>(parameters: Parameters.
|
|
181
|
+
async removeGroupById<T = void>(parameters: Parameters.DeleteGroupById, callback?: never): Promise<T>;
|
|
182
|
+
async removeGroupById<T = void>(parameters: Parameters.DeleteGroupById, callback?: Callback<T>): Promise<void | T> {
|
|
175
183
|
const config: RequestConfig = {
|
|
176
184
|
url: '/api/group/by-id',
|
|
177
185
|
method: 'DELETE',
|
|
@@ -190,6 +198,8 @@ export class Group {
|
|
|
190
198
|
*
|
|
191
199
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
192
200
|
* ('Can use' global permission).
|
|
201
|
+
*
|
|
202
|
+
* @deprecated Will be removed in next major version.
|
|
193
203
|
*/
|
|
194
204
|
async getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback: Callback<T>): Promise<void>;
|
|
195
205
|
/**
|
|
@@ -199,6 +209,8 @@ export class Group {
|
|
|
199
209
|
*
|
|
200
210
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
201
211
|
* ('Can use' global permission).
|
|
212
|
+
*
|
|
213
|
+
* @deprecated Will be removed in next major version.
|
|
202
214
|
*/
|
|
203
215
|
async getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback?: never): Promise<T>;
|
|
204
216
|
async getGroupByName<T = Models.Group>(
|
|
@@ -218,6 +230,8 @@ export class Group {
|
|
|
218
230
|
*
|
|
219
231
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
220
232
|
* ('Can use' global permission).
|
|
233
|
+
*
|
|
234
|
+
* @deprecated Will be removed in next major version.
|
|
221
235
|
*/
|
|
222
236
|
async getMembersByQueryParam<T = Models.UserArray>(
|
|
223
237
|
parameters: Parameters.GetMembersByQueryParam,
|
|
@@ -228,6 +242,8 @@ export class Group {
|
|
|
228
242
|
*
|
|
229
243
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
230
244
|
* ('Can use' global permission).
|
|
245
|
+
*
|
|
246
|
+
* @deprecated Will be removed in next major version.
|
|
231
247
|
*/
|
|
232
248
|
async getMembersByQueryParam<T = Models.UserArray>(
|
|
233
249
|
parameters: Parameters.GetMembersByQueryParam,
|
|
@@ -251,6 +267,31 @@ export class Group {
|
|
|
251
267
|
return this.client.sendRequest(config, callback);
|
|
252
268
|
}
|
|
253
269
|
|
|
270
|
+
/** Get search results of groups by partial query provided. */
|
|
271
|
+
async searchGroups<T = Models.GroupArrayWithLinks>(
|
|
272
|
+
parameters: Parameters.SearchGroups,
|
|
273
|
+
callback: Callback<T>,
|
|
274
|
+
): Promise<void>;
|
|
275
|
+
/** Get search results of groups by partial query provided. */
|
|
276
|
+
async searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback?: never): Promise<T>;
|
|
277
|
+
async searchGroups<T = Models.GroupArrayWithLinks>(
|
|
278
|
+
parameters: Parameters.SearchGroups,
|
|
279
|
+
callback?: Callback<T>,
|
|
280
|
+
): Promise<void | T> {
|
|
281
|
+
const config: RequestConfig = {
|
|
282
|
+
url: '/api/group/picker',
|
|
283
|
+
method: 'GET',
|
|
284
|
+
params: {
|
|
285
|
+
query: parameters.query,
|
|
286
|
+
start: parameters.start,
|
|
287
|
+
limit: parameters.limit,
|
|
288
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
return this.client.sendRequest(config, callback);
|
|
293
|
+
}
|
|
294
|
+
|
|
254
295
|
/**
|
|
255
296
|
* Returns the users that are members of a group.
|
|
256
297
|
*
|
|
@@ -259,8 +300,8 @@ export class Group {
|
|
|
259
300
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
260
301
|
* ('Can use' global permission).
|
|
261
302
|
*/
|
|
262
|
-
async
|
|
263
|
-
parameters: Parameters.
|
|
303
|
+
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
304
|
+
parameters: Parameters.GetGroupMembersByGroupId,
|
|
264
305
|
callback: Callback<T>,
|
|
265
306
|
): Promise<void>;
|
|
266
307
|
/**
|
|
@@ -271,42 +312,22 @@ export class Group {
|
|
|
271
312
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
272
313
|
* ('Can use' global permission).
|
|
273
314
|
*/
|
|
274
|
-
async
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
url: `/api/group/${parameters.groupName}/member`,
|
|
281
|
-
method: 'GET',
|
|
282
|
-
params: {
|
|
283
|
-
start: parameters.start,
|
|
284
|
-
limit: parameters.limit,
|
|
285
|
-
},
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
return this.client.sendRequest(config, callback);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/** Get search results of groups by partial query provided. */
|
|
292
|
-
async searchGroups<T = Models.GroupArrayWithLinks>(
|
|
293
|
-
parameters: Parameters.SearchGroups,
|
|
294
|
-
callback: Callback<T>,
|
|
295
|
-
): Promise<void>;
|
|
296
|
-
/** Get search results of groups by partial query provided. */
|
|
297
|
-
async searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback?: never): Promise<T>;
|
|
298
|
-
async searchGroups<T = Models.GroupArrayWithLinks>(
|
|
299
|
-
parameters: Parameters.SearchGroups,
|
|
315
|
+
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
316
|
+
parameters: Parameters.GetGroupMembersByGroupId,
|
|
317
|
+
callback?: never,
|
|
318
|
+
): Promise<T>;
|
|
319
|
+
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
320
|
+
parameters: Parameters.GetGroupMembersByGroupId,
|
|
300
321
|
callback?: Callback<T>,
|
|
301
322
|
): Promise<void | T> {
|
|
302
323
|
const config: RequestConfig = {
|
|
303
|
-
url:
|
|
324
|
+
url: `/api/group/${parameters.groupId}/membersByGroupId`,
|
|
304
325
|
method: 'GET',
|
|
305
326
|
params: {
|
|
306
|
-
query: parameters.query,
|
|
307
327
|
start: parameters.start,
|
|
308
328
|
limit: parameters.limit,
|
|
309
329
|
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
330
|
+
expand: parameters.expand,
|
|
310
331
|
},
|
|
311
332
|
};
|
|
312
333
|
|
|
@@ -383,47 +404,6 @@ export class Group {
|
|
|
383
404
|
return this.client.sendRequest(config, callback);
|
|
384
405
|
}
|
|
385
406
|
|
|
386
|
-
/**
|
|
387
|
-
* Returns the users that are members of a group.
|
|
388
|
-
*
|
|
389
|
-
* Use updated Get group API
|
|
390
|
-
*
|
|
391
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
392
|
-
* ('Can use' global permission).
|
|
393
|
-
*/
|
|
394
|
-
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
395
|
-
parameters: Parameters.GetGroupMembersByGroupId,
|
|
396
|
-
callback: Callback<T>,
|
|
397
|
-
): Promise<void>;
|
|
398
|
-
/**
|
|
399
|
-
* Returns the users that are members of a group.
|
|
400
|
-
*
|
|
401
|
-
* Use updated Get group API
|
|
402
|
-
*
|
|
403
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
404
|
-
* ('Can use' global permission).
|
|
405
|
-
*/
|
|
406
|
-
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
407
|
-
parameters: Parameters.GetGroupMembersByGroupId,
|
|
408
|
-
callback?: never,
|
|
409
|
-
): Promise<T>;
|
|
410
|
-
async getGroupMembersByGroupId<T = Models.UserArray>(
|
|
411
|
-
parameters: Parameters.GetGroupMembersByGroupId,
|
|
412
|
-
callback?: Callback<T>,
|
|
413
|
-
): Promise<void | T> {
|
|
414
|
-
const config: RequestConfig = {
|
|
415
|
-
url: `/api/group/${parameters.groupId}/membersByGroupId`,
|
|
416
|
-
method: 'GET',
|
|
417
|
-
params: {
|
|
418
|
-
start: parameters.start,
|
|
419
|
-
limit: parameters.limit,
|
|
420
|
-
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
421
|
-
},
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
return this.client.sendRequest(config, callback);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
407
|
/**
|
|
428
408
|
* Adds a user as a member in a group.
|
|
429
409
|
*
|
|
@@ -481,4 +461,45 @@ export class Group {
|
|
|
481
461
|
|
|
482
462
|
return this.client.sendRequest(config, callback);
|
|
483
463
|
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Returns the users that are members of a group.
|
|
467
|
+
*
|
|
468
|
+
* Use updated Get group API
|
|
469
|
+
*
|
|
470
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
471
|
+
* ('Can use' global permission).
|
|
472
|
+
*
|
|
473
|
+
* @deprecated Will be removed in next major version. Use `group.getGroupMembersByGroupId`
|
|
474
|
+
*/
|
|
475
|
+
async getGroupMembers<T = Models.UserArray>(
|
|
476
|
+
parameters: Parameters.GetGroupMembers,
|
|
477
|
+
callback: Callback<T>,
|
|
478
|
+
): Promise<void>;
|
|
479
|
+
/**
|
|
480
|
+
* Returns the users that are members of a group.
|
|
481
|
+
*
|
|
482
|
+
* Use updated Get group API
|
|
483
|
+
*
|
|
484
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
485
|
+
* ('Can use' global permission).
|
|
486
|
+
*
|
|
487
|
+
* @deprecated Will be removed in next major version. Use `group.getGroupMembersByGroupId`
|
|
488
|
+
*/
|
|
489
|
+
async getGroupMembers<T = Models.UserArray>(parameters: Parameters.GetGroupMembers, callback?: never): Promise<T>;
|
|
490
|
+
async getGroupMembers<T = Models.UserArray>(
|
|
491
|
+
parameters: Parameters.GetGroupMembers,
|
|
492
|
+
callback?: Callback<T>,
|
|
493
|
+
): Promise<void | T> {
|
|
494
|
+
const config: RequestConfig = {
|
|
495
|
+
url: `/api/group/${parameters.groupName}/member`,
|
|
496
|
+
method: 'GET',
|
|
497
|
+
params: {
|
|
498
|
+
start: parameters.start,
|
|
499
|
+
limit: parameters.limit,
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
return this.client.sendRequest(config, callback);
|
|
504
|
+
}
|
|
484
505
|
}
|
package/src/api/index.ts
CHANGED
package/src/api/inlineTasks.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Callback } from '../callback';
|
|
|
4
4
|
import type { Client } from '../clients';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
|
+
/** @deprecated Will be removed in next major version. */
|
|
7
8
|
export class InlineTasks {
|
|
8
9
|
constructor(private client: Client) {}
|
|
9
10
|
|
|
@@ -12,6 +13,8 @@ export class InlineTasks {
|
|
|
12
13
|
*
|
|
13
14
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
14
15
|
* ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated Will be removed in next major version.
|
|
15
18
|
*/
|
|
16
19
|
async searchTasks<T = Models.TaskPageResponse>(
|
|
17
20
|
parameters: Parameters.SearchTasks | undefined,
|
|
@@ -22,6 +25,8 @@ export class InlineTasks {
|
|
|
22
25
|
*
|
|
23
26
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
24
27
|
* ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated Will be removed in next major version.
|
|
25
30
|
*/
|
|
26
31
|
async searchTasks<T = Models.TaskPageResponse>(parameters?: Parameters.SearchTasks, callback?: never): Promise<T>;
|
|
27
32
|
async searchTasks<T = Models.TaskPageResponse>(
|
|
@@ -57,6 +62,8 @@ export class InlineTasks {
|
|
|
57
62
|
*
|
|
58
63
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated
|
|
59
64
|
* with the task.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated Will be removed in next major version.
|
|
60
67
|
*/
|
|
61
68
|
async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback: Callback<T>): Promise<void>;
|
|
62
69
|
/**
|
|
@@ -64,6 +71,8 @@ export class InlineTasks {
|
|
|
64
71
|
*
|
|
65
72
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated
|
|
66
73
|
* with the task.
|
|
74
|
+
*
|
|
75
|
+
* @deprecated Will be removed in next major version.
|
|
67
76
|
*/
|
|
68
77
|
async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback?: never): Promise<T>;
|
|
69
78
|
async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback?: Callback<T>): Promise<void | T> {
|
|
@@ -80,6 +89,8 @@ export class InlineTasks {
|
|
|
80
89
|
*
|
|
81
90
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated
|
|
82
91
|
* with the task.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated Will be removed in next major version.
|
|
83
94
|
*/
|
|
84
95
|
async updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback: Callback<T>): Promise<void>;
|
|
85
96
|
/**
|
|
@@ -87,6 +98,8 @@ export class InlineTasks {
|
|
|
87
98
|
*
|
|
88
99
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated
|
|
89
100
|
* with the task.
|
|
101
|
+
*
|
|
102
|
+
* @deprecated Will be removed in next major version.
|
|
90
103
|
*/
|
|
91
104
|
async updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback?: never): Promise<T>;
|
|
92
105
|
async updateTaskById<T = Models.Task>(
|
package/src/api/labelInfo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class LabelInfo {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class LongRunningTask {
|
|
@@ -34,6 +34,7 @@ export class LongRunningTask {
|
|
|
34
34
|
url: '/api/longtask',
|
|
35
35
|
method: 'GET',
|
|
36
36
|
params: {
|
|
37
|
+
key: parameters?.key,
|
|
37
38
|
start: parameters?.start,
|
|
38
39
|
limit: parameters?.limit,
|
|
39
40
|
},
|
|
@@ -3,10 +3,19 @@ import type { SpacePermission } from './spacePermission';
|
|
|
3
3
|
|
|
4
4
|
/** This is the request object used when creating a new space. */
|
|
5
5
|
export interface SpaceCreate {
|
|
6
|
-
/** The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). */
|
|
7
|
-
key: string;
|
|
8
6
|
/** The name of the new space. */
|
|
9
7
|
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not
|
|
10
|
+
* provided, this is required.
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
13
|
+
/**
|
|
14
|
+
* This field will be used as the new identifier for the space in confluence page URLs. If the property is not
|
|
15
|
+
* provided the alias will be the provided key. This property is experimental and may be changed or removed in the
|
|
16
|
+
* future.
|
|
17
|
+
*/
|
|
18
|
+
alias?: string;
|
|
10
19
|
description?: SpaceDescriptionCreate;
|
|
11
20
|
/**
|
|
12
21
|
* The permissions for the new space. If no permissions are provided, the [Confluence default space
|
|
@@ -3,10 +3,19 @@ import type { SpacePermissionCreate } from './spacePermissionCreate';
|
|
|
3
3
|
|
|
4
4
|
/** This is the request object used when creating a new private space. */
|
|
5
5
|
export interface SpacePrivateCreate {
|
|
6
|
-
/** The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). */
|
|
7
|
-
key: string;
|
|
8
6
|
/** The name of the new space. */
|
|
9
7
|
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not
|
|
10
|
+
* provided, this is required.
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
13
|
+
/**
|
|
14
|
+
* This field will be used as the new identifier for the space in confluence page URLs. If the property is not
|
|
15
|
+
* provided the alias will be the provided key. This property is experimental and may be changed or removed in the
|
|
16
|
+
* future.
|
|
17
|
+
*/
|
|
18
|
+
alias?: string;
|
|
10
19
|
description?: SpaceDescriptionCreate;
|
|
11
20
|
/**
|
|
12
21
|
* The permissions for the new space. If no permissions are provided, the [Confluence default space
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { OneOrMany } from '../../interfaces';
|
|
2
|
+
|
|
3
|
+
export interface BulkAsyncConvertContentBodyRequest {
|
|
4
|
+
/** The name of the target format for the content body conversion. */
|
|
5
|
+
to: string;
|
|
6
|
+
/** This object is used when creating or updating content. */
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
+
body: Record<string, any> & {
|
|
9
|
+
/** The body of the content in the relevant format. */
|
|
10
|
+
value: string;
|
|
11
|
+
/** The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'. */
|
|
12
|
+
representation:
|
|
13
|
+
| 'view'
|
|
14
|
+
| 'export_view'
|
|
15
|
+
| 'styled_view'
|
|
16
|
+
| 'storage'
|
|
17
|
+
| 'editor'
|
|
18
|
+
| 'editor2'
|
|
19
|
+
| 'anonymous_export_view'
|
|
20
|
+
| 'wiki'
|
|
21
|
+
| 'atlas_doc_format'
|
|
22
|
+
| 'plain'
|
|
23
|
+
| 'raw'
|
|
24
|
+
| string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A multi-value, comma-separated parameter indicating which properties of the content to expand and populate. Expands
|
|
28
|
+
* are dependent on the `to` conversion format and may be irrelevant for certain conversions (e.g.
|
|
29
|
+
* `macroRenderedOutput` is redundant when converting to `view` format).
|
|
30
|
+
*
|
|
31
|
+
* If rendering to `view` format, and the body content being converted includes arbitrary nested content (such as
|
|
32
|
+
* macros); then it is necessary to include webresource expands in the request. Webresources for content body are the
|
|
33
|
+
* batched JS and CSS dependencies for any nested dynamic content (i.e. macros).
|
|
34
|
+
*/
|
|
35
|
+
expand?: OneOrMany<
|
|
36
|
+
| 'embeddedContent'
|
|
37
|
+
| 'mediaToken'
|
|
38
|
+
| 'macroRenderedOutput'
|
|
39
|
+
| 'webresource.superbatch.uris.js'
|
|
40
|
+
| 'webresource.superbatch.uris.css'
|
|
41
|
+
| 'webresource.superbatch.uris.all'
|
|
42
|
+
| 'webresource.superbatch.tags.all'
|
|
43
|
+
| 'webresource.superbatch.tags.css'
|
|
44
|
+
| 'webresource.superbatch.tags.js'
|
|
45
|
+
| 'webresource.uris.js'
|
|
46
|
+
| 'webresource.uris.css'
|
|
47
|
+
| 'webresource.uris.all'
|
|
48
|
+
| 'webresource.tags.all'
|
|
49
|
+
| 'webresource.tags.css'
|
|
50
|
+
| 'webresource.tags.js'
|
|
51
|
+
>;
|
|
52
|
+
/**
|
|
53
|
+
* Mode used for rendering embedded content, such as attachments.
|
|
54
|
+
*
|
|
55
|
+
* - `current` renders the embedded content using the latest version.
|
|
56
|
+
* - `version-at-save renders` the embedded content using the version at the time of save.
|
|
57
|
+
*
|
|
58
|
+
* @default current
|
|
59
|
+
*/
|
|
60
|
+
embeddedContentRender?: 'current' | 'version-at-save' | string;
|
|
61
|
+
/**
|
|
62
|
+
* The content ID used to find the space for resolving embedded content (page includes, files, and links) in the
|
|
63
|
+
* content body. For example, if the source content contains the link
|
|
64
|
+
*
|
|
65
|
+
* `<ac:link><ri:page ri:content-title="Example page" /><ac:link>` and the `contentIdContext=123` parameter is
|
|
66
|
+
* provided, then the link will be converted into a link to the "Example page" page in the same space that has the
|
|
67
|
+
* content with ID=123. Note that `spaceKeyContext` will be ignored if this parameter is provided.
|
|
68
|
+
*/
|
|
69
|
+
contentIdContext?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The space key used for resolving embedded content (page includes, files, and links) in the content body. For
|
|
72
|
+
* example, if the source content contains the link `<ac:link><ri:page ri:content-title="Example page" /><ac:link>`
|
|
73
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link will be converted into a link to the "Example
|
|
74
|
+
* page" page in the "TEST" space.
|
|
75
|
+
*/
|
|
76
|
+
spaceKeyContext?: string;
|
|
77
|
+
/**
|
|
78
|
+
* If `false`, the cache will erase its current value and begin a new conversion. If `true`, the cache will not erase
|
|
79
|
+
* its current value, and will set the status of the async conversion to “RERUNNING”. Once the data is updated, the
|
|
80
|
+
* status will change to “COMPLETED”. Large macros that take a long time to convert and that need not be immediately
|
|
81
|
+
* up to date (e.g. a macro in which the new conversion result is the same as a previous conversion result that was
|
|
82
|
+
* completed within the last 5 minutes) should set this field to `true`. Cache values are stored per user per content
|
|
83
|
+
* body and expansions.
|
|
84
|
+
*
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
allowCache?: boolean;
|
|
88
|
+
}
|
|
@@ -8,4 +8,10 @@ export interface DownloadAttachment {
|
|
|
8
8
|
* the attachment.
|
|
9
9
|
*/
|
|
10
10
|
version?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The statuses allowed on the retrieved attachment. If this parameter is absent, it will default to `current`.
|
|
13
|
+
*
|
|
14
|
+
* @default current
|
|
15
|
+
*/
|
|
16
|
+
status?: string | string[];
|
|
11
17
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { OneOrMany } from '../../interfaces';
|
|
2
|
+
|
|
1
3
|
export interface GetContentChildren {
|
|
2
4
|
/** The ID of the content to be queried for its children. */
|
|
3
5
|
id: string;
|
|
@@ -9,7 +11,11 @@ export interface GetContentChildren {
|
|
|
9
11
|
* - `page` returns all child pages of the content.
|
|
10
12
|
* - Custom content types that are provided by apps are also supported.
|
|
11
13
|
*/
|
|
12
|
-
expand?: string
|
|
14
|
+
expand?: OneOrMany<'attachment' | 'comments' | 'page' | string>;
|
|
13
15
|
/** The version of the parent content to retrieve children for. Currently, this only works for the latest version. */
|
|
14
16
|
parentVersion?: number;
|
|
17
|
+
/** The starting index of the returned content children. */
|
|
18
|
+
start?: number;
|
|
19
|
+
/** The maximum number of content children to return per page. */
|
|
20
|
+
limit?: number;
|
|
15
21
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface GetContentsWithState {
|
|
2
|
+
/** The key of the space to be queried for its content state settings. */
|
|
3
|
+
spaceKey: string;
|
|
4
|
+
/** The id of the content state to filter content by */
|
|
5
|
+
stateId: number;
|
|
6
|
+
/**
|
|
7
|
+
* A multi-value parameter indicating which properties of the content to expand. Options include: space, version,
|
|
8
|
+
* history, children, etc.
|
|
9
|
+
*
|
|
10
|
+
* Ex: (space, version);
|
|
11
|
+
*/
|
|
12
|
+
expand?: string[];
|
|
13
|
+
/** Maximum number of results to return */
|
|
14
|
+
limit?: number;
|
|
15
|
+
/** Number of result to start returning. (0 indexed) */
|
|
16
|
+
start?: number;
|
|
17
|
+
}
|
|
@@ -10,4 +10,11 @@ export interface GetGroupMembersByGroupId {
|
|
|
10
10
|
* operation; use it if your use case needs this value.
|
|
11
11
|
*/
|
|
12
12
|
shouldReturnTotalSize?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A multi-value parameter indicating which properties of the user to expand.
|
|
15
|
+
*
|
|
16
|
+
* - `operations` returns the operations that the user is allowed to do.
|
|
17
|
+
* - `personalSpace` returns the user's personal space, if it exists.
|
|
18
|
+
*/
|
|
19
|
+
expand?: 'operations' | 'personalSpace' | string | ('operations' | 'personalSpace' | string)[];
|
|
13
20
|
}
|
|
@@ -2,11 +2,15 @@ export interface GetGroupMembershipsForUser {
|
|
|
2
2
|
/**
|
|
3
3
|
* This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See
|
|
4
4
|
* the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Will be removed in next major version.
|
|
5
7
|
*/
|
|
6
8
|
key?: string;
|
|
7
9
|
/**
|
|
8
10
|
* This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See
|
|
9
11
|
* the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Will be removed in next major version.
|
|
10
14
|
*/
|
|
11
15
|
username?: string;
|
|
12
16
|
/**
|
|
@@ -2,11 +2,15 @@ export interface GetUser {
|
|
|
2
2
|
/**
|
|
3
3
|
* This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See
|
|
4
4
|
* the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Will be removed in next major version.
|
|
5
7
|
*/
|
|
6
8
|
key?: string;
|
|
7
9
|
/**
|
|
8
10
|
* This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See
|
|
9
11
|
* the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Will be removed in next major version.
|
|
10
14
|
*/
|
|
11
15
|
username?: string;
|
|
12
16
|
/**
|
|
@@ -14,6 +14,8 @@ export * from './addUserToGroupByGroupId';
|
|
|
14
14
|
export * from './archivePages';
|
|
15
15
|
export * from './asyncConvertContentBodyRequest';
|
|
16
16
|
export * from './asyncConvertContentBodyResponse';
|
|
17
|
+
export * from './bulkAsyncConvertContentBodyRequest';
|
|
18
|
+
export * from './bulkAsyncConvertContentBodyResponse';
|
|
17
19
|
export * from './checkContentPermission';
|
|
18
20
|
export * from './convertContentBody';
|
|
19
21
|
export * from './copyPage';
|
|
@@ -35,6 +37,7 @@ export * from './createUserProperty';
|
|
|
35
37
|
export * from './deleteContent';
|
|
36
38
|
export * from './deleteContentProperty';
|
|
37
39
|
export * from './deleteContentVersion';
|
|
40
|
+
export * from './deleteGroupById';
|
|
38
41
|
export * from './deleteLabelFromSpace';
|
|
39
42
|
export * from './deletePageTree';
|
|
40
43
|
export * from './deleteRelationship';
|
|
@@ -71,6 +74,7 @@ export * from './getContentRestrictionStatusForGroup';
|
|
|
71
74
|
export * from './getContentRestrictionStatusForUser';
|
|
72
75
|
export * from './getContentState';
|
|
73
76
|
export * from './getContentStateSettings';
|
|
77
|
+
export * from './getContentsWithState';
|
|
74
78
|
export * from './getContentTemplate';
|
|
75
79
|
export * from './getContentTemplates';
|
|
76
80
|
export * from './getContentVersion';
|
|
@@ -24,4 +24,11 @@ export interface SearchUser {
|
|
|
24
24
|
* - `personalSpace` returns the personal space of the user.
|
|
25
25
|
*/
|
|
26
26
|
expand?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Filters users by permission type. Use `none` to default to licensed users, `externalCollaborator` for
|
|
29
|
+
* external/guest users, and `all` to include all permission types.
|
|
30
|
+
*
|
|
31
|
+
* @default none
|
|
32
|
+
*/
|
|
33
|
+
sitePermissionTypeFilter?: 'all' | 'externalCollaborator' | 'none' | string;
|
|
27
34
|
}
|