@resolution/confluence-api-client 0.4.1 → 0.4.3
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.
- package/CHANGELOG.md +21 -0
- package/README.md +125 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +51 -7
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +75 -75
- package/lib/openapi/v1/models/common.js +42 -42
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +8 -8
- package/lib/openapi/v1/models/content.js +9 -7
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
- package/lib/openapi/v1/models/contentRestrictions.js +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
- package/lib/openapi/v1/models/contentWatches.js +1 -1
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/relation.d.ts +4 -4
- package/lib/openapi/v1/models/relation.js +5 -3
- package/lib/openapi/v1/models/relation.js.map +1 -1
- package/lib/openapi/v1/models/search.d.ts +2 -2
- package/lib/openapi/v1/models/search.js +1 -1
- package/lib/openapi/v1/models/search.js.map +1 -1
- package/lib/openapi/v1/models/space.d.ts +2 -2
- package/lib/openapi/v1/models/space.js +1 -1
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/themes.d.ts +2 -2
- package/lib/openapi/v1/models/themes.js +1 -1
- package/lib/openapi/v1/models/themes.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +3 -3
- package/lib/openapi/v1/models/users.js +2 -2
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +10 -3
- package/lib/openapi/v1/services/AuditService.js +10 -3
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -1
- package/lib/openapi/v1/services/ContentService.js +12 -1
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +18 -1
- package/lib/openapi/v1/services/GroupService.js +18 -1
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -0
- package/lib/openapi/v1/services/RelationService.js +6 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +3 -0
- package/lib/openapi/v1/services/SearchService.js +3 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +9 -2
- package/lib/openapi/v1/services/SettingsService.js +9 -2
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +10 -1
- package/lib/openapi/v1/services/SpaceService.js +10 -1
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +9 -2
- package/lib/openapi/v1/services/TemplateService.js +9 -2
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +8 -1
- package/lib/openapi/v1/services/ThemesService.js +8 -1
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +13 -5
- package/lib/openapi/v1/services/UsersService.js +12 -4
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +25 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +51 -0
- package/lib/openapi/v2/models/user.js +41 -0
- package/lib/openapi/v2/models/user.js.map +1 -0
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -0
- package/lib/openapi/v2/services/AncestorsService.js +5 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +9 -1
- package/lib/openapi/v2/services/AttachmentService.js +9 -1
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -1
- package/lib/openapi/v2/services/BlogPostService.js +9 -1
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +3 -0
- package/lib/openapi/v2/services/ChildrenService.js +3 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +21 -2
- package/lib/openapi/v2/services/CommentService.js +21 -2
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -0
- package/lib/openapi/v2/services/ContentService.js +2 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -0
- package/lib/openapi/v2/services/CustomContentService.js +9 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -0
- package/lib/openapi/v2/services/DatabaseService.js +4 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +9 -1
- package/lib/openapi/v2/services/LabelService.js +9 -1
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +9 -0
- package/lib/openapi/v2/services/LikeService.js +9 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -0
- package/lib/openapi/v2/services/OperationService.js +11 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -1
- package/lib/openapi/v2/services/PageService.js +9 -1
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -1
- package/lib/openapi/v2/services/SpaceService.js +4 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +5 -1
- package/lib/openapi/v2/services/TaskService.js +5 -1
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +31 -0
- package/lib/openapi/v2/services/UserService.js +55 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +13 -0
- package/lib/openapi/v2/services/VersionService.js +13 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type ContentRestriction } from "../models/common";
|
|
3
3
|
import { type ContentRestrictionAddOrUpdateArray, type ContentRestrictionArray } from "../models/contentRestrictions";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
|
|
4
5
|
export declare class ContentRestrictionsService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Deprecated, use [Add group to content restriction via
|
|
@@ -16,6 +17,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
16
17
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
17
18
|
* @scopes-current write:confluence-content
|
|
18
19
|
* @scopes-beta write:content.restriction:confluence
|
|
20
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-put
|
|
19
21
|
*/
|
|
20
22
|
addGroupToContentRestriction({ id, operationKey, groupName, }: {
|
|
21
23
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -36,6 +38,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
36
38
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
37
39
|
* @scopes-current write:confluence-content
|
|
38
40
|
* @scopes-beta write:content.restriction:confluence
|
|
41
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put
|
|
39
42
|
*/
|
|
40
43
|
addGroupToContentRestrictionByGroupId({ id, operationKey, groupId, }: {
|
|
41
44
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -56,6 +59,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
56
59
|
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
57
60
|
* @scopes-current write:confluence-content
|
|
58
61
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
62
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-post
|
|
59
63
|
*/
|
|
60
64
|
addRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
61
65
|
/** The ID of the content to add restrictions to. */
|
|
@@ -85,6 +89,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
85
89
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
86
90
|
* @scopes-current write:confluence-content
|
|
87
91
|
* @scopes-beta write:content.restriction:confluence
|
|
92
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-put
|
|
88
93
|
*/
|
|
89
94
|
addUserToContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
90
95
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -130,6 +135,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
130
135
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
131
136
|
* @scopes-current write:confluence-content
|
|
132
137
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
138
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-delete
|
|
133
139
|
*/
|
|
134
140
|
deleteRestrictions({ id, expand, }: {
|
|
135
141
|
/** The ID of the content to remove restrictions from. */
|
|
@@ -172,6 +178,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
172
178
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
173
179
|
* @scopes-current read:confluence-content.all
|
|
174
180
|
* @scopes-beta read:content.restriction:confluence
|
|
181
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-get
|
|
175
182
|
*/
|
|
176
183
|
getContentRestrictionStatusForGroup({ id, operationKey, groupName, }: {
|
|
177
184
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -206,6 +213,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
206
213
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
207
214
|
* @scopes-current read:confluence-content.all
|
|
208
215
|
* @scopes-beta read:content.restriction:confluence
|
|
216
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-get
|
|
209
217
|
*/
|
|
210
218
|
getContentRestrictionStatusForUser({ id, operationKey, key, username, accountId, }: {
|
|
211
219
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -263,6 +271,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
263
271
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
264
272
|
* @scopes-current read:confluence-content.all
|
|
265
273
|
* @scopes-beta read:content.restriction:confluence
|
|
274
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get
|
|
266
275
|
*/
|
|
267
276
|
getIndividualGroupRestrictionStatusByGroupId({ id, operationKey, groupId, }: {
|
|
268
277
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -285,6 +294,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
285
294
|
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
286
295
|
* @scopes-current read:confluence-content.all
|
|
287
296
|
* @scopes-beta read:content-details:confluence
|
|
297
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-get
|
|
288
298
|
*/
|
|
289
299
|
getRestrictions({ id, expand, start, limit, }: {
|
|
290
300
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -324,6 +334,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
324
334
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
325
335
|
* @scopes-current read:confluence-content.all
|
|
326
336
|
* @scopes-beta read:content-details:confluence
|
|
337
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-get
|
|
327
338
|
*/
|
|
328
339
|
getRestrictionsByOperation({ id, expand, }: {
|
|
329
340
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -354,6 +365,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
354
365
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
355
366
|
* @scopes-current read:confluence-content.all
|
|
356
367
|
* @scopes-beta read:content-details:confluence
|
|
368
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-get
|
|
357
369
|
*/
|
|
358
370
|
getRestrictionsForOperation({ id, operationKey, expand, start, limit, }: {
|
|
359
371
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -392,6 +404,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
392
404
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
393
405
|
* @scopes-current write:confluence-content
|
|
394
406
|
* @scopes-beta write:content.restriction:confluence
|
|
407
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-delete
|
|
395
408
|
*/
|
|
396
409
|
removeGroupFromContentRestriction({ id, operationKey, groupId, }: {
|
|
397
410
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -415,6 +428,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
415
428
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
416
429
|
* @scopes-current write:confluence-content
|
|
417
430
|
* @scopes-beta write:content.restriction:confluence
|
|
431
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-delete
|
|
418
432
|
*/
|
|
419
433
|
removeGroupFromContentRestrictionById({ id, operationKey, groupName, }: {
|
|
420
434
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -434,6 +448,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
434
448
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
435
449
|
* @scopes-current write:confluence-content
|
|
436
450
|
* @scopes-beta write:content.restriction:confluence
|
|
451
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete
|
|
437
452
|
*/
|
|
438
453
|
removeUserFromContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
439
454
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -480,6 +495,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
480
495
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
481
496
|
* @scopes-current write:confluence-content
|
|
482
497
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
498
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-put
|
|
483
499
|
*/
|
|
484
500
|
updateRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
485
501
|
/** The ID of the content to update restrictions for. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const contentRestrictions_1 = require("../models/contentRestrictions");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
|
|
13
14
|
class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Deprecated, use [Add group to content restriction via
|
|
@@ -25,6 +26,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
26
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
26
27
|
* @scopes-current write:confluence-content
|
|
27
28
|
* @scopes-beta write:content.restriction:confluence
|
|
29
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-put
|
|
28
30
|
*/
|
|
29
31
|
addGroupToContentRestriction({ id, operationKey, groupName, }) {
|
|
30
32
|
return this.getClientInstance()
|
|
@@ -50,6 +52,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
50
52
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
51
53
|
* @scopes-current write:confluence-content
|
|
52
54
|
* @scopes-beta write:content.restriction:confluence
|
|
55
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put
|
|
53
56
|
*/
|
|
54
57
|
addGroupToContentRestrictionByGroupId({ id, operationKey, groupId, }) {
|
|
55
58
|
return this.getClientInstance()
|
|
@@ -75,6 +78,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
75
78
|
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
76
79
|
* @scopes-current write:confluence-content
|
|
77
80
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
81
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-post
|
|
78
82
|
*/
|
|
79
83
|
addRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }) {
|
|
80
84
|
return this.getClientInstance()
|
|
@@ -111,6 +115,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
111
115
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
112
116
|
* @scopes-current write:confluence-content
|
|
113
117
|
* @scopes-beta write:content.restriction:confluence
|
|
118
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-put
|
|
114
119
|
*/
|
|
115
120
|
addUserToContentRestriction({ id, operationKey, key, username, accountId, }) {
|
|
116
121
|
return this.getClientInstance()
|
|
@@ -139,6 +144,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
139
144
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
140
145
|
* @scopes-current write:confluence-content
|
|
141
146
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
147
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-delete
|
|
142
148
|
*/
|
|
143
149
|
deleteRestrictions({ id, expand, }) {
|
|
144
150
|
return this.getClientInstance()
|
|
@@ -186,6 +192,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
186
192
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
187
193
|
* @scopes-current read:confluence-content.all
|
|
188
194
|
* @scopes-beta read:content.restriction:confluence
|
|
195
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-get
|
|
189
196
|
*/
|
|
190
197
|
getContentRestrictionStatusForGroup({ id, operationKey, groupName, }) {
|
|
191
198
|
return this.getClientInstance()
|
|
@@ -222,6 +229,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
222
229
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
223
230
|
* @scopes-current read:confluence-content.all
|
|
224
231
|
* @scopes-beta read:content.restriction:confluence
|
|
232
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-get
|
|
225
233
|
*/
|
|
226
234
|
getContentRestrictionStatusForUser({ id, operationKey, key, username, accountId, }) {
|
|
227
235
|
return this.getClientInstance()
|
|
@@ -262,6 +270,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
262
270
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
263
271
|
* @scopes-current read:confluence-content.all
|
|
264
272
|
* @scopes-beta read:content.restriction:confluence
|
|
273
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get
|
|
265
274
|
*/
|
|
266
275
|
getIndividualGroupRestrictionStatusByGroupId({ id, operationKey, groupId, }) {
|
|
267
276
|
return this.getClientInstance()
|
|
@@ -286,6 +295,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
286
295
|
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
287
296
|
* @scopes-current read:confluence-content.all
|
|
288
297
|
* @scopes-beta read:content-details:confluence
|
|
298
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-get
|
|
289
299
|
*/
|
|
290
300
|
getRestrictions({ id, expand, start, limit, }) {
|
|
291
301
|
return this.getClientInstance()
|
|
@@ -323,6 +333,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
323
333
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
324
334
|
* @scopes-current read:confluence-content.all
|
|
325
335
|
* @scopes-beta read:content-details:confluence
|
|
336
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-get
|
|
326
337
|
*/
|
|
327
338
|
getRestrictionsByOperation({ id, expand, }) {
|
|
328
339
|
return this.getClientInstance()
|
|
@@ -356,6 +367,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
356
367
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
357
368
|
* @scopes-current read:confluence-content.all
|
|
358
369
|
* @scopes-beta read:content-details:confluence
|
|
370
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-get
|
|
359
371
|
*/
|
|
360
372
|
getRestrictionsForOperation({ id, operationKey, expand, start, limit, }) {
|
|
361
373
|
return this.getClientInstance()
|
|
@@ -392,6 +404,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
392
404
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
393
405
|
* @scopes-current write:confluence-content
|
|
394
406
|
* @scopes-beta write:content.restriction:confluence
|
|
407
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-delete
|
|
395
408
|
*/
|
|
396
409
|
removeGroupFromContentRestriction({ id, operationKey, groupId, }) {
|
|
397
410
|
return this.getClientInstance()
|
|
@@ -420,6 +433,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
420
433
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
421
434
|
* @scopes-current write:confluence-content
|
|
422
435
|
* @scopes-beta write:content.restriction:confluence
|
|
436
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-delete
|
|
423
437
|
*/
|
|
424
438
|
removeGroupFromContentRestrictionById({ id, operationKey, groupName, }) {
|
|
425
439
|
return this.getClientInstance()
|
|
@@ -444,6 +458,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
444
458
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
445
459
|
* @scopes-current write:confluence-content
|
|
446
460
|
* @scopes-beta write:content.restriction:confluence
|
|
461
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete
|
|
447
462
|
*/
|
|
448
463
|
removeUserFromContentRestriction({ id, operationKey, key, username, accountId, }) {
|
|
449
464
|
return this.getClientInstance()
|
|
@@ -473,6 +488,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
473
488
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
474
489
|
* @scopes-current write:confluence-content
|
|
475
490
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
491
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-put
|
|
476
492
|
*/
|
|
477
493
|
updateRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }) {
|
|
478
494
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRestrictionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentRestrictionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,uEAIuC;AACvC,wEAAqE;AACrE,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D
|
|
1
|
+
{"version":3,"file":"ContentRestrictionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentRestrictionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,uEAIuC;AACvC,wEAAqE;AACrE,mGAAmG;AACnG,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D;;;;;;;;;;;;;;;OAeG;IACH,4BAA4B,CAAC,EAC3B,EAAE,EACF,YAAY,EACZ,SAAS,GAQV;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sFAAsF;YAC5F,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;gBACF,YAAY;gBACZ,SAAS;aACV;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;;;OAYG;IACH,qCAAqC,CAAC,EACpC,EAAE,EACF,YAAY,EACZ,OAAO,GAQR;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,wFAAwF;YAC9F,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;gBACF,YAAY;gBACZ,OAAO;aACR;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CA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AAC,wDAAwD,CAAC,CACtE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gEAAgE,EAChE,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,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzC,CAAC;aACD,QAAQ,CACP,gEAAgE,CACjE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,iEAAiE,EACjE,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,oBAAoB,CAAC;SACzD,CAAC;aACD,QAAQ,CACP,iEAAiE,CAClE,CACJ,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,kEAA4C;YAC5C,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAj/BD,gEAi/BC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type Content, type ContentArray, type LongTask } from "../models/common";
|
|
3
3
|
import { type ContentBlueprintDraft, type ContentCreate, type ContentHistory, type ContentUpdate } from "../models/content";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
|
|
4
5
|
export declare class ContentService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Archives a list of pages. The pages to be archived are specified as a list of
|
|
@@ -21,6 +22,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
21
22
|
* @path {POST} /wiki/rest/api/content/archive
|
|
22
23
|
* @scopes-current write:confluence-content
|
|
23
24
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
25
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
24
26
|
*/
|
|
25
27
|
archivePages({ requestBody, }: {
|
|
26
28
|
/** The pages to be archived. */
|
|
@@ -60,6 +62,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
60
62
|
* @path {POST} /wiki/rest/api/content
|
|
61
63
|
* @scopes-current write:confluence-content
|
|
62
64
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
65
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
63
66
|
*/
|
|
64
67
|
createContent({ status, expand, contentCreate, }: {
|
|
65
68
|
/** Filter the returned content by status. */
|
|
@@ -198,6 +201,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
198
201
|
* @path {DELETE} /wiki/rest/api/content/{id}
|
|
199
202
|
* @scopes-current write:confluence-content
|
|
200
203
|
* @scopes-beta delete:content:confluence
|
|
204
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
201
205
|
*/
|
|
202
206
|
deleteContent({ id, status, }: {
|
|
203
207
|
/** The ID of the content to be deleted. */
|
|
@@ -229,8 +233,9 @@ export declare class ContentService extends CommonHttpService {
|
|
|
229
233
|
* @path {GET} /wiki/rest/api/content
|
|
230
234
|
* @scopes-current read:confluence-content.summary
|
|
231
235
|
* @scopes-beta read:content-details:confluence
|
|
236
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
232
237
|
*/
|
|
233
|
-
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }
|
|
238
|
+
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }?: {
|
|
234
239
|
/**
|
|
235
240
|
* The type of content to return. For example:
|
|
236
241
|
* - page
|
|
@@ -387,6 +392,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
387
392
|
* @path {GET} /wiki/rest/api/content/{id}
|
|
388
393
|
* @scopes-current read:confluence-content.summary
|
|
389
394
|
* @scopes-beta read:content-details:confluence
|
|
395
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
390
396
|
*/
|
|
391
397
|
getContentById({ id, status, version, embeddedContentRender, expand, trigger, }: {
|
|
392
398
|
/**
|
|
@@ -528,6 +534,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
528
534
|
* @path {GET} /wiki/rest/api/content/{id}/history
|
|
529
535
|
* @scopes-current read:confluence-content.summary
|
|
530
536
|
* @scopes-beta read:content.metadata:confluence, read:user:confluence
|
|
537
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
531
538
|
*/
|
|
532
539
|
getHistoryForContent({ id, expand, }: {
|
|
533
540
|
/** The ID of the content to be queried for its history. */
|
|
@@ -564,6 +571,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
564
571
|
* @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
565
572
|
* @scopes-current write:confluence-content
|
|
566
573
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
574
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
567
575
|
*/
|
|
568
576
|
publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }: {
|
|
569
577
|
/**
|
|
@@ -688,6 +696,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
688
696
|
* @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
689
697
|
* @scopes-current write:confluence-content
|
|
690
698
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
699
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
691
700
|
*/
|
|
692
701
|
publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }: {
|
|
693
702
|
/**
|
|
@@ -854,6 +863,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
854
863
|
* @path {GET} /wiki/rest/api/content/search
|
|
855
864
|
* @scopes-current search:confluence
|
|
856
865
|
* @scopes-beta read:content-details:confluence
|
|
866
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
857
867
|
*/
|
|
858
868
|
searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }: {
|
|
859
869
|
/** The CQL string that is used to find the requested content. */
|
|
@@ -991,6 +1001,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
991
1001
|
* @path {PUT} /wiki/rest/api/content/{id}
|
|
992
1002
|
* @scopes-current write:confluence-content
|
|
993
1003
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
1004
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
994
1005
|
*/
|
|
995
1006
|
updateContent({ id, status, conflictPolicy, contentUpdate, }: {
|
|
996
1007
|
/** The ID of the content to be updated. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const content_1 = require("../models/content");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
|
|
13
14
|
class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Archives a list of pages. The pages to be archived are specified as a list of
|
|
@@ -30,6 +31,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
30
31
|
* @path {POST} /wiki/rest/api/content/archive
|
|
31
32
|
* @scopes-current write:confluence-content
|
|
32
33
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
34
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
33
35
|
*/
|
|
34
36
|
archivePages({ requestBody, }) {
|
|
35
37
|
return this.getClientInstance()
|
|
@@ -75,6 +77,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
75
77
|
* @path {POST} /wiki/rest/api/content
|
|
76
78
|
* @scopes-current write:confluence-content
|
|
77
79
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
80
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
78
81
|
*/
|
|
79
82
|
createContent({ status, expand, contentCreate, }) {
|
|
80
83
|
return this.getClientInstance()
|
|
@@ -123,6 +126,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
123
126
|
* @path {DELETE} /wiki/rest/api/content/{id}
|
|
124
127
|
* @scopes-current write:confluence-content
|
|
125
128
|
* @scopes-beta delete:content:confluence
|
|
129
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
126
130
|
*/
|
|
127
131
|
deleteContent({ id, status, }) {
|
|
128
132
|
return this.getClientInstance()
|
|
@@ -159,8 +163,9 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
159
163
|
* @path {GET} /wiki/rest/api/content
|
|
160
164
|
* @scopes-current read:confluence-content.summary
|
|
161
165
|
* @scopes-beta read:content-details:confluence
|
|
166
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
162
167
|
*/
|
|
163
|
-
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }) {
|
|
168
|
+
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, } = {}) {
|
|
164
169
|
return this.getClientInstance()
|
|
165
170
|
.request({
|
|
166
171
|
path: "/wiki/rest/api/content",
|
|
@@ -204,6 +209,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
204
209
|
* @path {GET} /wiki/rest/api/content/{id}
|
|
205
210
|
* @scopes-current read:confluence-content.summary
|
|
206
211
|
* @scopes-beta read:content-details:confluence
|
|
212
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
207
213
|
*/
|
|
208
214
|
getContentById({ id, status, version, embeddedContentRender, expand, trigger, }) {
|
|
209
215
|
return this.getClientInstance()
|
|
@@ -244,6 +250,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
244
250
|
* @path {GET} /wiki/rest/api/content/{id}/history
|
|
245
251
|
* @scopes-current read:confluence-content.summary
|
|
246
252
|
* @scopes-beta read:content.metadata:confluence, read:user:confluence
|
|
253
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
247
254
|
*/
|
|
248
255
|
getHistoryForContent({ id, expand, }) {
|
|
249
256
|
return this.getClientInstance()
|
|
@@ -283,6 +290,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
283
290
|
* @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
284
291
|
* @scopes-current write:confluence-content
|
|
285
292
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
293
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
286
294
|
*/
|
|
287
295
|
publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }) {
|
|
288
296
|
return this.getClientInstance()
|
|
@@ -324,6 +332,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
324
332
|
* @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
325
333
|
* @scopes-current write:confluence-content
|
|
326
334
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
335
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
327
336
|
*/
|
|
328
337
|
publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }) {
|
|
329
338
|
return this.getClientInstance()
|
|
@@ -407,6 +416,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
407
416
|
* @path {GET} /wiki/rest/api/content/search
|
|
408
417
|
* @scopes-current search:confluence
|
|
409
418
|
* @scopes-beta read:content-details:confluence
|
|
419
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
410
420
|
*/
|
|
411
421
|
searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }) {
|
|
412
422
|
return this.getClientInstance()
|
|
@@ -447,6 +457,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
447
457
|
* @path {PUT} /wiki/rest/api/content/{id}
|
|
448
458
|
* @scopes-current write:confluence-content
|
|
449
459
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
460
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
450
461
|
*/
|
|
451
462
|
updateContent({ id, status, conflictPolicy, contentUpdate, }) {
|
|
452
463
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,+CAM2B;AAC3B,wEAAqE;AACrE,MAAa,cAAe,SAAQ,qCAAiB;IACnD
|
|
1
|
+
{"version":3,"file":"ContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,w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ACxC,4CAA4C,EAC5C,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,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,4CAA4C,EAC5C,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,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,0CAAgC;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAt9CD,wCAs9CC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type AsyncId, type ContentArray } from "../models/common";
|
|
3
3
|
import { type AvailableContentStates, type ContentState, type ContentStateBulkSetTaskUpdate, type ContentStateResponse, type ContentStateRestInput, type ContentStateSettings } from "../models/contentStates";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states */
|
|
4
5
|
export declare class ContentStatesService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Creates a long running task that Removes content state from draft or published
|
|
@@ -16,6 +17,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
16
17
|
* @path {POST} /wiki/rest/api/content-states/delete
|
|
17
18
|
* @scopes-current write:confluence-content
|
|
18
19
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
20
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
19
21
|
*/
|
|
20
22
|
bulkRemoveContentStates({ status, requestBody, }: {
|
|
21
23
|
/** Set status to one of [current,draft]. */
|
|
@@ -36,6 +38,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
36
38
|
* @path {GET} /wiki/rest/api/content/{id}/state/available
|
|
37
39
|
* @scopes-current write:confluence-content
|
|
38
40
|
* @scopes-beta write:content:confluence
|
|
41
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-available-get
|
|
39
42
|
*/
|
|
40
43
|
getAvailableContentStates({ id, }: {
|
|
41
44
|
/** id of content to get available states for */
|
|
@@ -53,6 +56,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
53
56
|
* @path {GET} /wiki/rest/api/content/{id}/state
|
|
54
57
|
* @scopes-current read:confluence-content.summary
|
|
55
58
|
* @scopes-beta read:content-details:confluence
|
|
59
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-get
|
|
56
60
|
*/
|
|
57
61
|
getContentState({ id, status, }: {
|
|
58
62
|
/** The id of the content whose content state is of interest. */
|
|
@@ -73,6 +77,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
73
77
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/settings
|
|
74
78
|
* @scopes-current read:confluence-space.summary
|
|
75
79
|
* @scopes-beta read:space.setting:confluence
|
|
80
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-settings-get
|
|
76
81
|
*/
|
|
77
82
|
getContentStateSettings({ spaceKey, }: {
|
|
78
83
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -92,6 +97,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
92
97
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/content
|
|
93
98
|
* @scopes-current read:confluence-content.all
|
|
94
99
|
* @scopes-beta read:content:confluence
|
|
100
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-content-get
|
|
95
101
|
*/
|
|
96
102
|
getContentsWithState({ spaceKey, stateId, expand, limit, start, }: {
|
|
97
103
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -120,6 +126,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
120
126
|
* @path {GET} /wiki/rest/api/content-states
|
|
121
127
|
* @scopes-current read:user.property:confluence
|
|
122
128
|
* @scopes-beta read:user.property:confluence
|
|
129
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-get
|
|
123
130
|
*/
|
|
124
131
|
getCustomContentStates(): Promise<ContentState[]>;
|
|
125
132
|
/**
|
|
@@ -132,6 +139,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
132
139
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state
|
|
133
140
|
* @scopes-current read:confluence-space.summary
|
|
134
141
|
* @scopes-beta read:space.setting:confluence
|
|
142
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-get
|
|
135
143
|
*/
|
|
136
144
|
getSpaceContentStates({ spaceKey, }: {
|
|
137
145
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -151,6 +159,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
151
159
|
* @path {GET} /wiki/rest/api/content-states/task/{taskId}
|
|
152
160
|
* @scopes-current read:confluence-content
|
|
153
161
|
* @scopes-beta read:content:confluence
|
|
162
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
154
163
|
*/
|
|
155
164
|
getTaskUpdate({ taskId, }: {
|
|
156
165
|
/** taskId returned by delete requests to /wiki/rest/api/content-states */
|
|
@@ -168,6 +177,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
168
177
|
* @path {DELETE} /wiki/rest/api/content/{id}/state
|
|
169
178
|
* @scopes-current write:confluence-content
|
|
170
179
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
180
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-delete
|
|
171
181
|
*/
|
|
172
182
|
removeContentState({ id, status, }: {
|
|
173
183
|
/** The Id of the content whose content state is to be set. */
|
|
@@ -199,6 +209,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
199
209
|
* @path {PUT} /wiki/rest/api/content/{id}/state
|
|
200
210
|
* @scopes-current write:confluence-content
|
|
201
211
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
212
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-put
|
|
202
213
|
*/
|
|
203
214
|
setContentState({ id, status, contentStateRestInput, }: {
|
|
204
215
|
/** The Id of the content whose content state is to be set. */
|