confluence.js 2.0.0 → 2.2.0-dev20260318121920
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 +67 -2
- package/README.md +168 -181
- 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 +17 -2
- 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 +7 -4
- 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 +18 -3
- 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 +7 -4
- 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/baseClient.d.ts +1 -0
- package/dist/esm/types/clients/confluenceClient.d.ts +6 -1
- package/dist/esm/types/config.d.ts +29 -240
- package/eslint.config.ts +11 -16
- package/package.json +34 -33
- package/rollup.config.ts +8 -8
- 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 +24 -8
- package/src/clients/confluenceClient.ts +6 -0
- package/src/config.ts +8 -4
- package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -1
- package/favicon.svg +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from "./models/index.js";
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
|
-
import type { Callback } from "../callback.js";
|
|
4
3
|
import type { Client } from "../clients/index.js";
|
|
4
|
+
import type { Callback } from "../callback.js";
|
|
5
5
|
export declare class Group {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -35,12 +35,16 @@ export declare class Group {
|
|
|
35
35
|
* Delete user group.
|
|
36
36
|
*
|
|
37
37
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Will be removed in next major version.
|
|
38
40
|
*/
|
|
39
41
|
removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback: Callback<T>): Promise<void>;
|
|
40
42
|
/**
|
|
41
43
|
* Delete user group.
|
|
42
44
|
*
|
|
43
45
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
46
|
+
*
|
|
47
|
+
* @deprecated Will be removed in next major version.
|
|
44
48
|
*/
|
|
45
49
|
removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback?: never): Promise<T>;
|
|
46
50
|
/**
|
|
@@ -48,6 +52,8 @@ export declare class Group {
|
|
|
48
52
|
*
|
|
49
53
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
50
54
|
* ('Can use' global permission).
|
|
55
|
+
*
|
|
56
|
+
* @deprecated Will be removed in next major version.
|
|
51
57
|
*/
|
|
52
58
|
getGroupByQueryParam<T = Models.Group>(parameters: Parameters.GetGroupByQueryParam, callback: Callback<T>): Promise<void>;
|
|
53
59
|
/**
|
|
@@ -55,6 +61,8 @@ export declare class Group {
|
|
|
55
61
|
*
|
|
56
62
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
57
63
|
* ('Can use' global permission).
|
|
64
|
+
*
|
|
65
|
+
* @deprecated Will be removed in next major version.
|
|
58
66
|
*/
|
|
59
67
|
getGroupByQueryParam<T = Models.Group>(parameters: Parameters.GetGroupByQueryParam, callback?: never): Promise<T>;
|
|
60
68
|
/**
|
|
@@ -76,13 +84,13 @@ export declare class Group {
|
|
|
76
84
|
*
|
|
77
85
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
78
86
|
*/
|
|
79
|
-
removeGroupById<T = void>(parameters: Parameters.
|
|
87
|
+
removeGroupById<T = void>(parameters: Parameters.DeleteGroupById, callback: Callback<T>): Promise<void>;
|
|
80
88
|
/**
|
|
81
89
|
* Delete user group.
|
|
82
90
|
*
|
|
83
91
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
84
92
|
*/
|
|
85
|
-
removeGroupById<T = void>(parameters: Parameters.
|
|
93
|
+
removeGroupById<T = void>(parameters: Parameters.DeleteGroupById, callback?: never): Promise<T>;
|
|
86
94
|
/**
|
|
87
95
|
* Returns a user group for a given group name.
|
|
88
96
|
*
|
|
@@ -90,6 +98,8 @@ export declare class Group {
|
|
|
90
98
|
*
|
|
91
99
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
92
100
|
* ('Can use' global permission).
|
|
101
|
+
*
|
|
102
|
+
* @deprecated Will be removed in next major version.
|
|
93
103
|
*/
|
|
94
104
|
getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback: Callback<T>): Promise<void>;
|
|
95
105
|
/**
|
|
@@ -99,6 +109,8 @@ export declare class Group {
|
|
|
99
109
|
*
|
|
100
110
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
101
111
|
* ('Can use' global permission).
|
|
112
|
+
*
|
|
113
|
+
* @deprecated Will be removed in next major version.
|
|
102
114
|
*/
|
|
103
115
|
getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback?: never): Promise<T>;
|
|
104
116
|
/**
|
|
@@ -106,6 +118,8 @@ export declare class Group {
|
|
|
106
118
|
*
|
|
107
119
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
108
120
|
* ('Can use' global permission).
|
|
121
|
+
*
|
|
122
|
+
* @deprecated Will be removed in next major version.
|
|
109
123
|
*/
|
|
110
124
|
getMembersByQueryParam<T = Models.UserArray>(parameters: Parameters.GetMembersByQueryParam, callback: Callback<T>): Promise<void>;
|
|
111
125
|
/**
|
|
@@ -113,8 +127,14 @@ export declare class Group {
|
|
|
113
127
|
*
|
|
114
128
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
115
129
|
* ('Can use' global permission).
|
|
130
|
+
*
|
|
131
|
+
* @deprecated Will be removed in next major version.
|
|
116
132
|
*/
|
|
117
133
|
getMembersByQueryParam<T = Models.UserArray>(parameters: Parameters.GetMembersByQueryParam, callback?: never): Promise<T>;
|
|
134
|
+
/** Get search results of groups by partial query provided. */
|
|
135
|
+
searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback: Callback<T>): Promise<void>;
|
|
136
|
+
/** Get search results of groups by partial query provided. */
|
|
137
|
+
searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback?: never): Promise<T>;
|
|
118
138
|
/**
|
|
119
139
|
* Returns the users that are members of a group.
|
|
120
140
|
*
|
|
@@ -123,7 +143,7 @@ export declare class Group {
|
|
|
123
143
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
124
144
|
* ('Can use' global permission).
|
|
125
145
|
*/
|
|
126
|
-
|
|
146
|
+
getGroupMembersByGroupId<T = Models.UserArray>(parameters: Parameters.GetGroupMembersByGroupId, callback: Callback<T>): Promise<void>;
|
|
127
147
|
/**
|
|
128
148
|
* Returns the users that are members of a group.
|
|
129
149
|
*
|
|
@@ -132,11 +152,7 @@ export declare class Group {
|
|
|
132
152
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
133
153
|
* ('Can use' global permission).
|
|
134
154
|
*/
|
|
135
|
-
|
|
136
|
-
/** Get search results of groups by partial query provided. */
|
|
137
|
-
searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback: Callback<T>): Promise<void>;
|
|
138
|
-
/** Get search results of groups by partial query provided. */
|
|
139
|
-
searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback?: never): Promise<T>;
|
|
155
|
+
getGroupMembersByGroupId<T = Models.UserArray>(parameters: Parameters.GetGroupMembersByGroupId, callback?: never): Promise<T>;
|
|
140
156
|
/**
|
|
141
157
|
* Adds a user as a member in a group represented by its groupId
|
|
142
158
|
*
|
|
@@ -161,24 +177,6 @@ export declare class Group {
|
|
|
161
177
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
162
178
|
*/
|
|
163
179
|
removeMemberFromGroupByGroupId<T = void>(parameters: Parameters.RemoveMemberFromGroupByGroupId, callback?: never): Promise<T>;
|
|
164
|
-
/**
|
|
165
|
-
* Returns the users that are members of a group.
|
|
166
|
-
*
|
|
167
|
-
* Use updated Get group API
|
|
168
|
-
*
|
|
169
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
170
|
-
* ('Can use' global permission).
|
|
171
|
-
*/
|
|
172
|
-
getGroupMembersByGroupId<T = Models.UserArray>(parameters: Parameters.GetGroupMembersByGroupId, callback: Callback<T>): Promise<void>;
|
|
173
|
-
/**
|
|
174
|
-
* Returns the users that are members of a group.
|
|
175
|
-
*
|
|
176
|
-
* Use updated Get group API
|
|
177
|
-
*
|
|
178
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
179
|
-
* ('Can use' global permission).
|
|
180
|
-
*/
|
|
181
|
-
getGroupMembersByGroupId<T = Models.UserArray>(parameters: Parameters.GetGroupMembersByGroupId, callback?: never): Promise<T>;
|
|
182
180
|
/**
|
|
183
181
|
* Adds a user as a member in a group.
|
|
184
182
|
*
|
|
@@ -203,4 +201,26 @@ export declare class Group {
|
|
|
203
201
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.
|
|
204
202
|
*/
|
|
205
203
|
removeMemberFromGroup<T = void>(parameters: Parameters.RemoveMemberFromGroup, callback?: never): Promise<T>;
|
|
204
|
+
/**
|
|
205
|
+
* Returns the users that are members of a group.
|
|
206
|
+
*
|
|
207
|
+
* Use updated Get group API
|
|
208
|
+
*
|
|
209
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
210
|
+
* ('Can use' global permission).
|
|
211
|
+
*
|
|
212
|
+
* @deprecated Will be removed in next major version. Use `group.getGroupMembersByGroupId`
|
|
213
|
+
*/
|
|
214
|
+
getGroupMembers<T = Models.UserArray>(parameters: Parameters.GetGroupMembers, callback: Callback<T>): Promise<void>;
|
|
215
|
+
/**
|
|
216
|
+
* Returns the users that are members of a group.
|
|
217
|
+
*
|
|
218
|
+
* Use updated Get group API
|
|
219
|
+
*
|
|
220
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
221
|
+
* ('Can use' global permission).
|
|
222
|
+
*
|
|
223
|
+
* @deprecated Will be removed in next major version. Use `group.getGroupMembersByGroupId`
|
|
224
|
+
*/
|
|
225
|
+
getGroupMembers<T = Models.UserArray>(parameters: Parameters.GetGroupMembers, callback?: never): Promise<T>;
|
|
206
226
|
}
|
|
@@ -2,6 +2,7 @@ import type * as Models from "./models/index.js";
|
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
3
|
import type { Callback } from "../callback.js";
|
|
4
4
|
import type { Client } from "../clients/index.js";
|
|
5
|
+
/** @deprecated Will be removed in next major version. */
|
|
5
6
|
export declare class InlineTasks {
|
|
6
7
|
private client;
|
|
7
8
|
constructor(client: Client);
|
|
@@ -10,6 +11,8 @@ export declare class InlineTasks {
|
|
|
10
11
|
*
|
|
11
12
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
12
13
|
* ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Will be removed in next major version.
|
|
13
16
|
*/
|
|
14
17
|
searchTasks<T = Models.TaskPageResponse>(parameters: Parameters.SearchTasks | undefined, callback: Callback<T>): Promise<void>;
|
|
15
18
|
/**
|
|
@@ -17,6 +20,8 @@ export declare class InlineTasks {
|
|
|
17
20
|
*
|
|
18
21
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
19
22
|
* ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated Will be removed in next major version.
|
|
20
25
|
*/
|
|
21
26
|
searchTasks<T = Models.TaskPageResponse>(parameters?: Parameters.SearchTasks, callback?: never): Promise<T>;
|
|
22
27
|
/**
|
|
@@ -24,6 +29,8 @@ export declare class InlineTasks {
|
|
|
24
29
|
*
|
|
25
30
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated
|
|
26
31
|
* with the task.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated Will be removed in next major version.
|
|
27
34
|
*/
|
|
28
35
|
getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback: Callback<T>): Promise<void>;
|
|
29
36
|
/**
|
|
@@ -31,6 +38,8 @@ export declare class InlineTasks {
|
|
|
31
38
|
*
|
|
32
39
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated
|
|
33
40
|
* with the task.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated Will be removed in next major version.
|
|
34
43
|
*/
|
|
35
44
|
getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback?: never): Promise<T>;
|
|
36
45
|
/**
|
|
@@ -38,6 +47,8 @@ export declare class InlineTasks {
|
|
|
38
47
|
*
|
|
39
48
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated
|
|
40
49
|
* with the task.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Will be removed in next major version.
|
|
41
52
|
*/
|
|
42
53
|
updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback: Callback<T>): Promise<void>;
|
|
43
54
|
/**
|
|
@@ -45,6 +56,8 @@ export declare class InlineTasks {
|
|
|
45
56
|
*
|
|
46
57
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated
|
|
47
58
|
* with the task.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated Will be removed in next major version.
|
|
48
61
|
*/
|
|
49
62
|
updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback?: never): Promise<T>;
|
|
50
63
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from "./models/index.js";
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
|
-
import type { Callback } from "../callback.js";
|
|
4
3
|
import type { Client } from "../clients/index.js";
|
|
4
|
+
import type { Callback } from "../callback.js";
|
|
5
5
|
export declare class LabelInfo {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from "./models/index.js";
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
|
-
import type { Callback } from "../callback.js";
|
|
4
3
|
import type { Client } from "../clients/index.js";
|
|
4
|
+
import type { Callback } from "../callback.js";
|
|
5
5
|
export declare class LongRunningTask {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -2,10 +2,19 @@ import type { SpaceDescriptionCreate } from "./spaceDescriptionCreate.js";
|
|
|
2
2
|
import type { SpacePermission } from "./spacePermission.js";
|
|
3
3
|
/** This is the request object used when creating a new space. */
|
|
4
4
|
export interface SpaceCreate {
|
|
5
|
-
/** The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). */
|
|
6
|
-
key: string;
|
|
7
5
|
/** The name of the new space. */
|
|
8
6
|
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not
|
|
9
|
+
* provided, this is required.
|
|
10
|
+
*/
|
|
11
|
+
key?: string;
|
|
12
|
+
/**
|
|
13
|
+
* This field will be used as the new identifier for the space in confluence page URLs. If the property is not
|
|
14
|
+
* provided the alias will be the provided key. This property is experimental and may be changed or removed in the
|
|
15
|
+
* future.
|
|
16
|
+
*/
|
|
17
|
+
alias?: string;
|
|
9
18
|
description?: SpaceDescriptionCreate;
|
|
10
19
|
/**
|
|
11
20
|
* The permissions for the new space. If no permissions are provided, the [Confluence default space
|
|
@@ -2,10 +2,19 @@ import type { SpaceDescriptionCreate } from "./spaceDescriptionCreate.js";
|
|
|
2
2
|
import type { SpacePermissionCreate } from "./spacePermissionCreate.js";
|
|
3
3
|
/** This is the request object used when creating a new private space. */
|
|
4
4
|
export interface SpacePrivateCreate {
|
|
5
|
-
/** The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). */
|
|
6
|
-
key: string;
|
|
7
5
|
/** The name of the new space. */
|
|
8
6
|
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The key for the new space. Format: See [Space keys](https://confluence.atlassian.com/x/lqNMMQ). If `alias` is not
|
|
9
|
+
* provided, this is required.
|
|
10
|
+
*/
|
|
11
|
+
key?: string;
|
|
12
|
+
/**
|
|
13
|
+
* This field will be used as the new identifier for the space in confluence page URLs. If the property is not
|
|
14
|
+
* provided the alias will be the provided key. This property is experimental and may be changed or removed in the
|
|
15
|
+
* future.
|
|
16
|
+
*/
|
|
17
|
+
alias?: string;
|
|
9
18
|
description?: SpaceDescriptionCreate;
|
|
10
19
|
/**
|
|
11
20
|
* The permissions for the new space. If no permissions are provided, the [Confluence default space
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { OneOrMany } from "../../interfaces/index.js";
|
|
2
|
+
export interface BulkAsyncConvertContentBodyRequest {
|
|
3
|
+
/** The name of the target format for the content body conversion. */
|
|
4
|
+
to: string;
|
|
5
|
+
/** This object is used when creating or updating content. */
|
|
6
|
+
body: Record<string, any> & {
|
|
7
|
+
/** The body of the content in the relevant format. */
|
|
8
|
+
value: string;
|
|
9
|
+
/** The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'. */
|
|
10
|
+
representation: "view" | "export_view" | "styled_view" | "storage" | "editor" | "editor2" | "anonymous_export_view" | "wiki" | "atlas_doc_format" | "plain" | "raw" | string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A multi-value, comma-separated parameter indicating which properties of the content to expand and populate. Expands
|
|
14
|
+
* are dependent on the `to` conversion format and may be irrelevant for certain conversions (e.g.
|
|
15
|
+
* `macroRenderedOutput` is redundant when converting to `view` format).
|
|
16
|
+
*
|
|
17
|
+
* If rendering to `view` format, and the body content being converted includes arbitrary nested content (such as
|
|
18
|
+
* macros); then it is necessary to include webresource expands in the request. Webresources for content body are the
|
|
19
|
+
* batched JS and CSS dependencies for any nested dynamic content (i.e. macros).
|
|
20
|
+
*/
|
|
21
|
+
expand?: OneOrMany<"embeddedContent" | "mediaToken" | "macroRenderedOutput" | "webresource.superbatch.uris.js" | "webresource.superbatch.uris.css" | "webresource.superbatch.uris.all" | "webresource.superbatch.tags.all" | "webresource.superbatch.tags.css" | "webresource.superbatch.tags.js" | "webresource.uris.js" | "webresource.uris.css" | "webresource.uris.all" | "webresource.tags.all" | "webresource.tags.css" | "webresource.tags.js">;
|
|
22
|
+
/**
|
|
23
|
+
* Mode used for rendering embedded content, such as attachments.
|
|
24
|
+
*
|
|
25
|
+
* - `current` renders the embedded content using the latest version.
|
|
26
|
+
* - `version-at-save renders` the embedded content using the version at the time of save.
|
|
27
|
+
*
|
|
28
|
+
* @default current
|
|
29
|
+
*/
|
|
30
|
+
embeddedContentRender?: "current" | "version-at-save" | string;
|
|
31
|
+
/**
|
|
32
|
+
* The content ID used to find the space for resolving embedded content (page includes, files, and links) in the
|
|
33
|
+
* content body. For example, if the source content contains the link
|
|
34
|
+
*
|
|
35
|
+
* `<ac:link><ri:page ri:content-title="Example page" /><ac:link>` and the `contentIdContext=123` parameter is
|
|
36
|
+
* provided, then the link will be converted into a link to the "Example page" page in the same space that has the
|
|
37
|
+
* content with ID=123. Note that `spaceKeyContext` will be ignored if this parameter is provided.
|
|
38
|
+
*/
|
|
39
|
+
contentIdContext?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The space key used for resolving embedded content (page includes, files, and links) in the content body. For
|
|
42
|
+
* example, if the source content contains the link `<ac:link><ri:page ri:content-title="Example page" /><ac:link>`
|
|
43
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link will be converted into a link to the "Example
|
|
44
|
+
* page" page in the "TEST" space.
|
|
45
|
+
*/
|
|
46
|
+
spaceKeyContext?: string;
|
|
47
|
+
/**
|
|
48
|
+
* If `false`, the cache will erase its current value and begin a new conversion. If `true`, the cache will not erase
|
|
49
|
+
* its current value, and will set the status of the async conversion to “RERUNNING”. Once the data is updated, the
|
|
50
|
+
* status will change to “COMPLETED”. Large macros that take a long time to convert and that need not be immediately
|
|
51
|
+
* up to date (e.g. a macro in which the new conversion result is the same as a previous conversion result that was
|
|
52
|
+
* completed within the last 5 minutes) should set this field to `true`. Cache values are stored per user per content
|
|
53
|
+
* body and expansions.
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
allowCache?: boolean;
|
|
58
|
+
}
|
|
@@ -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,4 @@
|
|
|
1
|
+
import type { OneOrMany } from "../../interfaces/index.js";
|
|
1
2
|
export interface GetContentChildren {
|
|
2
3
|
/** The ID of the content to be queried for its children. */
|
|
3
4
|
id: string;
|
|
@@ -9,7 +10,11 @@ export interface GetContentChildren {
|
|
|
9
10
|
* - `page` returns all child pages of the content.
|
|
10
11
|
* - Custom content types that are provided by apps are also supported.
|
|
11
12
|
*/
|
|
12
|
-
expand?: string
|
|
13
|
+
expand?: OneOrMany<"attachment" | "comments" | "page" | string>;
|
|
13
14
|
/** The version of the parent content to retrieve children for. Currently, this only works for the latest version. */
|
|
14
15
|
parentVersion?: number;
|
|
16
|
+
/** The starting index of the returned content children. */
|
|
17
|
+
start?: number;
|
|
18
|
+
/** The maximum number of content children to return per page. */
|
|
19
|
+
limit?: number;
|
|
15
20
|
}
|
|
@@ -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.js";
|
|
|
14
14
|
export * from "./archivePages.js";
|
|
15
15
|
export * from "./asyncConvertContentBodyRequest.js";
|
|
16
16
|
export * from "./asyncConvertContentBodyResponse.js";
|
|
17
|
+
export * from "./bulkAsyncConvertContentBodyRequest.js";
|
|
18
|
+
export * from "./bulkAsyncConvertContentBodyResponse.js";
|
|
17
19
|
export * from "./checkContentPermission.js";
|
|
18
20
|
export * from "./convertContentBody.js";
|
|
19
21
|
export * from "./copyPage.js";
|
|
@@ -35,6 +37,7 @@ export * from "./createUserProperty.js";
|
|
|
35
37
|
export * from "./deleteContent.js";
|
|
36
38
|
export * from "./deleteContentProperty.js";
|
|
37
39
|
export * from "./deleteContentVersion.js";
|
|
40
|
+
export * from "./deleteGroupById.js";
|
|
38
41
|
export * from "./deleteLabelFromSpace.js";
|
|
39
42
|
export * from "./deletePageTree.js";
|
|
40
43
|
export * from "./deleteRelationship.js";
|
|
@@ -71,6 +74,7 @@ export * from "./getContentRestrictionStatusForGroup.js";
|
|
|
71
74
|
export * from "./getContentRestrictionStatusForUser.js";
|
|
72
75
|
export * from "./getContentState.js";
|
|
73
76
|
export * from "./getContentStateSettings.js";
|
|
77
|
+
export * from "./getContentsWithState.js";
|
|
74
78
|
export * from "./getContentTemplate.js";
|
|
75
79
|
export * from "./getContentTemplates.js";
|
|
76
80
|
export * from "./getContentVersion.js";
|
|
@@ -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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from "./models/index.js";
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
|
-
import type { Callback } from "../callback.js";
|
|
4
3
|
import type { Client } from "../clients/index.js";
|
|
4
|
+
import type { Callback } from "../callback.js";
|
|
5
5
|
export declare class Relation {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -10,8 +10,8 @@ export declare class Relation {
|
|
|
10
10
|
* way.
|
|
11
11
|
*
|
|
12
12
|
* For example, the following method finds all content that the current user has an 'ignore' relationship with: `GET
|
|
13
|
-
* https://your-domain.atlassian.net/
|
|
14
|
-
*
|
|
13
|
+
* https://your-domain.atlassian.net/api/relation/ignore/from/user/current/to/content` Note, 'ignore' is an example
|
|
14
|
+
* custom relationship type.
|
|
15
15
|
*
|
|
16
16
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
17
17
|
* and source entity.
|
|
@@ -22,8 +22,8 @@ export declare class Relation {
|
|
|
22
22
|
* way.
|
|
23
23
|
*
|
|
24
24
|
* For example, the following method finds all content that the current user has an 'ignore' relationship with: `GET
|
|
25
|
-
* https://your-domain.atlassian.net/
|
|
26
|
-
*
|
|
25
|
+
* https://your-domain.atlassian.net/api/relation/ignore/from/user/current/to/content` Note, 'ignore' is an example
|
|
26
|
+
* custom relationship type.
|
|
27
27
|
*
|
|
28
28
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
29
29
|
* and source entity.
|
|
@@ -35,7 +35,7 @@ export declare class Relation {
|
|
|
35
35
|
*
|
|
36
36
|
* For example, you can use this method to find whether the current user has selected a particular page as a favorite
|
|
37
37
|
* (i.e. 'save for later'): `GET
|
|
38
|
-
* https://your-domain.atlassian.net/
|
|
38
|
+
* https://your-domain.atlassian.net/api/relation/favourite/from/user/current/to/content/123`
|
|
39
39
|
*
|
|
40
40
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
41
41
|
* and source entity.
|
|
@@ -47,7 +47,7 @@ export declare class Relation {
|
|
|
47
47
|
*
|
|
48
48
|
* For example, you can use this method to find whether the current user has selected a particular page as a favorite
|
|
49
49
|
* (i.e. 'save for later'): `GET
|
|
50
|
-
* https://your-domain.atlassian.net/
|
|
50
|
+
* https://your-domain.atlassian.net/api/relation/favourite/from/user/current/to/content/123`
|
|
51
51
|
*
|
|
52
52
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
53
53
|
* and source entity.
|
|
@@ -58,7 +58,7 @@ export declare class Relation {
|
|
|
58
58
|
* default, but you can use this method to create any type of relationship between two entities.
|
|
59
59
|
*
|
|
60
60
|
* For example, the following method creates a 'sibling' relationship between two pieces of content: `GET
|
|
61
|
-
* https://your-domain.atlassian.net/
|
|
61
|
+
* https://your-domain.atlassian.net/api/relation/sibling/from/content/123/to/content/456`
|
|
62
62
|
*
|
|
63
63
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
64
64
|
* ('Can use' global permission).
|
|
@@ -69,7 +69,7 @@ export declare class Relation {
|
|
|
69
69
|
* default, but you can use this method to create any type of relationship between two entities.
|
|
70
70
|
*
|
|
71
71
|
* For example, the following method creates a 'sibling' relationship between two pieces of content: `GET
|
|
72
|
-
* https://your-domain.atlassian.net/
|
|
72
|
+
* https://your-domain.atlassian.net/api/relation/sibling/from/content/123/to/content/456`
|
|
73
73
|
*
|
|
74
74
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
75
75
|
* ('Can use' global permission).
|
|
@@ -96,9 +96,8 @@ export declare class Relation {
|
|
|
96
96
|
* way.
|
|
97
97
|
*
|
|
98
98
|
* For example, the following method finds all users that have a 'collaborator' relationship to a piece of content
|
|
99
|
-
* with an ID of '1234': `GET
|
|
100
|
-
*
|
|
101
|
-
* 'collaborator' is an example custom relationship type.
|
|
99
|
+
* with an ID of '1234': `GET https://your-domain.atlassian.net/api/relation/collaborator/to/content/1234/from/user`
|
|
100
|
+
* Note, 'collaborator' is an example custom relationship type.
|
|
102
101
|
*
|
|
103
102
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
104
103
|
* and source entity.
|
|
@@ -109,9 +108,8 @@ export declare class Relation {
|
|
|
109
108
|
* way.
|
|
110
109
|
*
|
|
111
110
|
* For example, the following method finds all users that have a 'collaborator' relationship to a piece of content
|
|
112
|
-
* with an ID of '1234': `GET
|
|
113
|
-
*
|
|
114
|
-
* 'collaborator' is an example custom relationship type.
|
|
111
|
+
* with an ID of '1234': `GET https://your-domain.atlassian.net/api/relation/collaborator/to/content/1234/from/user`
|
|
112
|
+
* Note, 'collaborator' is an example custom relationship type.
|
|
115
113
|
*
|
|
116
114
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
117
115
|
* and source entity.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from "./models/index.js";
|
|
2
2
|
import type * as Parameters from "./parameters/index.js";
|
|
3
|
-
import type { Callback } from "../callback.js";
|
|
4
3
|
import type { Client } from "../clients/index.js";
|
|
4
|
+
import type { Callback } from "../callback.js";
|
|
5
5
|
export declare class Search {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -33,6 +33,9 @@ export declare class Search {
|
|
|
33
33
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
34
34
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
35
35
|
*
|
|
36
|
+
* Note that CQL input queries submitted through the `/api/search/user` endpoint only support user-specific fields
|
|
37
|
+
* like `user`, `user.fullname`, `user.accountid`, and `user.userkey`.
|
|
38
|
+
*
|
|
36
39
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
37
40
|
* profilePicture, displayName, and timeZone.
|
|
38
41
|
*/
|
|
@@ -41,6 +44,9 @@ export declare class Search {
|
|
|
41
44
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
42
45
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
43
46
|
*
|
|
47
|
+
* Note that CQL input queries submitted through the `/api/search/user` endpoint only support user-specific fields
|
|
48
|
+
* like `user`, `user.fullname`, `user.accountid`, and `user.userkey`.
|
|
49
|
+
*
|
|
44
50
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
45
51
|
* profilePicture, displayName, and timeZone.
|
|
46
52
|
*/
|