@resolution/confluence-api-client 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +60 -1
  3. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
  4. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
  5. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  6. package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/v1/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  10. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  11. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  12. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  13. package/lib/openapi/v1/services/AuditService.js +205 -202
  14. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  15. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  16. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  17. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  18. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  19. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  20. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  21. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  22. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  23. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  24. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  25. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  26. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  27. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  28. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  29. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  30. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  31. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  32. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  33. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  34. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  35. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  36. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  37. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  38. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  39. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  40. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  41. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  42. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  43. package/lib/openapi/v1/services/ContentService.js +475 -472
  44. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  45. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  46. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  47. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  48. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  49. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  50. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  51. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  52. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  53. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  54. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  55. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  56. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  57. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  58. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  59. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  60. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  61. package/lib/openapi/v1/services/GroupService.js +445 -442
  62. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  63. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  64. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  65. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  66. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  67. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  68. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  69. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  70. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  71. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  72. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  73. package/lib/openapi/v1/services/RelationService.js +231 -228
  74. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  75. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  76. package/lib/openapi/v1/services/SearchService.js +136 -133
  77. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  78. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  79. package/lib/openapi/v1/services/SettingsService.js +204 -201
  80. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  81. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  82. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  83. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  84. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  85. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  86. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  87. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  88. package/lib/openapi/v1/services/SpaceService.js +320 -317
  89. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  90. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  91. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  92. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  93. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  94. package/lib/openapi/v1/services/TemplateService.js +214 -211
  95. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  96. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  97. package/lib/openapi/v1/services/ThemesService.js +179 -176
  98. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  99. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  100. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  101. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  102. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  103. package/lib/openapi/v1/services/UsersService.js +229 -226
  104. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  105. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
  106. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
  107. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  108. package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
  109. package/lib/openapi/v2/core/CommonHttpService.js +9 -0
  110. package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
  111. package/lib/openapi/v2/models/user.d.ts +0 -2
  112. package/lib/openapi/v2/models/user.js +0 -2
  113. package/lib/openapi/v2/models/user.js.map +1 -1
  114. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  115. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  116. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  117. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  118. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  119. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  120. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  121. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  122. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  123. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  124. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  125. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  126. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  127. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  128. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  129. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  130. package/lib/openapi/v2/services/CommentService.js +635 -632
  131. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  132. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  133. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  134. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  135. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  136. package/lib/openapi/v2/services/ContentService.js +40 -37
  137. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  138. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  139. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  140. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  141. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  142. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  143. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  144. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  145. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  146. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  147. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  148. package/lib/openapi/v2/services/LabelService.js +263 -260
  149. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  150. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  151. package/lib/openapi/v2/services/LikeService.js +250 -247
  152. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  153. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  154. package/lib/openapi/v2/services/OperationService.js +298 -295
  155. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  156. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  157. package/lib/openapi/v2/services/PageService.js +272 -269
  158. package/lib/openapi/v2/services/PageService.js.map +1 -1
  159. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  160. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  161. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  162. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  163. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  164. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  165. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  166. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  167. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  168. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  169. package/lib/openapi/v2/services/SpaceService.js +83 -80
  170. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  171. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  172. package/lib/openapi/v2/services/TaskService.js +120 -117
  173. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  174. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  175. package/lib/openapi/v2/services/UserService.js +91 -88
  176. package/lib/openapi/v2/services/UserService.js.map +1 -1
  177. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  178. package/lib/openapi/v2/services/VersionService.js +395 -392
  179. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  180. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  181. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  182. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  183. package/package.json +4 -3
@@ -22,12 +22,12 @@ export declare class GroupService extends CommonHttpService {
22
22
  * @scopes-beta write:group:confluence
23
23
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-user-post
24
24
  */
25
- addUserToGroup({ name, accountId, }: {
25
+ addUserToGroup: ({ name, accountId, }: {
26
26
  /** Name of the group whose membership is updated */
27
27
  name: string;
28
28
  /** AccountId of the user who needs to be added as member. */
29
29
  accountId: AccountId;
30
- }): Promise<void>;
30
+ }) => Promise<void>;
31
31
  /**
32
32
  * Adds a user as a member in a group represented by its groupId
33
33
  *
@@ -39,12 +39,12 @@ export declare class GroupService extends CommonHttpService {
39
39
  * @scopes-beta write:group:confluence
40
40
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-post
41
41
  */
42
- addUserToGroupByGroupId({ groupId, accountId, }: {
42
+ addUserToGroupByGroupId: ({ groupId, accountId, }: {
43
43
  /** GroupId of the group whose membership is updated */
44
44
  groupId: string;
45
45
  /** AccountId of the user who needs to be added as member. */
46
46
  accountId: AccountId;
47
- }): Promise<void>;
47
+ }) => Promise<void>;
48
48
  /**
49
49
  * Creates a new user group.
50
50
  *
@@ -57,10 +57,10 @@ export declare class GroupService extends CommonHttpService {
57
57
  * @scopes-beta read:group:confluence, write:group:confluence
58
58
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-post
59
59
  */
60
- createGroup({ groupName, }: {
60
+ createGroup: ({ groupName, }: {
61
61
  /** Name of the group that is to be created. */
62
62
  groupName: GroupName;
63
- }): Promise<Group>;
63
+ }) => Promise<Group>;
64
64
  /**
65
65
  * Returns a user group for a given group id.
66
66
  *
@@ -73,10 +73,10 @@ export declare class GroupService extends CommonHttpService {
73
73
  * @scopes-beta read:group:confluence
74
74
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-id-get
75
75
  */
76
- getGroupByGroupId({ id, }: {
76
+ getGroupByGroupId: ({ id, }: {
77
77
  /** The id of the group. */
78
78
  id: string;
79
- }): Promise<Group>;
79
+ }) => Promise<Group>;
80
80
  /**
81
81
  * Returns a user group for a given group name.
82
82
  *
@@ -90,13 +90,13 @@ export declare class GroupService extends CommonHttpService {
90
90
  * @path {GET} /wiki/rest/api/group/{groupName}
91
91
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-get
92
92
  */
93
- getGroupByName({ groupName, }: {
93
+ getGroupByName: ({ groupName, }: {
94
94
  /**
95
95
  * The name of the group. This is the same as the group name shown in
96
96
  * the Confluence administration console.
97
97
  */
98
98
  groupName: string;
99
- }): Promise<Group>;
99
+ }) => Promise<Group>;
100
100
  /**
101
101
  * Returns a user group for a given group name.
102
102
  *
@@ -110,13 +110,13 @@ export declare class GroupService extends CommonHttpService {
110
110
  * @scopes-beta read:group:confluence
111
111
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-name-get
112
112
  */
113
- getGroupByQueryParam({ name, }: {
113
+ getGroupByQueryParam: ({ name, }: {
114
114
  /**
115
115
  * The name of the group. This is the same as the group name shown in
116
116
  * the Confluence administration console.
117
117
  */
118
118
  name: string;
119
- }): Promise<Group>;
119
+ }) => Promise<Group>;
120
120
  /**
121
121
  * Returns the users that are members of a group.
122
122
  *
@@ -130,17 +130,17 @@ export declare class GroupService extends CommonHttpService {
130
130
  * @path {GET} /wiki/rest/api/group/{groupName}/member
131
131
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-member-get
132
132
  */
133
- getGroupMembers({ groupName, start, limit, }: {
133
+ getGroupMembers: ({ groupName, start, limit, }: {
134
134
  /** The name of the group to be queried for its members. */
135
135
  groupName: string;
136
136
  /** The starting index of the returned users. */
137
- start?: number;
137
+ start?: number | undefined;
138
138
  /**
139
139
  * The maximum number of users to return per page.
140
140
  * Note, this may be restricted by fixed system limits.
141
141
  */
142
- limit?: number;
143
- }): Promise<UserArray>;
142
+ limit?: number | undefined;
143
+ }) => Promise<UserArray>;
144
144
  /**
145
145
  * Returns the users that are members of a group.
146
146
  *
@@ -155,22 +155,22 @@ export declare class GroupService extends CommonHttpService {
155
155
  * @scopes-beta read:group:confluence, read:user:confluence
156
156
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupid-membersbygroupid-get
157
157
  */
158
- getGroupMembersByGroupId({ groupId, start, limit, shouldReturnTotalSize, expand, }: {
158
+ getGroupMembersByGroupId: ({ groupId, start, limit, shouldReturnTotalSize, expand, }: {
159
159
  /** The id of the group to be queried for its members. */
160
160
  groupId: string;
161
161
  /** The starting index of the returned users. */
162
- start?: number;
162
+ start?: number | undefined;
163
163
  /**
164
164
  * The maximum number of users to return per page.
165
165
  * Note, this may be restricted by fixed system limits.
166
166
  */
167
- limit?: number;
167
+ limit?: number | undefined;
168
168
  /**
169
169
  * Whether to include total size parameter in the results.
170
170
  * Note, fetching total size property is an expensive operation; use it if your
171
171
  * use case needs this value.
172
172
  */
173
- shouldReturnTotalSize?: boolean;
173
+ shouldReturnTotalSize?: boolean | undefined;
174
174
  /**
175
175
  * A multi-value parameter indicating which properties of the user to
176
176
  * expand.
@@ -180,8 +180,8 @@ export declare class GroupService extends CommonHttpService {
180
180
  * - `isExternalCollaborator` returns whether the user is an external
181
181
  * collaborator user.
182
182
  */
183
- expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
184
- }): Promise<UserArray>;
183
+ expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
184
+ }) => Promise<UserArray>;
185
185
  /**
186
186
  * Returns all user groups. The returned groups are ordered alphabetically in
187
187
  * ascending order by group name.
@@ -195,17 +195,17 @@ export declare class GroupService extends CommonHttpService {
195
195
  * @scopes-beta read:group:confluence
196
196
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-get
197
197
  */
198
- getGroups({ start, limit, accessType, }?: {
198
+ getGroups: ({ start, limit, accessType, }?: {
199
199
  /** The starting index of the returned groups. */
200
- start?: number;
200
+ start?: number | undefined;
201
201
  /**
202
202
  * The maximum number of groups to return per page.
203
203
  * Note, this may be restricted by fixed system limits.
204
204
  */
205
- limit?: number;
205
+ limit?: number | undefined;
206
206
  /** The group permission level for which to filter results. */
207
- accessType?: "user" | "admin" | "site-admin";
208
- }): Promise<GroupArrayWithLinks>;
207
+ accessType?: "user" | "admin" | "site-admin" | undefined;
208
+ }) => Promise<GroupArrayWithLinks>;
209
209
  /**
210
210
  * Returns the users that are members of a group.
211
211
  *
@@ -219,24 +219,24 @@ export declare class GroupService extends CommonHttpService {
219
219
  * @scopes-beta read:group:confluence, read:user:confluence
220
220
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-member-get
221
221
  */
222
- getMembersByQueryParam({ name, start, limit, shouldReturnTotalSize, expand, }: {
222
+ getMembersByQueryParam: ({ name, start, limit, shouldReturnTotalSize, expand, }: {
223
223
  /** The name of the group to be queried for its members. */
224
224
  name: string;
225
225
  /** The starting index of the returned users. */
226
- start?: number;
226
+ start?: number | undefined;
227
227
  /**
228
228
  * The maximum number of users to return per page.
229
229
  * Note, this is restricted by fixed system limit of 200 which is to say if the
230
230
  * limit parameter
231
231
  * exceeds 200, this API will return a maximum of 200 users per page.
232
232
  */
233
- limit?: number;
233
+ limit?: number | undefined;
234
234
  /**
235
235
  * Whether to include total size parameter in the results.
236
236
  * Note, fetching total size property is an expensive operation; use it if your
237
237
  * use case needs this value.
238
238
  */
239
- shouldReturnTotalSize?: boolean;
239
+ shouldReturnTotalSize?: boolean | undefined;
240
240
  /**
241
241
  * A multi-value parameter indicating which properties of the user to
242
242
  * expand.
@@ -246,8 +246,8 @@ export declare class GroupService extends CommonHttpService {
246
246
  * - `isExternalCollaborator` returns whether the user is an external
247
247
  * collaborator user.
248
248
  */
249
- expand?: ("operations" | "personalSpace" | "isExternalCollaborator")[];
250
- }): Promise<UserArray>;
249
+ expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
250
+ }) => Promise<UserArray>;
251
251
  /**
252
252
  * Delete user group.
253
253
  *
@@ -260,10 +260,10 @@ export declare class GroupService extends CommonHttpService {
260
260
  * @scopes-beta write:group:confluence
261
261
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-delete
262
262
  */
263
- removeGroup({ name, }: {
263
+ removeGroup: ({ name, }: {
264
264
  /** Name of the group to delete. */
265
265
  name: string;
266
- }): Promise<void>;
266
+ }) => Promise<void>;
267
267
  /**
268
268
  * Delete user group.
269
269
  *
@@ -275,10 +275,10 @@ export declare class GroupService extends CommonHttpService {
275
275
  * @scopes-beta write:group:confluence
276
276
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-id-delete
277
277
  */
278
- removeGroupById({ id, }: {
278
+ removeGroupById: ({ id, }: {
279
279
  /** Id of the group to delete. */
280
280
  id: string;
281
- }): Promise<void>;
281
+ }) => Promise<void>;
282
282
  /**
283
283
  * Remove user as a member from a group.
284
284
  *
@@ -291,7 +291,7 @@ export declare class GroupService extends CommonHttpService {
291
291
  * @scopes-beta write:group:confluence
292
292
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-user-delete
293
293
  */
294
- removeMemberFromGroup({ name, key, username, accountId, }: {
294
+ removeMemberFromGroup: ({ name, key, username, accountId, }: {
295
295
  /** Name of the group whose membership is updated. */
296
296
  name: string;
297
297
  /**
@@ -304,7 +304,7 @@ export declare class GroupService extends CommonHttpService {
304
304
  *
305
305
  * @deprecated
306
306
  */
307
- key?: string;
307
+ key?: string | undefined;
308
308
  /**
309
309
  * This parameter is no longer available and will be removed from the
310
310
  * documentation soon.
@@ -315,14 +315,14 @@ export declare class GroupService extends CommonHttpService {
315
315
  *
316
316
  * @deprecated
317
317
  */
318
- username?: string;
318
+ username?: string | undefined;
319
319
  /**
320
320
  * The account ID of the user. The accountId uniquely identifies the user across
321
321
  * all Atlassian products.
322
322
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
323
323
  */
324
- accountId?: string;
325
- }): Promise<void>;
324
+ accountId?: string | undefined;
325
+ }) => Promise<void>;
326
326
  /**
327
327
  * Remove user as a member from a group.
328
328
  *
@@ -334,7 +334,7 @@ export declare class GroupService extends CommonHttpService {
334
334
  * @scopes-beta write:group:confluence
335
335
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-delete
336
336
  */
337
- removeMemberFromGroupByGroupId({ groupId, key, username, accountId, }: {
337
+ removeMemberFromGroupByGroupId: ({ groupId, key, username, accountId, }: {
338
338
  /** Id of the group whose membership is updated. */
339
339
  groupId: string;
340
340
  /**
@@ -347,7 +347,7 @@ export declare class GroupService extends CommonHttpService {
347
347
  *
348
348
  * @deprecated
349
349
  */
350
- key?: string;
350
+ key?: string | undefined;
351
351
  /**
352
352
  * This parameter is no longer available and will be removed from the
353
353
  * documentation soon.
@@ -358,14 +358,14 @@ export declare class GroupService extends CommonHttpService {
358
358
  *
359
359
  * @deprecated
360
360
  */
361
- username?: string;
361
+ username?: string | undefined;
362
362
  /**
363
363
  * The account ID of the user. The accountId uniquely identifies the user across
364
364
  * all Atlassian products.
365
365
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
366
366
  */
367
- accountId?: string;
368
- }): Promise<void>;
367
+ accountId?: string | undefined;
368
+ }) => Promise<void>;
369
369
  /**
370
370
  * Get search results of groups by partial query provided.
371
371
  *
@@ -375,22 +375,22 @@ export declare class GroupService extends CommonHttpService {
375
375
  * @scopes-beta read:group:confluence
376
376
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-picker-get
377
377
  */
378
- searchGroups({ query, start, limit, shouldReturnTotalSize, }: {
378
+ searchGroups: ({ query, start, limit, shouldReturnTotalSize, }: {
379
379
  /** the search term used to query results. */
380
380
  query: string;
381
381
  /** The starting index of the returned groups. */
382
- start?: number;
382
+ start?: number | undefined;
383
383
  /**
384
384
  * The maximum number of groups to return per page.
385
385
  * Note, this is restricted to a maximum limit of 200 groups.
386
386
  */
387
- limit?: number;
387
+ limit?: number | undefined;
388
388
  /**
389
389
  * Whether to include total size parameter in the results.
390
390
  * Note, fetching total size property is an expensive operation; use it if your
391
391
  * use case needs this value.
392
392
  */
393
- shouldReturnTotalSize?: boolean;
394
- }): Promise<GroupArrayWithLinks>;
393
+ shouldReturnTotalSize?: boolean | undefined;
394
+ }) => Promise<GroupArrayWithLinks>;
395
395
  static initialize(): void;
396
396
  }