@resolution/confluence-api-client 0.4.4 → 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 (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  3. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  4. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  5. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  6. package/lib/openapi/v1/services/AuditService.js +205 -202
  7. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  8. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  9. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  11. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  12. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  13. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  14. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  17. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  18. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  19. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  20. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  21. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  22. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  23. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  24. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  26. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  27. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  28. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  29. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  30. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  31. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  32. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  33. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  35. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  36. package/lib/openapi/v1/services/ContentService.js +475 -472
  37. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  38. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  39. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  40. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  42. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  43. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  45. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  46. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  47. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  48. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  49. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  51. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  52. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  53. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  54. package/lib/openapi/v1/services/GroupService.js +445 -442
  55. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  56. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  57. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  58. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  59. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  60. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  61. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  62. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  63. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  64. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  65. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  66. package/lib/openapi/v1/services/RelationService.js +231 -228
  67. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  68. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  69. package/lib/openapi/v1/services/SearchService.js +136 -133
  70. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  71. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  72. package/lib/openapi/v1/services/SettingsService.js +204 -201
  73. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  74. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  75. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  76. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  78. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  79. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  80. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  81. package/lib/openapi/v1/services/SpaceService.js +320 -317
  82. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  83. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  84. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  85. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  86. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  87. package/lib/openapi/v1/services/TemplateService.js +214 -211
  88. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  89. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  90. package/lib/openapi/v1/services/ThemesService.js +179 -176
  91. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  92. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  93. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  94. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  95. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  96. package/lib/openapi/v1/services/UsersService.js +229 -226
  97. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  98. package/lib/openapi/v2/models/user.d.ts +0 -2
  99. package/lib/openapi/v2/models/user.js +0 -2
  100. package/lib/openapi/v2/models/user.js.map +1 -1
  101. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  102. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  103. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  104. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  105. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  106. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  107. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  108. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  109. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  110. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  111. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  112. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  113. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  114. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  115. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  116. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  117. package/lib/openapi/v2/services/CommentService.js +635 -632
  118. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  119. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  120. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  121. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  122. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  123. package/lib/openapi/v2/services/ContentService.js +40 -37
  124. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  125. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  126. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  127. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  128. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  129. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  130. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  131. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  132. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  133. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  134. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  135. package/lib/openapi/v2/services/LabelService.js +263 -260
  136. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  137. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  138. package/lib/openapi/v2/services/LikeService.js +250 -247
  139. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  140. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  141. package/lib/openapi/v2/services/OperationService.js +298 -295
  142. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  143. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  144. package/lib/openapi/v2/services/PageService.js +272 -269
  145. package/lib/openapi/v2/services/PageService.js.map +1 -1
  146. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  147. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  148. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  149. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  150. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  151. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  152. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  153. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  154. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  155. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  156. package/lib/openapi/v2/services/SpaceService.js +83 -80
  157. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  158. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  159. package/lib/openapi/v2/services/TaskService.js +120 -117
  160. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  161. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  162. package/lib/openapi/v2/services/UserService.js +91 -88
  163. package/lib/openapi/v2/services/UserService.js.map +1 -1
  164. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  165. package/lib/openapi/v2/services/VersionService.js +395 -392
  166. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  167. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  168. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  169. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  170. package/package.json +4 -3
@@ -11,208 +11,211 @@ const audit_1 = require("../models/audit");
11
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
12
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit */
13
13
  class AuditService extends CommonHttpService_1.CommonHttpService {
14
- /**
15
- * Creates a record in the audit log.
16
- *
17
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
- * 'Confluence Administrator' global permission.
19
- *
20
- * @returns Returned if the record is created in the audit log.
21
- * @path {POST} /wiki/rest/api/audit
22
- * @scopes-current read:audit-log:confluence, write:audit-log:confluence
23
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-post
24
- */
25
- createAuditRecord({ auditRecordCreate, }) {
26
- return this.getClientInstance()
27
- .request({
28
- path: "/wiki/rest/api/audit",
29
- method: "POST",
30
- headers: {
31
- "Content-Type": "application/json",
32
- },
33
- body: auditRecordCreate,
34
- })
35
- .then(this.getClientInstance().responseHandler({
36
- 200: {
37
- "application/json": "json",
38
- },
39
- }))
40
- .then(commonHttpClient.castResponse())
41
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.createAuditRecord.response"))
42
- .then(commonHttpClient.getBody);
43
- }
44
- /**
45
- * Exports audit records as a CSV file or ZIP file.
46
- *
47
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
48
- * 'Confluence Administrator' global permission.
49
- *
50
- * @returns * status: 200, mediaType: application/zip
51
- *
52
- * Returned if the requested export of the audit records is returned.
53
- *
54
- * * status: 200, mediaType: text/csv
55
- *
56
- * Returned if the requested export of the audit records is returned.
57
- * @path {GET} /wiki/rest/api/audit/export
58
- * @scopes-current read:audit-log:confluence
59
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-export-get
60
- */
61
- exportAuditRecords({ startDate, endDate, searchString, format, } = {}) {
62
- return this.getClientInstance()
63
- .request({
64
- path: "/wiki/rest/api/audit/export",
65
- method: "GET",
66
- query: {
67
- startDate,
68
- endDate,
69
- searchString,
70
- format,
71
- },
72
- })
73
- .then(this.getClientInstance().responseHandler({
74
- 200: {
75
- "application/zip": "blob",
76
- "text/csv": "blob",
77
- },
78
- }))
79
- .then(commonHttpClient.castResponse())
80
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.exportAuditRecords.response"));
81
- }
82
- /**
83
- * Returns all records in the audit log, optionally for a certain date range.
84
- * This contains information about events like space exports, group membership
85
- * changes, app installations, etc. For more information, see
86
- * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
87
- * in the Confluence administrator's guide.
88
- *
89
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
90
- * 'Confluence Administrator' global permission.
91
- *
92
- * @returns Returned if the requested records are returned.
93
- * @path {GET} /wiki/rest/api/audit
94
- * @scopes-current read:audit-log:confluence
95
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-get
96
- */
97
- getAuditRecords({ startDate, endDate, searchString, start, limit, } = {}) {
98
- return this.getClientInstance()
99
- .request({
100
- path: "/wiki/rest/api/audit",
101
- method: "GET",
102
- query: {
103
- startDate,
104
- endDate,
105
- searchString,
106
- start,
107
- limit,
108
- },
109
- })
110
- .then(this.getClientInstance().responseHandler({
111
- 200: {
112
- "application/json": "json",
113
- },
114
- }))
115
- .then(commonHttpClient.castResponse())
116
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getAuditRecords.response"))
117
- .then(commonHttpClient.getBody);
118
- }
119
- /**
120
- * Returns records from the audit log, for a time period back from the current
121
- * date. For example, you can use this method to get the last 3 months of records.
122
- *
123
- * This contains information about events like space exports, group membership
124
- * changes, app installations, etc. For more information, see
125
- * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
126
- * in the Confluence administrator's guide.
127
- *
128
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
129
- * 'Confluence Administrator' global permission.
130
- *
131
- * @returns Returned if the requested records are returned.
132
- * @path {GET} /wiki/rest/api/audit/since
133
- * @scopes-current read:audit-log:confluence
134
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-since-get
135
- */
136
- getAuditRecordsForTimePeriod({ number, units, searchString, start, limit, } = {}) {
137
- return this.getClientInstance()
138
- .request({
139
- path: "/wiki/rest/api/audit/since",
140
- method: "GET",
141
- query: {
142
- number,
143
- units,
144
- searchString,
145
- start,
146
- limit,
147
- },
148
- })
149
- .then(this.getClientInstance().responseHandler({
150
- 200: {
151
- "application/json": "json",
152
- },
153
- }))
154
- .then(commonHttpClient.castResponse())
155
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getAuditRecordsForTimePeriod.response"))
156
- .then(commonHttpClient.getBody);
157
- }
158
- /**
159
- * Returns the retention period for records in the audit log. The retention
160
- * period is how long an audit record is kept for, from creation date until
161
- * it is deleted.
162
- *
163
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
164
- * 'Confluence Administrator' global permission.
165
- *
166
- * @returns Returned if the requested retention period is returned.
167
- * @path {GET} /wiki/rest/api/audit/retention
168
- * @scopes-current read:audit-log:confluence
169
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-retention-get
170
- */
171
- getRetentionPeriod() {
172
- return this.getClientInstance()
173
- .request({
174
- path: "/wiki/rest/api/audit/retention",
175
- method: "GET",
176
- })
177
- .then(this.getClientInstance().responseHandler({
178
- 200: {
179
- "application/json": "json",
180
- },
181
- }))
182
- .then(commonHttpClient.castResponse())
183
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getRetentionPeriod.response"))
184
- .then(commonHttpClient.getBody);
185
- }
186
- /**
187
- * Sets the retention period for records in the audit log. The retention period
188
- * can be set to a maximum of 1 year.
189
- *
190
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
191
- * 'Confluence Administrator' global permission.
192
- *
193
- * @returns Returned if the retention period is updated.
194
- * @path {PUT} /wiki/rest/api/audit/retention
195
- * @scopes-current write:audit-log:confluence
196
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-retention-put
197
- */
198
- setRetentionPeriod({ retentionPeriod, }) {
199
- return this.getClientInstance()
200
- .request({
201
- path: "/wiki/rest/api/audit/retention",
202
- method: "PUT",
203
- headers: {
204
- "Content-Type": "application/json",
205
- },
206
- body: retentionPeriod,
207
- })
208
- .then(this.getClientInstance().responseHandler({
209
- 200: {
210
- "application/json": "json",
211
- },
212
- }))
213
- .then(commonHttpClient.castResponse())
214
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.setRetentionPeriod.response"))
215
- .then(commonHttpClient.getBody);
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * Creates a record in the audit log.
18
+ *
19
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
20
+ * 'Confluence Administrator' global permission.
21
+ *
22
+ * @returns Returned if the record is created in the audit log.
23
+ * @path {POST} /wiki/rest/api/audit
24
+ * @scopes-current read:audit-log:confluence, write:audit-log:confluence
25
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-post
26
+ */
27
+ this.createAuditRecord = ({ auditRecordCreate, }) => {
28
+ return this.getClientInstance()
29
+ .request({
30
+ path: "/wiki/rest/api/audit",
31
+ method: "POST",
32
+ headers: {
33
+ "Content-Type": "application/json",
34
+ },
35
+ body: auditRecordCreate,
36
+ })
37
+ .then(this.getClientInstance().responseHandler({
38
+ 200: {
39
+ "application/json": "json",
40
+ },
41
+ }))
42
+ .then(commonHttpClient.castResponse())
43
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.createAuditRecord.response"))
44
+ .then(commonHttpClient.getBody);
45
+ };
46
+ /**
47
+ * Exports audit records as a CSV file or ZIP file.
48
+ *
49
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
50
+ * 'Confluence Administrator' global permission.
51
+ *
52
+ * @returns * status: 200, mediaType: application/zip
53
+ *
54
+ * Returned if the requested export of the audit records is returned.
55
+ *
56
+ * * status: 200, mediaType: text/csv
57
+ *
58
+ * Returned if the requested export of the audit records is returned.
59
+ * @path {GET} /wiki/rest/api/audit/export
60
+ * @scopes-current read:audit-log:confluence
61
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-export-get
62
+ */
63
+ this.exportAuditRecords = ({ startDate, endDate, searchString, format, } = {}) => {
64
+ return this.getClientInstance()
65
+ .request({
66
+ path: "/wiki/rest/api/audit/export",
67
+ method: "GET",
68
+ query: {
69
+ startDate,
70
+ endDate,
71
+ searchString,
72
+ format,
73
+ },
74
+ })
75
+ .then(this.getClientInstance().responseHandler({
76
+ 200: {
77
+ "application/zip": "blob",
78
+ "text/csv": "blob",
79
+ },
80
+ }))
81
+ .then(commonHttpClient.castResponse())
82
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.exportAuditRecords.response"));
83
+ };
84
+ /**
85
+ * Returns all records in the audit log, optionally for a certain date range.
86
+ * This contains information about events like space exports, group membership
87
+ * changes, app installations, etc. For more information, see
88
+ * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
89
+ * in the Confluence administrator's guide.
90
+ *
91
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
92
+ * 'Confluence Administrator' global permission.
93
+ *
94
+ * @returns Returned if the requested records are returned.
95
+ * @path {GET} /wiki/rest/api/audit
96
+ * @scopes-current read:audit-log:confluence
97
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-get
98
+ */
99
+ this.getAuditRecords = ({ startDate, endDate, searchString, start, limit, } = {}) => {
100
+ return this.getClientInstance()
101
+ .request({
102
+ path: "/wiki/rest/api/audit",
103
+ method: "GET",
104
+ query: {
105
+ startDate,
106
+ endDate,
107
+ searchString,
108
+ start,
109
+ limit,
110
+ },
111
+ })
112
+ .then(this.getClientInstance().responseHandler({
113
+ 200: {
114
+ "application/json": "json",
115
+ },
116
+ }))
117
+ .then(commonHttpClient.castResponse())
118
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getAuditRecords.response"))
119
+ .then(commonHttpClient.getBody);
120
+ };
121
+ /**
122
+ * Returns records from the audit log, for a time period back from the current
123
+ * date. For example, you can use this method to get the last 3 months of records.
124
+ *
125
+ * This contains information about events like space exports, group membership
126
+ * changes, app installations, etc. For more information, see
127
+ * [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)
128
+ * in the Confluence administrator's guide.
129
+ *
130
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
131
+ * 'Confluence Administrator' global permission.
132
+ *
133
+ * @returns Returned if the requested records are returned.
134
+ * @path {GET} /wiki/rest/api/audit/since
135
+ * @scopes-current read:audit-log:confluence
136
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-since-get
137
+ */
138
+ this.getAuditRecordsForTimePeriod = ({ number, units, searchString, start, limit, } = {}) => {
139
+ return this.getClientInstance()
140
+ .request({
141
+ path: "/wiki/rest/api/audit/since",
142
+ method: "GET",
143
+ query: {
144
+ number,
145
+ units,
146
+ searchString,
147
+ start,
148
+ limit,
149
+ },
150
+ })
151
+ .then(this.getClientInstance().responseHandler({
152
+ 200: {
153
+ "application/json": "json",
154
+ },
155
+ }))
156
+ .then(commonHttpClient.castResponse())
157
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getAuditRecordsForTimePeriod.response"))
158
+ .then(commonHttpClient.getBody);
159
+ };
160
+ /**
161
+ * Returns the retention period for records in the audit log. The retention
162
+ * period is how long an audit record is kept for, from creation date until
163
+ * it is deleted.
164
+ *
165
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
166
+ * 'Confluence Administrator' global permission.
167
+ *
168
+ * @returns Returned if the requested retention period is returned.
169
+ * @path {GET} /wiki/rest/api/audit/retention
170
+ * @scopes-current read:audit-log:confluence
171
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-retention-get
172
+ */
173
+ this.getRetentionPeriod = () => {
174
+ return this.getClientInstance()
175
+ .request({
176
+ path: "/wiki/rest/api/audit/retention",
177
+ method: "GET",
178
+ })
179
+ .then(this.getClientInstance().responseHandler({
180
+ 200: {
181
+ "application/json": "json",
182
+ },
183
+ }))
184
+ .then(commonHttpClient.castResponse())
185
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.getRetentionPeriod.response"))
186
+ .then(commonHttpClient.getBody);
187
+ };
188
+ /**
189
+ * Sets the retention period for records in the audit log. The retention period
190
+ * can be set to a maximum of 1 year.
191
+ *
192
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
193
+ * 'Confluence Administrator' global permission.
194
+ *
195
+ * @returns Returned if the retention period is updated.
196
+ * @path {PUT} /wiki/rest/api/audit/retention
197
+ * @scopes-current write:audit-log:confluence
198
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit#api-wiki-rest-api-audit-retention-put
199
+ */
200
+ this.setRetentionPeriod = ({ retentionPeriod, }) => {
201
+ return this.getClientInstance()
202
+ .request({
203
+ path: "/wiki/rest/api/audit/retention",
204
+ method: "PUT",
205
+ headers: {
206
+ "Content-Type": "application/json",
207
+ },
208
+ body: retentionPeriod,
209
+ })
210
+ .then(this.getClientInstance().responseHandler({
211
+ 200: {
212
+ "application/json": "json",
213
+ },
214
+ }))
215
+ .then(commonHttpClient.castResponse())
216
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AuditService.setRetentionPeriod.response"))
217
+ .then(commonHttpClient.getBody);
218
+ };
216
219
  }
217
220
  static initialize() {
218
221
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AuditService.getAuditRecords.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"AuditService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/AuditService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,2CAMyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,EAChB,iBAAiB,GAIlB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,iBAAiB;SACxB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBA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C,CACxD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,oDAAoD,EACpD,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,CAAC,oDAAoD,CAAC,CAClE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,sCAA8B,CAAC,CAAC,CAAC;IACzE,CAAC;CACF;AA1cD,oCA0cC"}
1
+ {"version":3,"file":"AuditService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/AuditService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,2CAMyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IAAnD;;QACE;;;;;;;;;;WAUG;QACH,sBAAiB,GAAG,CAAC,EACnB,iBAAiB,GAIlB,EAAwB,EAAE;YACzB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,sBAAsB;gBAC5B,MAAM,EAAE,MAAM;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,yCAAyC,CAC1C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO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AAC,kBAAkB,CACxC,oDAAoD,EACpD,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,CAAC,oDAAoD,CAAC,CAClE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,sCAA8B,CAAC,CAAC,CAAC;IACzE,CAAC;CACF;AA1cD,oCA0cC"}
@@ -48,13 +48,13 @@ export declare class ContentAttachmentsService extends CommonHttpService {
48
48
  * @scopes-beta read:content-details:confluence, write:attachment:confluence
49
49
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-post
50
50
  */
51
- createAttachment({ id, status, requestBody, }: {
51
+ createAttachment: ({ id, status, requestBody, }: {
52
52
  /** The ID of the content to add the attachment to. */
53
53
  id: string;
54
54
  /** The status of the content that the attachment is being added to. */
55
- status?: "current" | "draft";
55
+ status?: "current" | "draft" | undefined;
56
56
  requestBody: unknown;
57
- }): Promise<ContentArray>;
57
+ }) => Promise<ContentArray>;
58
58
  /**
59
59
  * Adds an attachment to a piece of content. If the attachment already exists
60
60
  * for the content, then the attachment is updated (i.e. a new version of the
@@ -101,16 +101,16 @@ export declare class ContentAttachmentsService extends CommonHttpService {
101
101
  * @scopes-beta read:content-details:confluence, write:attachment:confluence
102
102
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-put
103
103
  */
104
- createOrUpdateAttachments({ id, status, requestBody, }: {
104
+ createOrUpdateAttachments: ({ id, status, requestBody, }: {
105
105
  /** The ID of the content to add the attachment to. */
106
106
  id: string;
107
107
  /**
108
108
  * The status of the content that the attachment is being added to.
109
109
  * This should always be set to 'current'.
110
110
  */
111
- status?: "current" | "draft";
111
+ status?: "current" | "draft" | undefined;
112
112
  requestBody: unknown;
113
- }): Promise<ContentArray>;
113
+ }) => Promise<ContentArray>;
114
114
  /**
115
115
  * Redirects the client to a URL that serves an attachment's binary data.
116
116
  *
@@ -119,7 +119,7 @@ export declare class ContentAttachmentsService extends CommonHttpService {
119
119
  * @scopes-beta read:attachment:confluence
120
120
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-download-get
121
121
  */
122
- downloadAttatchment({ id, attachmentId, version, }: {
122
+ downloadAttatchment: ({ id, attachmentId, version, }: {
123
123
  /** The ID of the content that the attachment is attached to. */
124
124
  id: string;
125
125
  /** The ID of the attachment to download. */
@@ -128,8 +128,8 @@ export declare class ContentAttachmentsService extends CommonHttpService {
128
128
  * The version of the attachment. If this parameter is absent, the redirect URI
129
129
  * will download the latest version of the attachment.
130
130
  */
131
- version?: number;
132
- }): Promise<void>;
131
+ version?: number | undefined;
132
+ }) => Promise<void>;
133
133
  /**
134
134
  * Deprecated, use [Confluence's v2
135
135
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -149,7 +149,7 @@ export declare class ContentAttachmentsService extends CommonHttpService {
149
149
  * @scopes-beta read:content-details:confluence
150
150
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-get
151
151
  */
152
- getAttachments({ id, expand, start, limit, filename, mediaType, }: {
152
+ getAttachments: ({ id, expand, start, limit, filename, mediaType, }: {
153
153
  /** The ID of the content to be queried for its attachments. */
154
154
  id: string;
155
155
  /**
@@ -246,19 +246,19 @@ export declare class ContentAttachmentsService extends CommonHttpService {
246
246
  * - `extensions.inlineProperties` returns inline comment-specific properties.
247
247
  * - `extensions.resolution` returns the resolution status of each comment.
248
248
  */
249
- expand?: string[];
249
+ expand?: string[] | undefined;
250
250
  /** The starting index of the returned attachments. */
251
- start?: number;
251
+ start?: number | undefined;
252
252
  /**
253
253
  * The maximum number of attachments to return per page.
254
254
  * Note, this may be restricted by fixed system limits.
255
255
  */
256
- limit?: number;
256
+ limit?: number | undefined;
257
257
  /** Filter the results to attachments that match the filename. */
258
- filename?: string;
258
+ filename?: string | undefined;
259
259
  /** Filter the results to attachments that match the media type. */
260
- mediaType?: string;
261
- }): Promise<ContentArray>;
260
+ mediaType?: string | undefined;
261
+ }) => Promise<ContentArray>;
262
262
  /**
263
263
  * Updates the binary data of an attachment, given the attachment ID, and
264
264
  * optionally the comment and the minor edit field.
@@ -307,13 +307,13 @@ export declare class ContentAttachmentsService extends CommonHttpService {
307
307
  * @scopes-beta read:content-details:confluence, write:attachment:confluence
308
308
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-data-post
309
309
  */
310
- updateAttachmentData({ id, attachmentId, requestBody, }: {
310
+ updateAttachmentData: ({ id, attachmentId, requestBody, }: {
311
311
  /** The ID of the content that the attachment is attached to. */
312
312
  id: string;
313
313
  /** The ID of the attachment to update. */
314
314
  attachmentId: string;
315
315
  requestBody: unknown;
316
- }): Promise<Content | null>;
316
+ }) => Promise<Content | null>;
317
317
  /**
318
318
  * Updates the attachment properties, i.e. the non-binary data of an attachment
319
319
  * like the filename, media-type, comment, and parent container.
@@ -327,13 +327,13 @@ export declare class ContentAttachmentsService extends CommonHttpService {
327
327
  * @scopes-beta read:content-details:confluence, write:attachment:confluence
328
328
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-put
329
329
  */
330
- updateAttachmentProperties({ id, attachmentId, attachmentPropertiesUpdateBody, }: {
330
+ updateAttachmentProperties: ({ id, attachmentId, attachmentPropertiesUpdateBody, }: {
331
331
  /** The ID of the content that the attachment is attached to. */
332
332
  id: string;
333
333
  /** The ID of the attachment to update. */
334
334
  attachmentId: string;
335
335
  /** The details of the attachment to be updated. */
336
336
  attachmentPropertiesUpdateBody: AttachmentPropertiesUpdateBody;
337
- }): Promise<Content | null>;
337
+ }) => Promise<Content | null>;
338
338
  static initialize(): void;
339
339
  }