confluence.js 1.6.2 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/.prettierrc +8 -3
  2. package/CHANGELOG.md +8 -0
  3. package/README.md +16 -0
  4. package/out/api/models/addContentRestriction.d.ts +8 -3
  5. package/out/api/models/appDescriptor.d.ts +6 -3
  6. package/out/api/models/asyncContentBody.d.ts +2 -2
  7. package/out/api/models/attachment.d.ts +1 -0
  8. package/out/api/models/attachmentUpdate.d.ts +1 -1
  9. package/out/api/models/auditRecordCreate.d.ts +6 -2
  10. package/out/api/models/content.d.ts +2 -0
  11. package/out/api/models/contentBlueprintDraft.d.ts +2 -1
  12. package/out/api/models/contentCreate.d.ts +1 -0
  13. package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
  14. package/out/api/models/contentTemplateUpdate.d.ts +4 -1
  15. package/out/api/models/contentUpdate.d.ts +1 -0
  16. package/out/api/models/labeledContentType.js +1 -1
  17. package/out/api/models/labeledContentType.js.map +1 -1
  18. package/out/api/models/lifecycle.d.ts +6 -2
  19. package/out/api/parameters/addLabelsToContent.d.ts +2 -1
  20. package/out/api/parameters/createContent.d.ts +12 -3
  21. package/out/api/parameters/createContent.js +13 -4
  22. package/out/api/parameters/createContent.js.map +1 -1
  23. package/out/api/parameters/createRelationship.d.ts +4 -1
  24. package/out/api/parameters/createUserProperty.d.ts +2 -2
  25. package/out/api/parameters/delete.d.ts +4 -1
  26. package/out/api/parameters/deleteRelationship.d.ts +8 -5
  27. package/out/api/parameters/deleteUserProperty.d.ts +2 -2
  28. package/out/api/parameters/findSourcesForTarget.d.ts +2 -1
  29. package/out/api/parameters/findTargetFromSource.d.ts +2 -1
  30. package/out/api/parameters/getAttachments.d.ts +12 -3
  31. package/out/api/parameters/getAttachments.js +13 -4
  32. package/out/api/parameters/getAttachments.js.map +1 -1
  33. package/out/api/parameters/getAvailableContentStates.d.ts +1 -1
  34. package/out/api/parameters/getContent.d.ts +16 -4
  35. package/out/api/parameters/getContent.js +13 -4
  36. package/out/api/parameters/getContent.js.map +1 -1
  37. package/out/api/parameters/getContentById.d.ts +12 -3
  38. package/out/api/parameters/getContentById.js +13 -4
  39. package/out/api/parameters/getContentById.js.map +1 -1
  40. package/out/api/parameters/getContentProperties.d.ts +4 -2
  41. package/out/api/parameters/getContentProperty.d.ts +10 -8
  42. package/out/api/parameters/getContentTemplates.d.ts +4 -1
  43. package/out/api/parameters/getContentVersion.d.ts +2 -1
  44. package/out/api/parameters/getContentVersions.d.ts +2 -1
  45. package/out/api/parameters/getDescendantsOfType.d.ts +12 -3
  46. package/out/api/parameters/getDescendantsOfType.js +13 -4
  47. package/out/api/parameters/getDescendantsOfType.js.map +1 -1
  48. package/out/api/parameters/getHistoryForContent.d.ts +2 -1
  49. package/out/api/parameters/getLabelsForContent.d.ts +2 -1
  50. package/out/api/parameters/getRelationship.d.ts +6 -2
  51. package/out/api/parameters/getSpaces.d.ts +10 -3
  52. package/out/api/parameters/removeGroupById.d.ts +2 -2
  53. package/out/api/parameters/removeGroupByName.d.ts +2 -2
  54. package/out/api/parameters/removeModules.d.ts +2 -1
  55. package/out/api/parameters/restoreContentVersion.d.ts +2 -1
  56. package/out/api/parameters/search.d.ts +2 -2
  57. package/out/api/parameters/updateAttachmentProperties.d.ts +15 -15
  58. package/out/api/parameters/updateUserProperty.d.ts +2 -2
  59. package/out/api/space.js +1 -0
  60. package/out/api/space.js.map +1 -1
  61. package/out/clients/baseClient.d.ts +0 -1
  62. package/out/clients/baseClient.js +2 -2
  63. package/out/clients/baseClient.js.map +1 -1
  64. package/out/clients/confluenceClient.d.ts +2 -0
  65. package/out/clients/confluenceClient.js +3 -2
  66. package/out/clients/confluenceClient.js.map +1 -1
  67. package/out/clients/serverClient.d.ts +2 -1
  68. package/out/clients/serverClient.js +3 -3
  69. package/out/clients/serverClient.js.map +1 -1
  70. package/out/config.d.ts +7 -7
  71. package/out/server/models/content.d.ts +2 -0
  72. package/out/server/parameters/createAuditRecord.d.ts +6 -2
  73. package/out/server/parameters/getAttachments.d.ts +12 -3
  74. package/out/server/parameters/getAttachments.js +13 -4
  75. package/out/server/parameters/getAttachments.js.map +1 -1
  76. package/out/services/authenticationService/authenticationService.js +1 -1
  77. package/out/services/authenticationService/authenticationService.js.map +1 -1
  78. package/out/services/authenticationService/authentications/createJWTAuthentication.js +1 -1
  79. package/out/services/authenticationService/authentications/createJWTAuthentication.js.map +1 -1
  80. package/out/services/authenticationService/base64Encoder.d.ts +1 -3
  81. package/out/services/authenticationService/base64Encoder.js +3 -5
  82. package/out/services/authenticationService/base64Encoder.js.map +1 -1
  83. package/out/utilityTypes.d.ts +5 -1
  84. package/package.json +20 -19
  85. package/src/api/audit.ts +9 -9
  86. package/src/api/content.ts +8 -8
  87. package/src/api/contentAttachments.ts +10 -10
  88. package/src/api/contentBody.ts +6 -6
  89. package/src/api/contentChildrenAndDescendants.ts +11 -11
  90. package/src/api/contentComments.ts +2 -2
  91. package/src/api/contentContentState.ts +10 -10
  92. package/src/api/contentLabels.ts +7 -7
  93. package/src/api/contentMacroBody.ts +6 -6
  94. package/src/api/contentPermissions.ts +4 -4
  95. package/src/api/contentProperties.ts +11 -11
  96. package/src/api/contentRestrictions.ts +26 -26
  97. package/src/api/contentStates.ts +12 -12
  98. package/src/api/contentVersions.ts +6 -6
  99. package/src/api/contentWatches.ts +11 -11
  100. package/src/api/dynamicModules.ts +1 -1
  101. package/src/api/experimental.ts +9 -9
  102. package/src/api/group.ts +18 -18
  103. package/src/api/inlineTasks.ts +1 -1
  104. package/src/api/labelInfo.ts +2 -2
  105. package/src/api/longRunningTask.ts +2 -2
  106. package/src/api/models/addContentRestriction.ts +8 -3
  107. package/src/api/models/appDescriptor.ts +6 -3
  108. package/src/api/models/asyncContentBody.ts +2 -2
  109. package/src/api/models/attachment.ts +1 -0
  110. package/src/api/models/attachmentContainer.ts +1 -1
  111. package/src/api/models/attachmentUpdate.ts +1 -1
  112. package/src/api/models/auditRecordCreate.ts +6 -2
  113. package/src/api/models/content.ts +2 -0
  114. package/src/api/models/contentBlueprintDraft.ts +2 -1
  115. package/src/api/models/contentCreate.ts +1 -0
  116. package/src/api/models/contentRestrictionUpdate.ts +8 -3
  117. package/src/api/models/contentTemplateUpdate.ts +4 -1
  118. package/src/api/models/contentUpdate.ts +1 -0
  119. package/src/api/models/lifecycle.ts +6 -2
  120. package/src/api/parameters/addLabelsToContent.ts +2 -1
  121. package/src/api/parameters/createContent.ts +12 -3
  122. package/src/api/parameters/createRelationship.ts +4 -1
  123. package/src/api/parameters/createUserProperty.ts +2 -2
  124. package/src/api/parameters/delete.ts +4 -1
  125. package/src/api/parameters/deleteRelationship.ts +8 -5
  126. package/src/api/parameters/deleteUserProperty.ts +2 -2
  127. package/src/api/parameters/findSourcesForTarget.ts +2 -1
  128. package/src/api/parameters/findTargetFromSource.ts +2 -1
  129. package/src/api/parameters/getAttachments.ts +12 -3
  130. package/src/api/parameters/getAvailableContentStates.ts +1 -1
  131. package/src/api/parameters/getContent.ts +16 -4
  132. package/src/api/parameters/getContentById.ts +12 -3
  133. package/src/api/parameters/getContentProperties.ts +4 -2
  134. package/src/api/parameters/getContentProperty.ts +10 -8
  135. package/src/api/parameters/getContentTemplates.ts +4 -1
  136. package/src/api/parameters/getContentVersion.ts +2 -1
  137. package/src/api/parameters/getContentVersions.ts +2 -1
  138. package/src/api/parameters/getDescendantsOfType.ts +12 -3
  139. package/src/api/parameters/getHistoryForContent.ts +2 -1
  140. package/src/api/parameters/getLabelsForContent.ts +2 -1
  141. package/src/api/parameters/getRelationship.ts +6 -2
  142. package/src/api/parameters/getSpaces.ts +10 -3
  143. package/src/api/parameters/removeGroupById.ts +2 -2
  144. package/src/api/parameters/removeGroupByName.ts +2 -2
  145. package/src/api/parameters/removeModules.ts +2 -1
  146. package/src/api/parameters/restoreContentVersion.ts +2 -1
  147. package/src/api/parameters/search.ts +2 -2
  148. package/src/api/parameters/updateAttachmentProperties.ts +15 -15
  149. package/src/api/parameters/updateUserProperty.ts +2 -2
  150. package/src/api/relation.ts +8 -8
  151. package/src/api/search.ts +7 -7
  152. package/src/api/settings.ts +12 -12
  153. package/src/api/space.ts +8 -7
  154. package/src/api/spacePermissions.ts +5 -5
  155. package/src/api/spaceProperties.ts +10 -10
  156. package/src/api/spaceSettings.ts +4 -4
  157. package/src/api/template.ts +10 -10
  158. package/src/api/themes.ts +1 -1
  159. package/src/api/users.ts +13 -13
  160. package/src/clients/baseClient.ts +4 -4
  161. package/src/clients/confluenceClient.ts +8 -0
  162. package/src/clients/serverClient.ts +7 -1
  163. package/src/config.ts +19 -11
  164. package/src/server/audit.ts +9 -9
  165. package/src/server/content.ts +49 -49
  166. package/src/server/contentBody.ts +2 -2
  167. package/src/server/group.ts +2 -2
  168. package/src/server/longTask.ts +1 -1
  169. package/src/server/models/content.ts +2 -0
  170. package/src/server/parameters/createAuditRecord.ts +6 -2
  171. package/src/server/parameters/getAttachments.ts +12 -3
  172. package/src/server/parameters/updateAttachmentData.ts +1 -1
  173. package/src/server/search.ts +2 -2
  174. package/src/server/space.ts +16 -16
  175. package/src/server/user.ts +7 -7
  176. package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -4
  177. package/src/services/authenticationService/base64Encoder.ts +5 -5
  178. package/src/utilityTypes.ts +7 -1
@@ -27,7 +27,7 @@ export class ContentChildrenAndDescendants {
27
27
  */
28
28
  async getContentChildren<T = Models.ContentChildren>(
29
29
  parameters: Parameters.GetContentChildren,
30
- callback: Callback<T>
30
+ callback: Callback<T>,
31
31
  ): Promise<void>;
32
32
  /**
33
33
  * Returns a map of the direct children of a piece of content. A piece of content has different types of child
@@ -49,7 +49,7 @@ export class ContentChildrenAndDescendants {
49
49
  */
50
50
  async getContentChildren<T = Models.ContentChildren>(
51
51
  parameters: Parameters.GetContentChildren,
52
- callback?: never
52
+ callback?: never,
53
53
  ): Promise<T>;
54
54
  async getContentChildren<T = Models.ContentChildren>(
55
55
  parameters: Parameters.GetContentChildren,
@@ -121,7 +121,7 @@ export class ContentChildrenAndDescendants {
121
121
  */
122
122
  async getContentChildrenByType<T = Models.ContentArray>(
123
123
  parameters: Parameters.GetContentChildrenByType,
124
- callback: Callback<T>
124
+ callback: Callback<T>,
125
125
  ): Promise<void>;
126
126
  /**
127
127
  * Returns all children of a given type, for a piece of content. A piece of content has different types of child
@@ -142,7 +142,7 @@ export class ContentChildrenAndDescendants {
142
142
  */
143
143
  async getContentChildrenByType<T = Models.ContentArray>(
144
144
  parameters: Parameters.GetContentChildrenByType,
145
- callback?: never
145
+ callback?: never,
146
146
  ): Promise<T>;
147
147
  async getContentChildrenByType<T = Models.ContentArray>(
148
148
  parameters: Parameters.GetContentChildrenByType,
@@ -181,7 +181,7 @@ export class ContentChildrenAndDescendants {
181
181
  */
182
182
  async getContentDescendants<T = Models.ContentChildren>(
183
183
  parameters: Parameters.GetContentDescendants,
184
- callback: Callback<T>
184
+ callback: Callback<T>,
185
185
  ): Promise<void>;
186
186
  /**
187
187
  * Returns a map of the descendants of a piece of content. This is similar to [Get content
@@ -203,7 +203,7 @@ export class ContentChildrenAndDescendants {
203
203
  */
204
204
  async getContentDescendants<T = Models.ContentChildren>(
205
205
  parameters: Parameters.GetContentDescendants,
206
- callback?: never
206
+ callback?: never,
207
207
  ): Promise<T>;
208
208
  async getContentDescendants<T = Models.ContentChildren>(
209
209
  parameters: Parameters.GetContentDescendants,
@@ -223,12 +223,12 @@ export class ContentChildrenAndDescendants {
223
223
  /** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
224
224
  async descendantsOfType<T = Models.ContentArray>(
225
225
  parameters: Parameters.DescendantsOfType,
226
- callback: Callback<T>
226
+ callback: Callback<T>,
227
227
  ): Promise<void>;
228
228
  /** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
229
229
  async descendantsOfType<T = Models.ContentArray>(
230
230
  parameters: Parameters.DescendantsOfType,
231
- callback?: never
231
+ callback?: never,
232
232
  ): Promise<T>;
233
233
  async descendantsOfType<T = Models.ContentArray>(
234
234
  parameters: Parameters.DescendantsOfType,
@@ -256,7 +256,7 @@ export class ContentChildrenAndDescendants {
256
256
  */
257
257
  async getDescendantsOfType<T = Models.ContentArray>(
258
258
  parameters: Parameters.GetDescendantsOfType,
259
- callback: Callback<T>
259
+ callback: Callback<T>,
260
260
  ): Promise<void>;
261
261
  /**
262
262
  * Returns all descendants of a given type, for a piece of content. This is similar to [Get content children by
@@ -277,7 +277,7 @@ export class ContentChildrenAndDescendants {
277
277
  */
278
278
  async getDescendantsOfType<T = Models.ContentArray>(
279
279
  parameters: Parameters.GetDescendantsOfType,
280
- callback?: never
280
+ callback?: never,
281
281
  ): Promise<T>;
282
282
  async getDescendantsOfType<T = Models.ContentArray>(
283
283
  parameters: Parameters.GetDescendantsOfType,
@@ -306,7 +306,7 @@ export class ContentChildrenAndDescendants {
306
306
  */
307
307
  async copyPageHierarchy<T = Models.LongTask>(
308
308
  parameters: Parameters.CopyPageHierarchy,
309
- callback: Callback<T>
309
+ callback: Callback<T>,
310
310
  ): Promise<void>;
311
311
  /**
312
312
  * Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions
@@ -15,7 +15,7 @@ export class ContentComments {
15
15
  */
16
16
  async getContentComments<T = Models.ContentArray>(
17
17
  parameters: Parameters.GetContentComments,
18
- callback: Callback<T>
18
+ callback: Callback<T>,
19
19
  ): Promise<void>;
20
20
  /**
21
21
  * Returns the comments on a piece of content.
@@ -25,7 +25,7 @@ export class ContentComments {
25
25
  */
26
26
  async getContentComments<T = Models.ContentArray>(
27
27
  parameters: Parameters.GetContentComments,
28
- callback?: never
28
+ callback?: never,
29
29
  ): Promise<T>;
30
30
  async getContentComments<T = Models.ContentArray>(
31
31
  parameters: Parameters.GetContentComments,
@@ -15,7 +15,7 @@ export class ContentContentState {
15
15
  */
16
16
  async getContentState<T = Models.ContentStateContainer>(
17
17
  parameters: Parameters.GetContentState,
18
- callback: Callback<T>
18
+ callback: Callback<T>,
19
19
  ): Promise<void>;
20
20
  /**
21
21
  * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
@@ -23,7 +23,7 @@ export class ContentContentState {
23
23
  */
24
24
  async getContentState<T = Models.ContentStateContainer>(
25
25
  parameters: Parameters.GetContentState,
26
- callback?: never
26
+ callback?: never,
27
27
  ): Promise<T>;
28
28
  async getContentState<T = Models.ContentStateContainer>(
29
29
  parameters: Parameters.GetContentState,
@@ -52,7 +52,7 @@ export class ContentContentState {
52
52
  */
53
53
  async setContentState<T = Models.ContentStateContainer>(
54
54
  parameters: Parameters.SetContentState,
55
- callback: Callback<T>
55
+ callback: Callback<T>,
56
56
  ): Promise<void>;
57
57
  /**
58
58
  * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
@@ -66,7 +66,7 @@ export class ContentContentState {
66
66
  */
67
67
  async setContentState<T = Models.ContentStateContainer>(
68
68
  parameters: Parameters.SetContentState,
69
- callback?: never
69
+ callback?: never,
70
70
  ): Promise<T>;
71
71
  async setContentState<T = Models.ContentStateContainer>(
72
72
  parameters: Parameters.SetContentState,
@@ -91,7 +91,7 @@ export class ContentContentState {
91
91
  */
92
92
  async removeContentState<T = Models.ContentStateContainer>(
93
93
  parameters: Parameters.RemoveContentState,
94
- callback: Callback<T>
94
+ callback: Callback<T>,
95
95
  ): Promise<void>;
96
96
  /**
97
97
  * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
@@ -99,7 +99,7 @@ export class ContentContentState {
99
99
  */
100
100
  async removeContentState<T = Models.ContentStateContainer>(
101
101
  parameters: Parameters.RemoveContentState,
102
- callback?: never
102
+ callback?: never,
103
103
  ): Promise<T>;
104
104
  async removeContentState<T = Models.ContentStateContainer>(
105
105
  parameters: Parameters.RemoveContentState,
@@ -116,12 +116,12 @@ export class ContentContentState {
116
116
  /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
117
117
  async getContentStateLastUpdated<T = unknown>(
118
118
  parameters: Parameters.GetContentStateLastUpdated,
119
- callback: Callback<T>
119
+ callback: Callback<T>,
120
120
  ): Promise<void>;
121
121
  /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
122
122
  async getContentStateLastUpdated<T = unknown>(
123
123
  parameters: Parameters.GetContentStateLastUpdated,
124
- callback?: never
124
+ callback?: never,
125
125
  ): Promise<T>;
126
126
  async getContentStateLastUpdated<T = unknown>(
127
127
  parameters: Parameters.GetContentStateLastUpdated,
@@ -138,12 +138,12 @@ export class ContentContentState {
138
138
  /** @deprecated Gets content states that are available for the content to be set as. */
139
139
  async getAvailableContentStates<T = Models.AvailableContentStates>(
140
140
  parameters: Parameters.GetAvailableContentStates,
141
- callback: Callback<T>
141
+ callback: Callback<T>,
142
142
  ): Promise<void>;
143
143
  /** @deprecated Gets content states that are available for the content to be set as. */
144
144
  async getAvailableContentStates<T = Models.AvailableContentStates>(
145
145
  parameters: Parameters.GetAvailableContentStates,
146
- callback?: never
146
+ callback?: never,
147
147
  ): Promise<T>;
148
148
  async getAvailableContentStates<T = Models.AvailableContentStates>(
149
149
  parameters: Parameters.GetAvailableContentStates,
@@ -15,7 +15,7 @@ export class ContentLabels {
15
15
  */
16
16
  async getLabelsForContent<T = Models.LabelArray>(
17
17
  parameters: Parameters.GetLabelsForContent,
18
- callback: Callback<T>
18
+ callback: Callback<T>,
19
19
  ): Promise<void>;
20
20
  /**
21
21
  * Returns the labels on a piece of content.
@@ -25,7 +25,7 @@ export class ContentLabels {
25
25
  */
26
26
  async getLabelsForContent<T = Models.LabelArray>(
27
27
  parameters: Parameters.GetLabelsForContent,
28
- callback?: never
28
+ callback?: never,
29
29
  ): Promise<T>;
30
30
  async getLabelsForContent<T = Models.LabelArray>(
31
31
  parameters: Parameters.GetLabelsForContent,
@@ -57,7 +57,7 @@ export class ContentLabels {
57
57
  */
58
58
  async addLabelsToContent<T = Models.LabelArray>(
59
59
  parameters: Parameters.AddLabelsToContent,
60
- callback: Callback<T>
60
+ callback: Callback<T>,
61
61
  ): Promise<void>;
62
62
  /**
63
63
  * Adds labels to a piece of content. Does not modify the existing labels.
@@ -72,7 +72,7 @@ export class ContentLabels {
72
72
  */
73
73
  async addLabelsToContent<T = Models.LabelArray>(
74
74
  parameters: Parameters.AddLabelsToContent,
75
- callback?: never
75
+ callback?: never,
76
76
  ): Promise<T>;
77
77
  async addLabelsToContent<T = Models.LabelArray>(
78
78
  parameters: Parameters.AddLabelsToContent,
@@ -101,7 +101,7 @@ export class ContentLabels {
101
101
  */
102
102
  async removeLabelFromContentUsingQueryParameter<T = void>(
103
103
  parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
104
- callback: Callback<T>
104
+ callback: Callback<T>,
105
105
  ): Promise<void>;
106
106
  /**
107
107
  * Removes a label from a piece of content. This is similar to [Remove label from
@@ -114,7 +114,7 @@ export class ContentLabels {
114
114
  */
115
115
  async removeLabelFromContentUsingQueryParameter<T = void>(
116
116
  parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
117
- callback?: never
117
+ callback?: never,
118
118
  ): Promise<T>;
119
119
  async removeLabelFromContentUsingQueryParameter<T = void>(
120
120
  parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
@@ -143,7 +143,7 @@ export class ContentLabels {
143
143
  */
144
144
  async removeLabelFromContent<T = void>(
145
145
  parameters: Parameters.RemoveLabelFromContent,
146
- callback: Callback<T>
146
+ callback: Callback<T>,
147
147
  ): Promise<void>;
148
148
  /**
149
149
  * Removes a label from a piece of content. This is similar to [Remove label from content using query
@@ -25,7 +25,7 @@ export class ContentMacroBody {
25
25
  */
26
26
  async getMacroBodyByMacroId<T = Models.MacroInstance>(
27
27
  parameters: Parameters.GetMacroBodyByMacroId,
28
- callback: Callback<T>
28
+ callback: Callback<T>,
29
29
  ): Promise<void>;
30
30
  /**
31
31
  * Returns the body of a macro in storage format, for the given macro ID. This includes information like the name of
@@ -45,7 +45,7 @@ export class ContentMacroBody {
45
45
  */
46
46
  async getMacroBodyByMacroId<T = Models.MacroInstance>(
47
47
  parameters: Parameters.GetMacroBodyByMacroId,
48
- callback?: never
48
+ callback?: never,
49
49
  ): Promise<T>;
50
50
  async getMacroBodyByMacroId<T = Models.MacroInstance>(
51
51
  parameters: Parameters.GetMacroBodyByMacroId,
@@ -77,7 +77,7 @@ export class ContentMacroBody {
77
77
  */
78
78
  async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
79
79
  parameters: Parameters.GetAndConvertMacroBodyByMacroId,
80
- callback: Callback<T>
80
+ callback: Callback<T>,
81
81
  ): Promise<void>;
82
82
  /**
83
83
  * Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
@@ -97,7 +97,7 @@ export class ContentMacroBody {
97
97
  */
98
98
  async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
99
99
  parameters: Parameters.GetAndConvertMacroBodyByMacroId,
100
- callback?: never
100
+ callback?: never,
101
101
  ): Promise<T>;
102
102
  async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
103
103
  parameters: Parameters.GetAndConvertMacroBodyByMacroId,
@@ -134,7 +134,7 @@ export class ContentMacroBody {
134
134
  */
135
135
  async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
136
136
  parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
137
- callback: Callback<T>
137
+ callback: Callback<T>,
138
138
  ): Promise<void>;
139
139
  /**
140
140
  * Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
@@ -154,7 +154,7 @@ export class ContentMacroBody {
154
154
  */
155
155
  async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
156
156
  parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
157
- callback?: never
157
+ callback?: never,
158
158
  ): Promise<T>;
159
159
  async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
160
160
  parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
@@ -10,12 +10,12 @@ export class ContentPermissions {
10
10
  /** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */
11
11
  async permissionCheck<T = Models.PermissionCheckResponse>(
12
12
  parameters: Parameters.PermissionCheck,
13
- callback: Callback<T>
13
+ callback: Callback<T>,
14
14
  ): Promise<void>;
15
15
  /** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */
16
16
  async permissionCheck<T = Models.PermissionCheckResponse>(
17
17
  parameters: Parameters.PermissionCheck,
18
- callback?: never
18
+ callback?: never,
19
19
  ): Promise<T>;
20
20
  async permissionCheck<T = Models.PermissionCheckResponse>(
21
21
  parameters: Parameters.PermissionCheck,
@@ -40,7 +40,7 @@ export class ContentPermissions {
40
40
  */
41
41
  async checkContentPermission<T = Models.PermissionCheckResponse>(
42
42
  parameters: Parameters.CheckContentPermission,
43
- callback: Callback<T>
43
+ callback: Callback<T>,
44
44
  ): Promise<void>;
45
45
  /**
46
46
  * Check if a user or a group can perform an operation to the specified content. The `operation` to check must be
@@ -58,7 +58,7 @@ export class ContentPermissions {
58
58
  */
59
59
  async checkContentPermission<T = Models.PermissionCheckResponse>(
60
60
  parameters: Parameters.CheckContentPermission,
61
- callback?: never
61
+ callback?: never,
62
62
  ): Promise<T>;
63
63
  async checkContentPermission<T = Models.PermissionCheckResponse>(
64
64
  parameters: Parameters.CheckContentPermission,
@@ -16,7 +16,7 @@ export class ContentProperties {
16
16
  */
17
17
  async getContentProperties<T = Models.ContentPropertyArray>(
18
18
  parameters: Parameters.GetContentProperties,
19
- callback: Callback<T>
19
+ callback: Callback<T>,
20
20
  ): Promise<void>;
21
21
  /**
22
22
  * Returns the properties for a piece of content. For more information about content properties, see [Confluence
@@ -27,7 +27,7 @@ export class ContentProperties {
27
27
  */
28
28
  async getContentProperties<T = Models.ContentPropertyArray>(
29
29
  parameters: Parameters.GetContentProperties,
30
- callback?: never
30
+ callback?: never,
31
31
  ): Promise<T>;
32
32
  async getContentProperties<T = Models.ContentPropertyArray>(
33
33
  parameters: Parameters.GetContentProperties,
@@ -61,7 +61,7 @@ export class ContentProperties {
61
61
  */
62
62
  async createContentProperty<T = Models.ContentProperty>(
63
63
  parameters: Parameters.CreateContentProperty,
64
- callback: Callback<T>
64
+ callback: Callback<T>,
65
65
  ): Promise<void>;
66
66
  /**
67
67
  * Creates a property for an existing piece of content. For more information about content properties, see [Confluence
@@ -77,7 +77,7 @@ export class ContentProperties {
77
77
  */
78
78
  async createContentProperty<T = Models.ContentProperty>(
79
79
  parameters: Parameters.CreateContentProperty,
80
- callback?: never
80
+ callback?: never,
81
81
  ): Promise<T>;
82
82
  async createContentProperty<T = Models.ContentProperty>(
83
83
  parameters: Parameters.CreateContentProperty,
@@ -104,7 +104,7 @@ export class ContentProperties {
104
104
  */
105
105
  async getContentProperty<T = Models.ContentProperty>(
106
106
  parameters: Parameters.GetContentProperty,
107
- callback: Callback<T>
107
+ callback: Callback<T>,
108
108
  ): Promise<void>;
109
109
  /**
110
110
  * Returns a content property for a piece of content. For more information, see [Confluence entity
@@ -115,7 +115,7 @@ export class ContentProperties {
115
115
  */
116
116
  async getContentProperty<T = Models.ContentProperty>(
117
117
  parameters: Parameters.GetContentProperty,
118
- callback?: never
118
+ callback?: never,
119
119
  ): Promise<T>;
120
120
  async getContentProperty<T = Models.ContentProperty>(
121
121
  parameters: Parameters.GetContentProperty,
@@ -147,7 +147,7 @@ export class ContentProperties {
147
147
  */
148
148
  async createContentPropertyForKey<T = Models.ContentProperty>(
149
149
  parameters: Parameters.CreateContentPropertyForKey,
150
- callback: Callback<T>
150
+ callback: Callback<T>,
151
151
  ): Promise<void>;
152
152
  /**
153
153
  * Creates a property for an existing piece of content. For more information about content properties, see [Confluence
@@ -163,7 +163,7 @@ export class ContentProperties {
163
163
  */
164
164
  async createContentPropertyForKey<T = Models.ContentProperty>(
165
165
  parameters: Parameters.CreateContentPropertyForKey,
166
- callback?: never
166
+ callback?: never,
167
167
  ): Promise<T>;
168
168
  async createContentPropertyForKey<T = Models.ContentProperty>(
169
169
  parameters: Parameters.CreateContentPropertyForKey,
@@ -189,7 +189,7 @@ export class ContentProperties {
189
189
  */
190
190
  async updateContentProperty<T = Models.ContentProperty>(
191
191
  parameters: Parameters.UpdateContentProperty,
192
- callback: Callback<T>
192
+ callback: Callback<T>,
193
193
  ): Promise<void>;
194
194
  /**
195
195
  * Updates an existing content property. This method will also create a new property for a piece of content, if the
@@ -200,7 +200,7 @@ export class ContentProperties {
200
200
  */
201
201
  async updateContentProperty<T = Models.ContentProperty>(
202
202
  parameters: Parameters.UpdateContentProperty,
203
- callback?: never
203
+ callback?: never,
204
204
  ): Promise<T>;
205
205
  async updateContentProperty<T = Models.ContentProperty>(
206
206
  parameters: Parameters.UpdateContentProperty,
@@ -226,7 +226,7 @@ export class ContentProperties {
226
226
  */
227
227
  async deleteContentProperty<T = void>(
228
228
  parameters: Parameters.DeleteContentProperty,
229
- callback: Callback<T>
229
+ callback: Callback<T>,
230
230
  ): Promise<void>;
231
231
  /**
232
232
  * Deletes a content property. For more information about content properties, see [Confluence entity
@@ -14,7 +14,7 @@ export class ContentRestrictions {
14
14
  */
15
15
  async getRestrictions<T = Models.ContentRestrictionArray>(
16
16
  parameters: Parameters.GetRestrictions,
17
- callback: Callback<T>
17
+ callback: Callback<T>,
18
18
  ): Promise<void>;
19
19
  /**
20
20
  * Returns the restrictions on a piece of content.
@@ -23,7 +23,7 @@ export class ContentRestrictions {
23
23
  */
24
24
  async getRestrictions<T = Models.ContentRestrictionArray>(
25
25
  parameters: Parameters.GetRestrictions,
26
- callback?: never
26
+ callback?: never,
27
27
  ): Promise<T>;
28
28
  async getRestrictions<T = Models.ContentRestrictionArray>(
29
29
  parameters: Parameters.GetRestrictions,
@@ -49,7 +49,7 @@ export class ContentRestrictions {
49
49
  */
50
50
  async addRestrictions<T = Models.ContentRestrictionArray>(
51
51
  parameters: Parameters.AddRestrictions,
52
- callback: Callback<T>
52
+ callback: Callback<T>,
53
53
  ): Promise<void>;
54
54
  /**
55
55
  * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.
@@ -58,7 +58,7 @@ export class ContentRestrictions {
58
58
  */
59
59
  async addRestrictions<T = Models.ContentRestrictionArray>(
60
60
  parameters: Parameters.AddRestrictions,
61
- callback?: never
61
+ callback?: never,
62
62
  ): Promise<T>;
63
63
  async addRestrictions<T = Models.ContentRestrictionArray>(
64
64
  parameters: Parameters.AddRestrictions,
@@ -84,7 +84,7 @@ export class ContentRestrictions {
84
84
  */
85
85
  async updateRestrictions<T = Models.ContentRestrictionArray>(
86
86
  parameters: Parameters.UpdateRestrictions,
87
- callback: Callback<T>
87
+ callback: Callback<T>,
88
88
  ): Promise<void>;
89
89
  /**
90
90
  * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the
@@ -94,7 +94,7 @@ export class ContentRestrictions {
94
94
  */
95
95
  async updateRestrictions<T = Models.ContentRestrictionArray>(
96
96
  parameters: Parameters.UpdateRestrictions,
97
- callback?: never
97
+ callback?: never,
98
98
  ): Promise<T>;
99
99
  async updateRestrictions<T = Models.ContentRestrictionArray>(
100
100
  parameters: Parameters.UpdateRestrictions,
@@ -119,7 +119,7 @@ export class ContentRestrictions {
119
119
  */
120
120
  async deleteRestrictions<T = Models.ContentRestrictionArray>(
121
121
  parameters: Parameters.DeleteRestrictions,
122
- callback: Callback<T>
122
+ callback: Callback<T>,
123
123
  ): Promise<void>;
124
124
  /**
125
125
  * Removes all restrictions (read and update) on a piece of content.
@@ -128,7 +128,7 @@ export class ContentRestrictions {
128
128
  */
129
129
  async deleteRestrictions<T = Models.ContentRestrictionArray>(
130
130
  parameters: Parameters.DeleteRestrictions,
131
- callback?: never
131
+ callback?: never,
132
132
  ): Promise<T>;
133
133
  async deleteRestrictions<T = Models.ContentRestrictionArray>(
134
134
  parameters: Parameters.DeleteRestrictions,
@@ -154,7 +154,7 @@ export class ContentRestrictions {
154
154
  */
155
155
  async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
156
156
  parameters: Parameters.GetRestrictionsByOperation,
157
- callback: Callback<T>
157
+ callback: Callback<T>,
158
158
  ): Promise<void>;
159
159
  /**
160
160
  * Returns restrictions on a piece of content by operation. This method is similar to [Get
@@ -165,7 +165,7 @@ export class ContentRestrictions {
165
165
  */
166
166
  async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
167
167
  parameters: Parameters.GetRestrictionsByOperation,
168
- callback?: never
168
+ callback?: never,
169
169
  ): Promise<T>;
170
170
  async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
171
171
  parameters: Parameters.GetRestrictionsByOperation,
@@ -189,7 +189,7 @@ export class ContentRestrictions {
189
189
  */
190
190
  async getRestrictionsForOperation<T = Models.ContentRestriction>(
191
191
  parameters: Parameters.GetRestrictionsForOperation,
192
- callback: Callback<T>
192
+ callback: Callback<T>,
193
193
  ): Promise<void>;
194
194
  /**
195
195
  * Returns the restictions on a piece of content for a given operation (read or update).
@@ -198,7 +198,7 @@ export class ContentRestrictions {
198
198
  */
199
199
  async getRestrictionsForOperation<T = Models.ContentRestriction>(
200
200
  parameters: Parameters.GetRestrictionsForOperation,
201
- callback?: never
201
+ callback?: never,
202
202
  ): Promise<T>;
203
203
  async getRestrictionsForOperation<T = Models.ContentRestriction>(
204
204
  parameters: Parameters.GetRestrictionsForOperation,
@@ -231,7 +231,7 @@ export class ContentRestrictions {
231
231
  */
232
232
  async getContentRestrictionStatusForGroup<T = unknown>(
233
233
  parameters: Parameters.GetContentRestrictionStatusForGroup,
234
- callback: Callback<T>
234
+ callback: Callback<T>,
235
235
  ): Promise<void>;
236
236
  /**
237
237
  * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a
@@ -247,7 +247,7 @@ export class ContentRestrictions {
247
247
  */
248
248
  async getContentRestrictionStatusForGroup<T = unknown>(
249
249
  parameters: Parameters.GetContentRestrictionStatusForGroup,
250
- callback?: never
250
+ callback?: never,
251
251
  ): Promise<T>;
252
252
  async getContentRestrictionStatusForGroup<T = unknown>(
253
253
  parameters: Parameters.GetContentRestrictionStatusForGroup,
@@ -269,7 +269,7 @@ export class ContentRestrictions {
269
269
  */
270
270
  async addGroupToContentRestriction<T = unknown>(
271
271
  parameters: Parameters.AddGroupToContentRestriction,
272
- callback: Callback<T>
272
+ callback: Callback<T>,
273
273
  ): Promise<void>;
274
274
  /**
275
275
  * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
@@ -279,7 +279,7 @@ export class ContentRestrictions {
279
279
  */
280
280
  async addGroupToContentRestriction<T = unknown>(
281
281
  parameters: Parameters.AddGroupToContentRestriction,
282
- callback?: never
282
+ callback?: never,
283
283
  ): Promise<T>;
284
284
  async addGroupToContentRestriction<T = unknown>(
285
285
  parameters: Parameters.AddGroupToContentRestriction,
@@ -333,7 +333,7 @@ export class ContentRestrictions {
333
333
  */
334
334
  async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
335
335
  parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
336
- callback: Callback<T>
336
+ callback: Callback<T>,
337
337
  ): Promise<void>;
338
338
  /**
339
339
  * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a
@@ -349,7 +349,7 @@ export class ContentRestrictions {
349
349
  */
350
350
  async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
351
351
  parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
352
- callback?: never
352
+ callback?: never,
353
353
  ): Promise<T>;
354
354
  async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
355
355
  parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
@@ -371,7 +371,7 @@ export class ContentRestrictions {
371
371
  */
372
372
  async addGroupToContentRestrictionByGroupId<T = unknown>(
373
373
  parameters: Parameters.AddGroupToContentRestrictionByGroupId,
374
- callback: Callback<T>
374
+ callback: Callback<T>,
375
375
  ): Promise<void>;
376
376
  /**
377
377
  * Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a
@@ -381,7 +381,7 @@ export class ContentRestrictions {
381
381
  */
382
382
  async addGroupToContentRestrictionByGroupId<T = unknown>(
383
383
  parameters: Parameters.AddGroupToContentRestrictionByGroupId,
384
- callback?: never
384
+ callback?: never,
385
385
  ): Promise<T>;
386
386
  async addGroupToContentRestrictionByGroupId<T = unknown>(
387
387
  parameters: Parameters.AddGroupToContentRestrictionByGroupId,
@@ -436,7 +436,7 @@ export class ContentRestrictions {
436
436
  */
437
437
  async getContentRestrictionStatusForUser<T = unknown>(
438
438
  parameters: Parameters.GetContentRestrictionStatusForUser,
439
- callback: Callback<T>
439
+ callback: Callback<T>,
440
440
  ): Promise<void>;
441
441
  /**
442
442
  * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a
@@ -453,7 +453,7 @@ export class ContentRestrictions {
453
453
  */
454
454
  async getContentRestrictionStatusForUser<T = unknown>(
455
455
  parameters: Parameters.GetContentRestrictionStatusForUser,
456
- callback?: never
456
+ callback?: never,
457
457
  ): Promise<T>;
458
458
  async getContentRestrictionStatusForUser<T = unknown>(
459
459
  parameters: Parameters.GetContentRestrictionStatusForUser,
@@ -479,7 +479,7 @@ export class ContentRestrictions {
479
479
  */
480
480
  async addUserToContentRestriction<T = unknown>(
481
481
  parameters: Parameters.AddUserToContentRestriction,
482
- callback: Callback<T>
482
+ callback: Callback<T>,
483
483
  ): Promise<void>;
484
484
  /**
485
485
  * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content.
@@ -488,7 +488,7 @@ export class ContentRestrictions {
488
488
  */
489
489
  async addUserToContentRestriction<T = unknown>(
490
490
  parameters: Parameters.AddUserToContentRestriction,
491
- callback?: never
491
+ callback?: never,
492
492
  ): Promise<T>;
493
493
  async addUserToContentRestriction<T = unknown>(
494
494
  parameters: Parameters.AddUserToContentRestriction,
@@ -515,7 +515,7 @@ export class ContentRestrictions {
515
515
  */
516
516
  async removeUserFromContentRestriction<T = unknown>(
517
517
  parameters: Parameters.RemoveUserFromContentRestriction,
518
- callback: Callback<T>
518
+ callback: Callback<T>,
519
519
  ): Promise<void>;
520
520
  /**
521
521
  * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
@@ -525,7 +525,7 @@ export class ContentRestrictions {
525
525
  */
526
526
  async removeUserFromContentRestriction<T = unknown>(
527
527
  parameters: Parameters.RemoveUserFromContentRestriction,
528
- callback?: never
528
+ callback?: never,
529
529
  ): Promise<T>;
530
530
  async removeUserFromContentRestriction<T = unknown>(
531
531
  parameters: Parameters.RemoveUserFromContentRestriction,