@resolution/confluence-api-client 0.4.3 → 0.4.5

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 (171) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  4. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  5. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  6. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  7. package/lib/openapi/v1/services/AuditService.js +205 -202
  8. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  9. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  11. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  12. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  13. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  14. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  17. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  18. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  19. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  20. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  21. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  22. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  23. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  24. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  26. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  27. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  28. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  29. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  30. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  31. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  32. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  33. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  35. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  36. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  37. package/lib/openapi/v1/services/ContentService.js +475 -472
  38. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  39. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  40. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  41. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  42. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  43. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  44. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  45. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  46. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  47. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  48. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  49. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  50. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  51. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  52. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  53. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  54. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  55. package/lib/openapi/v1/services/GroupService.js +445 -442
  56. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  57. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  58. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  59. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  60. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  61. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  62. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  63. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  64. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  65. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  66. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  67. package/lib/openapi/v1/services/RelationService.js +231 -228
  68. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  69. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  70. package/lib/openapi/v1/services/SearchService.js +136 -133
  71. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  72. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  73. package/lib/openapi/v1/services/SettingsService.js +204 -201
  74. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  75. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  76. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  77. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  78. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  79. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  80. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  81. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  82. package/lib/openapi/v1/services/SpaceService.js +320 -317
  83. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  84. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  85. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  86. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  87. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  88. package/lib/openapi/v1/services/TemplateService.js +214 -211
  89. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  90. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  91. package/lib/openapi/v1/services/ThemesService.js +179 -176
  92. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  93. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  94. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  95. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  96. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  97. package/lib/openapi/v1/services/UsersService.js +229 -226
  98. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  99. package/lib/openapi/v2/models/user.d.ts +0 -2
  100. package/lib/openapi/v2/models/user.js +0 -2
  101. package/lib/openapi/v2/models/user.js.map +1 -1
  102. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  103. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  104. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  105. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  106. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  107. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  108. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  109. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  110. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  111. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  112. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  113. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  114. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  115. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  116. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  117. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  118. package/lib/openapi/v2/services/CommentService.js +635 -632
  119. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  120. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  121. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  122. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  123. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  124. package/lib/openapi/v2/services/ContentService.js +40 -37
  125. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  126. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  127. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  128. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  129. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  130. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  131. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  132. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  133. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  134. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  135. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  136. package/lib/openapi/v2/services/LabelService.js +263 -260
  137. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  138. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  139. package/lib/openapi/v2/services/LikeService.js +250 -247
  140. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  141. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  142. package/lib/openapi/v2/services/OperationService.js +298 -295
  143. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  144. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  145. package/lib/openapi/v2/services/PageService.js +272 -269
  146. package/lib/openapi/v2/services/PageService.js.map +1 -1
  147. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  148. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  149. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  150. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  151. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  152. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  153. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  154. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  155. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  156. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  157. package/lib/openapi/v2/services/SpaceService.js +83 -80
  158. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  159. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  160. package/lib/openapi/v2/services/TaskService.js +120 -117
  161. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  162. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  163. package/lib/openapi/v2/services/UserService.js +91 -88
  164. package/lib/openapi/v2/services/UserService.js.map +1 -1
  165. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  166. package/lib/openapi/v2/services/VersionService.js +395 -392
  167. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  168. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  169. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  170. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  171. package/package.json +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"ContentAttachmentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentAttachmentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAE1B,wEAAqE;AACrE,kGAAkG;AAClG,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,gBAAgB,CAAC,EACf,EAAE,EACF,MAAM,EACN,WAAW,GAOZ;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,8CAA8C;YAC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,CAAC,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,yDAAyD,CAAC,CACvE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA/lBD,8DA+lBC"}
1
+ {"version":3,"file":"ContentAttachmentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentAttachmentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAE1B,wEAAqE;AACrE,kGAAkG;AAClG,MAAa,yBAA0B,SAAQ,qCAAiB;IAAhE;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4CG;QACH,qBAAgB,GAAG,CAAC,EAClB,EAAE,EACF,MAAM,EACN,WAAW,GAOZ,EAAyB,EAAE;YAC1B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,8CAA8C;gBACpD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;iBACP;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,qBAAqB;iBACtC;gBACD,IAAI,EAAE,WAAW;aAClB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,qDAAqD,CACtD,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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c,CAAC;SACnD,CAAC;aACD,QAAQ,CACP,8DAA8D,CAC/D,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,qDAAqD,EACrD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC;SACnD,CAAC;aACD,QAAQ,CAAC,qDAAqD,CAAC,CACnE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,+DAA+D,EAC/D,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D,CAAC;aACD,QAAQ,CACP,+DAA+D,CAChE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,yDAAyD,EACzD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,yDAAyD,CAAC,CACvE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA/lBD,8DA+lBC"}
@@ -26,7 +26,7 @@ export declare class ContentBodyService extends CommonHttpService {
26
26
  * @scopes-beta read:content.metadata:confluence
27
27
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-to-post
28
28
  */
29
- asyncConvertContentBodyRequest({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }: {
29
+ asyncConvertContentBodyRequest: ({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }: {
30
30
  /** The name of the target format for the content body. */
31
31
  to: "export_view";
32
32
  /**
@@ -66,7 +66,7 @@ export declare class ContentBodyService extends CommonHttpService {
66
66
  * - `webresource.tags.js` returns common dependencies as html `<script>` and
67
67
  * `<style>` tags
68
68
  */
69
- expand?: string[];
69
+ expand?: string[] | undefined;
70
70
  /**
71
71
  * The space key used for resolving embedded content (page includes,
72
72
  * files, and links) in the content body. For example, if the source content
@@ -75,7 +75,7 @@ export declare class ContentBodyService extends CommonHttpService {
75
75
  * and the `spaceKeyContext=TEST` parameter is provided, then the link
76
76
  * will be converted to a link to the "Example page" page in the "TEST" space.
77
77
  */
78
- spaceKeyContext?: string;
78
+ spaceKeyContext?: string | undefined;
79
79
  /**
80
80
  * The content ID used to find the space for resolving embedded content
81
81
  * (page includes, files, and links) in the content body. For example,
@@ -86,7 +86,7 @@ export declare class ContentBodyService extends CommonHttpService {
86
86
  * that has the content with ID=123. Note, `spaceKeyContext` will be ignored
87
87
  * if this parameter is provided.
88
88
  */
89
- contentIdContext?: string;
89
+ contentIdContext?: string | undefined;
90
90
  /**
91
91
  * If this field is false, the cache will erase its current value and begin a new
92
92
  * conversion.
@@ -99,7 +99,7 @@ export declare class ContentBodyService extends CommonHttpService {
99
99
  * should set this fields to true. Cache values are stored per user per content
100
100
  * body and expansions.
101
101
  */
102
- allowCache?: boolean;
102
+ allowCache?: boolean | undefined;
103
103
  /**
104
104
  * Mode used for rendering embedded content, like attachments.
105
105
  *
@@ -107,10 +107,10 @@ export declare class ContentBodyService extends CommonHttpService {
107
107
  * - `version-at-save` renders the embedded content using the version at
108
108
  * the time of save.
109
109
  */
110
- embeddedContentRender?: "current" | "version-at-save";
110
+ embeddedContentRender?: "current" | "version-at-save" | undefined;
111
111
  /** The content body to convert. */
112
112
  contentBodyCreate: ContentBodyCreate;
113
- }): Promise<AsyncId>;
113
+ }) => Promise<AsyncId>;
114
114
  /**
115
115
  * Returns the asynchronous content body for the corresponding id if the task is
116
116
  * complete
@@ -130,10 +130,10 @@ export declare class ContentBodyService extends CommonHttpService {
130
130
  * @scopes-beta read:content.metadata:confluence
131
131
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-id-get
132
132
  */
133
- asyncConvertContentBodyResponse({ id, }: {
133
+ asyncConvertContentBodyResponse: ({ id, }: {
134
134
  /** The asyncId of the macro task to get the converted body. */
135
135
  id: string;
136
- }): Promise<AsyncContentBody>;
136
+ }) => Promise<AsyncContentBody>;
137
137
  /**
138
138
  * Converts a content body from one format to another format.
139
139
  *
@@ -155,7 +155,7 @@ export declare class ContentBodyService extends CommonHttpService {
155
155
  * @scopes-beta read:content.metadata:confluence
156
156
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-to-post
157
157
  */
158
- convertContentBody({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }: {
158
+ convertContentBody: ({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }: {
159
159
  /** The name of the target format for the content body. */
160
160
  to: string;
161
161
  /**
@@ -166,7 +166,7 @@ export declare class ContentBodyService extends CommonHttpService {
166
166
  * and the `spaceKeyContext=TEST` parameter is provided, then the link
167
167
  * will be converted to a link to the "Example page" page in the "TEST" space.
168
168
  */
169
- spaceKeyContext?: string;
169
+ spaceKeyContext?: string | undefined;
170
170
  /**
171
171
  * The content ID used to find the space for resolving embedded content
172
172
  * (page includes, files, and links) in the content body. For example,
@@ -177,7 +177,7 @@ export declare class ContentBodyService extends CommonHttpService {
177
177
  * that has the content with ID=123. Note, `spaceKeyContext` will be ignored
178
178
  * if this parameter is provided.
179
179
  */
180
- contentIdContext?: string;
180
+ contentIdContext?: string | undefined;
181
181
  /**
182
182
  * Mode used for rendering embedded content, like attachments.
183
183
  *
@@ -185,7 +185,7 @@ export declare class ContentBodyService extends CommonHttpService {
185
185
  * - `version-at-save` renders the embedded content using the version at
186
186
  * the time of save.
187
187
  */
188
- embeddedContentRender?: "current" | "version-at-save";
188
+ embeddedContentRender?: "current" | "version-at-save" | undefined;
189
189
  /**
190
190
  * A multi-value parameter indicating which properties of the content to expand
191
191
  * and populate. Expands are dependent on the
@@ -223,9 +223,9 @@ export declare class ContentBodyService extends CommonHttpService {
223
223
  * - `webresource.tags.js` returns common dependencies as html `<script>` and
224
224
  * `<style>` tags
225
225
  */
226
- expand?: string[];
226
+ expand?: string[] | undefined;
227
227
  /** The content body to convert. */
228
228
  contentBodyCreate: ContentBodyCreate;
229
- }): Promise<ContentBody>;
229
+ }) => Promise<ContentBody>;
230
230
  static initialize(): void;
231
231
  }
@@ -12,143 +12,146 @@ const contentBody_1 = require("../models/contentBody");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body */
14
14
  class ContentBodyService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Converts a content body from one format to another format asynchronously.
17
- * Returns the asyncId for the asynchronous task.
18
- *
19
- * Supported conversions:
20
- *
21
- * - storage: export_view
22
- *
23
- * No other conversions are supported at the moment.
24
- * Once a conversion is completed, it will be available for 5 minutes at the
25
- * result endpoint.
26
- *
27
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
28
- * If request specifies 'contentIdContext', 'View' permission for the space, and
29
- * permission to view the content.
30
- *
31
- * @returns Returned if the content is added to the messaging queue for conversion. This id
32
- * will be available for 5 minutes after the conversion is complete.
33
- * @path {POST} /wiki/rest/api/contentbody/convert/async/{to}
34
- * @scopes-current read:confluence-content.all
35
- * @scopes-beta read:content.metadata:confluence
36
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-to-post
37
- */
38
- asyncConvertContentBodyRequest({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }) {
39
- return this.getClientInstance()
40
- .request({
41
- path: "/wiki/rest/api/contentbody/convert/async/{to}",
42
- method: "POST",
43
- pathParams: {
44
- to,
45
- },
46
- query: {
47
- expand,
48
- spaceKeyContext,
49
- contentIdContext,
50
- allowCache,
51
- embeddedContentRender,
52
- },
53
- headers: {
54
- "Content-Type": "application/json",
55
- },
56
- body: contentBodyCreate,
57
- })
58
- .then(this.getClientInstance().responseHandler({
59
- 200: {
60
- "application/json": "json",
61
- },
62
- }))
63
- .then(commonHttpClient.castResponse())
64
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.asyncConvertContentBodyRequest.response"))
65
- .then(commonHttpClient.getBody);
66
- }
67
- /**
68
- * Returns the asynchronous content body for the corresponding id if the task is
69
- * complete
70
- * or returns the status of the task.
71
- *
72
- * After the task is completed, the result can be obtained for 5 minutes, or until
73
- * an identical conversion request is made again,
74
- * with allowCache query param set to false.
75
- *
76
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
77
- * If request specifies 'contentIdContext', 'View' permission for the space, and
78
- * permission to view the content.
79
- *
80
- * @returns Returned if successfully found an async conversion task associated with the id.
81
- * @path {GET} /wiki/rest/api/contentbody/convert/async/{id}
82
- * @scopes-current read:confluence-content.all
83
- * @scopes-beta read:content.metadata:confluence
84
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-id-get
85
- */
86
- asyncConvertContentBodyResponse({ id, }) {
87
- return this.getClientInstance()
88
- .request({
89
- path: "/wiki/rest/api/contentbody/convert/async/{id}",
90
- method: "GET",
91
- pathParams: {
92
- id,
93
- },
94
- })
95
- .then(this.getClientInstance().responseHandler({
96
- 200: {
97
- "application/json": "json",
98
- },
99
- }))
100
- .then(commonHttpClient.castResponse())
101
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.asyncConvertContentBodyResponse.response"))
102
- .then(commonHttpClient.getBody);
103
- }
104
- /**
105
- * Converts a content body from one format to another format.
106
- *
107
- * Supported conversions:
108
- *
109
- * - storage: view, export_view, styled_view, editor
110
- * - editor: storage
111
- * - view: none
112
- * - export_view: none
113
- * - styled_view: none
114
- *
115
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
116
- * If request specifies 'contentIdContext', 'View' permission for the space, and
117
- * permission to view the content.
118
- *
119
- * @returns Returned if the content is converted.
120
- * @path {POST} /wiki/rest/api/contentbody/convert/{to}
121
- * @scopes-current read:confluence-content.all
122
- * @scopes-beta read:content.metadata:confluence
123
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-to-post
124
- */
125
- convertContentBody({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }) {
126
- return this.getClientInstance()
127
- .request({
128
- path: "/wiki/rest/api/contentbody/convert/{to}",
129
- method: "POST",
130
- pathParams: {
131
- to,
132
- },
133
- query: {
134
- spaceKeyContext,
135
- contentIdContext,
136
- embeddedContentRender,
137
- expand,
138
- },
139
- headers: {
140
- "Content-Type": "application/json",
141
- },
142
- body: contentBodyCreate,
143
- })
144
- .then(this.getClientInstance().responseHandler({
145
- 200: {
146
- "application/json": "json",
147
- },
148
- }))
149
- .then(commonHttpClient.castResponse())
150
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.convertContentBody.response"))
151
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Converts a content body from one format to another format asynchronously.
19
+ * Returns the asyncId for the asynchronous task.
20
+ *
21
+ * Supported conversions:
22
+ *
23
+ * - storage: export_view
24
+ *
25
+ * No other conversions are supported at the moment.
26
+ * Once a conversion is completed, it will be available for 5 minutes at the
27
+ * result endpoint.
28
+ *
29
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
30
+ * If request specifies 'contentIdContext', 'View' permission for the space, and
31
+ * permission to view the content.
32
+ *
33
+ * @returns Returned if the content is added to the messaging queue for conversion. This id
34
+ * will be available for 5 minutes after the conversion is complete.
35
+ * @path {POST} /wiki/rest/api/contentbody/convert/async/{to}
36
+ * @scopes-current read:confluence-content.all
37
+ * @scopes-beta read:content.metadata:confluence
38
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-to-post
39
+ */
40
+ this.asyncConvertContentBodyRequest = ({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }) => {
41
+ return this.getClientInstance()
42
+ .request({
43
+ path: "/wiki/rest/api/contentbody/convert/async/{to}",
44
+ method: "POST",
45
+ pathParams: {
46
+ to,
47
+ },
48
+ query: {
49
+ expand,
50
+ spaceKeyContext,
51
+ contentIdContext,
52
+ allowCache,
53
+ embeddedContentRender,
54
+ },
55
+ headers: {
56
+ "Content-Type": "application/json",
57
+ },
58
+ body: contentBodyCreate,
59
+ })
60
+ .then(this.getClientInstance().responseHandler({
61
+ 200: {
62
+ "application/json": "json",
63
+ },
64
+ }))
65
+ .then(commonHttpClient.castResponse())
66
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.asyncConvertContentBodyRequest.response"))
67
+ .then(commonHttpClient.getBody);
68
+ };
69
+ /**
70
+ * Returns the asynchronous content body for the corresponding id if the task is
71
+ * complete
72
+ * or returns the status of the task.
73
+ *
74
+ * After the task is completed, the result can be obtained for 5 minutes, or until
75
+ * an identical conversion request is made again,
76
+ * with allowCache query param set to false.
77
+ *
78
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
79
+ * If request specifies 'contentIdContext', 'View' permission for the space, and
80
+ * permission to view the content.
81
+ *
82
+ * @returns Returned if successfully found an async conversion task associated with the id.
83
+ * @path {GET} /wiki/rest/api/contentbody/convert/async/{id}
84
+ * @scopes-current read:confluence-content.all
85
+ * @scopes-beta read:content.metadata:confluence
86
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-id-get
87
+ */
88
+ this.asyncConvertContentBodyResponse = ({ id, }) => {
89
+ return this.getClientInstance()
90
+ .request({
91
+ path: "/wiki/rest/api/contentbody/convert/async/{id}",
92
+ method: "GET",
93
+ pathParams: {
94
+ id,
95
+ },
96
+ })
97
+ .then(this.getClientInstance().responseHandler({
98
+ 200: {
99
+ "application/json": "json",
100
+ },
101
+ }))
102
+ .then(commonHttpClient.castResponse())
103
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.asyncConvertContentBodyResponse.response"))
104
+ .then(commonHttpClient.getBody);
105
+ };
106
+ /**
107
+ * Converts a content body from one format to another format.
108
+ *
109
+ * Supported conversions:
110
+ *
111
+ * - storage: view, export_view, styled_view, editor
112
+ * - editor: storage
113
+ * - view: none
114
+ * - export_view: none
115
+ * - styled_view: none
116
+ *
117
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
118
+ * If request specifies 'contentIdContext', 'View' permission for the space, and
119
+ * permission to view the content.
120
+ *
121
+ * @returns Returned if the content is converted.
122
+ * @path {POST} /wiki/rest/api/contentbody/convert/{to}
123
+ * @scopes-current read:confluence-content.all
124
+ * @scopes-beta read:content.metadata:confluence
125
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-to-post
126
+ */
127
+ this.convertContentBody = ({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }) => {
128
+ return this.getClientInstance()
129
+ .request({
130
+ path: "/wiki/rest/api/contentbody/convert/{to}",
131
+ method: "POST",
132
+ pathParams: {
133
+ to,
134
+ },
135
+ query: {
136
+ spaceKeyContext,
137
+ contentIdContext,
138
+ embeddedContentRender,
139
+ expand,
140
+ },
141
+ headers: {
142
+ "Content-Type": "application/json",
143
+ },
144
+ body: contentBodyCreate,
145
+ })
146
+ .then(this.getClientInstance().responseHandler({
147
+ 200: {
148
+ "application/json": "json",
149
+ },
150
+ }))
151
+ .then(commonHttpClient.castResponse())
152
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentBodyService.convertContentBody.response"))
153
+ .then(commonHttpClient.getBody);
154
+ };
152
155
  }
153
156
  static initialize() {
154
157
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentBodyService.convertContentBody.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"ContentBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,uDAG+B;AAC/B,wEAAqE;AACrE,2FAA2F;AAC3F,MAAa,kBAAmB,SAAQ,qCAAiB;IACvD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,8BAA8B,CAAC,EAC7B,EAAE,EACF,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,iBAAiB,GAqFlB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,+CAA+C;YACrD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,MAAM;gBACN,eAAe;gBACf,gBAAgB;gBAChB,UAAU;gBACV,qBAAqB;aACtB;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,iBAAiB;SACxB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,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
1
+ {"version":3,"file":"ContentBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,uDAG+B;AAC/B,wEAAqE;AACrE,2FAA2F;AAC3F,MAAa,kBAAmB,SAAQ,qCAAiB;IAAzD;;QACE;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,mCAA8B,GAAG,CAAC,EAChC,EAAE,EACF,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,iBAAiB,GAqFlB,EAAoB,EAAE;YACrB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,+CAA+C;gBACrD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,eAAe;oBACf,gBAAgB;oBAChB,UAAU;oBACV,qBAAqB;iBACtB;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,iBAAiB;aACxB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,4DAA4D,CAC7D,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;WAkBG;QACH,oCAA+B,GAAG,CAAC,EACjC,EAAE,GAIH,EAA6B,EAAE;YAC9B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC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tCC,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,aAAa,CAAC;SAClD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,6DAA6D,EAC7D,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC;SACvD,CAAC;aACD,QAAQ,CACP,6DAA6D,CAC9D,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,4DAA4D,EAC5D,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC;SAC9C,CAAC;aACD,QAAQ,CAAC,4DAA4D,CAAC,CAC1E,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,kDAAoC;SACrC,CAAC,CAAC;IACL,CAAC;CACF;AApYD,gDAoYC"}
@@ -28,7 +28,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
28
28
  * @scopes-beta read:content-details:confluence, write:page:confluence
29
29
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-copy-post
30
30
  */
31
- copyPage({ id, expand, copyPageRequest, }: {
31
+ copyPage: ({ id, expand, copyPageRequest, }: {
32
32
  id: string;
33
33
  /**
34
34
  * A multi-value parameter indicating which properties of the content to expand.
@@ -125,10 +125,10 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
125
125
  * - `extensions.inlineProperties` returns inline comment-specific properties.
126
126
  * - `extensions.resolution` returns the resolution status of each comment.
127
127
  */
128
- expand?: string[];
128
+ expand?: string[] | undefined;
129
129
  /** Request object from json post body */
130
130
  copyPageRequest: CopyPageRequest;
131
- }): Promise<Content | null>;
131
+ }) => Promise<Content | null>;
132
132
  /**
133
133
  * Copy page hierarchy allows the copying of an entire hierarchy of pages and
134
134
  * their associated properties, permissions and attachments.
@@ -157,11 +157,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
157
157
  * @scopes-beta read:content.metadata:confluence, write:page:confluence
158
158
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-pagehierarchy-copy-post
159
159
  */
160
- copyPageHierarchy({ id, copyPageHierarchyRequest, }: {
160
+ copyPageHierarchy: ({ id, copyPageHierarchyRequest, }: {
161
161
  id: string;
162
162
  /** Request object from json post body */
163
163
  copyPageHierarchyRequest: CopyPageHierarchyRequest;
164
- }): Promise<LongTask>;
164
+ }) => Promise<LongTask>;
165
165
  /**
166
166
  * Deprecated, use [Confluence's v2
167
167
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -202,7 +202,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
202
202
  * @scopes-beta read:content-details:confluence
203
203
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-get
204
204
  */
205
- getContentChildren({ id, expand, parentVersion, }: {
205
+ getContentChildren: ({ id, expand, parentVersion, }: {
206
206
  /** The ID of the content to be queried for its children. */
207
207
  id: string;
208
208
  /**
@@ -218,13 +218,13 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
218
218
  * - `folder` returns all child folders of the content.
219
219
  * - Custom content types that are provided by apps are also supported.
220
220
  */
221
- expand?: string[];
221
+ expand?: string[] | undefined;
222
222
  /**
223
223
  * The version of the parent content to retrieve children for.
224
224
  * Currently, this only works for the latest version.
225
225
  */
226
- parentVersion?: number;
227
- }): Promise<ContentChildren>;
226
+ parentVersion?: number | undefined;
227
+ }) => Promise<ContentChildren>;
228
228
  /**
229
229
  * Deprecated, use [Confluence's v2
230
230
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -266,7 +266,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
266
266
  * @scopes-beta read:content-details:confluence
267
267
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-type-get
268
268
  */
269
- getContentChildrenByType({ id, type, expand, parentVersion, start, limit, }: {
269
+ getContentChildrenByType: ({ id, type, expand, parentVersion, start, limit, }: {
270
270
  /** The ID of the content to be queried for its children. */
271
271
  id: string;
272
272
  /** The type of children to return. */
@@ -365,20 +365,20 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
365
365
  * - `extensions.inlineProperties` returns inline comment-specific properties.
366
366
  * - `extensions.resolution` returns the resolution status of each comment.
367
367
  */
368
- expand?: string[];
368
+ expand?: string[] | undefined;
369
369
  /**
370
370
  * The version of the parent content to retrieve children for.
371
371
  * Currently, this only works for the latest version.
372
372
  */
373
- parentVersion?: number;
373
+ parentVersion?: number | undefined;
374
374
  /** The starting index of the returned content. */
375
- start?: number;
375
+ start?: number | undefined;
376
376
  /**
377
377
  * The maximum number of content to return per page. Note,
378
378
  * this may be restricted by fixed system limits.
379
379
  */
380
- limit?: number;
381
- }): Promise<ContentArray>;
380
+ limit?: number | undefined;
381
+ }) => Promise<ContentArray>;
382
382
  /**
383
383
  * Returns a map of the descendants of a piece of content. This is similar
384
384
  * to [Get content children](#api-content-id-child-get), except that this
@@ -415,7 +415,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
415
415
  * @scopes-beta read:content-details:confluence
416
416
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-get
417
417
  */
418
- getContentDescendants({ id, expand, }: {
418
+ getContentDescendants: ({ id, expand, }: {
419
419
  /** The ID of the content to be queried for its descendants. */
420
420
  id: string;
421
421
  /**
@@ -430,8 +430,8 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
430
430
  * - `embed` returns all child embeds of the content.
431
431
  * - `folder` returns all child folders of the content.
432
432
  */
433
- expand?: ("attachment" | "comment" | "page")[];
434
- }): Promise<ContentChildren>;
433
+ expand?: ("attachment" | "page" | "comment")[] | undefined;
434
+ }) => Promise<ContentChildren>;
435
435
  /**
436
436
  * Returns all descendants of a given type, for a piece of content. This is
437
437
  * similar to [Get content children by type](#api-content-id-child-type-get),
@@ -470,7 +470,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
470
470
  * @scopes-beta read:content-details:confluence
471
471
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-type-get
472
472
  */
473
- getDescendantsOfType({ id, type, depth, expand, start, limit, }: {
473
+ getDescendantsOfType: ({ id, type, depth, expand, start, limit, }: {
474
474
  /** The ID of the content to be queried for its descendants. */
475
475
  id: string;
476
476
  /** The type of descendants to return. */
@@ -481,7 +481,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
481
481
  * (level 1) descendants of the type requested. all represents returning all
482
482
  * descendants of the type requested.
483
483
  */
484
- depth?: "all" | "root" | "<any positive integer argument in the range of 1 and 100>";
484
+ depth?: "all" | "root" | "<any positive integer argument in the range of 1 and 100>" | undefined;
485
485
  /**
486
486
  * A multi-value parameter indicating which properties of the content to expand.
487
487
  *
@@ -576,15 +576,15 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
576
576
  * - `extensions.inlineProperties` returns inline comment-specific properties.
577
577
  * - `extensions.resolution` returns the resolution status of each comment.
578
578
  */
579
- expand?: string[];
579
+ expand?: string[] | undefined;
580
580
  /** The starting index of the returned content. */
581
- start?: number;
581
+ start?: number | undefined;
582
582
  /**
583
583
  * The maximum number of content to return per page. Note,
584
584
  * this may be restricted by fixed system limits.
585
585
  */
586
- limit?: number;
587
- }): Promise<ContentArray>;
586
+ limit?: number | undefined;
587
+ }) => Promise<ContentArray>;
588
588
  /**
589
589
  * Move a page to a new location relative to a target page:
590
590
  *
@@ -606,7 +606,7 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
606
606
  * @scopes-beta write:page:confluence
607
607
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-pageid-move-position-targetid-put
608
608
  */
609
- movePage({ pageId, position, targetId, }: {
609
+ movePage: ({ pageId, position, targetId, }: {
610
610
  /** The ID of the page to be moved */
611
611
  pageId: string;
612
612
  /**
@@ -620,8 +620,8 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
620
620
  position: "before" | "after" | "append";
621
621
  /** The ID of the target page for this operation */
622
622
  targetId: string;
623
- }): Promise<{
624
- pageId?: ContentId;
623
+ }) => Promise<{
624
+ pageId?: string | undefined;
625
625
  } & {
626
626
  [key: string]: unknown;
627
627
  }>;