@atlassian-dc-mcp/confluence 0.1.3 → 0.2.0
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 +19 -0
- package/build/confluence-client/core/ApiError.d.ts +11 -0
- package/build/confluence-client/core/ApiError.d.ts.map +1 -0
- package/build/confluence-client/core/ApiError.js +17 -0
- package/build/confluence-client/core/ApiError.js.map +1 -0
- package/build/confluence-client/core/ApiRequestOptions.d.ts +14 -0
- package/build/confluence-client/core/ApiRequestOptions.d.ts.map +1 -0
- package/build/confluence-client/core/ApiRequestOptions.js +2 -0
- package/build/confluence-client/core/ApiRequestOptions.js.map +1 -0
- package/build/confluence-client/core/ApiResult.d.ts +8 -0
- package/build/confluence-client/core/ApiResult.d.ts.map +1 -0
- package/build/confluence-client/core/ApiResult.js +2 -0
- package/build/confluence-client/core/ApiResult.js.map +1 -0
- package/build/confluence-client/core/CancelablePromise.d.ts +21 -0
- package/build/confluence-client/core/CancelablePromise.d.ts.map +1 -0
- package/build/confluence-client/core/CancelablePromise.js +100 -0
- package/build/confluence-client/core/CancelablePromise.js.map +1 -0
- package/build/confluence-client/core/OpenAPI.d.ts +17 -0
- package/build/confluence-client/core/OpenAPI.d.ts.map +1 -0
- package/build/confluence-client/core/OpenAPI.js +12 -0
- package/build/confluence-client/core/OpenAPI.js.map +1 -0
- package/build/confluence-client/core/request.d.ts +31 -0
- package/build/confluence-client/core/request.d.ts.map +1 -0
- package/build/confluence-client/core/request.js +273 -0
- package/build/confluence-client/core/request.js.map +1 -0
- package/build/confluence-client/index.d.ts +165 -0
- package/build/confluence-client/index.d.ts.map +1 -0
- package/build/confluence-client/index.js +47 -0
- package/build/confluence-client/index.js.map +1 -0
- package/build/confluence-client/models/Anonymous.d.ts +2 -0
- package/build/confluence-client/models/Anonymous.d.ts.map +1 -0
- package/build/confluence-client/models/Anonymous.js +2 -0
- package/build/confluence-client/models/Anonymous.js.map +1 -0
- package/build/confluence-client/models/ColorSchemeModel.d.ts +2 -0
- package/build/confluence-client/models/ColorSchemeModel.d.ts.map +1 -0
- package/build/confluence-client/models/ColorSchemeModel.js +2 -0
- package/build/confluence-client/models/ColorSchemeModel.js.map +1 -0
- package/build/confluence-client/models/ColorSchemeThemeBasedModel.d.ts +2 -0
- package/build/confluence-client/models/ColorSchemeThemeBasedModel.d.ts.map +1 -0
- package/build/confluence-client/models/ColorSchemeThemeBasedModel.js +2 -0
- package/build/confluence-client/models/ColorSchemeThemeBasedModel.js.map +1 -0
- package/build/confluence-client/models/Container.d.ts +2 -0
- package/build/confluence-client/models/Container.d.ts.map +1 -0
- package/build/confluence-client/models/Container.js +2 -0
- package/build/confluence-client/models/Container.js.map +1 -0
- package/build/confluence-client/models/ContainerSummary.d.ts +2 -0
- package/build/confluence-client/models/ContainerSummary.d.ts.map +1 -0
- package/build/confluence-client/models/ContainerSummary.js +2 -0
- package/build/confluence-client/models/ContainerSummary.js.map +1 -0
- package/build/confluence-client/models/Content.d.ts +2 -0
- package/build/confluence-client/models/Content.d.ts.map +1 -0
- package/build/confluence-client/models/Content.js +2 -0
- package/build/confluence-client/models/Content.js.map +1 -0
- package/build/confluence-client/models/ContentBody.d.ts +2 -0
- package/build/confluence-client/models/ContentBody.d.ts.map +1 -0
- package/build/confluence-client/models/ContentBody.js +2 -0
- package/build/confluence-client/models/ContentBody.js.map +1 -0
- package/build/confluence-client/models/ContentRestriction.d.ts +2 -0
- package/build/confluence-client/models/ContentRestriction.d.ts.map +1 -0
- package/build/confluence-client/models/ContentRestriction.js +2 -0
- package/build/confluence-client/models/ContentRestriction.js.map +1 -0
- package/build/confluence-client/models/ContentSearchResult.d.ts +2 -0
- package/build/confluence-client/models/ContentSearchResult.d.ts.map +1 -0
- package/build/confluence-client/models/ContentSearchResult.js +2 -0
- package/build/confluence-client/models/ContentSearchResult.js.map +1 -0
- package/build/confluence-client/models/ContentWatch.d.ts +2 -0
- package/build/confluence-client/models/ContentWatch.d.ts.map +1 -0
- package/build/confluence-client/models/ContentWatch.js +2 -0
- package/build/confluence-client/models/ContentWatch.js.map +1 -0
- package/build/confluence-client/models/Credentials.d.ts +4 -0
- package/build/confluence-client/models/Credentials.d.ts.map +1 -0
- package/build/confluence-client/models/Credentials.js +2 -0
- package/build/confluence-client/models/Credentials.js.map +1 -0
- package/build/confluence-client/models/Cursor.d.ts +2 -0
- package/build/confluence-client/models/Cursor.d.ts.map +1 -0
- package/build/confluence-client/models/Cursor.js +2 -0
- package/build/confluence-client/models/Cursor.js.map +1 -0
- package/build/confluence-client/models/DetailedInvocation.d.ts +2 -0
- package/build/confluence-client/models/DetailedInvocation.d.ts.map +1 -0
- package/build/confluence-client/models/DetailedInvocation.js +2 -0
- package/build/confluence-client/models/DetailedInvocation.js.map +1 -0
- package/build/confluence-client/models/DetailedInvocationRequest.d.ts +2 -0
- package/build/confluence-client/models/DetailedInvocationRequest.d.ts.map +1 -0
- package/build/confluence-client/models/DetailedInvocationRequest.js +2 -0
- package/build/confluence-client/models/DetailedInvocationRequest.js.map +1 -0
- package/build/confluence-client/models/DetailedInvocationResult.d.ts +2 -0
- package/build/confluence-client/models/DetailedInvocationResult.d.ts.map +1 -0
- package/build/confluence-client/models/DetailedInvocationResult.js +2 -0
- package/build/confluence-client/models/DetailedInvocationResult.js.map +1 -0
- package/build/confluence-client/models/ExampleMultipartFormData.d.ts +7 -0
- package/build/confluence-client/models/ExampleMultipartFormData.d.ts.map +1 -0
- package/build/confluence-client/models/ExampleMultipartFormData.js +2 -0
- package/build/confluence-client/models/ExampleMultipartFormData.js.map +1 -0
- package/build/confluence-client/models/Expandable.d.ts +2 -0
- package/build/confluence-client/models/Expandable.d.ts.map +1 -0
- package/build/confluence-client/models/Expandable.js +2 -0
- package/build/confluence-client/models/Expandable.js.map +1 -0
- package/build/confluence-client/models/FileInfo.d.ts +13 -0
- package/build/confluence-client/models/FileInfo.d.ts.map +1 -0
- package/build/confluence-client/models/FileInfo.js +9 -0
- package/build/confluence-client/models/FileInfo.js.map +1 -0
- package/build/confluence-client/models/FilePart.d.ts +9 -0
- package/build/confluence-client/models/FilePart.d.ts.map +1 -0
- package/build/confluence-client/models/FilePart.js +2 -0
- package/build/confluence-client/models/FilePart.js.map +1 -0
- package/build/confluence-client/models/FormattedBody.d.ts +2 -0
- package/build/confluence-client/models/FormattedBody.d.ts.map +1 -0
- package/build/confluence-client/models/FormattedBody.js +2 -0
- package/build/confluence-client/models/FormattedBody.js.map +1 -0
- package/build/confluence-client/models/GlobalPermission.d.ts +7 -0
- package/build/confluence-client/models/GlobalPermission.d.ts.map +1 -0
- package/build/confluence-client/models/GlobalPermission.js +2 -0
- package/build/confluence-client/models/GlobalPermission.js.map +1 -0
- package/build/confluence-client/models/Group.d.ts +2 -0
- package/build/confluence-client/models/Group.d.ts.map +1 -0
- package/build/confluence-client/models/Group.js +2 -0
- package/build/confluence-client/models/Group.js.map +1 -0
- package/build/confluence-client/models/History.d.ts +2 -0
- package/build/confluence-client/models/History.d.ts.map +1 -0
- package/build/confluence-client/models/History.js +2 -0
- package/build/confluence-client/models/History.js.map +1 -0
- package/build/confluence-client/models/Icon.d.ts +2 -0
- package/build/confluence-client/models/Icon.d.ts.map +1 -0
- package/build/confluence-client/models/Icon.js +2 -0
- package/build/confluence-client/models/Icon.js.map +1 -0
- package/build/confluence-client/models/InstanceMetrics.d.ts +2 -0
- package/build/confluence-client/models/InstanceMetrics.d.ts.map +1 -0
- package/build/confluence-client/models/InstanceMetrics.js +2 -0
- package/build/confluence-client/models/InstanceMetrics.js.map +1 -0
- package/build/confluence-client/models/JobDetails.d.ts +2 -0
- package/build/confluence-client/models/JobDetails.d.ts.map +1 -0
- package/build/confluence-client/models/JobDetails.js +2 -0
- package/build/confluence-client/models/JobDetails.js.map +1 -0
- package/build/confluence-client/models/JobStatistics.d.ts +2 -0
- package/build/confluence-client/models/JobStatistics.d.ts.map +1 -0
- package/build/confluence-client/models/JobStatistics.js +2 -0
- package/build/confluence-client/models/JobStatistics.js.map +1 -0
- package/build/confluence-client/models/JsonContentProperty.d.ts +2 -0
- package/build/confluence-client/models/JsonContentProperty.d.ts.map +1 -0
- package/build/confluence-client/models/JsonContentProperty.js +2 -0
- package/build/confluence-client/models/JsonContentProperty.js.map +1 -0
- package/build/confluence-client/models/JsonSpaceProperty.d.ts +2 -0
- package/build/confluence-client/models/JsonSpaceProperty.d.ts.map +1 -0
- package/build/confluence-client/models/JsonSpaceProperty.js +2 -0
- package/build/confluence-client/models/JsonSpaceProperty.js.map +1 -0
- package/build/confluence-client/models/JsonString.d.ts +2 -0
- package/build/confluence-client/models/JsonString.d.ts.map +1 -0
- package/build/confluence-client/models/JsonString.js +2 -0
- package/build/confluence-client/models/JsonString.js.map +1 -0
- package/build/confluence-client/models/KnownUser.d.ts +2 -0
- package/build/confluence-client/models/KnownUser.d.ts.map +1 -0
- package/build/confluence-client/models/KnownUser.js +2 -0
- package/build/confluence-client/models/KnownUser.js.map +1 -0
- package/build/confluence-client/models/Label.d.ts +2 -0
- package/build/confluence-client/models/Label.d.ts.map +1 -0
- package/build/confluence-client/models/Label.js +2 -0
- package/build/confluence-client/models/Label.js.map +1 -0
- package/build/confluence-client/models/Link.d.ts +2 -0
- package/build/confluence-client/models/Link.d.ts.map +1 -0
- package/build/confluence-client/models/Link.js +2 -0
- package/build/confluence-client/models/Link.js.map +1 -0
- package/build/confluence-client/models/Links.d.ts +2 -0
- package/build/confluence-client/models/Links.d.ts.map +1 -0
- package/build/confluence-client/models/Links.js +2 -0
- package/build/confluence-client/models/Links.js.map +1 -0
- package/build/confluence-client/models/LongTaskStatus.d.ts +2 -0
- package/build/confluence-client/models/LongTaskStatus.d.ts.map +1 -0
- package/build/confluence-client/models/LongTaskStatus.js +2 -0
- package/build/confluence-client/models/LongTaskStatus.js.map +1 -0
- package/build/confluence-client/models/LongTaskSubmission.d.ts +2 -0
- package/build/confluence-client/models/LongTaskSubmission.d.ts.map +1 -0
- package/build/confluence-client/models/LongTaskSubmission.js +2 -0
- package/build/confluence-client/models/LongTaskSubmission.js.map +1 -0
- package/build/confluence-client/models/MacroInstance.d.ts +2 -0
- package/build/confluence-client/models/MacroInstance.d.ts.map +1 -0
- package/build/confluence-client/models/MacroInstance.js +2 -0
- package/build/confluence-client/models/MacroInstance.js.map +1 -0
- package/build/confluence-client/models/MacroParameterInstance.d.ts +2 -0
- package/build/confluence-client/models/MacroParameterInstance.d.ts.map +1 -0
- package/build/confluence-client/models/MacroParameterInstance.js +2 -0
- package/build/confluence-client/models/MacroParameterInstance.js.map +1 -0
- package/build/confluence-client/models/Message.d.ts +2 -0
- package/build/confluence-client/models/Message.d.ts.map +1 -0
- package/build/confluence-client/models/Message.js +2 -0
- package/build/confluence-client/models/Message.js.map +1 -0
- package/build/confluence-client/models/MockAttachmentRequest.d.ts +19 -0
- package/build/confluence-client/models/MockAttachmentRequest.d.ts.map +1 -0
- package/build/confluence-client/models/MockAttachmentRequest.js +2 -0
- package/build/confluence-client/models/MockAttachmentRequest.js.map +1 -0
- package/build/confluence-client/models/MockRestrictionsResponse.d.ts +2 -0
- package/build/confluence-client/models/MockRestrictionsResponse.d.ts.map +1 -0
- package/build/confluence-client/models/MockRestrictionsResponse.js +2 -0
- package/build/confluence-client/models/MockRestrictionsResponse.js.map +1 -0
- package/build/confluence-client/models/NodeStatus.d.ts +2 -0
- package/build/confluence-client/models/NodeStatus.d.ts.map +1 -0
- package/build/confluence-client/models/NodeStatus.js +2 -0
- package/build/confluence-client/models/NodeStatus.js.map +1 -0
- package/build/confluence-client/models/OperationCheckResult.d.ts +2 -0
- package/build/confluence-client/models/OperationCheckResult.d.ts.map +1 -0
- package/build/confluence-client/models/OperationCheckResult.js +2 -0
- package/build/confluence-client/models/OperationCheckResult.js.map +1 -0
- package/build/confluence-client/models/OperationDescription.d.ts +5 -0
- package/build/confluence-client/models/OperationDescription.d.ts.map +1 -0
- package/build/confluence-client/models/OperationDescription.js +2 -0
- package/build/confluence-client/models/OperationDescription.js.map +1 -0
- package/build/confluence-client/models/OperationRestriction.d.ts +2 -0
- package/build/confluence-client/models/OperationRestriction.d.ts.map +1 -0
- package/build/confluence-client/models/OperationRestriction.js +2 -0
- package/build/confluence-client/models/OperationRestriction.js.map +1 -0
- package/build/confluence-client/models/PageRequest.d.ts +2 -0
- package/build/confluence-client/models/PageRequest.d.ts.map +1 -0
- package/build/confluence-client/models/PageRequest.js +2 -0
- package/build/confluence-client/models/PageRequest.js.map +1 -0
- package/build/confluence-client/models/PageResponseContent.d.ts +2 -0
- package/build/confluence-client/models/PageResponseContent.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseContent.js +2 -0
- package/build/confluence-client/models/PageResponseContent.js.map +1 -0
- package/build/confluence-client/models/PageResponseContentRestriction.d.ts +11 -0
- package/build/confluence-client/models/PageResponseContentRestriction.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseContentRestriction.js +2 -0
- package/build/confluence-client/models/PageResponseContentRestriction.js.map +1 -0
- package/build/confluence-client/models/PageResponseGroup.d.ts +11 -0
- package/build/confluence-client/models/PageResponseGroup.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseGroup.js +2 -0
- package/build/confluence-client/models/PageResponseGroup.js.map +1 -0
- package/build/confluence-client/models/PageResponseJsonContentProperty.d.ts +11 -0
- package/build/confluence-client/models/PageResponseJsonContentProperty.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseJsonContentProperty.js +2 -0
- package/build/confluence-client/models/PageResponseJsonContentProperty.js.map +1 -0
- package/build/confluence-client/models/PageResponseJsonSpaceProperty.d.ts +11 -0
- package/build/confluence-client/models/PageResponseJsonSpaceProperty.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseJsonSpaceProperty.js +2 -0
- package/build/confluence-client/models/PageResponseJsonSpaceProperty.js.map +1 -0
- package/build/confluence-client/models/PageResponseLabel.d.ts +11 -0
- package/build/confluence-client/models/PageResponseLabel.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseLabel.js +2 -0
- package/build/confluence-client/models/PageResponseLabel.js.map +1 -0
- package/build/confluence-client/models/PageResponseLongTaskStatus.d.ts +11 -0
- package/build/confluence-client/models/PageResponseLongTaskStatus.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseLongTaskStatus.js +2 -0
- package/build/confluence-client/models/PageResponseLongTaskStatus.js.map +1 -0
- package/build/confluence-client/models/PageResponseNodeStatus.d.ts +11 -0
- package/build/confluence-client/models/PageResponseNodeStatus.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseNodeStatus.js +2 -0
- package/build/confluence-client/models/PageResponseNodeStatus.js.map +1 -0
- package/build/confluence-client/models/PageResponseObject.d.ts +2 -0
- package/build/confluence-client/models/PageResponseObject.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseObject.js +2 -0
- package/build/confluence-client/models/PageResponseObject.js.map +1 -0
- package/build/confluence-client/models/PageResponsePerson.d.ts +11 -0
- package/build/confluence-client/models/PageResponsePerson.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponsePerson.js +2 -0
- package/build/confluence-client/models/PageResponsePerson.js.map +1 -0
- package/build/confluence-client/models/PageResponseSpace.d.ts +11 -0
- package/build/confluence-client/models/PageResponseSpace.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseSpace.js +2 -0
- package/build/confluence-client/models/PageResponseSpace.js.map +1 -0
- package/build/confluence-client/models/PageResponseSubject.d.ts +2 -0
- package/build/confluence-client/models/PageResponseSubject.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseSubject.js +2 -0
- package/build/confluence-client/models/PageResponseSubject.js.map +1 -0
- package/build/confluence-client/models/PageResponseUser.d.ts +11 -0
- package/build/confluence-client/models/PageResponseUser.d.ts.map +1 -0
- package/build/confluence-client/models/PageResponseUser.js +2 -0
- package/build/confluence-client/models/PageResponseUser.js.map +1 -0
- package/build/confluence-client/models/PasswordChangeDetails.d.ts +5 -0
- package/build/confluence-client/models/PasswordChangeDetails.d.ts.map +1 -0
- package/build/confluence-client/models/PasswordChangeDetails.js +2 -0
- package/build/confluence-client/models/PasswordChangeDetails.js.map +1 -0
- package/build/confluence-client/models/Person.d.ts +2 -0
- package/build/confluence-client/models/Person.d.ts.map +1 -0
- package/build/confluence-client/models/Person.js +2 -0
- package/build/confluence-client/models/Person.js.map +1 -0
- package/build/confluence-client/models/PersonalSpaceDetailsForCreation.d.ts +6 -0
- package/build/confluence-client/models/PersonalSpaceDetailsForCreation.d.ts.map +1 -0
- package/build/confluence-client/models/PersonalSpaceDetailsForCreation.js +2 -0
- package/build/confluence-client/models/PersonalSpaceDetailsForCreation.js.map +1 -0
- package/build/confluence-client/models/ReferenceContainer.d.ts +2 -0
- package/build/confluence-client/models/ReferenceContainer.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceContainer.js +2 -0
- package/build/confluence-client/models/ReferenceContainer.js.map +1 -0
- package/build/confluence-client/models/ReferenceContainerSummary.d.ts +2 -0
- package/build/confluence-client/models/ReferenceContainerSummary.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceContainerSummary.js +2 -0
- package/build/confluence-client/models/ReferenceContainerSummary.js.map +1 -0
- package/build/confluence-client/models/ReferenceContent.d.ts +2 -0
- package/build/confluence-client/models/ReferenceContent.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceContent.js +2 -0
- package/build/confluence-client/models/ReferenceContent.js.map +1 -0
- package/build/confluence-client/models/ReferenceContributors.d.ts +2 -0
- package/build/confluence-client/models/ReferenceContributors.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceContributors.js +2 -0
- package/build/confluence-client/models/ReferenceContributors.js.map +1 -0
- package/build/confluence-client/models/ReferenceHistory.d.ts +2 -0
- package/build/confluence-client/models/ReferenceHistory.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceHistory.js +2 -0
- package/build/confluence-client/models/ReferenceHistory.js.map +1 -0
- package/build/confluence-client/models/ReferenceIcon.d.ts +2 -0
- package/build/confluence-client/models/ReferenceIcon.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceIcon.js +2 -0
- package/build/confluence-client/models/ReferenceIcon.js.map +1 -0
- package/build/confluence-client/models/ReferenceObject.d.ts +2 -0
- package/build/confluence-client/models/ReferenceObject.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceObject.js +2 -0
- package/build/confluence-client/models/ReferenceObject.js.map +1 -0
- package/build/confluence-client/models/ReferenceRelevantViewRestrictions.d.ts +2 -0
- package/build/confluence-client/models/ReferenceRelevantViewRestrictions.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceRelevantViewRestrictions.js +2 -0
- package/build/confluence-client/models/ReferenceRelevantViewRestrictions.js.map +1 -0
- package/build/confluence-client/models/ReferenceSpace.d.ts +2 -0
- package/build/confluence-client/models/ReferenceSpace.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceSpace.js +2 -0
- package/build/confluence-client/models/ReferenceSpace.js.map +1 -0
- package/build/confluence-client/models/ReferenceSpacePermissionContainer.d.ts +2 -0
- package/build/confluence-client/models/ReferenceSpacePermissionContainer.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceSpacePermissionContainer.js +2 -0
- package/build/confluence-client/models/ReferenceSpacePermissionContainer.js.map +1 -0
- package/build/confluence-client/models/ReferenceSpaceRetentionPolicy.d.ts +2 -0
- package/build/confluence-client/models/ReferenceSpaceRetentionPolicy.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceSpaceRetentionPolicy.js +2 -0
- package/build/confluence-client/models/ReferenceSpaceRetentionPolicy.js.map +1 -0
- package/build/confluence-client/models/ReferenceString.d.ts +2 -0
- package/build/confluence-client/models/ReferenceString.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceString.js +2 -0
- package/build/confluence-client/models/ReferenceString.js.map +1 -0
- package/build/confluence-client/models/ReferenceUser.d.ts +2 -0
- package/build/confluence-client/models/ReferenceUser.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceUser.js +2 -0
- package/build/confluence-client/models/ReferenceUser.js.map +1 -0
- package/build/confluence-client/models/ReferenceUserStatus.d.ts +2 -0
- package/build/confluence-client/models/ReferenceUserStatus.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceUserStatus.js +2 -0
- package/build/confluence-client/models/ReferenceUserStatus.js.map +1 -0
- package/build/confluence-client/models/ReferenceVersion.d.ts +2 -0
- package/build/confluence-client/models/ReferenceVersion.d.ts.map +1 -0
- package/build/confluence-client/models/ReferenceVersion.js +2 -0
- package/build/confluence-client/models/ReferenceVersion.js.map +1 -0
- package/build/confluence-client/models/RelevantViewRestrictions.d.ts +5 -0
- package/build/confluence-client/models/RelevantViewRestrictions.d.ts.map +1 -0
- package/build/confluence-client/models/RelevantViewRestrictions.js +2 -0
- package/build/confluence-client/models/RelevantViewRestrictions.js.map +1 -0
- package/build/confluence-client/models/ResourceType.d.ts +2 -0
- package/build/confluence-client/models/ResourceType.d.ts.map +1 -0
- package/build/confluence-client/models/ResourceType.js +2 -0
- package/build/confluence-client/models/ResourceType.js.map +1 -0
- package/build/confluence-client/models/RestError.d.ts +2 -0
- package/build/confluence-client/models/RestError.d.ts.map +1 -0
- package/build/confluence-client/models/RestError.js +2 -0
- package/build/confluence-client/models/RestError.js.map +1 -0
- package/build/confluence-client/models/RestInvocationHistory.d.ts +2 -0
- package/build/confluence-client/models/RestInvocationHistory.d.ts.map +1 -0
- package/build/confluence-client/models/RestInvocationHistory.js +2 -0
- package/build/confluence-client/models/RestInvocationHistory.js.map +1 -0
- package/build/confluence-client/models/RestListContent.d.ts +3 -0
- package/build/confluence-client/models/RestListContent.d.ts.map +1 -0
- package/build/confluence-client/models/RestListContent.js +2 -0
- package/build/confluence-client/models/RestListContent.js.map +1 -0
- package/build/confluence-client/models/RestListJsonContentProperty.d.ts +3 -0
- package/build/confluence-client/models/RestListJsonContentProperty.d.ts.map +1 -0
- package/build/confluence-client/models/RestListJsonContentProperty.js +2 -0
- package/build/confluence-client/models/RestListJsonContentProperty.js.map +1 -0
- package/build/confluence-client/models/RestListLabel.d.ts +3 -0
- package/build/confluence-client/models/RestListLabel.d.ts.map +1 -0
- package/build/confluence-client/models/RestListLabel.js +2 -0
- package/build/confluence-client/models/RestListLabel.js.map +1 -0
- package/build/confluence-client/models/RestListLongTaskStatus.d.ts +3 -0
- package/build/confluence-client/models/RestListLongTaskStatus.d.ts.map +1 -0
- package/build/confluence-client/models/RestListLongTaskStatus.js +2 -0
- package/build/confluence-client/models/RestListLongTaskStatus.js.map +1 -0
- package/build/confluence-client/models/RestListNodeStatus.d.ts +3 -0
- package/build/confluence-client/models/RestListNodeStatus.d.ts.map +1 -0
- package/build/confluence-client/models/RestListNodeStatus.js +2 -0
- package/build/confluence-client/models/RestListNodeStatus.js.map +1 -0
- package/build/confluence-client/models/RestListUser.d.ts +3 -0
- package/build/confluence-client/models/RestListUser.d.ts.map +1 -0
- package/build/confluence-client/models/RestListUser.js +2 -0
- package/build/confluence-client/models/RestListUser.js.map +1 -0
- package/build/confluence-client/models/RestWebhook.d.ts +2 -0
- package/build/confluence-client/models/RestWebhook.d.ts.map +1 -0
- package/build/confluence-client/models/RestWebhook.js +2 -0
- package/build/confluence-client/models/RestWebhook.js.map +1 -0
- package/build/confluence-client/models/RestWebhookCredentials.d.ts +2 -0
- package/build/confluence-client/models/RestWebhookCredentials.d.ts.map +1 -0
- package/build/confluence-client/models/RestWebhookCredentials.js +2 -0
- package/build/confluence-client/models/RestWebhookCredentials.js.map +1 -0
- package/build/confluence-client/models/Restrictions.d.ts +2 -0
- package/build/confluence-client/models/Restrictions.d.ts.map +1 -0
- package/build/confluence-client/models/Restrictions.js +2 -0
- package/build/confluence-client/models/Restrictions.js.map +1 -0
- package/build/confluence-client/models/SearchPageResponseSearchResult.d.ts +16 -0
- package/build/confluence-client/models/SearchPageResponseSearchResult.d.ts.map +1 -0
- package/build/confluence-client/models/SearchPageResponseSearchResult.js +2 -0
- package/build/confluence-client/models/SearchPageResponseSearchResult.js.map +1 -0
- package/build/confluence-client/models/SearchResult.d.ts +2 -0
- package/build/confluence-client/models/SearchResult.d.ts.map +1 -0
- package/build/confluence-client/models/SearchResult.js +2 -0
- package/build/confluence-client/models/SearchResult.js.map +1 -0
- package/build/confluence-client/models/ServerInformation.d.ts +2 -0
- package/build/confluence-client/models/ServerInformation.d.ts.map +1 -0
- package/build/confluence-client/models/ServerInformation.js +2 -0
- package/build/confluence-client/models/ServerInformation.js.map +1 -0
- package/build/confluence-client/models/SiteBackupJobDetails.d.ts +2 -0
- package/build/confluence-client/models/SiteBackupJobDetails.d.ts.map +1 -0
- package/build/confluence-client/models/SiteBackupJobDetails.js +2 -0
- package/build/confluence-client/models/SiteBackupJobDetails.js.map +1 -0
- package/build/confluence-client/models/SiteBackupSettings.d.ts +2 -0
- package/build/confluence-client/models/SiteBackupSettings.d.ts.map +1 -0
- package/build/confluence-client/models/SiteBackupSettings.js +2 -0
- package/build/confluence-client/models/SiteBackupSettings.js.map +1 -0
- package/build/confluence-client/models/SiteRestoreJobDetails.d.ts +2 -0
- package/build/confluence-client/models/SiteRestoreJobDetails.d.ts.map +1 -0
- package/build/confluence-client/models/SiteRestoreJobDetails.js +2 -0
- package/build/confluence-client/models/SiteRestoreJobDetails.js.map +1 -0
- package/build/confluence-client/models/SiteRestoreSettings.d.ts +2 -0
- package/build/confluence-client/models/SiteRestoreSettings.d.ts.map +1 -0
- package/build/confluence-client/models/SiteRestoreSettings.js +2 -0
- package/build/confluence-client/models/SiteRestoreSettings.js.map +1 -0
- package/build/confluence-client/models/Space.d.ts +2 -0
- package/build/confluence-client/models/Space.d.ts.map +1 -0
- package/build/confluence-client/models/Space.js +2 -0
- package/build/confluence-client/models/Space.js.map +1 -0
- package/build/confluence-client/models/SpaceBackupJobDetails.d.ts +2 -0
- package/build/confluence-client/models/SpaceBackupJobDetails.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceBackupJobDetails.js +2 -0
- package/build/confluence-client/models/SpaceBackupJobDetails.js.map +1 -0
- package/build/confluence-client/models/SpaceBackupSettings.d.ts +2 -0
- package/build/confluence-client/models/SpaceBackupSettings.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceBackupSettings.js +2 -0
- package/build/confluence-client/models/SpaceBackupSettings.js.map +1 -0
- package/build/confluence-client/models/SpaceColorSchemeTypeModel.d.ts +2 -0
- package/build/confluence-client/models/SpaceColorSchemeTypeModel.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceColorSchemeTypeModel.js +2 -0
- package/build/confluence-client/models/SpaceColorSchemeTypeModel.js.map +1 -0
- package/build/confluence-client/models/SpacePermission.d.ts +9 -0
- package/build/confluence-client/models/SpacePermission.d.ts.map +1 -0
- package/build/confluence-client/models/SpacePermission.js +2 -0
- package/build/confluence-client/models/SpacePermission.js.map +1 -0
- package/build/confluence-client/models/SpacePermissionsForSubject.d.ts +7 -0
- package/build/confluence-client/models/SpacePermissionsForSubject.d.ts.map +1 -0
- package/build/confluence-client/models/SpacePermissionsForSubject.js +2 -0
- package/build/confluence-client/models/SpacePermissionsForSubject.js.map +1 -0
- package/build/confluence-client/models/SpaceRestoreJobDetails.d.ts +2 -0
- package/build/confluence-client/models/SpaceRestoreJobDetails.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceRestoreJobDetails.js +2 -0
- package/build/confluence-client/models/SpaceRestoreJobDetails.js.map +1 -0
- package/build/confluence-client/models/SpaceRestoreSettings.d.ts +2 -0
- package/build/confluence-client/models/SpaceRestoreSettings.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceRestoreSettings.js +2 -0
- package/build/confluence-client/models/SpaceRestoreSettings.js.map +1 -0
- package/build/confluence-client/models/SpaceSearchResult.d.ts +2 -0
- package/build/confluence-client/models/SpaceSearchResult.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceSearchResult.js +2 -0
- package/build/confluence-client/models/SpaceSearchResult.js.map +1 -0
- package/build/confluence-client/models/SpaceWatch.d.ts +2 -0
- package/build/confluence-client/models/SpaceWatch.d.ts.map +1 -0
- package/build/confluence-client/models/SpaceWatch.js +2 -0
- package/build/confluence-client/models/SpaceWatch.js.map +1 -0
- package/build/confluence-client/models/Subject.d.ts +2 -0
- package/build/confluence-client/models/Subject.d.ts.map +1 -0
- package/build/confluence-client/models/Subject.js +2 -0
- package/build/confluence-client/models/Subject.js.map +1 -0
- package/build/confluence-client/models/SuperBatchWebResources.d.ts +2 -0
- package/build/confluence-client/models/SuperBatchWebResources.d.ts.map +1 -0
- package/build/confluence-client/models/SuperBatchWebResources.js +2 -0
- package/build/confluence-client/models/SuperBatchWebResources.js.map +1 -0
- package/build/confluence-client/models/UnknownUser.d.ts +2 -0
- package/build/confluence-client/models/UnknownUser.d.ts.map +1 -0
- package/build/confluence-client/models/UnknownUser.js +2 -0
- package/build/confluence-client/models/UnknownUser.js.map +1 -0
- package/build/confluence-client/models/User.d.ts +2 -0
- package/build/confluence-client/models/User.d.ts.map +1 -0
- package/build/confluence-client/models/User.js +2 -0
- package/build/confluence-client/models/User.js.map +1 -0
- package/build/confluence-client/models/UserDetailsForCreation.d.ts +8 -0
- package/build/confluence-client/models/UserDetailsForCreation.d.ts.map +1 -0
- package/build/confluence-client/models/UserDetailsForCreation.js +2 -0
- package/build/confluence-client/models/UserDetailsForCreation.js.map +1 -0
- package/build/confluence-client/models/UserDetailsForUpdate.d.ts +6 -0
- package/build/confluence-client/models/UserDetailsForUpdate.d.ts.map +1 -0
- package/build/confluence-client/models/UserDetailsForUpdate.js +2 -0
- package/build/confluence-client/models/UserDetailsForUpdate.js.map +1 -0
- package/build/confluence-client/models/UserKey.d.ts +2 -0
- package/build/confluence-client/models/UserKey.d.ts.map +1 -0
- package/build/confluence-client/models/UserKey.js +2 -0
- package/build/confluence-client/models/UserKey.js.map +1 -0
- package/build/confluence-client/models/UserSearchResult.d.ts +2 -0
- package/build/confluence-client/models/UserSearchResult.d.ts.map +1 -0
- package/build/confluence-client/models/UserSearchResult.js +2 -0
- package/build/confluence-client/models/UserSearchResult.js.map +1 -0
- package/build/confluence-client/models/ValidationResult.d.ts +2 -0
- package/build/confluence-client/models/ValidationResult.d.ts.map +1 -0
- package/build/confluence-client/models/ValidationResult.js +2 -0
- package/build/confluence-client/models/ValidationResult.js.map +1 -0
- package/build/confluence-client/models/Version.d.ts +2 -0
- package/build/confluence-client/models/Version.d.ts.map +1 -0
- package/build/confluence-client/models/Version.js +2 -0
- package/build/confluence-client/models/Version.js.map +1 -0
- package/build/confluence-client/models/WebResourceDependencies.d.ts +2 -0
- package/build/confluence-client/models/WebResourceDependencies.d.ts.map +1 -0
- package/build/confluence-client/models/WebResourceDependencies.js +2 -0
- package/build/confluence-client/models/WebResourceDependencies.js.map +1 -0
- package/build/confluence-client/models/Webhook.d.ts +2 -0
- package/build/confluence-client/models/Webhook.d.ts.map +1 -0
- package/build/confluence-client/models/Webhook.js +2 -0
- package/build/confluence-client/models/Webhook.js.map +1 -0
- package/build/confluence-client/models/WebhookCredentials.d.ts +2 -0
- package/build/confluence-client/models/WebhookCredentials.d.ts.map +1 -0
- package/build/confluence-client/models/WebhookCredentials.js +2 -0
- package/build/confluence-client/models/WebhookCredentials.js.map +1 -0
- package/build/confluence-client/models/WebhookEvent.d.ts +2 -0
- package/build/confluence-client/models/WebhookEvent.d.ts.map +1 -0
- package/build/confluence-client/models/WebhookEvent.js +2 -0
- package/build/confluence-client/models/WebhookEvent.js.map +1 -0
- package/build/confluence-client/models/WebhookScope.d.ts +2 -0
- package/build/confluence-client/models/WebhookScope.d.ts.map +1 -0
- package/build/confluence-client/models/WebhookScope.js +2 -0
- package/build/confluence-client/models/WebhookScope.js.map +1 -0
- package/build/confluence-client/services/AccessModeService.d.ts +11 -0
- package/build/confluence-client/services/AccessModeService.d.ts.map +1 -0
- package/build/confluence-client/services/AccessModeService.js +17 -0
- package/build/confluence-client/services/AccessModeService.js.map +1 -0
- package/build/confluence-client/services/AdminGroupService.d.ts +21 -0
- package/build/confluence-client/services/AdminGroupService.d.ts.map +1 -0
- package/build/confluence-client/services/AdminGroupService.js +46 -0
- package/build/confluence-client/services/AdminGroupService.js.map +1 -0
- package/build/confluence-client/services/AdminSpaceService.d.ts +19 -0
- package/build/confluence-client/services/AdminSpaceService.d.ts.map +1 -0
- package/build/confluence-client/services/AdminSpaceService.js +34 -0
- package/build/confluence-client/services/AdminSpaceService.js.map +1 -0
- package/build/confluence-client/services/AdminUserService.d.ts +102 -0
- package/build/confluence-client/services/AdminUserService.d.ts.map +1 -0
- package/build/confluence-client/services/AdminUserService.js +181 -0
- package/build/confluence-client/services/AdminUserService.js.map +1 -0
- package/build/confluence-client/services/AdminUsersService.d.ts +43 -0
- package/build/confluence-client/services/AdminUsersService.d.ts.map +1 -0
- package/build/confluence-client/services/AdminUsersService.js +43 -0
- package/build/confluence-client/services/AdminUsersService.js.map +1 -0
- package/build/confluence-client/services/AttachmentsService.d.ts +134 -0
- package/build/confluence-client/services/AttachmentsService.d.ts.map +1 -0
- package/build/confluence-client/services/AttachmentsService.js +233 -0
- package/build/confluence-client/services/AttachmentsService.js.map +1 -0
- package/build/confluence-client/services/BackupAndRestoreService.d.ts +146 -0
- package/build/confluence-client/services/BackupAndRestoreService.d.ts.map +1 -0
- package/build/confluence-client/services/BackupAndRestoreService.js +274 -0
- package/build/confluence-client/services/BackupAndRestoreService.js.map +1 -0
- package/build/confluence-client/services/CategoryService.d.ts +29 -0
- package/build/confluence-client/services/CategoryService.d.ts.map +1 -0
- package/build/confluence-client/services/CategoryService.js +58 -0
- package/build/confluence-client/services/CategoryService.js.map +1 -0
- package/build/confluence-client/services/ChildContentService.d.ts +92 -0
- package/build/confluence-client/services/ChildContentService.d.ts.map +1 -0
- package/build/confluence-client/services/ChildContentService.js +108 -0
- package/build/confluence-client/services/ChildContentService.js.map +1 -0
- package/build/confluence-client/services/ClusterInformationService.d.ts +30 -0
- package/build/confluence-client/services/ClusterInformationService.d.ts.map +1 -0
- package/build/confluence-client/services/ClusterInformationService.js +30 -0
- package/build/confluence-client/services/ClusterInformationService.js.map +1 -0
- package/build/confluence-client/services/ContentBlueprintService.d.ts +29 -0
- package/build/confluence-client/services/ContentBlueprintService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentBlueprintService.js +57 -0
- package/build/confluence-client/services/ContentBlueprintService.js.map +1 -0
- package/build/confluence-client/services/ContentBodyService.d.ts +25 -0
- package/build/confluence-client/services/ContentBodyService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentBodyService.js +38 -0
- package/build/confluence-client/services/ContentBodyService.js.map +1 -0
- package/build/confluence-client/services/ContentDescendantService.d.ts +72 -0
- package/build/confluence-client/services/ContentDescendantService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentDescendantService.js +77 -0
- package/build/confluence-client/services/ContentDescendantService.js.map +1 -0
- package/build/confluence-client/services/ContentLabelsService.d.ts +72 -0
- package/build/confluence-client/services/ContentLabelsService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentLabelsService.js +104 -0
- package/build/confluence-client/services/ContentLabelsService.js.map +1 -0
- package/build/confluence-client/services/ContentPropertyService.d.ts +81 -0
- package/build/confluence-client/services/ContentPropertyService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentPropertyService.js +160 -0
- package/build/confluence-client/services/ContentPropertyService.js.map +1 -0
- package/build/confluence-client/services/ContentResourceService.d.ts +314 -0
- package/build/confluence-client/services/ContentResourceService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentResourceService.js +426 -0
- package/build/confluence-client/services/ContentResourceService.js.map +1 -0
- package/build/confluence-client/services/ContentRestrictionsService.d.ts +90 -0
- package/build/confluence-client/services/ContentRestrictionsService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentRestrictionsService.js +134 -0
- package/build/confluence-client/services/ContentRestrictionsService.js.map +1 -0
- package/build/confluence-client/services/ContentVersionService.d.ts +13 -0
- package/build/confluence-client/services/ContentVersionService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentVersionService.js +28 -0
- package/build/confluence-client/services/ContentVersionService.js.map +1 -0
- package/build/confluence-client/services/ContentWatchersService.d.ts +28 -0
- package/build/confluence-client/services/ContentWatchersService.d.ts.map +1 -0
- package/build/confluence-client/services/ContentWatchersService.js +33 -0
- package/build/confluence-client/services/ContentWatchersService.js.map +1 -0
- package/build/confluence-client/services/DefaultService.d.ts +10 -0
- package/build/confluence-client/services/DefaultService.d.ts.map +1 -0
- package/build/confluence-client/services/DefaultService.js +16 -0
- package/build/confluence-client/services/DefaultService.js.map +1 -0
- package/build/confluence-client/services/GlobalColorSchemeService.d.ts +42 -0
- package/build/confluence-client/services/GlobalColorSchemeService.d.ts.map +1 -0
- package/build/confluence-client/services/GlobalColorSchemeService.js +71 -0
- package/build/confluence-client/services/GlobalColorSchemeService.js.map +1 -0
- package/build/confluence-client/services/GlobalPermissionsService.d.ts +281 -0
- package/build/confluence-client/services/GlobalPermissionsService.d.ts.map +1 -0
- package/build/confluence-client/services/GlobalPermissionsService.js +457 -0
- package/build/confluence-client/services/GlobalPermissionsService.js.map +1 -0
- package/build/confluence-client/services/GroupService.d.ts +86 -0
- package/build/confluence-client/services/GroupService.d.ts.map +1 -0
- package/build/confluence-client/services/GroupService.js +105 -0
- package/build/confluence-client/services/GroupService.js.map +1 -0
- package/build/confluence-client/services/InstanceMetricsService.d.ts +12 -0
- package/build/confluence-client/services/InstanceMetricsService.d.ts.map +1 -0
- package/build/confluence-client/services/InstanceMetricsService.js +21 -0
- package/build/confluence-client/services/InstanceMetricsService.js.map +1 -0
- package/build/confluence-client/services/LabelService.d.ts +119 -0
- package/build/confluence-client/services/LabelService.d.ts.map +1 -0
- package/build/confluence-client/services/LabelService.js +124 -0
- package/build/confluence-client/services/LabelService.js.map +1 -0
- package/build/confluence-client/services/LongTaskService.d.ts +37 -0
- package/build/confluence-client/services/LongTaskService.d.ts.map +1 -0
- package/build/confluence-client/services/LongTaskService.js +48 -0
- package/build/confluence-client/services/LongTaskService.js.map +1 -0
- package/build/confluence-client/services/SearchService.d.ts +39 -0
- package/build/confluence-client/services/SearchService.d.ts.map +1 -0
- package/build/confluence-client/services/SearchService.js +45 -0
- package/build/confluence-client/services/SearchService.js.map +1 -0
- package/build/confluence-client/services/ServerInformationService.d.ts +12 -0
- package/build/confluence-client/services/ServerInformationService.d.ts.map +1 -0
- package/build/confluence-client/services/ServerInformationService.js +20 -0
- package/build/confluence-client/services/ServerInformationService.js.map +1 -0
- package/build/confluence-client/services/SpaceColorSchemeService.d.ts +58 -0
- package/build/confluence-client/services/SpaceColorSchemeService.d.ts.map +1 -0
- package/build/confluence-client/services/SpaceColorSchemeService.js +123 -0
- package/build/confluence-client/services/SpaceColorSchemeService.js.map +1 -0
- package/build/confluence-client/services/SpaceLabelService.d.ts +111 -0
- package/build/confluence-client/services/SpaceLabelService.d.ts.map +1 -0
- package/build/confluence-client/services/SpaceLabelService.js +124 -0
- package/build/confluence-client/services/SpaceLabelService.js.map +1 -0
- package/build/confluence-client/services/SpacePermissionsService.d.ts +257 -0
- package/build/confluence-client/services/SpacePermissionsService.d.ts.map +1 -0
- package/build/confluence-client/services/SpacePermissionsService.js +421 -0
- package/build/confluence-client/services/SpacePermissionsService.js.map +1 -0
- package/build/confluence-client/services/SpacePropertyService.d.ts +91 -0
- package/build/confluence-client/services/SpacePropertyService.d.ts.map +1 -0
- package/build/confluence-client/services/SpacePropertyService.js +172 -0
- package/build/confluence-client/services/SpacePropertyService.js.map +1 -0
- package/build/confluence-client/services/SpaceService.d.ts +220 -0
- package/build/confluence-client/services/SpaceService.d.ts.map +1 -0
- package/build/confluence-client/services/SpaceService.js +340 -0
- package/build/confluence-client/services/SpaceService.js.map +1 -0
- package/build/confluence-client/services/SpaceWatchersService.d.ts +28 -0
- package/build/confluence-client/services/SpaceWatchersService.d.ts.map +1 -0
- package/build/confluence-client/services/SpaceWatchersService.js +32 -0
- package/build/confluence-client/services/SpaceWatchersService.js.map +1 -0
- package/build/confluence-client/services/UserGroupService.d.ts +26 -0
- package/build/confluence-client/services/UserGroupService.d.ts.map +1 -0
- package/build/confluence-client/services/UserGroupService.js +45 -0
- package/build/confluence-client/services/UserGroupService.js.map +1 -0
- package/build/confluence-client/services/UserService.d.ts +138 -0
- package/build/confluence-client/services/UserService.d.ts.map +1 -0
- package/build/confluence-client/services/UserService.js +200 -0
- package/build/confluence-client/services/UserService.js.map +1 -0
- package/build/confluence-client/services/UserWatchService.d.ts +108 -0
- package/build/confluence-client/services/UserWatchService.d.ts.map +1 -0
- package/build/confluence-client/services/UserWatchService.js +200 -0
- package/build/confluence-client/services/UserWatchService.js.map +1 -0
- package/build/confluence-client/services/WebhooksService.d.ts +102 -0
- package/build/confluence-client/services/WebhooksService.d.ts.map +1 -0
- package/build/confluence-client/services/WebhooksService.js +208 -0
- package/build/confluence-client/services/WebhooksService.js.map +1 -0
- package/build/confluence-service.d.ts +54 -7
- package/build/confluence-service.d.ts.map +1 -1
- package/build/confluence-service.js +47 -62
- package/build/confluence-service.js.map +1 -1
- package/build/index.js +4 -0
- package/build/index.js.map +1 -1
- package/package.json +3 -3
- package/src/confluence-client/core/ApiError.ts +26 -0
- package/src/confluence-client/core/ApiRequestOptions.ts +17 -0
- package/src/confluence-client/core/ApiResult.ts +11 -0
- package/src/confluence-client/core/CancelablePromise.ts +131 -0
- package/src/confluence-client/core/OpenAPI.ts +33 -0
- package/src/confluence-client/core/request.ts +319 -0
- package/src/confluence-client/fix-imports.ps1 +29 -0
- package/src/confluence-client/index.ts +170 -0
- package/src/confluence-client/models/Anonymous.ts +7 -0
- package/src/confluence-client/models/ColorSchemeModel.ts +7 -0
- package/src/confluence-client/models/ColorSchemeThemeBasedModel.ts +7 -0
- package/src/confluence-client/models/Container.ts +7 -0
- package/src/confluence-client/models/ContainerSummary.ts +7 -0
- package/src/confluence-client/models/Content.ts +7 -0
- package/src/confluence-client/models/ContentBody.ts +7 -0
- package/src/confluence-client/models/ContentRestriction.ts +7 -0
- package/src/confluence-client/models/ContentSearchResult.ts +7 -0
- package/src/confluence-client/models/ContentWatch.ts +7 -0
- package/src/confluence-client/models/Credentials.ts +8 -0
- package/src/confluence-client/models/Cursor.ts +7 -0
- package/src/confluence-client/models/DetailedInvocation.ts +7 -0
- package/src/confluence-client/models/DetailedInvocationRequest.ts +7 -0
- package/src/confluence-client/models/DetailedInvocationResult.ts +7 -0
- package/src/confluence-client/models/ExampleMultipartFormData.ts +11 -0
- package/src/confluence-client/models/Expandable.ts +7 -0
- package/src/confluence-client/models/FileInfo.ts +17 -0
- package/src/confluence-client/models/FilePart.ts +13 -0
- package/src/confluence-client/models/FormattedBody.ts +7 -0
- package/src/confluence-client/models/GlobalPermission.ts +12 -0
- package/src/confluence-client/models/Group.ts +7 -0
- package/src/confluence-client/models/History.ts +7 -0
- package/src/confluence-client/models/Icon.ts +7 -0
- package/src/confluence-client/models/InstanceMetrics.ts +7 -0
- package/src/confluence-client/models/JobDetails.ts +7 -0
- package/src/confluence-client/models/JobStatistics.ts +7 -0
- package/src/confluence-client/models/JsonContentProperty.ts +7 -0
- package/src/confluence-client/models/JsonSpaceProperty.ts +7 -0
- package/src/confluence-client/models/JsonString.ts +7 -0
- package/src/confluence-client/models/KnownUser.ts +7 -0
- package/src/confluence-client/models/Label.ts +7 -0
- package/src/confluence-client/models/Link.ts +7 -0
- package/src/confluence-client/models/Links.ts +7 -0
- package/src/confluence-client/models/LongTaskStatus.ts +7 -0
- package/src/confluence-client/models/LongTaskSubmission.ts +7 -0
- package/src/confluence-client/models/MacroInstance.ts +7 -0
- package/src/confluence-client/models/MacroParameterInstance.ts +7 -0
- package/src/confluence-client/models/Message.ts +7 -0
- package/src/confluence-client/models/MockAttachmentRequest.ts +23 -0
- package/src/confluence-client/models/MockRestrictionsResponse.ts +7 -0
- package/src/confluence-client/models/NodeStatus.ts +7 -0
- package/src/confluence-client/models/OperationCheckResult.ts +7 -0
- package/src/confluence-client/models/OperationDescription.ts +9 -0
- package/src/confluence-client/models/OperationRestriction.ts +7 -0
- package/src/confluence-client/models/PageRequest.ts +7 -0
- package/src/confluence-client/models/PageResponseContent.ts +7 -0
- package/src/confluence-client/models/PageResponseContentRestriction.ts +16 -0
- package/src/confluence-client/models/PageResponseGroup.ts +16 -0
- package/src/confluence-client/models/PageResponseJsonContentProperty.ts +16 -0
- package/src/confluence-client/models/PageResponseJsonSpaceProperty.ts +16 -0
- package/src/confluence-client/models/PageResponseLabel.ts +16 -0
- package/src/confluence-client/models/PageResponseLongTaskStatus.ts +16 -0
- package/src/confluence-client/models/PageResponseNodeStatus.ts +16 -0
- package/src/confluence-client/models/PageResponseObject.ts +7 -0
- package/src/confluence-client/models/PageResponsePerson.ts +16 -0
- package/src/confluence-client/models/PageResponseSpace.ts +16 -0
- package/src/confluence-client/models/PageResponseSubject.ts +7 -0
- package/src/confluence-client/models/PageResponseUser.ts +16 -0
- package/src/confluence-client/models/PasswordChangeDetails.ts +9 -0
- package/src/confluence-client/models/Person.ts +7 -0
- package/src/confluence-client/models/PersonalSpaceDetailsForCreation.ts +10 -0
- package/src/confluence-client/models/ReferenceContainer.ts +7 -0
- package/src/confluence-client/models/ReferenceContainerSummary.ts +7 -0
- package/src/confluence-client/models/ReferenceContent.ts +7 -0
- package/src/confluence-client/models/ReferenceContributors.ts +7 -0
- package/src/confluence-client/models/ReferenceHistory.ts +7 -0
- package/src/confluence-client/models/ReferenceIcon.ts +7 -0
- package/src/confluence-client/models/ReferenceObject.ts +7 -0
- package/src/confluence-client/models/ReferenceRelevantViewRestrictions.ts +7 -0
- package/src/confluence-client/models/ReferenceSpace.ts +7 -0
- package/src/confluence-client/models/ReferenceSpacePermissionContainer.ts +7 -0
- package/src/confluence-client/models/ReferenceSpaceRetentionPolicy.ts +7 -0
- package/src/confluence-client/models/ReferenceString.ts +7 -0
- package/src/confluence-client/models/ReferenceUser.ts +7 -0
- package/src/confluence-client/models/ReferenceUserStatus.ts +7 -0
- package/src/confluence-client/models/ReferenceVersion.ts +7 -0
- package/src/confluence-client/models/RelevantViewRestrictions.ts +10 -0
- package/src/confluence-client/models/ResourceType.ts +7 -0
- package/src/confluence-client/models/RestError.ts +7 -0
- package/src/confluence-client/models/RestInvocationHistory.ts +7 -0
- package/src/confluence-client/models/RestListContent.ts +7 -0
- package/src/confluence-client/models/RestListJsonContentProperty.ts +7 -0
- package/src/confluence-client/models/RestListLabel.ts +7 -0
- package/src/confluence-client/models/RestListLongTaskStatus.ts +7 -0
- package/src/confluence-client/models/RestListNodeStatus.ts +7 -0
- package/src/confluence-client/models/RestListUser.ts +7 -0
- package/src/confluence-client/models/RestWebhook.ts +7 -0
- package/src/confluence-client/models/RestWebhookCredentials.ts +7 -0
- package/src/confluence-client/models/Restrictions.ts +7 -0
- package/src/confluence-client/models/SearchPageResponseSearchResult.ts +21 -0
- package/src/confluence-client/models/SearchResult.ts +7 -0
- package/src/confluence-client/models/ServerInformation.ts +7 -0
- package/src/confluence-client/models/SiteBackupJobDetails.ts +7 -0
- package/src/confluence-client/models/SiteBackupSettings.ts +7 -0
- package/src/confluence-client/models/SiteRestoreJobDetails.ts +7 -0
- package/src/confluence-client/models/SiteRestoreSettings.ts +7 -0
- package/src/confluence-client/models/Space.ts +7 -0
- package/src/confluence-client/models/SpaceBackupJobDetails.ts +7 -0
- package/src/confluence-client/models/SpaceBackupSettings.ts +7 -0
- package/src/confluence-client/models/SpaceColorSchemeTypeModel.ts +7 -0
- package/src/confluence-client/models/SpacePermission.ts +14 -0
- package/src/confluence-client/models/SpacePermissionsForSubject.ts +12 -0
- package/src/confluence-client/models/SpaceRestoreJobDetails.ts +7 -0
- package/src/confluence-client/models/SpaceRestoreSettings.ts +7 -0
- package/src/confluence-client/models/SpaceSearchResult.ts +7 -0
- package/src/confluence-client/models/SpaceWatch.ts +7 -0
- package/src/confluence-client/models/Subject.ts +7 -0
- package/src/confluence-client/models/SuperBatchWebResources.ts +7 -0
- package/src/confluence-client/models/UnknownUser.ts +7 -0
- package/src/confluence-client/models/User.ts +7 -0
- package/src/confluence-client/models/UserDetailsForCreation.ts +12 -0
- package/src/confluence-client/models/UserDetailsForUpdate.ts +10 -0
- package/src/confluence-client/models/UserKey.ts +7 -0
- package/src/confluence-client/models/UserSearchResult.ts +7 -0
- package/src/confluence-client/models/ValidationResult.ts +7 -0
- package/src/confluence-client/models/Version.ts +7 -0
- package/src/confluence-client/models/WebResourceDependencies.ts +7 -0
- package/src/confluence-client/models/Webhook.ts +7 -0
- package/src/confluence-client/models/WebhookCredentials.ts +7 -0
- package/src/confluence-client/models/WebhookEvent.ts +7 -0
- package/src/confluence-client/models/WebhookScope.ts +7 -0
- package/src/confluence-client/services/AccessModeService.ts +23 -0
- package/src/confluence-client/services/AdminGroupService.ts +57 -0
- package/src/confluence-client/services/AdminSpaceService.ts +45 -0
- package/src/confluence-client/services/AdminUserService.ts +206 -0
- package/src/confluence-client/services/AdminUsersService.ts +67 -0
- package/src/confluence-client/services/AttachmentsService.ts +287 -0
- package/src/confluence-client/services/BackupAndRestoreService.ts +320 -0
- package/src/confluence-client/services/CategoryService.ts +70 -0
- package/src/confluence-client/services/ChildContentService.ts +175 -0
- package/src/confluence-client/services/ClusterInformationService.ts +53 -0
- package/src/confluence-client/services/ContentBlueprintService.ts +74 -0
- package/src/confluence-client/services/ContentBodyService.ts +49 -0
- package/src/confluence-client/services/ContentDescendantService.ts +119 -0
- package/src/confluence-client/services/ContentLabelsService.ts +151 -0
- package/src/confluence-client/services/ContentPropertyService.ts +205 -0
- package/src/confluence-client/services/ContentResourceService.ts +528 -0
- package/src/confluence-client/services/ContentRestrictionsService.ts +176 -0
- package/src/confluence-client/services/ContentVersionService.ts +37 -0
- package/src/confluence-client/services/ContentWatchersService.ts +57 -0
- package/src/confluence-client/services/DefaultService.ts +22 -0
- package/src/confluence-client/services/GlobalColorSchemeService.ts +80 -0
- package/src/confluence-client/services/GlobalPermissionsService.ts +492 -0
- package/src/confluence-client/services/GroupService.ts +169 -0
- package/src/confluence-client/services/InstanceMetricsService.ts +28 -0
- package/src/confluence-client/services/LabelService.ts +200 -0
- package/src/confluence-client/services/LongTaskService.ts +75 -0
- package/src/confluence-client/services/SearchService.ts +74 -0
- package/src/confluence-client/services/ServerInformationService.ts +27 -0
- package/src/confluence-client/services/SpaceColorSchemeService.ts +143 -0
- package/src/confluence-client/services/SpaceLabelService.ts +200 -0
- package/src/confluence-client/services/SpacePermissionsService.ts +465 -0
- package/src/confluence-client/services/SpacePropertyService.ts +217 -0
- package/src/confluence-client/services/SpaceService.ts +458 -0
- package/src/confluence-client/services/SpaceWatchersService.ts +56 -0
- package/src/confluence-client/services/UserGroupService.ts +57 -0
- package/src/confluence-client/services/UserService.ts +257 -0
- package/src/confluence-client/services/UserWatchService.ts +235 -0
- package/src/confluence-client/services/WebhooksService.ts +258 -0
- package/src/confluence-service.ts +65 -70
- package/src/index.ts +13 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class WebhooksService {
|
|
4
|
+
/**
|
|
5
|
+
* Find webhooks
|
|
6
|
+
* Find webhooks. The authenticated user must be an administrator to call this resource.
|
|
7
|
+
* @param limit the limit of the number of items to return, this may be restricted by fixed system limits.
|
|
8
|
+
* @param start the start point of the collection to return
|
|
9
|
+
* @param event list of webhook event ids to filter for
|
|
10
|
+
* @param statistics if statistics should be provided for all found webhooks.
|
|
11
|
+
* @returns any returns a list of webhooks.
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static findWebhooks(limit, start, event, statistics) {
|
|
15
|
+
return __request(OpenAPI, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '/rest/api/webhooks',
|
|
18
|
+
query: {
|
|
19
|
+
'limit': limit,
|
|
20
|
+
'start': start,
|
|
21
|
+
'event': event,
|
|
22
|
+
'statistics': statistics,
|
|
23
|
+
},
|
|
24
|
+
errors: {
|
|
25
|
+
401: `returned if the currently authenticated user has insufficient permissions to find webhooks.`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Create webhook
|
|
31
|
+
* Create a webhook via the URL. The authenticated user must be an administrator to call this resource.
|
|
32
|
+
* @param requestBody the webhook to be created.
|
|
33
|
+
* @returns Webhook returns a created webhook.
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static createWebhook(requestBody) {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '/rest/api/webhooks',
|
|
40
|
+
body: requestBody,
|
|
41
|
+
mediaType: 'application/json',
|
|
42
|
+
errors: {
|
|
43
|
+
400: `returned if The webhook parameters were invalid or not supplied.`,
|
|
44
|
+
401: `The currently authenticated user has insufficient permissions to create webhooks.`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get webhook
|
|
50
|
+
* Get a webhook by id. The authenticated user must be an administrator to call this resource.
|
|
51
|
+
* @param webhookId id of the webhook
|
|
52
|
+
* @param statistics
|
|
53
|
+
* @returns RestWebhook returns a webhook.
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static getWebhook(webhookId, statistics = false) {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
url: '/rest/api/webhooks/{webhookId}',
|
|
60
|
+
path: {
|
|
61
|
+
'webhookId': webhookId,
|
|
62
|
+
},
|
|
63
|
+
query: {
|
|
64
|
+
'statistics': statistics,
|
|
65
|
+
},
|
|
66
|
+
errors: {
|
|
67
|
+
401: `returned if the currently authenticated user has insufficient permissions to get webhook.`,
|
|
68
|
+
404: `returned if the webhook does not exist.`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Update webhook
|
|
74
|
+
* Update an existing webhook. The authenticated user must be an administrator to call this resource.
|
|
75
|
+
* @param webhookId the existing webhook id
|
|
76
|
+
* @param requestBody the representation of the updated values for the webhook
|
|
77
|
+
* @returns RestWebhook returns a webhook.
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static updateWebhook(webhookId, requestBody) {
|
|
81
|
+
return __request(OpenAPI, {
|
|
82
|
+
method: 'PUT',
|
|
83
|
+
url: '/rest/api/webhooks/{webhookId}',
|
|
84
|
+
path: {
|
|
85
|
+
'webhookId': webhookId,
|
|
86
|
+
},
|
|
87
|
+
body: requestBody,
|
|
88
|
+
mediaType: 'application/json',
|
|
89
|
+
errors: {
|
|
90
|
+
401: `returned if the currently authenticated user has insufficient permissions to update a webhook.`,
|
|
91
|
+
404: `returned if the webhook does not exist.`,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete webhook
|
|
97
|
+
* Delete a webhook via the URL. The authenticated user must be an administrator to call this resource.
|
|
98
|
+
* @param webhookId the id of the webhook to be deleted.
|
|
99
|
+
* @returns void
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static deleteWebhook(webhookId) {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: 'DELETE',
|
|
105
|
+
url: '/rest/api/webhooks/{webhookId}',
|
|
106
|
+
path: {
|
|
107
|
+
'webhookId': webhookId,
|
|
108
|
+
},
|
|
109
|
+
errors: {
|
|
110
|
+
401: `returned if the currently authenticated user has insufficient permissions to delete webhooks.`,
|
|
111
|
+
404: `returned if the webhook does not exist.`,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get latest invocations
|
|
117
|
+
* Get the latest invocations for a specific webhook. The authenticated user must be an administrator to call this resource.
|
|
118
|
+
* @param webhookId id of the webhook
|
|
119
|
+
* @param outcomes the outcome to filter for. Can be SUCCESS, FAILURE, ERROR. None specified means that the all will be considered.
|
|
120
|
+
* @param event the string id of a specific event to retrieve the last invocation for.
|
|
121
|
+
* @param outcome
|
|
122
|
+
* @returns DetailedInvocation returns a webhook invocation dataset.
|
|
123
|
+
* @throws ApiError
|
|
124
|
+
*/
|
|
125
|
+
static getLatestInvocation(webhookId, outcomes, event, outcome) {
|
|
126
|
+
return __request(OpenAPI, {
|
|
127
|
+
method: 'GET',
|
|
128
|
+
url: '/rest/api/webhooks/{webhookId}/latest',
|
|
129
|
+
path: {
|
|
130
|
+
'webhookId': webhookId,
|
|
131
|
+
},
|
|
132
|
+
query: {
|
|
133
|
+
'outcomes': outcomes,
|
|
134
|
+
'event': event,
|
|
135
|
+
'outcome': outcome,
|
|
136
|
+
},
|
|
137
|
+
errors: {
|
|
138
|
+
401: `returned if the currently authenticated user has insufficient permissions to get webhook.`,
|
|
139
|
+
404: `returned if the webhook does not exist.`,
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Get statistic
|
|
145
|
+
* Get the statistics for a specific webhook. The authenticated user must be an administrator to call this resource.
|
|
146
|
+
* @param webhookId id of the webhook
|
|
147
|
+
* @param event the string id of a specific event to retrieve the last invocation for.
|
|
148
|
+
* @returns RestInvocationHistory returns a webhook invocation dataset.
|
|
149
|
+
* @throws ApiError
|
|
150
|
+
*/
|
|
151
|
+
static getStatistics(webhookId, event) {
|
|
152
|
+
return __request(OpenAPI, {
|
|
153
|
+
method: 'GET',
|
|
154
|
+
url: '/rest/api/webhooks/{webhookId}/statistics',
|
|
155
|
+
path: {
|
|
156
|
+
'webhookId': webhookId,
|
|
157
|
+
},
|
|
158
|
+
query: {
|
|
159
|
+
'event': event,
|
|
160
|
+
},
|
|
161
|
+
errors: {
|
|
162
|
+
401: `returned if the currently authenticated user has insufficient permissions to get webhook.`,
|
|
163
|
+
404: `returned if the webhook does not exist.`,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get statistics summary
|
|
169
|
+
* Get the statistics summary for a specific webhook. The authenticated user must be an administrator to call this resource.
|
|
170
|
+
* @param webhookId id of the webhook
|
|
171
|
+
* @returns RestInvocationHistory returns a webhook invocation dataset.
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
static getStatisticsSummary(webhookId) {
|
|
175
|
+
return __request(OpenAPI, {
|
|
176
|
+
method: 'GET',
|
|
177
|
+
url: '/rest/api/webhooks/{webhookId}/statistics/summary',
|
|
178
|
+
path: {
|
|
179
|
+
'webhookId': webhookId,
|
|
180
|
+
},
|
|
181
|
+
errors: {
|
|
182
|
+
401: `returned if the currently authenticated user has insufficient permissions to get webhook.`,
|
|
183
|
+
404: `returned if the webhook does not exist.`,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Test webhook
|
|
189
|
+
* Test connectivity to a specific endpoint. The authenticated user must be an administrator to call this resource.
|
|
190
|
+
* @param url the url in which to connect to
|
|
191
|
+
* @returns any returns a webhook.
|
|
192
|
+
* @throws ApiError
|
|
193
|
+
*/
|
|
194
|
+
static testWebhook(url) {
|
|
195
|
+
return __request(OpenAPI, {
|
|
196
|
+
method: 'POST',
|
|
197
|
+
url: '/rest/api/webhooks/test',
|
|
198
|
+
query: {
|
|
199
|
+
'url': url,
|
|
200
|
+
},
|
|
201
|
+
errors: {
|
|
202
|
+
401: `returned if the currently authenticated user has insufficient permissions to test a connection.`,
|
|
203
|
+
404: `returned if repository does not exist.`,
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=WebhooksService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhooksService.js","sourceRoot":"","sources":["../../../src/confluence-client/services/WebhooksService.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,eAAe;IACxB;;;;;;;;;OASG;IACI,MAAM,CAAC,YAAY,CACtB,KAAc,EACd,KAAc,EACd,KAAc,EACd,UAAmB;QAenB,OAAO,SAAS,CAAC,OAAO,EAAE;YAC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EAAE,KAAK;YACb,GAAG,EAAE,mDAAmD;YACxD,IAAI,EAAE;gBACF,WAAW,EAAE,SAAS;aACzB;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,2FAA2F;gBAChG,GAAG,EAAE,yCAAyC;aACjD;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,WAAW,CACrB,GAAW;QAEX,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,KAAK,EAAE,GAAG;aACb;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,iGAAiG;gBACtG,GAAG,EAAE,wCAAwC;aAChD;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -21,10 +21,7 @@ export interface ConfluenceContent {
|
|
|
21
21
|
}>;
|
|
22
22
|
}
|
|
23
23
|
export declare class ConfluenceService {
|
|
24
|
-
private baseUrl;
|
|
25
|
-
private token;
|
|
26
24
|
constructor(host: string, token: string);
|
|
27
|
-
private request;
|
|
28
25
|
/**
|
|
29
26
|
* Get a Confluence page by ID
|
|
30
27
|
* @param contentId The ID of the page to retrieve
|
|
@@ -32,7 +29,7 @@ export declare class ConfluenceService {
|
|
|
32
29
|
*/
|
|
33
30
|
getContent(contentId: string, expand?: string): Promise<{
|
|
34
31
|
success: boolean;
|
|
35
|
-
data?:
|
|
32
|
+
data?: import("./confluence-client/index.js").Content | undefined;
|
|
36
33
|
error?: string;
|
|
37
34
|
}>;
|
|
38
35
|
/**
|
|
@@ -44,7 +41,20 @@ export declare class ConfluenceService {
|
|
|
44
41
|
*/
|
|
45
42
|
searchContent(cql: string, limit?: number, start?: number, expand?: string): Promise<{
|
|
46
43
|
success: boolean;
|
|
47
|
-
data?:
|
|
44
|
+
data?: {
|
|
45
|
+
results?: Array<import("./confluence-client/index.js").SearchResult>;
|
|
46
|
+
totalCount?: number;
|
|
47
|
+
start?: number;
|
|
48
|
+
limit?: number;
|
|
49
|
+
size?: number;
|
|
50
|
+
_links?: {
|
|
51
|
+
base?: string;
|
|
52
|
+
context?: string;
|
|
53
|
+
self?: string;
|
|
54
|
+
next?: string;
|
|
55
|
+
prev?: string;
|
|
56
|
+
};
|
|
57
|
+
} | undefined;
|
|
48
58
|
error?: string;
|
|
49
59
|
}>;
|
|
50
60
|
/**
|
|
@@ -53,7 +63,7 @@ export declare class ConfluenceService {
|
|
|
53
63
|
*/
|
|
54
64
|
createContent(content: ConfluenceContent): Promise<{
|
|
55
65
|
success: boolean;
|
|
56
|
-
data?:
|
|
66
|
+
data?: import("./confluence-client/index.js").Content | undefined;
|
|
57
67
|
error?: string;
|
|
58
68
|
}>;
|
|
59
69
|
/**
|
|
@@ -63,10 +73,41 @@ export declare class ConfluenceService {
|
|
|
63
73
|
*/
|
|
64
74
|
updateContent(contentId: string, content: ConfluenceContent): Promise<{
|
|
65
75
|
success: boolean;
|
|
66
|
-
data?:
|
|
76
|
+
data?: import("./confluence-client/index.js").Content | undefined;
|
|
77
|
+
error?: string;
|
|
78
|
+
}>;
|
|
79
|
+
/**
|
|
80
|
+
* Search for spaces by text
|
|
81
|
+
* @param searchText Text to search for in space names or descriptions
|
|
82
|
+
* @param limit Maximum number of results to return
|
|
83
|
+
* @param start Start index for pagination
|
|
84
|
+
* @param expand Optional comma-separated list of properties to expand
|
|
85
|
+
*/
|
|
86
|
+
searchSpaces(searchText: string, limit?: number, start?: number, expand?: string): Promise<{
|
|
87
|
+
success: boolean;
|
|
88
|
+
data?: {
|
|
89
|
+
results?: Array<import("./confluence-client/index.js").SearchResult>;
|
|
90
|
+
totalCount?: number;
|
|
91
|
+
start?: number;
|
|
92
|
+
limit?: number;
|
|
93
|
+
size?: number;
|
|
94
|
+
_links?: {
|
|
95
|
+
base?: string;
|
|
96
|
+
context?: string;
|
|
97
|
+
self?: string;
|
|
98
|
+
next?: string;
|
|
99
|
+
prev?: string;
|
|
100
|
+
};
|
|
101
|
+
} | undefined;
|
|
67
102
|
error?: string;
|
|
68
103
|
}>;
|
|
69
104
|
static validateConfig(): string[];
|
|
105
|
+
/**
|
|
106
|
+
* Handle API errors in a consistent way
|
|
107
|
+
* @param operation Function that performs the API operation
|
|
108
|
+
* @param errorPrefix Prefix for the error message
|
|
109
|
+
*/
|
|
110
|
+
private handleApiOperation;
|
|
70
111
|
}
|
|
71
112
|
export declare const confluenceToolSchemas: {
|
|
72
113
|
getContent: {
|
|
@@ -93,5 +134,11 @@ export declare const confluenceToolSchemas: {
|
|
|
93
134
|
version: z.ZodNumber;
|
|
94
135
|
versionComment: z.ZodOptional<z.ZodString>;
|
|
95
136
|
};
|
|
137
|
+
searchSpaces: {
|
|
138
|
+
searchText: z.ZodString;
|
|
139
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
expand: z.ZodOptional<z.ZodString>;
|
|
142
|
+
};
|
|
96
143
|
};
|
|
97
144
|
//# sourceMappingURL=confluence-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confluence-service.d.ts","sourceRoot":"","sources":["../src/confluence-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"confluence-service.d.ts","sourceRoot":"","sources":["../src/confluence-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,IAAI,CAAC,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAC;YACd,cAAc,EAAE,SAAS,CAAC;SAC3B,CAAC;KACH,CAAC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A+BjC,CAAC"}
|
|
@@ -1,48 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ContentResourceService, OpenAPI, SearchService } from './confluence-client/index.js';
|
|
2
3
|
export class ConfluenceService {
|
|
3
|
-
baseUrl;
|
|
4
|
-
token;
|
|
5
4
|
constructor(host, token) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
async request(endpoint, options = {}) {
|
|
10
|
-
const url = `${this.baseUrl}${endpoint}`;
|
|
11
|
-
const headers = {
|
|
12
|
-
'Authorization': `Bearer ${this.token}`,
|
|
13
|
-
'Content-Type': 'application/json',
|
|
14
|
-
...options.headers
|
|
15
|
-
};
|
|
16
|
-
try {
|
|
17
|
-
const response = await fetch(url, {
|
|
18
|
-
...options,
|
|
19
|
-
headers
|
|
20
|
-
});
|
|
21
|
-
const responseData = await response.json();
|
|
22
|
-
if (!response.ok) {
|
|
23
|
-
return {
|
|
24
|
-
success: false,
|
|
25
|
-
error: `Confluence API error: ${response.status} ${response.statusText}`,
|
|
26
|
-
data: responseData
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
success: true,
|
|
31
|
-
data: responseData
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
if (error instanceof Error) {
|
|
36
|
-
return {
|
|
37
|
-
success: false,
|
|
38
|
-
error: `Confluence API Error: ${error.message}`
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
success: false,
|
|
43
|
-
error: 'Unknown Confluence API error occurred'
|
|
44
|
-
};
|
|
45
|
-
}
|
|
5
|
+
OpenAPI.BASE = `https://${host}`;
|
|
6
|
+
OpenAPI.TOKEN = token;
|
|
7
|
+
OpenAPI.VERSION = '1.0';
|
|
46
8
|
}
|
|
47
9
|
/**
|
|
48
10
|
* Get a Confluence page by ID
|
|
@@ -50,13 +12,11 @@ export class ConfluenceService {
|
|
|
50
12
|
* @param expand Optional comma-separated list of properties to expand
|
|
51
13
|
*/
|
|
52
14
|
async getContent(contentId, expand) {
|
|
53
|
-
// Default expand to include body.storage to get the content
|
|
54
15
|
const expandValue = expand || 'body.storage';
|
|
55
|
-
// If expand is provided but doesn't include body.storage, add it
|
|
56
16
|
const finalExpand = expand && !expand.includes('body.storage')
|
|
57
17
|
? `${expand},body.storage`
|
|
58
18
|
: expandValue;
|
|
59
|
-
return this.
|
|
19
|
+
return this.handleApiOperation(() => ContentResourceService.getContentById(contentId, finalExpand), 'Error getting content');
|
|
60
20
|
}
|
|
61
21
|
/**
|
|
62
22
|
* Search for content in Confluence using CQL
|
|
@@ -66,25 +26,14 @@ export class ConfluenceService {
|
|
|
66
26
|
* @param expand Optional comma-separated list of properties to expand
|
|
67
27
|
*/
|
|
68
28
|
async searchContent(cql, limit, start, expand) {
|
|
69
|
-
|
|
70
|
-
queryParams.append('cql', cql);
|
|
71
|
-
if (limit)
|
|
72
|
-
queryParams.append('limit', limit.toString());
|
|
73
|
-
if (start)
|
|
74
|
-
queryParams.append('start', start.toString());
|
|
75
|
-
if (expand)
|
|
76
|
-
queryParams.append('expand', expand);
|
|
77
|
-
return this.request(`/content/search?${queryParams.toString()}`);
|
|
29
|
+
return this.handleApiOperation(() => SearchService.search1(undefined, expand, undefined, limit?.toString(), start?.toString(), undefined, cql), 'Error searching for content');
|
|
78
30
|
}
|
|
79
31
|
/**
|
|
80
32
|
* Create a new page in Confluence
|
|
81
33
|
* @param content The content object to create
|
|
82
34
|
*/
|
|
83
35
|
async createContent(content) {
|
|
84
|
-
return this.
|
|
85
|
-
method: 'POST',
|
|
86
|
-
body: JSON.stringify(content)
|
|
87
|
-
});
|
|
36
|
+
return this.handleApiOperation(() => ContentResourceService.createContent(content), 'Error creating content');
|
|
88
37
|
}
|
|
89
38
|
/**
|
|
90
39
|
* Update an existing page in Confluence
|
|
@@ -92,15 +41,45 @@ export class ConfluenceService {
|
|
|
92
41
|
* @param content The updated content object
|
|
93
42
|
*/
|
|
94
43
|
async updateContent(contentId, content) {
|
|
95
|
-
return this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
44
|
+
return this.handleApiOperation(() => ContentResourceService.update2(contentId, content), 'Error updating content');
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Search for spaces by text
|
|
48
|
+
* @param searchText Text to search for in space names or descriptions
|
|
49
|
+
* @param limit Maximum number of results to return
|
|
50
|
+
* @param start Start index for pagination
|
|
51
|
+
* @param expand Optional comma-separated list of properties to expand
|
|
52
|
+
*/
|
|
53
|
+
async searchSpaces(searchText, limit, start, expand) {
|
|
54
|
+
// Create a CQL query that searches for spaces
|
|
55
|
+
// The correct syntax for space search is: type=space AND title ~ "searchText"
|
|
56
|
+
const cql = `type=space AND title ~ "${searchText}"`;
|
|
57
|
+
return this.handleApiOperation(() => SearchService.search1(undefined, expand, undefined, limit?.toString(), start?.toString(), undefined, cql), 'Error searching for spaces');
|
|
99
58
|
}
|
|
100
59
|
static validateConfig() {
|
|
101
60
|
const requiredEnvVars = ['CONFLUENCE_HOST', 'CONFLUENCE_API_TOKEN'];
|
|
102
61
|
return requiredEnvVars.filter(varName => !process.env[varName]);
|
|
103
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Handle API errors in a consistent way
|
|
65
|
+
* @param operation Function that performs the API operation
|
|
66
|
+
* @param errorPrefix Prefix for the error message
|
|
67
|
+
*/
|
|
68
|
+
async handleApiOperation(operation, errorPrefix) {
|
|
69
|
+
try {
|
|
70
|
+
const data = await operation();
|
|
71
|
+
return {
|
|
72
|
+
success: true,
|
|
73
|
+
data
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
catch (e) {
|
|
77
|
+
return {
|
|
78
|
+
success: false,
|
|
79
|
+
error: `${errorPrefix}: ${e instanceof Error ? e.message : String(e)}`
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
104
83
|
}
|
|
105
84
|
export const confluenceToolSchemas = {
|
|
106
85
|
getContent: {
|
|
@@ -126,6 +105,12 @@ export const confluenceToolSchemas = {
|
|
|
126
105
|
content: z.string().optional().describe("New content body in storage format"),
|
|
127
106
|
version: z.number().describe("New version number (must be incremented)"),
|
|
128
107
|
versionComment: z.string().optional().describe("Comment for this version")
|
|
108
|
+
},
|
|
109
|
+
searchSpaces: {
|
|
110
|
+
searchText: z.string().describe("Text to search for in space names or descriptions"),
|
|
111
|
+
limit: z.number().optional().describe("Maximum number of results to return"),
|
|
112
|
+
start: z.number().optional().describe("Start index for pagination"),
|
|
113
|
+
expand: z.string().optional().describe("Comma-separated list of properties to expand")
|
|
129
114
|
}
|
|
130
115
|
};
|
|
131
116
|
//# sourceMappingURL=confluence-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confluence-service.js","sourceRoot":"","sources":["../src/confluence-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"confluence-service.js","sourceRoot":"","sources":["../src/confluence-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAsB5G,MAAM,OAAO,iBAAiB;IAC5B,YAAY,IAAY,EAAE,KAAa;QACrC,OAAO,CAAC,IAAI,GAAG,WAAW,IAAI,EAAE,CAAC;QACjC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC;IAC1B,CAAC;IACD;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,MAAe;QACjD,MAAM,WAAW,GAAG,MAAM,IAAI,cAAc,CAAC;QAC7C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;YAC5D,CAAC,CAAC,GAAG,MAA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AqC,CAAC;QAC5E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACnE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;KACvF;CACF,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -76,5 +76,9 @@ server.tool("confluence_updateContent", "Update existing content in Confluence",
|
|
|
76
76
|
const result = await confluenceService.updateContent(contentId, updateObj);
|
|
77
77
|
return formatToolResponse(result);
|
|
78
78
|
});
|
|
79
|
+
server.tool('confluence_searchSpace', 'Search for spaces in Confluence', confluenceToolSchemas.searchSpaces, async ({ searchText, limit, start, expand }) => {
|
|
80
|
+
const result = await confluenceService.searchSpaces(searchText, limit, start, expand);
|
|
81
|
+
return formatToolResponse(result);
|
|
82
|
+
});
|
|
79
83
|
await connectServer(server);
|
|
80
84
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAqB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACtG,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,6BAA6B;AAC7B,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,0CAA0C;AAC1C,MAAM,cAAc,GAAG,iBAAiB,CAAC,cAAc,EAAE,CAAC;AAC1D,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;IAC9B,MAAM,IAAI,KAAK,CAAC,2CAA2C,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1F,CAAC;AAED,gCAAgC;AAChC,MAAM,iBAAiB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K,EACL,MAAM,EACP,EAAE,EAAE;IACV,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACtF,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEL,MAAM,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian-dc-mcp/confluence",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./bin/run.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@atlassian-dc-mcp/common": "^0.
|
|
17
|
+
"@atlassian-dc-mcp/common": "^0.2.0",
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.5.0",
|
|
19
19
|
"dotenv": "^16.4.7",
|
|
20
20
|
"node-fetch": "^3.3.2",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "5799c4831c7f50293ee317395287677b754ee51b"
|
|
32
32
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ApiRequestOptions } from './ApiRequestOptions.js';
|
|
6
|
+
import type { ApiResult } from './ApiResult.js';
|
|
7
|
+
|
|
8
|
+
export class ApiError extends Error {
|
|
9
|
+
public readonly url: string;
|
|
10
|
+
public readonly status: number;
|
|
11
|
+
public readonly statusText: string;
|
|
12
|
+
public readonly body: any;
|
|
13
|
+
public readonly request: ApiRequestOptions;
|
|
14
|
+
|
|
15
|
+
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
16
|
+
super(message);
|
|
17
|
+
|
|
18
|
+
this.name = 'ApiError';
|
|
19
|
+
this.url = response.url;
|
|
20
|
+
this.status = response.status;
|
|
21
|
+
this.statusText = response.statusText;
|
|
22
|
+
this.body = response.body;
|
|
23
|
+
this.request = request;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type ApiRequestOptions = {
|
|
6
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
7
|
+
readonly url: string;
|
|
8
|
+
readonly path?: Record<string, any>;
|
|
9
|
+
readonly cookies?: Record<string, any>;
|
|
10
|
+
readonly headers?: Record<string, any>;
|
|
11
|
+
readonly query?: Record<string, any>;
|
|
12
|
+
readonly formData?: Record<string, any>;
|
|
13
|
+
readonly body?: any;
|
|
14
|
+
readonly mediaType?: string;
|
|
15
|
+
readonly responseHeader?: string;
|
|
16
|
+
readonly errors?: Record<number, string>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type ApiResult = {
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly ok: boolean;
|
|
8
|
+
readonly status: number;
|
|
9
|
+
readonly statusText: string;
|
|
10
|
+
readonly body: any;
|
|
11
|
+
};
|