@resolution/confluence-api-client 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  3. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  4. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  5. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  6. package/lib/openapi/v1/services/AuditService.js +205 -202
  7. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  8. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  9. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  11. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  12. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  13. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  14. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  17. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  18. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  19. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  20. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  21. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  22. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  23. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  24. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  26. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  27. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  28. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  29. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  30. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  31. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  32. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  33. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  35. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  36. package/lib/openapi/v1/services/ContentService.js +475 -472
  37. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  38. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  39. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  40. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  42. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  43. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  45. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  46. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  47. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  48. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  49. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  51. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  52. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  53. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  54. package/lib/openapi/v1/services/GroupService.js +445 -442
  55. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  56. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  57. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  58. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  59. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  60. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  61. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  62. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  63. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  64. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  65. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  66. package/lib/openapi/v1/services/RelationService.js +231 -228
  67. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  68. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  69. package/lib/openapi/v1/services/SearchService.js +136 -133
  70. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  71. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  72. package/lib/openapi/v1/services/SettingsService.js +204 -201
  73. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  74. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  75. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  76. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  78. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  79. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  80. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  81. package/lib/openapi/v1/services/SpaceService.js +320 -317
  82. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  83. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  84. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  85. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  86. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  87. package/lib/openapi/v1/services/TemplateService.js +214 -211
  88. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  89. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  90. package/lib/openapi/v1/services/ThemesService.js +179 -176
  91. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  92. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  93. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  94. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  95. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  96. package/lib/openapi/v1/services/UsersService.js +229 -226
  97. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  98. package/lib/openapi/v2/models/user.d.ts +0 -2
  99. package/lib/openapi/v2/models/user.js +0 -2
  100. package/lib/openapi/v2/models/user.js.map +1 -1
  101. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  102. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  103. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  104. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  105. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  106. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  107. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  108. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  109. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  110. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  111. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  112. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  113. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  114. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  115. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  116. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  117. package/lib/openapi/v2/services/CommentService.js +635 -632
  118. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  119. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  120. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  121. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  122. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  123. package/lib/openapi/v2/services/ContentService.js +40 -37
  124. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  125. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  126. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  127. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  128. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  129. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  130. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  131. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  132. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  133. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  134. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  135. package/lib/openapi/v2/services/LabelService.js +263 -260
  136. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  137. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  138. package/lib/openapi/v2/services/LikeService.js +250 -247
  139. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  140. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  141. package/lib/openapi/v2/services/OperationService.js +298 -295
  142. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  143. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  144. package/lib/openapi/v2/services/PageService.js +272 -269
  145. package/lib/openapi/v2/services/PageService.js.map +1 -1
  146. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  147. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  148. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  149. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  150. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  151. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  152. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  153. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  154. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  155. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  156. package/lib/openapi/v2/services/SpaceService.js +83 -80
  157. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  158. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  159. package/lib/openapi/v2/services/TaskService.js +120 -117
  160. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  161. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  162. package/lib/openapi/v2/services/UserService.js +91 -88
  163. package/lib/openapi/v2/services/UserService.js.map +1 -1
  164. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  165. package/lib/openapi/v2/services/VersionService.js +395 -392
  166. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  167. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  168. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  169. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  170. package/package.json +4 -3
@@ -11,102 +11,105 @@ const spacePermissions_1 = require("../models/spacePermissions");
11
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
12
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions */
13
13
  class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
14
- /**
15
- * Adds new custom content permission to space.
16
- *
17
- * If the permission to be added is a group permission, the group can be identified
18
- * by its group name or group id.
19
- *
20
- * Note: Only apps can access this REST resource and only make changes to the
21
- * respective app permissions.
22
- *
23
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
24
- * 'Admin' permission for the space.
25
- *
26
- * @path {POST} /wiki/rest/api/space/{spaceKey}/permission/custom-content
27
- * @scopes-current read:space.permission:confluence, write:space.permission:confluence
28
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-custom-content-post
29
- */
30
- addCustomContentPermissions({ spaceKey, spacePermissionCustomContent, }) {
31
- return this.getClientInstance()
32
- .request({
33
- path: "/wiki/rest/api/space/{spaceKey}/permission/custom-content",
34
- method: "POST",
35
- pathParams: {
36
- spaceKey,
37
- },
38
- headers: {
39
- "Content-Type": "application/json",
40
- },
41
- body: spacePermissionCustomContent,
42
- })
43
- .then(commonHttpClient.discardResult);
44
- }
45
- /**
46
- * Adds new permission to space.
47
- *
48
- * If the permission to be added is a group permission, the group can be identified
49
- * by its group name or group id.
50
- *
51
- * Note: Apps cannot access this REST resource - including when utilizing user
52
- * impersonation.
53
- *
54
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
55
- * 'Admin' permission for the space.
56
- *
57
- * @returns Returned if the requested content is returned.
58
- * @path {POST} /wiki/rest/api/space/{spaceKey}/permission
59
- * @scopes-current read:space.permission:confluence, write:space.permission:confluence
60
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-post
61
- */
62
- addPermissionToSpace({ spaceKey, spacePermissionRequest, }) {
63
- return this.getClientInstance()
64
- .request({
65
- path: "/wiki/rest/api/space/{spaceKey}/permission",
66
- method: "POST",
67
- pathParams: {
68
- spaceKey,
69
- },
70
- headers: {
71
- "Content-Type": "application/json",
72
- },
73
- body: spacePermissionRequest,
74
- })
75
- .then(this.getClientInstance().responseHandler({
76
- 200: {
77
- "application/json": "json",
78
- },
79
- }))
80
- .then(commonHttpClient.castResponse())
81
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePermissionsService.addPermissionToSpace.response"))
82
- .then(commonHttpClient.getBody);
83
- }
84
- /**
85
- * Removes a space permission. Note that removing Read Space permission for a user
86
- * or group will remove all
87
- * the space permissions for that user or group.
88
- *
89
- * Note: Apps cannot access this REST resource - including when utilizing user
90
- * impersonation.
91
- *
92
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
93
- * 'Admin' permission for the space.
94
- *
95
- * @path {DELETE} /wiki/rest/api/space/{spaceKey}/permission/{id}
96
- * @scopes-current write:space.permission:confluence
97
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-id-delete
98
- */
99
- removePermission({ spaceKey, id, }) {
100
- return this.getClientInstance()
101
- .request({
102
- path: "/wiki/rest/api/space/{spaceKey}/permission/{id}",
103
- method: "DELETE",
104
- pathParams: {
105
- spaceKey,
106
- id,
107
- },
108
- })
109
- .then(commonHttpClient.discardResult);
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * Adds new custom content permission to space.
18
+ *
19
+ * If the permission to be added is a group permission, the group can be identified
20
+ * by its group name or group id.
21
+ *
22
+ * Note: Only apps can access this REST resource and only make changes to the
23
+ * respective app permissions.
24
+ *
25
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
26
+ * 'Admin' permission for the space.
27
+ *
28
+ * @path {POST} /wiki/rest/api/space/{spaceKey}/permission/custom-content
29
+ * @scopes-current read:space.permission:confluence, write:space.permission:confluence
30
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-custom-content-post
31
+ */
32
+ this.addCustomContentPermissions = ({ spaceKey, spacePermissionCustomContent, }) => {
33
+ return this.getClientInstance()
34
+ .request({
35
+ path: "/wiki/rest/api/space/{spaceKey}/permission/custom-content",
36
+ method: "POST",
37
+ pathParams: {
38
+ spaceKey,
39
+ },
40
+ headers: {
41
+ "Content-Type": "application/json",
42
+ },
43
+ body: spacePermissionCustomContent,
44
+ })
45
+ .then(commonHttpClient.discardResult);
46
+ };
47
+ /**
48
+ * Adds new permission to space.
49
+ *
50
+ * If the permission to be added is a group permission, the group can be identified
51
+ * by its group name or group id.
52
+ *
53
+ * Note: Apps cannot access this REST resource - including when utilizing user
54
+ * impersonation.
55
+ *
56
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
57
+ * 'Admin' permission for the space.
58
+ *
59
+ * @returns Returned if the requested content is returned.
60
+ * @path {POST} /wiki/rest/api/space/{spaceKey}/permission
61
+ * @scopes-current read:space.permission:confluence, write:space.permission:confluence
62
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-post
63
+ */
64
+ this.addPermissionToSpace = ({ spaceKey, spacePermissionRequest, }) => {
65
+ return this.getClientInstance()
66
+ .request({
67
+ path: "/wiki/rest/api/space/{spaceKey}/permission",
68
+ method: "POST",
69
+ pathParams: {
70
+ spaceKey,
71
+ },
72
+ headers: {
73
+ "Content-Type": "application/json",
74
+ },
75
+ body: spacePermissionRequest,
76
+ })
77
+ .then(this.getClientInstance().responseHandler({
78
+ 200: {
79
+ "application/json": "json",
80
+ },
81
+ }))
82
+ .then(commonHttpClient.castResponse())
83
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpacePermissionsService.addPermissionToSpace.response"))
84
+ .then(commonHttpClient.getBody);
85
+ };
86
+ /**
87
+ * Removes a space permission. Note that removing Read Space permission for a user
88
+ * or group will remove all
89
+ * the space permissions for that user or group.
90
+ *
91
+ * Note: Apps cannot access this REST resource - including when utilizing user
92
+ * impersonation.
93
+ *
94
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
95
+ * 'Admin' permission for the space.
96
+ *
97
+ * @path {DELETE} /wiki/rest/api/space/{spaceKey}/permission/{id}
98
+ * @scopes-current write:space.permission:confluence
99
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-id-delete
100
+ */
101
+ this.removePermission = ({ spaceKey, id, }) => {
102
+ return this.getClientInstance()
103
+ .request({
104
+ path: "/wiki/rest/api/space/{spaceKey}/permission/{id}",
105
+ method: "DELETE",
106
+ pathParams: {
107
+ spaceKey,
108
+ id,
109
+ },
110
+ })
111
+ .then(commonHttpClient.discardResult);
112
+ };
110
113
  }
111
114
  static initialize() {
112
115
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpacePermissionsService.addPermissionToSpace.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iEAKoC;AACpC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,uBAAwB,SAAQ,qCAAiB;IAC5D;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,CAAC,EAC1B,QAAQ,EACR,4BAA4B,GAM7B;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,4BAA4B;SACnC,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;;;;;;;OAgBG;IACH,oBAAoB,CAAC,EACnB,QAAQ,EACR,sBAAsB,GAMvB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,4CAA4C;YAClD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,sBAAsB;SAC7B,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,uDAAuD,CACxD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,EACf,QAAQ,EACR,EAAE,GAMH;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,iDAAiD;YACvD,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,QAAQ;gBACR,EAAE;aACH;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,uDAAuD,EACvD,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,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4DAAyC;SAC1C,CAAC,CAAC;IACL,CAAC;CACF;AArJD,0DAqJC"}
1
+ {"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iEAKoC;AACpC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,uBAAwB,SAAQ,qCAAiB;IAA9D;;QACE;;;;;;;;;;;;;;;WAeG;QACH,gCAA2B,GAAG,CAAC,EAC7B,QAAQ,EACR,4BAA4B,GAM7B,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2DAA2D;gBACjE,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,QAAQ;iBACT;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,4BAA4B;aACnC,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;WAgBG;QACH,yBAAoB,GAAG,CAAC,EACtB,QAAQ,EACR,sBAAsB,GAMvB,EAA8B,EAAE;YAC/B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,4CAA4C;gBAClD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,QAAQ;iBACT;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,sBAAsB;aAC7B,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,uDAAuD,CACxD,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;WAcG;QACH,qBAAgB,GAAG,CAAC,EAClB,QAAQ,EACR,EAAE,GAMH,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,iDAAiD;gBACvD,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE;oBACV,QAAQ;oBACR,EAAE;iBACH;aACF,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;IAgBJ,CAAC;IAfC,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,uDAAuD,EACvD,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,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4DAAyC;SAC1C,CAAC,CAAC;IACL,CAAC;CACF;AArJD,0DAqJC"}
@@ -21,12 +21,12 @@ export declare class SpacePropertiesService extends CommonHttpService {
21
21
  * @scopes-beta read:space.property:confluence, write:space.property:confluence
22
22
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-post
23
23
  */
24
- createSpaceProperty({ spaceKey, spacePropertyCreate, }: {
24
+ createSpaceProperty: ({ spaceKey, spacePropertyCreate, }: {
25
25
  /** The key of the space that the property will be created in. */
26
26
  spaceKey: string;
27
27
  /** The space property to be created. */
28
28
  spacePropertyCreate: SpacePropertyCreate;
29
- }): Promise<SpacePropertyV1>;
29
+ }) => Promise<SpacePropertyV1>;
30
30
  /**
31
31
  * Deprecated, use [Confluence's v2
32
32
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -46,14 +46,14 @@ export declare class SpacePropertiesService extends CommonHttpService {
46
46
  * @scopes-beta read:space.property:confluence, write:space.property:confluence
47
47
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-post
48
48
  */
49
- createSpacePropertyForKey({ spaceKey, key, spacePropertyCreateNoKey, }: {
49
+ createSpacePropertyForKey: ({ spaceKey, key, spacePropertyCreateNoKey, }: {
50
50
  /** The key of the space that the property will be created in. */
51
51
  spaceKey: string;
52
52
  /** The key of the property to be created. */
53
53
  key: string;
54
54
  /** The space property to be created. */
55
55
  spacePropertyCreateNoKey: SpacePropertyCreateNoKey;
56
- }): Promise<SpacePropertyV1>;
56
+ }) => Promise<SpacePropertyV1>;
57
57
  /**
58
58
  * Deprecated, use [Confluence's v2
59
59
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -69,12 +69,12 @@ export declare class SpacePropertiesService extends CommonHttpService {
69
69
  * @scopes-beta write:space.property:confluence
70
70
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-delete
71
71
  */
72
- deleteSpaceProperty({ spaceKey, key, }: {
72
+ deleteSpaceProperty: ({ spaceKey, key, }: {
73
73
  /** The key of the space that the property is in. */
74
74
  spaceKey: string;
75
75
  /** The key of the property to be deleted. */
76
76
  key: string;
77
- }): Promise<void>;
77
+ }) => Promise<void>;
78
78
  /**
79
79
  * Deprecated, use [Confluence's v2
80
80
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -92,7 +92,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
92
92
  * @scopes-beta read:content-details:confluence
93
93
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-get
94
94
  */
95
- getSpaceProperties({ spaceKey, expand, start, limit, }: {
95
+ getSpaceProperties: ({ spaceKey, expand, start, limit, }: {
96
96
  /** The key of the space to be queried for its properties. */
97
97
  spaceKey: string;
98
98
  /**
@@ -102,15 +102,15 @@ export declare class SpacePropertiesService extends CommonHttpService {
102
102
  * - `version` returns information about the version of the content.
103
103
  * - `space` returns the space that the properties are in.
104
104
  */
105
- expand?: ("version" | "space")[];
105
+ expand?: ("version" | "space")[] | undefined;
106
106
  /** The starting index of the returned objects. */
107
- start?: number;
107
+ start?: number | undefined;
108
108
  /**
109
109
  * The maximum number of properties to return per page. Note, this may be
110
110
  * restricted by fixed system limits.
111
111
  */
112
- limit?: number;
113
- }): Promise<SpacePropertyArray>;
112
+ limit?: number | undefined;
113
+ }) => Promise<SpacePropertyArray>;
114
114
  /**
115
115
  * Deprecated, use [Confluence's v2
116
116
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -127,7 +127,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
127
127
  * @scopes-beta read:content-details:confluence
128
128
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-get
129
129
  */
130
- getSpaceProperty({ spaceKey, key, expand, }: {
130
+ getSpaceProperty: ({ spaceKey, key, expand, }: {
131
131
  /** The key of the space that the property is in. */
132
132
  spaceKey: string;
133
133
  /** The key of the space property. */
@@ -139,8 +139,8 @@ export declare class SpacePropertiesService extends CommonHttpService {
139
139
  * - `version` returns information about the version of the content.
140
140
  * - `space` returns the space that the properties are in.
141
141
  */
142
- expand?: ("version" | "space")[];
143
- }): Promise<SpacePropertyV1>;
142
+ expand?: ("version" | "space")[] | undefined;
143
+ }) => Promise<SpacePropertyV1>;
144
144
  /**
145
145
  * Deprecated, use [Confluence's v2
146
146
  * API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
@@ -158,13 +158,13 @@ export declare class SpacePropertiesService extends CommonHttpService {
158
158
  * @scopes-beta read:space.property:confluence, write:space.property:confluence
159
159
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-put
160
160
  */
161
- updateSpaceProperty({ spaceKey, key, spacePropertyUpdate, }: {
161
+ updateSpaceProperty: ({ spaceKey, key, spacePropertyUpdate, }: {
162
162
  /** The key of the space that the property is in. */
163
163
  spaceKey: string;
164
164
  /** The key of the property to be updated. */
165
165
  key: string;
166
166
  /** The space property being updated. */
167
167
  spacePropertyUpdate: SpacePropertyUpdate;
168
- }): Promise<SpacePropertyV1>;
168
+ }) => Promise<SpacePropertyV1>;
169
169
  static initialize(): void;
170
170
  }