@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,7 +22,7 @@ export declare class ContentWatchesService extends CommonHttpService {
22
22
  * @scopes-beta write:watcher:confluence
23
23
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-post
24
24
  */
25
- addContentWatcher({ contentId, key, username, accountId, }: {
25
+ addContentWatcher: ({ contentId, key, username, accountId, }: {
26
26
  /** The ID of the content to add the watcher to. */
27
27
  contentId: string;
28
28
  /**
@@ -35,7 +35,7 @@ export declare class ContentWatchesService extends CommonHttpService {
35
35
  *
36
36
  * @deprecated
37
37
  */
38
- key?: string;
38
+ key?: string | undefined;
39
39
  /**
40
40
  * This parameter is no longer available and will be removed from the
41
41
  * documentation soon.
@@ -46,14 +46,14 @@ export declare class ContentWatchesService extends CommonHttpService {
46
46
  *
47
47
  * @deprecated
48
48
  */
49
- username?: string;
49
+ username?: string | undefined;
50
50
  /**
51
51
  * The account ID of the user. The accountId uniquely identifies the user across
52
52
  * all Atlassian products.
53
53
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
54
54
  */
55
- accountId?: string;
56
- }): Promise<void>;
55
+ accountId?: string | undefined;
56
+ }) => Promise<void>;
57
57
  /**
58
58
  * Adds a user as a watcher to a label. Choose the user by doing one of the
59
59
  * following:
@@ -74,7 +74,7 @@ export declare class ContentWatchesService extends CommonHttpService {
74
74
  * @scopes-beta write:watcher:confluence
75
75
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-post
76
76
  */
77
- addLabelWatcher({ labelName, key, username, accountId, xAtlassianToken, }: {
77
+ addLabelWatcher: ({ labelName, key, username, accountId, xAtlassianToken, }: {
78
78
  /** The name of the label to add the watcher to. */
79
79
  labelName: string;
80
80
  /**
@@ -87,7 +87,7 @@ export declare class ContentWatchesService extends CommonHttpService {
87
87
  *
88
88
  * @deprecated
89
89
  */
90
- key?: string;
90
+ key?: string | undefined;
91
91
  /**
92
92
  * This parameter is no longer available and will be removed from the
93
93
  * documentation soon.
@@ -98,19 +98,19 @@ export declare class ContentWatchesService extends CommonHttpService {
98
98
  *
99
99
  * @deprecated
100
100
  */
101
- username?: string;
101
+ username?: string | undefined;
102
102
  /**
103
103
  * The account ID of the user. The accountId uniquely identifies the user across
104
104
  * all Atlassian products.
105
105
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
106
106
  */
107
- accountId?: string;
107
+ accountId?: string | undefined;
108
108
  /**
109
109
  * Note, you must add header when making a
110
110
  * request, as this operation has XSRF protection.
111
111
  */
112
112
  xAtlassianToken: string;
113
- }): Promise<void>;
113
+ }) => Promise<void>;
114
114
  /**
115
115
  * Adds a user as a watcher to a space. Choose the user by doing one of the
116
116
  * following:
@@ -131,7 +131,7 @@ export declare class ContentWatchesService extends CommonHttpService {
131
131
  * @scopes-beta write:watcher:confluence
132
132
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-post
133
133
  */
134
- addSpaceWatcher({ spaceKey, key, username, accountId, xAtlassianToken, }: {
134
+ addSpaceWatcher: ({ spaceKey, key, username, accountId, xAtlassianToken, }: {
135
135
  /** The key of the space to add the watcher to. */
136
136
  spaceKey: string;
137
137
  /**
@@ -144,7 +144,7 @@ export declare class ContentWatchesService extends CommonHttpService {
144
144
  *
145
145
  * @deprecated
146
146
  */
147
- key?: string;
147
+ key?: string | undefined;
148
148
  /**
149
149
  * This parameter is no longer available and will be removed from the
150
150
  * documentation soon.
@@ -155,19 +155,19 @@ export declare class ContentWatchesService extends CommonHttpService {
155
155
  *
156
156
  * @deprecated
157
157
  */
158
- username?: string;
158
+ username?: string | undefined;
159
159
  /**
160
160
  * The account ID of the user. The accountId uniquely identifies the user across
161
161
  * all Atlassian products.
162
162
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
163
163
  */
164
- accountId?: string;
164
+ accountId?: string | undefined;
165
165
  /**
166
166
  * Note, you must add header when making a
167
167
  * request, as this operation has XSRF protection.
168
168
  */
169
169
  xAtlassianToken: string;
170
- }): Promise<void>;
170
+ }) => Promise<void>;
171
171
  /**
172
172
  * Returns whether a user is watching a piece of content. Choose the user by
173
173
  * doing one of the following:
@@ -186,7 +186,7 @@ export declare class ContentWatchesService extends CommonHttpService {
186
186
  * @scopes-beta read:watcher:confluence
187
187
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-get
188
188
  */
189
- getContentWatchStatus({ contentId, key, username, accountId, }: {
189
+ getContentWatchStatus: ({ contentId, key, username, accountId, }: {
190
190
  /**
191
191
  * The ID of the content to be queried for whether the specified user is
192
192
  * watching it.
@@ -202,7 +202,7 @@ export declare class ContentWatchesService extends CommonHttpService {
202
202
  *
203
203
  * @deprecated
204
204
  */
205
- key?: string;
205
+ key?: string | undefined;
206
206
  /**
207
207
  * This parameter is no longer available and will be removed from the
208
208
  * documentation soon.
@@ -213,14 +213,14 @@ export declare class ContentWatchesService extends CommonHttpService {
213
213
  *
214
214
  * @deprecated
215
215
  */
216
- username?: string;
216
+ username?: string | undefined;
217
217
  /**
218
218
  * The account ID of the user. The accountId uniquely identifies the user across
219
219
  * all Atlassian products.
220
220
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
221
221
  */
222
- accountId?: string;
223
- }): Promise<UserWatch>;
222
+ accountId?: string | undefined;
223
+ }) => Promise<UserWatch>;
224
224
  /**
225
225
  * Returns a list of watchers of a space
226
226
  *
@@ -229,17 +229,17 @@ export declare class ContentWatchesService extends CommonHttpService {
229
229
  * @scopes-current read:watcher:confluence, read:user:confluence
230
230
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-space-spacekey-watch-get
231
231
  */
232
- getWatchersForSpace({ spaceKey, start, limit, }: {
232
+ getWatchersForSpace: ({ spaceKey, start, limit, }: {
233
233
  /** The key of the space to get watchers. */
234
234
  spaceKey: string;
235
235
  /** The start point of the collection to return. */
236
- start?: string;
236
+ start?: string | undefined;
237
237
  /**
238
238
  * The limit of the number of items to return, this may be restricted by fixed
239
239
  * system limits.
240
240
  */
241
- limit?: string;
242
- }): Promise<SpaceWatchArray>;
241
+ limit?: string | undefined;
242
+ }) => Promise<SpaceWatchArray>;
243
243
  /**
244
244
  * Returns the watches for a page. A user that watches a page will receive
245
245
  * receive notifications when the page is updated.
@@ -259,17 +259,17 @@ export declare class ContentWatchesService extends CommonHttpService {
259
259
  * @scopes-beta read:watcher:confluence, read:user:confluence
260
260
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-child-created-get
261
261
  */
262
- getWatchesForPage({ id, start, limit, }: {
262
+ getWatchesForPage: ({ id, start, limit, }: {
263
263
  /** The ID of the content to be queried for its watches. */
264
264
  id: string;
265
265
  /** The starting index of the returned watches. */
266
- start?: number;
266
+ start?: number | undefined;
267
267
  /**
268
268
  * The maximum number of watches to return per page.
269
269
  * Note, this may be restricted by fixed system limits.
270
270
  */
271
- limit?: number;
272
- }): Promise<WatchArray>;
271
+ limit?: number | undefined;
272
+ }) => Promise<WatchArray>;
273
273
  /**
274
274
  * Returns all space watches for the space that the content is in. A user that
275
275
  * watches a space will receive receive notifications when any content in the
@@ -290,17 +290,17 @@ export declare class ContentWatchesService extends CommonHttpService {
290
290
  * @scopes-beta read:watcher:confluence, read:user:confluence
291
291
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-created-get
292
292
  */
293
- getWatchesForSpace({ id, start, limit, }: {
293
+ getWatchesForSpace: ({ id, start, limit, }: {
294
294
  /** The ID of the content to be queried for its watches. */
295
295
  id: string;
296
296
  /** The starting index of the returned watches. */
297
- start?: number;
297
+ start?: number | undefined;
298
298
  /**
299
299
  * The maximum number of watches to return per page.
300
300
  * Note, this may be restricted by fixed system limits.
301
301
  */
302
- limit?: number;
303
- }): Promise<SpaceWatchArray>;
302
+ limit?: number | undefined;
303
+ }) => Promise<SpaceWatchArray>;
304
304
  /**
305
305
  * Returns whether a user is watching a label. Choose the user by doing one
306
306
  * of the following:
@@ -319,7 +319,7 @@ export declare class ContentWatchesService extends CommonHttpService {
319
319
  * @scopes-beta read:watcher:confluence
320
320
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-get
321
321
  */
322
- isWatchingLabel({ labelName, key, username, accountId, }: {
322
+ isWatchingLabel: ({ labelName, key, username, accountId, }: {
323
323
  /**
324
324
  * The name of the label to be queried for whether the specified user is
325
325
  * watching it.
@@ -335,7 +335,7 @@ export declare class ContentWatchesService extends CommonHttpService {
335
335
  *
336
336
  * @deprecated
337
337
  */
338
- key?: string;
338
+ key?: string | undefined;
339
339
  /**
340
340
  * This parameter is no longer available and will be removed from the
341
341
  * documentation soon.
@@ -346,14 +346,14 @@ export declare class ContentWatchesService extends CommonHttpService {
346
346
  *
347
347
  * @deprecated
348
348
  */
349
- username?: string;
349
+ username?: string | undefined;
350
350
  /**
351
351
  * The account ID of the user. The accountId uniquely identifies the user across
352
352
  * all Atlassian products.
353
353
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
354
354
  */
355
- accountId?: string;
356
- }): Promise<UserWatch>;
355
+ accountId?: string | undefined;
356
+ }) => Promise<UserWatch>;
357
357
  /**
358
358
  * Returns whether a user is watching a space. Choose the user by
359
359
  * doing one of the following:
@@ -372,7 +372,7 @@ export declare class ContentWatchesService extends CommonHttpService {
372
372
  * @scopes-beta read:watcher:confluence
373
373
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-get
374
374
  */
375
- isWatchingSpace({ spaceKey, key, username, accountId, }: {
375
+ isWatchingSpace: ({ spaceKey, key, username, accountId, }: {
376
376
  /**
377
377
  * The key of the space to be queried for whether the specified user is
378
378
  * watching it.
@@ -388,7 +388,7 @@ export declare class ContentWatchesService extends CommonHttpService {
388
388
  *
389
389
  * @deprecated
390
390
  */
391
- key?: string;
391
+ key?: string | undefined;
392
392
  /**
393
393
  * This parameter is no longer available and will be removed from the
394
394
  * documentation soon.
@@ -399,14 +399,14 @@ export declare class ContentWatchesService extends CommonHttpService {
399
399
  *
400
400
  * @deprecated
401
401
  */
402
- username?: string;
402
+ username?: string | undefined;
403
403
  /**
404
404
  * The account ID of the user. The accountId uniquely identifies the user across
405
405
  * all Atlassian products.
406
406
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
407
407
  */
408
- accountId?: string;
409
- }): Promise<UserWatch>;
408
+ accountId?: string | undefined;
409
+ }) => Promise<UserWatch>;
410
410
  /**
411
411
  * Removes a user as a watcher from a piece of content. Choose the user by
412
412
  * doing one of the following:
@@ -424,7 +424,7 @@ export declare class ContentWatchesService extends CommonHttpService {
424
424
  * @scopes-beta write:watcher:confluence
425
425
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-delete
426
426
  */
427
- removeContentWatcher({ contentId, key, username, accountId, xAtlassianToken, }: {
427
+ removeContentWatcher: ({ contentId, key, username, accountId, xAtlassianToken, }: {
428
428
  /** The ID of the content to remove the watcher from. */
429
429
  contentId: string;
430
430
  /**
@@ -437,7 +437,7 @@ export declare class ContentWatchesService extends CommonHttpService {
437
437
  *
438
438
  * @deprecated
439
439
  */
440
- key?: string;
440
+ key?: string | undefined;
441
441
  /**
442
442
  * This parameter is no longer available and will be removed from the
443
443
  * documentation soon.
@@ -448,19 +448,19 @@ export declare class ContentWatchesService extends CommonHttpService {
448
448
  *
449
449
  * @deprecated
450
450
  */
451
- username?: string;
451
+ username?: string | undefined;
452
452
  /**
453
453
  * The account ID of the user. The accountId uniquely identifies the user across
454
454
  * all Atlassian products.
455
455
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
456
456
  */
457
- accountId?: string;
457
+ accountId?: string | undefined;
458
458
  /**
459
459
  * Note, you must add header when making a
460
460
  * request, as this operation has XSRF protection.
461
461
  */
462
462
  xAtlassianToken: string;
463
- }): Promise<void>;
463
+ }) => Promise<void>;
464
464
  /**
465
465
  * Removes a user as a watcher from a label. Choose the user by doing one of
466
466
  * the following:
@@ -478,7 +478,7 @@ export declare class ContentWatchesService extends CommonHttpService {
478
478
  * @scopes-beta write:watcher:confluence
479
479
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-delete
480
480
  */
481
- removeLabelWatcher({ labelName, key, username, accountId, }: {
481
+ removeLabelWatcher: ({ labelName, key, username, accountId, }: {
482
482
  /** The name of the label to remove the watcher from. */
483
483
  labelName: string;
484
484
  /**
@@ -491,7 +491,7 @@ export declare class ContentWatchesService extends CommonHttpService {
491
491
  *
492
492
  * @deprecated
493
493
  */
494
- key?: string;
494
+ key?: string | undefined;
495
495
  /**
496
496
  * This parameter is no longer available and will be removed from the
497
497
  * documentation soon.
@@ -502,14 +502,14 @@ export declare class ContentWatchesService extends CommonHttpService {
502
502
  *
503
503
  * @deprecated
504
504
  */
505
- username?: string;
505
+ username?: string | undefined;
506
506
  /**
507
507
  * The account ID of the user. The accountId uniquely identifies the user across
508
508
  * all Atlassian products.
509
509
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
510
510
  */
511
- accountId?: string;
512
- }): Promise<void>;
511
+ accountId?: string | undefined;
512
+ }) => Promise<void>;
513
513
  /**
514
514
  * Removes a user as a watcher from a space. Choose the user by doing one of
515
515
  * the following:
@@ -527,7 +527,7 @@ export declare class ContentWatchesService extends CommonHttpService {
527
527
  * @scopes-beta write:watcher:confluence
528
528
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-delete
529
529
  */
530
- removeSpaceWatch({ spaceKey, key, username, accountId, }: {
530
+ removeSpaceWatch: ({ spaceKey, key, username, accountId, }: {
531
531
  /** The key of the space to remove the watcher from. */
532
532
  spaceKey: string;
533
533
  /**
@@ -540,7 +540,7 @@ export declare class ContentWatchesService extends CommonHttpService {
540
540
  *
541
541
  * @deprecated
542
542
  */
543
- key?: string;
543
+ key?: string | undefined;
544
544
  /**
545
545
  * This parameter is no longer available and will be removed from the
546
546
  * documentation soon.
@@ -551,13 +551,13 @@ export declare class ContentWatchesService extends CommonHttpService {
551
551
  *
552
552
  * @deprecated
553
553
  */
554
- username?: string;
554
+ username?: string | undefined;
555
555
  /**
556
556
  * The account ID of the user. The accountId uniquely identifies the user across
557
557
  * all Atlassian products.
558
558
  * For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
559
559
  */
560
- accountId?: string;
561
- }): Promise<void>;
560
+ accountId?: string | undefined;
561
+ }) => Promise<void>;
562
562
  static initialize(): void;
563
563
  }