@blorp-labs/piefed-api-client 0.0.0-7e59b13 → 0.0.0-90bfbe5
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/LICENSE +661 -0
- package/README.md +61 -10
- package/dist/client/admin/admin.d.ts +3 -41
- package/dist/client/admin/admin.d.ts.map +1 -1
- package/dist/client/admin/admin.js +20 -7
- package/dist/client/admin/admin.js.map +1 -1
- package/dist/client/comment/comment.d.ts +15 -285
- package/dist/client/comment/comment.d.ts.map +1 -1
- package/dist/client/comment/comment.js +116 -43
- package/dist/client/comment/comment.js.map +1 -1
- package/dist/client/community/community.d.ts +18 -341
- package/dist/client/community/community.d.ts.map +1 -1
- package/dist/client/community/community.js +140 -52
- package/dist/client/community/community.js.map +1 -1
- package/dist/client/feed/feed.d.ts +7 -125
- package/dist/client/feed/feed.d.ts.map +1 -1
- package/dist/client/feed/feed.js +52 -19
- package/dist/client/feed/feed.js.map +1 -1
- package/dist/client/misc/misc.d.ts +6 -101
- package/dist/client/misc/misc.d.ts.map +1 -1
- package/dist/client/misc/misc.js +44 -16
- package/dist/client/misc/misc.js.map +1 -1
- package/dist/client/post/post.d.ts +21 -405
- package/dist/client/post/post.d.ts.map +1 -1
- package/dist/client/post/post.js +164 -61
- package/dist/client/post/post.js.map +1 -1
- package/dist/client/private-message/private-message.d.ts +9 -165
- package/dist/client/private-message/private-message.d.ts.map +1 -1
- package/dist/client/private-message/private-message.js +68 -25
- package/dist/client/private-message/private-message.js.map +1 -1
- package/dist/client/site/site.d.ts +6 -89
- package/dist/client/site/site.d.ts.map +1 -1
- package/dist/client/site/site.js +44 -16
- package/dist/client/site/site.js.map +1 -1
- package/dist/client/topic/topic.d.ts +2 -21
- package/dist/client/topic/topic.d.ts.map +1 -1
- package/dist/client/topic/topic.js +12 -4
- package/dist/client/topic/topic.js.map +1 -1
- package/dist/client/upload/upload.d.ts +5 -97
- package/dist/client/upload/upload.d.ts.map +1 -1
- package/dist/client/upload/upload.js +36 -13
- package/dist/client/upload/upload.js.map +1 -1
- package/dist/client/user/user.d.ts +22 -405
- package/dist/client/user/user.d.ts.map +1 -1
- package/dist/client/user/user.js +172 -64
- package/dist/client/user/user.js.map +1 -1
- package/dist/create-client.d.ts +15 -214
- package/dist/create-client.d.ts.map +1 -1
- package/dist/create-client.js +69 -30
- package/dist/create-client.js.map +1 -1
- package/dist/index.d.ts +1 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -15
- package/dist/index.js.map +1 -1
- package/dist/mutator/custom-fetch.d.ts +5 -3
- package/dist/mutator/custom-fetch.d.ts.map +1 -1
- package/dist/mutator/custom-fetch.js +31 -7
- package/dist/mutator/custom-fetch.js.map +1 -1
- package/dist/schemas/adminPurgeComment.js +2 -1
- package/dist/schemas/adminPurgeCommentReason.js +2 -1
- package/dist/schemas/adminPurgeCommentReason.js.map +1 -1
- package/dist/schemas/adminPurgeCommentView.js +2 -1
- package/dist/schemas/adminPurgeCommunity.js +2 -1
- package/dist/schemas/adminPurgeCommunityReason.js +2 -1
- package/dist/schemas/adminPurgeCommunityReason.js.map +1 -1
- package/dist/schemas/adminPurgeCommunityView.js +2 -1
- package/dist/schemas/adminPurgePerson.js +2 -1
- package/dist/schemas/adminPurgePersonReason.js +2 -1
- package/dist/schemas/adminPurgePersonReason.js.map +1 -1
- package/dist/schemas/adminPurgePersonView.js +2 -1
- package/dist/schemas/adminPurgePost.js +2 -1
- package/dist/schemas/adminPurgePostCommunityId.js +2 -1
- package/dist/schemas/adminPurgePostCommunityId.js.map +1 -1
- package/dist/schemas/adminPurgePostReason.js +2 -1
- package/dist/schemas/adminPurgePostReason.js.map +1 -1
- package/dist/schemas/adminPurgePostView.js +2 -1
- package/dist/schemas/blockCommunityRequest.js +2 -1
- package/dist/schemas/blockCommunityRequest.js.map +1 -1
- package/dist/schemas/blockCommunityResponse.js +2 -1
- package/dist/schemas/blockInstanceRequest.js +2 -1
- package/dist/schemas/blockInstanceRequest.js.map +1 -1
- package/dist/schemas/blockInstanceResponse.js +2 -1
- package/dist/schemas/blockInstanceResponse.js.map +1 -1
- package/dist/schemas/comment.js +2 -1
- package/dist/schemas/commentAggregates.js +2 -1
- package/dist/schemas/commentAggregates.js.map +1 -1
- package/dist/schemas/commentEmojiReactions.js +2 -1
- package/dist/schemas/commentLikeView.js +2 -1
- package/dist/schemas/commentReply.js +2 -1
- package/dist/schemas/commentReply.js.map +1 -1
- package/dist/schemas/commentReplyView.js +2 -1
- package/dist/schemas/commentReplyViewSubscribed.js +4 -1
- package/dist/schemas/commentReplyViewSubscribed.js.map +1 -1
- package/dist/schemas/commentReport.js +2 -1
- package/dist/schemas/commentReport.js.map +1 -1
- package/dist/schemas/commentReportView.js +2 -1
- package/dist/schemas/commentReportViewSubscribed.js +4 -1
- package/dist/schemas/commentReportViewSubscribed.js.map +1 -1
- package/dist/schemas/commentView.js +2 -1
- package/dist/schemas/commentViewSubscribed.js +4 -1
- package/dist/schemas/commentViewSubscribed.js.map +1 -1
- package/dist/schemas/community.js +2 -1
- package/dist/schemas/communityAggregates.js +2 -1
- package/dist/schemas/communityAggregates.js.map +1 -1
- package/dist/schemas/communityBanner.js +2 -1
- package/dist/schemas/communityBanner.js.map +1 -1
- package/dist/schemas/communityBlockView.js +2 -1
- package/dist/schemas/communityFlair.js +2 -1
- package/dist/schemas/communityFlairApId.js +2 -1
- package/dist/schemas/communityFlairApId.js.map +1 -1
- package/dist/schemas/communityFlairCreateRequest.js +2 -1
- package/dist/schemas/communityFlairCreateRequest.js.map +1 -1
- package/dist/schemas/communityFlairCreateResponse.js +2 -1
- package/dist/schemas/communityFlairCreateResponseApId.js +2 -1
- package/dist/schemas/communityFlairCreateResponseApId.js.map +1 -1
- package/dist/schemas/communityFlairDeleteRequest.js +2 -1
- package/dist/schemas/communityFlairDeleteRequest.js.map +1 -1
- package/dist/schemas/communityFlairDeleteResponse.js +2 -1
- package/dist/schemas/communityFlairEditRequest.js +2 -1
- package/dist/schemas/communityFlairEditRequest.js.map +1 -1
- package/dist/schemas/communityFlairEditResponse.js +2 -1
- package/dist/schemas/communityFlairEditResponseApId.js +2 -1
- package/dist/schemas/communityFlairEditResponseApId.js.map +1 -1
- package/dist/schemas/communityFollowerView.js +2 -1
- package/dist/schemas/communityIcon.js +2 -1
- package/dist/schemas/communityIcon.js.map +1 -1
- package/dist/schemas/communityModerationBanItem.js +2 -1
- package/dist/schemas/communityModerationBanItemExpiredAt.js +2 -1
- package/dist/schemas/communityModerationBanItemExpiredAt.js.map +1 -1
- package/dist/schemas/communityModerationBanItemExpiresAt.js +2 -1
- package/dist/schemas/communityModerationBanItemExpiresAt.js.map +1 -1
- package/dist/schemas/communityModerationBanRequest.js +2 -1
- package/dist/schemas/communityModerationBanRequest.js.map +1 -1
- package/dist/schemas/communityModerationBansListResponse.js +2 -1
- package/dist/schemas/communityModerationBansListResponseNextPage.js +2 -1
- package/dist/schemas/communityModerationBansListResponseNextPage.js.map +1 -1
- package/dist/schemas/communityModerationNsfwRequest.js +2 -1
- package/dist/schemas/communityModerationNsfwRequest.js.map +1 -1
- package/dist/schemas/communityModerationUnbanRequest.js +2 -1
- package/dist/schemas/communityModerationUnbanRequest.js.map +1 -1
- package/dist/schemas/communityModeratorView.js +2 -1
- package/dist/schemas/communityPostingWarning.js +2 -1
- package/dist/schemas/communityPostingWarning.js.map +1 -1
- package/dist/schemas/communityResponse.js +2 -1
- package/dist/schemas/communityView.js +2 -1
- package/dist/schemas/communityViewSubscribed.js +4 -1
- package/dist/schemas/communityViewSubscribed.js.map +1 -1
- package/dist/schemas/createCommentRequest.js +2 -1
- package/dist/schemas/createCommentRequest.js.map +1 -1
- package/dist/schemas/createCommunityRequest.js +2 -1
- package/dist/schemas/createCommunityRequestBannerUrl.js +2 -1
- package/dist/schemas/createCommunityRequestBannerUrl.js.map +1 -1
- package/dist/schemas/createCommunityRequestIconUrl.js +2 -1
- package/dist/schemas/createCommunityRequestIconUrl.js.map +1 -1
- package/dist/schemas/createFeedRequest.js +2 -1
- package/dist/schemas/createFeedRequestBannerUrl.js +2 -1
- package/dist/schemas/createFeedRequestBannerUrl.js.map +1 -1
- package/dist/schemas/createFeedRequestIconUrl.js +2 -1
- package/dist/schemas/createFeedRequestIconUrl.js.map +1 -1
- package/dist/schemas/createFeedRequestParentFeedId.js +2 -1
- package/dist/schemas/createFeedRequestParentFeedId.js.map +1 -1
- package/dist/schemas/createPostRequest.js +2 -1
- package/dist/schemas/createPostRequestEvent.js +2 -1
- package/dist/schemas/createPostRequestPoll.js +2 -1
- package/dist/schemas/createPrivateMessageRequest.js +2 -1
- package/dist/schemas/createPrivateMessageRequest.js.map +1 -1
- package/dist/schemas/defaultError.js +2 -1
- package/dist/schemas/defaultError.js.map +1 -1
- package/dist/schemas/deleteCommentRequest.js +2 -1
- package/dist/schemas/deleteCommentRequest.js.map +1 -1
- package/dist/schemas/deleteCommunityRequest.js +2 -1
- package/dist/schemas/deleteCommunityRequest.js.map +1 -1
- package/dist/schemas/deleteFeedRequest.js +2 -1
- package/dist/schemas/deleteFeedRequest.js.map +1 -1
- package/dist/schemas/deletePostRequest.js +2 -1
- package/dist/schemas/deletePostRequest.js.map +1 -1
- package/dist/schemas/deletePrivateMessageRequest.js +2 -1
- package/dist/schemas/deletePrivateMessageRequest.js.map +1 -1
- package/dist/schemas/domainBlockRequest.js +2 -1
- package/dist/schemas/domainBlockRequest.js.map +1 -1
- package/dist/schemas/domainBlockResponse.js +2 -1
- package/dist/schemas/domainBlockResponse.js.map +1 -1
- package/dist/schemas/editCommentRequest.js +2 -1
- package/dist/schemas/editCommentRequest.js.map +1 -1
- package/dist/schemas/editCommunityRequest.js +2 -1
- package/dist/schemas/editCommunityRequestBannerUrl.js +2 -1
- package/dist/schemas/editCommunityRequestBannerUrl.js.map +1 -1
- package/dist/schemas/editCommunityRequestIconUrl.js +2 -1
- package/dist/schemas/editCommunityRequestIconUrl.js.map +1 -1
- package/dist/schemas/editFeedRequest.js +2 -1
- package/dist/schemas/editFeedRequestBannerUrl.js +2 -1
- package/dist/schemas/editFeedRequestBannerUrl.js.map +1 -1
- package/dist/schemas/editFeedRequestIconUrl.js +2 -1
- package/dist/schemas/editFeedRequestIconUrl.js.map +1 -1
- package/dist/schemas/editFeedRequestParentFeedId.js +2 -1
- package/dist/schemas/editFeedRequestParentFeedId.js.map +1 -1
- package/dist/schemas/editPostRequest.js +2 -1
- package/dist/schemas/editPostRequestAltText.js +2 -1
- package/dist/schemas/editPostRequestAltText.js.map +1 -1
- package/dist/schemas/editPostRequestEvent.js +2 -1
- package/dist/schemas/editPostRequestFlair.js +2 -1
- package/dist/schemas/editPostRequestFlair.js.map +1 -1
- package/dist/schemas/editPostRequestPoll.js +2 -1
- package/dist/schemas/editPostRequestTags.js +2 -1
- package/dist/schemas/editPostRequestTags.js.map +1 -1
- package/dist/schemas/editPostRequestUrl.js +2 -1
- package/dist/schemas/editPostRequestUrl.js.map +1 -1
- package/dist/schemas/editPrivateMessageRequest.js +2 -1
- package/dist/schemas/editPrivateMessageRequest.js.map +1 -1
- package/dist/schemas/error.js +2 -1
- package/dist/schemas/errorErrors.js +2 -1
- package/dist/schemas/errorErrors.js.map +1 -1
- package/dist/schemas/featurePostRequest.js +2 -1
- package/dist/schemas/featurePostRequestFeatureType.js +4 -1
- package/dist/schemas/featurePostRequestFeatureType.js.map +1 -1
- package/dist/schemas/federatedInstancesView.js +2 -1
- package/dist/schemas/feedListResponse.js +2 -1
- package/dist/schemas/feedView.js +2 -1
- package/dist/schemas/feedViewBanner.js +2 -1
- package/dist/schemas/feedViewBanner.js.map +1 -1
- package/dist/schemas/feedViewDescription.js +2 -1
- package/dist/schemas/feedViewDescription.js.map +1 -1
- package/dist/schemas/feedViewDescriptionHtml.js +2 -1
- package/dist/schemas/feedViewDescriptionHtml.js.map +1 -1
- package/dist/schemas/feedViewIcon.js +2 -1
- package/dist/schemas/feedViewIcon.js.map +1 -1
- package/dist/schemas/feedViewParentFeedId.js +2 -1
- package/dist/schemas/feedViewParentFeedId.js.map +1 -1
- package/dist/schemas/followCommunityRequest.js +2 -1
- package/dist/schemas/followCommunityRequest.js.map +1 -1
- package/dist/schemas/followFeedRequest.js +2 -1
- package/dist/schemas/followFeedRequest.js.map +1 -1
- package/dist/schemas/getApiAlphaAdminRegistrationApplicationListParams.js +2 -1
- package/dist/schemas/getApiAlphaAdminRegistrationApplicationListSort.js +4 -1
- package/dist/schemas/getApiAlphaAdminRegistrationApplicationListSort.js.map +1 -1
- package/dist/schemas/getApiAlphaCommentLikeListParams.js +2 -1
- package/dist/schemas/getApiAlphaCommentLikeListParams.js.map +1 -1
- package/dist/schemas/getApiAlphaCommentListParams.js +2 -1
- package/dist/schemas/getApiAlphaCommentListSort.js +4 -1
- package/dist/schemas/getApiAlphaCommentListSort.js.map +1 -1
- package/dist/schemas/getApiAlphaCommentParams.js +2 -1
- package/dist/schemas/getApiAlphaCommentParams.js.map +1 -1
- package/dist/schemas/getApiAlphaCommunityListParams.js +2 -1
- package/dist/schemas/getApiAlphaCommunityListSort.js +4 -1
- package/dist/schemas/getApiAlphaCommunityListSort.js.map +1 -1
- package/dist/schemas/getApiAlphaCommunityListType.js +4 -1
- package/dist/schemas/getApiAlphaCommunityListType.js.map +1 -1
- package/dist/schemas/getApiAlphaCommunityModerateBansParams.js +2 -1
- package/dist/schemas/getApiAlphaCommunityModerateBansParams.js.map +1 -1
- package/dist/schemas/getApiAlphaCommunityParams.js +2 -1
- package/dist/schemas/getApiAlphaCommunityParams.js.map +1 -1
- package/dist/schemas/getApiAlphaFeedListParams.js +2 -1
- package/dist/schemas/getApiAlphaFeedListParams.js.map +1 -1
- package/dist/schemas/getApiAlphaFeedParams.js +2 -1
- package/dist/schemas/getApiAlphaFeedParams.js.map +1 -1
- package/dist/schemas/getApiAlphaModlogParams.js +2 -1
- package/dist/schemas/getApiAlphaModlogType.js +4 -1
- package/dist/schemas/getApiAlphaModlogType.js.map +1 -1
- package/dist/schemas/getApiAlphaPostLikeListParams.js +2 -1
- package/dist/schemas/getApiAlphaPostLikeListParams.js.map +1 -1
- package/dist/schemas/getApiAlphaPostList2Params.js +2 -1
- package/dist/schemas/getApiAlphaPostList2Sort.js +4 -1
- package/dist/schemas/getApiAlphaPostList2Sort.js.map +1 -1
- package/dist/schemas/getApiAlphaPostList2Type.js +4 -1
- package/dist/schemas/getApiAlphaPostList2Type.js.map +1 -1
- package/dist/schemas/getApiAlphaPostListParams.js +2 -1
- package/dist/schemas/getApiAlphaPostListSort.js +4 -1
- package/dist/schemas/getApiAlphaPostListSort.js.map +1 -1
- package/dist/schemas/getApiAlphaPostListType.js +4 -1
- package/dist/schemas/getApiAlphaPostListType.js.map +1 -1
- package/dist/schemas/getApiAlphaPostParams.js +2 -1
- package/dist/schemas/getApiAlphaPostParams.js.map +1 -1
- package/dist/schemas/getApiAlphaPostRepliesParams.js +2 -1
- package/dist/schemas/getApiAlphaPostRepliesSort.js +4 -1
- package/dist/schemas/getApiAlphaPostRepliesSort.js.map +1 -1
- package/dist/schemas/getApiAlphaPostSiteMetadataParams.js +2 -1
- package/dist/schemas/getApiAlphaPostSiteMetadataParams.js.map +1 -1
- package/dist/schemas/getApiAlphaPrivateMessageConversationParams.js +2 -1
- package/dist/schemas/getApiAlphaPrivateMessageConversationParams.js.map +1 -1
- package/dist/schemas/getApiAlphaPrivateMessageListParams.js +2 -1
- package/dist/schemas/getApiAlphaPrivateMessageListParams.js.map +1 -1
- package/dist/schemas/getApiAlphaResolveObjectParams.js +2 -1
- package/dist/schemas/getApiAlphaResolveObjectParams.js.map +1 -1
- package/dist/schemas/getApiAlphaSearchListingType.js +4 -1
- package/dist/schemas/getApiAlphaSearchListingType.js.map +1 -1
- package/dist/schemas/getApiAlphaSearchNsfw.js +4 -1
- package/dist/schemas/getApiAlphaSearchNsfw.js.map +1 -1
- package/dist/schemas/getApiAlphaSearchParams.js +2 -1
- package/dist/schemas/getApiAlphaSearchSort.js +4 -1
- package/dist/schemas/getApiAlphaSearchSort.js.map +1 -1
- package/dist/schemas/getApiAlphaSearchType.js +4 -1
- package/dist/schemas/getApiAlphaSearchType.js.map +1 -1
- package/dist/schemas/getApiAlphaSiteInstanceChooserSearchParams.js +2 -1
- package/dist/schemas/getApiAlphaSiteInstanceChooserSearchParams.js.map +1 -1
- package/dist/schemas/getApiAlphaSuggestCompletionParams.js +2 -1
- package/dist/schemas/getApiAlphaSuggestCompletionParams.js.map +1 -1
- package/dist/schemas/getApiAlphaTopicListParams.js +2 -1
- package/dist/schemas/getApiAlphaTopicListParams.js.map +1 -1
- package/dist/schemas/getApiAlphaUserMediaParams.js +2 -1
- package/dist/schemas/getApiAlphaUserMediaSort.js +4 -1
- package/dist/schemas/getApiAlphaUserMediaSort.js.map +1 -1
- package/dist/schemas/getApiAlphaUserMentionsParams.js +2 -1
- package/dist/schemas/getApiAlphaUserMentionsSort.js +4 -1
- package/dist/schemas/getApiAlphaUserMentionsSort.js.map +1 -1
- package/dist/schemas/getApiAlphaUserNotificationsParams.js +2 -1
- package/dist/schemas/getApiAlphaUserNotificationsStatus.js +4 -1
- package/dist/schemas/getApiAlphaUserNotificationsStatus.js.map +1 -1
- package/dist/schemas/getApiAlphaUserParams.js +2 -1
- package/dist/schemas/getApiAlphaUserRepliesParams.js +2 -1
- package/dist/schemas/getApiAlphaUserRepliesSort.js +4 -1
- package/dist/schemas/getApiAlphaUserRepliesSort.js.map +1 -1
- package/dist/schemas/getApiAlphaUserSort.js +4 -1
- package/dist/schemas/getApiAlphaUserSort.js.map +1 -1
- package/dist/schemas/getCommentReplyResponse.js +2 -1
- package/dist/schemas/getCommentReportResponse.js +2 -1
- package/dist/schemas/getCommentResponse.js +2 -1
- package/dist/schemas/getCommunityResponse.js +2 -1
- package/dist/schemas/getFederatedInstancesResponse.js +2 -1
- package/dist/schemas/getModLogResponse.js +2 -1
- package/dist/schemas/getPostRepliesResponse.js +2 -1
- package/dist/schemas/getPostRepliesResponseNextPage.js +2 -1
- package/dist/schemas/getPostRepliesResponseNextPage.js.map +1 -1
- package/dist/schemas/getPostResponse.js +2 -1
- package/dist/schemas/getPrivateMessageConversationResponse.js +2 -1
- package/dist/schemas/getRegistrationListResponse.js +2 -1
- package/dist/schemas/getSiteInstanceChooserResponse.js +2 -1
- package/dist/schemas/getSiteInstanceChooserSearchResponse.js +2 -1
- package/dist/schemas/getSiteInstanceChooserSearchResponseItem.js +2 -1
- package/dist/schemas/getSiteInstanceChooserSearchResponseItem.js.map +1 -1
- package/dist/schemas/getSiteMetadataResponse.js +2 -1
- package/dist/schemas/getSiteResponse.js +2 -1
- package/dist/schemas/getSiteVersionResponse.js +2 -1
- package/dist/schemas/getSiteVersionResponse.js.map +1 -1
- package/dist/schemas/getSuggestCompletionResponse.js +2 -1
- package/dist/schemas/getSuggestCompletionResponse.js.map +1 -1
- package/dist/schemas/getUserResponse.js +2 -1
- package/dist/schemas/hidePostRequest.js +2 -1
- package/dist/schemas/hidePostRequest.js.map +1 -1
- package/dist/schemas/imageDeleteRequest.js +2 -1
- package/dist/schemas/imageDeleteRequest.js.map +1 -1
- package/dist/schemas/imageDeleteResponse.js +2 -1
- package/dist/schemas/imageDeleteResponse.js.map +1 -1
- package/dist/schemas/imageUploadRequest.js +2 -1
- package/dist/schemas/imageUploadRequest.js.map +1 -1
- package/dist/schemas/imageUploadResponse.js +2 -1
- package/dist/schemas/imageUploadResponse.js.map +1 -1
- package/dist/schemas/index.js +442 -426
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/instance.js +2 -1
- package/dist/schemas/instance.js.map +1 -1
- package/dist/schemas/instanceBlockView.js +2 -1
- package/dist/schemas/instanceWithoutFederationState.js +2 -1
- package/dist/schemas/instanceWithoutFederationState.js.map +1 -1
- package/dist/schemas/languageView.js +2 -1
- package/dist/schemas/languageView.js.map +1 -1
- package/dist/schemas/leaveConversationRequest.js +2 -1
- package/dist/schemas/leaveConversationRequest.js.map +1 -1
- package/dist/schemas/likeCommentRequest.js +2 -1
- package/dist/schemas/likeCommentRequest.js.map +1 -1
- package/dist/schemas/likePostRequest.js +2 -1
- package/dist/schemas/likePostRequest.js.map +1 -1
- package/dist/schemas/listCommentLikesResponse.js +2 -1
- package/dist/schemas/listCommentLikesResponseNextPage.js +2 -1
- package/dist/schemas/listCommentLikesResponseNextPage.js.map +1 -1
- package/dist/schemas/listCommentsResponse.js +2 -1
- package/dist/schemas/listCommentsResponseNextPage.js +2 -1
- package/dist/schemas/listCommentsResponseNextPage.js.map +1 -1
- package/dist/schemas/listCommunitiesResponse.js +2 -1
- package/dist/schemas/listCommunitiesResponseNextPage.js +2 -1
- package/dist/schemas/listCommunitiesResponseNextPage.js.map +1 -1
- package/dist/schemas/listPostLikesResponse.js +2 -1
- package/dist/schemas/listPostLikesResponseNextPage.js +2 -1
- package/dist/schemas/listPostLikesResponseNextPage.js.map +1 -1
- package/dist/schemas/listPostsResponse.js +2 -1
- package/dist/schemas/listPostsResponseNextPage.js +2 -1
- package/dist/schemas/listPostsResponseNextPage.js.map +1 -1
- package/dist/schemas/listPrivateMessagesResponse.js +2 -1
- package/dist/schemas/localUser.js +2 -1
- package/dist/schemas/localUserAcceptPrivateMessages.js +4 -1
- package/dist/schemas/localUserAcceptPrivateMessages.js.map +1 -1
- package/dist/schemas/localUserAiVisibility.js +4 -1
- package/dist/schemas/localUserAiVisibility.js.map +1 -1
- package/dist/schemas/localUserBotVisibility.js +4 -1
- package/dist/schemas/localUserBotVisibility.js.map +1 -1
- package/dist/schemas/localUserDefaultCommentSortType.js +4 -1
- package/dist/schemas/localUserDefaultCommentSortType.js.map +1 -1
- package/dist/schemas/localUserDefaultListingType.js +4 -1
- package/dist/schemas/localUserDefaultListingType.js.map +1 -1
- package/dist/schemas/localUserDefaultSortType.js +4 -1
- package/dist/schemas/localUserDefaultSortType.js.map +1 -1
- package/dist/schemas/localUserNsflVisibility.js +4 -1
- package/dist/schemas/localUserNsflVisibility.js.map +1 -1
- package/dist/schemas/localUserNsfwVisibility.js +4 -1
- package/dist/schemas/localUserNsfwVisibility.js.map +1 -1
- package/dist/schemas/localUserView.js +2 -1
- package/dist/schemas/lockCommentRequest.js +2 -1
- package/dist/schemas/lockCommentRequest.js.map +1 -1
- package/dist/schemas/lockPostRequest.js +2 -1
- package/dist/schemas/lockPostRequest.js.map +1 -1
- package/dist/schemas/markCommentAsAnswerRequest.js +2 -1
- package/dist/schemas/markCommentAsAnswerRequest.js.map +1 -1
- package/dist/schemas/markCommentAsReadRequest.js +2 -1
- package/dist/schemas/markCommentAsReadRequest.js.map +1 -1
- package/dist/schemas/markPostAsReadRequest.js +2 -1
- package/dist/schemas/markPostAsReadRequest.js.map +1 -1
- package/dist/schemas/markPrivateMessageAsReadRequest.js +2 -1
- package/dist/schemas/markPrivateMessageAsReadRequest.js.map +1 -1
- package/dist/schemas/mediaView.js +2 -1
- package/dist/schemas/mediaView.js.map +1 -1
- package/dist/schemas/miniCrossPosts.js +2 -1
- package/dist/schemas/miniCrossPosts.js.map +1 -1
- package/dist/schemas/modAdd.js +2 -1
- package/dist/schemas/modAddCommunity.js +2 -1
- package/dist/schemas/modAddCommunityCommunityId.js +2 -1
- package/dist/schemas/modAddCommunityCommunityId.js.map +1 -1
- package/dist/schemas/modAddCommunityModPersonId.js +2 -1
- package/dist/schemas/modAddCommunityModPersonId.js.map +1 -1
- package/dist/schemas/modAddCommunityOtherPersonId.js +2 -1
- package/dist/schemas/modAddCommunityOtherPersonId.js.map +1 -1
- package/dist/schemas/modAddCommunityView.js +2 -1
- package/dist/schemas/modAddCommunityViewCommunity.js +2 -1
- package/dist/schemas/modAddCommunityViewModdedPerson.js +2 -1
- package/dist/schemas/modAddCommunityViewModerator.js +2 -1
- package/dist/schemas/modAddModPersonId.js +2 -1
- package/dist/schemas/modAddModPersonId.js.map +1 -1
- package/dist/schemas/modAddOtherPersonId.js +2 -1
- package/dist/schemas/modAddOtherPersonId.js.map +1 -1
- package/dist/schemas/modAddView.js +2 -1
- package/dist/schemas/modAddViewModdedPerson.js +2 -1
- package/dist/schemas/modAddViewModerator.js +2 -1
- package/dist/schemas/modBan.js +2 -1
- package/dist/schemas/modBanExpires.js +2 -1
- package/dist/schemas/modBanExpires.js.map +1 -1
- package/dist/schemas/modBanFromCommunity.js +2 -1
- package/dist/schemas/modBanFromCommunityCommunityId.js +2 -1
- package/dist/schemas/modBanFromCommunityCommunityId.js.map +1 -1
- package/dist/schemas/modBanFromCommunityExpires.js +2 -1
- package/dist/schemas/modBanFromCommunityExpires.js.map +1 -1
- package/dist/schemas/modBanFromCommunityModPersonId.js +2 -1
- package/dist/schemas/modBanFromCommunityModPersonId.js.map +1 -1
- package/dist/schemas/modBanFromCommunityOtherPersonId.js +2 -1
- package/dist/schemas/modBanFromCommunityOtherPersonId.js.map +1 -1
- package/dist/schemas/modBanFromCommunityReason.js +2 -1
- package/dist/schemas/modBanFromCommunityReason.js.map +1 -1
- package/dist/schemas/modBanFromCommunityView.js +2 -1
- package/dist/schemas/modBanFromCommunityViewBannedPerson.js +2 -1
- package/dist/schemas/modBanFromCommunityViewCommunity.js +2 -1
- package/dist/schemas/modBanFromCommunityViewModerator.js +2 -1
- package/dist/schemas/modBanModPersonId.js +2 -1
- package/dist/schemas/modBanModPersonId.js.map +1 -1
- package/dist/schemas/modBanOtherPersonId.js +2 -1
- package/dist/schemas/modBanOtherPersonId.js.map +1 -1
- package/dist/schemas/modBanReason.js +2 -1
- package/dist/schemas/modBanReason.js.map +1 -1
- package/dist/schemas/modBanView.js +2 -1
- package/dist/schemas/modBanViewBannedPerson.js +2 -1
- package/dist/schemas/modBanViewModerator.js +2 -1
- package/dist/schemas/modCommunityRequest.js +2 -1
- package/dist/schemas/modCommunityRequest.js.map +1 -1
- package/dist/schemas/modCommunityResponse.js +2 -1
- package/dist/schemas/modFeaturePost.js +2 -1
- package/dist/schemas/modFeaturePostModPersonId.js +2 -1
- package/dist/schemas/modFeaturePostModPersonId.js.map +1 -1
- package/dist/schemas/modFeaturePostPostId.js +2 -1
- package/dist/schemas/modFeaturePostPostId.js.map +1 -1
- package/dist/schemas/modFeaturePostView.js +2 -1
- package/dist/schemas/modFeaturePostViewCommunity.js +2 -1
- package/dist/schemas/modFeaturePostViewModerator.js +2 -1
- package/dist/schemas/modFeaturePostViewPost.js +2 -1
- package/dist/schemas/modHideCommunity.js +2 -1
- package/dist/schemas/modHideCommunityCommunityId.js +2 -1
- package/dist/schemas/modHideCommunityCommunityId.js.map +1 -1
- package/dist/schemas/modHideCommunityModPersonId.js +2 -1
- package/dist/schemas/modHideCommunityModPersonId.js.map +1 -1
- package/dist/schemas/modHideCommunityReason.js +2 -1
- package/dist/schemas/modHideCommunityReason.js.map +1 -1
- package/dist/schemas/modHideCommunityView.js +2 -1
- package/dist/schemas/modLockPost.js +2 -1
- package/dist/schemas/modLockPostModPersonId.js +2 -1
- package/dist/schemas/modLockPostModPersonId.js.map +1 -1
- package/dist/schemas/modLockPostPostId.js +2 -1
- package/dist/schemas/modLockPostPostId.js.map +1 -1
- package/dist/schemas/modLockPostView.js +2 -1
- package/dist/schemas/modLockPostViewCommunity.js +2 -1
- package/dist/schemas/modLockPostViewModerator.js +2 -1
- package/dist/schemas/modLockPostViewPost.js +2 -1
- package/dist/schemas/modRemoveComment.js +2 -1
- package/dist/schemas/modRemoveCommentCommentId.js +2 -1
- package/dist/schemas/modRemoveCommentCommentId.js.map +1 -1
- package/dist/schemas/modRemoveCommentModPersonId.js +2 -1
- package/dist/schemas/modRemoveCommentModPersonId.js.map +1 -1
- package/dist/schemas/modRemoveCommentReason.js +2 -1
- package/dist/schemas/modRemoveCommentReason.js.map +1 -1
- package/dist/schemas/modRemoveCommentView.js +2 -1
- package/dist/schemas/modRemoveCommentViewComment.js +2 -1
- package/dist/schemas/modRemoveCommentViewCommenter.js +2 -1
- package/dist/schemas/modRemoveCommentViewCommunity.js +2 -1
- package/dist/schemas/modRemoveCommentViewModerator.js +2 -1
- package/dist/schemas/modRemoveCommentViewPost.js +2 -1
- package/dist/schemas/modRemoveCommunity.js +2 -1
- package/dist/schemas/modRemoveCommunityCommunityId.js +2 -1
- package/dist/schemas/modRemoveCommunityCommunityId.js.map +1 -1
- package/dist/schemas/modRemoveCommunityModPersonId.js +2 -1
- package/dist/schemas/modRemoveCommunityModPersonId.js.map +1 -1
- package/dist/schemas/modRemoveCommunityReason.js +2 -1
- package/dist/schemas/modRemoveCommunityReason.js.map +1 -1
- package/dist/schemas/modRemoveCommunityView.js +2 -1
- package/dist/schemas/modRemoveCommunityViewCommunity.js +2 -1
- package/dist/schemas/modRemoveCommunityViewModerator.js +2 -1
- package/dist/schemas/modRemovePost.js +2 -1
- package/dist/schemas/modRemovePostModPersonId.js +2 -1
- package/dist/schemas/modRemovePostModPersonId.js.map +1 -1
- package/dist/schemas/modRemovePostPostId.js +2 -1
- package/dist/schemas/modRemovePostPostId.js.map +1 -1
- package/dist/schemas/modRemovePostReason.js +2 -1
- package/dist/schemas/modRemovePostReason.js.map +1 -1
- package/dist/schemas/modRemovePostView.js +2 -1
- package/dist/schemas/modRemovePostViewCommunity.js +2 -1
- package/dist/schemas/modRemovePostViewModerator.js +2 -1
- package/dist/schemas/modRemovePostViewPost.js +2 -1
- package/dist/schemas/modTransferCommunity.js +2 -1
- package/dist/schemas/modTransferCommunityCommunityId.js +2 -1
- package/dist/schemas/modTransferCommunityCommunityId.js.map +1 -1
- package/dist/schemas/modTransferCommunityModPersonId.js +2 -1
- package/dist/schemas/modTransferCommunityModPersonId.js.map +1 -1
- package/dist/schemas/modTransferCommunityOtherPersonId.js +2 -1
- package/dist/schemas/modTransferCommunityOtherPersonId.js.map +1 -1
- package/dist/schemas/modTransferCommunityView.js +2 -1
- package/dist/schemas/modTransferCommunityViewModdedPerson.js +2 -1
- package/dist/schemas/modTransferCommunityViewModerator.js +2 -1
- package/dist/schemas/myUserInfo.js +2 -1
- package/dist/schemas/newUserExtraField.js +2 -1
- package/dist/schemas/newUserExtraFieldId.js +2 -1
- package/dist/schemas/newUserExtraFieldId.js.map +1 -1
- package/dist/schemas/newUserExtraFieldLabel.js +2 -1
- package/dist/schemas/newUserExtraFieldLabel.js.map +1 -1
- package/dist/schemas/newUserExtraFieldText.js +2 -1
- package/dist/schemas/newUserExtraFieldText.js.map +1 -1
- package/dist/schemas/paginationMetadata.js +2 -1
- package/dist/schemas/paginationMetadata.js.map +1 -1
- package/dist/schemas/person.js +2 -1
- package/dist/schemas/personAggregates.js +2 -1
- package/dist/schemas/personAggregates.js.map +1 -1
- package/dist/schemas/personAvatar.js +2 -1
- package/dist/schemas/personAvatar.js.map +1 -1
- package/dist/schemas/personBanner.js +2 -1
- package/dist/schemas/personBanner.js.map +1 -1
- package/dist/schemas/personBlockView.js +2 -1
- package/dist/schemas/personTitle.js +2 -1
- package/dist/schemas/personTitle.js.map +1 -1
- package/dist/schemas/personView.js +2 -1
- package/dist/schemas/pollChoice.js +2 -1
- package/dist/schemas/pollChoice.js.map +1 -1
- package/dist/schemas/pollVoteRequest.js +2 -1
- package/dist/schemas/pollVoteRequest.js.map +1 -1
- package/dist/schemas/pollVoteResponse.js +2 -1
- package/dist/schemas/post.js +2 -1
- package/dist/schemas/postAggregates.js +2 -1
- package/dist/schemas/postAggregates.js.map +1 -1
- package/dist/schemas/postEmojiReactions.js +2 -1
- package/dist/schemas/postEvent.js +2 -1
- package/dist/schemas/postEventBuyTicketsLink.js +2 -1
- package/dist/schemas/postEventBuyTicketsLink.js.map +1 -1
- package/dist/schemas/postEventExternalParticipationUrl.js +2 -1
- package/dist/schemas/postEventExternalParticipationUrl.js.map +1 -1
- package/dist/schemas/postEventLocation.js +2 -1
- package/dist/schemas/postEventLocationAnyOf.js +2 -1
- package/dist/schemas/postEventLocationAnyOf.js.map +1 -1
- package/dist/schemas/postEventOnlineLink.js +2 -1
- package/dist/schemas/postEventOnlineLink.js.map +1 -1
- package/dist/schemas/postFlair.js +2 -1
- package/dist/schemas/postFlair.js.map +1 -1
- package/dist/schemas/postLikeView.js +2 -1
- package/dist/schemas/postPoll.js +2 -1
- package/dist/schemas/postPollMode.js +4 -1
- package/dist/schemas/postPollMode.js.map +1 -1
- package/dist/schemas/postPostType.js +4 -1
- package/dist/schemas/postPostType.js.map +1 -1
- package/dist/schemas/postReplyView.js +2 -1
- package/dist/schemas/postReplyViewSubscribed.js +4 -1
- package/dist/schemas/postReplyViewSubscribed.js.map +1 -1
- package/dist/schemas/postReport.js +2 -1
- package/dist/schemas/postReport.js.map +1 -1
- package/dist/schemas/postReportResponse.js +2 -1
- package/dist/schemas/postReportView.js +2 -1
- package/dist/schemas/postReportViewSubscribed.js +4 -1
- package/dist/schemas/postReportViewSubscribed.js.map +1 -1
- package/dist/schemas/postSetFlairRequest.js +2 -1
- package/dist/schemas/postSetFlairRequestFlairIdList.js +2 -1
- package/dist/schemas/postSetFlairRequestFlairIdList.js.map +1 -1
- package/dist/schemas/postSetFlairResponse.js +2 -1
- package/dist/schemas/postSetFlairResponseSubscribed.js +4 -1
- package/dist/schemas/postSetFlairResponseSubscribed.js.map +1 -1
- package/dist/schemas/postTags.js +2 -1
- package/dist/schemas/postTags.js.map +1 -1
- package/dist/schemas/postView.js +2 -1
- package/dist/schemas/postViewSubscribed.js +4 -1
- package/dist/schemas/postViewSubscribed.js.map +1 -1
- package/dist/schemas/privateMessage.js +2 -1
- package/dist/schemas/privateMessage.js.map +1 -1
- package/dist/schemas/privateMessageResponse.js +2 -1
- package/dist/schemas/privateMessageView.js +2 -1
- package/dist/schemas/reactions.js +2 -1
- package/dist/schemas/reactionsUrl.js +2 -1
- package/dist/schemas/reactionsUrl.js.map +1 -1
- package/dist/schemas/registrationApproveRequest.js +2 -1
- package/dist/schemas/registrationApproveRequest.js.map +1 -1
- package/dist/schemas/removeCommentRequest.js +2 -1
- package/dist/schemas/removeCommentRequest.js.map +1 -1
- package/dist/schemas/removePostRequest.js +2 -1
- package/dist/schemas/removePostRequest.js.map +1 -1
- package/dist/schemas/reportCommentRequest.js +2 -1
- package/dist/schemas/reportCommentRequest.js.map +1 -1
- package/dist/schemas/reportPostRequest.js +2 -1
- package/dist/schemas/reportPostRequest.js.map +1 -1
- package/dist/schemas/reportPrivateMessageRequest.js +2 -1
- package/dist/schemas/reportPrivateMessageRequest.js.map +1 -1
- package/dist/schemas/resolveObjectResponse.js +2 -1
- package/dist/schemas/saveCommentRequest.js +2 -1
- package/dist/schemas/saveCommentRequest.js.map +1 -1
- package/dist/schemas/savePostRequest.js +2 -1
- package/dist/schemas/savePostRequest.js.map +1 -1
- package/dist/schemas/searchResponse.js +2 -1
- package/dist/schemas/searchResponseType.js +4 -1
- package/dist/schemas/searchResponseType.js.map +1 -1
- package/dist/schemas/site.js +2 -1
- package/dist/schemas/siteIcon.js +2 -1
- package/dist/schemas/siteIcon.js.map +1 -1
- package/dist/schemas/siteMetadataView.js +2 -1
- package/dist/schemas/siteMetadataView.js.map +1 -1
- package/dist/schemas/siteRegistrationMode.js +4 -1
- package/dist/schemas/siteRegistrationMode.js.map +1 -1
- package/dist/schemas/subscribeCommentRequest.js +2 -1
- package/dist/schemas/subscribeCommentRequest.js.map +1 -1
- package/dist/schemas/subscribeCommunityRequest.js +2 -1
- package/dist/schemas/subscribeCommunityRequest.js.map +1 -1
- package/dist/schemas/subscribePostRequest.js +2 -1
- package/dist/schemas/subscribePostRequest.js.map +1 -1
- package/dist/schemas/successResponse.js +2 -1
- package/dist/schemas/successResponse.js.map +1 -1
- package/dist/schemas/topicListResponse.js +2 -1
- package/dist/schemas/topicView.js +2 -1
- package/dist/schemas/topicViewParentTopicId.js +2 -1
- package/dist/schemas/topicViewParentTopicId.js.map +1 -1
- package/dist/schemas/unprocessableEntityResponse.js +2 -1
- package/dist/schemas/userBanRequest.js +2 -1
- package/dist/schemas/userBanRequestBanIpAddress.js +2 -1
- package/dist/schemas/userBanRequestBanIpAddress.js.map +1 -1
- package/dist/schemas/userBanRequestPurgeContent.js +2 -1
- package/dist/schemas/userBanRequestPurgeContent.js.map +1 -1
- package/dist/schemas/userBanRequestReason.js +2 -1
- package/dist/schemas/userBanRequestReason.js.map +1 -1
- package/dist/schemas/userBanResponse.js +2 -1
- package/dist/schemas/userBlockRequest.js +2 -1
- package/dist/schemas/userBlockRequest.js.map +1 -1
- package/dist/schemas/userBlockResponse.js +2 -1
- package/dist/schemas/userExtraField.js +2 -1
- package/dist/schemas/userExtraField.js.map +1 -1
- package/dist/schemas/userLoginRequest.js +2 -1
- package/dist/schemas/userLoginRequest.js.map +1 -1
- package/dist/schemas/userLoginResponse.js +2 -1
- package/dist/schemas/userLoginResponse.js.map +1 -1
- package/dist/schemas/userMarkAllNotifsReadResponse.js +2 -1
- package/dist/schemas/userMarkAllNotifsReadResponse.js.map +1 -1
- package/dist/schemas/userMarkAllReadResponse.js +2 -1
- package/dist/schemas/userMeResponse.js +2 -1
- package/dist/schemas/userMediaResponse.js +2 -1
- package/dist/schemas/userMediaResponseNextPage.js +2 -1
- package/dist/schemas/userMediaResponseNextPage.js.map +1 -1
- package/dist/schemas/userMentionsResponse.js +2 -1
- package/dist/schemas/userMentionsResponseNextPage.js +2 -1
- package/dist/schemas/userMentionsResponseNextPage.js.map +1 -1
- package/dist/schemas/userNotificationItemView.js +2 -1
- package/dist/schemas/userNotificationItemViewStatus.js +4 -1
- package/dist/schemas/userNotificationItemViewStatus.js.map +1 -1
- package/dist/schemas/userNotificationStateRequest.js +2 -1
- package/dist/schemas/userNotificationStateRequest.js.map +1 -1
- package/dist/schemas/userNotificationsCountResponse.js +2 -1
- package/dist/schemas/userNotificationsCountResponse.js.map +1 -1
- package/dist/schemas/userNotificationsCounts.js +2 -1
- package/dist/schemas/userNotificationsCounts.js.map +1 -1
- package/dist/schemas/userNotificationsResponse.js +2 -1
- package/dist/schemas/userNotificationsResponseNextPage.js +2 -1
- package/dist/schemas/userNotificationsResponseNextPage.js.map +1 -1
- package/dist/schemas/userNotificationsResponseStatus.js +4 -1
- package/dist/schemas/userNotificationsResponseStatus.js.map +1 -1
- package/dist/schemas/userRegistration.js +2 -1
- package/dist/schemas/userRegistrationAnswer.js +2 -1
- package/dist/schemas/userRegistrationAnswer.js.map +1 -1
- package/dist/schemas/userRegistrationEmail.js +2 -1
- package/dist/schemas/userRegistrationEmail.js.map +1 -1
- package/dist/schemas/userRegistrationIpAddress.js +2 -1
- package/dist/schemas/userRegistrationIpAddress.js.map +1 -1
- package/dist/schemas/userRegistrationStatus.js +4 -1
- package/dist/schemas/userRegistrationStatus.js.map +1 -1
- package/dist/schemas/userRepliesResponse.js +2 -1
- package/dist/schemas/userRepliesResponseNextPage.js +2 -1
- package/dist/schemas/userRepliesResponseNextPage.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequest.js +2 -1
- package/dist/schemas/userSaveSettingsRequestAcceptPrivateMessages.js +4 -1
- package/dist/schemas/userSaveSettingsRequestAcceptPrivateMessages.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestAvatar.js +2 -1
- package/dist/schemas/userSaveSettingsRequestAvatar.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestBotVisibility.js +4 -1
- package/dist/schemas/userSaveSettingsRequestBotVisibility.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestCommunityKeywordFilter.js +2 -1
- package/dist/schemas/userSaveSettingsRequestCommunityKeywordFilter.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestCover.js +2 -1
- package/dist/schemas/userSaveSettingsRequestCover.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestDefaultCommentSortType.js +4 -1
- package/dist/schemas/userSaveSettingsRequestDefaultCommentSortType.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestDefaultSortType.js +4 -1
- package/dist/schemas/userSaveSettingsRequestDefaultSortType.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestGenaiVisibility.js +4 -1
- package/dist/schemas/userSaveSettingsRequestGenaiVisibility.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestNsflVisibility.js +4 -1
- package/dist/schemas/userSaveSettingsRequestNsflVisibility.js.map +1 -1
- package/dist/schemas/userSaveSettingsRequestNsfwVisibility.js +4 -1
- package/dist/schemas/userSaveSettingsRequestNsfwVisibility.js.map +1 -1
- package/dist/schemas/userSaveSettingsResponse.js +2 -1
- package/dist/schemas/userSetFlairRequest.js +2 -1
- package/dist/schemas/userSetFlairRequestFlairText.js +2 -1
- package/dist/schemas/userSetFlairRequestFlairText.js.map +1 -1
- package/dist/schemas/userSetFlairResponse.js +2 -1
- package/dist/schemas/userSetNoteRequest.js +2 -1
- package/dist/schemas/userSetNoteRequestNote.js +2 -1
- package/dist/schemas/userSetNoteRequestNote.js.map +1 -1
- package/dist/schemas/userSetNoteResponse.js +2 -1
- package/dist/schemas/userSubscribeRequest.js +2 -1
- package/dist/schemas/userSubscribeRequest.js.map +1 -1
- package/dist/schemas/userSubscribeResponse.js +2 -1
- package/dist/schemas/userUnbanRequest.js +2 -1
- package/dist/schemas/userUnbanRequest.js.map +1 -1
- package/dist/schemas/userUnreadCountsResponse.js +2 -1
- package/dist/schemas/userUnreadCountsResponse.js.map +1 -1
- package/dist/schemas/widthHeight.js +2 -1
- package/dist/schemas/widthHeight.js.map +1 -1
- package/dist/zod/admin/admin.js +52 -16
- package/dist/zod/admin/admin.js.map +1 -1
- package/dist/zod/comment/comment.js +280 -241
- package/dist/zod/comment/comment.js.map +1 -1
- package/dist/zod/community/community.js +158 -121
- package/dist/zod/community/community.js.map +1 -1
- package/dist/zod/feed/feed.js +54 -18
- package/dist/zod/feed/feed.js.map +1 -1
- package/dist/zod/misc/misc.js +246 -208
- package/dist/zod/misc/misc.js.map +1 -1
- package/dist/zod/post/post.js +578 -534
- package/dist/zod/post/post.js.map +1 -1
- package/dist/zod/private-message/private-message.js +112 -76
- package/dist/zod/private-message/private-message.js.map +1 -1
- package/dist/zod/site/site.js +76 -40
- package/dist/zod/site/site.js.map +1 -1
- package/dist/zod/topic/topic.js +41 -5
- package/dist/zod/topic/topic.js.map +1 -1
- package/dist/zod/upload/upload.js +45 -9
- package/dist/zod/upload/upload.js.map +1 -1
- package/dist/zod/user/user.js +351 -311
- package/dist/zod/user/user.js.map +1 -1
- package/dist/zod-index.js +27 -11
- package/dist/zod-index.js.map +1 -1
- package/package.json +7 -4
- package/src/__tests__/create-client.test.ts +317 -0
- package/src/client/admin/admin.ts +5 -55
- package/src/client/comment/comment.ts +29 -372
- package/src/client/community/community.ts +34 -444
- package/src/client/feed/feed.ts +13 -164
- package/src/client/misc/misc.ts +11 -133
- package/src/client/post/post.ts +41 -528
- package/src/client/private-message/private-message.ts +17 -216
- package/src/client/site/site.ts +11 -118
- package/src/client/topic/topic.ts +3 -29
- package/src/client/upload/upload.ts +9 -127
- package/src/client/user/user.ts +42 -528
- package/src/create-client.ts +35 -19
- package/src/index.ts +1 -14
- package/src/mutator/custom-fetch.ts +20 -6
package/src/client/post/post.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type {
|
|
8
8
|
CreatePostRequest,
|
|
9
|
-
DefaultError,
|
|
10
9
|
DeletePostRequest,
|
|
11
10
|
EditPostRequest,
|
|
12
11
|
FeaturePostRequest,
|
|
@@ -34,8 +33,7 @@ import type {
|
|
|
34
33
|
ReportPostRequest,
|
|
35
34
|
SavePostRequest,
|
|
36
35
|
SubscribePostRequest,
|
|
37
|
-
SuccessResponse
|
|
38
|
-
UnprocessableEntityResponse
|
|
36
|
+
SuccessResponse
|
|
39
37
|
} from '../../schemas';
|
|
40
38
|
|
|
41
39
|
import { customFetch } from '../../mutator/custom-fetch';
|
|
@@ -43,30 +41,6 @@ import { customFetch } from '../../mutator/custom-fetch';
|
|
|
43
41
|
/**
|
|
44
42
|
* @summary List posts.
|
|
45
43
|
*/
|
|
46
|
-
export type getApiAlphaPostListResponse200 = {
|
|
47
|
-
data: ListPostsResponse
|
|
48
|
-
status: 200
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type getApiAlphaPostListResponse400 = {
|
|
52
|
-
data: DefaultError
|
|
53
|
-
status: 400
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type getApiAlphaPostListResponse422 = {
|
|
57
|
-
data: UnprocessableEntityResponse
|
|
58
|
-
status: 422
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type getApiAlphaPostListResponseSuccess = (getApiAlphaPostListResponse200) & {
|
|
62
|
-
headers: Headers;
|
|
63
|
-
};
|
|
64
|
-
export type getApiAlphaPostListResponseError = (getApiAlphaPostListResponse400 | getApiAlphaPostListResponse422) & {
|
|
65
|
-
headers: Headers;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export type getApiAlphaPostListResponse = (getApiAlphaPostListResponseSuccess | getApiAlphaPostListResponseError)
|
|
69
|
-
|
|
70
44
|
export const getGetApiAlphaPostListUrl = (params?: GetApiAlphaPostListParams,) => {
|
|
71
45
|
const normalizedParams = new URLSearchParams();
|
|
72
46
|
|
|
@@ -82,9 +56,9 @@ export const getGetApiAlphaPostListUrl = (params?: GetApiAlphaPostListParams,) =
|
|
|
82
56
|
return stringifiedParams.length > 0 ? `/api/alpha/post/list?${stringifiedParams}` : `/api/alpha/post/list`
|
|
83
57
|
}
|
|
84
58
|
|
|
85
|
-
export const getApiAlphaPostList = async (params?: GetApiAlphaPostListParams, options?: RequestInit): Promise<
|
|
59
|
+
export const getApiAlphaPostList = async (params?: GetApiAlphaPostListParams, options?: RequestInit): Promise<ListPostsResponse> => {
|
|
86
60
|
|
|
87
|
-
return customFetch<
|
|
61
|
+
return customFetch<ListPostsResponse>(getGetApiAlphaPostListUrl(params),
|
|
88
62
|
{
|
|
89
63
|
...options,
|
|
90
64
|
method: 'GET'
|
|
@@ -97,30 +71,6 @@ export const getApiAlphaPostList = async (params?: GetApiAlphaPostListParams, op
|
|
|
97
71
|
/**
|
|
98
72
|
* @summary List posts. For testing only, do not use.
|
|
99
73
|
*/
|
|
100
|
-
export type getApiAlphaPostList2Response200 = {
|
|
101
|
-
data: ListPostsResponse
|
|
102
|
-
status: 200
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type getApiAlphaPostList2Response400 = {
|
|
106
|
-
data: DefaultError
|
|
107
|
-
status: 400
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export type getApiAlphaPostList2Response422 = {
|
|
111
|
-
data: UnprocessableEntityResponse
|
|
112
|
-
status: 422
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type getApiAlphaPostList2ResponseSuccess = (getApiAlphaPostList2Response200) & {
|
|
116
|
-
headers: Headers;
|
|
117
|
-
};
|
|
118
|
-
export type getApiAlphaPostList2ResponseError = (getApiAlphaPostList2Response400 | getApiAlphaPostList2Response422) & {
|
|
119
|
-
headers: Headers;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type getApiAlphaPostList2Response = (getApiAlphaPostList2ResponseSuccess | getApiAlphaPostList2ResponseError)
|
|
123
|
-
|
|
124
74
|
export const getGetApiAlphaPostList2Url = (params?: GetApiAlphaPostList2Params,) => {
|
|
125
75
|
const normalizedParams = new URLSearchParams();
|
|
126
76
|
|
|
@@ -136,9 +86,9 @@ export const getGetApiAlphaPostList2Url = (params?: GetApiAlphaPostList2Params,)
|
|
|
136
86
|
return stringifiedParams.length > 0 ? `/api/alpha/post/list2?${stringifiedParams}` : `/api/alpha/post/list2`
|
|
137
87
|
}
|
|
138
88
|
|
|
139
|
-
export const getApiAlphaPostList2 = async (params?: GetApiAlphaPostList2Params, options?: RequestInit): Promise<
|
|
89
|
+
export const getApiAlphaPostList2 = async (params?: GetApiAlphaPostList2Params, options?: RequestInit): Promise<ListPostsResponse> => {
|
|
140
90
|
|
|
141
|
-
return customFetch<
|
|
91
|
+
return customFetch<ListPostsResponse>(getGetApiAlphaPostList2Url(params),
|
|
142
92
|
{
|
|
143
93
|
...options,
|
|
144
94
|
method: 'GET'
|
|
@@ -151,30 +101,6 @@ export const getApiAlphaPostList2 = async (params?: GetApiAlphaPostList2Params,
|
|
|
151
101
|
/**
|
|
152
102
|
* @summary Get/fetch a post
|
|
153
103
|
*/
|
|
154
|
-
export type getApiAlphaPostResponse200 = {
|
|
155
|
-
data: GetPostResponse
|
|
156
|
-
status: 200
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export type getApiAlphaPostResponse400 = {
|
|
160
|
-
data: DefaultError
|
|
161
|
-
status: 400
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export type getApiAlphaPostResponse422 = {
|
|
165
|
-
data: UnprocessableEntityResponse
|
|
166
|
-
status: 422
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export type getApiAlphaPostResponseSuccess = (getApiAlphaPostResponse200) & {
|
|
170
|
-
headers: Headers;
|
|
171
|
-
};
|
|
172
|
-
export type getApiAlphaPostResponseError = (getApiAlphaPostResponse400 | getApiAlphaPostResponse422) & {
|
|
173
|
-
headers: Headers;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export type getApiAlphaPostResponse = (getApiAlphaPostResponseSuccess | getApiAlphaPostResponseError)
|
|
177
|
-
|
|
178
104
|
export const getGetApiAlphaPostUrl = (params: GetApiAlphaPostParams,) => {
|
|
179
105
|
const normalizedParams = new URLSearchParams();
|
|
180
106
|
|
|
@@ -190,9 +116,9 @@ export const getGetApiAlphaPostUrl = (params: GetApiAlphaPostParams,) => {
|
|
|
190
116
|
return stringifiedParams.length > 0 ? `/api/alpha/post?${stringifiedParams}` : `/api/alpha/post`
|
|
191
117
|
}
|
|
192
118
|
|
|
193
|
-
export const getApiAlphaPost = async (params: GetApiAlphaPostParams, options?: RequestInit): Promise<
|
|
119
|
+
export const getApiAlphaPost = async (params: GetApiAlphaPostParams, options?: RequestInit): Promise<GetPostResponse> => {
|
|
194
120
|
|
|
195
|
-
return customFetch<
|
|
121
|
+
return customFetch<GetPostResponse>(getGetApiAlphaPostUrl(params),
|
|
196
122
|
{
|
|
197
123
|
...options,
|
|
198
124
|
method: 'GET'
|
|
@@ -205,35 +131,6 @@ export const getApiAlphaPost = async (params: GetApiAlphaPostParams, options?: R
|
|
|
205
131
|
/**
|
|
206
132
|
* @summary Create a new post.
|
|
207
133
|
*/
|
|
208
|
-
export type postApiAlphaPostResponse200 = {
|
|
209
|
-
data: GetPostResponse
|
|
210
|
-
status: 200
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export type postApiAlphaPostResponse400 = {
|
|
214
|
-
data: DefaultError
|
|
215
|
-
status: 400
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export type postApiAlphaPostResponse422 = {
|
|
219
|
-
data: UnprocessableEntityResponse
|
|
220
|
-
status: 422
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export type postApiAlphaPostResponse429 = {
|
|
224
|
-
data: DefaultError
|
|
225
|
-
status: 429
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export type postApiAlphaPostResponseSuccess = (postApiAlphaPostResponse200) & {
|
|
229
|
-
headers: Headers;
|
|
230
|
-
};
|
|
231
|
-
export type postApiAlphaPostResponseError = (postApiAlphaPostResponse400 | postApiAlphaPostResponse422 | postApiAlphaPostResponse429) & {
|
|
232
|
-
headers: Headers;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
export type postApiAlphaPostResponse = (postApiAlphaPostResponseSuccess | postApiAlphaPostResponseError)
|
|
236
|
-
|
|
237
134
|
export const getPostApiAlphaPostUrl = () => {
|
|
238
135
|
|
|
239
136
|
|
|
@@ -242,9 +139,9 @@ export const getPostApiAlphaPostUrl = () => {
|
|
|
242
139
|
return `/api/alpha/post`
|
|
243
140
|
}
|
|
244
141
|
|
|
245
|
-
export const postApiAlphaPost = async (createPostRequest: CreatePostRequest, options?: RequestInit): Promise<
|
|
142
|
+
export const postApiAlphaPost = async (createPostRequest: CreatePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
246
143
|
|
|
247
|
-
return customFetch<
|
|
144
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostUrl(),
|
|
248
145
|
{
|
|
249
146
|
...options,
|
|
250
147
|
method: 'POST',
|
|
@@ -258,30 +155,6 @@ export const postApiAlphaPost = async (createPostRequest: CreatePostRequest, opt
|
|
|
258
155
|
/**
|
|
259
156
|
* @summary Edit a post.
|
|
260
157
|
*/
|
|
261
|
-
export type putApiAlphaPostResponse200 = {
|
|
262
|
-
data: GetPostResponse
|
|
263
|
-
status: 200
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export type putApiAlphaPostResponse400 = {
|
|
267
|
-
data: DefaultError
|
|
268
|
-
status: 400
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export type putApiAlphaPostResponse422 = {
|
|
272
|
-
data: UnprocessableEntityResponse
|
|
273
|
-
status: 422
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export type putApiAlphaPostResponseSuccess = (putApiAlphaPostResponse200) & {
|
|
277
|
-
headers: Headers;
|
|
278
|
-
};
|
|
279
|
-
export type putApiAlphaPostResponseError = (putApiAlphaPostResponse400 | putApiAlphaPostResponse422) & {
|
|
280
|
-
headers: Headers;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
export type putApiAlphaPostResponse = (putApiAlphaPostResponseSuccess | putApiAlphaPostResponseError)
|
|
284
|
-
|
|
285
158
|
export const getPutApiAlphaPostUrl = () => {
|
|
286
159
|
|
|
287
160
|
|
|
@@ -290,9 +163,9 @@ export const getPutApiAlphaPostUrl = () => {
|
|
|
290
163
|
return `/api/alpha/post`
|
|
291
164
|
}
|
|
292
165
|
|
|
293
|
-
export const putApiAlphaPost = async (editPostRequest: EditPostRequest, options?: RequestInit): Promise<
|
|
166
|
+
export const putApiAlphaPost = async (editPostRequest: EditPostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
294
167
|
|
|
295
|
-
return customFetch<
|
|
168
|
+
return customFetch<GetPostResponse>(getPutApiAlphaPostUrl(),
|
|
296
169
|
{
|
|
297
170
|
...options,
|
|
298
171
|
method: 'PUT',
|
|
@@ -306,30 +179,6 @@ export const putApiAlphaPost = async (editPostRequest: EditPostRequest, options?
|
|
|
306
179
|
/**
|
|
307
180
|
* @summary Get replies/comments for a post with nested structure.
|
|
308
181
|
*/
|
|
309
|
-
export type getApiAlphaPostRepliesResponse200 = {
|
|
310
|
-
data: GetPostRepliesResponse
|
|
311
|
-
status: 200
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export type getApiAlphaPostRepliesResponse400 = {
|
|
315
|
-
data: DefaultError
|
|
316
|
-
status: 400
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export type getApiAlphaPostRepliesResponse422 = {
|
|
320
|
-
data: UnprocessableEntityResponse
|
|
321
|
-
status: 422
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export type getApiAlphaPostRepliesResponseSuccess = (getApiAlphaPostRepliesResponse200) & {
|
|
325
|
-
headers: Headers;
|
|
326
|
-
};
|
|
327
|
-
export type getApiAlphaPostRepliesResponseError = (getApiAlphaPostRepliesResponse400 | getApiAlphaPostRepliesResponse422) & {
|
|
328
|
-
headers: Headers;
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
export type getApiAlphaPostRepliesResponse = (getApiAlphaPostRepliesResponseSuccess | getApiAlphaPostRepliesResponseError)
|
|
332
|
-
|
|
333
182
|
export const getGetApiAlphaPostRepliesUrl = (params?: GetApiAlphaPostRepliesParams,) => {
|
|
334
183
|
const normalizedParams = new URLSearchParams();
|
|
335
184
|
|
|
@@ -345,9 +194,9 @@ export const getGetApiAlphaPostRepliesUrl = (params?: GetApiAlphaPostRepliesPara
|
|
|
345
194
|
return stringifiedParams.length > 0 ? `/api/alpha/post/replies?${stringifiedParams}` : `/api/alpha/post/replies`
|
|
346
195
|
}
|
|
347
196
|
|
|
348
|
-
export const getApiAlphaPostReplies = async (params?: GetApiAlphaPostRepliesParams, options?: RequestInit): Promise<
|
|
197
|
+
export const getApiAlphaPostReplies = async (params?: GetApiAlphaPostRepliesParams, options?: RequestInit): Promise<GetPostRepliesResponse> => {
|
|
349
198
|
|
|
350
|
-
return customFetch<
|
|
199
|
+
return customFetch<GetPostRepliesResponse>(getGetApiAlphaPostRepliesUrl(params),
|
|
351
200
|
{
|
|
352
201
|
...options,
|
|
353
202
|
method: 'GET'
|
|
@@ -360,30 +209,6 @@ export const getApiAlphaPostReplies = async (params?: GetApiAlphaPostRepliesPara
|
|
|
360
209
|
/**
|
|
361
210
|
* @summary Get metadata about a url.
|
|
362
211
|
*/
|
|
363
|
-
export type getApiAlphaPostSiteMetadataResponse200 = {
|
|
364
|
-
data: GetSiteMetadataResponse
|
|
365
|
-
status: 200
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export type getApiAlphaPostSiteMetadataResponse400 = {
|
|
369
|
-
data: DefaultError
|
|
370
|
-
status: 400
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export type getApiAlphaPostSiteMetadataResponse422 = {
|
|
374
|
-
data: UnprocessableEntityResponse
|
|
375
|
-
status: 422
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export type getApiAlphaPostSiteMetadataResponseSuccess = (getApiAlphaPostSiteMetadataResponse200) & {
|
|
379
|
-
headers: Headers;
|
|
380
|
-
};
|
|
381
|
-
export type getApiAlphaPostSiteMetadataResponseError = (getApiAlphaPostSiteMetadataResponse400 | getApiAlphaPostSiteMetadataResponse422) & {
|
|
382
|
-
headers: Headers;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export type getApiAlphaPostSiteMetadataResponse = (getApiAlphaPostSiteMetadataResponseSuccess | getApiAlphaPostSiteMetadataResponseError)
|
|
386
|
-
|
|
387
212
|
export const getGetApiAlphaPostSiteMetadataUrl = (params?: GetApiAlphaPostSiteMetadataParams,) => {
|
|
388
213
|
const normalizedParams = new URLSearchParams();
|
|
389
214
|
|
|
@@ -399,9 +224,9 @@ export const getGetApiAlphaPostSiteMetadataUrl = (params?: GetApiAlphaPostSiteMe
|
|
|
399
224
|
return stringifiedParams.length > 0 ? `/api/alpha/post/site_metadata?${stringifiedParams}` : `/api/alpha/post/site_metadata`
|
|
400
225
|
}
|
|
401
226
|
|
|
402
|
-
export const getApiAlphaPostSiteMetadata = async (params?: GetApiAlphaPostSiteMetadataParams, options?: RequestInit): Promise<
|
|
227
|
+
export const getApiAlphaPostSiteMetadata = async (params?: GetApiAlphaPostSiteMetadataParams, options?: RequestInit): Promise<GetSiteMetadataResponse> => {
|
|
403
228
|
|
|
404
|
-
return customFetch<
|
|
229
|
+
return customFetch<GetSiteMetadataResponse>(getGetApiAlphaPostSiteMetadataUrl(params),
|
|
405
230
|
{
|
|
406
231
|
...options,
|
|
407
232
|
method: 'GET'
|
|
@@ -414,30 +239,6 @@ export const getApiAlphaPostSiteMetadata = async (params?: GetApiAlphaPostSiteMe
|
|
|
414
239
|
/**
|
|
415
240
|
* @summary Like or unlike a post.
|
|
416
241
|
*/
|
|
417
|
-
export type postApiAlphaPostLikeResponse200 = {
|
|
418
|
-
data: GetPostResponse
|
|
419
|
-
status: 200
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export type postApiAlphaPostLikeResponse400 = {
|
|
423
|
-
data: DefaultError
|
|
424
|
-
status: 400
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
export type postApiAlphaPostLikeResponse422 = {
|
|
428
|
-
data: UnprocessableEntityResponse
|
|
429
|
-
status: 422
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export type postApiAlphaPostLikeResponseSuccess = (postApiAlphaPostLikeResponse200) & {
|
|
433
|
-
headers: Headers;
|
|
434
|
-
};
|
|
435
|
-
export type postApiAlphaPostLikeResponseError = (postApiAlphaPostLikeResponse400 | postApiAlphaPostLikeResponse422) & {
|
|
436
|
-
headers: Headers;
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
export type postApiAlphaPostLikeResponse = (postApiAlphaPostLikeResponseSuccess | postApiAlphaPostLikeResponseError)
|
|
440
|
-
|
|
441
242
|
export const getPostApiAlphaPostLikeUrl = () => {
|
|
442
243
|
|
|
443
244
|
|
|
@@ -446,9 +247,9 @@ export const getPostApiAlphaPostLikeUrl = () => {
|
|
|
446
247
|
return `/api/alpha/post/like`
|
|
447
248
|
}
|
|
448
249
|
|
|
449
|
-
export const postApiAlphaPostLike = async (likePostRequest: LikePostRequest, options?: RequestInit): Promise<
|
|
250
|
+
export const postApiAlphaPostLike = async (likePostRequest: LikePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
450
251
|
|
|
451
|
-
return customFetch<
|
|
252
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostLikeUrl(),
|
|
452
253
|
{
|
|
453
254
|
...options,
|
|
454
255
|
method: 'POST',
|
|
@@ -462,30 +263,6 @@ export const postApiAlphaPostLike = async (likePostRequest: LikePostRequest, opt
|
|
|
462
263
|
/**
|
|
463
264
|
* @summary Save or unsave a post.
|
|
464
265
|
*/
|
|
465
|
-
export type putApiAlphaPostSaveResponse200 = {
|
|
466
|
-
data: GetPostResponse
|
|
467
|
-
status: 200
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export type putApiAlphaPostSaveResponse400 = {
|
|
471
|
-
data: DefaultError
|
|
472
|
-
status: 400
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
export type putApiAlphaPostSaveResponse422 = {
|
|
476
|
-
data: UnprocessableEntityResponse
|
|
477
|
-
status: 422
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
export type putApiAlphaPostSaveResponseSuccess = (putApiAlphaPostSaveResponse200) & {
|
|
481
|
-
headers: Headers;
|
|
482
|
-
};
|
|
483
|
-
export type putApiAlphaPostSaveResponseError = (putApiAlphaPostSaveResponse400 | putApiAlphaPostSaveResponse422) & {
|
|
484
|
-
headers: Headers;
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
export type putApiAlphaPostSaveResponse = (putApiAlphaPostSaveResponseSuccess | putApiAlphaPostSaveResponseError)
|
|
488
|
-
|
|
489
266
|
export const getPutApiAlphaPostSaveUrl = () => {
|
|
490
267
|
|
|
491
268
|
|
|
@@ -494,9 +271,9 @@ export const getPutApiAlphaPostSaveUrl = () => {
|
|
|
494
271
|
return `/api/alpha/post/save`
|
|
495
272
|
}
|
|
496
273
|
|
|
497
|
-
export const putApiAlphaPostSave = async (savePostRequest: SavePostRequest, options?: RequestInit): Promise<
|
|
274
|
+
export const putApiAlphaPostSave = async (savePostRequest: SavePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
498
275
|
|
|
499
|
-
return customFetch<
|
|
276
|
+
return customFetch<GetPostResponse>(getPutApiAlphaPostSaveUrl(),
|
|
500
277
|
{
|
|
501
278
|
...options,
|
|
502
279
|
method: 'PUT',
|
|
@@ -510,30 +287,6 @@ export const putApiAlphaPostSave = async (savePostRequest: SavePostRequest, opti
|
|
|
510
287
|
/**
|
|
511
288
|
* @summary Subscribe or unsubscribe to a post.
|
|
512
289
|
*/
|
|
513
|
-
export type putApiAlphaPostSubscribeResponse200 = {
|
|
514
|
-
data: GetPostResponse
|
|
515
|
-
status: 200
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export type putApiAlphaPostSubscribeResponse400 = {
|
|
519
|
-
data: DefaultError
|
|
520
|
-
status: 400
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export type putApiAlphaPostSubscribeResponse422 = {
|
|
524
|
-
data: UnprocessableEntityResponse
|
|
525
|
-
status: 422
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export type putApiAlphaPostSubscribeResponseSuccess = (putApiAlphaPostSubscribeResponse200) & {
|
|
529
|
-
headers: Headers;
|
|
530
|
-
};
|
|
531
|
-
export type putApiAlphaPostSubscribeResponseError = (putApiAlphaPostSubscribeResponse400 | putApiAlphaPostSubscribeResponse422) & {
|
|
532
|
-
headers: Headers;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
export type putApiAlphaPostSubscribeResponse = (putApiAlphaPostSubscribeResponseSuccess | putApiAlphaPostSubscribeResponseError)
|
|
536
|
-
|
|
537
290
|
export const getPutApiAlphaPostSubscribeUrl = () => {
|
|
538
291
|
|
|
539
292
|
|
|
@@ -542,9 +295,9 @@ export const getPutApiAlphaPostSubscribeUrl = () => {
|
|
|
542
295
|
return `/api/alpha/post/subscribe`
|
|
543
296
|
}
|
|
544
297
|
|
|
545
|
-
export const putApiAlphaPostSubscribe = async (subscribePostRequest: SubscribePostRequest, options?: RequestInit): Promise<
|
|
298
|
+
export const putApiAlphaPostSubscribe = async (subscribePostRequest: SubscribePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
546
299
|
|
|
547
|
-
return customFetch<
|
|
300
|
+
return customFetch<GetPostResponse>(getPutApiAlphaPostSubscribeUrl(),
|
|
548
301
|
{
|
|
549
302
|
...options,
|
|
550
303
|
method: 'PUT',
|
|
@@ -558,30 +311,6 @@ export const putApiAlphaPostSubscribe = async (subscribePostRequest: SubscribePo
|
|
|
558
311
|
/**
|
|
559
312
|
* @summary Delete or restore a post.
|
|
560
313
|
*/
|
|
561
|
-
export type postApiAlphaPostDeleteResponse200 = {
|
|
562
|
-
data: GetPostResponse
|
|
563
|
-
status: 200
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
export type postApiAlphaPostDeleteResponse400 = {
|
|
567
|
-
data: DefaultError
|
|
568
|
-
status: 400
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export type postApiAlphaPostDeleteResponse422 = {
|
|
572
|
-
data: UnprocessableEntityResponse
|
|
573
|
-
status: 422
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
export type postApiAlphaPostDeleteResponseSuccess = (postApiAlphaPostDeleteResponse200) & {
|
|
577
|
-
headers: Headers;
|
|
578
|
-
};
|
|
579
|
-
export type postApiAlphaPostDeleteResponseError = (postApiAlphaPostDeleteResponse400 | postApiAlphaPostDeleteResponse422) & {
|
|
580
|
-
headers: Headers;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
export type postApiAlphaPostDeleteResponse = (postApiAlphaPostDeleteResponseSuccess | postApiAlphaPostDeleteResponseError)
|
|
584
|
-
|
|
585
314
|
export const getPostApiAlphaPostDeleteUrl = () => {
|
|
586
315
|
|
|
587
316
|
|
|
@@ -590,9 +319,9 @@ export const getPostApiAlphaPostDeleteUrl = () => {
|
|
|
590
319
|
return `/api/alpha/post/delete`
|
|
591
320
|
}
|
|
592
321
|
|
|
593
|
-
export const postApiAlphaPostDelete = async (deletePostRequest: DeletePostRequest, options?: RequestInit): Promise<
|
|
322
|
+
export const postApiAlphaPostDelete = async (deletePostRequest: DeletePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
594
323
|
|
|
595
|
-
return customFetch<
|
|
324
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostDeleteUrl(),
|
|
596
325
|
{
|
|
597
326
|
...options,
|
|
598
327
|
method: 'POST',
|
|
@@ -606,30 +335,6 @@ export const postApiAlphaPostDelete = async (deletePostRequest: DeletePostReques
|
|
|
606
335
|
/**
|
|
607
336
|
* @summary Report a post.
|
|
608
337
|
*/
|
|
609
|
-
export type postApiAlphaPostReportResponse200 = {
|
|
610
|
-
data: PostReportResponse
|
|
611
|
-
status: 200
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
export type postApiAlphaPostReportResponse400 = {
|
|
615
|
-
data: DefaultError
|
|
616
|
-
status: 400
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export type postApiAlphaPostReportResponse422 = {
|
|
620
|
-
data: UnprocessableEntityResponse
|
|
621
|
-
status: 422
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
export type postApiAlphaPostReportResponseSuccess = (postApiAlphaPostReportResponse200) & {
|
|
625
|
-
headers: Headers;
|
|
626
|
-
};
|
|
627
|
-
export type postApiAlphaPostReportResponseError = (postApiAlphaPostReportResponse400 | postApiAlphaPostReportResponse422) & {
|
|
628
|
-
headers: Headers;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
export type postApiAlphaPostReportResponse = (postApiAlphaPostReportResponseSuccess | postApiAlphaPostReportResponseError)
|
|
632
|
-
|
|
633
338
|
export const getPostApiAlphaPostReportUrl = () => {
|
|
634
339
|
|
|
635
340
|
|
|
@@ -638,9 +343,9 @@ export const getPostApiAlphaPostReportUrl = () => {
|
|
|
638
343
|
return `/api/alpha/post/report`
|
|
639
344
|
}
|
|
640
345
|
|
|
641
|
-
export const postApiAlphaPostReport = async (reportPostRequest: ReportPostRequest, options?: RequestInit): Promise<
|
|
346
|
+
export const postApiAlphaPostReport = async (reportPostRequest: ReportPostRequest, options?: RequestInit): Promise<PostReportResponse> => {
|
|
642
347
|
|
|
643
|
-
return customFetch<
|
|
348
|
+
return customFetch<PostReportResponse>(getPostApiAlphaPostReportUrl(),
|
|
644
349
|
{
|
|
645
350
|
...options,
|
|
646
351
|
method: 'POST',
|
|
@@ -654,30 +359,6 @@ export const postApiAlphaPostReport = async (reportPostRequest: ReportPostReques
|
|
|
654
359
|
/**
|
|
655
360
|
* @summary Lock or unlock a post.
|
|
656
361
|
*/
|
|
657
|
-
export type postApiAlphaPostLockResponse200 = {
|
|
658
|
-
data: GetPostResponse
|
|
659
|
-
status: 200
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export type postApiAlphaPostLockResponse400 = {
|
|
663
|
-
data: DefaultError
|
|
664
|
-
status: 400
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
export type postApiAlphaPostLockResponse422 = {
|
|
668
|
-
data: UnprocessableEntityResponse
|
|
669
|
-
status: 422
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export type postApiAlphaPostLockResponseSuccess = (postApiAlphaPostLockResponse200) & {
|
|
673
|
-
headers: Headers;
|
|
674
|
-
};
|
|
675
|
-
export type postApiAlphaPostLockResponseError = (postApiAlphaPostLockResponse400 | postApiAlphaPostLockResponse422) & {
|
|
676
|
-
headers: Headers;
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
export type postApiAlphaPostLockResponse = (postApiAlphaPostLockResponseSuccess | postApiAlphaPostLockResponseError)
|
|
680
|
-
|
|
681
362
|
export const getPostApiAlphaPostLockUrl = () => {
|
|
682
363
|
|
|
683
364
|
|
|
@@ -686,9 +367,9 @@ export const getPostApiAlphaPostLockUrl = () => {
|
|
|
686
367
|
return `/api/alpha/post/lock`
|
|
687
368
|
}
|
|
688
369
|
|
|
689
|
-
export const postApiAlphaPostLock = async (lockPostRequest: LockPostRequest, options?: RequestInit): Promise<
|
|
370
|
+
export const postApiAlphaPostLock = async (lockPostRequest: LockPostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
690
371
|
|
|
691
|
-
return customFetch<
|
|
372
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostLockUrl(),
|
|
692
373
|
{
|
|
693
374
|
...options,
|
|
694
375
|
method: 'POST',
|
|
@@ -702,30 +383,6 @@ export const postApiAlphaPostLock = async (lockPostRequest: LockPostRequest, opt
|
|
|
702
383
|
/**
|
|
703
384
|
* @summary Hide or unhide a post.
|
|
704
385
|
*/
|
|
705
|
-
export type postApiAlphaPostHideResponse200 = {
|
|
706
|
-
data: GetPostResponse
|
|
707
|
-
status: 200
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export type postApiAlphaPostHideResponse400 = {
|
|
711
|
-
data: DefaultError
|
|
712
|
-
status: 400
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export type postApiAlphaPostHideResponse422 = {
|
|
716
|
-
data: UnprocessableEntityResponse
|
|
717
|
-
status: 422
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export type postApiAlphaPostHideResponseSuccess = (postApiAlphaPostHideResponse200) & {
|
|
721
|
-
headers: Headers;
|
|
722
|
-
};
|
|
723
|
-
export type postApiAlphaPostHideResponseError = (postApiAlphaPostHideResponse400 | postApiAlphaPostHideResponse422) & {
|
|
724
|
-
headers: Headers;
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
export type postApiAlphaPostHideResponse = (postApiAlphaPostHideResponseSuccess | postApiAlphaPostHideResponseError)
|
|
728
|
-
|
|
729
386
|
export const getPostApiAlphaPostHideUrl = () => {
|
|
730
387
|
|
|
731
388
|
|
|
@@ -734,9 +391,9 @@ export const getPostApiAlphaPostHideUrl = () => {
|
|
|
734
391
|
return `/api/alpha/post/hide`
|
|
735
392
|
}
|
|
736
393
|
|
|
737
|
-
export const postApiAlphaPostHide = async (hidePostRequest: HidePostRequest, options?: RequestInit): Promise<
|
|
394
|
+
export const postApiAlphaPostHide = async (hidePostRequest: HidePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
738
395
|
|
|
739
|
-
return customFetch<
|
|
396
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostHideUrl(),
|
|
740
397
|
{
|
|
741
398
|
...options,
|
|
742
399
|
method: 'POST',
|
|
@@ -750,30 +407,6 @@ export const postApiAlphaPostHide = async (hidePostRequest: HidePostRequest, opt
|
|
|
750
407
|
/**
|
|
751
408
|
* @summary Feature or unfeature a post.
|
|
752
409
|
*/
|
|
753
|
-
export type postApiAlphaPostFeatureResponse200 = {
|
|
754
|
-
data: GetPostResponse
|
|
755
|
-
status: 200
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
export type postApiAlphaPostFeatureResponse400 = {
|
|
759
|
-
data: DefaultError
|
|
760
|
-
status: 400
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
export type postApiAlphaPostFeatureResponse422 = {
|
|
764
|
-
data: UnprocessableEntityResponse
|
|
765
|
-
status: 422
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export type postApiAlphaPostFeatureResponseSuccess = (postApiAlphaPostFeatureResponse200) & {
|
|
769
|
-
headers: Headers;
|
|
770
|
-
};
|
|
771
|
-
export type postApiAlphaPostFeatureResponseError = (postApiAlphaPostFeatureResponse400 | postApiAlphaPostFeatureResponse422) & {
|
|
772
|
-
headers: Headers;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
export type postApiAlphaPostFeatureResponse = (postApiAlphaPostFeatureResponseSuccess | postApiAlphaPostFeatureResponseError)
|
|
776
|
-
|
|
777
410
|
export const getPostApiAlphaPostFeatureUrl = () => {
|
|
778
411
|
|
|
779
412
|
|
|
@@ -782,9 +415,9 @@ export const getPostApiAlphaPostFeatureUrl = () => {
|
|
|
782
415
|
return `/api/alpha/post/feature`
|
|
783
416
|
}
|
|
784
417
|
|
|
785
|
-
export const postApiAlphaPostFeature = async (featurePostRequest: FeaturePostRequest, options?: RequestInit): Promise<
|
|
418
|
+
export const postApiAlphaPostFeature = async (featurePostRequest: FeaturePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
786
419
|
|
|
787
|
-
return customFetch<
|
|
420
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostFeatureUrl(),
|
|
788
421
|
{
|
|
789
422
|
...options,
|
|
790
423
|
method: 'POST',
|
|
@@ -798,30 +431,6 @@ export const postApiAlphaPostFeature = async (featurePostRequest: FeaturePostReq
|
|
|
798
431
|
/**
|
|
799
432
|
* @summary Remove or restore a post as a moderator.
|
|
800
433
|
*/
|
|
801
|
-
export type postApiAlphaPostRemoveResponse200 = {
|
|
802
|
-
data: GetPostResponse
|
|
803
|
-
status: 200
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
export type postApiAlphaPostRemoveResponse400 = {
|
|
807
|
-
data: DefaultError
|
|
808
|
-
status: 400
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
export type postApiAlphaPostRemoveResponse422 = {
|
|
812
|
-
data: UnprocessableEntityResponse
|
|
813
|
-
status: 422
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
export type postApiAlphaPostRemoveResponseSuccess = (postApiAlphaPostRemoveResponse200) & {
|
|
817
|
-
headers: Headers;
|
|
818
|
-
};
|
|
819
|
-
export type postApiAlphaPostRemoveResponseError = (postApiAlphaPostRemoveResponse400 | postApiAlphaPostRemoveResponse422) & {
|
|
820
|
-
headers: Headers;
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
export type postApiAlphaPostRemoveResponse = (postApiAlphaPostRemoveResponseSuccess | postApiAlphaPostRemoveResponseError)
|
|
824
|
-
|
|
825
434
|
export const getPostApiAlphaPostRemoveUrl = () => {
|
|
826
435
|
|
|
827
436
|
|
|
@@ -830,9 +439,9 @@ export const getPostApiAlphaPostRemoveUrl = () => {
|
|
|
830
439
|
return `/api/alpha/post/remove`
|
|
831
440
|
}
|
|
832
441
|
|
|
833
|
-
export const postApiAlphaPostRemove = async (removePostRequest: RemovePostRequest, options?: RequestInit): Promise<
|
|
442
|
+
export const postApiAlphaPostRemove = async (removePostRequest: RemovePostRequest, options?: RequestInit): Promise<GetPostResponse> => {
|
|
834
443
|
|
|
835
|
-
return customFetch<
|
|
444
|
+
return customFetch<GetPostResponse>(getPostApiAlphaPostRemoveUrl(),
|
|
836
445
|
{
|
|
837
446
|
...options,
|
|
838
447
|
method: 'POST',
|
|
@@ -846,30 +455,6 @@ export const postApiAlphaPostRemove = async (removePostRequest: RemovePostReques
|
|
|
846
455
|
/**
|
|
847
456
|
* @summary Mark one or more posts as read or unread.
|
|
848
457
|
*/
|
|
849
|
-
export type postApiAlphaPostMarkAsReadResponse200 = {
|
|
850
|
-
data: SuccessResponse
|
|
851
|
-
status: 200
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
export type postApiAlphaPostMarkAsReadResponse400 = {
|
|
855
|
-
data: DefaultError
|
|
856
|
-
status: 400
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
export type postApiAlphaPostMarkAsReadResponse422 = {
|
|
860
|
-
data: UnprocessableEntityResponse
|
|
861
|
-
status: 422
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
export type postApiAlphaPostMarkAsReadResponseSuccess = (postApiAlphaPostMarkAsReadResponse200) & {
|
|
865
|
-
headers: Headers;
|
|
866
|
-
};
|
|
867
|
-
export type postApiAlphaPostMarkAsReadResponseError = (postApiAlphaPostMarkAsReadResponse400 | postApiAlphaPostMarkAsReadResponse422) & {
|
|
868
|
-
headers: Headers;
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
export type postApiAlphaPostMarkAsReadResponse = (postApiAlphaPostMarkAsReadResponseSuccess | postApiAlphaPostMarkAsReadResponseError)
|
|
872
|
-
|
|
873
458
|
export const getPostApiAlphaPostMarkAsReadUrl = () => {
|
|
874
459
|
|
|
875
460
|
|
|
@@ -878,9 +463,9 @@ export const getPostApiAlphaPostMarkAsReadUrl = () => {
|
|
|
878
463
|
return `/api/alpha/post/mark_as_read`
|
|
879
464
|
}
|
|
880
465
|
|
|
881
|
-
export const postApiAlphaPostMarkAsRead = async (markPostAsReadRequest: MarkPostAsReadRequest, options?: RequestInit): Promise<
|
|
466
|
+
export const postApiAlphaPostMarkAsRead = async (markPostAsReadRequest: MarkPostAsReadRequest, options?: RequestInit): Promise<SuccessResponse> => {
|
|
882
467
|
|
|
883
|
-
return customFetch<
|
|
468
|
+
return customFetch<SuccessResponse>(getPostApiAlphaPostMarkAsReadUrl(),
|
|
884
469
|
{
|
|
885
470
|
...options,
|
|
886
471
|
method: 'POST',
|
|
@@ -894,30 +479,6 @@ export const postApiAlphaPostMarkAsRead = async (markPostAsReadRequest: MarkPost
|
|
|
894
479
|
/**
|
|
895
480
|
* @summary View post votes as a moderator.
|
|
896
481
|
*/
|
|
897
|
-
export type getApiAlphaPostLikeListResponse200 = {
|
|
898
|
-
data: ListPostLikesResponse
|
|
899
|
-
status: 200
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
export type getApiAlphaPostLikeListResponse400 = {
|
|
903
|
-
data: DefaultError
|
|
904
|
-
status: 400
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
export type getApiAlphaPostLikeListResponse422 = {
|
|
908
|
-
data: UnprocessableEntityResponse
|
|
909
|
-
status: 422
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export type getApiAlphaPostLikeListResponseSuccess = (getApiAlphaPostLikeListResponse200) & {
|
|
913
|
-
headers: Headers;
|
|
914
|
-
};
|
|
915
|
-
export type getApiAlphaPostLikeListResponseError = (getApiAlphaPostLikeListResponse400 | getApiAlphaPostLikeListResponse422) & {
|
|
916
|
-
headers: Headers;
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
export type getApiAlphaPostLikeListResponse = (getApiAlphaPostLikeListResponseSuccess | getApiAlphaPostLikeListResponseError)
|
|
920
|
-
|
|
921
482
|
export const getGetApiAlphaPostLikeListUrl = (params: GetApiAlphaPostLikeListParams,) => {
|
|
922
483
|
const normalizedParams = new URLSearchParams();
|
|
923
484
|
|
|
@@ -933,9 +494,9 @@ export const getGetApiAlphaPostLikeListUrl = (params: GetApiAlphaPostLikeListPar
|
|
|
933
494
|
return stringifiedParams.length > 0 ? `/api/alpha/post/like/list?${stringifiedParams}` : `/api/alpha/post/like/list`
|
|
934
495
|
}
|
|
935
496
|
|
|
936
|
-
export const getApiAlphaPostLikeList = async (params: GetApiAlphaPostLikeListParams, options?: RequestInit): Promise<
|
|
497
|
+
export const getApiAlphaPostLikeList = async (params: GetApiAlphaPostLikeListParams, options?: RequestInit): Promise<ListPostLikesResponse> => {
|
|
937
498
|
|
|
938
|
-
return customFetch<
|
|
499
|
+
return customFetch<ListPostLikesResponse>(getGetApiAlphaPostLikeListUrl(params),
|
|
939
500
|
{
|
|
940
501
|
...options,
|
|
941
502
|
method: 'GET'
|
|
@@ -948,30 +509,6 @@ export const getApiAlphaPostLikeList = async (params: GetApiAlphaPostLikeListPar
|
|
|
948
509
|
/**
|
|
949
510
|
* @summary Add/remove flair from a post
|
|
950
511
|
*/
|
|
951
|
-
export type postApiAlphaPostAssignFlairResponse200 = {
|
|
952
|
-
data: PostSetFlairResponse
|
|
953
|
-
status: 200
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export type postApiAlphaPostAssignFlairResponse400 = {
|
|
957
|
-
data: DefaultError
|
|
958
|
-
status: 400
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
export type postApiAlphaPostAssignFlairResponse422 = {
|
|
962
|
-
data: UnprocessableEntityResponse
|
|
963
|
-
status: 422
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
export type postApiAlphaPostAssignFlairResponseSuccess = (postApiAlphaPostAssignFlairResponse200) & {
|
|
967
|
-
headers: Headers;
|
|
968
|
-
};
|
|
969
|
-
export type postApiAlphaPostAssignFlairResponseError = (postApiAlphaPostAssignFlairResponse400 | postApiAlphaPostAssignFlairResponse422) & {
|
|
970
|
-
headers: Headers;
|
|
971
|
-
};
|
|
972
|
-
|
|
973
|
-
export type postApiAlphaPostAssignFlairResponse = (postApiAlphaPostAssignFlairResponseSuccess | postApiAlphaPostAssignFlairResponseError)
|
|
974
|
-
|
|
975
512
|
export const getPostApiAlphaPostAssignFlairUrl = () => {
|
|
976
513
|
|
|
977
514
|
|
|
@@ -980,9 +517,9 @@ export const getPostApiAlphaPostAssignFlairUrl = () => {
|
|
|
980
517
|
return `/api/alpha/post/assign_flair`
|
|
981
518
|
}
|
|
982
519
|
|
|
983
|
-
export const postApiAlphaPostAssignFlair = async (postSetFlairRequest: PostSetFlairRequest, options?: RequestInit): Promise<
|
|
520
|
+
export const postApiAlphaPostAssignFlair = async (postSetFlairRequest: PostSetFlairRequest, options?: RequestInit): Promise<PostSetFlairResponse> => {
|
|
984
521
|
|
|
985
|
-
return customFetch<
|
|
522
|
+
return customFetch<PostSetFlairResponse>(getPostApiAlphaPostAssignFlairUrl(),
|
|
986
523
|
{
|
|
987
524
|
...options,
|
|
988
525
|
method: 'POST',
|
|
@@ -996,30 +533,6 @@ export const postApiAlphaPostAssignFlair = async (postSetFlairRequest: PostSetFl
|
|
|
996
533
|
/**
|
|
997
534
|
* @summary Vote in a poll
|
|
998
535
|
*/
|
|
999
|
-
export type postApiAlphaPostPollVoteResponse200 = {
|
|
1000
|
-
data: PollVoteResponse
|
|
1001
|
-
status: 200
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
export type postApiAlphaPostPollVoteResponse400 = {
|
|
1005
|
-
data: DefaultError
|
|
1006
|
-
status: 400
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export type postApiAlphaPostPollVoteResponse422 = {
|
|
1010
|
-
data: UnprocessableEntityResponse
|
|
1011
|
-
status: 422
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
export type postApiAlphaPostPollVoteResponseSuccess = (postApiAlphaPostPollVoteResponse200) & {
|
|
1015
|
-
headers: Headers;
|
|
1016
|
-
};
|
|
1017
|
-
export type postApiAlphaPostPollVoteResponseError = (postApiAlphaPostPollVoteResponse400 | postApiAlphaPostPollVoteResponse422) & {
|
|
1018
|
-
headers: Headers;
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
export type postApiAlphaPostPollVoteResponse = (postApiAlphaPostPollVoteResponseSuccess | postApiAlphaPostPollVoteResponseError)
|
|
1022
|
-
|
|
1023
536
|
export const getPostApiAlphaPostPollVoteUrl = () => {
|
|
1024
537
|
|
|
1025
538
|
|
|
@@ -1028,9 +541,9 @@ export const getPostApiAlphaPostPollVoteUrl = () => {
|
|
|
1028
541
|
return `/api/alpha/post/poll_vote`
|
|
1029
542
|
}
|
|
1030
543
|
|
|
1031
|
-
export const postApiAlphaPostPollVote = async (pollVoteRequest: PollVoteRequest, options?: RequestInit): Promise<
|
|
544
|
+
export const postApiAlphaPostPollVote = async (pollVoteRequest: PollVoteRequest, options?: RequestInit): Promise<PollVoteResponse> => {
|
|
1032
545
|
|
|
1033
|
-
return customFetch<
|
|
546
|
+
return customFetch<PollVoteResponse>(getPostApiAlphaPostPollVoteUrl(),
|
|
1034
547
|
{
|
|
1035
548
|
...options,
|
|
1036
549
|
method: 'POST',
|