@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
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const users_1 = require("../models/users");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users */
|
|
13
14
|
class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Returns information about how anonymous users are represented, like the
|
|
@@ -22,8 +23,9 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
22
23
|
* @path {GET} /wiki/rest/api/user/anonymous
|
|
23
24
|
* @scopes-current read:confluence-user
|
|
24
25
|
* @scopes-beta read:user:confluence
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-anonymous-get
|
|
25
27
|
*/
|
|
26
|
-
getAnonymousUser({ expand, }) {
|
|
28
|
+
getAnonymousUser({ expand, } = {}) {
|
|
27
29
|
return this.getClientInstance()
|
|
28
30
|
.request({
|
|
29
31
|
path: "/wiki/rest/api/user/anonymous",
|
|
@@ -51,6 +53,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
51
53
|
* @path {GET} /wiki/rest/api/user/bulk
|
|
52
54
|
* @scopes-current read:confluence-user
|
|
53
55
|
* @scopes-beta read:content-details:confluence
|
|
56
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-bulk-get
|
|
54
57
|
*/
|
|
55
58
|
getBulkUserLookup({ accountId, expand, limit, }) {
|
|
56
59
|
return this.getClientInstance()
|
|
@@ -84,8 +87,9 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
84
87
|
* @path {GET} /wiki/rest/api/user/current
|
|
85
88
|
* @scopes-current read:confluence-user
|
|
86
89
|
* @scopes-beta read:content-details:confluence
|
|
90
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-current-get
|
|
87
91
|
*/
|
|
88
|
-
getCurrentUser({ expand, }) {
|
|
92
|
+
getCurrentUser({ expand, } = {}) {
|
|
89
93
|
return this.getClientInstance()
|
|
90
94
|
.request({
|
|
91
95
|
path: "/wiki/rest/api/user/current",
|
|
@@ -113,6 +117,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
113
117
|
* @path {GET} /wiki/rest/api/user/memberof
|
|
114
118
|
* @scopes-current read:confluence-user
|
|
115
119
|
* @scopes-beta read:user:confluence, read:group:confluence
|
|
120
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-memberof-get
|
|
116
121
|
*/
|
|
117
122
|
getGroupMembershipsForUser({ accountId, start, limit, }) {
|
|
118
123
|
return this.getClientInstance()
|
|
@@ -144,6 +149,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
144
149
|
*
|
|
145
150
|
* @returns Returned if the requested user's email is returned.
|
|
146
151
|
* @path {GET} /wiki/rest/api/user/email
|
|
152
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-get
|
|
147
153
|
*/
|
|
148
154
|
getPrivacyUnsafeUserEmail({ accountId, }) {
|
|
149
155
|
return this.getClientInstance()
|
|
@@ -176,6 +182,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
176
182
|
*
|
|
177
183
|
* @returns Returned if the request is successful.
|
|
178
184
|
* @path {GET} /wiki/rest/api/user/email/bulk
|
|
185
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-bulk-get
|
|
179
186
|
*/
|
|
180
187
|
getPrivacyUnsafeUserEmailBulk({ accountId, }) {
|
|
181
188
|
return this.getClientInstance()
|
|
@@ -211,6 +218,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
211
218
|
* @path {GET} /wiki/rest/api/user
|
|
212
219
|
* @scopes-current read:confluence-user
|
|
213
220
|
* @scopes-beta read:content-details:confluence
|
|
221
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-get
|
|
214
222
|
*/
|
|
215
223
|
getUser({ accountId, expand, }) {
|
|
216
224
|
return this.getClientInstance()
|
|
@@ -236,7 +244,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
236
244
|
.object({
|
|
237
245
|
status: zod_1.z.literal(200),
|
|
238
246
|
mediaType: zod_1.z.literal("application/json"),
|
|
239
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("
|
|
247
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("UserV1")),
|
|
240
248
|
})
|
|
241
249
|
.describe("UsersService.getUser.response"));
|
|
242
250
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getAnonymousUser.response", zod_1.z
|
|
@@ -257,7 +265,7 @@ class UsersService extends CommonHttpService_1.CommonHttpService {
|
|
|
257
265
|
.object({
|
|
258
266
|
status: zod_1.z.literal(200),
|
|
259
267
|
mediaType: zod_1.z.literal("application/json"),
|
|
260
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("
|
|
268
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("UserV1")),
|
|
261
269
|
})
|
|
262
270
|
.describe("UsersService.getCurrentUser.response"));
|
|
263
271
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UsersService.getPrivacyUnsafeUserEmail.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UsersService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAMyB;AACzB,wEAAqE;AACrE,MAAa,YAAa,SAAQ,qCAAiB;IACjD
|
|
1
|
+
{"version":3,"file":"UsersService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UsersService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAMyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,EACf,MAAM,MASJ,EAAE;QACJ,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACL,MAAM;aACP;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,wCAAwC,CACzC,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAChB,SAAS,EACT,MAAM,EACN,KAAK,GAoBN;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC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nE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,kDAAkD,EAClD,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,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,kDAAkD,CAAC,CAChE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,sCAA8B;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AAleD,oCAkeC"}
|
|
@@ -18,6 +18,7 @@ import type { SmartLinkLinks, SmartLinkSingle } from "./models/smartLink";
|
|
|
18
18
|
import type { SpaceBulk, SpaceDescriptionBodyRepresentation, SpaceSingle, SpaceStatus, SpaceType } from "./models/space";
|
|
19
19
|
import type { SpacePropertyCreateRequest, SpacePropertyUpdateRequest } from "./models/spaceProperties";
|
|
20
20
|
import type { Task, TaskBodySingle } from "./models/task";
|
|
21
|
+
import type { AccountStatus, AccountType, Icon, User } from "./models/user";
|
|
21
22
|
import type { AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder } from "./models/version";
|
|
22
23
|
import type { WhiteboardLinks, WhiteboardSingle } from "./models/whiteboard";
|
|
23
24
|
import { AncestorsService } from "./services/AncestorsService";
|
|
@@ -59,30 +60,53 @@ export declare class BaseConfluenceApiV2ClientError extends commonHttpClient.Com
|
|
|
59
60
|
export declare class BaseConfluenceApiV2Client extends CommonHttpService {
|
|
60
61
|
client: commonHttpClient.CommonHttpClient;
|
|
61
62
|
getClient: () => commonHttpClient.CommonHttpClient;
|
|
63
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors */
|
|
62
64
|
ancestors: AncestorsService;
|
|
65
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment */
|
|
63
66
|
attachment: AttachmentService;
|
|
67
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post */
|
|
64
68
|
blogPost: BlogPostService;
|
|
69
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children */
|
|
65
70
|
children: ChildrenService;
|
|
71
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
|
|
66
72
|
classificationLevel: ClassificationLevelService;
|
|
73
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment */
|
|
67
74
|
comment: CommentService;
|
|
75
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties */
|
|
68
76
|
contentProperties: ContentPropertiesService;
|
|
77
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content */
|
|
69
78
|
content: ContentService;
|
|
79
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content */
|
|
70
80
|
customContent: CustomContentService;
|
|
81
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database */
|
|
71
82
|
database: DatabaseService;
|
|
83
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-data-policies */
|
|
72
84
|
dataPolicies: DataPoliciesService;
|
|
85
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label */
|
|
73
86
|
label: LabelService;
|
|
87
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like */
|
|
74
88
|
like: LikeService;
|
|
89
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
|
|
75
90
|
operation: OperationService;
|
|
91
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page */
|
|
76
92
|
page: PageService;
|
|
93
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link */
|
|
77
94
|
smartLink: SmartLinkService;
|
|
95
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions */
|
|
78
96
|
spacePermissions: SpacePermissionsService;
|
|
97
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-properties */
|
|
79
98
|
spaceProperties: SpacePropertiesService;
|
|
99
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space */
|
|
80
100
|
space: SpaceService;
|
|
101
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task */
|
|
81
102
|
task: TaskService;
|
|
103
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-user */
|
|
82
104
|
user: UserService;
|
|
105
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version */
|
|
83
106
|
version: VersionService;
|
|
107
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard */
|
|
84
108
|
whiteboard: WhiteboardService;
|
|
85
109
|
constructor(options?: BaseConfluenceApiV2ClientOptions);
|
|
86
110
|
static createClientWithServices: typeof commonHttpClient.createClientWithServices;
|
|
87
111
|
}
|
|
88
|
-
export type { AbstractPageLinks, BodyBulk, BodySingle, BodyType, ContentProperty, ContentStatus, CustomContentBodyRepresentation, Label, Like, MultiEntityLinks, Operation, OptionalFieldLinks, OptionalFieldMeta, ParentContentType, PrimaryBodyRepresentation, PrimaryBodyRepresentationSingle, SpaceDescription, SpaceIcon, SpaceLinks, SpacePermission, SpaceProperty, SpaceSortOrder, Version, Ancestor, AncestorType, AttachmentBulk, AttachmentLinks, AttachmentSingle, AttachmentSortOrder, AttachmentCommentModel, BlogPostCommentModel, BlogPostInlineCommentModel, ChildrenCommentModel, CommentBodyWrite, CommentLinks, CommentNestedBodyWrite, CommentSortOrder, CreateFooterCommentModel, CreateInlineCommentModel, CustomContentCommentModel, FooterCommentModel, InlineCommentChildrenModel, InlineCommentModel, InlineCommentProperties, InlineCommentResolutionStatus, PageCommentModel, PageInlineCommentModel, UpdateFooterCommentModel, UpdateInlineCommentModel, AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder, BlogPostBodyWrite, BlogPostBulk, BlogPostContentStatus, BlogPostNestedBodyWrite, BlogPostSingle, BlogPostSortOrder, ChildCustomContent, ChildPage, OnlyArchivedAndCurrentContentStatus, ClassificationLevel, ClassificationLevelColor, ClassificationLevelStatus, ContentIdToContentTypeResponse, ContentPropertyCreateRequest, ContentPropertySortOrder, ContentPropertyUpdateRequest, CustomContentBodyBulk, CustomContentBodyRepresentationSingle, CustomContentBodySingle, CustomContentBodyWrite, CustomContentBulk, CustomContentLinks, CustomContentNestedBodyWrite, CustomContentSingle, CustomContentSortOrder, DatabaseLinks, DatabaseSingle, DataPolicyMetadata, DataPolicySpace, PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder, PermittedOperationsResponse, SmartLinkLinks, SmartLinkSingle, SpaceBulk, SpaceDescriptionBodyRepresentation, SpaceSingle, SpaceStatus, SpaceType, SpacePropertyCreateRequest, SpacePropertyUpdateRequest, Task, TaskBodySingle, WhiteboardLinks, WhiteboardSingle, };
|
|
112
|
+
export type { AbstractPageLinks, BodyBulk, BodySingle, BodyType, ContentProperty, ContentStatus, CustomContentBodyRepresentation, Label, Like, MultiEntityLinks, Operation, OptionalFieldLinks, OptionalFieldMeta, ParentContentType, PrimaryBodyRepresentation, PrimaryBodyRepresentationSingle, SpaceDescription, SpaceIcon, SpaceLinks, SpacePermission, SpaceProperty, SpaceSortOrder, Version, AccountStatus, AccountType, Icon, User, Ancestor, AncestorType, AttachmentBulk, AttachmentLinks, AttachmentSingle, AttachmentSortOrder, AttachmentCommentModel, BlogPostCommentModel, BlogPostInlineCommentModel, ChildrenCommentModel, CommentBodyWrite, CommentLinks, CommentNestedBodyWrite, CommentSortOrder, CreateFooterCommentModel, CreateInlineCommentModel, CustomContentCommentModel, FooterCommentModel, InlineCommentChildrenModel, InlineCommentModel, InlineCommentProperties, InlineCommentResolutionStatus, PageCommentModel, PageInlineCommentModel, UpdateFooterCommentModel, UpdateInlineCommentModel, AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder, BlogPostBodyWrite, BlogPostBulk, BlogPostContentStatus, BlogPostNestedBodyWrite, BlogPostSingle, BlogPostSortOrder, ChildCustomContent, ChildPage, OnlyArchivedAndCurrentContentStatus, ClassificationLevel, ClassificationLevelColor, ClassificationLevelStatus, ContentIdToContentTypeResponse, ContentPropertyCreateRequest, ContentPropertySortOrder, ContentPropertyUpdateRequest, CustomContentBodyBulk, CustomContentBodyRepresentationSingle, CustomContentBodySingle, CustomContentBodyWrite, CustomContentBulk, CustomContentLinks, CustomContentNestedBodyWrite, CustomContentSingle, CustomContentSortOrder, DatabaseLinks, DatabaseSingle, DataPolicyMetadata, DataPolicySpace, PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder, PermittedOperationsResponse, SmartLinkLinks, SmartLinkSingle, SpaceBulk, SpaceDescriptionBodyRepresentation, SpaceSingle, SpaceStatus, SpaceType, SpacePropertyCreateRequest, SpacePropertyUpdateRequest, Task, TaskBodySingle, WhiteboardLinks, WhiteboardSingle, };
|
|
@@ -55,28 +55,51 @@ class BaseConfluenceApiV2Client extends CommonHttpService_1.CommonHttpService {
|
|
|
55
55
|
errorClass: BaseConfluenceApiV2ClientError,
|
|
56
56
|
});
|
|
57
57
|
this.getClient = () => this.client;
|
|
58
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors */
|
|
58
59
|
this.ancestors = new AncestorsService_1.AncestorsService(this.getClient);
|
|
60
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment */
|
|
59
61
|
this.attachment = new AttachmentService_1.AttachmentService(this.getClient);
|
|
62
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post */
|
|
60
63
|
this.blogPost = new BlogPostService_1.BlogPostService(this.getClient);
|
|
64
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children */
|
|
61
65
|
this.children = new ChildrenService_1.ChildrenService(this.getClient);
|
|
66
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
|
|
62
67
|
this.classificationLevel = new ClassificationLevelService_1.ClassificationLevelService(this.getClient);
|
|
68
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment */
|
|
63
69
|
this.comment = new CommentService_1.CommentService(this.getClient);
|
|
70
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties */
|
|
64
71
|
this.contentProperties = new ContentPropertiesService_1.ContentPropertiesService(this.getClient);
|
|
72
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content */
|
|
65
73
|
this.content = new ContentService_1.ContentService(this.getClient);
|
|
74
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content */
|
|
66
75
|
this.customContent = new CustomContentService_1.CustomContentService(this.getClient);
|
|
76
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-database */
|
|
67
77
|
this.database = new DatabaseService_1.DatabaseService(this.getClient);
|
|
78
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-data-policies */
|
|
68
79
|
this.dataPolicies = new DataPoliciesService_1.DataPoliciesService(this.getClient);
|
|
80
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label */
|
|
69
81
|
this.label = new LabelService_1.LabelService(this.getClient);
|
|
82
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like */
|
|
70
83
|
this.like = new LikeService_1.LikeService(this.getClient);
|
|
84
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
|
|
71
85
|
this.operation = new OperationService_1.OperationService(this.getClient);
|
|
86
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page */
|
|
72
87
|
this.page = new PageService_1.PageService(this.getClient);
|
|
88
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link */
|
|
73
89
|
this.smartLink = new SmartLinkService_1.SmartLinkService(this.getClient);
|
|
90
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions */
|
|
74
91
|
this.spacePermissions = new SpacePermissionsService_1.SpacePermissionsService(this.getClient);
|
|
92
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-properties */
|
|
75
93
|
this.spaceProperties = new SpacePropertiesService_1.SpacePropertiesService(this.getClient);
|
|
94
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space */
|
|
76
95
|
this.space = new SpaceService_1.SpaceService(this.getClient);
|
|
96
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task */
|
|
77
97
|
this.task = new TaskService_1.TaskService(this.getClient);
|
|
98
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-user */
|
|
78
99
|
this.user = new UserService_1.UserService(this.getClient);
|
|
100
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version */
|
|
79
101
|
this.version = new VersionService_1.VersionService(this.getClient);
|
|
102
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-whiteboard */
|
|
80
103
|
this.whiteboard = new WhiteboardService_1.WhiteboardService(this.getClient);
|
|
81
104
|
this.client.setOptions(Object.assign(Object.assign({}, this.client.getOptions()), options));
|
|
82
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseConfluenceApiV2Client.js","sourceRoot":"","sources":["../../../src/openapi/v2/BaseConfluenceApiV2Client.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,4DAA4D;AAC5D,gEAA6D;
|
|
1
|
+
{"version":3,"file":"BaseConfluenceApiV2Client.js","s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AAI,CAAC,SAAS,CAAC,CAAC;QAC7D,oFAAoF;QACpF,UAAK,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,mFAAmF;QACnF,SAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACvC,mFAAmF;QACnF,SAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACvC,sFAAsF;QACtF,YAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,yFAAyF;QACzF,eAAU,GAAG,IAAI,qCAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAGjD,IAAI,CAAC,MAAM,CAAC,UAAU,iCACjB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,GACxB,OAAO,EACV,CAAC;IACL,CAAC;;AA3DH,8DA6DC;AADQ,kDAAwB,GAAG,gBAAgB,CAAC,wBAAwB,AAA5C,CAA6C;AAE9E,iDAAuB,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ZodTypeAny } from "zod";
|
|
2
|
+
import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
|
|
3
|
+
/** The account status of the user. */
|
|
4
|
+
export type AccountStatus = "active" | "inactive" | "closed" | "unknown";
|
|
5
|
+
/** The account type of the user. */
|
|
6
|
+
export type AccountType = "atlassian" | "app" | "customer" | "unknown";
|
|
7
|
+
/**
|
|
8
|
+
* This object represents an icon. If used as a profilePicture, this may be
|
|
9
|
+
* returned as null, depending on the user's privacy setting.
|
|
10
|
+
*/
|
|
11
|
+
export interface Icon extends Record<string, unknown> {
|
|
12
|
+
path: string;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
isDefault: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface User extends Record<string, unknown> {
|
|
18
|
+
/** Display name of the user. */
|
|
19
|
+
displayName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Time zone of the user. Depending on the user's privacy
|
|
22
|
+
* setting, this may return null.
|
|
23
|
+
*/
|
|
24
|
+
timeZone?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Space ID of the user's personal space. Returns null, if no personal space for
|
|
27
|
+
* the user.
|
|
28
|
+
*/
|
|
29
|
+
personalSpaceId?: string;
|
|
30
|
+
/** Whether the user is an external collaborator. */
|
|
31
|
+
isExternalCollaborator?: boolean;
|
|
32
|
+
/** The account status of the user. */
|
|
33
|
+
accountStatus?: AccountStatus;
|
|
34
|
+
/** Account ID of the user. */
|
|
35
|
+
accountId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The email address of the user. Depending on the user's privacy setting, this
|
|
38
|
+
* may return an empty string.
|
|
39
|
+
*/
|
|
40
|
+
email?: string;
|
|
41
|
+
/** The account type of the user. */
|
|
42
|
+
accountType?: AccountType;
|
|
43
|
+
/** Public name of the user. */
|
|
44
|
+
publicName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* This object represents an icon. If used as a profilePicture, this may be
|
|
47
|
+
* returned as null, depending on the user's privacy setting.
|
|
48
|
+
*/
|
|
49
|
+
profilePicture?: Icon | null;
|
|
50
|
+
}
|
|
51
|
+
export declare function registerUserValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerUserValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
function registerUserValidationSchemas(validationSchemaStorage) {
|
|
9
|
+
validationSchemaStorage.register("AccountStatus", zod_1.z
|
|
10
|
+
.enum(["active", "inactive", "closed", "unknown"])
|
|
11
|
+
.describe("AccountStatus"));
|
|
12
|
+
validationSchemaStorage.register("AccountType", zod_1.z.enum(["atlassian", "app", "customer", "unknown"]).describe("AccountType"));
|
|
13
|
+
validationSchemaStorage.register("Icon", zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
path: zod_1.z.string(),
|
|
16
|
+
width: zod_1.z.number().int(),
|
|
17
|
+
height: zod_1.z.number().int(),
|
|
18
|
+
isDefault: zod_1.z.boolean(),
|
|
19
|
+
})
|
|
20
|
+
.catchall(zod_1.z.unknown())
|
|
21
|
+
.describe("Icon"));
|
|
22
|
+
validationSchemaStorage.register("User", zod_1.z
|
|
23
|
+
.object({
|
|
24
|
+
displayName: zod_1.z.string().optional(),
|
|
25
|
+
timeZone: zod_1.z.string().optional(),
|
|
26
|
+
personalSpaceId: zod_1.z.string().optional(),
|
|
27
|
+
isExternalCollaborator: zod_1.z.boolean().optional(),
|
|
28
|
+
accountStatus: validationSchemaStorage.lazy("AccountStatus").optional(),
|
|
29
|
+
accountId: zod_1.z.string().optional(),
|
|
30
|
+
email: zod_1.z.string().optional(),
|
|
31
|
+
accountType: validationSchemaStorage.lazy("AccountType").optional(),
|
|
32
|
+
publicName: zod_1.z.string().optional(),
|
|
33
|
+
profilePicture: zod_1.z
|
|
34
|
+
.nullable(validationSchemaStorage.lazy("Icon"))
|
|
35
|
+
.optional(),
|
|
36
|
+
})
|
|
37
|
+
.catchall(zod_1.z.unknown())
|
|
38
|
+
.describe("User"));
|
|
39
|
+
}
|
|
40
|
+
exports.registerUserValidationSchemas = registerUserValidationSchemas;
|
|
41
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/openapi/v2/models/user.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAmDzC,SAAgB,6BAA6B,CAC3C,uBAAkE;IAElE,uBAAuB,CAAC,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EAAE,uBAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;QACnE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,cAAc,EAAE,OAAC;aACd,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC9C,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,MAAM,CAAC,CACpB,CAAC;AACJ,CAAC;AA7CD,sEA6CC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type Ancestor } from "../models/ancestors";
|
|
3
3
|
import { type MultiEntityLinks } from "../models/common";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors */
|
|
4
5
|
export declare class AncestorsService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Returns all ancestors for a given database by ID in top-to-bottom order (that
|
|
@@ -22,6 +23,7 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
22
23
|
* @returns Returned if the requested ancestors are returned.
|
|
23
24
|
* @path {GET} /databases/{id}/ancestors
|
|
24
25
|
* @scopes-current read:content.metadata:confluence
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-databases-id-ancestors-get
|
|
25
27
|
*/
|
|
26
28
|
getDatabaseAncestors({ id, limit, }: {
|
|
27
29
|
/** The ID of the database. */
|
|
@@ -55,6 +57,7 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
55
57
|
* @returns Returned if the requested ancestors are returned.
|
|
56
58
|
* @path {GET} /pages/{id}/ancestors
|
|
57
59
|
* @scopes-current read:content.metadata:confluence
|
|
60
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-pages-id-ancestors-get
|
|
58
61
|
*/
|
|
59
62
|
getPageAncestors({ id, limit, }: {
|
|
60
63
|
/** The ID of the page. */
|
|
@@ -91,6 +94,7 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
91
94
|
* @returns Returned if the requested ancestors are returned.
|
|
92
95
|
* @path {GET} /embeds/{id}/ancestors
|
|
93
96
|
* @scopes-current read:content.metadata:confluence
|
|
97
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-embeds-id-ancestors-get
|
|
94
98
|
*/
|
|
95
99
|
getSmartLinkAncestors({ id, limit, }: {
|
|
96
100
|
/** The ID of the Smart Link in the content tree. */
|
|
@@ -125,6 +129,7 @@ export declare class AncestorsService extends CommonHttpService {
|
|
|
125
129
|
* @returns Returned if the requested ancestors are returned.
|
|
126
130
|
* @path {GET} /whiteboards/{id}/ancestors
|
|
127
131
|
* @scopes-current read:content.metadata:confluence
|
|
132
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-whiteboards-id-ancestors-get
|
|
128
133
|
*/
|
|
129
134
|
getWhiteboardAncestors({ id, limit, }: {
|
|
130
135
|
/** The ID of the whiteboard. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const ancestors_1 = require("../models/ancestors");
|
|
11
11
|
const common_1 = require("../models/common");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors */
|
|
13
14
|
class AncestorsService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Returns all ancestors for a given database by ID in top-to-bottom order (that
|
|
@@ -31,6 +32,7 @@ class AncestorsService extends CommonHttpService_1.CommonHttpService {
|
|
|
31
32
|
* @returns Returned if the requested ancestors are returned.
|
|
32
33
|
* @path {GET} /databases/{id}/ancestors
|
|
33
34
|
* @scopes-current read:content.metadata:confluence
|
|
35
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-databases-id-ancestors-get
|
|
34
36
|
*/
|
|
35
37
|
getDatabaseAncestors({ id, limit, }) {
|
|
36
38
|
return this.getClientInstance()
|
|
@@ -72,6 +74,7 @@ class AncestorsService extends CommonHttpService_1.CommonHttpService {
|
|
|
72
74
|
* @returns Returned if the requested ancestors are returned.
|
|
73
75
|
* @path {GET} /pages/{id}/ancestors
|
|
74
76
|
* @scopes-current read:content.metadata:confluence
|
|
77
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-pages-id-ancestors-get
|
|
75
78
|
*/
|
|
76
79
|
getPageAncestors({ id, limit, }) {
|
|
77
80
|
return this.getClientInstance()
|
|
@@ -115,6 +118,7 @@ class AncestorsService extends CommonHttpService_1.CommonHttpService {
|
|
|
115
118
|
* @returns Returned if the requested ancestors are returned.
|
|
116
119
|
* @path {GET} /embeds/{id}/ancestors
|
|
117
120
|
* @scopes-current read:content.metadata:confluence
|
|
121
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-embeds-id-ancestors-get
|
|
118
122
|
*/
|
|
119
123
|
getSmartLinkAncestors({ id, limit, }) {
|
|
120
124
|
return this.getClientInstance()
|
|
@@ -157,6 +161,7 @@ class AncestorsService extends CommonHttpService_1.CommonHttpService {
|
|
|
157
161
|
* @returns Returned if the requested ancestors are returned.
|
|
158
162
|
* @path {GET} /whiteboards/{id}/ancestors
|
|
159
163
|
* @scopes-current read:content.metadata:confluence
|
|
164
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors#api-whiteboards-id-ancestors-get
|
|
160
165
|
*/
|
|
161
166
|
getWhiteboardAncestors({ id, limit, }) {
|
|
162
167
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AncestorsService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/AncestorsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mDAG6B;AAC7B,6CAG0B;AAC1B,wEAAqE;AACrE,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD
|
|
1
|
+
{"version":3,"file":"AncestorsService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/AncestorsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mDAG6B;AAC7B,6CAG0B;AAC1B,wEAAqE;AACrE,wFAAwF;AACxF,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,oBAAoB,CAAC,EACnB,EAAE,EACF,KAAK,GASN;QAOC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,2BAA2B;YACjC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,KAAK;aACN;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAQzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,gDAAgD,CACjD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,gBAAgB,CAAC,EACf,EAAE,EACF,KAAK,GASN;QAQC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;YACD,K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,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,OAAO,EAAE,OAAC;qBACP,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;qBAC/C,QAAQ,EAAE;gBACb,MAAM,EAAE,iDAAuB;qBAC5B,IAAI,CAAC,kBAAkB,CAAC;qBACxB,QAAQ,EAAE;aACd,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,kDAAkD,EAClD,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;iBACJ,MAAM,CAAC;gBACN,OAAO,EAAE,OAAC;qBACP,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;qBAC/C,QAAQ,EAAE;aACd,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,kDAAkD,CAAC,CAChE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,8CAAkC;YAClC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA5XD,4CA4XC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type AttachmentBulk, type AttachmentSingle, type AttachmentSortOrder } from "../models/attachment";
|
|
3
3
|
import { type MultiEntityLinks } from "../models/common";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment */
|
|
4
5
|
export declare class AttachmentService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Delete an attachment by id.
|
|
@@ -17,6 +18,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
17
18
|
*
|
|
18
19
|
* @path {DELETE} /attachments/{id}
|
|
19
20
|
* @scopes-current delete:attachment:confluence
|
|
21
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-delete
|
|
20
22
|
*/
|
|
21
23
|
deleteAttachment({ id, purge, }: {
|
|
22
24
|
/** The ID of the attachment to be deleted. */
|
|
@@ -33,6 +35,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
33
35
|
* @returns Returned if the requested attachment is returned.
|
|
34
36
|
* @path {GET} /attachments/{id}
|
|
35
37
|
* @scopes-current read:attachment:confluence
|
|
38
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-get
|
|
36
39
|
*/
|
|
37
40
|
getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
38
41
|
/**
|
|
@@ -103,8 +106,9 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
103
106
|
* @returns Returned if the requested attachments are returned.
|
|
104
107
|
* @path {GET} /attachments
|
|
105
108
|
* @scopes-current read:attachment:confluence
|
|
109
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-get
|
|
106
110
|
*/
|
|
107
|
-
getAttachments({ sort, cursor, status, mediaType, filename, limit, }
|
|
111
|
+
getAttachments({ sort, cursor, status, mediaType, filename, limit, }?: {
|
|
108
112
|
/** Used to sort the result by a particular field. */
|
|
109
113
|
sort?: AttachmentSortOrder;
|
|
110
114
|
/**
|
|
@@ -145,6 +149,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
145
149
|
* @returns Returned if the requested attachments are returned.
|
|
146
150
|
* @path {GET} /blogposts/{id}/attachments
|
|
147
151
|
* @scopes-current read:attachment:confluence
|
|
152
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-blogposts-id-attachments-get
|
|
148
153
|
*/
|
|
149
154
|
getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
150
155
|
/** The ID of the blog post for which attachments should be returned. */
|
|
@@ -190,6 +195,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
190
195
|
* @returns Returned if the requested attachments are returned.
|
|
191
196
|
* @path {GET} /custom-content/{id}/attachments
|
|
192
197
|
* @scopes-current read:attachment:confluence
|
|
198
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-custom-content-id-attachments-get
|
|
193
199
|
*/
|
|
194
200
|
getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
195
201
|
/** The ID of the custom content for which attachments should be returned. */
|
|
@@ -235,6 +241,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
235
241
|
* fetched.
|
|
236
242
|
* @path {GET} /labels/{id}/attachments
|
|
237
243
|
* @scopes-current read:attachment:confluence
|
|
244
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-labels-id-attachments-get
|
|
238
245
|
*/
|
|
239
246
|
getLabelAttachments({ id, sort, cursor, limit, }: {
|
|
240
247
|
/** The ID of the label for which attachments should be returned. */
|
|
@@ -270,6 +277,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
270
277
|
* @returns Returned if the requested attachments are returned.
|
|
271
278
|
* @path {GET} /pages/{id}/attachments
|
|
272
279
|
* @scopes-current read:attachment:confluence
|
|
280
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-pages-id-attachments-get
|
|
273
281
|
*/
|
|
274
282
|
getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
275
283
|
/** The ID of the page for which attachments should be returned. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const attachment_1 = require("../models/attachment");
|
|
11
11
|
const common_1 = require("../models/common");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment */
|
|
13
14
|
class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Delete an attachment by id.
|
|
@@ -26,6 +27,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
26
27
|
*
|
|
27
28
|
* @path {DELETE} /attachments/{id}
|
|
28
29
|
* @scopes-current delete:attachment:confluence
|
|
30
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-delete
|
|
29
31
|
*/
|
|
30
32
|
deleteAttachment({ id, purge, }) {
|
|
31
33
|
return this.getClientInstance()
|
|
@@ -50,6 +52,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
50
52
|
* @returns Returned if the requested attachment is returned.
|
|
51
53
|
* @path {GET} /attachments/{id}
|
|
52
54
|
* @scopes-current read:attachment:confluence
|
|
55
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-get
|
|
53
56
|
*/
|
|
54
57
|
getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }) {
|
|
55
58
|
return this.getClientInstance()
|
|
@@ -88,8 +91,9 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
88
91
|
* @returns Returned if the requested attachments are returned.
|
|
89
92
|
* @path {GET} /attachments
|
|
90
93
|
* @scopes-current read:attachment:confluence
|
|
94
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-get
|
|
91
95
|
*/
|
|
92
|
-
getAttachments({ sort, cursor, status, mediaType, filename, limit, }) {
|
|
96
|
+
getAttachments({ sort, cursor, status, mediaType, filename, limit, } = {}) {
|
|
93
97
|
return this.getClientInstance()
|
|
94
98
|
.request({
|
|
95
99
|
path: "/attachments",
|
|
@@ -123,6 +127,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
123
127
|
* @returns Returned if the requested attachments are returned.
|
|
124
128
|
* @path {GET} /blogposts/{id}/attachments
|
|
125
129
|
* @scopes-current read:attachment:confluence
|
|
130
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-blogposts-id-attachments-get
|
|
126
131
|
*/
|
|
127
132
|
getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
128
133
|
return this.getClientInstance()
|
|
@@ -162,6 +167,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
162
167
|
* @returns Returned if the requested attachments are returned.
|
|
163
168
|
* @path {GET} /custom-content/{id}/attachments
|
|
164
169
|
* @scopes-current read:attachment:confluence
|
|
170
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-custom-content-id-attachments-get
|
|
165
171
|
*/
|
|
166
172
|
getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
167
173
|
return this.getClientInstance()
|
|
@@ -201,6 +207,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
201
207
|
* fetched.
|
|
202
208
|
* @path {GET} /labels/{id}/attachments
|
|
203
209
|
* @scopes-current read:attachment:confluence
|
|
210
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-labels-id-attachments-get
|
|
204
211
|
*/
|
|
205
212
|
getLabelAttachments({ id, sort, cursor, limit, }) {
|
|
206
213
|
return this.getClientInstance()
|
|
@@ -236,6 +243,7 @@ class AttachmentService extends CommonHttpService_1.CommonHttpService {
|
|
|
236
243
|
* @returns Returned if the requested attachments are returned.
|
|
237
244
|
* @path {GET} /pages/{id}/attachments
|
|
238
245
|
* @scopes-current read:attachment:confluence
|
|
246
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-pages-id-attachments-get
|
|
239
247
|
*/
|
|
240
248
|
getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
|
|
241
249
|
return this.getClientInstance()
|