@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
@@ -18,12 +18,12 @@ export declare class BlogPostService extends CommonHttpService {
18
18
  * @scopes-current write:page:confluence
19
19
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-post
20
20
  */
21
- createBlogPost({ private: privateQuery, requestBody, }: {
21
+ createBlogPost: ({ private: privateQuery, requestBody, }: {
22
22
  /**
23
23
  * The blog post will be private. Only the user who creates this blog post will
24
24
  * have permission to view and edit one.
25
25
  */
26
- private?: boolean;
26
+ private?: boolean | undefined;
27
27
  requestBody: {
28
28
  /** ID of the space */
29
29
  spaceId: string;
@@ -31,23 +31,23 @@ export declare class BlogPostService extends CommonHttpService {
31
31
  * The status of the blog post, specifies if the blog post will be created as a
32
32
  * new blog post or a draft
33
33
  */
34
- status?: "current" | "draft";
34
+ status?: "current" | "draft" | undefined;
35
35
  /** Title of the blog post, required if creating non-draft. */
36
- title?: string;
37
- body?: BlogPostBodyWrite | BlogPostNestedBodyWrite;
36
+ title?: string | undefined;
37
+ body?: BlogPostBodyWrite | BlogPostNestedBodyWrite | undefined;
38
38
  } & {
39
39
  [key: string]: unknown;
40
40
  };
41
- }): Promise<BlogPostSingle & ({
42
- _links?: {
41
+ }) => Promise<BlogPostSingle & {
42
+ _links?: ({
43
43
  /** Base url of the Confluence site. */
44
- base?: string;
44
+ base?: string | undefined;
45
45
  } & {
46
46
  [key: string]: unknown;
47
- };
47
+ }) | undefined;
48
48
  } & {
49
49
  [key: string]: unknown;
50
- })>;
50
+ }>;
51
51
  /**
52
52
  * Delete a blog post by id.
53
53
  *
@@ -70,14 +70,14 @@ export declare class BlogPostService extends CommonHttpService {
70
70
  * @scopes-current delete:page:confluence
71
71
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-delete
72
72
  */
73
- deleteBlogPost({ id, purge, draft, }: {
73
+ deleteBlogPost: ({ id, purge, draft, }: {
74
74
  /** The ID of the blog post to be deleted. */
75
75
  id: number;
76
76
  /** If attempting to purge the blog post. */
77
- purge?: boolean;
77
+ purge?: boolean | undefined;
78
78
  /** If attempting to delete a blog post that is a draft. */
79
- draft?: boolean;
80
- }): Promise<void>;
79
+ draft?: boolean | undefined;
80
+ }) => Promise<void>;
81
81
  /**
82
82
  * Returns a specific blog post.
83
83
  *
@@ -89,7 +89,7 @@ export declare class BlogPostService extends CommonHttpService {
89
89
  * @scopes-current read:page:confluence
90
90
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-get
91
91
  */
92
- getBlogPostById({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }: {
92
+ getBlogPostById: ({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }: {
93
93
  /**
94
94
  * The ID of the blog post to be returned. If you don't know the blog post ID, use
95
95
  * Get blog posts and filter the results.
@@ -100,14 +100,14 @@ export declare class BlogPostService extends CommonHttpService {
100
100
  * available, the representation will be available under a response field of the
101
101
  * same name under the `body` field.
102
102
  */
103
- bodyFormat?: PrimaryBodyRepresentationSingle;
103
+ bodyFormat?: PrimaryBodyRepresentationSingle | undefined;
104
104
  /** Retrieve the draft version of this blog post. */
105
- getDraft?: boolean;
105
+ getDraft?: boolean | undefined;
106
106
  /**
107
107
  * Allows you to retrieve a previously published version. Specify the previous
108
108
  * version's number to retrieve its details.
109
109
  */
110
- version?: number;
110
+ version?: number | undefined;
111
111
  /**
112
112
  * Includes labels associated with this blog post in the response.
113
113
  * The number of results will be limited to 50 and sorted in the default sort
@@ -115,7 +115,7 @@ export declare class BlogPostService extends CommonHttpService {
115
115
  * A `meta` and `_links` property will be present to indicate if more results are
116
116
  * available and a link to retrieve the rest of the results.
117
117
  */
118
- includeLabels?: boolean;
118
+ includeLabels?: boolean | undefined;
119
119
  /**
120
120
  * Includes content properties associated with this blog post in the response.
121
121
  * The number of results will be limited to 50 and sorted in the default sort
@@ -123,7 +123,7 @@ export declare class BlogPostService extends CommonHttpService {
123
123
  * A `meta` and `_links` property will be present to indicate if more results are
124
124
  * available and a link to retrieve the rest of the results.
125
125
  */
126
- includeProperties?: boolean;
126
+ includeProperties?: boolean | undefined;
127
127
  /**
128
128
  * Includes operations associated with this blog post in the response.
129
129
  * The number of results will be limited to 50 and sorted in the default sort
@@ -131,7 +131,7 @@ export declare class BlogPostService extends CommonHttpService {
131
131
  * A `meta` and `_links` property will be present to indicate if more results are
132
132
  * available and a link to retrieve the rest of the results.
133
133
  */
134
- includeOperations?: boolean;
134
+ includeOperations?: boolean | undefined;
135
135
  /**
136
136
  * Includes likes associated with this blog post in the response.
137
137
  * The number of results will be limited to 50 and sorted in the default sort
@@ -139,7 +139,7 @@ export declare class BlogPostService extends CommonHttpService {
139
139
  * A `meta` and `_links` property will be present to indicate if more results are
140
140
  * available and a link to retrieve the rest of the results.
141
141
  */
142
- includeLikes?: boolean;
142
+ includeLikes?: boolean | undefined;
143
143
  /**
144
144
  * Includes versions associated with this blog post in the response.
145
145
  * The number of results will be limited to 50 and sorted in the default sort
@@ -147,24 +147,24 @@ export declare class BlogPostService extends CommonHttpService {
147
147
  * A `meta` and `_links` property will be present to indicate if more results are
148
148
  * available and a link to retrieve the rest of the results.
149
149
  */
150
- includeVersions?: boolean;
150
+ includeVersions?: boolean | undefined;
151
151
  /**
152
152
  * Includes the current version associated with this blog post in the response.
153
153
  * By default this is included and can be omitted by setting the value to `false`.
154
154
  */
155
- includeVersion?: boolean;
155
+ includeVersion?: boolean | undefined;
156
156
  /** Includes whether this blog post has been favorited by the current user. */
157
- includeFavoritedByCurrentUserStatus?: boolean;
158
- }): Promise<BlogPostSingle & ({
159
- _links?: {
157
+ includeFavoritedByCurrentUserStatus?: boolean | undefined;
158
+ }) => Promise<BlogPostSingle & {
159
+ _links?: ({
160
160
  /** Base url of the Confluence site. */
161
- base?: string;
161
+ base?: string | undefined;
162
162
  } & {
163
163
  [key: string]: unknown;
164
- };
164
+ }) | undefined;
165
165
  } & {
166
166
  [key: string]: unknown;
167
- })>;
167
+ }>;
168
168
  /**
169
169
  * Returns all blog posts. The number of results is limited by the `limit`
170
170
  * parameter and additional results (if available)
@@ -179,47 +179,47 @@ export declare class BlogPostService extends CommonHttpService {
179
179
  * @scopes-current read:page:confluence
180
180
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-get
181
181
  */
182
- getBlogPosts({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }?: {
182
+ getBlogPosts: ({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }?: {
183
183
  /**
184
184
  * Filter the results based on blog post ids. Multiple blog post ids can be
185
185
  * specified as a comma-separated list.
186
186
  */
187
- id?: number[];
187
+ id?: number[] | undefined;
188
188
  /**
189
189
  * Filter the results based on space ids. Multiple space ids can be specified as a
190
190
  * comma-separated list.
191
191
  */
192
- spaceId?: number[];
192
+ spaceId?: number[] | undefined;
193
193
  /** Used to sort the result by a particular field. */
194
- sort?: BlogPostSortOrder;
194
+ sort?: BlogPostSortOrder | undefined;
195
195
  /**
196
196
  * Filter the results to blog posts based on their status. By default, `current`
197
197
  * is used.
198
198
  */
199
- status?: ("current" | "deleted" | "trashed")[];
199
+ status?: ("current" | "deleted" | "trashed")[] | undefined;
200
200
  /** Filter the results to blog posts based on their title. */
201
- title?: string;
201
+ title?: string | undefined;
202
202
  /**
203
203
  * The content format types to be returned in the `body` field of the response. If
204
204
  * available, the representation will be available under a response field of the
205
205
  * same name under the `body` field.
206
206
  */
207
- bodyFormat?: PrimaryBodyRepresentation;
207
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
208
208
  /**
209
209
  * Used for pagination, this opaque cursor will be returned in the `next` URL in
210
210
  * the `Link` response header. Use the relative URL in the `Link` header to
211
211
  * retrieve the `next` set of results.
212
212
  */
213
- cursor?: string;
213
+ cursor?: string | undefined;
214
214
  /**
215
215
  * Maximum number of blog posts per result to return. If more results exist, use
216
216
  * the `Link` response header to retrieve a relative URL that will return the next
217
217
  * set of results.
218
218
  */
219
- limit?: number;
220
- }): Promise<{
221
- results?: BlogPostBulk[];
222
- _links?: MultiEntityLinks;
219
+ limit?: number | undefined;
220
+ }) => Promise<{
221
+ results?: BlogPostBulk[] | undefined;
222
+ _links?: MultiEntityLinks | undefined;
223
223
  } & {
224
224
  [key: string]: unknown;
225
225
  }>;
@@ -238,39 +238,39 @@ export declare class BlogPostService extends CommonHttpService {
238
238
  * @scopes-current read:page:confluence
239
239
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-spaces-id-blogposts-get
240
240
  */
241
- getBlogPostsInSpace({ id, sort, status, title, bodyFormat, cursor, limit, }: {
241
+ getBlogPostsInSpace: ({ id, sort, status, title, bodyFormat, cursor, limit, }: {
242
242
  /** The ID of the space for which blog posts should be returned. */
243
243
  id: number;
244
244
  /** Used to sort the result by a particular field. */
245
- sort?: BlogPostSortOrder;
245
+ sort?: BlogPostSortOrder | undefined;
246
246
  /**
247
247
  * Filter the results to blog posts based on their status. By default, `current`
248
248
  * is used.
249
249
  */
250
- status?: ("current" | "deleted" | "trashed")[];
250
+ status?: ("current" | "deleted" | "trashed")[] | undefined;
251
251
  /** Filter the results to blog posts based on their title. */
252
- title?: string;
252
+ title?: string | undefined;
253
253
  /**
254
254
  * The content format types to be returned in the `body` field of the response. If
255
255
  * available, the representation will be available under a response field of the
256
256
  * same name under the `body` field.
257
257
  */
258
- bodyFormat?: PrimaryBodyRepresentation;
258
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
259
259
  /**
260
260
  * Used for pagination, this opaque cursor will be returned in the `next` URL in
261
261
  * the `Link` response header. Use the relative URL in the `Link` header to
262
262
  * retrieve the `next` set of results.
263
263
  */
264
- cursor?: string;
264
+ cursor?: string | undefined;
265
265
  /**
266
266
  * Maximum number of blog posts per result to return. If more results exist, use
267
267
  * the `Link` header to retrieve a relative URL that will return the next set of
268
268
  * results.
269
269
  */
270
- limit?: number;
271
- }): Promise<{
272
- results?: BlogPostBulk[];
273
- _links?: MultiEntityLinks;
270
+ limit?: number | undefined;
271
+ }) => Promise<{
272
+ results?: BlogPostBulk[] | undefined;
273
+ _links?: MultiEntityLinks | undefined;
274
274
  } & {
275
275
  [key: string]: unknown;
276
276
  }>;
@@ -288,37 +288,37 @@ export declare class BlogPostService extends CommonHttpService {
288
288
  * @scopes-current read:page:confluence
289
289
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-labels-id-blogposts-get
290
290
  */
291
- getLabelBlogPosts({ id, spaceId, bodyFormat, sort, cursor, limit, }: {
291
+ getLabelBlogPosts: ({ id, spaceId, bodyFormat, sort, cursor, limit, }: {
292
292
  /** The ID of the label for which blog posts should be returned. */
293
293
  id: number;
294
294
  /**
295
295
  * Filter the results based on space ids. Multiple space ids can be specified as a
296
296
  * comma-separated list.
297
297
  */
298
- spaceId?: number[];
298
+ spaceId?: number[] | undefined;
299
299
  /**
300
300
  * The content format types to be returned in the `body` field of the response. If
301
301
  * available, the representation will be available under a response field of the
302
302
  * same name under the `body` field.
303
303
  */
304
- bodyFormat?: PrimaryBodyRepresentation;
304
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
305
305
  /** Used to sort the result by a particular field. */
306
- sort?: BlogPostSortOrder;
306
+ sort?: BlogPostSortOrder | undefined;
307
307
  /**
308
308
  * Used for pagination, this opaque cursor will be returned in the `next` URL in
309
309
  * the `Link` response header. Use the relative URL in the `Link` header to
310
310
  * retrieve the `next` set of results.
311
311
  */
312
- cursor?: string;
312
+ cursor?: string | undefined;
313
313
  /**
314
314
  * Maximum number of blog posts per result to return. If more results exist, use
315
315
  * the `Link` header to retrieve a relative URL that will return the next set of
316
316
  * results.
317
317
  */
318
- limit?: number;
319
- }): Promise<{
320
- results?: BlogPostBulk[];
321
- _links?: MultiEntityLinks;
318
+ limit?: number | undefined;
319
+ }) => Promise<{
320
+ results?: BlogPostBulk[] | undefined;
321
+ _links?: MultiEntityLinks | undefined;
322
322
  } & {
323
323
  [key: string]: unknown;
324
324
  }>;
@@ -334,7 +334,7 @@ export declare class BlogPostService extends CommonHttpService {
334
334
  * @scopes-current write:page:confluence
335
335
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-put
336
336
  */
337
- updateBlogPost({ id, requestBody, }: {
337
+ updateBlogPost: ({ id, requestBody, }: {
338
338
  /**
339
339
  * The ID of the blog post to be updated. If you don't know the blog post ID, use
340
340
  * Get Blog Posts and filter the results.
@@ -361,7 +361,7 @@ export declare class BlogPostService extends CommonHttpService {
361
361
  *
362
362
  * This currently **does not support moving the blog post to a different space**.
363
363
  */
364
- spaceId?: string;
364
+ spaceId?: string | undefined;
365
365
  body: BlogPostBodyWrite | BlogPostNestedBodyWrite;
366
366
  version: {
367
367
  /**
@@ -371,24 +371,24 @@ export declare class BlogPostService extends CommonHttpService {
371
371
  *
372
372
  * If you don't know the current version number, use Get blog post by id.
373
373
  */
374
- number?: number;
374
+ number?: number | undefined;
375
375
  /** An optional message to be stored with the version. */
376
- message?: string;
376
+ message?: string | undefined;
377
377
  } & {
378
378
  [key: string]: unknown;
379
379
  };
380
380
  } & {
381
381
  [key: string]: unknown;
382
382
  };
383
- }): Promise<BlogPostSingle & ({
384
- _links?: {
383
+ }) => Promise<BlogPostSingle & {
384
+ _links?: ({
385
385
  /** Base url of the Confluence site. */
386
- base?: string;
386
+ base?: string | undefined;
387
387
  } & {
388
388
  [key: string]: unknown;
389
- };
389
+ }) | undefined;
390
390
  } & {
391
391
  [key: string]: unknown;
392
- })>;
392
+ }>;
393
393
  static initialize(): void;
394
394
  }